@mjhls/mjh-framework 1.0.799-beta.0 → 1.0.799-social-share-flag-v2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -170
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +30 -29
- package/dist/cjs/AD300x250x600.js +30 -29
- package/dist/cjs/AD728x90.js +33 -32
- package/dist/cjs/ADFloatingFooter.js +32 -31
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +32 -31
- package/dist/cjs/{ADInfeed-5b042ade.js → ADInfeed-e7aecdf9.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +32 -31
- package/dist/cjs/ADSponsoredResources.js +32 -31
- package/dist/cjs/ADWebcast.js +32 -31
- package/dist/cjs/ADWelcome.js +33 -32
- package/dist/cjs/{ADlgInfeed-e92b6f9f.js → ADlgInfeed-0941023e.js} +11 -10
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +35 -34
- package/dist/cjs/AdSlotsProvider.js +17 -16
- package/dist/cjs/AlphabeticList.js +26 -25
- package/dist/cjs/ArticleCarousel.js +24 -23
- package/dist/cjs/ArticleProgramLandingPage.js +57 -56
- package/dist/cjs/ArticleSeriesLandingPage.js +41 -40
- package/dist/cjs/ArticleSeriesListing.js +61 -60
- package/dist/cjs/Auth.js +686 -462
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-c21aac7f.js} +14 -13
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-36e54d77.js} +56 -55
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +36 -33
- package/dist/cjs/Column3.js +61 -58
- package/dist/cjs/ConferenceArticleCard.js +39 -38
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +107 -103
- package/dist/cjs/DeckQueue.js +92 -88
- package/dist/cjs/{Dfp-946b8c39.js → Dfp-3f0ed4c8.js} +34 -33
- package/dist/cjs/EventsDeck.js +159 -152
- package/dist/cjs/ExternalResources.js +80 -79
- package/dist/cjs/Feature.js +27 -25
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +182 -178
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +59 -58
- package/dist/cjs/HamMagazine.js +144 -139
- 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 +70 -69
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/IssueContentDeck.js +77 -72
- package/dist/cjs/IssueDeck.js +76 -71
- package/dist/cjs/IssueLanding.js +72 -71
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +40 -38
- package/dist/cjs/MasterDeck.js +80 -79
- package/dist/cjs/MediaSeriesLanding.js +961 -961
- package/dist/cjs/NavDvm.js +79 -74
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +152 -147
- package/dist/cjs/NavNative.js +147 -139
- 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 +109 -108
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PubSection.js +42 -41
- package/dist/cjs/PubToc.js +16 -15
- package/dist/cjs/PublicationDeck.js +66 -61
- package/dist/cjs/PublicationLanding.js +142 -138
- package/dist/cjs/QueueDeckExpanded.js +294 -294
- package/dist/cjs/RecentNews.js +24 -23
- package/dist/cjs/RelatedContent.js +53 -52
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- 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 +38 -38
- package/dist/cjs/{SeriesSlider-4abb21b4.js → SeriesSlider-c022ce04.js} +42 -41
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +39 -38
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-31afe61f.js} +40 -36
- package/dist/cjs/SocialShare.js +36 -31
- package/dist/cjs/TaxonomyCard.js +63 -58
- package/dist/cjs/TaxonomyDescription.js +54 -53
- package/dist/cjs/TemplateNormal.js +76 -75
- 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 -72
- package/dist/cjs/VideoSeriesCard.js +33 -32
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +49 -48
- package/dist/cjs/VideoSeriesListing.js +78 -77
- package/dist/cjs/View.js +267 -261
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +67 -66
- package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
- 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-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
- package/dist/cjs/{extends-60837c34.js → extends-29bdbc6d.js} +8 -7
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +140 -76
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-34e3ba68.js → getTargeting-be6168ad.js} +12 -12
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-8bf6c863.js → index-0e4427c8.js} +12 -11
- package/dist/cjs/{index-61690275.js → index-59b791eb.js} +1280 -1040
- package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
- package/dist/cjs/{index-be0c82be.js → index-efca863c.js} +36 -30
- package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
- 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 +163 -160
- package/dist/cjs/{inherits-c9f99d47.js → inherits-c2065b95.js} +22 -19
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
- package/dist/cjs/main-025fdc78.js +973 -0
- 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-5d1bc3b3.js} +14 -14
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-725500bc.js → typeof-88a668c5.js} +36 -36
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +26 -26
- package/dist/esm/AD300x250x600.js +26 -26
- package/dist/esm/AD728x90.js +29 -29
- package/dist/esm/ADFloatingFooter.js +28 -28
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +28 -28
- package/dist/esm/{ADInfeed-171677b4.js → ADInfeed-e1e18f87.js} +11 -11
- package/dist/esm/ADSkyscraper.js +28 -28
- package/dist/esm/ADSponsoredResources.js +28 -28
- package/dist/esm/ADWebcast.js +28 -28
- package/dist/esm/ADWelcome.js +29 -29
- package/dist/esm/{ADlgInfeed-f2ac31d1.js → ADlgInfeed-c6d2831b.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +26 -26
- package/dist/esm/AdSlotsProvider.js +13 -13
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +53 -53
- package/dist/esm/ArticleSeriesLandingPage.js +37 -37
- package/dist/esm/ArticleSeriesListing.js +56 -56
- package/dist/esm/Auth.js +665 -445
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-5ae7409f.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-52cf21c5.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +30 -30
- package/dist/esm/Column3.js +55 -55
- package/dist/esm/ConferenceArticleCard.js +34 -34
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +97 -97
- package/dist/esm/DeckQueue.js +82 -82
- package/dist/esm/{Dfp-965b3873.js → Dfp-a304d96c.js} +22 -22
- package/dist/esm/EventsDeck.js +129 -129
- package/dist/esm/ExternalResources.js +73 -73
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +170 -170
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +115 -115
- 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 +66 -66
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +60 -60
- package/dist/esm/IssueDeck.js +64 -64
- package/dist/esm/IssueLanding.js +68 -68
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +34 -34
- package/dist/esm/MasterDeck.js +76 -76
- package/dist/esm/MediaSeriesLanding.js +786 -789
- package/dist/esm/NavDvm.js +59 -59
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +126 -126
- package/dist/esm/NavNative.js +116 -116
- package/dist/esm/NavNormal.js +38 -38
- 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 +104 -104
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +38 -38
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +52 -52
- package/dist/esm/PublicationLanding.js +125 -125
- package/dist/esm/QueueDeckExpanded.js +274 -274
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +47 -47
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +13 -13
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +32 -32
- package/dist/esm/{SeriesSlider-36be7223.js → SeriesSlider-8414085b.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +34 -34
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-719f230f.js → SocialSearchComponent-116b1d5d.js} +30 -30
- package/dist/esm/SocialShare.js +30 -27
- package/dist/esm/TaxonomyCard.js +53 -53
- package/dist/esm/TaxonomyDescription.js +48 -48
- package/dist/esm/TemplateNormal.js +71 -71
- 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 +65 -65
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +41 -41
- package/dist/esm/VideoSeriesListing.js +73 -73
- package/dist/esm/View.js +248 -246
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +50 -50
- package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
- 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-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
- package/dist/esm/{extends-eb69e8ac.js → extends-60e0e1c6.js} +8 -8
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +135 -71
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-739e9fed.js → getTargeting-68291ce9.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-73819142.js → index-0dbff1d1.js} +36 -30
- package/dist/esm/{index-5f7e79e7.js → index-35bdcc81.js} +10 -10
- package/dist/esm/{index-c1691ede.js → index-68283a6a.js} +1217 -984
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index-a9e53f80.js → index-888f9253.js} +6 -6
- 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 -132
- package/dist/esm/{inherits-fb9b6e8f.js → inherits-a41fe93f.js} +20 -20
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
- package/dist/esm/main-b5c5aac1.js +961 -0
- 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-be2f7a22.js} +14 -14
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-6435ba1c.js → typeof-a286cf0c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
- package/package.json +108 -108
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/main-e4a934b2.js +0 -851
- package/dist/esm/stringify-4330ccdc.js +0 -15
|
@@ -1,40 +1,39 @@
|
|
|
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-be2f7a22.js';
|
|
3
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
4
|
+
import { i as imageUrlBuilder } from './index-0dbff1d1.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-5f7e79e7.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 { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
20
|
-
import Segment from './Segment.js';
|
|
21
|
-
import Beam from './Beam.js';
|
|
22
|
-
import DFPAdSlot from './AdSlot.js';
|
|
23
|
-
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
24
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_18, b as main_42, m as main_43 } from './main-b5c5aac1.js';
|
|
14
|
+
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
15
|
+
import { _ as _extends, b as _extends$1 } from './extends-60e0e1c6.js';
|
|
16
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
17
|
+
import { _ as _typeof$1 } from './typeof-a286cf0c.js';
|
|
18
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-b43c695a.js';
|
|
25
19
|
import GroupDeck from './GroupDeck.js';
|
|
26
|
-
import {
|
|
27
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
28
|
-
import { u as util } from './util-7700fc59.js';
|
|
29
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
30
|
-
import Head from 'next/head';
|
|
20
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
31
21
|
import SocialShare from './SocialShare.js';
|
|
32
|
-
import { _ as
|
|
33
|
-
import
|
|
22
|
+
import { _ as _export, a as _core } from './_to-object-b50e61c3.js';
|
|
23
|
+
import { _ as _objectToArray } from './_object-to-array-0f197f89.js';
|
|
24
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
25
|
+
import Pagination from 'react-bootstrap/Pagination';
|
|
34
26
|
import Button$1 from 'react-bootstrap/Button';
|
|
35
|
-
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, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-a41fe93f.js';
|
|
33
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
34
|
+
import Figure$2 from 'react-bootstrap/Figure';
|
|
36
35
|
|
|
37
|
-
var urlFor = function urlFor(source, builder) {
|
|
36
|
+
var urlFor$4 = function urlFor(source, builder) {
|
|
38
37
|
return builder.image(source).auto('format');
|
|
39
38
|
};
|
|
40
39
|
|
|
@@ -44,7 +43,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
44
43
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
45
44
|
};
|
|
46
45
|
|
|
47
|
-
var Slideshow = function Slideshow(_ref) {
|
|
46
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
48
47
|
var slides = _ref.slides,
|
|
49
48
|
client = _ref.client,
|
|
50
49
|
pageview = _ref.pageview;
|
|
@@ -73,20 +72,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
73
72
|
if (pageview) pageview(router.asPath);
|
|
74
73
|
}, [router]);
|
|
75
74
|
|
|
76
|
-
return
|
|
75
|
+
return React.createElement(
|
|
77
76
|
'div',
|
|
78
77
|
{ className: 'mt-3 mb-3' },
|
|
79
|
-
|
|
78
|
+
React.createElement(
|
|
80
79
|
Carousel,
|
|
81
80
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
82
81
|
return onChangeSlide(selectedIndex, router);
|
|
83
82
|
}, interval: null },
|
|
84
83
|
slides && slides.map(function (slide) {
|
|
85
|
-
return
|
|
84
|
+
return React.createElement(
|
|
86
85
|
Carousel.Item,
|
|
87
86
|
{ key: slide._key },
|
|
88
|
-
|
|
89
|
-
slide.caption &&
|
|
87
|
+
React.createElement('img', { src: slide.asset && urlFor$4(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
88
|
+
slide.caption && React.createElement(
|
|
90
89
|
'p',
|
|
91
90
|
{ className: 'p-2' },
|
|
92
91
|
slide.caption
|
|
@@ -97,21 +96,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
97
96
|
);
|
|
98
97
|
};
|
|
99
98
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
// do not edit .js files directly - edit src/index.jst
|
|
100
|
+
|
|
101
|
+
|
|
103
102
|
|
|
104
103
|
var fastDeepEqual = function equal(a, b) {
|
|
105
104
|
if (a === b) return true;
|
|
106
105
|
|
|
107
106
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
108
|
-
|
|
109
|
-
, arrB = isArray(b)
|
|
110
|
-
, i
|
|
111
|
-
, length
|
|
112
|
-
, key;
|
|
107
|
+
if (a.constructor !== b.constructor) return false;
|
|
113
108
|
|
|
114
|
-
|
|
109
|
+
var length, i, keys;
|
|
110
|
+
if (Array.isArray(a)) {
|
|
115
111
|
length = a.length;
|
|
116
112
|
if (length != b.length) return false;
|
|
117
113
|
for (i = length; i-- !== 0;)
|
|
@@ -119,35 +115,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
119
115
|
return true;
|
|
120
116
|
}
|
|
121
117
|
|
|
122
|
-
if (arrA != arrB) return false;
|
|
123
118
|
|
|
124
|
-
var dateA = a instanceof Date
|
|
125
|
-
, dateB = b instanceof Date;
|
|
126
|
-
if (dateA != dateB) return false;
|
|
127
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
128
119
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
if (
|
|
132
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
120
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
121
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
122
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
133
123
|
|
|
134
|
-
|
|
124
|
+
keys = Object.keys(a);
|
|
135
125
|
length = keys.length;
|
|
136
|
-
|
|
137
|
-
if (length !== keyList(b).length)
|
|
138
|
-
return false;
|
|
126
|
+
if (length !== Object.keys(b).length) return false;
|
|
139
127
|
|
|
140
128
|
for (i = length; i-- !== 0;)
|
|
141
|
-
if (!
|
|
129
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
142
130
|
|
|
143
131
|
for (i = length; i-- !== 0;) {
|
|
144
|
-
key = keys[i];
|
|
132
|
+
var key = keys[i];
|
|
133
|
+
|
|
145
134
|
if (!equal(a[key], b[key])) return false;
|
|
146
135
|
}
|
|
147
136
|
|
|
148
137
|
return true;
|
|
149
138
|
}
|
|
150
139
|
|
|
140
|
+
// true if both NaN, false otherwise
|
|
151
141
|
return a!==a && b!==b;
|
|
152
142
|
};
|
|
153
143
|
|
|
@@ -685,14 +675,14 @@ function coerce(val) {
|
|
|
685
675
|
return val;
|
|
686
676
|
}
|
|
687
677
|
});
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
678
|
+
debug.coerce;
|
|
679
|
+
debug.disable;
|
|
680
|
+
debug.enable;
|
|
681
|
+
debug.enabled;
|
|
682
|
+
debug.humanize;
|
|
683
|
+
debug.names;
|
|
684
|
+
debug.skips;
|
|
685
|
+
debug.formatters;
|
|
696
686
|
|
|
697
687
|
var browser = createCommonjsModule(function (module, exports) {
|
|
698
688
|
/**
|
|
@@ -881,13 +871,13 @@ function localstorage() {
|
|
|
881
871
|
} catch (e) {}
|
|
882
872
|
}
|
|
883
873
|
});
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
874
|
+
browser.log;
|
|
875
|
+
browser.formatArgs;
|
|
876
|
+
browser.save;
|
|
877
|
+
browser.load;
|
|
878
|
+
browser.useColors;
|
|
879
|
+
browser.storage;
|
|
880
|
+
browser.colors;
|
|
891
881
|
|
|
892
882
|
// MIT lisence
|
|
893
883
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1162,14 +1152,14 @@ function init (debug) {
|
|
|
1162
1152
|
|
|
1163
1153
|
exports.enable(load());
|
|
1164
1154
|
});
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1155
|
+
node.init;
|
|
1156
|
+
node.log;
|
|
1157
|
+
node.formatArgs;
|
|
1158
|
+
node.save;
|
|
1159
|
+
node.load;
|
|
1160
|
+
node.useColors;
|
|
1161
|
+
node.colors;
|
|
1162
|
+
node.inspectOpts;
|
|
1173
1163
|
|
|
1174
1164
|
var src = createCommonjsModule(function (module) {
|
|
1175
1165
|
/**
|
|
@@ -1570,199 +1560,239 @@ module.exports = exports['default'];
|
|
|
1570
1560
|
|
|
1571
1561
|
var youTubePlayer = unwrapExports(dist);
|
|
1572
1562
|
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
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; };
|
|
1563
|
+
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); }
|
|
1576
1564
|
|
|
1577
1565
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1578
1566
|
|
|
1579
|
-
function
|
|
1567
|
+
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); } }
|
|
1568
|
+
|
|
1569
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1570
|
+
|
|
1571
|
+
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); }
|
|
1572
|
+
|
|
1573
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1574
|
+
|
|
1575
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1576
|
+
|
|
1577
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1578
|
+
|
|
1579
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1580
|
+
|
|
1581
|
+
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; } }
|
|
1580
1582
|
|
|
1581
|
-
function
|
|
1583
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1584
|
+
|
|
1585
|
+
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; }
|
|
1586
|
+
|
|
1587
|
+
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; }
|
|
1582
1588
|
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
*
|
|
1586
|
-
*
|
|
1587
|
-
* @param {Object}
|
|
1589
|
+
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; }
|
|
1590
|
+
/**
|
|
1591
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1592
|
+
*
|
|
1593
|
+
* @param {Object} prevProps
|
|
1594
|
+
* @param {Object} props
|
|
1588
1595
|
*/
|
|
1596
|
+
|
|
1589
1597
|
function shouldUpdateVideo(prevProps, props) {
|
|
1590
1598
|
// A changing video should always trigger an update
|
|
1591
1599
|
if (prevProps.videoId !== props.videoId) {
|
|
1592
1600
|
return true;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1601
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1596
1602
|
// update.
|
|
1603
|
+
|
|
1604
|
+
|
|
1597
1605
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1598
1606
|
var vars = props.opts.playerVars || {};
|
|
1599
|
-
|
|
1600
1607
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1601
1608
|
}
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
*
|
|
1608
|
-
* @param {Object} opts
|
|
1609
|
+
/**
|
|
1610
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1611
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1612
|
+
* player reset is necessary.
|
|
1613
|
+
*
|
|
1614
|
+
* @param {Object} opts
|
|
1609
1615
|
*/
|
|
1616
|
+
|
|
1617
|
+
|
|
1610
1618
|
function filterResetOptions(opts) {
|
|
1611
|
-
return
|
|
1612
|
-
playerVars:
|
|
1619
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1620
|
+
playerVars: _objectSpread({
|
|
1613
1621
|
autoplay: 0,
|
|
1614
1622
|
start: 0,
|
|
1615
1623
|
end: 0
|
|
1616
|
-
})
|
|
1624
|
+
}, opts.playerVars)
|
|
1617
1625
|
});
|
|
1618
1626
|
}
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1623
|
-
*
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
* @param {Object}
|
|
1627
|
-
* @param {Object} props
|
|
1627
|
+
/**
|
|
1628
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1629
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1630
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1631
|
+
* those.
|
|
1632
|
+
*
|
|
1633
|
+
* @param {Object} prevProps
|
|
1634
|
+
* @param {Object} props
|
|
1628
1635
|
*/
|
|
1636
|
+
|
|
1637
|
+
|
|
1629
1638
|
function shouldResetPlayer(prevProps, props) {
|
|
1630
1639
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1631
1640
|
}
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
*
|
|
1635
|
-
*
|
|
1636
|
-
* @param {Object}
|
|
1637
|
-
* @param {Object} props
|
|
1641
|
+
/**
|
|
1642
|
+
* Check whether a props change should result in an id or className update.
|
|
1643
|
+
*
|
|
1644
|
+
* @param {Object} prevProps
|
|
1645
|
+
* @param {Object} props
|
|
1638
1646
|
*/
|
|
1647
|
+
|
|
1648
|
+
|
|
1639
1649
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1640
1650
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1641
1651
|
}
|
|
1642
1652
|
|
|
1643
|
-
var YouTube = function (_React$Component) {
|
|
1653
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1644
1654
|
_inherits(YouTube, _React$Component);
|
|
1645
1655
|
|
|
1656
|
+
var _super = _createSuper(YouTube);
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1660
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1661
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1662
|
+
*/
|
|
1646
1663
|
function YouTube(props) {
|
|
1664
|
+
var _this;
|
|
1665
|
+
|
|
1647
1666
|
_classCallCheck(this, YouTube);
|
|
1648
1667
|
|
|
1649
|
-
|
|
1668
|
+
_this = _super.call(this, props);
|
|
1650
1669
|
|
|
1651
|
-
_this
|
|
1670
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1652
1671
|
return _this.props.onReady(event);
|
|
1653
|
-
};
|
|
1672
|
+
});
|
|
1654
1673
|
|
|
1655
|
-
_this
|
|
1674
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1656
1675
|
return _this.props.onError(event);
|
|
1657
|
-
};
|
|
1676
|
+
});
|
|
1658
1677
|
|
|
1659
|
-
_this
|
|
1678
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1660
1679
|
_this.props.onStateChange(event);
|
|
1661
|
-
switch (event.data) {
|
|
1662
1680
|
|
|
1681
|
+
switch (event.data) {
|
|
1663
1682
|
case YouTube.PlayerState.ENDED:
|
|
1664
1683
|
_this.props.onEnd(event);
|
|
1684
|
+
|
|
1665
1685
|
break;
|
|
1666
1686
|
|
|
1667
1687
|
case YouTube.PlayerState.PLAYING:
|
|
1668
1688
|
_this.props.onPlay(event);
|
|
1689
|
+
|
|
1669
1690
|
break;
|
|
1670
1691
|
|
|
1671
1692
|
case YouTube.PlayerState.PAUSED:
|
|
1672
1693
|
_this.props.onPause(event);
|
|
1694
|
+
|
|
1673
1695
|
break;
|
|
1674
1696
|
}
|
|
1675
|
-
};
|
|
1697
|
+
});
|
|
1676
1698
|
|
|
1677
|
-
_this
|
|
1699
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1678
1700
|
return _this.props.onPlaybackRateChange(event);
|
|
1679
|
-
};
|
|
1701
|
+
});
|
|
1680
1702
|
|
|
1681
|
-
_this
|
|
1703
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1682
1704
|
return _this.props.onPlaybackQualityChange(event);
|
|
1683
|
-
};
|
|
1705
|
+
});
|
|
1684
1706
|
|
|
1685
|
-
_this
|
|
1707
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1686
1708
|
// do not attempt to create a player server-side, it won't work
|
|
1687
|
-
if (typeof document === 'undefined') return;
|
|
1688
|
-
|
|
1689
|
-
var playerOpts =
|
|
1709
|
+
if (typeof document === 'undefined') return; // create player
|
|
1710
|
+
|
|
1711
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1690
1712
|
// preload the `videoId` video if one is already given
|
|
1691
1713
|
videoId: _this.props.videoId
|
|
1692
1714
|
});
|
|
1693
|
-
|
|
1694
|
-
// attach event handlers
|
|
1715
|
+
|
|
1716
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1717
|
+
|
|
1695
1718
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1719
|
+
|
|
1696
1720
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1721
|
+
|
|
1697
1722
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1723
|
+
|
|
1698
1724
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1725
|
+
|
|
1699
1726
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1700
|
-
};
|
|
1727
|
+
});
|
|
1701
1728
|
|
|
1702
|
-
_this
|
|
1729
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1703
1730
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1704
|
-
};
|
|
1731
|
+
});
|
|
1705
1732
|
|
|
1706
|
-
_this
|
|
1733
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1707
1734
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1708
1735
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1709
1736
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1710
1737
|
});
|
|
1711
|
-
};
|
|
1738
|
+
});
|
|
1739
|
+
|
|
1740
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1741
|
+
return _this.internalPlayer;
|
|
1742
|
+
});
|
|
1712
1743
|
|
|
1713
|
-
_this
|
|
1744
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1714
1745
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1715
1746
|
_this.internalPlayer.stopVideo();
|
|
1747
|
+
|
|
1716
1748
|
return;
|
|
1717
|
-
}
|
|
1749
|
+
} // set queueing options
|
|
1750
|
+
|
|
1718
1751
|
|
|
1719
|
-
// set queueing options
|
|
1720
1752
|
var autoplay = false;
|
|
1721
1753
|
var opts = {
|
|
1722
1754
|
videoId: _this.props.videoId
|
|
1723
1755
|
};
|
|
1756
|
+
|
|
1724
1757
|
if ('playerVars' in _this.props.opts) {
|
|
1725
1758
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1759
|
+
|
|
1726
1760
|
if ('start' in _this.props.opts.playerVars) {
|
|
1727
1761
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1728
1762
|
}
|
|
1763
|
+
|
|
1729
1764
|
if ('end' in _this.props.opts.playerVars) {
|
|
1730
1765
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1731
1766
|
}
|
|
1732
|
-
}
|
|
1767
|
+
} // if autoplay is enabled loadVideoById
|
|
1768
|
+
|
|
1733
1769
|
|
|
1734
|
-
// if autoplay is enabled loadVideoById
|
|
1735
1770
|
if (autoplay) {
|
|
1736
1771
|
_this.internalPlayer.loadVideoById(opts);
|
|
1772
|
+
|
|
1737
1773
|
return;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1774
|
+
} // default behaviour just cues the video
|
|
1775
|
+
|
|
1776
|
+
|
|
1740
1777
|
_this.internalPlayer.cueVideoById(opts);
|
|
1741
|
-
};
|
|
1778
|
+
});
|
|
1742
1779
|
|
|
1743
|
-
_this
|
|
1780
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1744
1781
|
_this.container = container;
|
|
1745
|
-
};
|
|
1782
|
+
});
|
|
1746
1783
|
|
|
1747
1784
|
_this.container = null;
|
|
1748
1785
|
_this.internalPlayer = null;
|
|
1749
1786
|
return _this;
|
|
1750
1787
|
}
|
|
1751
1788
|
|
|
1752
|
-
/**
|
|
1753
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1754
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1755
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1756
|
-
*/
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
1789
|
_createClass(YouTube, [{
|
|
1760
|
-
key:
|
|
1790
|
+
key: "componentDidMount",
|
|
1761
1791
|
value: function componentDidMount() {
|
|
1762
1792
|
this.createPlayer();
|
|
1763
1793
|
}
|
|
1764
1794
|
}, {
|
|
1765
|
-
key:
|
|
1795
|
+
key: "componentDidUpdate",
|
|
1766
1796
|
value: function componentDidUpdate(prevProps) {
|
|
1767
1797
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1768
1798
|
this.updatePlayer();
|
|
@@ -1777,112 +1807,58 @@ var YouTube = function (_React$Component) {
|
|
|
1777
1807
|
}
|
|
1778
1808
|
}
|
|
1779
1809
|
}, {
|
|
1780
|
-
key:
|
|
1810
|
+
key: "componentWillUnmount",
|
|
1781
1811
|
value: function componentWillUnmount() {
|
|
1782
|
-
/**
|
|
1783
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1784
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1785
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1786
|
-
* this method isn't quick enough to reset the container element.
|
|
1812
|
+
/**
|
|
1813
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1814
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1815
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1816
|
+
* this method isn't quick enough to reset the container element.
|
|
1787
1817
|
*/
|
|
1788
1818
|
this.internalPlayer.destroy();
|
|
1789
1819
|
}
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
*
|
|
1793
|
-
*
|
|
1794
|
-
*
|
|
1795
|
-
* @param {Object} target - player object
|
|
1796
|
-
*/
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
/**
|
|
1800
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1801
|
-
*
|
|
1802
|
-
* @param {Object} event
|
|
1803
|
-
* @param {Integer} data - error type
|
|
1804
|
-
* @param {Object} target - player object
|
|
1805
|
-
*/
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
/**
|
|
1809
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1810
|
-
*
|
|
1811
|
-
* @param {Object} event
|
|
1812
|
-
* @param {Integer} data - status change type
|
|
1813
|
-
* @param {Object} target - actual YT player
|
|
1814
|
-
*/
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
/**
|
|
1818
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1819
|
-
*
|
|
1820
|
-
* @param {Object} event
|
|
1821
|
-
* @param {Float} data - playback rate
|
|
1822
|
-
* @param {Object} target - actual YT player
|
|
1823
|
-
*/
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
/**
|
|
1827
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1828
|
-
*
|
|
1829
|
-
* @param {Object} event
|
|
1830
|
-
* @param {String} data - playback quality
|
|
1831
|
-
* @param {Object} target - actual YT player
|
|
1832
|
-
*/
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
/**
|
|
1836
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1837
|
-
*/
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
/**
|
|
1841
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1842
|
-
*/
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
/**
|
|
1846
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1847
|
-
* React should update this automatically but since the Youtube Player API
|
|
1848
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1849
|
-
*/
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
/**
|
|
1853
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1854
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1855
|
-
* Youtube Player API methods to update the video.
|
|
1820
|
+
/**
|
|
1821
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1822
|
+
*
|
|
1823
|
+
* @param {Object} event
|
|
1824
|
+
* @param {Object} target - player object
|
|
1856
1825
|
*/
|
|
1857
1826
|
|
|
1858
1827
|
}, {
|
|
1859
|
-
key:
|
|
1828
|
+
key: "render",
|
|
1860
1829
|
value: function render() {
|
|
1861
|
-
return
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1830
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1831
|
+
className: this.props.containerClassName
|
|
1832
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1833
|
+
id: this.props.id,
|
|
1834
|
+
className: this.props.className,
|
|
1835
|
+
ref: this.refContainer
|
|
1836
|
+
}));
|
|
1866
1837
|
}
|
|
1867
1838
|
}]);
|
|
1868
1839
|
|
|
1869
1840
|
return YouTube;
|
|
1870
|
-
}(
|
|
1841
|
+
}(React.Component);
|
|
1842
|
+
|
|
1843
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1844
|
+
UNSTARTED: -1,
|
|
1845
|
+
ENDED: 0,
|
|
1846
|
+
PLAYING: 1,
|
|
1847
|
+
PAUSED: 2,
|
|
1848
|
+
BUFFERING: 3,
|
|
1849
|
+
CUED: 5
|
|
1850
|
+
});
|
|
1871
1851
|
|
|
1872
1852
|
YouTube.propTypes = {
|
|
1873
1853
|
videoId: PropTypes.string,
|
|
1874
|
-
|
|
1875
1854
|
// custom ID for player element
|
|
1876
1855
|
id: PropTypes.string,
|
|
1877
|
-
|
|
1878
1856
|
// custom class name for player element
|
|
1879
1857
|
className: PropTypes.string,
|
|
1880
1858
|
// custom class name for player container element
|
|
1881
1859
|
containerClassName: PropTypes.string,
|
|
1882
|
-
|
|
1883
1860
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1884
1861
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1885
|
-
|
|
1886
1862
|
// event subscriptions
|
|
1887
1863
|
onReady: PropTypes.func,
|
|
1888
1864
|
onError: PropTypes.func,
|
|
@@ -1894,6 +1870,7 @@ YouTube.propTypes = {
|
|
|
1894
1870
|
onPlaybackQualityChange: PropTypes.func
|
|
1895
1871
|
};
|
|
1896
1872
|
YouTube.defaultProps = {
|
|
1873
|
+
videoId: null,
|
|
1897
1874
|
id: null,
|
|
1898
1875
|
className: null,
|
|
1899
1876
|
opts: {},
|
|
@@ -1907,14 +1884,6 @@ YouTube.defaultProps = {
|
|
|
1907
1884
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1908
1885
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1909
1886
|
};
|
|
1910
|
-
YouTube.PlayerState = {
|
|
1911
|
-
UNSTARTED: -1,
|
|
1912
|
-
ENDED: 0,
|
|
1913
|
-
PLAYING: 1,
|
|
1914
|
-
PAUSED: 2,
|
|
1915
|
-
BUFFERING: 3,
|
|
1916
|
-
CUED: 5
|
|
1917
|
-
};
|
|
1918
1887
|
|
|
1919
1888
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1920
1889
|
var url = _ref.url,
|
|
@@ -1953,8 +1922,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1953
1922
|
var duration = player.getDuration();
|
|
1954
1923
|
var queue = Math.floor(duration / 10);
|
|
1955
1924
|
var segment = Math.floor(current / queue);
|
|
1956
|
-
Beam.report_beam_video('Ready',
|
|
1957
|
-
Segment.report_video_event('Video Ready',
|
|
1925
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
1926
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
1958
1927
|
};
|
|
1959
1928
|
|
|
1960
1929
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1964,8 +1933,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1964
1933
|
var segment = Math.floor(current / queue);
|
|
1965
1934
|
|
|
1966
1935
|
if (!queueProgress.includes(segment)) {
|
|
1967
|
-
Beam.report_beam_video('Segment',
|
|
1968
|
-
Segment.report_video_event('Video Segment',
|
|
1936
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
1937
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
1969
1938
|
queueProgress.push(segment);
|
|
1970
1939
|
}
|
|
1971
1940
|
};
|
|
@@ -1978,8 +1947,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1978
1947
|
var queue = Math.floor(duration / 10);
|
|
1979
1948
|
var segment = Math.floor(current / queue);
|
|
1980
1949
|
|
|
1981
|
-
Beam.report_beam_video('Play',
|
|
1982
|
-
Segment.report_video_event('Video Play',
|
|
1950
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
1951
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
1983
1952
|
|
|
1984
1953
|
if (!playReported) {
|
|
1985
1954
|
setPlayReported(true);
|
|
@@ -1998,8 +1967,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1998
1967
|
var queue = Math.floor(duration / 10);
|
|
1999
1968
|
var segment = Math.floor(current / queue);
|
|
2000
1969
|
|
|
2001
|
-
Beam.report_beam_video('End',
|
|
2002
|
-
Segment.report_video_event('Video End',
|
|
1970
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
1971
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
2003
1972
|
setEndReported(true);
|
|
2004
1973
|
clearInterval(intervalID);
|
|
2005
1974
|
}
|
|
@@ -2012,15 +1981,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2012
1981
|
var queue = Math.floor(duration / 10);
|
|
2013
1982
|
var segment = Math.floor(current / queue);
|
|
2014
1983
|
|
|
2015
|
-
Beam.report_beam_video('Pause',
|
|
2016
|
-
Segment.report_video_event('Video Pause',
|
|
1984
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
1985
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
2017
1986
|
};
|
|
2018
1987
|
|
|
2019
|
-
return
|
|
1988
|
+
return React.createElement(
|
|
2020
1989
|
'div',
|
|
2021
1990
|
{ id: 'fluid-video-container' },
|
|
2022
|
-
|
|
2023
|
-
|
|
1991
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1992
|
+
React.createElement(
|
|
2024
1993
|
'style',
|
|
2025
1994
|
{ jsx: 'true' },
|
|
2026
1995
|
'\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 '
|
|
@@ -2033,20 +2002,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2033
2002
|
content = _ref.content,
|
|
2034
2003
|
getSerializers = _ref.getSerializers;
|
|
2035
2004
|
|
|
2036
|
-
return
|
|
2005
|
+
return React.createElement(
|
|
2037
2006
|
'article',
|
|
2038
2007
|
{ className: 'sidebar' },
|
|
2039
|
-
|
|
2008
|
+
React.createElement(
|
|
2040
2009
|
'div',
|
|
2041
2010
|
null,
|
|
2042
|
-
|
|
2011
|
+
React.createElement(
|
|
2043
2012
|
'h3',
|
|
2044
2013
|
null,
|
|
2045
2014
|
caption
|
|
2046
2015
|
),
|
|
2047
|
-
|
|
2016
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2048
2017
|
),
|
|
2049
|
-
|
|
2018
|
+
React.createElement(
|
|
2050
2019
|
'style',
|
|
2051
2020
|
{ jsx: 'true' },
|
|
2052
2021
|
'\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 '
|
|
@@ -2057,18 +2026,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2057
2026
|
var TableShow = function TableShow(_ref) {
|
|
2058
2027
|
var rows = _ref.rows;
|
|
2059
2028
|
|
|
2060
|
-
return
|
|
2029
|
+
return React.createElement(
|
|
2061
2030
|
Table,
|
|
2062
2031
|
{ bordered: true, hover: true, responsive: true },
|
|
2063
|
-
|
|
2032
|
+
React.createElement(
|
|
2064
2033
|
'tbody',
|
|
2065
2034
|
null,
|
|
2066
2035
|
rows && rows.map(function (row) {
|
|
2067
|
-
return
|
|
2036
|
+
return React.createElement(
|
|
2068
2037
|
'tr',
|
|
2069
2038
|
{ key: row._key },
|
|
2070
2039
|
row.cells && row.cells.map(function (cell, index) {
|
|
2071
|
-
return cell &&
|
|
2040
|
+
return cell && React.createElement(
|
|
2072
2041
|
'td',
|
|
2073
2042
|
{ key: index },
|
|
2074
2043
|
cell
|
|
@@ -2171,18 +2140,18 @@ var Media = function Media(_ref) {
|
|
|
2171
2140
|
margin: imageMargin
|
|
2172
2141
|
};
|
|
2173
2142
|
|
|
2174
|
-
return
|
|
2143
|
+
return React.createElement(
|
|
2175
2144
|
Figure$1,
|
|
2176
2145
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2177
|
-
|
|
2146
|
+
React.createElement(
|
|
2178
2147
|
'a',
|
|
2179
2148
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2180
|
-
|
|
2149
|
+
React.createElement(
|
|
2181
2150
|
LazyLoad,
|
|
2182
2151
|
{ once: true },
|
|
2183
|
-
|
|
2152
|
+
React.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2184
2153
|
),
|
|
2185
|
-
caption &&
|
|
2154
|
+
caption && React.createElement(
|
|
2186
2155
|
Figure$1.Caption,
|
|
2187
2156
|
{ className: 'media-caption' },
|
|
2188
2157
|
caption
|
|
@@ -2190,9 +2159,9 @@ var Media = function Media(_ref) {
|
|
|
2190
2159
|
)
|
|
2191
2160
|
);
|
|
2192
2161
|
} else if (caption && caption !== '') {
|
|
2193
|
-
return
|
|
2162
|
+
return React.createElement(
|
|
2194
2163
|
'a',
|
|
2195
|
-
_extends
|
|
2164
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2196
2165
|
href: uploadDoc.asset.url + '?dl='
|
|
2197
2166
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2198
2167
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2210,10 +2179,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2210
2179
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2211
2180
|
|
|
2212
2181
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2213
|
-
return
|
|
2182
|
+
return React.createElement(
|
|
2214
2183
|
'div',
|
|
2215
2184
|
{ className: 'd-block text-center mb-3' },
|
|
2216
|
-
|
|
2185
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2217
2186
|
);
|
|
2218
2187
|
};
|
|
2219
2188
|
|
|
@@ -2247,8 +2216,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2247
2216
|
var duration = player.duration;
|
|
2248
2217
|
var queue = Math.floor(duration / 10);
|
|
2249
2218
|
var segment = Math.floor(current / queue);
|
|
2250
|
-
Beam.report_beam_video('Ready',
|
|
2251
|
-
Segment.report_video_event('Video Ready',
|
|
2219
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
|
|
2220
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
|
|
2252
2221
|
};
|
|
2253
2222
|
|
|
2254
2223
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2257,8 +2226,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2257
2226
|
var queue = Math.floor(duration / 10);
|
|
2258
2227
|
var segment = Math.floor(current / queue);
|
|
2259
2228
|
if (!queueProgress.includes(segment)) {
|
|
2260
|
-
Beam.report_beam_video('Segment',
|
|
2261
|
-
Segment.report_video_event('Video Segment',
|
|
2229
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
|
|
2230
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
|
|
2262
2231
|
queueProgress.push(segment);
|
|
2263
2232
|
}
|
|
2264
2233
|
};
|
|
@@ -2270,8 +2239,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2270
2239
|
var duration = player.duration;
|
|
2271
2240
|
var queue = Math.floor(duration / 10);
|
|
2272
2241
|
var segment = Math.floor(current / queue);
|
|
2273
|
-
Beam.report_beam_video('Play',
|
|
2274
|
-
Segment.report_video_event('Video Play',
|
|
2242
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
|
|
2243
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
|
|
2275
2244
|
|
|
2276
2245
|
if (!playReported) {
|
|
2277
2246
|
event.persist();
|
|
@@ -2291,8 +2260,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2291
2260
|
var queue = Math.floor(duration / 10);
|
|
2292
2261
|
var segment = Math.floor(current / queue);
|
|
2293
2262
|
|
|
2294
|
-
Beam.report_beam_video('End',
|
|
2295
|
-
Segment.report_video_event('Video End',
|
|
2263
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
|
|
2264
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
|
|
2296
2265
|
setEndReported(true);
|
|
2297
2266
|
clearInterval(intervalID);
|
|
2298
2267
|
}
|
|
@@ -2304,14 +2273,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2304
2273
|
var duration = player.duration - current;
|
|
2305
2274
|
var queue = Math.floor(duration / 10);
|
|
2306
2275
|
var segment = Math.floor(current / queue);
|
|
2307
|
-
Beam.report_beam_video('Pause',
|
|
2308
|
-
Segment.report_video_event('Video Pause',
|
|
2276
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
|
|
2277
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
|
|
2309
2278
|
};
|
|
2310
2279
|
|
|
2311
|
-
return
|
|
2280
|
+
return React.createElement(
|
|
2312
2281
|
'div',
|
|
2313
2282
|
null,
|
|
2314
|
-
vidLoaded &&
|
|
2283
|
+
vidLoaded && React.createElement(
|
|
2315
2284
|
'video',
|
|
2316
2285
|
{
|
|
2317
2286
|
poster: thumbnail || '',
|
|
@@ -2329,7 +2298,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2329
2298
|
onPlay: function onPlay(e) {
|
|
2330
2299
|
return handleOnPlay(e);
|
|
2331
2300
|
} },
|
|
2332
|
-
|
|
2301
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2333
2302
|
'Your browser does not support the video tag.'
|
|
2334
2303
|
)
|
|
2335
2304
|
);
|
|
@@ -2366,7 +2335,7 @@ var Video = function Video(_ref) {
|
|
|
2366
2335
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2367
2336
|
//console.log('success:', success.ref)
|
|
2368
2337
|
var player = success.ref;
|
|
2369
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2338
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2370
2339
|
player.ima3.settings.debug = true;
|
|
2371
2340
|
if (targeting.content_placement && targeting.document_url) {
|
|
2372
2341
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2394,8 +2363,8 @@ var Video = function Video(_ref) {
|
|
|
2394
2363
|
player.pause();
|
|
2395
2364
|
}
|
|
2396
2365
|
|
|
2397
|
-
Beam.report_beam_video('Ready',
|
|
2398
|
-
Segment.report_video_event('Video Ready',
|
|
2366
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2367
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2399
2368
|
});
|
|
2400
2369
|
|
|
2401
2370
|
// play
|
|
@@ -2404,8 +2373,8 @@ var Video = function Video(_ref) {
|
|
|
2404
2373
|
var current = player.currentTime();
|
|
2405
2374
|
var queue = Math.floor(duration / 10);
|
|
2406
2375
|
var segment = Math.floor(current / queue);
|
|
2407
|
-
Beam.report_beam_video('Play',
|
|
2408
|
-
Segment.report_video_event('Video Play',
|
|
2376
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2377
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2409
2378
|
});
|
|
2410
2379
|
|
|
2411
2380
|
// pause
|
|
@@ -2414,8 +2383,8 @@ var Video = function Video(_ref) {
|
|
|
2414
2383
|
var current = player.currentTime();
|
|
2415
2384
|
var queue = Math.floor(duration / 10);
|
|
2416
2385
|
var segment = Math.floor(current / queue);
|
|
2417
|
-
Beam.report_beam_video('Pause',
|
|
2418
|
-
Segment.report_video_event('Video Pause',
|
|
2386
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2387
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2419
2388
|
});
|
|
2420
2389
|
|
|
2421
2390
|
// end
|
|
@@ -2424,8 +2393,8 @@ var Video = function Video(_ref) {
|
|
|
2424
2393
|
var current = player.currentTime();
|
|
2425
2394
|
var queue = Math.floor(duration / 10);
|
|
2426
2395
|
var segment = Math.floor(current / queue);
|
|
2427
|
-
Beam.report_beam_video('End',
|
|
2428
|
-
Segment.report_video_event('Video End',
|
|
2396
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2397
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2429
2398
|
autoplayNextVideo(evt);
|
|
2430
2399
|
});
|
|
2431
2400
|
|
|
@@ -2436,8 +2405,8 @@ var Video = function Video(_ref) {
|
|
|
2436
2405
|
var queue = Math.floor(duration / 10);
|
|
2437
2406
|
var segment = Math.floor(current / queue);
|
|
2438
2407
|
if (!queueProgress.includes(segment)) {
|
|
2439
|
-
Beam.report_beam_video('Segment',
|
|
2440
|
-
Segment.report_video_event('Video Segment',
|
|
2408
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2409
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2441
2410
|
queueProgress.push(segment);
|
|
2442
2411
|
}
|
|
2443
2412
|
});
|
|
@@ -2448,8 +2417,8 @@ var Video = function Video(_ref) {
|
|
|
2448
2417
|
var id = player.ads.ad.id;
|
|
2449
2418
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2450
2419
|
|
|
2451
|
-
Beam.report_beam_ad('AD Started',
|
|
2452
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2420
|
+
Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
|
|
2421
|
+
Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2453
2422
|
});
|
|
2454
2423
|
|
|
2455
2424
|
// ad ended
|
|
@@ -2457,60 +2426,60 @@ var Video = function Video(_ref) {
|
|
|
2457
2426
|
var duration = player.ads.ad.duration;
|
|
2458
2427
|
var id = player.ads.ad.id;
|
|
2459
2428
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2460
|
-
Beam.report_beam_ad('AD Ended',
|
|
2461
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2429
|
+
Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
|
|
2430
|
+
Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2462
2431
|
});
|
|
2463
2432
|
};
|
|
2464
2433
|
|
|
2465
2434
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2466
2435
|
if (videoID) {
|
|
2467
|
-
return
|
|
2436
|
+
return React.createElement(
|
|
2468
2437
|
'div',
|
|
2469
2438
|
null,
|
|
2470
|
-
|
|
2439
|
+
React.createElement(ReactPlayerLoader, {
|
|
2471
2440
|
onSuccess: onVideoSuccess,
|
|
2472
2441
|
accountId: accountIDs.brightcove.accountId,
|
|
2473
2442
|
videoId: videoID,
|
|
2474
2443
|
playerId: accountIDs.brightcove.playerId,
|
|
2475
2444
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2476
2445
|
}),
|
|
2477
|
-
|
|
2446
|
+
React.createElement(
|
|
2478
2447
|
'style',
|
|
2479
2448
|
{ jsx: 'true' },
|
|
2480
2449
|
'\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 '
|
|
2481
2450
|
)
|
|
2482
2451
|
);
|
|
2483
2452
|
} else if (playlistID) {
|
|
2484
|
-
return
|
|
2453
|
+
return React.createElement(
|
|
2485
2454
|
'div',
|
|
2486
2455
|
null,
|
|
2487
|
-
|
|
2456
|
+
React.createElement(ReactPlayerLoader, {
|
|
2488
2457
|
accountId: accountIDs.brightcove.accountId,
|
|
2489
2458
|
playlistId: playlistID,
|
|
2490
2459
|
playerId: accountIDs.brightcove.playerId,
|
|
2491
2460
|
onSuccess: onVideoSuccess,
|
|
2492
2461
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2493
2462
|
}),
|
|
2494
|
-
|
|
2463
|
+
React.createElement(
|
|
2495
2464
|
'style',
|
|
2496
2465
|
{ jsx: 'true' },
|
|
2497
2466
|
'\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 '
|
|
2498
2467
|
)
|
|
2499
2468
|
);
|
|
2500
2469
|
} else if (experienceID) {
|
|
2501
|
-
return
|
|
2470
|
+
return React.createElement(
|
|
2502
2471
|
'div',
|
|
2503
2472
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2504
|
-
videoLoaded &&
|
|
2473
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2505
2474
|
);
|
|
2506
2475
|
}
|
|
2507
2476
|
return null;
|
|
2508
2477
|
}
|
|
2509
2478
|
if (source === 'mp4') {
|
|
2510
|
-
return
|
|
2479
|
+
return React.createElement(
|
|
2511
2480
|
'div',
|
|
2512
2481
|
null,
|
|
2513
|
-
|
|
2482
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2514
2483
|
);
|
|
2515
2484
|
}
|
|
2516
2485
|
|
|
@@ -2721,9 +2690,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2721
2690
|
});
|
|
2722
2691
|
|
|
2723
2692
|
unwrapExports(props);
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2693
|
+
props.DEPRECATED_CONFIG_PROPS;
|
|
2694
|
+
props.defaultProps;
|
|
2695
|
+
props.propTypes;
|
|
2727
2696
|
|
|
2728
2697
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2729
2698
|
return isNonNullObject(value)
|
|
@@ -2888,11 +2857,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2888
2857
|
|
|
2889
2858
|
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; }
|
|
2890
2859
|
|
|
2891
|
-
function
|
|
2860
|
+
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; } } }; }
|
|
2861
|
+
|
|
2862
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2892
2863
|
|
|
2893
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2864
|
+
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."); }
|
|
2894
2865
|
|
|
2895
|
-
function
|
|
2866
|
+
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); }
|
|
2867
|
+
|
|
2868
|
+
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; }
|
|
2869
|
+
|
|
2870
|
+
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; }
|
|
2896
2871
|
|
|
2897
2872
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2898
2873
|
|
|
@@ -3022,12 +2997,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3022
2997
|
|
|
3023
2998
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3024
2999
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3025
|
-
|
|
3026
|
-
var
|
|
3027
|
-
|
|
3000
|
+
|
|
3001
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3002
|
+
_step;
|
|
3028
3003
|
|
|
3029
3004
|
try {
|
|
3030
|
-
for (
|
|
3005
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3031
3006
|
var p = _step.value;
|
|
3032
3007
|
|
|
3033
3008
|
if (props$1[p]) {
|
|
@@ -3042,18 +3017,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3042
3017
|
}
|
|
3043
3018
|
}
|
|
3044
3019
|
} catch (err) {
|
|
3045
|
-
|
|
3046
|
-
_iteratorError = err;
|
|
3020
|
+
_iterator.e(err);
|
|
3047
3021
|
} finally {
|
|
3048
|
-
|
|
3049
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3050
|
-
_iterator["return"]();
|
|
3051
|
-
}
|
|
3052
|
-
} finally {
|
|
3053
|
-
if (_didIteratorError) {
|
|
3054
|
-
throw _iteratorError;
|
|
3055
|
-
}
|
|
3056
|
-
}
|
|
3022
|
+
_iterator.f();
|
|
3057
3023
|
}
|
|
3058
3024
|
|
|
3059
3025
|
return config;
|
|
@@ -3118,7 +3084,7 @@ function isEqual(a, b) {
|
|
|
3118
3084
|
return true;
|
|
3119
3085
|
}
|
|
3120
3086
|
|
|
3121
|
-
if ((0,
|
|
3087
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3122
3088
|
return true;
|
|
3123
3089
|
}
|
|
3124
3090
|
|
|
@@ -3161,17 +3127,17 @@ function isMediaStream(url) {
|
|
|
3161
3127
|
});
|
|
3162
3128
|
|
|
3163
3129
|
unwrapExports(utils);
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3130
|
+
utils.parseStartTime;
|
|
3131
|
+
utils.parseEndTime;
|
|
3132
|
+
utils.randomString;
|
|
3133
|
+
utils.queryString;
|
|
3134
|
+
utils.getSDK;
|
|
3135
|
+
utils.getConfig;
|
|
3136
|
+
utils.omit;
|
|
3137
|
+
utils.callPlayer;
|
|
3138
|
+
utils.isObject;
|
|
3139
|
+
utils.isEqual;
|
|
3140
|
+
utils.isMediaStream;
|
|
3175
3141
|
|
|
3176
3142
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3177
3143
|
|
|
@@ -3180,7 +3146,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3180
3146
|
});
|
|
3181
3147
|
exports["default"] = void 0;
|
|
3182
3148
|
|
|
3183
|
-
var _react = _interopRequireWildcard(
|
|
3149
|
+
var _react = _interopRequireWildcard(React);
|
|
3184
3150
|
|
|
3185
3151
|
|
|
3186
3152
|
|
|
@@ -3200,12 +3166,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3200
3166
|
|
|
3201
3167
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3202
3168
|
|
|
3203
|
-
function
|
|
3169
|
+
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); }; }
|
|
3204
3170
|
|
|
3205
|
-
function
|
|
3171
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3206
3172
|
|
|
3207
3173
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3208
3174
|
|
|
3175
|
+
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; } }
|
|
3176
|
+
|
|
3177
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3178
|
+
|
|
3209
3179
|
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); }
|
|
3210
3180
|
|
|
3211
3181
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3214,14 +3184,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3214
3184
|
|
|
3215
3185
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3216
3186
|
|
|
3217
|
-
var Player =
|
|
3218
|
-
/*#__PURE__*/
|
|
3219
|
-
function (_Component) {
|
|
3187
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3220
3188
|
_inherits(Player, _Component);
|
|
3221
3189
|
|
|
3222
|
-
|
|
3223
|
-
var _getPrototypeOf2;
|
|
3190
|
+
var _super = _createSuper(Player);
|
|
3224
3191
|
|
|
3192
|
+
function Player() {
|
|
3225
3193
|
var _this;
|
|
3226
3194
|
|
|
3227
3195
|
_classCallCheck(this, Player);
|
|
@@ -3230,7 +3198,7 @@ function (_Component) {
|
|
|
3230
3198
|
_args[_key] = arguments[_key];
|
|
3231
3199
|
}
|
|
3232
3200
|
|
|
3233
|
-
_this =
|
|
3201
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3234
3202
|
|
|
3235
3203
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3236
3204
|
|
|
@@ -3555,7 +3523,7 @@ function (_Component) {
|
|
|
3555
3523
|
return null;
|
|
3556
3524
|
}
|
|
3557
3525
|
|
|
3558
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3526
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3559
3527
|
ref: this.ref,
|
|
3560
3528
|
onReady: this.handleReady,
|
|
3561
3529
|
onPlay: this.handlePlay,
|
|
@@ -3588,7 +3556,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3588
3556
|
});
|
|
3589
3557
|
exports["default"] = createSinglePlayer;
|
|
3590
3558
|
|
|
3591
|
-
var _react = _interopRequireWildcard(
|
|
3559
|
+
var _react = _interopRequireWildcard(React);
|
|
3592
3560
|
|
|
3593
3561
|
|
|
3594
3562
|
|
|
@@ -3616,12 +3584,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3616
3584
|
|
|
3617
3585
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3618
3586
|
|
|
3619
|
-
function
|
|
3587
|
+
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); }; }
|
|
3620
3588
|
|
|
3621
|
-
function
|
|
3589
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3622
3590
|
|
|
3623
3591
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3624
3592
|
|
|
3593
|
+
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; } }
|
|
3594
|
+
|
|
3595
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3596
|
+
|
|
3625
3597
|
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); }
|
|
3626
3598
|
|
|
3627
3599
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3633,14 +3605,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3633
3605
|
function createSinglePlayer(activePlayer) {
|
|
3634
3606
|
var _class, _temp;
|
|
3635
3607
|
|
|
3636
|
-
return _temp = _class =
|
|
3637
|
-
/*#__PURE__*/
|
|
3638
|
-
function (_Component) {
|
|
3608
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3639
3609
|
_inherits(SinglePlayer, _Component);
|
|
3640
3610
|
|
|
3641
|
-
|
|
3642
|
-
var _getPrototypeOf2;
|
|
3611
|
+
var _super = _createSuper(SinglePlayer);
|
|
3643
3612
|
|
|
3613
|
+
function SinglePlayer() {
|
|
3644
3614
|
var _this;
|
|
3645
3615
|
|
|
3646
3616
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3649,7 +3619,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3649
3619
|
args[_key] = arguments[_key];
|
|
3650
3620
|
}
|
|
3651
3621
|
|
|
3652
|
-
_this =
|
|
3622
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3653
3623
|
|
|
3654
3624
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3655
3625
|
|
|
@@ -3717,12 +3687,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3717
3687
|
height = _this$props.height,
|
|
3718
3688
|
Wrapper = _this$props.wrapper;
|
|
3719
3689
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3720
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3690
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3721
3691
|
style: _objectSpread({}, style, {
|
|
3722
3692
|
width: width,
|
|
3723
3693
|
height: height
|
|
3724
3694
|
})
|
|
3725
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3695
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3726
3696
|
ref: this.ref,
|
|
3727
3697
|
activePlayer: activePlayer,
|
|
3728
3698
|
config: this.config
|
|
@@ -3744,7 +3714,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3744
3714
|
});
|
|
3745
3715
|
exports["default"] = exports.YouTube = void 0;
|
|
3746
3716
|
|
|
3747
|
-
var _react = _interopRequireWildcard(
|
|
3717
|
+
var _react = _interopRequireWildcard(React);
|
|
3748
3718
|
|
|
3749
3719
|
|
|
3750
3720
|
|
|
@@ -3768,23 +3738,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3768
3738
|
|
|
3769
3739
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3770
3740
|
|
|
3771
|
-
function
|
|
3741
|
+
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); }; }
|
|
3772
3742
|
|
|
3773
|
-
function
|
|
3743
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3774
3744
|
|
|
3775
3745
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3776
3746
|
|
|
3747
|
+
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; } }
|
|
3748
|
+
|
|
3749
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3750
|
+
|
|
3777
3751
|
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); }
|
|
3778
3752
|
|
|
3779
3753
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3780
3754
|
|
|
3781
3755
|
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; }
|
|
3782
3756
|
|
|
3783
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3757
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3758
|
+
|
|
3759
|
+
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."); }
|
|
3784
3760
|
|
|
3785
|
-
function
|
|
3761
|
+
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); }
|
|
3786
3762
|
|
|
3787
|
-
function
|
|
3763
|
+
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; }
|
|
3764
|
+
|
|
3765
|
+
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; }
|
|
3788
3766
|
|
|
3789
3767
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3790
3768
|
|
|
@@ -3809,14 +3787,12 @@ function parsePlaylist(url) {
|
|
|
3809
3787
|
return {};
|
|
3810
3788
|
}
|
|
3811
3789
|
|
|
3812
|
-
var YouTube =
|
|
3813
|
-
/*#__PURE__*/
|
|
3814
|
-
function (_Component) {
|
|
3790
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3815
3791
|
_inherits(YouTube, _Component);
|
|
3816
3792
|
|
|
3817
|
-
|
|
3818
|
-
var _getPrototypeOf2;
|
|
3793
|
+
var _super = _createSuper(YouTube);
|
|
3819
3794
|
|
|
3795
|
+
function YouTube() {
|
|
3820
3796
|
var _this;
|
|
3821
3797
|
|
|
3822
3798
|
_classCallCheck(this, YouTube);
|
|
@@ -3825,7 +3801,7 @@ function (_Component) {
|
|
|
3825
3801
|
args[_key] = arguments[_key];
|
|
3826
3802
|
}
|
|
3827
3803
|
|
|
3828
|
-
_this =
|
|
3804
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3829
3805
|
|
|
3830
3806
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3831
3807
|
|
|
@@ -4013,9 +3989,9 @@ function (_Component) {
|
|
|
4013
3989
|
height: '100%',
|
|
4014
3990
|
display: display
|
|
4015
3991
|
};
|
|
4016
|
-
return _react["default"].createElement("div", {
|
|
3992
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4017
3993
|
style: style
|
|
4018
|
-
}, _react["default"].createElement("div", {
|
|
3994
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4019
3995
|
ref: this.ref
|
|
4020
3996
|
}));
|
|
4021
3997
|
}
|
|
@@ -4038,7 +4014,7 @@ exports["default"] = _default;
|
|
|
4038
4014
|
});
|
|
4039
4015
|
|
|
4040
4016
|
unwrapExports(YouTube_1);
|
|
4041
|
-
|
|
4017
|
+
YouTube_1.YouTube;
|
|
4042
4018
|
|
|
4043
4019
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4044
4020
|
|
|
@@ -4047,7 +4023,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4047
4023
|
});
|
|
4048
4024
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4049
4025
|
|
|
4050
|
-
var _react = _interopRequireWildcard(
|
|
4026
|
+
var _react = _interopRequireWildcard(React);
|
|
4051
4027
|
|
|
4052
4028
|
|
|
4053
4029
|
|
|
@@ -4071,12 +4047,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4071
4047
|
|
|
4072
4048
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4073
4049
|
|
|
4074
|
-
function
|
|
4050
|
+
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); }; }
|
|
4075
4051
|
|
|
4076
|
-
function
|
|
4052
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4077
4053
|
|
|
4078
4054
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4079
4055
|
|
|
4056
|
+
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; } }
|
|
4057
|
+
|
|
4058
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4059
|
+
|
|
4080
4060
|
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); }
|
|
4081
4061
|
|
|
4082
4062
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4085,16 +4065,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4085
4065
|
|
|
4086
4066
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4087
4067
|
var SDK_GLOBAL = 'SC';
|
|
4088
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4068
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4089
4069
|
|
|
4090
|
-
var SoundCloud =
|
|
4091
|
-
/*#__PURE__*/
|
|
4092
|
-
function (_Component) {
|
|
4070
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4093
4071
|
_inherits(SoundCloud, _Component);
|
|
4094
4072
|
|
|
4095
|
-
|
|
4096
|
-
var _getPrototypeOf2;
|
|
4073
|
+
var _super = _createSuper(SoundCloud);
|
|
4097
4074
|
|
|
4075
|
+
function SoundCloud() {
|
|
4098
4076
|
var _this;
|
|
4099
4077
|
|
|
4100
4078
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4103,7 +4081,7 @@ function (_Component) {
|
|
|
4103
4081
|
args[_key] = arguments[_key];
|
|
4104
4082
|
}
|
|
4105
4083
|
|
|
4106
|
-
_this =
|
|
4084
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4107
4085
|
|
|
4108
4086
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4109
4087
|
|
|
@@ -4224,7 +4202,7 @@ function (_Component) {
|
|
|
4224
4202
|
height: '100%',
|
|
4225
4203
|
display: display
|
|
4226
4204
|
};
|
|
4227
|
-
return _react["default"].createElement("iframe", {
|
|
4205
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4228
4206
|
ref: this.ref,
|
|
4229
4207
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4230
4208
|
style: style,
|
|
@@ -4253,7 +4231,7 @@ exports["default"] = _default;
|
|
|
4253
4231
|
});
|
|
4254
4232
|
|
|
4255
4233
|
unwrapExports(SoundCloud_1);
|
|
4256
|
-
|
|
4234
|
+
SoundCloud_1.SoundCloud;
|
|
4257
4235
|
|
|
4258
4236
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4259
4237
|
|
|
@@ -4262,7 +4240,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4262
4240
|
});
|
|
4263
4241
|
exports["default"] = exports.Vimeo = void 0;
|
|
4264
4242
|
|
|
4265
|
-
var _react = _interopRequireWildcard(
|
|
4243
|
+
var _react = _interopRequireWildcard(React);
|
|
4266
4244
|
|
|
4267
4245
|
|
|
4268
4246
|
|
|
@@ -4286,12 +4264,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4286
4264
|
|
|
4287
4265
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4288
4266
|
|
|
4289
|
-
function
|
|
4267
|
+
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); }; }
|
|
4290
4268
|
|
|
4291
|
-
function
|
|
4269
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4292
4270
|
|
|
4293
4271
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4294
4272
|
|
|
4273
|
+
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; } }
|
|
4274
|
+
|
|
4275
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4276
|
+
|
|
4295
4277
|
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); }
|
|
4296
4278
|
|
|
4297
4279
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4303,14 +4285,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4303
4285
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4304
4286
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4305
4287
|
|
|
4306
|
-
var Vimeo =
|
|
4307
|
-
/*#__PURE__*/
|
|
4308
|
-
function (_Component) {
|
|
4288
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4309
4289
|
_inherits(Vimeo, _Component);
|
|
4310
4290
|
|
|
4311
|
-
|
|
4312
|
-
var _getPrototypeOf2;
|
|
4291
|
+
var _super = _createSuper(Vimeo);
|
|
4313
4292
|
|
|
4293
|
+
function Vimeo() {
|
|
4314
4294
|
var _this;
|
|
4315
4295
|
|
|
4316
4296
|
_classCallCheck(this, Vimeo);
|
|
@@ -4319,7 +4299,7 @@ function (_Component) {
|
|
|
4319
4299
|
args[_key] = arguments[_key];
|
|
4320
4300
|
}
|
|
4321
4301
|
|
|
4322
|
-
_this =
|
|
4302
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4323
4303
|
|
|
4324
4304
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4325
4305
|
|
|
@@ -4476,7 +4456,7 @@ function (_Component) {
|
|
|
4476
4456
|
overflow: 'hidden',
|
|
4477
4457
|
display: display
|
|
4478
4458
|
};
|
|
4479
|
-
return _react["default"].createElement("div", {
|
|
4459
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4480
4460
|
key: this.props.url,
|
|
4481
4461
|
ref: this.ref,
|
|
4482
4462
|
style: style
|
|
@@ -4507,7 +4487,7 @@ exports["default"] = _default;
|
|
|
4507
4487
|
});
|
|
4508
4488
|
|
|
4509
4489
|
unwrapExports(Vimeo_1);
|
|
4510
|
-
|
|
4490
|
+
Vimeo_1.Vimeo;
|
|
4511
4491
|
|
|
4512
4492
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4513
4493
|
|
|
@@ -4516,7 +4496,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4516
4496
|
});
|
|
4517
4497
|
exports["default"] = exports.Facebook = void 0;
|
|
4518
4498
|
|
|
4519
|
-
var _react = _interopRequireWildcard(
|
|
4499
|
+
var _react = _interopRequireWildcard(React);
|
|
4520
4500
|
|
|
4521
4501
|
|
|
4522
4502
|
|
|
@@ -4536,12 +4516,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4536
4516
|
|
|
4537
4517
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4538
4518
|
|
|
4539
|
-
function
|
|
4519
|
+
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); }; }
|
|
4540
4520
|
|
|
4541
|
-
function
|
|
4521
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4542
4522
|
|
|
4543
4523
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4544
4524
|
|
|
4525
|
+
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; } }
|
|
4526
|
+
|
|
4527
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4528
|
+
|
|
4545
4529
|
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); }
|
|
4546
4530
|
|
|
4547
4531
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4554,14 +4538,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4554
4538
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4555
4539
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4556
4540
|
|
|
4557
|
-
var Facebook =
|
|
4558
|
-
/*#__PURE__*/
|
|
4559
|
-
function (_Component) {
|
|
4541
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4560
4542
|
_inherits(Facebook, _Component);
|
|
4561
4543
|
|
|
4562
|
-
|
|
4563
|
-
var _getPrototypeOf2;
|
|
4544
|
+
var _super = _createSuper(Facebook);
|
|
4564
4545
|
|
|
4546
|
+
function Facebook() {
|
|
4565
4547
|
var _this;
|
|
4566
4548
|
|
|
4567
4549
|
_classCallCheck(this, Facebook);
|
|
@@ -4570,7 +4552,7 @@ function (_Component) {
|
|
|
4570
4552
|
args[_key] = arguments[_key];
|
|
4571
4553
|
}
|
|
4572
4554
|
|
|
4573
|
-
_this =
|
|
4555
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4574
4556
|
|
|
4575
4557
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4576
4558
|
|
|
@@ -4686,7 +4668,7 @@ function (_Component) {
|
|
|
4686
4668
|
width: '100%',
|
|
4687
4669
|
height: '100%'
|
|
4688
4670
|
};
|
|
4689
|
-
return _react["default"].createElement("div", {
|
|
4671
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4690
4672
|
style: style,
|
|
4691
4673
|
id: this.playerID,
|
|
4692
4674
|
className: "fb-video",
|
|
@@ -4717,7 +4699,7 @@ exports["default"] = _default;
|
|
|
4717
4699
|
});
|
|
4718
4700
|
|
|
4719
4701
|
unwrapExports(Facebook_1);
|
|
4720
|
-
|
|
4702
|
+
Facebook_1.Facebook;
|
|
4721
4703
|
|
|
4722
4704
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4723
4705
|
|
|
@@ -4726,7 +4708,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4726
4708
|
});
|
|
4727
4709
|
exports["default"] = exports.Streamable = void 0;
|
|
4728
4710
|
|
|
4729
|
-
var _react = _interopRequireWildcard(
|
|
4711
|
+
var _react = _interopRequireWildcard(React);
|
|
4730
4712
|
|
|
4731
4713
|
|
|
4732
4714
|
|
|
@@ -4746,12 +4728,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4746
4728
|
|
|
4747
4729
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4748
4730
|
|
|
4749
|
-
function
|
|
4731
|
+
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); }; }
|
|
4750
4732
|
|
|
4751
|
-
function
|
|
4733
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4752
4734
|
|
|
4753
4735
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4754
4736
|
|
|
4737
|
+
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; } }
|
|
4738
|
+
|
|
4739
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4740
|
+
|
|
4755
4741
|
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); }
|
|
4756
4742
|
|
|
4757
4743
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4762,14 +4748,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4762
4748
|
var SDK_GLOBAL = 'playerjs';
|
|
4763
4749
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4764
4750
|
|
|
4765
|
-
var Streamable =
|
|
4766
|
-
/*#__PURE__*/
|
|
4767
|
-
function (_Component) {
|
|
4751
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4768
4752
|
_inherits(Streamable, _Component);
|
|
4769
4753
|
|
|
4770
|
-
|
|
4771
|
-
var _getPrototypeOf2;
|
|
4754
|
+
var _super = _createSuper(Streamable);
|
|
4772
4755
|
|
|
4756
|
+
function Streamable() {
|
|
4773
4757
|
var _this;
|
|
4774
4758
|
|
|
4775
4759
|
_classCallCheck(this, Streamable);
|
|
@@ -4778,7 +4762,7 @@ function (_Component) {
|
|
|
4778
4762
|
args[_key] = arguments[_key];
|
|
4779
4763
|
}
|
|
4780
4764
|
|
|
4781
|
-
_this =
|
|
4765
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4782
4766
|
|
|
4783
4767
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4784
4768
|
|
|
@@ -4898,7 +4882,7 @@ function (_Component) {
|
|
|
4898
4882
|
width: '100%',
|
|
4899
4883
|
height: '100%'
|
|
4900
4884
|
};
|
|
4901
|
-
return _react["default"].createElement("iframe", {
|
|
4885
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4902
4886
|
ref: this.ref,
|
|
4903
4887
|
src: "https://streamable.com/o/".concat(id),
|
|
4904
4888
|
frameBorder: "0",
|
|
@@ -4926,7 +4910,7 @@ exports["default"] = _default;
|
|
|
4926
4910
|
});
|
|
4927
4911
|
|
|
4928
4912
|
unwrapExports(Streamable_1);
|
|
4929
|
-
|
|
4913
|
+
Streamable_1.Streamable;
|
|
4930
4914
|
|
|
4931
4915
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4932
4916
|
|
|
@@ -4935,7 +4919,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4935
4919
|
});
|
|
4936
4920
|
exports["default"] = exports.Wistia = void 0;
|
|
4937
4921
|
|
|
4938
|
-
var _react = _interopRequireWildcard(
|
|
4922
|
+
var _react = _interopRequireWildcard(React);
|
|
4939
4923
|
|
|
4940
4924
|
|
|
4941
4925
|
|
|
@@ -4959,12 +4943,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4959
4943
|
|
|
4960
4944
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4961
4945
|
|
|
4962
|
-
function
|
|
4946
|
+
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); }; }
|
|
4963
4947
|
|
|
4964
|
-
function
|
|
4948
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4965
4949
|
|
|
4966
4950
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4967
4951
|
|
|
4952
|
+
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; } }
|
|
4953
|
+
|
|
4954
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4955
|
+
|
|
4968
4956
|
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); }
|
|
4969
4957
|
|
|
4970
4958
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4975,26 +4963,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4975
4963
|
var SDK_GLOBAL = 'Wistia';
|
|
4976
4964
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4977
4965
|
|
|
4978
|
-
var Wistia =
|
|
4979
|
-
/*#__PURE__*/
|
|
4980
|
-
function (_Component) {
|
|
4966
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4981
4967
|
_inherits(Wistia, _Component);
|
|
4982
4968
|
|
|
4983
|
-
|
|
4984
|
-
var _getPrototypeOf2;
|
|
4969
|
+
var _super = _createSuper(Wistia);
|
|
4985
4970
|
|
|
4971
|
+
function Wistia() {
|
|
4986
4972
|
var _this;
|
|
4987
4973
|
|
|
4988
4974
|
_classCallCheck(this, Wistia);
|
|
4989
4975
|
|
|
4990
|
-
for (var _len = arguments.length,
|
|
4991
|
-
|
|
4976
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4977
|
+
_args[_key] = arguments[_key];
|
|
4992
4978
|
}
|
|
4993
4979
|
|
|
4994
|
-
_this =
|
|
4980
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4995
4981
|
|
|
4996
4982
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4997
4983
|
|
|
4984
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4985
|
+
var _this$props;
|
|
4986
|
+
|
|
4987
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4988
|
+
});
|
|
4989
|
+
|
|
4990
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4991
|
+
var _this$props2;
|
|
4992
|
+
|
|
4993
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4994
|
+
});
|
|
4995
|
+
|
|
4996
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4997
|
+
var _this$props3;
|
|
4998
|
+
|
|
4999
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5000
|
+
});
|
|
5001
|
+
|
|
5002
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5003
|
+
var _this$props4;
|
|
5004
|
+
|
|
5005
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5006
|
+
});
|
|
5007
|
+
|
|
4998
5008
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4999
5009
|
_this.callPlayer('mute');
|
|
5000
5010
|
});
|
|
@@ -5016,17 +5026,13 @@ function (_Component) {
|
|
|
5016
5026
|
value: function load(url) {
|
|
5017
5027
|
var _this2 = this;
|
|
5018
5028
|
|
|
5019
|
-
var _this$
|
|
5020
|
-
playing = _this$
|
|
5021
|
-
muted = _this$
|
|
5022
|
-
controls = _this$
|
|
5023
|
-
_onReady = _this$
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
onSeek = _this$props.onSeek,
|
|
5027
|
-
onEnded = _this$props.onEnded,
|
|
5028
|
-
config = _this$props.config,
|
|
5029
|
-
onError = _this$props.onError;
|
|
5029
|
+
var _this$props5 = this.props,
|
|
5030
|
+
playing = _this$props5.playing,
|
|
5031
|
+
muted = _this$props5.muted,
|
|
5032
|
+
controls = _this$props5.controls,
|
|
5033
|
+
_onReady = _this$props5.onReady,
|
|
5034
|
+
config = _this$props5.config,
|
|
5035
|
+
onError = _this$props5.onError;
|
|
5030
5036
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5031
5037
|
window._wq = window._wq || [];
|
|
5032
5038
|
|
|
@@ -5043,19 +5049,28 @@ function (_Component) {
|
|
|
5043
5049
|
|
|
5044
5050
|
_this2.unbind();
|
|
5045
5051
|
|
|
5046
|
-
_this2.player.bind('play', onPlay);
|
|
5052
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5047
5053
|
|
|
5048
|
-
_this2.player.bind('pause', onPause);
|
|
5054
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5049
5055
|
|
|
5050
|
-
_this2.player.bind('seek', onSeek);
|
|
5056
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5051
5057
|
|
|
5052
|
-
_this2.player.bind('end', onEnded);
|
|
5058
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5053
5059
|
|
|
5054
5060
|
_onReady();
|
|
5055
5061
|
}
|
|
5056
5062
|
});
|
|
5057
5063
|
}, onError);
|
|
5058
5064
|
}
|
|
5065
|
+
}, {
|
|
5066
|
+
key: "unbind",
|
|
5067
|
+
value: function unbind() {
|
|
5068
|
+
this.player.unbind('play', this.onPlay);
|
|
5069
|
+
this.player.unbind('pause', this.onPause);
|
|
5070
|
+
this.player.unbind('seek', this.onSeek);
|
|
5071
|
+
this.player.unbind('end', this.onEnded);
|
|
5072
|
+
} // Proxy methods to prevent listener leaks
|
|
5073
|
+
|
|
5059
5074
|
}, {
|
|
5060
5075
|
key: "play",
|
|
5061
5076
|
value: function play() {
|
|
@@ -5066,19 +5081,6 @@ function (_Component) {
|
|
|
5066
5081
|
value: function pause() {
|
|
5067
5082
|
this.callPlayer('pause');
|
|
5068
5083
|
}
|
|
5069
|
-
}, {
|
|
5070
|
-
key: "unbind",
|
|
5071
|
-
value: function unbind() {
|
|
5072
|
-
var _this$props2 = this.props,
|
|
5073
|
-
onPlay = _this$props2.onPlay,
|
|
5074
|
-
onPause = _this$props2.onPause,
|
|
5075
|
-
onSeek = _this$props2.onSeek,
|
|
5076
|
-
onEnded = _this$props2.onEnded;
|
|
5077
|
-
this.player.unbind('play', onPlay);
|
|
5078
|
-
this.player.unbind('pause', onPause);
|
|
5079
|
-
this.player.unbind('seek', onSeek);
|
|
5080
|
-
this.player.unbind('end', onEnded);
|
|
5081
|
-
}
|
|
5082
5084
|
}, {
|
|
5083
5085
|
key: "stop",
|
|
5084
5086
|
value: function stop() {
|
|
@@ -5124,7 +5126,7 @@ function (_Component) {
|
|
|
5124
5126
|
width: '100%',
|
|
5125
5127
|
height: '100%'
|
|
5126
5128
|
};
|
|
5127
|
-
return _react["default"].createElement("div", {
|
|
5129
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5128
5130
|
key: id,
|
|
5129
5131
|
className: className,
|
|
5130
5132
|
style: style
|
|
@@ -5151,7 +5153,7 @@ exports["default"] = _default;
|
|
|
5151
5153
|
});
|
|
5152
5154
|
|
|
5153
5155
|
unwrapExports(Wistia_1);
|
|
5154
|
-
|
|
5156
|
+
Wistia_1.Wistia;
|
|
5155
5157
|
|
|
5156
5158
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5157
5159
|
|
|
@@ -5160,7 +5162,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5160
5162
|
});
|
|
5161
5163
|
exports["default"] = exports.Twitch = void 0;
|
|
5162
5164
|
|
|
5163
|
-
var _react = _interopRequireWildcard(
|
|
5165
|
+
var _react = _interopRequireWildcard(React);
|
|
5164
5166
|
|
|
5165
5167
|
|
|
5166
5168
|
|
|
@@ -5184,12 +5186,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5184
5186
|
|
|
5185
5187
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5186
5188
|
|
|
5187
|
-
function
|
|
5189
|
+
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); }; }
|
|
5188
5190
|
|
|
5189
|
-
function
|
|
5191
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5190
5192
|
|
|
5191
5193
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5192
5194
|
|
|
5195
|
+
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; } }
|
|
5196
|
+
|
|
5197
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5198
|
+
|
|
5193
5199
|
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); }
|
|
5194
5200
|
|
|
5195
5201
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5202,14 +5208,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5202
5208
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5203
5209
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5204
5210
|
|
|
5205
|
-
var Twitch =
|
|
5206
|
-
/*#__PURE__*/
|
|
5207
|
-
function (_Component) {
|
|
5211
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5208
5212
|
_inherits(Twitch, _Component);
|
|
5209
5213
|
|
|
5210
|
-
|
|
5211
|
-
var _getPrototypeOf2;
|
|
5214
|
+
var _super = _createSuper(Twitch);
|
|
5212
5215
|
|
|
5216
|
+
function Twitch() {
|
|
5213
5217
|
var _this;
|
|
5214
5218
|
|
|
5215
5219
|
_classCallCheck(this, Twitch);
|
|
@@ -5218,7 +5222,7 @@ function (_Component) {
|
|
|
5218
5222
|
args[_key] = arguments[_key];
|
|
5219
5223
|
}
|
|
5220
5224
|
|
|
5221
|
-
_this =
|
|
5225
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5222
5226
|
|
|
5223
5227
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5224
5228
|
|
|
@@ -5339,7 +5343,7 @@ function (_Component) {
|
|
|
5339
5343
|
width: '100%',
|
|
5340
5344
|
height: '100%'
|
|
5341
5345
|
};
|
|
5342
|
-
return _react["default"].createElement("div", {
|
|
5346
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5343
5347
|
style: style,
|
|
5344
5348
|
id: this.playerID
|
|
5345
5349
|
});
|
|
@@ -5365,7 +5369,7 @@ exports["default"] = _default;
|
|
|
5365
5369
|
});
|
|
5366
5370
|
|
|
5367
5371
|
unwrapExports(Twitch_1);
|
|
5368
|
-
|
|
5372
|
+
Twitch_1.Twitch;
|
|
5369
5373
|
|
|
5370
5374
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5371
5375
|
|
|
@@ -5374,7 +5378,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5374
5378
|
});
|
|
5375
5379
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5376
5380
|
|
|
5377
|
-
var _react = _interopRequireWildcard(
|
|
5381
|
+
var _react = _interopRequireWildcard(React);
|
|
5378
5382
|
|
|
5379
5383
|
|
|
5380
5384
|
|
|
@@ -5392,11 +5396,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5392
5396
|
|
|
5393
5397
|
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; }
|
|
5394
5398
|
|
|
5395
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5399
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5400
|
+
|
|
5401
|
+
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."); }
|
|
5402
|
+
|
|
5403
|
+
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); }
|
|
5396
5404
|
|
|
5397
|
-
function
|
|
5405
|
+
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; }
|
|
5398
5406
|
|
|
5399
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
5407
|
+
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; }
|
|
5400
5408
|
|
|
5401
5409
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5402
5410
|
|
|
@@ -5406,12 +5414,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5406
5414
|
|
|
5407
5415
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5408
5416
|
|
|
5409
|
-
function
|
|
5417
|
+
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); }; }
|
|
5410
5418
|
|
|
5411
|
-
function
|
|
5419
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5412
5420
|
|
|
5413
5421
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5414
5422
|
|
|
5423
|
+
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; } }
|
|
5424
|
+
|
|
5425
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5426
|
+
|
|
5415
5427
|
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); }
|
|
5416
5428
|
|
|
5417
5429
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5423,14 +5435,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5423
5435
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5424
5436
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5425
5437
|
|
|
5426
|
-
var DailyMotion =
|
|
5427
|
-
/*#__PURE__*/
|
|
5428
|
-
function (_Component) {
|
|
5438
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5429
5439
|
_inherits(DailyMotion, _Component);
|
|
5430
5440
|
|
|
5431
|
-
|
|
5432
|
-
var _getPrototypeOf2;
|
|
5441
|
+
var _super = _createSuper(DailyMotion);
|
|
5433
5442
|
|
|
5443
|
+
function DailyMotion() {
|
|
5434
5444
|
var _this;
|
|
5435
5445
|
|
|
5436
5446
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5439,7 +5449,7 @@ function (_Component) {
|
|
|
5439
5449
|
args[_key] = arguments[_key];
|
|
5440
5450
|
}
|
|
5441
5451
|
|
|
5442
|
-
_this =
|
|
5452
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5443
5453
|
|
|
5444
5454
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5445
5455
|
|
|
@@ -5568,9 +5578,9 @@ function (_Component) {
|
|
|
5568
5578
|
height: '100%',
|
|
5569
5579
|
display: display
|
|
5570
5580
|
};
|
|
5571
|
-
return _react["default"].createElement("div", {
|
|
5581
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5572
5582
|
style: style
|
|
5573
|
-
}, _react["default"].createElement("div", {
|
|
5583
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5574
5584
|
ref: this.ref
|
|
5575
5585
|
}));
|
|
5576
5586
|
}
|
|
@@ -5595,7 +5605,7 @@ exports["default"] = _default;
|
|
|
5595
5605
|
});
|
|
5596
5606
|
|
|
5597
5607
|
unwrapExports(DailyMotion_1);
|
|
5598
|
-
|
|
5608
|
+
DailyMotion_1.DailyMotion;
|
|
5599
5609
|
|
|
5600
5610
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5601
5611
|
|
|
@@ -5604,7 +5614,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5604
5614
|
});
|
|
5605
5615
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5606
5616
|
|
|
5607
|
-
var _react = _interopRequireWildcard(
|
|
5617
|
+
var _react = _interopRequireWildcard(React);
|
|
5608
5618
|
|
|
5609
5619
|
|
|
5610
5620
|
|
|
@@ -5628,12 +5638,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5628
5638
|
|
|
5629
5639
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5630
5640
|
|
|
5631
|
-
function
|
|
5641
|
+
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); }; }
|
|
5632
5642
|
|
|
5633
|
-
function
|
|
5643
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5634
5644
|
|
|
5635
5645
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5636
5646
|
|
|
5647
|
+
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; } }
|
|
5648
|
+
|
|
5649
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5650
|
+
|
|
5637
5651
|
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); }
|
|
5638
5652
|
|
|
5639
5653
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5644,14 +5658,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5644
5658
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5645
5659
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5646
5660
|
|
|
5647
|
-
var Mixcloud =
|
|
5648
|
-
/*#__PURE__*/
|
|
5649
|
-
function (_Component) {
|
|
5661
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5650
5662
|
_inherits(Mixcloud, _Component);
|
|
5651
5663
|
|
|
5652
|
-
|
|
5653
|
-
var _getPrototypeOf2;
|
|
5664
|
+
var _super = _createSuper(Mixcloud);
|
|
5654
5665
|
|
|
5666
|
+
function Mixcloud() {
|
|
5655
5667
|
var _this;
|
|
5656
5668
|
|
|
5657
5669
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5660,7 +5672,7 @@ function (_Component) {
|
|
|
5660
5672
|
args[_key] = arguments[_key];
|
|
5661
5673
|
}
|
|
5662
5674
|
|
|
5663
|
-
_this =
|
|
5675
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5664
5676
|
|
|
5665
5677
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5666
5678
|
|
|
@@ -5763,7 +5775,7 @@ function (_Component) {
|
|
|
5763
5775
|
})); // We have to give the iframe a key here to prevent a
|
|
5764
5776
|
// weird dialog appearing when loading a new track
|
|
5765
5777
|
|
|
5766
|
-
return _react["default"].createElement("iframe", {
|
|
5778
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5767
5779
|
key: id,
|
|
5768
5780
|
ref: this.ref,
|
|
5769
5781
|
style: style,
|
|
@@ -5792,7 +5804,7 @@ exports["default"] = _default;
|
|
|
5792
5804
|
});
|
|
5793
5805
|
|
|
5794
5806
|
unwrapExports(Mixcloud_1);
|
|
5795
|
-
|
|
5807
|
+
Mixcloud_1.Mixcloud;
|
|
5796
5808
|
|
|
5797
5809
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5798
5810
|
|
|
@@ -5801,7 +5813,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5801
5813
|
});
|
|
5802
5814
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5803
5815
|
|
|
5804
|
-
var _react = _interopRequireWildcard(
|
|
5816
|
+
var _react = _interopRequireWildcard(React);
|
|
5805
5817
|
|
|
5806
5818
|
|
|
5807
5819
|
|
|
@@ -5823,23 +5835,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5823
5835
|
|
|
5824
5836
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5825
5837
|
|
|
5826
|
-
function
|
|
5838
|
+
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); }; }
|
|
5827
5839
|
|
|
5828
|
-
function
|
|
5840
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5829
5841
|
|
|
5830
5842
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5831
5843
|
|
|
5844
|
+
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; } }
|
|
5845
|
+
|
|
5846
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5847
|
+
|
|
5832
5848
|
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); }
|
|
5833
5849
|
|
|
5834
5850
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5835
5851
|
|
|
5836
5852
|
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; }
|
|
5837
5853
|
|
|
5854
|
+
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; } } }; }
|
|
5855
|
+
|
|
5856
|
+
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); }
|
|
5857
|
+
|
|
5858
|
+
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; }
|
|
5859
|
+
|
|
5838
5860
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5839
5861
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5840
5862
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5841
5863
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5842
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5864
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5843
5865
|
var HLS_GLOBAL = 'Hls';
|
|
5844
5866
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5845
5867
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5848,12 +5870,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5848
5870
|
|
|
5849
5871
|
function canPlay(url) {
|
|
5850
5872
|
if (url instanceof Array) {
|
|
5851
|
-
var
|
|
5852
|
-
|
|
5853
|
-
var _iteratorError = undefined;
|
|
5873
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5874
|
+
_step;
|
|
5854
5875
|
|
|
5855
5876
|
try {
|
|
5856
|
-
for (
|
|
5877
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5857
5878
|
var item = _step.value;
|
|
5858
5879
|
|
|
5859
5880
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5865,18 +5886,9 @@ function canPlay(url) {
|
|
|
5865
5886
|
}
|
|
5866
5887
|
}
|
|
5867
5888
|
} catch (err) {
|
|
5868
|
-
|
|
5869
|
-
_iteratorError = err;
|
|
5889
|
+
_iterator.e(err);
|
|
5870
5890
|
} finally {
|
|
5871
|
-
|
|
5872
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5873
|
-
_iterator["return"]();
|
|
5874
|
-
}
|
|
5875
|
-
} finally {
|
|
5876
|
-
if (_didIteratorError) {
|
|
5877
|
-
throw _iteratorError;
|
|
5878
|
-
}
|
|
5879
|
-
}
|
|
5891
|
+
_iterator.f();
|
|
5880
5892
|
}
|
|
5881
5893
|
|
|
5882
5894
|
return false;
|
|
@@ -5900,14 +5912,12 @@ function canEnablePIP(url) {
|
|
|
5900
5912
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5901
5913
|
}
|
|
5902
5914
|
|
|
5903
|
-
var FilePlayer =
|
|
5904
|
-
/*#__PURE__*/
|
|
5905
|
-
function (_Component) {
|
|
5915
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5906
5916
|
_inherits(FilePlayer, _Component);
|
|
5907
5917
|
|
|
5908
|
-
|
|
5909
|
-
var _getPrototypeOf2;
|
|
5918
|
+
var _super = _createSuper(FilePlayer);
|
|
5910
5919
|
|
|
5920
|
+
function FilePlayer() {
|
|
5911
5921
|
var _this;
|
|
5912
5922
|
|
|
5913
5923
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5916,7 +5926,7 @@ function (_Component) {
|
|
|
5916
5926
|
_args[_key] = arguments[_key];
|
|
5917
5927
|
}
|
|
5918
5928
|
|
|
5919
|
-
_this =
|
|
5929
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5920
5930
|
|
|
5921
5931
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5922
5932
|
var _this$props;
|
|
@@ -6003,19 +6013,19 @@ function (_Component) {
|
|
|
6003
6013
|
|
|
6004
6014
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6005
6015
|
if (typeof source === 'string') {
|
|
6006
|
-
return _react["default"].createElement("source", {
|
|
6016
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6007
6017
|
key: index,
|
|
6008
6018
|
src: source
|
|
6009
6019
|
});
|
|
6010
6020
|
}
|
|
6011
6021
|
|
|
6012
|
-
return _react["default"].createElement("source", _extends({
|
|
6022
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6013
6023
|
key: index
|
|
6014
6024
|
}, source));
|
|
6015
6025
|
});
|
|
6016
6026
|
|
|
6017
6027
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6018
|
-
return _react["default"].createElement("track", _extends({
|
|
6028
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6019
6029
|
key: index
|
|
6020
6030
|
}, track));
|
|
6021
6031
|
});
|
|
@@ -6053,6 +6063,10 @@ function (_Component) {
|
|
|
6053
6063
|
key: "componentWillUnmount",
|
|
6054
6064
|
value: function componentWillUnmount() {
|
|
6055
6065
|
this.removeListeners(this.player);
|
|
6066
|
+
|
|
6067
|
+
if (this.hls) {
|
|
6068
|
+
this.hls.destroy();
|
|
6069
|
+
}
|
|
6056
6070
|
}
|
|
6057
6071
|
}, {
|
|
6058
6072
|
key: "addListeners",
|
|
@@ -6183,10 +6197,6 @@ function (_Component) {
|
|
|
6183
6197
|
value: function stop() {
|
|
6184
6198
|
this.player.removeAttribute('src');
|
|
6185
6199
|
|
|
6186
|
-
if (this.hls) {
|
|
6187
|
-
this.hls.destroy();
|
|
6188
|
-
}
|
|
6189
|
-
|
|
6190
6200
|
if (this.dash) {
|
|
6191
6201
|
this.dash.reset();
|
|
6192
6202
|
}
|
|
@@ -6298,7 +6308,7 @@ function (_Component) {
|
|
|
6298
6308
|
width: width === 'auto' ? width : '100%',
|
|
6299
6309
|
height: height === 'auto' ? height : '100%'
|
|
6300
6310
|
};
|
|
6301
|
-
return _react["default"].createElement(Element, _extends({
|
|
6311
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6302
6312
|
ref: this.ref,
|
|
6303
6313
|
src: this.getSource(url),
|
|
6304
6314
|
style: style,
|
|
@@ -6328,7 +6338,7 @@ exports["default"] = _default;
|
|
|
6328
6338
|
});
|
|
6329
6339
|
|
|
6330
6340
|
unwrapExports(FilePlayer_1);
|
|
6331
|
-
|
|
6341
|
+
FilePlayer_1.FilePlayer;
|
|
6332
6342
|
|
|
6333
6343
|
var players = createCommonjsModule(function (module, exports) {
|
|
6334
6344
|
|
|
@@ -6370,7 +6380,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6370
6380
|
});
|
|
6371
6381
|
exports["default"] = void 0;
|
|
6372
6382
|
|
|
6373
|
-
var _react = _interopRequireWildcard(
|
|
6383
|
+
var _react = _interopRequireWildcard(React);
|
|
6374
6384
|
|
|
6375
6385
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6376
6386
|
|
|
@@ -6388,12 +6398,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6388
6398
|
|
|
6389
6399
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6390
6400
|
|
|
6391
|
-
function
|
|
6401
|
+
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); }; }
|
|
6392
6402
|
|
|
6393
|
-
function
|
|
6403
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6394
6404
|
|
|
6395
6405
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6396
6406
|
|
|
6407
|
+
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; } }
|
|
6408
|
+
|
|
6409
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6410
|
+
|
|
6397
6411
|
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); }
|
|
6398
6412
|
|
|
6399
6413
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6402,14 +6416,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6402
6416
|
|
|
6403
6417
|
var ICON_SIZE = '64px';
|
|
6404
6418
|
|
|
6405
|
-
var Preview =
|
|
6406
|
-
/*#__PURE__*/
|
|
6407
|
-
function (_Component) {
|
|
6419
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6408
6420
|
_inherits(Preview, _Component);
|
|
6409
6421
|
|
|
6410
|
-
|
|
6411
|
-
var _getPrototypeOf2;
|
|
6422
|
+
var _super = _createSuper(Preview);
|
|
6412
6423
|
|
|
6424
|
+
function Preview() {
|
|
6413
6425
|
var _this;
|
|
6414
6426
|
|
|
6415
6427
|
_classCallCheck(this, Preview);
|
|
@@ -6418,7 +6430,7 @@ function (_Component) {
|
|
|
6418
6430
|
args[_key] = arguments[_key];
|
|
6419
6431
|
}
|
|
6420
6432
|
|
|
6421
|
-
_this =
|
|
6433
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6422
6434
|
|
|
6423
6435
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6424
6436
|
|
|
@@ -6516,15 +6528,15 @@ function (_Component) {
|
|
|
6516
6528
|
}
|
|
6517
6529
|
};
|
|
6518
6530
|
|
|
6519
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6531
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6520
6532
|
style: styles.shadow,
|
|
6521
6533
|
className: "react-player__shadow"
|
|
6522
|
-
}, _react["default"].createElement("div", {
|
|
6534
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6523
6535
|
style: styles.playIcon,
|
|
6524
6536
|
className: "react-player__play-icon"
|
|
6525
6537
|
}));
|
|
6526
6538
|
|
|
6527
|
-
return _react["default"].createElement("div", {
|
|
6539
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6528
6540
|
style: styles.preview,
|
|
6529
6541
|
className: "react-player__preview",
|
|
6530
6542
|
onClick: onClick
|
|
@@ -6547,7 +6559,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6547
6559
|
});
|
|
6548
6560
|
exports["default"] = renderPreloadPlayers;
|
|
6549
6561
|
|
|
6550
|
-
var _react = _interopRequireDefault(
|
|
6562
|
+
var _react = _interopRequireDefault(React);
|
|
6551
6563
|
|
|
6552
6564
|
var _Player = _interopRequireDefault(Player_1);
|
|
6553
6565
|
|
|
@@ -6561,6 +6573,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6561
6573
|
|
|
6562
6574
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6563
6575
|
|
|
6576
|
+
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; } } }; }
|
|
6577
|
+
|
|
6578
|
+
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); }
|
|
6579
|
+
|
|
6580
|
+
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; }
|
|
6581
|
+
|
|
6564
6582
|
var PRELOAD_PLAYERS = [{
|
|
6565
6583
|
Player: YouTube_1.YouTube,
|
|
6566
6584
|
configKey: 'youtube',
|
|
@@ -6581,16 +6599,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6581
6599
|
|
|
6582
6600
|
function renderPreloadPlayers(url, controls, config) {
|
|
6583
6601
|
var players = [];
|
|
6584
|
-
|
|
6585
|
-
var
|
|
6586
|
-
|
|
6602
|
+
|
|
6603
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6604
|
+
_step;
|
|
6587
6605
|
|
|
6588
6606
|
try {
|
|
6589
|
-
for (
|
|
6607
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6590
6608
|
var player = _step.value;
|
|
6591
6609
|
|
|
6592
6610
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6593
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6611
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6594
6612
|
key: player.Player.displayName,
|
|
6595
6613
|
activePlayer: player.Player,
|
|
6596
6614
|
url: player.url,
|
|
@@ -6602,18 +6620,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6602
6620
|
}
|
|
6603
6621
|
}
|
|
6604
6622
|
} catch (err) {
|
|
6605
|
-
|
|
6606
|
-
_iteratorError = err;
|
|
6623
|
+
_iterator.e(err);
|
|
6607
6624
|
} finally {
|
|
6608
|
-
|
|
6609
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6610
|
-
_iterator["return"]();
|
|
6611
|
-
}
|
|
6612
|
-
} finally {
|
|
6613
|
-
if (_didIteratorError) {
|
|
6614
|
-
throw _iteratorError;
|
|
6615
|
-
}
|
|
6616
|
-
}
|
|
6625
|
+
_iterator.f();
|
|
6617
6626
|
}
|
|
6618
6627
|
|
|
6619
6628
|
return players;
|
|
@@ -6689,7 +6698,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6689
6698
|
});
|
|
6690
6699
|
exports["default"] = void 0;
|
|
6691
6700
|
|
|
6692
|
-
var _react = _interopRequireWildcard(
|
|
6701
|
+
var _react = _interopRequireWildcard(React);
|
|
6693
6702
|
|
|
6694
6703
|
|
|
6695
6704
|
|
|
@@ -6737,13 +6746,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6737
6746
|
|
|
6738
6747
|
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); }
|
|
6739
6748
|
|
|
6740
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6749
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6750
|
+
|
|
6751
|
+
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."); }
|
|
6741
6752
|
|
|
6742
|
-
function
|
|
6753
|
+
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); }
|
|
6743
6754
|
|
|
6744
|
-
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter)
|
|
6755
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6745
6756
|
|
|
6746
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6757
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6758
|
+
|
|
6759
|
+
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; }
|
|
6747
6760
|
|
|
6748
6761
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6749
6762
|
|
|
@@ -6751,12 +6764,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6751
6764
|
|
|
6752
6765
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6753
6766
|
|
|
6754
|
-
function
|
|
6767
|
+
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); }; }
|
|
6755
6768
|
|
|
6756
|
-
function
|
|
6769
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6757
6770
|
|
|
6758
6771
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6759
6772
|
|
|
6773
|
+
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; } }
|
|
6774
|
+
|
|
6775
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6776
|
+
|
|
6760
6777
|
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); }
|
|
6761
6778
|
|
|
6762
6779
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6766,14 +6783,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6766
6783
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6767
6784
|
var customPlayers = [];
|
|
6768
6785
|
|
|
6769
|
-
var ReactPlayer =
|
|
6770
|
-
/*#__PURE__*/
|
|
6771
|
-
function (_Component) {
|
|
6786
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6772
6787
|
_inherits(ReactPlayer, _Component);
|
|
6773
6788
|
|
|
6774
|
-
|
|
6775
|
-
var _getPrototypeOf2;
|
|
6789
|
+
var _super = _createSuper(ReactPlayer);
|
|
6776
6790
|
|
|
6791
|
+
function ReactPlayer() {
|
|
6777
6792
|
var _this;
|
|
6778
6793
|
|
|
6779
6794
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6782,7 +6797,7 @@ function (_Component) {
|
|
|
6782
6797
|
args[_key] = arguments[_key];
|
|
6783
6798
|
}
|
|
6784
6799
|
|
|
6785
|
-
_this =
|
|
6800
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6786
6801
|
|
|
6787
6802
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6788
6803
|
|
|
@@ -6893,7 +6908,7 @@ function (_Component) {
|
|
|
6893
6908
|
key: "renderActivePlayer",
|
|
6894
6909
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6895
6910
|
if (!url) return null;
|
|
6896
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6911
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6897
6912
|
key: activePlayer.displayName,
|
|
6898
6913
|
ref: this.activePlayerRef,
|
|
6899
6914
|
config: this.config,
|
|
@@ -6930,14 +6945,14 @@ function (_Component) {
|
|
|
6930
6945
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6931
6946
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6932
6947
|
|
|
6933
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6948
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6934
6949
|
url: url,
|
|
6935
6950
|
light: light,
|
|
6936
6951
|
playIcon: playIcon,
|
|
6937
6952
|
onClick: this.handleClickPreview
|
|
6938
6953
|
});
|
|
6939
6954
|
|
|
6940
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6955
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6941
6956
|
ref: this.wrapperRef,
|
|
6942
6957
|
style: _objectSpread({}, style, {
|
|
6943
6958
|
width: width,
|
|
@@ -6997,20 +7012,20 @@ var Audio = function Audio(_ref) {
|
|
|
6997
7012
|
var node = _ref.node;
|
|
6998
7013
|
|
|
6999
7014
|
if (node.uploadAudio) {
|
|
7000
|
-
return
|
|
7015
|
+
return React.createElement(
|
|
7001
7016
|
'div',
|
|
7002
7017
|
{ className: 'audio d-block text-center mb-3' },
|
|
7003
|
-
|
|
7018
|
+
React.createElement(
|
|
7004
7019
|
'audio',
|
|
7005
7020
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7006
|
-
|
|
7007
|
-
|
|
7021
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7022
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7008
7023
|
'Your browser does not support the audio element.'
|
|
7009
7024
|
),
|
|
7010
|
-
node.caption &&
|
|
7025
|
+
node.caption && React.createElement(
|
|
7011
7026
|
'p',
|
|
7012
7027
|
{ style: { fontSize: '.9rem' } },
|
|
7013
|
-
|
|
7028
|
+
React.createElement(
|
|
7014
7029
|
'em',
|
|
7015
7030
|
null,
|
|
7016
7031
|
node.caption
|
|
@@ -7020,15 +7035,15 @@ var Audio = function Audio(_ref) {
|
|
|
7020
7035
|
} else if (node.audioFilePth) {
|
|
7021
7036
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7022
7037
|
if (hostname === 'embeds.audioboom.com') {
|
|
7023
|
-
return
|
|
7038
|
+
return React.createElement(
|
|
7024
7039
|
'div',
|
|
7025
7040
|
null,
|
|
7026
|
-
|
|
7041
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7027
7042
|
' ',
|
|
7028
|
-
node.caption &&
|
|
7043
|
+
node.caption && React.createElement(
|
|
7029
7044
|
'p',
|
|
7030
7045
|
{ style: { fontSize: '.9rem' } },
|
|
7031
|
-
|
|
7046
|
+
React.createElement(
|
|
7032
7047
|
'em',
|
|
7033
7048
|
null,
|
|
7034
7049
|
node.caption
|
|
@@ -7036,14 +7051,14 @@ var Audio = function Audio(_ref) {
|
|
|
7036
7051
|
)
|
|
7037
7052
|
);
|
|
7038
7053
|
}
|
|
7039
|
-
return
|
|
7054
|
+
return React.createElement(
|
|
7040
7055
|
'div',
|
|
7041
7056
|
{ className: 'audio' },
|
|
7042
|
-
|
|
7043
|
-
node.caption &&
|
|
7057
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7058
|
+
node.caption && React.createElement(
|
|
7044
7059
|
'p',
|
|
7045
7060
|
{ style: { fontSize: '.9rem' } },
|
|
7046
|
-
|
|
7061
|
+
React.createElement(
|
|
7047
7062
|
'em',
|
|
7048
7063
|
null,
|
|
7049
7064
|
node.caption
|
|
@@ -7061,34 +7076,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7061
7076
|
var profileImage = arguments[6];
|
|
7062
7077
|
|
|
7063
7078
|
if (authorName && authorURL) {
|
|
7064
|
-
return
|
|
7079
|
+
return React.createElement(
|
|
7065
7080
|
'span',
|
|
7066
7081
|
null,
|
|
7067
|
-
|
|
7082
|
+
React.createElement(
|
|
7068
7083
|
'a',
|
|
7069
7084
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7070
7085
|
authorName
|
|
7071
7086
|
),
|
|
7072
|
-
|
|
7087
|
+
React.createElement(
|
|
7073
7088
|
Card,
|
|
7074
7089
|
{ className: 'author-details-card-' + index },
|
|
7075
|
-
|
|
7090
|
+
React.createElement(
|
|
7076
7091
|
Row,
|
|
7077
7092
|
null,
|
|
7078
|
-
profileImage &&
|
|
7093
|
+
profileImage && React.createElement(
|
|
7079
7094
|
Col,
|
|
7080
7095
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7081
|
-
|
|
7096
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7082
7097
|
),
|
|
7083
|
-
|
|
7098
|
+
React.createElement(
|
|
7084
7099
|
Col,
|
|
7085
7100
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7086
|
-
|
|
7101
|
+
React.createElement(
|
|
7087
7102
|
'div',
|
|
7088
7103
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7089
7104
|
authorName
|
|
7090
7105
|
),
|
|
7091
|
-
|
|
7106
|
+
React.createElement(
|
|
7092
7107
|
'p',
|
|
7093
7108
|
null,
|
|
7094
7109
|
biography
|
|
@@ -7096,7 +7111,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7096
7111
|
)
|
|
7097
7112
|
)
|
|
7098
7113
|
),
|
|
7099
|
-
|
|
7114
|
+
React.createElement(
|
|
7100
7115
|
'style',
|
|
7101
7116
|
{ jsx: 'true' },
|
|
7102
7117
|
'\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 '
|
|
@@ -7104,7 +7119,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7104
7119
|
length !== index + 1 && ' , '
|
|
7105
7120
|
);
|
|
7106
7121
|
} else if (authorName) {
|
|
7107
|
-
return
|
|
7122
|
+
return React.createElement(
|
|
7108
7123
|
'span',
|
|
7109
7124
|
{ key: index },
|
|
7110
7125
|
authorName,
|
|
@@ -7264,8 +7279,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7264
7279
|
var duration = player.getDuration();
|
|
7265
7280
|
var queue = Math.floor(duration / 10);
|
|
7266
7281
|
var segment = Math.floor(current / queue);
|
|
7267
|
-
Beam.report_beam_video('Ready',
|
|
7268
|
-
Segment.report_video_event('Video Ready',
|
|
7282
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
7283
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
7269
7284
|
//autoplay
|
|
7270
7285
|
|
|
7271
7286
|
//Small pause before starting next video
|
|
@@ -7285,8 +7300,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7285
7300
|
var queue = Math.floor(duration / 10);
|
|
7286
7301
|
var segment = Math.floor(current / queue);
|
|
7287
7302
|
|
|
7288
|
-
Beam.report_beam_video('End',
|
|
7289
|
-
Segment.report_video_event('Video End',
|
|
7303
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
7304
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
7290
7305
|
setEndReported(true);
|
|
7291
7306
|
clearInterval(intervalID);
|
|
7292
7307
|
}
|
|
@@ -7336,8 +7351,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7336
7351
|
var queue = Math.floor(duration / 10);
|
|
7337
7352
|
var segment = Math.floor(current / queue);
|
|
7338
7353
|
if (!queueProgress.includes(segment)) {
|
|
7339
|
-
Beam.report_beam_video('Segment',
|
|
7340
|
-
Segment.report_video_event('Video Segment',
|
|
7354
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
7355
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
7341
7356
|
queueProgress.push(segment);
|
|
7342
7357
|
}
|
|
7343
7358
|
};
|
|
@@ -7350,8 +7365,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7350
7365
|
var queue = Math.floor(duration / 10);
|
|
7351
7366
|
var segment = Math.floor(current / queue);
|
|
7352
7367
|
|
|
7353
|
-
Beam.report_beam_video('Play',
|
|
7354
|
-
Segment.report_video_event('Video Play',
|
|
7368
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
7369
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
7355
7370
|
|
|
7356
7371
|
if (!playReported) {
|
|
7357
7372
|
setPlayReported(true);
|
|
@@ -7369,8 +7384,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7369
7384
|
var queue = Math.floor(duration / 10);
|
|
7370
7385
|
var segment = Math.floor(current / queue);
|
|
7371
7386
|
|
|
7372
|
-
Beam.report_beam_video('Pause',
|
|
7373
|
-
Segment.report_video_event('Video Pause',
|
|
7387
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
7388
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
7374
7389
|
};
|
|
7375
7390
|
|
|
7376
7391
|
// Youtube Options
|
|
@@ -7381,44 +7396,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7381
7396
|
}
|
|
7382
7397
|
};
|
|
7383
7398
|
|
|
7384
|
-
return
|
|
7399
|
+
return React.createElement(
|
|
7385
7400
|
'div',
|
|
7386
7401
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7387
|
-
|
|
7402
|
+
React.createElement(
|
|
7388
7403
|
'div',
|
|
7389
7404
|
{ className: 'mt-2 mb-5' },
|
|
7390
|
-
series &&
|
|
7405
|
+
series && React.createElement(
|
|
7391
7406
|
'div',
|
|
7392
7407
|
{ style: { fontSize: '0.9rem' } },
|
|
7393
7408
|
article.title,
|
|
7394
7409
|
' - Episode ',
|
|
7395
7410
|
series
|
|
7396
7411
|
),
|
|
7397
|
-
Videos[series - 1] &&
|
|
7412
|
+
Videos[series - 1] && React.createElement(
|
|
7398
7413
|
'h1',
|
|
7399
7414
|
{ className: 'mb-3' },
|
|
7400
7415
|
Videos[series - 1].title
|
|
7401
7416
|
),
|
|
7402
|
-
|
|
7417
|
+
React.createElement(
|
|
7403
7418
|
'div',
|
|
7404
7419
|
null,
|
|
7405
7420
|
moment(article.published).format('LL')
|
|
7406
7421
|
),
|
|
7407
|
-
|
|
7422
|
+
React.createElement(
|
|
7408
7423
|
'div',
|
|
7409
7424
|
{ className: 'mb-3' },
|
|
7410
7425
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7411
|
-
return
|
|
7426
|
+
return React.createElement(
|
|
7412
7427
|
'span',
|
|
7413
7428
|
{ key: index },
|
|
7414
7429
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7415
7430
|
);
|
|
7416
7431
|
})
|
|
7417
7432
|
),
|
|
7418
|
-
|
|
7433
|
+
React.createElement(
|
|
7419
7434
|
'p',
|
|
7420
7435
|
null,
|
|
7421
|
-
|
|
7436
|
+
React.createElement(SocialShare, {
|
|
7422
7437
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7423
7438
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7424
7439
|
shareVia: meta.shareVia,
|
|
@@ -7433,20 +7448,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7433
7448
|
hideFacebook: meta.hideFBShare
|
|
7434
7449
|
})
|
|
7435
7450
|
),
|
|
7436
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7451
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7437
7452
|
'p',
|
|
7438
7453
|
{ className: 'mb-3' },
|
|
7439
|
-
|
|
7454
|
+
React.createElement(
|
|
7440
7455
|
'em',
|
|
7441
7456
|
null,
|
|
7442
7457
|
Videos[series - 1].intro
|
|
7443
7458
|
)
|
|
7444
7459
|
)
|
|
7445
7460
|
),
|
|
7446
|
-
|
|
7461
|
+
React.createElement(
|
|
7447
7462
|
'div',
|
|
7448
7463
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7449
|
-
vidUrl && vidType == 'youtube' &&
|
|
7464
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7450
7465
|
className: 'fluid-iframe',
|
|
7451
7466
|
videoId: getYoutubeId(vidUrl),
|
|
7452
7467
|
opts: opts,
|
|
@@ -7457,10 +7472,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7457
7472
|
return handleOnEnd(e);
|
|
7458
7473
|
}
|
|
7459
7474
|
}),
|
|
7460
|
-
vidUrl && vidType == 'mp4' &&
|
|
7461
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7462
|
-
|
|
7463
|
-
series &&
|
|
7475
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7476
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7477
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7478
|
+
series && React.createElement(
|
|
7464
7479
|
'div',
|
|
7465
7480
|
{
|
|
7466
7481
|
className: 'vid-series',
|
|
@@ -7470,10 +7485,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7470
7485
|
maxHeight: '100%',
|
|
7471
7486
|
paddingBottom: '0'
|
|
7472
7487
|
} },
|
|
7473
|
-
|
|
7488
|
+
React.createElement(
|
|
7474
7489
|
'p',
|
|
7475
7490
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7476
|
-
|
|
7491
|
+
React.createElement(
|
|
7477
7492
|
'b',
|
|
7478
7493
|
{ style: { fontSize: '1.25em' } },
|
|
7479
7494
|
'Now Playing:'
|
|
@@ -7481,16 +7496,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7481
7496
|
' ',
|
|
7482
7497
|
seriesData[series ? series - 1 : 0].title
|
|
7483
7498
|
),
|
|
7484
|
-
vidUrl &&
|
|
7499
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7485
7500
|
)
|
|
7486
7501
|
),
|
|
7487
|
-
|
|
7488
|
-
|
|
7502
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7503
|
+
React.createElement(
|
|
7489
7504
|
'div',
|
|
7490
7505
|
{ className: 'vid-text' },
|
|
7491
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7506
|
+
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()))
|
|
7492
7507
|
),
|
|
7493
|
-
|
|
7508
|
+
React.createElement(
|
|
7494
7509
|
'style',
|
|
7495
7510
|
{ jsx: 'true' },
|
|
7496
7511
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7498,14 +7513,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7498
7513
|
);
|
|
7499
7514
|
};
|
|
7500
7515
|
|
|
7501
|
-
var Poll = function Poll(_ref) {
|
|
7502
|
-
var node = _ref.node
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
onVote = _ref.onVote
|
|
7507
|
-
_ref
|
|
7508
|
-
getSerializers = _ref.getSerializers;
|
|
7516
|
+
var Poll$1 = function Poll(_ref) {
|
|
7517
|
+
var node = _ref.node;
|
|
7518
|
+
_ref.client;
|
|
7519
|
+
_ref.pageview;
|
|
7520
|
+
_ref.videoAccountIDs;
|
|
7521
|
+
var onVote = _ref.onVote;
|
|
7522
|
+
_ref.showVotes;
|
|
7523
|
+
var getSerializers = _ref.getSerializers;
|
|
7509
7524
|
|
|
7510
7525
|
var _useState = useState(null),
|
|
7511
7526
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7543,67 +7558,67 @@ var Poll = function Poll(_ref) {
|
|
|
7543
7558
|
return acc;
|
|
7544
7559
|
}
|
|
7545
7560
|
}, 0);
|
|
7546
|
-
return
|
|
7547
|
-
|
|
7561
|
+
return React.createElement(
|
|
7562
|
+
React.Fragment,
|
|
7548
7563
|
null,
|
|
7549
|
-
question &&
|
|
7564
|
+
question && React.createElement(
|
|
7550
7565
|
'p',
|
|
7551
7566
|
{ className: 'font-weight-bold' },
|
|
7552
7567
|
question
|
|
7553
7568
|
),
|
|
7554
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7569
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7555
7570
|
'form',
|
|
7556
7571
|
{ onSubmit: function onSubmit(e) {
|
|
7557
7572
|
return onSubmitPoll(e);
|
|
7558
7573
|
} },
|
|
7559
7574
|
choices && choices.map(function (choice) {
|
|
7560
|
-
return
|
|
7575
|
+
return React.createElement(
|
|
7561
7576
|
'div',
|
|
7562
7577
|
{ key: choice._key },
|
|
7563
|
-
|
|
7578
|
+
React.createElement(
|
|
7564
7579
|
'label',
|
|
7565
7580
|
{ className: 'pl-2' },
|
|
7566
|
-
|
|
7581
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7567
7582
|
return setSelectedChoice(e.target.value);
|
|
7568
7583
|
} }),
|
|
7569
7584
|
' ' + choice.choiceText
|
|
7570
7585
|
)
|
|
7571
7586
|
);
|
|
7572
7587
|
}),
|
|
7573
|
-
|
|
7588
|
+
React.createElement(
|
|
7574
7589
|
Button,
|
|
7575
7590
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7576
7591
|
'Vote'
|
|
7577
7592
|
)
|
|
7578
7593
|
),
|
|
7579
|
-
|
|
7594
|
+
React.createElement(
|
|
7580
7595
|
'div',
|
|
7581
7596
|
{ className: 'progress-container' },
|
|
7582
7597
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7583
7598
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7584
|
-
return
|
|
7599
|
+
return React.createElement(
|
|
7585
7600
|
'div',
|
|
7586
7601
|
{ key: choice._key, className: 'mb-3' },
|
|
7587
|
-
|
|
7602
|
+
React.createElement(
|
|
7588
7603
|
'div',
|
|
7589
7604
|
{ className: 'correct-answer' },
|
|
7590
|
-
|
|
7605
|
+
React.createElement(
|
|
7591
7606
|
'div',
|
|
7592
7607
|
null,
|
|
7593
7608
|
choice.choiceText
|
|
7594
7609
|
),
|
|
7595
|
-
choice.choiceAnswer === true &&
|
|
7610
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7596
7611
|
'div',
|
|
7597
7612
|
null,
|
|
7598
|
-
|
|
7613
|
+
React.createElement(
|
|
7599
7614
|
'span',
|
|
7600
7615
|
{ style: { color: 'limegreen' } },
|
|
7601
7616
|
'Correct!'
|
|
7602
7617
|
)
|
|
7603
7618
|
)
|
|
7604
7619
|
),
|
|
7605
|
-
|
|
7606
|
-
|
|
7620
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7621
|
+
React.createElement(
|
|
7607
7622
|
'span',
|
|
7608
7623
|
{ className: 'float-right' },
|
|
7609
7624
|
percentage,
|
|
@@ -7614,14 +7629,14 @@ var Poll = function Poll(_ref) {
|
|
|
7614
7629
|
);
|
|
7615
7630
|
})
|
|
7616
7631
|
),
|
|
7617
|
-
showAnswer &&
|
|
7632
|
+
showAnswer && React.createElement(
|
|
7618
7633
|
'h4',
|
|
7619
7634
|
{ className: 'text-center small p-3' },
|
|
7620
7635
|
'Total Votes: ',
|
|
7621
7636
|
choicesTotalCount
|
|
7622
7637
|
),
|
|
7623
|
-
showAnswer && response &&
|
|
7624
|
-
|
|
7638
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7639
|
+
React.createElement(
|
|
7625
7640
|
'style',
|
|
7626
7641
|
{ jsx: 'true' },
|
|
7627
7642
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7639,22 +7654,22 @@ _export(_export.S, 'Object', {
|
|
|
7639
7654
|
}
|
|
7640
7655
|
});
|
|
7641
7656
|
|
|
7642
|
-
var values = _core.Object.values;
|
|
7657
|
+
var values$1 = _core.Object.values;
|
|
7643
7658
|
|
|
7644
|
-
var values
|
|
7645
|
-
module.exports = { "default": values, __esModule: true };
|
|
7659
|
+
var values = createCommonjsModule(function (module) {
|
|
7660
|
+
module.exports = { "default": values$1, __esModule: true };
|
|
7646
7661
|
});
|
|
7647
7662
|
|
|
7648
|
-
var _Object$values = unwrapExports(values
|
|
7663
|
+
var _Object$values = unwrapExports(values);
|
|
7649
7664
|
|
|
7650
|
-
var Poll
|
|
7651
|
-
var node = _ref.node
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
onVote = _ref.onVote
|
|
7656
|
-
_ref
|
|
7657
|
-
getSerializers = _ref.getSerializers;
|
|
7665
|
+
var Poll = function Poll(_ref) {
|
|
7666
|
+
var node = _ref.node;
|
|
7667
|
+
_ref.client;
|
|
7668
|
+
_ref.pageview;
|
|
7669
|
+
_ref.videoAccountIDs;
|
|
7670
|
+
var onVote = _ref.onVote;
|
|
7671
|
+
_ref.showVotes;
|
|
7672
|
+
var getSerializers = _ref.getSerializers;
|
|
7658
7673
|
|
|
7659
7674
|
var _useState = useState(null),
|
|
7660
7675
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7720,67 +7735,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7720
7735
|
return acc;
|
|
7721
7736
|
}
|
|
7722
7737
|
}, 0);
|
|
7723
|
-
return
|
|
7724
|
-
|
|
7738
|
+
return React.createElement(
|
|
7739
|
+
React.Fragment,
|
|
7725
7740
|
null,
|
|
7726
|
-
question &&
|
|
7741
|
+
question && React.createElement(
|
|
7727
7742
|
'p',
|
|
7728
7743
|
{ className: 'font-weight-bold' },
|
|
7729
7744
|
question
|
|
7730
7745
|
),
|
|
7731
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7746
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7732
7747
|
'form',
|
|
7733
7748
|
{ onSubmit: function onSubmit(e) {
|
|
7734
7749
|
return onSubmitPoll(e);
|
|
7735
7750
|
} },
|
|
7736
7751
|
choices && choices.map(function (choice) {
|
|
7737
|
-
return
|
|
7752
|
+
return React.createElement(
|
|
7738
7753
|
'div',
|
|
7739
7754
|
{ key: choice._key },
|
|
7740
|
-
|
|
7755
|
+
React.createElement(
|
|
7741
7756
|
'label',
|
|
7742
7757
|
{ className: 'pl-2' },
|
|
7743
|
-
|
|
7758
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7744
7759
|
return setSelectedChoice(e.target.value);
|
|
7745
7760
|
} }),
|
|
7746
7761
|
' ' + choice.choiceText
|
|
7747
7762
|
)
|
|
7748
7763
|
);
|
|
7749
7764
|
}),
|
|
7750
|
-
|
|
7765
|
+
React.createElement(
|
|
7751
7766
|
Button,
|
|
7752
7767
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7753
7768
|
'Vote'
|
|
7754
7769
|
)
|
|
7755
7770
|
),
|
|
7756
|
-
|
|
7771
|
+
React.createElement(
|
|
7757
7772
|
'div',
|
|
7758
7773
|
{ className: 'progress-container' },
|
|
7759
7774
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7760
7775
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7761
|
-
return
|
|
7776
|
+
return React.createElement(
|
|
7762
7777
|
'div',
|
|
7763
7778
|
{ key: choice._key, className: 'mb-3' },
|
|
7764
|
-
|
|
7779
|
+
React.createElement(
|
|
7765
7780
|
'div',
|
|
7766
7781
|
{ className: 'correct-answer' },
|
|
7767
|
-
|
|
7782
|
+
React.createElement(
|
|
7768
7783
|
'div',
|
|
7769
7784
|
null,
|
|
7770
7785
|
choice.choiceText
|
|
7771
7786
|
),
|
|
7772
|
-
choice.choiceAnswer === true &&
|
|
7787
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7773
7788
|
'div',
|
|
7774
7789
|
null,
|
|
7775
|
-
|
|
7790
|
+
React.createElement(
|
|
7776
7791
|
'span',
|
|
7777
7792
|
{ style: { color: 'limegreen' } },
|
|
7778
7793
|
'Correct!'
|
|
7779
7794
|
)
|
|
7780
7795
|
)
|
|
7781
7796
|
),
|
|
7782
|
-
|
|
7783
|
-
|
|
7797
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7798
|
+
React.createElement(
|
|
7784
7799
|
'span',
|
|
7785
7800
|
{ className: 'float-right' },
|
|
7786
7801
|
percentage,
|
|
@@ -7791,14 +7806,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7791
7806
|
);
|
|
7792
7807
|
})
|
|
7793
7808
|
),
|
|
7794
|
-
showAnswer &&
|
|
7809
|
+
showAnswer && React.createElement(
|
|
7795
7810
|
'h4',
|
|
7796
7811
|
{ className: 'text-center small p-3' },
|
|
7797
7812
|
'Total Votes: ',
|
|
7798
7813
|
choicesTotalCount
|
|
7799
7814
|
),
|
|
7800
|
-
showAnswer && response &&
|
|
7801
|
-
|
|
7815
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7816
|
+
React.createElement(
|
|
7802
7817
|
'style',
|
|
7803
7818
|
{ jsx: 'true' },
|
|
7804
7819
|
'\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 '
|
|
@@ -7806,7 +7821,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7806
7821
|
);
|
|
7807
7822
|
};
|
|
7808
7823
|
|
|
7809
|
-
var numberOfPaginations =
|
|
7824
|
+
var numberOfPaginations = main_42 ? 4 : 10;
|
|
7810
7825
|
|
|
7811
7826
|
var Quiz = function Quiz(_ref) {
|
|
7812
7827
|
var quizzes = _ref.quizzes,
|
|
@@ -7924,34 +7939,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7924
7939
|
};
|
|
7925
7940
|
|
|
7926
7941
|
var renderPagination = function renderPagination() {
|
|
7927
|
-
return
|
|
7928
|
-
Pagination
|
|
7929
|
-
{ className: 'p-0 m-0', size:
|
|
7930
|
-
|
|
7942
|
+
return React.createElement(
|
|
7943
|
+
Pagination,
|
|
7944
|
+
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
7945
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7931
7946
|
return changePage('first');
|
|
7932
7947
|
}, disabled: currentPage === 1 }),
|
|
7933
|
-
|
|
7948
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7934
7949
|
return changePage('prev');
|
|
7935
7950
|
}, disabled: currentPage === 1 }),
|
|
7936
|
-
|
|
7951
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7937
7952
|
return renderNewPages('prev');
|
|
7938
7953
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7939
7954
|
pages.map(function (page) {
|
|
7940
|
-
return
|
|
7941
|
-
Pagination
|
|
7955
|
+
return React.createElement(
|
|
7956
|
+
Pagination.Item,
|
|
7942
7957
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7943
7958
|
return changePage(page);
|
|
7944
7959
|
} },
|
|
7945
7960
|
page
|
|
7946
7961
|
);
|
|
7947
7962
|
}),
|
|
7948
|
-
|
|
7963
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7949
7964
|
return renderNewPages('next');
|
|
7950
7965
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7951
|
-
|
|
7966
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7952
7967
|
return changePage('next');
|
|
7953
7968
|
}, disabled: currentPage === pageCount }),
|
|
7954
|
-
|
|
7969
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7955
7970
|
return changePage('last');
|
|
7956
7971
|
}, disabled: currentPage === pageCount })
|
|
7957
7972
|
);
|
|
@@ -8034,51 +8049,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8034
8049
|
}
|
|
8035
8050
|
};
|
|
8036
8051
|
|
|
8037
|
-
return
|
|
8038
|
-
|
|
8052
|
+
return React.createElement(
|
|
8053
|
+
React.Fragment,
|
|
8039
8054
|
null,
|
|
8040
|
-
quizzes[currentPage - 1] &&
|
|
8041
|
-
|
|
8055
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8056
|
+
React.Fragment,
|
|
8042
8057
|
null,
|
|
8043
|
-
|
|
8044
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8058
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8059
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8045
8060
|
'form',
|
|
8046
8061
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8047
8062
|
return e.preventDefault();
|
|
8048
8063
|
} },
|
|
8049
8064
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8050
|
-
return
|
|
8065
|
+
return React.createElement(
|
|
8051
8066
|
'div',
|
|
8052
8067
|
{ key: answer._key },
|
|
8053
|
-
|
|
8068
|
+
React.createElement(
|
|
8054
8069
|
'label',
|
|
8055
8070
|
{ className: 'pl-2' },
|
|
8056
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8071
|
+
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 }),
|
|
8057
8072
|
' ' + answer.answerText
|
|
8058
8073
|
)
|
|
8059
8074
|
);
|
|
8060
8075
|
})
|
|
8061
8076
|
)
|
|
8062
8077
|
),
|
|
8063
|
-
!showAnswer &&
|
|
8078
|
+
!showAnswer && React.createElement(
|
|
8064
8079
|
Button$1,
|
|
8065
8080
|
{ onClick: function onClick() {
|
|
8066
8081
|
return checkAnswers();
|
|
8067
8082
|
}, variant: 'info', block: true },
|
|
8068
8083
|
'Please click here for answer'
|
|
8069
8084
|
),
|
|
8070
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8071
|
-
|
|
8085
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8086
|
+
React.Fragment,
|
|
8072
8087
|
null,
|
|
8073
|
-
|
|
8088
|
+
React.createElement(
|
|
8074
8089
|
'h4',
|
|
8075
8090
|
null,
|
|
8076
8091
|
'Answer:'
|
|
8077
8092
|
),
|
|
8078
|
-
quizzes[currentPage - 1].answer &&
|
|
8093
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8079
8094
|
),
|
|
8080
|
-
|
|
8081
|
-
pageCount > 1 &&
|
|
8095
|
+
React.createElement('br', null),
|
|
8096
|
+
pageCount > 1 && React.createElement(
|
|
8082
8097
|
'div',
|
|
8083
8098
|
{ className: 'd-flex justify-content-center' },
|
|
8084
8099
|
renderPagination()
|
|
@@ -8089,19 +8104,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8089
8104
|
var Leads = function Leads(_ref) {
|
|
8090
8105
|
var url = _ref.url;
|
|
8091
8106
|
|
|
8092
|
-
return
|
|
8107
|
+
return React.createElement(
|
|
8093
8108
|
'div',
|
|
8094
8109
|
{ className: 'd-block text-center mb-3' },
|
|
8095
|
-
url &&
|
|
8110
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8096
8111
|
);
|
|
8097
8112
|
};
|
|
8098
8113
|
|
|
8099
|
-
var urlFor$
|
|
8114
|
+
var urlFor$3 = function urlFor(source, client) {
|
|
8100
8115
|
var builder = imageUrlBuilder(client);
|
|
8101
8116
|
return builder.image(source).auto('format');
|
|
8102
8117
|
};
|
|
8103
8118
|
|
|
8104
|
-
var Slideshow
|
|
8119
|
+
var Slideshow = function Slideshow(_ref) {
|
|
8105
8120
|
var slides = _ref.node.slides,
|
|
8106
8121
|
client = _ref.client,
|
|
8107
8122
|
pageview = _ref.pageview,
|
|
@@ -8113,8 +8128,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8113
8128
|
|
|
8114
8129
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8115
8130
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8116
|
-
carouselIndex = _useState2[0]
|
|
8117
|
-
|
|
8131
|
+
carouselIndex = _useState2[0];
|
|
8132
|
+
_useState2[1];
|
|
8118
8133
|
|
|
8119
8134
|
// useEffect(() => {
|
|
8120
8135
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8140,42 +8155,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8140
8155
|
}
|
|
8141
8156
|
};
|
|
8142
8157
|
|
|
8143
|
-
return
|
|
8158
|
+
return React.createElement(
|
|
8144
8159
|
'div',
|
|
8145
8160
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8146
|
-
|
|
8161
|
+
React.createElement(
|
|
8147
8162
|
Carousel,
|
|
8148
8163
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8149
8164
|
slides && slides.map(function (slide) {
|
|
8150
8165
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8151
|
-
return
|
|
8166
|
+
return React.createElement(
|
|
8152
8167
|
Carousel.Item,
|
|
8153
8168
|
{ key: slide._key },
|
|
8154
|
-
|
|
8169
|
+
React.createElement(
|
|
8155
8170
|
'a',
|
|
8156
8171
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8157
|
-
|
|
8172
|
+
React.createElement(
|
|
8158
8173
|
LazyLoad,
|
|
8159
8174
|
null,
|
|
8160
|
-
|
|
8175
|
+
React.createElement('img', { src: urlFor$3(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8161
8176
|
)
|
|
8162
8177
|
),
|
|
8163
|
-
|
|
8178
|
+
React.createElement(
|
|
8164
8179
|
'div',
|
|
8165
8180
|
{ className: 'p-2' },
|
|
8166
|
-
slide.slideshowImage.caption &&
|
|
8181
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8167
8182
|
'h3',
|
|
8168
8183
|
{ style: { padding: '0px' } },
|
|
8169
8184
|
slide.slideshowImage.caption
|
|
8170
8185
|
),
|
|
8171
|
-
slide.description &&
|
|
8186
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8172
8187
|
)
|
|
8173
8188
|
);
|
|
8174
8189
|
}
|
|
8175
8190
|
return null;
|
|
8176
8191
|
})
|
|
8177
8192
|
),
|
|
8178
|
-
|
|
8193
|
+
React.createElement(
|
|
8179
8194
|
'style',
|
|
8180
8195
|
{ jsx: 'true' },
|
|
8181
8196
|
'\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 '
|
|
@@ -8194,10 +8209,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8194
8209
|
sizes = _props$node.sizes,
|
|
8195
8210
|
sizeMapping = _props$node.sizeMapping;
|
|
8196
8211
|
|
|
8197
|
-
return
|
|
8212
|
+
return React.createElement(
|
|
8198
8213
|
'div',
|
|
8199
8214
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8200
|
-
|
|
8215
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8201
8216
|
);
|
|
8202
8217
|
};
|
|
8203
8218
|
|
|
@@ -8208,15 +8223,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8208
8223
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8209
8224
|
|
|
8210
8225
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8211
|
-
return
|
|
8226
|
+
return React.createElement(
|
|
8212
8227
|
'section',
|
|
8213
8228
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8214
|
-
Caption &&
|
|
8229
|
+
Caption && React.createElement(
|
|
8215
8230
|
'h4',
|
|
8216
8231
|
{ className: 'formstack-caption' },
|
|
8217
8232
|
Caption
|
|
8218
8233
|
),
|
|
8219
|
-
|
|
8234
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8220
8235
|
);
|
|
8221
8236
|
};
|
|
8222
8237
|
|
|
@@ -8236,29 +8251,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8236
8251
|
}
|
|
8237
8252
|
});
|
|
8238
8253
|
if (medias && medias.length > 0) {
|
|
8239
|
-
return
|
|
8254
|
+
return React.createElement(
|
|
8240
8255
|
'div',
|
|
8241
8256
|
{ className: 'multi-media-container' },
|
|
8242
|
-
|
|
8257
|
+
React.createElement(
|
|
8243
8258
|
Row$1,
|
|
8244
8259
|
{ noGutters: true },
|
|
8245
8260
|
medias.map(function (media) {
|
|
8246
|
-
return
|
|
8261
|
+
return React.createElement(
|
|
8247
8262
|
Col$1,
|
|
8248
8263
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8249
|
-
|
|
8264
|
+
React.createElement(
|
|
8250
8265
|
'a',
|
|
8251
|
-
_extends
|
|
8266
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8252
8267
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8253
|
-
|
|
8268
|
+
React.createElement(
|
|
8254
8269
|
'div',
|
|
8255
8270
|
{ className: 'multi-media-image-container' },
|
|
8256
|
-
imageBox &&
|
|
8271
|
+
imageBox && React.createElement(
|
|
8257
8272
|
LazyLoad,
|
|
8258
8273
|
{ once: true },
|
|
8259
|
-
|
|
8274
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8260
8275
|
),
|
|
8261
|
-
media.caption &&
|
|
8276
|
+
media.caption && React.createElement(
|
|
8262
8277
|
'span',
|
|
8263
8278
|
{ className: 'multi-media-caption' },
|
|
8264
8279
|
media.caption
|
|
@@ -8268,7 +8283,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8268
8283
|
);
|
|
8269
8284
|
})
|
|
8270
8285
|
),
|
|
8271
|
-
|
|
8286
|
+
React.createElement(
|
|
8272
8287
|
'style',
|
|
8273
8288
|
{ jsx: 'true' },
|
|
8274
8289
|
'\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 '
|
|
@@ -8315,7 +8330,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8315
8330
|
}
|
|
8316
8331
|
};
|
|
8317
8332
|
|
|
8318
|
-
_this.wraperRef =
|
|
8333
|
+
_this.wraperRef = React.createRef();
|
|
8319
8334
|
_this.visible = false;
|
|
8320
8335
|
return _this;
|
|
8321
8336
|
}
|
|
@@ -8343,7 +8358,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8343
8358
|
_props$id = _props.id,
|
|
8344
8359
|
id = _props$id === undefined ? '' : _props$id;
|
|
8345
8360
|
|
|
8346
|
-
return
|
|
8361
|
+
return React.createElement(
|
|
8347
8362
|
'div',
|
|
8348
8363
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8349
8364
|
this.props.children
|
|
@@ -8352,7 +8367,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8352
8367
|
}]);
|
|
8353
8368
|
|
|
8354
8369
|
return InscreenSensor;
|
|
8355
|
-
}(
|
|
8370
|
+
}(React.Component);
|
|
8356
8371
|
|
|
8357
8372
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8358
8373
|
var nodes = _ref.nodes,
|
|
@@ -8465,33 +8480,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8465
8480
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8466
8481
|
var showReading = show ? 'showReading' : '';
|
|
8467
8482
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8468
|
-
return
|
|
8483
|
+
return React.createElement(
|
|
8469
8484
|
'div',
|
|
8470
8485
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8471
|
-
|
|
8486
|
+
React.createElement(
|
|
8472
8487
|
'a',
|
|
8473
8488
|
{ onClick: function onClick(e) {
|
|
8474
8489
|
return articleCardClickHandler(e);
|
|
8475
8490
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8476
|
-
|
|
8491
|
+
React.createElement(
|
|
8477
8492
|
'div',
|
|
8478
8493
|
{ className: 'prevNext-thumbnail' },
|
|
8479
|
-
|
|
8480
|
-
|
|
8494
|
+
React.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8495
|
+
React.createElement(
|
|
8481
8496
|
'div',
|
|
8482
8497
|
{ className: 'prevNext-reading ' + showReading },
|
|
8483
8498
|
articleLabel
|
|
8484
8499
|
)
|
|
8485
8500
|
),
|
|
8486
|
-
|
|
8501
|
+
React.createElement(
|
|
8487
8502
|
'div',
|
|
8488
8503
|
{ className: 'prevNext-summary' },
|
|
8489
|
-
|
|
8504
|
+
React.createElement(
|
|
8490
8505
|
'div',
|
|
8491
8506
|
{ className: 'prevNext-publishDate' },
|
|
8492
8507
|
moment(article.published).format('LL')
|
|
8493
8508
|
),
|
|
8494
|
-
|
|
8509
|
+
React.createElement(
|
|
8495
8510
|
'h2',
|
|
8496
8511
|
{ className: 'prevNext-title' },
|
|
8497
8512
|
article.title
|
|
@@ -8540,7 +8555,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8540
8555
|
|
|
8541
8556
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8542
8557
|
if (biography) {
|
|
8543
|
-
return
|
|
8558
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8544
8559
|
}
|
|
8545
8560
|
};
|
|
8546
8561
|
|
|
@@ -8626,7 +8641,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8626
8641
|
//console.log('useLayoutEffect')
|
|
8627
8642
|
if (!firstLoad) {
|
|
8628
8643
|
setUpArrowClicked(false);
|
|
8629
|
-
if (
|
|
8644
|
+
if (main_43) {
|
|
8630
8645
|
grabLoadedAds();
|
|
8631
8646
|
} else {
|
|
8632
8647
|
scrollToArticle();
|
|
@@ -8650,7 +8665,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8650
8665
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8651
8666
|
if (pageview) pageview(path);
|
|
8652
8667
|
|
|
8653
|
-
if (!
|
|
8668
|
+
if (!main_43) {
|
|
8654
8669
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8655
8670
|
if (window.googletag && googletag.pubadsReady) {
|
|
8656
8671
|
lib_3.refresh();
|
|
@@ -8658,7 +8673,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8658
8673
|
});
|
|
8659
8674
|
}
|
|
8660
8675
|
//Refresh leaderboard ad on mobile
|
|
8661
|
-
if (
|
|
8676
|
+
if (main_43) {
|
|
8662
8677
|
var leaderboardSlotId = '';
|
|
8663
8678
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8664
8679
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8698,38 +8713,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8698
8713
|
setSensorVisible(false);
|
|
8699
8714
|
};
|
|
8700
8715
|
|
|
8701
|
-
return
|
|
8702
|
-
|
|
8716
|
+
return React.createElement(
|
|
8717
|
+
React.Fragment,
|
|
8703
8718
|
null,
|
|
8704
|
-
|
|
8719
|
+
React.createElement(
|
|
8705
8720
|
'div',
|
|
8706
8721
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8707
|
-
|
|
8722
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8708
8723
|
return handleArrowClick();
|
|
8709
8724
|
} })
|
|
8710
8725
|
),
|
|
8711
|
-
|
|
8712
|
-
|
|
8726
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8727
|
+
React.createElement(
|
|
8713
8728
|
'div',
|
|
8714
8729
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8715
|
-
|
|
8730
|
+
React.createElement(
|
|
8716
8731
|
'h5',
|
|
8717
8732
|
{ className: 'objective-title' },
|
|
8718
8733
|
nodes.seriesTitle
|
|
8719
8734
|
),
|
|
8720
|
-
|
|
8735
|
+
React.createElement(
|
|
8721
8736
|
'div',
|
|
8722
8737
|
{ className: 'prevNextWrapper' },
|
|
8723
8738
|
PrevNextCards(false, -1)
|
|
8724
8739
|
)
|
|
8725
8740
|
),
|
|
8726
|
-
|
|
8727
|
-
|
|
8741
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8742
|
+
React.createElement(
|
|
8728
8743
|
'div',
|
|
8729
8744
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8730
|
-
|
|
8745
|
+
main_43 && Ads.map(function (ad, index) {
|
|
8731
8746
|
if (index === 0) {
|
|
8732
|
-
return
|
|
8747
|
+
return React.createElement(
|
|
8733
8748
|
'div',
|
|
8734
8749
|
{
|
|
8735
8750
|
key: 'addid-1',
|
|
@@ -8749,14 +8764,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8749
8764
|
}
|
|
8750
8765
|
})
|
|
8751
8766
|
),
|
|
8752
|
-
|
|
8767
|
+
React.createElement(
|
|
8753
8768
|
'div',
|
|
8754
8769
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8755
8770
|
Articles.map(function (article, index) {
|
|
8756
|
-
return
|
|
8771
|
+
return React.createElement(
|
|
8757
8772
|
'div',
|
|
8758
8773
|
{ key: article.title },
|
|
8759
|
-
|
|
8774
|
+
React.createElement(
|
|
8760
8775
|
InscreenSensor,
|
|
8761
8776
|
{
|
|
8762
8777
|
visible: sensorVisible,
|
|
@@ -8774,84 +8789,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8774
8789
|
}
|
|
8775
8790
|
}
|
|
8776
8791
|
} },
|
|
8777
|
-
|
|
8792
|
+
React.createElement(
|
|
8778
8793
|
Head,
|
|
8779
8794
|
null,
|
|
8780
|
-
currentTitle !== null &&
|
|
8795
|
+
currentTitle !== null && React.createElement(
|
|
8781
8796
|
'title',
|
|
8782
8797
|
{ key: 'title' },
|
|
8783
8798
|
currentTitle
|
|
8784
8799
|
),
|
|
8785
|
-
currentSummary !== null &&
|
|
8786
|
-
currentURL !== null &&
|
|
8787
|
-
currentTitle !== null &&
|
|
8788
|
-
currentThumbnail !== null &&
|
|
8789
|
-
currentSummary !== null &&
|
|
8790
|
-
currentTitle !== null &&
|
|
8791
|
-
currentThumbnail !== null &&
|
|
8792
|
-
currentSummary !== null &&
|
|
8800
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8801
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8802
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8803
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8804
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8805
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8806
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8807
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8793
8808
|
),
|
|
8794
|
-
|
|
8809
|
+
React.createElement(
|
|
8795
8810
|
'article',
|
|
8796
8811
|
{ className: 'article-wrapper' },
|
|
8797
|
-
|
|
8812
|
+
React.createElement(
|
|
8798
8813
|
'div',
|
|
8799
8814
|
{ className: 'article-publishDate' },
|
|
8800
8815
|
moment(article.published).format('LL')
|
|
8801
8816
|
),
|
|
8802
|
-
|
|
8817
|
+
React.createElement(
|
|
8803
8818
|
'div',
|
|
8804
8819
|
{ className: 'author-details-wrapper' },
|
|
8805
8820
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8806
|
-
return
|
|
8821
|
+
return React.createElement(
|
|
8807
8822
|
'span',
|
|
8808
8823
|
{ key: index },
|
|
8809
8824
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8810
8825
|
);
|
|
8811
8826
|
})
|
|
8812
8827
|
),
|
|
8813
|
-
|
|
8828
|
+
React.createElement(
|
|
8814
8829
|
'h2',
|
|
8815
8830
|
{ className: 'article-title' },
|
|
8816
8831
|
article.title
|
|
8817
8832
|
),
|
|
8818
|
-
|
|
8833
|
+
React.createElement(
|
|
8819
8834
|
'div',
|
|
8820
8835
|
{ className: 'mt-2 mb-2' },
|
|
8821
|
-
|
|
8836
|
+
React.createElement(BlockContent, _extends({
|
|
8822
8837
|
serializers: getSerializers,
|
|
8823
8838
|
videoAccountIDs: accountIDs,
|
|
8824
8839
|
blocks: article.text,
|
|
8825
8840
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8826
8841
|
}, client.config())),
|
|
8827
|
-
|
|
8842
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8828
8843
|
),
|
|
8829
|
-
Articles.length > 1 &&
|
|
8830
|
-
|
|
8844
|
+
Articles.length > 1 && React.createElement(
|
|
8845
|
+
React.Fragment,
|
|
8831
8846
|
null,
|
|
8832
|
-
|
|
8847
|
+
React.createElement(
|
|
8833
8848
|
'div',
|
|
8834
8849
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8835
|
-
|
|
8850
|
+
React.createElement(
|
|
8836
8851
|
'h5',
|
|
8837
8852
|
{ className: 'objective-title' },
|
|
8838
8853
|
nodes.seriesTitle
|
|
8839
8854
|
),
|
|
8840
|
-
|
|
8855
|
+
React.createElement(
|
|
8841
8856
|
'div',
|
|
8842
8857
|
{ className: 'prevNextWrapper' },
|
|
8843
8858
|
PrevNextCards(true, index)
|
|
8844
8859
|
)
|
|
8845
8860
|
),
|
|
8846
|
-
|
|
8861
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8847
8862
|
)
|
|
8848
8863
|
),
|
|
8849
|
-
|
|
8864
|
+
React.createElement(
|
|
8850
8865
|
'div',
|
|
8851
8866
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8852
|
-
|
|
8867
|
+
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8853
8868
|
if (innerIndex === 0) {
|
|
8854
|
-
return
|
|
8869
|
+
return React.createElement(
|
|
8855
8870
|
'div',
|
|
8856
8871
|
{
|
|
8857
8872
|
key: 'addid-' + (index + 2),
|
|
@@ -8874,7 +8889,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8874
8889
|
)
|
|
8875
8890
|
);
|
|
8876
8891
|
}),
|
|
8877
|
-
|
|
8892
|
+
React.createElement(
|
|
8878
8893
|
'style',
|
|
8879
8894
|
{ jsx: 'true' },
|
|
8880
8895
|
'\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 '
|
|
@@ -8904,11 +8919,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8904
8919
|
};
|
|
8905
8920
|
}, [handleClickOutside]);
|
|
8906
8921
|
|
|
8907
|
-
return
|
|
8922
|
+
return React.createElement(
|
|
8908
8923
|
'div',
|
|
8909
8924
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8910
|
-
|
|
8911
|
-
|
|
8925
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8926
|
+
React.createElement(
|
|
8912
8927
|
'style',
|
|
8913
8928
|
{ jsx: 'true' },
|
|
8914
8929
|
'\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 '
|
|
@@ -8916,7 +8931,7 @@ var LightBox = function LightBox(_ref) {
|
|
|
8916
8931
|
);
|
|
8917
8932
|
};
|
|
8918
8933
|
|
|
8919
|
-
var urlFor$
|
|
8934
|
+
var urlFor$1 = function urlFor(source, client) {
|
|
8920
8935
|
var builder = imageUrlBuilder(client);
|
|
8921
8936
|
return builder.image(source).auto('format');
|
|
8922
8937
|
};
|
|
@@ -9002,13 +9017,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9002
9017
|
|
|
9003
9018
|
var FigureCaption = useCallback(function () {
|
|
9004
9019
|
if (imgcaption && imgcaption.length > 0) {
|
|
9005
|
-
return
|
|
9020
|
+
return React.createElement(
|
|
9006
9021
|
'div',
|
|
9007
9022
|
{ className: 'figure-caption' },
|
|
9008
|
-
|
|
9023
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9009
9024
|
);
|
|
9010
9025
|
} else if (caption) {
|
|
9011
|
-
return
|
|
9026
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9012
9027
|
} else return null;
|
|
9013
9028
|
}, [caption, imgcaption]);
|
|
9014
9029
|
|
|
@@ -9020,33 +9035,33 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9020
9035
|
margin: figureMargin
|
|
9021
9036
|
};
|
|
9022
9037
|
|
|
9023
|
-
return
|
|
9024
|
-
|
|
9038
|
+
return React.createElement(
|
|
9039
|
+
React.Fragment,
|
|
9025
9040
|
null,
|
|
9026
|
-
|
|
9027
|
-
Figure$
|
|
9041
|
+
React.createElement(
|
|
9042
|
+
Figure$2,
|
|
9028
9043
|
{ className: '' + class_name, style: figureStyle },
|
|
9029
|
-
link ?
|
|
9044
|
+
link ? React.createElement(
|
|
9030
9045
|
'a',
|
|
9031
9046
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
) :
|
|
9035
|
-
|
|
9047
|
+
React.createElement(Figure$2.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$1(node, client).url(), alt: alt && alt }),
|
|
9048
|
+
React.createElement(FigureCaption, null)
|
|
9049
|
+
) : React.createElement(
|
|
9050
|
+
React.Fragment,
|
|
9036
9051
|
null,
|
|
9037
|
-
|
|
9052
|
+
React.createElement(Figure$2.Image, {
|
|
9038
9053
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
9039
9054
|
className: 'figure-image',
|
|
9040
|
-
src: urlFor$
|
|
9055
|
+
src: urlFor$1(node, client).url(),
|
|
9041
9056
|
alt: alt && alt,
|
|
9042
9057
|
onClick: function onClick() {
|
|
9043
|
-
setLightboxImgSrc(urlFor$
|
|
9058
|
+
setLightboxImgSrc(urlFor$1(node, client).url());
|
|
9044
9059
|
setShowLightbox(true);
|
|
9045
9060
|
}
|
|
9046
9061
|
}),
|
|
9047
|
-
|
|
9062
|
+
React.createElement(FigureCaption, null)
|
|
9048
9063
|
),
|
|
9049
|
-
|
|
9064
|
+
React.createElement(LightBox, {
|
|
9050
9065
|
showLightbox: showLightbox,
|
|
9051
9066
|
lightboxImgSrc: lightboxImgSrc,
|
|
9052
9067
|
closeLightbox: function closeLightbox() {
|
|
@@ -9055,7 +9070,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9055
9070
|
}
|
|
9056
9071
|
})
|
|
9057
9072
|
),
|
|
9058
|
-
|
|
9073
|
+
React.createElement(
|
|
9059
9074
|
'style',
|
|
9060
9075
|
{ jsx: 'true' },
|
|
9061
9076
|
'\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 '
|
|
@@ -9063,9 +9078,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9063
9078
|
);
|
|
9064
9079
|
};
|
|
9065
9080
|
|
|
9066
|
-
var Figure =
|
|
9081
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9067
9082
|
|
|
9068
|
-
var urlFor
|
|
9083
|
+
var urlFor = function urlFor(source, client) {
|
|
9069
9084
|
var builder = imageUrlBuilder(client);
|
|
9070
9085
|
return builder.image(source).auto('format');
|
|
9071
9086
|
};
|
|
@@ -9109,68 +9124,68 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9109
9124
|
imgcaption = _ref.imgcaption;
|
|
9110
9125
|
|
|
9111
9126
|
if (imgcaption && imgcaption.length > 0) {
|
|
9112
|
-
return
|
|
9127
|
+
return React.createElement(
|
|
9113
9128
|
'div',
|
|
9114
9129
|
{ className: 'multi-figure-caption' },
|
|
9115
|
-
|
|
9130
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9116
9131
|
);
|
|
9117
9132
|
} else if (caption) {
|
|
9118
|
-
return
|
|
9133
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9119
9134
|
} else return null;
|
|
9120
9135
|
};
|
|
9121
9136
|
|
|
9122
9137
|
if (images && images.length > 0) {
|
|
9123
|
-
return
|
|
9138
|
+
return React.createElement(
|
|
9124
9139
|
'div',
|
|
9125
9140
|
{ className: 'multi-figure-container' },
|
|
9126
|
-
|
|
9141
|
+
React.createElement(
|
|
9127
9142
|
Row$1,
|
|
9128
9143
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9129
9144
|
images.map(function (image, index) {
|
|
9130
|
-
return
|
|
9145
|
+
return React.createElement(
|
|
9131
9146
|
Col$1,
|
|
9132
9147
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9133
|
-
image.link ?
|
|
9148
|
+
image.link ? React.createElement(
|
|
9134
9149
|
'a',
|
|
9135
|
-
_extends
|
|
9136
|
-
|
|
9150
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9151
|
+
React.createElement(
|
|
9137
9152
|
'div',
|
|
9138
9153
|
{ className: 'multi-figure-image-container' },
|
|
9139
|
-
|
|
9154
|
+
React.createElement(
|
|
9140
9155
|
LazyLoad,
|
|
9141
9156
|
{ once: true },
|
|
9142
|
-
|
|
9157
|
+
React.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor(image.asset, client).url(), alt: image.alt })
|
|
9143
9158
|
),
|
|
9144
|
-
|
|
9159
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9145
9160
|
)
|
|
9146
|
-
) :
|
|
9161
|
+
) : React.createElement(
|
|
9147
9162
|
'div',
|
|
9148
9163
|
{ className: 'multi-figure-image-container' },
|
|
9149
|
-
|
|
9164
|
+
React.createElement(
|
|
9150
9165
|
LazyLoad,
|
|
9151
9166
|
{ once: true },
|
|
9152
|
-
|
|
9167
|
+
React.createElement('img', {
|
|
9153
9168
|
'images-count': images.length,
|
|
9154
9169
|
className: 'multi-figure-image',
|
|
9155
|
-
src: urlFor
|
|
9170
|
+
src: urlFor(image.asset, client).url(),
|
|
9156
9171
|
alt: image.alt,
|
|
9157
9172
|
onClick: function onClick() {
|
|
9158
|
-
setOpenImgSrc(urlFor
|
|
9173
|
+
setOpenImgSrc(urlFor(image, client).url());
|
|
9159
9174
|
setOpenImg(true);
|
|
9160
9175
|
}
|
|
9161
9176
|
})
|
|
9162
9177
|
),
|
|
9163
|
-
|
|
9178
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9164
9179
|
)
|
|
9165
9180
|
);
|
|
9166
9181
|
})
|
|
9167
9182
|
),
|
|
9168
|
-
|
|
9183
|
+
React.createElement(
|
|
9169
9184
|
'div',
|
|
9170
9185
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9171
|
-
|
|
9186
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9172
9187
|
),
|
|
9173
|
-
|
|
9188
|
+
React.createElement(
|
|
9174
9189
|
'style',
|
|
9175
9190
|
{ jsx: 'true' },
|
|
9176
9191
|
'\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 '
|
|
@@ -9192,79 +9207,293 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9192
9207
|
|
|
9193
9208
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9194
9209
|
|
|
9195
|
-
return
|
|
9210
|
+
return React.createElement(
|
|
9196
9211
|
'div',
|
|
9197
9212
|
{ id: elementId },
|
|
9198
|
-
|
|
9213
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9199
9214
|
);
|
|
9200
9215
|
};
|
|
9201
9216
|
|
|
9202
|
-
var
|
|
9203
|
-
var _props$node = props.node,
|
|
9204
|
-
FormID = _props$node.FormID,
|
|
9205
|
-
Promocode = _props$node.Promocode,
|
|
9206
|
-
_props$node$needSegme = _props$node.needSegmentSupport,
|
|
9207
|
-
needSegmentSupport = _props$node$needSegme === undefined ? false : _props$node$needSegme;
|
|
9217
|
+
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9208
9218
|
|
|
9209
|
-
|
|
9219
|
+
exports.__esModule = true;
|
|
9210
9220
|
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
htmlSnippet = _useState2[0],
|
|
9214
|
-
setHtmlSnippet = _useState2[1];
|
|
9221
|
+
exports.default = function (obj, keys) {
|
|
9222
|
+
var target = {};
|
|
9215
9223
|
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
|
|
9225
|
-
|
|
9226
|
-
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
|
|
9236
|
-
|
|
9237
|
-
|
|
9238
|
-
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9224
|
+
for (var i in obj) {
|
|
9225
|
+
if (keys.indexOf(i) >= 0) continue;
|
|
9226
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9227
|
+
target[i] = obj[i];
|
|
9228
|
+
}
|
|
9229
|
+
|
|
9230
|
+
return target;
|
|
9231
|
+
};
|
|
9232
|
+
});
|
|
9233
|
+
|
|
9234
|
+
unwrapExports(objectWithoutProperties);
|
|
9235
|
+
|
|
9236
|
+
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9237
|
+
|
|
9238
|
+
exports.__esModule = true;
|
|
9239
|
+
|
|
9240
|
+
|
|
9241
|
+
|
|
9242
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9243
|
+
|
|
9244
|
+
|
|
9245
|
+
|
|
9246
|
+
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9247
|
+
|
|
9248
|
+
|
|
9249
|
+
|
|
9250
|
+
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
9251
|
+
|
|
9252
|
+
|
|
9253
|
+
|
|
9254
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
9255
|
+
|
|
9256
|
+
|
|
9257
|
+
|
|
9258
|
+
var _inherits3 = _interopRequireDefault(inherits);
|
|
9259
|
+
|
|
9260
|
+
|
|
9261
|
+
|
|
9262
|
+
var _react2 = _interopRequireDefault(React);
|
|
9263
|
+
|
|
9264
|
+
|
|
9265
|
+
|
|
9266
|
+
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
9267
|
+
|
|
9268
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9269
|
+
var noop = function noop() {};
|
|
9270
|
+
|
|
9271
|
+
var ScriptTag = function (_Component) {
|
|
9272
|
+
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9273
|
+
|
|
9274
|
+
ScriptTag.removeNode = function removeNode(node) {
|
|
9275
|
+
if (node) {
|
|
9276
|
+
node.parentNode.removeChild(node);
|
|
9249
9277
|
}
|
|
9250
|
-
|
|
9251
|
-
|
|
9252
|
-
|
|
9278
|
+
};
|
|
9279
|
+
|
|
9280
|
+
function ScriptTag(props, context) {
|
|
9281
|
+
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9282
|
+
|
|
9283
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9284
|
+
|
|
9285
|
+
_this.domRef = null;
|
|
9286
|
+
_this.state = {
|
|
9287
|
+
isHydrated: props.isHydrating,
|
|
9288
|
+
additionalNode: null,
|
|
9289
|
+
removeAdditionalNode: null
|
|
9290
|
+
};
|
|
9291
|
+
return _this;
|
|
9292
|
+
}
|
|
9293
|
+
|
|
9294
|
+
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9295
|
+
var _props = this.props,
|
|
9296
|
+
onError = _props.onError,
|
|
9297
|
+
onLoad = _props.onLoad,
|
|
9298
|
+
nonce = _props.nonce;
|
|
9299
|
+
|
|
9300
|
+
// Create a new HTML script element
|
|
9301
|
+
|
|
9302
|
+
var newElement = document.createElement("script");
|
|
9303
|
+
|
|
9304
|
+
// Copy all attribute values
|
|
9305
|
+
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9306
|
+
var attr = this.domRef.attributes[i];
|
|
9307
|
+
if (attr.nodeName === 'nonce') {
|
|
9308
|
+
// The browser clears the nonce value - grab from props
|
|
9309
|
+
newElement.setAttribute(attr.nodeName, nonce);
|
|
9310
|
+
} else {
|
|
9311
|
+
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9312
|
+
}
|
|
9313
|
+
}
|
|
9314
|
+
|
|
9315
|
+
// Copy the inner script
|
|
9316
|
+
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9317
|
+
newElement.innerHTML = this.domRef.innerHTML;
|
|
9318
|
+
}
|
|
9319
|
+
|
|
9320
|
+
// Bind event listeners
|
|
9321
|
+
newElement.addEventListener('load', onLoad);
|
|
9322
|
+
newElement.addEventListener('error', onError);
|
|
9323
|
+
|
|
9324
|
+
// Append the new script tag
|
|
9325
|
+
this.domRef.parentNode.appendChild(newElement);
|
|
9326
|
+
return newElement;
|
|
9327
|
+
};
|
|
9328
|
+
|
|
9329
|
+
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9330
|
+
var isHydrated = this.state.isHydrated;
|
|
9331
|
+
|
|
9332
|
+
if (isHydrated) {
|
|
9333
|
+
// was rendered on server, don't replace elements when hydrating
|
|
9334
|
+
return;
|
|
9335
|
+
}
|
|
9336
|
+
|
|
9337
|
+
this.setState({
|
|
9338
|
+
additionalNode: this.appendAdditionalElement(),
|
|
9339
|
+
removeAdditionalNode: null
|
|
9340
|
+
});
|
|
9341
|
+
};
|
|
9342
|
+
|
|
9343
|
+
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9344
|
+
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9345
|
+
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9346
|
+
|
|
9347
|
+
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9348
|
+
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9349
|
+
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9350
|
+
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9351
|
+
// This really complicates the component - for now we'll leave it as is.
|
|
9352
|
+
var _props2 = this.props,
|
|
9353
|
+
src = _props2.src,
|
|
9354
|
+
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9355
|
+
|
|
9356
|
+
if (src && src === nextProps.src) {
|
|
9357
|
+
// The 'src' attribute has not changed
|
|
9358
|
+
return;
|
|
9359
|
+
}
|
|
9360
|
+
|
|
9361
|
+
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9362
|
+
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9363
|
+
return;
|
|
9364
|
+
}
|
|
9365
|
+
|
|
9366
|
+
this.setState({
|
|
9367
|
+
removeAdditionalNode: this.state.additionalNode,
|
|
9368
|
+
additionalNode: null
|
|
9369
|
+
});
|
|
9370
|
+
};
|
|
9371
|
+
|
|
9372
|
+
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9373
|
+
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9374
|
+
};
|
|
9375
|
+
|
|
9376
|
+
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9377
|
+
var _state = this.state,
|
|
9378
|
+
additionalNode = _state.additionalNode,
|
|
9379
|
+
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9380
|
+
|
|
9381
|
+
if (additionalNode === null) {
|
|
9382
|
+
this.setState({
|
|
9383
|
+
additionalNode: this.appendAdditionalElement()
|
|
9384
|
+
});
|
|
9385
|
+
}
|
|
9386
|
+
|
|
9387
|
+
if (removeAdditionalNode !== null) {
|
|
9388
|
+
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9389
|
+
this.setState({
|
|
9390
|
+
removeAdditionalNode: null
|
|
9391
|
+
});
|
|
9392
|
+
}
|
|
9393
|
+
};
|
|
9394
|
+
|
|
9395
|
+
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9396
|
+
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9397
|
+
ScriptTag.removeNode(this.state.additionalNode);
|
|
9398
|
+
};
|
|
9399
|
+
|
|
9400
|
+
ScriptTag.prototype.render = function render() {
|
|
9401
|
+
var _this2 = this;
|
|
9402
|
+
|
|
9403
|
+
var additionalNode = this.state.additionalNode;
|
|
9404
|
+
|
|
9405
|
+
if (additionalNode !== null) {
|
|
9406
|
+
return null;
|
|
9407
|
+
}
|
|
9408
|
+
|
|
9409
|
+
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9410
|
+
// eslint-disable-next-line no-unused-vars
|
|
9411
|
+
var _props3 = this.props;
|
|
9412
|
+
_props3.isHydrating;
|
|
9413
|
+
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9414
|
+
|
|
9415
|
+
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9416
|
+
return _this2.domRef = tag;
|
|
9417
|
+
} }));
|
|
9418
|
+
};
|
|
9419
|
+
|
|
9420
|
+
return ScriptTag;
|
|
9421
|
+
}(React.Component);
|
|
9422
|
+
|
|
9423
|
+
ScriptTag.propTypes = {
|
|
9424
|
+
/**
|
|
9425
|
+
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9426
|
+
*/
|
|
9427
|
+
isHydrating: _propTypes2.default.bool,
|
|
9428
|
+
|
|
9429
|
+
// Standard <script> tag props
|
|
9430
|
+
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9431
|
+
crossOrigin: _propTypes2.default.string,
|
|
9432
|
+
defer: _propTypes2.default.bool,
|
|
9433
|
+
integrity: _propTypes2.default.string,
|
|
9434
|
+
nonce: _propTypes2.default.string,
|
|
9435
|
+
src: _propTypes2.default.string,
|
|
9436
|
+
text: _propTypes2.default.string,
|
|
9437
|
+
type: _propTypes2.default.string,
|
|
9438
|
+
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9439
|
+
|
|
9440
|
+
// globals
|
|
9441
|
+
onError: _propTypes2.default.func,
|
|
9442
|
+
onLoad: _propTypes2.default.func
|
|
9443
|
+
};
|
|
9444
|
+
ScriptTag.defaultProps = {
|
|
9445
|
+
isHydrating: false,
|
|
9446
|
+
onError: noop,
|
|
9447
|
+
onLoad: noop
|
|
9448
|
+
};
|
|
9449
|
+
exports.default = ScriptTag;
|
|
9450
|
+
});
|
|
9451
|
+
|
|
9452
|
+
unwrapExports(ScriptTag_1);
|
|
9453
|
+
|
|
9454
|
+
var lib = createCommonjsModule(function (module, exports) {
|
|
9455
|
+
|
|
9456
|
+
exports.__esModule = true;
|
|
9457
|
+
|
|
9458
|
+
|
|
9459
|
+
|
|
9460
|
+
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
9461
|
+
|
|
9462
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9463
|
+
|
|
9464
|
+
exports.default = _ScriptTag2.default;
|
|
9465
|
+
});
|
|
9466
|
+
|
|
9467
|
+
var ScriptTag = unwrapExports(lib);
|
|
9468
|
+
|
|
9469
|
+
var enterpriseDomainName = 'mjhlifesciences';
|
|
9470
|
+
|
|
9471
|
+
var FormAssembly = function FormAssembly(_ref) {
|
|
9472
|
+
var node = _ref.node;
|
|
9473
|
+
|
|
9474
|
+
var formAssemblyRef = useRef(null);
|
|
9475
|
+
var FormID = node.FormID,
|
|
9476
|
+
_node$needSegmentSupp = node.needSegmentSupport,
|
|
9477
|
+
needSegmentSupport = _node$needSegmentSupp === undefined ? false : _node$needSegmentSupp;
|
|
9478
|
+
|
|
9253
9479
|
|
|
9254
9480
|
useEffect(function () {
|
|
9255
9481
|
setTimeout(function () {
|
|
9256
|
-
var
|
|
9257
|
-
if (
|
|
9258
|
-
var
|
|
9259
|
-
var
|
|
9260
|
-
|
|
9261
|
-
if (anonymousID && needSegmentSupport && anonymousIDField) anonymousIDField.value = anonymousID;
|
|
9262
|
-
if (promoCodeField && Promocode) promoCodeField.value = Promocode;
|
|
9482
|
+
var formAssemblyIframe = formAssemblyRef.current && formAssemblyRef.current.querySelector('iframe');
|
|
9483
|
+
if (formAssemblyIframe && needSegmentSupport) {
|
|
9484
|
+
var src = formAssemblyIframe.getAttribute('src');
|
|
9485
|
+
var newSrc = Segment.getURL(src, { needSegmentSupport: true });
|
|
9486
|
+
formAssemblyIframe.setAttribute('src', newSrc);
|
|
9263
9487
|
}
|
|
9264
9488
|
}, 1000);
|
|
9265
|
-
}, [
|
|
9489
|
+
}, []);
|
|
9266
9490
|
|
|
9267
|
-
return
|
|
9491
|
+
return React.createElement(
|
|
9492
|
+
'section',
|
|
9493
|
+
{ ref: formAssemblyRef, className: 'form-assembly' },
|
|
9494
|
+
React.createElement('iframe', { src: 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID, height: '800', width: '100%', frameBorder: '0' }),
|
|
9495
|
+
React.createElement(ScriptTag, { src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9496
|
+
);
|
|
9268
9497
|
};
|
|
9269
9498
|
|
|
9270
9499
|
var BlockTable = function BlockTable(props) {
|
|
@@ -9297,27 +9526,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9297
9526
|
return window.removeEventListener('resize', handleResize);
|
|
9298
9527
|
};
|
|
9299
9528
|
}, []);
|
|
9300
|
-
return
|
|
9529
|
+
return React.createElement(
|
|
9301
9530
|
'div',
|
|
9302
9531
|
{ className: 'blockTableHolder', ref: holder },
|
|
9303
|
-
|
|
9532
|
+
React.createElement(
|
|
9304
9533
|
'div',
|
|
9305
9534
|
{ className: 'blockTable' },
|
|
9306
9535
|
rows && rows.map(function (row) {
|
|
9307
|
-
return
|
|
9536
|
+
return React.createElement(
|
|
9308
9537
|
'div',
|
|
9309
9538
|
{ className: 'blockTableRow' },
|
|
9310
9539
|
row.cells && row.cells.map(function (cell) {
|
|
9311
|
-
return
|
|
9540
|
+
return React.createElement(
|
|
9312
9541
|
'div',
|
|
9313
9542
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9314
|
-
|
|
9543
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9315
9544
|
);
|
|
9316
9545
|
})
|
|
9317
9546
|
);
|
|
9318
9547
|
})
|
|
9319
9548
|
),
|
|
9320
|
-
|
|
9549
|
+
React.createElement(
|
|
9321
9550
|
'style',
|
|
9322
9551
|
{ jsx: true },
|
|
9323
9552
|
'\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 '
|
|
@@ -9396,12 +9625,12 @@ var getSerializers = function getSerializers() {
|
|
|
9396
9625
|
var node = _ref.node;
|
|
9397
9626
|
var url = node.url;
|
|
9398
9627
|
|
|
9399
|
-
return
|
|
9628
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9400
9629
|
},
|
|
9401
9630
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9402
9631
|
var node = _ref2.node;
|
|
9403
9632
|
|
|
9404
|
-
return
|
|
9633
|
+
return React.createElement(YouTubeGallery, {
|
|
9405
9634
|
nodes: node,
|
|
9406
9635
|
article: article,
|
|
9407
9636
|
meta: meta,
|
|
@@ -9415,7 +9644,7 @@ var getSerializers = function getSerializers() {
|
|
|
9415
9644
|
articleSeries: function articleSeries(_ref3) {
|
|
9416
9645
|
var node = _ref3.node;
|
|
9417
9646
|
|
|
9418
|
-
return
|
|
9647
|
+
return React.createElement(ArticleSeries, {
|
|
9419
9648
|
nodes: node,
|
|
9420
9649
|
accountIDs: videoAccountIDs || {},
|
|
9421
9650
|
pageview: pageview,
|
|
@@ -9428,61 +9657,61 @@ var getSerializers = function getSerializers() {
|
|
|
9428
9657
|
figure: function figure(_ref4) {
|
|
9429
9658
|
var node = _ref4.node;
|
|
9430
9659
|
|
|
9431
|
-
return
|
|
9660
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9432
9661
|
},
|
|
9433
9662
|
multifigure: function multifigure(_ref5) {
|
|
9434
9663
|
var node = _ref5.node;
|
|
9435
9664
|
|
|
9436
|
-
return
|
|
9665
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9437
9666
|
},
|
|
9438
9667
|
slideshow: function slideshow(_ref6) {
|
|
9439
9668
|
var node = _ref6.node;
|
|
9440
9669
|
var slides = node.slides;
|
|
9441
9670
|
|
|
9442
|
-
return
|
|
9671
|
+
return React.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
9443
9672
|
},
|
|
9444
9673
|
sidebar: function sidebar(_ref7) {
|
|
9445
9674
|
var node = _ref7.node;
|
|
9446
9675
|
var caption = node.caption,
|
|
9447
9676
|
content = node.content;
|
|
9448
9677
|
|
|
9449
|
-
return
|
|
9678
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9450
9679
|
},
|
|
9451
9680
|
datatable: function datatable(_ref8) {
|
|
9452
9681
|
var node = _ref8.node;
|
|
9453
9682
|
var table = node.table;
|
|
9454
9683
|
|
|
9455
|
-
return
|
|
9684
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9456
9685
|
},
|
|
9457
9686
|
media: function media(_ref9) {
|
|
9458
9687
|
var node = _ref9.node;
|
|
9459
9688
|
|
|
9460
|
-
return
|
|
9689
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9461
9690
|
},
|
|
9462
9691
|
iframe: function iframe(_ref10) {
|
|
9463
9692
|
var node = _ref10.node;
|
|
9464
9693
|
|
|
9465
|
-
return
|
|
9694
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9466
9695
|
},
|
|
9467
9696
|
video: function video(_ref11) {
|
|
9468
9697
|
var node = _ref11.node;
|
|
9469
9698
|
|
|
9470
|
-
return
|
|
9699
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9471
9700
|
},
|
|
9472
9701
|
audio: function audio(_ref12) {
|
|
9473
9702
|
var node = _ref12.node;
|
|
9474
9703
|
|
|
9475
|
-
return
|
|
9704
|
+
return React.createElement(Audio, { node: node });
|
|
9476
9705
|
},
|
|
9477
9706
|
poll: function poll(_ref13) {
|
|
9478
9707
|
var node = _ref13.node;
|
|
9479
9708
|
|
|
9480
|
-
return
|
|
9709
|
+
return React.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9481
9710
|
},
|
|
9482
9711
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9483
9712
|
var node = _ref14.node;
|
|
9484
9713
|
|
|
9485
|
-
return
|
|
9714
|
+
return React.createElement(Poll, {
|
|
9486
9715
|
node: node,
|
|
9487
9716
|
client: client,
|
|
9488
9717
|
pageview: pageview,
|
|
@@ -9496,35 +9725,35 @@ var getSerializers = function getSerializers() {
|
|
|
9496
9725
|
var node = _ref15.node;
|
|
9497
9726
|
var quizzes = node.quizzes;
|
|
9498
9727
|
|
|
9499
|
-
return
|
|
9728
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9500
9729
|
},
|
|
9501
9730
|
leads: function leads(_ref16) {
|
|
9502
9731
|
var node = _ref16.node;
|
|
9503
9732
|
var leadID = node.leadID;
|
|
9504
9733
|
|
|
9505
9734
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9506
|
-
return
|
|
9735
|
+
return React.createElement(Leads, { url: url });
|
|
9507
9736
|
},
|
|
9508
9737
|
slideshows: function slideshows(_ref17) {
|
|
9509
9738
|
var node = _ref17.node;
|
|
9510
9739
|
|
|
9511
|
-
return
|
|
9740
|
+
return React.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9512
9741
|
},
|
|
9513
9742
|
nativeAd: function nativeAd(_ref18) {
|
|
9514
9743
|
var node = _ref18.node;
|
|
9515
9744
|
|
|
9516
|
-
return
|
|
9745
|
+
return React.createElement(NativeAd, { node: node });
|
|
9517
9746
|
},
|
|
9518
9747
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9519
9748
|
var node = _ref19.node;
|
|
9520
9749
|
|
|
9521
|
-
return
|
|
9750
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9522
9751
|
},
|
|
9523
9752
|
hrtag: function hrtag() {
|
|
9524
|
-
return
|
|
9753
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9525
9754
|
},
|
|
9526
9755
|
brtag: function brtag() {
|
|
9527
|
-
return
|
|
9756
|
+
return React.createElement('br', { className: 'line-break' });
|
|
9528
9757
|
},
|
|
9529
9758
|
formstack: function formstack(_ref20) {
|
|
9530
9759
|
var node = _ref20.node;
|
|
@@ -9532,29 +9761,33 @@ var getSerializers = function getSerializers() {
|
|
|
9532
9761
|
Caption = node.Caption,
|
|
9533
9762
|
needSegmentSupport = node.needSegmentSupport;
|
|
9534
9763
|
|
|
9535
|
-
return
|
|
9764
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9536
9765
|
},
|
|
9537
|
-
formassembly:
|
|
9538
|
-
multimedia: function multimedia(_ref21) {
|
|
9766
|
+
formassembly: function formassembly(_ref21) {
|
|
9539
9767
|
var node = _ref21.node;
|
|
9540
9768
|
|
|
9541
|
-
return
|
|
9769
|
+
return React.createElement(FormAssembly, { node: node });
|
|
9542
9770
|
},
|
|
9543
|
-
|
|
9771
|
+
multimedia: function multimedia(_ref22) {
|
|
9544
9772
|
var node = _ref22.node;
|
|
9545
|
-
|
|
9773
|
+
|
|
9774
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
9775
|
+
},
|
|
9776
|
+
blockTable: function blockTable(_ref23) {
|
|
9777
|
+
var node = _ref23.node;
|
|
9778
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9546
9779
|
}
|
|
9547
9780
|
},
|
|
9548
9781
|
marks: {
|
|
9549
9782
|
superscript: function superscript(props) {
|
|
9550
|
-
return
|
|
9783
|
+
return React.createElement(
|
|
9551
9784
|
'sup',
|
|
9552
9785
|
null,
|
|
9553
9786
|
props.children
|
|
9554
9787
|
);
|
|
9555
9788
|
},
|
|
9556
9789
|
subscript: function subscript(props) {
|
|
9557
|
-
return
|
|
9790
|
+
return React.createElement(
|
|
9558
9791
|
'sub',
|
|
9559
9792
|
null,
|
|
9560
9793
|
props.children
|
|
@@ -9570,7 +9803,7 @@ var getSerializers = function getSerializers() {
|
|
|
9570
9803
|
if (href && href.charAt(0) === '#') {
|
|
9571
9804
|
var elementId = href.slice(1);
|
|
9572
9805
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9573
|
-
return
|
|
9806
|
+
return React.createElement(
|
|
9574
9807
|
'a',
|
|
9575
9808
|
{ onClick: function onClick() {
|
|
9576
9809
|
return ScrollToElement(elementId);
|
|
@@ -9580,39 +9813,39 @@ var getSerializers = function getSerializers() {
|
|
|
9580
9813
|
}
|
|
9581
9814
|
|
|
9582
9815
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9583
|
-
return
|
|
9816
|
+
return React.createElement(
|
|
9584
9817
|
'a',
|
|
9585
9818
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9586
9819
|
children
|
|
9587
9820
|
);
|
|
9588
9821
|
},
|
|
9589
|
-
alignleft: function alignleft(
|
|
9590
|
-
var children =
|
|
9591
|
-
return
|
|
9822
|
+
alignleft: function alignleft(_ref24) {
|
|
9823
|
+
var children = _ref24.children;
|
|
9824
|
+
return React.createElement(
|
|
9592
9825
|
'div',
|
|
9593
9826
|
{ style: { textAlign: 'left' } },
|
|
9594
9827
|
children
|
|
9595
9828
|
);
|
|
9596
9829
|
},
|
|
9597
|
-
alignright: function alignright(
|
|
9598
|
-
var children =
|
|
9599
|
-
return
|
|
9830
|
+
alignright: function alignright(_ref25) {
|
|
9831
|
+
var children = _ref25.children;
|
|
9832
|
+
return React.createElement(
|
|
9600
9833
|
'div',
|
|
9601
9834
|
{ style: { textAlign: 'right' } },
|
|
9602
9835
|
children
|
|
9603
9836
|
);
|
|
9604
9837
|
},
|
|
9605
|
-
aligncenter: function aligncenter(
|
|
9606
|
-
var children =
|
|
9607
|
-
return
|
|
9838
|
+
aligncenter: function aligncenter(_ref26) {
|
|
9839
|
+
var children = _ref26.children;
|
|
9840
|
+
return React.createElement(
|
|
9608
9841
|
'div',
|
|
9609
9842
|
{ style: { textAlign: 'center' } },
|
|
9610
9843
|
children
|
|
9611
9844
|
);
|
|
9612
9845
|
},
|
|
9613
|
-
alignjustify: function alignjustify(
|
|
9614
|
-
var children =
|
|
9615
|
-
return
|
|
9846
|
+
alignjustify: function alignjustify(_ref27) {
|
|
9847
|
+
var children = _ref27.children;
|
|
9848
|
+
return React.createElement(
|
|
9616
9849
|
'div',
|
|
9617
9850
|
{ style: { textAlign: 'justify' } },
|
|
9618
9851
|
children
|
|
@@ -9622,7 +9855,7 @@ var getSerializers = function getSerializers() {
|
|
|
9622
9855
|
var children = props.children,
|
|
9623
9856
|
color = props.mark.color;
|
|
9624
9857
|
|
|
9625
|
-
return
|
|
9858
|
+
return React.createElement(
|
|
9626
9859
|
'span',
|
|
9627
9860
|
{ style: { color: color ? color.hex : null } },
|
|
9628
9861
|
children
|