@mjhls/mjh-framework 1.0.796-beta.0 → 1.0.796-series-test-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-bb09e44c.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-fa91dbda.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 -662
- 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 +965 -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 +31 -29
- 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 +268 -269
- 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-0a918631.js → extends-29bdbc6d.js} +7 -7
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +425 -12
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-021d644c.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-76e3378a.js → index-70cfabd2.js} +1013 -1018
- package/dist/cjs/index-bd6c9f56.js +211 -0
- 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-452ff02c.js → inherits-c2065b95.js} +19 -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-ab8f9325.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-49f41f83.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 -645
- 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 +790 -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 +25 -25
- 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 +249 -254
- 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-6f2fcc99.js → extends-60e0e1c6.js} +7 -7
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +425 -12
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-82e86707.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-1efc4a5c.js → index-613fdebe.js} +949 -961
- 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-db3bb315.js +207 -0
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +132 -132
- package/dist/esm/{inherits-cf8dde54.js → inherits-a41fe93f.js} +19 -19
- 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,39 +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 Segment from './Segment.js';
|
|
20
|
-
import Beam from './Beam.js';
|
|
21
|
-
import DFPAdSlot from './AdSlot.js';
|
|
22
|
-
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
23
7
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
+
import { u as util } from './util-3ab476bf.js';
|
|
11
|
+
import Beam from './Beam.js';
|
|
12
|
+
import Segment from './Segment.js';
|
|
13
|
+
import { d as main_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';
|
|
24
19
|
import GroupDeck from './GroupDeck.js';
|
|
25
|
-
import {
|
|
26
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
27
|
-
import { u as util } from './util-7700fc59.js';
|
|
28
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
29
|
-
import Head from 'next/head';
|
|
20
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
30
21
|
import SocialShare from './SocialShare.js';
|
|
31
|
-
import { _ as
|
|
32
|
-
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';
|
|
33
26
|
import Button$1 from 'react-bootstrap/Button';
|
|
34
|
-
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';
|
|
35
35
|
|
|
36
|
-
var urlFor = function urlFor(source, builder) {
|
|
36
|
+
var urlFor$4 = function urlFor(source, builder) {
|
|
37
37
|
return builder.image(source).auto('format');
|
|
38
38
|
};
|
|
39
39
|
|
|
@@ -43,7 +43,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
43
43
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
var Slideshow = function Slideshow(_ref) {
|
|
46
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
47
47
|
var slides = _ref.slides,
|
|
48
48
|
client = _ref.client,
|
|
49
49
|
pageview = _ref.pageview;
|
|
@@ -72,20 +72,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
72
72
|
if (pageview) pageview(router.asPath);
|
|
73
73
|
}, [router]);
|
|
74
74
|
|
|
75
|
-
return
|
|
75
|
+
return React.createElement(
|
|
76
76
|
'div',
|
|
77
77
|
{ className: 'mt-3 mb-3' },
|
|
78
|
-
|
|
78
|
+
React.createElement(
|
|
79
79
|
Carousel,
|
|
80
80
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
81
81
|
return onChangeSlide(selectedIndex, router);
|
|
82
82
|
}, interval: null },
|
|
83
83
|
slides && slides.map(function (slide) {
|
|
84
|
-
return
|
|
84
|
+
return React.createElement(
|
|
85
85
|
Carousel.Item,
|
|
86
86
|
{ key: slide._key },
|
|
87
|
-
|
|
88
|
-
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(
|
|
89
89
|
'p',
|
|
90
90
|
{ className: 'p-2' },
|
|
91
91
|
slide.caption
|
|
@@ -96,21 +96,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
96
96
|
);
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
// do not edit .js files directly - edit src/index.jst
|
|
100
|
+
|
|
101
|
+
|
|
102
102
|
|
|
103
103
|
var fastDeepEqual = function equal(a, b) {
|
|
104
104
|
if (a === b) return true;
|
|
105
105
|
|
|
106
106
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
107
|
-
|
|
108
|
-
, arrB = isArray(b)
|
|
109
|
-
, i
|
|
110
|
-
, length
|
|
111
|
-
, key;
|
|
107
|
+
if (a.constructor !== b.constructor) return false;
|
|
112
108
|
|
|
113
|
-
|
|
109
|
+
var length, i, keys;
|
|
110
|
+
if (Array.isArray(a)) {
|
|
114
111
|
length = a.length;
|
|
115
112
|
if (length != b.length) return false;
|
|
116
113
|
for (i = length; i-- !== 0;)
|
|
@@ -118,35 +115,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
118
115
|
return true;
|
|
119
116
|
}
|
|
120
117
|
|
|
121
|
-
if (arrA != arrB) return false;
|
|
122
118
|
|
|
123
|
-
var dateA = a instanceof Date
|
|
124
|
-
, dateB = b instanceof Date;
|
|
125
|
-
if (dateA != dateB) return false;
|
|
126
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
127
119
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
if (
|
|
131
|
-
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();
|
|
132
123
|
|
|
133
|
-
|
|
124
|
+
keys = Object.keys(a);
|
|
134
125
|
length = keys.length;
|
|
135
|
-
|
|
136
|
-
if (length !== keyList(b).length)
|
|
137
|
-
return false;
|
|
126
|
+
if (length !== Object.keys(b).length) return false;
|
|
138
127
|
|
|
139
128
|
for (i = length; i-- !== 0;)
|
|
140
|
-
if (!
|
|
129
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
141
130
|
|
|
142
131
|
for (i = length; i-- !== 0;) {
|
|
143
|
-
key = keys[i];
|
|
132
|
+
var key = keys[i];
|
|
133
|
+
|
|
144
134
|
if (!equal(a[key], b[key])) return false;
|
|
145
135
|
}
|
|
146
136
|
|
|
147
137
|
return true;
|
|
148
138
|
}
|
|
149
139
|
|
|
140
|
+
// true if both NaN, false otherwise
|
|
150
141
|
return a!==a && b!==b;
|
|
151
142
|
};
|
|
152
143
|
|
|
@@ -684,14 +675,14 @@ function coerce(val) {
|
|
|
684
675
|
return val;
|
|
685
676
|
}
|
|
686
677
|
});
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
678
|
+
debug.coerce;
|
|
679
|
+
debug.disable;
|
|
680
|
+
debug.enable;
|
|
681
|
+
debug.enabled;
|
|
682
|
+
debug.humanize;
|
|
683
|
+
debug.names;
|
|
684
|
+
debug.skips;
|
|
685
|
+
debug.formatters;
|
|
695
686
|
|
|
696
687
|
var browser = createCommonjsModule(function (module, exports) {
|
|
697
688
|
/**
|
|
@@ -880,13 +871,13 @@ function localstorage() {
|
|
|
880
871
|
} catch (e) {}
|
|
881
872
|
}
|
|
882
873
|
});
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
874
|
+
browser.log;
|
|
875
|
+
browser.formatArgs;
|
|
876
|
+
browser.save;
|
|
877
|
+
browser.load;
|
|
878
|
+
browser.useColors;
|
|
879
|
+
browser.storage;
|
|
880
|
+
browser.colors;
|
|
890
881
|
|
|
891
882
|
// MIT lisence
|
|
892
883
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1161,14 +1152,14 @@ function init (debug) {
|
|
|
1161
1152
|
|
|
1162
1153
|
exports.enable(load());
|
|
1163
1154
|
});
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1155
|
+
node.init;
|
|
1156
|
+
node.log;
|
|
1157
|
+
node.formatArgs;
|
|
1158
|
+
node.save;
|
|
1159
|
+
node.load;
|
|
1160
|
+
node.useColors;
|
|
1161
|
+
node.colors;
|
|
1162
|
+
node.inspectOpts;
|
|
1172
1163
|
|
|
1173
1164
|
var src = createCommonjsModule(function (module) {
|
|
1174
1165
|
/**
|
|
@@ -1569,199 +1560,239 @@ module.exports = exports['default'];
|
|
|
1569
1560
|
|
|
1570
1561
|
var youTubePlayer = unwrapExports(dist);
|
|
1571
1562
|
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
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); }
|
|
1575
1564
|
|
|
1576
1565
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1577
1566
|
|
|
1578
|
-
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); }
|
|
1579
1574
|
|
|
1580
|
-
function
|
|
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; } }
|
|
1582
|
+
|
|
1583
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1581
1584
|
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
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; }
|
|
1588
|
+
|
|
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
|
|
1587
1595
|
*/
|
|
1596
|
+
|
|
1588
1597
|
function shouldUpdateVideo(prevProps, props) {
|
|
1589
1598
|
// A changing video should always trigger an update
|
|
1590
1599
|
if (prevProps.videoId !== props.videoId) {
|
|
1591
1600
|
return true;
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
|
-
// 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
|
|
1595
1602
|
// update.
|
|
1603
|
+
|
|
1604
|
+
|
|
1596
1605
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1597
1606
|
var vars = props.opts.playerVars || {};
|
|
1598
|
-
|
|
1599
1607
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1600
1608
|
}
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
*
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
* @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
|
|
1608
1615
|
*/
|
|
1616
|
+
|
|
1617
|
+
|
|
1609
1618
|
function filterResetOptions(opts) {
|
|
1610
|
-
return
|
|
1611
|
-
playerVars:
|
|
1619
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1620
|
+
playerVars: _objectSpread({
|
|
1612
1621
|
autoplay: 0,
|
|
1613
1622
|
start: 0,
|
|
1614
1623
|
end: 0
|
|
1615
|
-
})
|
|
1624
|
+
}, opts.playerVars)
|
|
1616
1625
|
});
|
|
1617
1626
|
}
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
*
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1623
|
-
*
|
|
1624
|
-
*
|
|
1625
|
-
* @param {Object}
|
|
1626
|
-
* @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
|
|
1627
1635
|
*/
|
|
1636
|
+
|
|
1637
|
+
|
|
1628
1638
|
function shouldResetPlayer(prevProps, props) {
|
|
1629
1639
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1630
1640
|
}
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
*
|
|
1634
|
-
*
|
|
1635
|
-
* @param {Object}
|
|
1636
|
-
* @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
|
|
1637
1646
|
*/
|
|
1647
|
+
|
|
1648
|
+
|
|
1638
1649
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1639
1650
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1640
1651
|
}
|
|
1641
1652
|
|
|
1642
|
-
var YouTube = function (_React$Component) {
|
|
1653
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1643
1654
|
_inherits(YouTube, _React$Component);
|
|
1644
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
|
+
*/
|
|
1645
1663
|
function YouTube(props) {
|
|
1664
|
+
var _this;
|
|
1665
|
+
|
|
1646
1666
|
_classCallCheck(this, YouTube);
|
|
1647
1667
|
|
|
1648
|
-
|
|
1668
|
+
_this = _super.call(this, props);
|
|
1649
1669
|
|
|
1650
|
-
_this
|
|
1670
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1651
1671
|
return _this.props.onReady(event);
|
|
1652
|
-
};
|
|
1672
|
+
});
|
|
1653
1673
|
|
|
1654
|
-
_this
|
|
1674
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1655
1675
|
return _this.props.onError(event);
|
|
1656
|
-
};
|
|
1676
|
+
});
|
|
1657
1677
|
|
|
1658
|
-
_this
|
|
1678
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1659
1679
|
_this.props.onStateChange(event);
|
|
1660
|
-
switch (event.data) {
|
|
1661
1680
|
|
|
1681
|
+
switch (event.data) {
|
|
1662
1682
|
case YouTube.PlayerState.ENDED:
|
|
1663
1683
|
_this.props.onEnd(event);
|
|
1684
|
+
|
|
1664
1685
|
break;
|
|
1665
1686
|
|
|
1666
1687
|
case YouTube.PlayerState.PLAYING:
|
|
1667
1688
|
_this.props.onPlay(event);
|
|
1689
|
+
|
|
1668
1690
|
break;
|
|
1669
1691
|
|
|
1670
1692
|
case YouTube.PlayerState.PAUSED:
|
|
1671
1693
|
_this.props.onPause(event);
|
|
1694
|
+
|
|
1672
1695
|
break;
|
|
1673
1696
|
}
|
|
1674
|
-
};
|
|
1697
|
+
});
|
|
1675
1698
|
|
|
1676
|
-
_this
|
|
1699
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1677
1700
|
return _this.props.onPlaybackRateChange(event);
|
|
1678
|
-
};
|
|
1701
|
+
});
|
|
1679
1702
|
|
|
1680
|
-
_this
|
|
1703
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1681
1704
|
return _this.props.onPlaybackQualityChange(event);
|
|
1682
|
-
};
|
|
1705
|
+
});
|
|
1683
1706
|
|
|
1684
|
-
_this
|
|
1707
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1685
1708
|
// do not attempt to create a player server-side, it won't work
|
|
1686
|
-
if (typeof document === 'undefined') return;
|
|
1687
|
-
|
|
1688
|
-
var playerOpts =
|
|
1709
|
+
if (typeof document === 'undefined') return; // create player
|
|
1710
|
+
|
|
1711
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1689
1712
|
// preload the `videoId` video if one is already given
|
|
1690
1713
|
videoId: _this.props.videoId
|
|
1691
1714
|
});
|
|
1692
|
-
|
|
1693
|
-
// attach event handlers
|
|
1715
|
+
|
|
1716
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1717
|
+
|
|
1694
1718
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1719
|
+
|
|
1695
1720
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1721
|
+
|
|
1696
1722
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1723
|
+
|
|
1697
1724
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1725
|
+
|
|
1698
1726
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1699
|
-
};
|
|
1727
|
+
});
|
|
1700
1728
|
|
|
1701
|
-
_this
|
|
1729
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1702
1730
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1703
|
-
};
|
|
1731
|
+
});
|
|
1704
1732
|
|
|
1705
|
-
_this
|
|
1733
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1706
1734
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1707
1735
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1708
1736
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1709
1737
|
});
|
|
1710
|
-
};
|
|
1738
|
+
});
|
|
1739
|
+
|
|
1740
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1741
|
+
return _this.internalPlayer;
|
|
1742
|
+
});
|
|
1711
1743
|
|
|
1712
|
-
_this
|
|
1744
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1713
1745
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1714
1746
|
_this.internalPlayer.stopVideo();
|
|
1747
|
+
|
|
1715
1748
|
return;
|
|
1716
|
-
}
|
|
1749
|
+
} // set queueing options
|
|
1750
|
+
|
|
1717
1751
|
|
|
1718
|
-
// set queueing options
|
|
1719
1752
|
var autoplay = false;
|
|
1720
1753
|
var opts = {
|
|
1721
1754
|
videoId: _this.props.videoId
|
|
1722
1755
|
};
|
|
1756
|
+
|
|
1723
1757
|
if ('playerVars' in _this.props.opts) {
|
|
1724
1758
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1759
|
+
|
|
1725
1760
|
if ('start' in _this.props.opts.playerVars) {
|
|
1726
1761
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1727
1762
|
}
|
|
1763
|
+
|
|
1728
1764
|
if ('end' in _this.props.opts.playerVars) {
|
|
1729
1765
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1730
1766
|
}
|
|
1731
|
-
}
|
|
1767
|
+
} // if autoplay is enabled loadVideoById
|
|
1768
|
+
|
|
1732
1769
|
|
|
1733
|
-
// if autoplay is enabled loadVideoById
|
|
1734
1770
|
if (autoplay) {
|
|
1735
1771
|
_this.internalPlayer.loadVideoById(opts);
|
|
1772
|
+
|
|
1736
1773
|
return;
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1774
|
+
} // default behaviour just cues the video
|
|
1775
|
+
|
|
1776
|
+
|
|
1739
1777
|
_this.internalPlayer.cueVideoById(opts);
|
|
1740
|
-
};
|
|
1778
|
+
});
|
|
1741
1779
|
|
|
1742
|
-
_this
|
|
1780
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1743
1781
|
_this.container = container;
|
|
1744
|
-
};
|
|
1782
|
+
});
|
|
1745
1783
|
|
|
1746
1784
|
_this.container = null;
|
|
1747
1785
|
_this.internalPlayer = null;
|
|
1748
1786
|
return _this;
|
|
1749
1787
|
}
|
|
1750
1788
|
|
|
1751
|
-
/**
|
|
1752
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1753
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1754
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1755
|
-
*/
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
1789
|
_createClass(YouTube, [{
|
|
1759
|
-
key:
|
|
1790
|
+
key: "componentDidMount",
|
|
1760
1791
|
value: function componentDidMount() {
|
|
1761
1792
|
this.createPlayer();
|
|
1762
1793
|
}
|
|
1763
1794
|
}, {
|
|
1764
|
-
key:
|
|
1795
|
+
key: "componentDidUpdate",
|
|
1765
1796
|
value: function componentDidUpdate(prevProps) {
|
|
1766
1797
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1767
1798
|
this.updatePlayer();
|
|
@@ -1776,112 +1807,58 @@ var YouTube = function (_React$Component) {
|
|
|
1776
1807
|
}
|
|
1777
1808
|
}
|
|
1778
1809
|
}, {
|
|
1779
|
-
key:
|
|
1810
|
+
key: "componentWillUnmount",
|
|
1780
1811
|
value: function componentWillUnmount() {
|
|
1781
|
-
/**
|
|
1782
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1783
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1784
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1785
|
-
* 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.
|
|
1786
1817
|
*/
|
|
1787
1818
|
this.internalPlayer.destroy();
|
|
1788
1819
|
}
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
*
|
|
1792
|
-
*
|
|
1793
|
-
*
|
|
1794
|
-
* @param {Object} target - player object
|
|
1795
|
-
*/
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
/**
|
|
1799
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1800
|
-
*
|
|
1801
|
-
* @param {Object} event
|
|
1802
|
-
* @param {Integer} data - error type
|
|
1803
|
-
* @param {Object} target - player object
|
|
1804
|
-
*/
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
/**
|
|
1808
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1809
|
-
*
|
|
1810
|
-
* @param {Object} event
|
|
1811
|
-
* @param {Integer} data - status change type
|
|
1812
|
-
* @param {Object} target - actual YT player
|
|
1813
|
-
*/
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
/**
|
|
1817
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1818
|
-
*
|
|
1819
|
-
* @param {Object} event
|
|
1820
|
-
* @param {Float} data - playback rate
|
|
1821
|
-
* @param {Object} target - actual YT player
|
|
1822
|
-
*/
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
/**
|
|
1826
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1827
|
-
*
|
|
1828
|
-
* @param {Object} event
|
|
1829
|
-
* @param {String} data - playback quality
|
|
1830
|
-
* @param {Object} target - actual YT player
|
|
1831
|
-
*/
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
/**
|
|
1835
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1836
|
-
*/
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
/**
|
|
1840
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1841
|
-
*/
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
/**
|
|
1845
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1846
|
-
* React should update this automatically but since the Youtube Player API
|
|
1847
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1848
|
-
*/
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
/**
|
|
1852
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1853
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1854
|
-
* 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
|
|
1855
1825
|
*/
|
|
1856
1826
|
|
|
1857
1827
|
}, {
|
|
1858
|
-
key:
|
|
1828
|
+
key: "render",
|
|
1859
1829
|
value: function render() {
|
|
1860
|
-
return
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
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
|
+
}));
|
|
1865
1837
|
}
|
|
1866
1838
|
}]);
|
|
1867
1839
|
|
|
1868
1840
|
return YouTube;
|
|
1869
|
-
}(
|
|
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
|
+
});
|
|
1870
1851
|
|
|
1871
1852
|
YouTube.propTypes = {
|
|
1872
1853
|
videoId: PropTypes.string,
|
|
1873
|
-
|
|
1874
1854
|
// custom ID for player element
|
|
1875
1855
|
id: PropTypes.string,
|
|
1876
|
-
|
|
1877
1856
|
// custom class name for player element
|
|
1878
1857
|
className: PropTypes.string,
|
|
1879
1858
|
// custom class name for player container element
|
|
1880
1859
|
containerClassName: PropTypes.string,
|
|
1881
|
-
|
|
1882
1860
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1883
1861
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1884
|
-
|
|
1885
1862
|
// event subscriptions
|
|
1886
1863
|
onReady: PropTypes.func,
|
|
1887
1864
|
onError: PropTypes.func,
|
|
@@ -1893,6 +1870,7 @@ YouTube.propTypes = {
|
|
|
1893
1870
|
onPlaybackQualityChange: PropTypes.func
|
|
1894
1871
|
};
|
|
1895
1872
|
YouTube.defaultProps = {
|
|
1873
|
+
videoId: null,
|
|
1896
1874
|
id: null,
|
|
1897
1875
|
className: null,
|
|
1898
1876
|
opts: {},
|
|
@@ -1906,14 +1884,6 @@ YouTube.defaultProps = {
|
|
|
1906
1884
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1907
1885
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1908
1886
|
};
|
|
1909
|
-
YouTube.PlayerState = {
|
|
1910
|
-
UNSTARTED: -1,
|
|
1911
|
-
ENDED: 0,
|
|
1912
|
-
PLAYING: 1,
|
|
1913
|
-
PAUSED: 2,
|
|
1914
|
-
BUFFERING: 3,
|
|
1915
|
-
CUED: 5
|
|
1916
|
-
};
|
|
1917
1887
|
|
|
1918
1888
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1919
1889
|
var url = _ref.url,
|
|
@@ -1952,8 +1922,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1952
1922
|
var duration = player.getDuration();
|
|
1953
1923
|
var queue = Math.floor(duration / 10);
|
|
1954
1924
|
var segment = Math.floor(current / queue);
|
|
1955
|
-
Beam.report_beam_video('Ready',
|
|
1956
|
-
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);
|
|
1957
1927
|
};
|
|
1958
1928
|
|
|
1959
1929
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1963,8 +1933,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1963
1933
|
var segment = Math.floor(current / queue);
|
|
1964
1934
|
|
|
1965
1935
|
if (!queueProgress.includes(segment)) {
|
|
1966
|
-
Beam.report_beam_video('Segment',
|
|
1967
|
-
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);
|
|
1968
1938
|
queueProgress.push(segment);
|
|
1969
1939
|
}
|
|
1970
1940
|
};
|
|
@@ -1977,8 +1947,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1977
1947
|
var queue = Math.floor(duration / 10);
|
|
1978
1948
|
var segment = Math.floor(current / queue);
|
|
1979
1949
|
|
|
1980
|
-
Beam.report_beam_video('Play',
|
|
1981
|
-
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);
|
|
1982
1952
|
|
|
1983
1953
|
if (!playReported) {
|
|
1984
1954
|
setPlayReported(true);
|
|
@@ -1997,8 +1967,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1997
1967
|
var queue = Math.floor(duration / 10);
|
|
1998
1968
|
var segment = Math.floor(current / queue);
|
|
1999
1969
|
|
|
2000
|
-
Beam.report_beam_video('End',
|
|
2001
|
-
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);
|
|
2002
1972
|
setEndReported(true);
|
|
2003
1973
|
clearInterval(intervalID);
|
|
2004
1974
|
}
|
|
@@ -2011,15 +1981,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2011
1981
|
var queue = Math.floor(duration / 10);
|
|
2012
1982
|
var segment = Math.floor(current / queue);
|
|
2013
1983
|
|
|
2014
|
-
Beam.report_beam_video('Pause',
|
|
2015
|
-
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);
|
|
2016
1986
|
};
|
|
2017
1987
|
|
|
2018
|
-
return
|
|
1988
|
+
return React.createElement(
|
|
2019
1989
|
'div',
|
|
2020
1990
|
{ id: 'fluid-video-container' },
|
|
2021
|
-
|
|
2022
|
-
|
|
1991
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1992
|
+
React.createElement(
|
|
2023
1993
|
'style',
|
|
2024
1994
|
{ jsx: 'true' },
|
|
2025
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 '
|
|
@@ -2032,20 +2002,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2032
2002
|
content = _ref.content,
|
|
2033
2003
|
getSerializers = _ref.getSerializers;
|
|
2034
2004
|
|
|
2035
|
-
return
|
|
2005
|
+
return React.createElement(
|
|
2036
2006
|
'article',
|
|
2037
2007
|
{ className: 'sidebar' },
|
|
2038
|
-
|
|
2008
|
+
React.createElement(
|
|
2039
2009
|
'div',
|
|
2040
2010
|
null,
|
|
2041
|
-
|
|
2011
|
+
React.createElement(
|
|
2042
2012
|
'h3',
|
|
2043
2013
|
null,
|
|
2044
2014
|
caption
|
|
2045
2015
|
),
|
|
2046
|
-
|
|
2016
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2047
2017
|
),
|
|
2048
|
-
|
|
2018
|
+
React.createElement(
|
|
2049
2019
|
'style',
|
|
2050
2020
|
{ jsx: 'true' },
|
|
2051
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 '
|
|
@@ -2056,18 +2026,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2056
2026
|
var TableShow = function TableShow(_ref) {
|
|
2057
2027
|
var rows = _ref.rows;
|
|
2058
2028
|
|
|
2059
|
-
return
|
|
2029
|
+
return React.createElement(
|
|
2060
2030
|
Table,
|
|
2061
2031
|
{ bordered: true, hover: true, responsive: true },
|
|
2062
|
-
|
|
2032
|
+
React.createElement(
|
|
2063
2033
|
'tbody',
|
|
2064
2034
|
null,
|
|
2065
2035
|
rows && rows.map(function (row) {
|
|
2066
|
-
return
|
|
2036
|
+
return React.createElement(
|
|
2067
2037
|
'tr',
|
|
2068
2038
|
{ key: row._key },
|
|
2069
2039
|
row.cells && row.cells.map(function (cell, index) {
|
|
2070
|
-
return cell &&
|
|
2040
|
+
return cell && React.createElement(
|
|
2071
2041
|
'td',
|
|
2072
2042
|
{ key: index },
|
|
2073
2043
|
cell
|
|
@@ -2170,18 +2140,18 @@ var Media = function Media(_ref) {
|
|
|
2170
2140
|
margin: imageMargin
|
|
2171
2141
|
};
|
|
2172
2142
|
|
|
2173
|
-
return
|
|
2143
|
+
return React.createElement(
|
|
2174
2144
|
Figure$1,
|
|
2175
2145
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2176
|
-
|
|
2146
|
+
React.createElement(
|
|
2177
2147
|
'a',
|
|
2178
2148
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2179
|
-
|
|
2149
|
+
React.createElement(
|
|
2180
2150
|
LazyLoad,
|
|
2181
2151
|
{ once: true },
|
|
2182
|
-
|
|
2152
|
+
React.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2183
2153
|
),
|
|
2184
|
-
caption &&
|
|
2154
|
+
caption && React.createElement(
|
|
2185
2155
|
Figure$1.Caption,
|
|
2186
2156
|
{ className: 'media-caption' },
|
|
2187
2157
|
caption
|
|
@@ -2189,9 +2159,9 @@ var Media = function Media(_ref) {
|
|
|
2189
2159
|
)
|
|
2190
2160
|
);
|
|
2191
2161
|
} else if (caption && caption !== '') {
|
|
2192
|
-
return
|
|
2162
|
+
return React.createElement(
|
|
2193
2163
|
'a',
|
|
2194
|
-
_extends
|
|
2164
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2195
2165
|
href: uploadDoc.asset.url + '?dl='
|
|
2196
2166
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2197
2167
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2209,10 +2179,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2209
2179
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2210
2180
|
|
|
2211
2181
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2212
|
-
return
|
|
2182
|
+
return React.createElement(
|
|
2213
2183
|
'div',
|
|
2214
2184
|
{ className: 'd-block text-center mb-3' },
|
|
2215
|
-
|
|
2185
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2216
2186
|
);
|
|
2217
2187
|
};
|
|
2218
2188
|
|
|
@@ -2246,8 +2216,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2246
2216
|
var duration = player.duration;
|
|
2247
2217
|
var queue = Math.floor(duration / 10);
|
|
2248
2218
|
var segment = Math.floor(current / queue);
|
|
2249
|
-
Beam.report_beam_video('Ready',
|
|
2250
|
-
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');
|
|
2251
2221
|
};
|
|
2252
2222
|
|
|
2253
2223
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2256,8 +2226,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2256
2226
|
var queue = Math.floor(duration / 10);
|
|
2257
2227
|
var segment = Math.floor(current / queue);
|
|
2258
2228
|
if (!queueProgress.includes(segment)) {
|
|
2259
|
-
Beam.report_beam_video('Segment',
|
|
2260
|
-
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');
|
|
2261
2231
|
queueProgress.push(segment);
|
|
2262
2232
|
}
|
|
2263
2233
|
};
|
|
@@ -2269,8 +2239,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2269
2239
|
var duration = player.duration;
|
|
2270
2240
|
var queue = Math.floor(duration / 10);
|
|
2271
2241
|
var segment = Math.floor(current / queue);
|
|
2272
|
-
Beam.report_beam_video('Play',
|
|
2273
|
-
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');
|
|
2274
2244
|
|
|
2275
2245
|
if (!playReported) {
|
|
2276
2246
|
event.persist();
|
|
@@ -2290,8 +2260,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2290
2260
|
var queue = Math.floor(duration / 10);
|
|
2291
2261
|
var segment = Math.floor(current / queue);
|
|
2292
2262
|
|
|
2293
|
-
Beam.report_beam_video('End',
|
|
2294
|
-
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');
|
|
2295
2265
|
setEndReported(true);
|
|
2296
2266
|
clearInterval(intervalID);
|
|
2297
2267
|
}
|
|
@@ -2303,14 +2273,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2303
2273
|
var duration = player.duration - current;
|
|
2304
2274
|
var queue = Math.floor(duration / 10);
|
|
2305
2275
|
var segment = Math.floor(current / queue);
|
|
2306
|
-
Beam.report_beam_video('Pause',
|
|
2307
|
-
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');
|
|
2308
2278
|
};
|
|
2309
2279
|
|
|
2310
|
-
return
|
|
2280
|
+
return React.createElement(
|
|
2311
2281
|
'div',
|
|
2312
2282
|
null,
|
|
2313
|
-
vidLoaded &&
|
|
2283
|
+
vidLoaded && React.createElement(
|
|
2314
2284
|
'video',
|
|
2315
2285
|
{
|
|
2316
2286
|
poster: thumbnail || '',
|
|
@@ -2328,7 +2298,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2328
2298
|
onPlay: function onPlay(e) {
|
|
2329
2299
|
return handleOnPlay(e);
|
|
2330
2300
|
} },
|
|
2331
|
-
|
|
2301
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2332
2302
|
'Your browser does not support the video tag.'
|
|
2333
2303
|
)
|
|
2334
2304
|
);
|
|
@@ -2365,7 +2335,7 @@ var Video = function Video(_ref) {
|
|
|
2365
2335
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2366
2336
|
//console.log('success:', success.ref)
|
|
2367
2337
|
var player = success.ref;
|
|
2368
|
-
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) {
|
|
2369
2339
|
player.ima3.settings.debug = true;
|
|
2370
2340
|
if (targeting.content_placement && targeting.document_url) {
|
|
2371
2341
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2393,8 +2363,8 @@ var Video = function Video(_ref) {
|
|
|
2393
2363
|
player.pause();
|
|
2394
2364
|
}
|
|
2395
2365
|
|
|
2396
|
-
Beam.report_beam_video('Ready',
|
|
2397
|
-
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);
|
|
2398
2368
|
});
|
|
2399
2369
|
|
|
2400
2370
|
// play
|
|
@@ -2403,8 +2373,8 @@ var Video = function Video(_ref) {
|
|
|
2403
2373
|
var current = player.currentTime();
|
|
2404
2374
|
var queue = Math.floor(duration / 10);
|
|
2405
2375
|
var segment = Math.floor(current / queue);
|
|
2406
|
-
Beam.report_beam_video('Play',
|
|
2407
|
-
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);
|
|
2408
2378
|
});
|
|
2409
2379
|
|
|
2410
2380
|
// pause
|
|
@@ -2413,8 +2383,8 @@ var Video = function Video(_ref) {
|
|
|
2413
2383
|
var current = player.currentTime();
|
|
2414
2384
|
var queue = Math.floor(duration / 10);
|
|
2415
2385
|
var segment = Math.floor(current / queue);
|
|
2416
|
-
Beam.report_beam_video('Pause',
|
|
2417
|
-
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);
|
|
2418
2388
|
});
|
|
2419
2389
|
|
|
2420
2390
|
// end
|
|
@@ -2423,8 +2393,8 @@ var Video = function Video(_ref) {
|
|
|
2423
2393
|
var current = player.currentTime();
|
|
2424
2394
|
var queue = Math.floor(duration / 10);
|
|
2425
2395
|
var segment = Math.floor(current / queue);
|
|
2426
|
-
Beam.report_beam_video('End',
|
|
2427
|
-
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);
|
|
2428
2398
|
autoplayNextVideo(evt);
|
|
2429
2399
|
});
|
|
2430
2400
|
|
|
@@ -2435,8 +2405,8 @@ var Video = function Video(_ref) {
|
|
|
2435
2405
|
var queue = Math.floor(duration / 10);
|
|
2436
2406
|
var segment = Math.floor(current / queue);
|
|
2437
2407
|
if (!queueProgress.includes(segment)) {
|
|
2438
|
-
Beam.report_beam_video('Segment',
|
|
2439
|
-
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);
|
|
2440
2410
|
queueProgress.push(segment);
|
|
2441
2411
|
}
|
|
2442
2412
|
});
|
|
@@ -2447,8 +2417,8 @@ var Video = function Video(_ref) {
|
|
|
2447
2417
|
var id = player.ads.ad.id;
|
|
2448
2418
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2449
2419
|
|
|
2450
|
-
Beam.report_beam_ad('AD Started',
|
|
2451
|
-
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);
|
|
2452
2422
|
});
|
|
2453
2423
|
|
|
2454
2424
|
// ad ended
|
|
@@ -2456,60 +2426,60 @@ var Video = function Video(_ref) {
|
|
|
2456
2426
|
var duration = player.ads.ad.duration;
|
|
2457
2427
|
var id = player.ads.ad.id;
|
|
2458
2428
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2459
|
-
Beam.report_beam_ad('AD Ended',
|
|
2460
|
-
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);
|
|
2461
2431
|
});
|
|
2462
2432
|
};
|
|
2463
2433
|
|
|
2464
2434
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2465
2435
|
if (videoID) {
|
|
2466
|
-
return
|
|
2436
|
+
return React.createElement(
|
|
2467
2437
|
'div',
|
|
2468
2438
|
null,
|
|
2469
|
-
|
|
2439
|
+
React.createElement(ReactPlayerLoader, {
|
|
2470
2440
|
onSuccess: onVideoSuccess,
|
|
2471
2441
|
accountId: accountIDs.brightcove.accountId,
|
|
2472
2442
|
videoId: videoID,
|
|
2473
2443
|
playerId: accountIDs.brightcove.playerId,
|
|
2474
2444
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2475
2445
|
}),
|
|
2476
|
-
|
|
2446
|
+
React.createElement(
|
|
2477
2447
|
'style',
|
|
2478
2448
|
{ jsx: 'true' },
|
|
2479
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 '
|
|
2480
2450
|
)
|
|
2481
2451
|
);
|
|
2482
2452
|
} else if (playlistID) {
|
|
2483
|
-
return
|
|
2453
|
+
return React.createElement(
|
|
2484
2454
|
'div',
|
|
2485
2455
|
null,
|
|
2486
|
-
|
|
2456
|
+
React.createElement(ReactPlayerLoader, {
|
|
2487
2457
|
accountId: accountIDs.brightcove.accountId,
|
|
2488
2458
|
playlistId: playlistID,
|
|
2489
2459
|
playerId: accountIDs.brightcove.playerId,
|
|
2490
2460
|
onSuccess: onVideoSuccess,
|
|
2491
2461
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2492
2462
|
}),
|
|
2493
|
-
|
|
2463
|
+
React.createElement(
|
|
2494
2464
|
'style',
|
|
2495
2465
|
{ jsx: 'true' },
|
|
2496
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 '
|
|
2497
2467
|
)
|
|
2498
2468
|
);
|
|
2499
2469
|
} else if (experienceID) {
|
|
2500
|
-
return
|
|
2470
|
+
return React.createElement(
|
|
2501
2471
|
'div',
|
|
2502
2472
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2503
|
-
videoLoaded &&
|
|
2473
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2504
2474
|
);
|
|
2505
2475
|
}
|
|
2506
2476
|
return null;
|
|
2507
2477
|
}
|
|
2508
2478
|
if (source === 'mp4') {
|
|
2509
|
-
return
|
|
2479
|
+
return React.createElement(
|
|
2510
2480
|
'div',
|
|
2511
2481
|
null,
|
|
2512
|
-
|
|
2482
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2513
2483
|
);
|
|
2514
2484
|
}
|
|
2515
2485
|
|
|
@@ -2720,9 +2690,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2720
2690
|
});
|
|
2721
2691
|
|
|
2722
2692
|
unwrapExports(props);
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2693
|
+
props.DEPRECATED_CONFIG_PROPS;
|
|
2694
|
+
props.defaultProps;
|
|
2695
|
+
props.propTypes;
|
|
2726
2696
|
|
|
2727
2697
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2728
2698
|
return isNonNullObject(value)
|
|
@@ -2887,11 +2857,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2887
2857
|
|
|
2888
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; }
|
|
2889
2859
|
|
|
2890
|
-
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(); }
|
|
2891
2863
|
|
|
2892
|
-
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."); }
|
|
2893
2865
|
|
|
2894
|
-
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; }
|
|
2895
2871
|
|
|
2896
2872
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2897
2873
|
|
|
@@ -3021,12 +2997,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3021
2997
|
|
|
3022
2998
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3023
2999
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3024
|
-
|
|
3025
|
-
var
|
|
3026
|
-
|
|
3000
|
+
|
|
3001
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3002
|
+
_step;
|
|
3027
3003
|
|
|
3028
3004
|
try {
|
|
3029
|
-
for (
|
|
3005
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3030
3006
|
var p = _step.value;
|
|
3031
3007
|
|
|
3032
3008
|
if (props$1[p]) {
|
|
@@ -3041,18 +3017,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3041
3017
|
}
|
|
3042
3018
|
}
|
|
3043
3019
|
} catch (err) {
|
|
3044
|
-
|
|
3045
|
-
_iteratorError = err;
|
|
3020
|
+
_iterator.e(err);
|
|
3046
3021
|
} finally {
|
|
3047
|
-
|
|
3048
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3049
|
-
_iterator["return"]();
|
|
3050
|
-
}
|
|
3051
|
-
} finally {
|
|
3052
|
-
if (_didIteratorError) {
|
|
3053
|
-
throw _iteratorError;
|
|
3054
|
-
}
|
|
3055
|
-
}
|
|
3022
|
+
_iterator.f();
|
|
3056
3023
|
}
|
|
3057
3024
|
|
|
3058
3025
|
return config;
|
|
@@ -3117,7 +3084,7 @@ function isEqual(a, b) {
|
|
|
3117
3084
|
return true;
|
|
3118
3085
|
}
|
|
3119
3086
|
|
|
3120
|
-
if ((0,
|
|
3087
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3121
3088
|
return true;
|
|
3122
3089
|
}
|
|
3123
3090
|
|
|
@@ -3160,17 +3127,17 @@ function isMediaStream(url) {
|
|
|
3160
3127
|
});
|
|
3161
3128
|
|
|
3162
3129
|
unwrapExports(utils);
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
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;
|
|
3174
3141
|
|
|
3175
3142
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3176
3143
|
|
|
@@ -3179,7 +3146,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3179
3146
|
});
|
|
3180
3147
|
exports["default"] = void 0;
|
|
3181
3148
|
|
|
3182
|
-
var _react = _interopRequireWildcard(
|
|
3149
|
+
var _react = _interopRequireWildcard(React);
|
|
3183
3150
|
|
|
3184
3151
|
|
|
3185
3152
|
|
|
@@ -3199,12 +3166,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3199
3166
|
|
|
3200
3167
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3201
3168
|
|
|
3202
|
-
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); }; }
|
|
3203
3170
|
|
|
3204
|
-
function
|
|
3171
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3205
3172
|
|
|
3206
3173
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3207
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
|
+
|
|
3208
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); }
|
|
3209
3180
|
|
|
3210
3181
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3213,14 +3184,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3213
3184
|
|
|
3214
3185
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3215
3186
|
|
|
3216
|
-
var Player =
|
|
3217
|
-
/*#__PURE__*/
|
|
3218
|
-
function (_Component) {
|
|
3187
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3219
3188
|
_inherits(Player, _Component);
|
|
3220
3189
|
|
|
3221
|
-
|
|
3222
|
-
var _getPrototypeOf2;
|
|
3190
|
+
var _super = _createSuper(Player);
|
|
3223
3191
|
|
|
3192
|
+
function Player() {
|
|
3224
3193
|
var _this;
|
|
3225
3194
|
|
|
3226
3195
|
_classCallCheck(this, Player);
|
|
@@ -3229,7 +3198,7 @@ function (_Component) {
|
|
|
3229
3198
|
_args[_key] = arguments[_key];
|
|
3230
3199
|
}
|
|
3231
3200
|
|
|
3232
|
-
_this =
|
|
3201
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3233
3202
|
|
|
3234
3203
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3235
3204
|
|
|
@@ -3554,7 +3523,7 @@ function (_Component) {
|
|
|
3554
3523
|
return null;
|
|
3555
3524
|
}
|
|
3556
3525
|
|
|
3557
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3526
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3558
3527
|
ref: this.ref,
|
|
3559
3528
|
onReady: this.handleReady,
|
|
3560
3529
|
onPlay: this.handlePlay,
|
|
@@ -3587,7 +3556,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3587
3556
|
});
|
|
3588
3557
|
exports["default"] = createSinglePlayer;
|
|
3589
3558
|
|
|
3590
|
-
var _react = _interopRequireWildcard(
|
|
3559
|
+
var _react = _interopRequireWildcard(React);
|
|
3591
3560
|
|
|
3592
3561
|
|
|
3593
3562
|
|
|
@@ -3615,12 +3584,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3615
3584
|
|
|
3616
3585
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3617
3586
|
|
|
3618
|
-
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); }; }
|
|
3619
3588
|
|
|
3620
|
-
function
|
|
3589
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3621
3590
|
|
|
3622
3591
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3623
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
|
+
|
|
3624
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); }
|
|
3625
3598
|
|
|
3626
3599
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3632,14 +3605,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3632
3605
|
function createSinglePlayer(activePlayer) {
|
|
3633
3606
|
var _class, _temp;
|
|
3634
3607
|
|
|
3635
|
-
return _temp = _class =
|
|
3636
|
-
/*#__PURE__*/
|
|
3637
|
-
function (_Component) {
|
|
3608
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3638
3609
|
_inherits(SinglePlayer, _Component);
|
|
3639
3610
|
|
|
3640
|
-
|
|
3641
|
-
var _getPrototypeOf2;
|
|
3611
|
+
var _super = _createSuper(SinglePlayer);
|
|
3642
3612
|
|
|
3613
|
+
function SinglePlayer() {
|
|
3643
3614
|
var _this;
|
|
3644
3615
|
|
|
3645
3616
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3648,7 +3619,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3648
3619
|
args[_key] = arguments[_key];
|
|
3649
3620
|
}
|
|
3650
3621
|
|
|
3651
|
-
_this =
|
|
3622
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3652
3623
|
|
|
3653
3624
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3654
3625
|
|
|
@@ -3716,12 +3687,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3716
3687
|
height = _this$props.height,
|
|
3717
3688
|
Wrapper = _this$props.wrapper;
|
|
3718
3689
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3719
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3690
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3720
3691
|
style: _objectSpread({}, style, {
|
|
3721
3692
|
width: width,
|
|
3722
3693
|
height: height
|
|
3723
3694
|
})
|
|
3724
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3695
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3725
3696
|
ref: this.ref,
|
|
3726
3697
|
activePlayer: activePlayer,
|
|
3727
3698
|
config: this.config
|
|
@@ -3743,7 +3714,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3743
3714
|
});
|
|
3744
3715
|
exports["default"] = exports.YouTube = void 0;
|
|
3745
3716
|
|
|
3746
|
-
var _react = _interopRequireWildcard(
|
|
3717
|
+
var _react = _interopRequireWildcard(React);
|
|
3747
3718
|
|
|
3748
3719
|
|
|
3749
3720
|
|
|
@@ -3767,23 +3738,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3767
3738
|
|
|
3768
3739
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3769
3740
|
|
|
3770
|
-
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); }; }
|
|
3771
3742
|
|
|
3772
|
-
function
|
|
3743
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3773
3744
|
|
|
3774
3745
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3775
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
|
+
|
|
3776
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); }
|
|
3777
3752
|
|
|
3778
3753
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3779
3754
|
|
|
3780
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; }
|
|
3781
3756
|
|
|
3782
|
-
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."); }
|
|
3760
|
+
|
|
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); }
|
|
3783
3762
|
|
|
3784
|
-
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; }
|
|
3785
3764
|
|
|
3786
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
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; }
|
|
3787
3766
|
|
|
3788
3767
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3789
3768
|
|
|
@@ -3808,14 +3787,12 @@ function parsePlaylist(url) {
|
|
|
3808
3787
|
return {};
|
|
3809
3788
|
}
|
|
3810
3789
|
|
|
3811
|
-
var YouTube =
|
|
3812
|
-
/*#__PURE__*/
|
|
3813
|
-
function (_Component) {
|
|
3790
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3814
3791
|
_inherits(YouTube, _Component);
|
|
3815
3792
|
|
|
3816
|
-
|
|
3817
|
-
var _getPrototypeOf2;
|
|
3793
|
+
var _super = _createSuper(YouTube);
|
|
3818
3794
|
|
|
3795
|
+
function YouTube() {
|
|
3819
3796
|
var _this;
|
|
3820
3797
|
|
|
3821
3798
|
_classCallCheck(this, YouTube);
|
|
@@ -3824,7 +3801,7 @@ function (_Component) {
|
|
|
3824
3801
|
args[_key] = arguments[_key];
|
|
3825
3802
|
}
|
|
3826
3803
|
|
|
3827
|
-
_this =
|
|
3804
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3828
3805
|
|
|
3829
3806
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3830
3807
|
|
|
@@ -4012,9 +3989,9 @@ function (_Component) {
|
|
|
4012
3989
|
height: '100%',
|
|
4013
3990
|
display: display
|
|
4014
3991
|
};
|
|
4015
|
-
return _react["default"].createElement("div", {
|
|
3992
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4016
3993
|
style: style
|
|
4017
|
-
}, _react["default"].createElement("div", {
|
|
3994
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4018
3995
|
ref: this.ref
|
|
4019
3996
|
}));
|
|
4020
3997
|
}
|
|
@@ -4037,7 +4014,7 @@ exports["default"] = _default;
|
|
|
4037
4014
|
});
|
|
4038
4015
|
|
|
4039
4016
|
unwrapExports(YouTube_1);
|
|
4040
|
-
|
|
4017
|
+
YouTube_1.YouTube;
|
|
4041
4018
|
|
|
4042
4019
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4043
4020
|
|
|
@@ -4046,7 +4023,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4046
4023
|
});
|
|
4047
4024
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4048
4025
|
|
|
4049
|
-
var _react = _interopRequireWildcard(
|
|
4026
|
+
var _react = _interopRequireWildcard(React);
|
|
4050
4027
|
|
|
4051
4028
|
|
|
4052
4029
|
|
|
@@ -4070,12 +4047,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4070
4047
|
|
|
4071
4048
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4072
4049
|
|
|
4073
|
-
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); }; }
|
|
4074
4051
|
|
|
4075
|
-
function
|
|
4052
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4076
4053
|
|
|
4077
4054
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4078
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
|
+
|
|
4079
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); }
|
|
4080
4061
|
|
|
4081
4062
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4084,16 +4065,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4084
4065
|
|
|
4085
4066
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4086
4067
|
var SDK_GLOBAL = 'SC';
|
|
4087
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4068
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4088
4069
|
|
|
4089
|
-
var SoundCloud =
|
|
4090
|
-
/*#__PURE__*/
|
|
4091
|
-
function (_Component) {
|
|
4070
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4092
4071
|
_inherits(SoundCloud, _Component);
|
|
4093
4072
|
|
|
4094
|
-
|
|
4095
|
-
var _getPrototypeOf2;
|
|
4073
|
+
var _super = _createSuper(SoundCloud);
|
|
4096
4074
|
|
|
4075
|
+
function SoundCloud() {
|
|
4097
4076
|
var _this;
|
|
4098
4077
|
|
|
4099
4078
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4102,7 +4081,7 @@ function (_Component) {
|
|
|
4102
4081
|
args[_key] = arguments[_key];
|
|
4103
4082
|
}
|
|
4104
4083
|
|
|
4105
|
-
_this =
|
|
4084
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4106
4085
|
|
|
4107
4086
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4108
4087
|
|
|
@@ -4223,7 +4202,7 @@ function (_Component) {
|
|
|
4223
4202
|
height: '100%',
|
|
4224
4203
|
display: display
|
|
4225
4204
|
};
|
|
4226
|
-
return _react["default"].createElement("iframe", {
|
|
4205
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4227
4206
|
ref: this.ref,
|
|
4228
4207
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4229
4208
|
style: style,
|
|
@@ -4252,7 +4231,7 @@ exports["default"] = _default;
|
|
|
4252
4231
|
});
|
|
4253
4232
|
|
|
4254
4233
|
unwrapExports(SoundCloud_1);
|
|
4255
|
-
|
|
4234
|
+
SoundCloud_1.SoundCloud;
|
|
4256
4235
|
|
|
4257
4236
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4258
4237
|
|
|
@@ -4261,7 +4240,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4261
4240
|
});
|
|
4262
4241
|
exports["default"] = exports.Vimeo = void 0;
|
|
4263
4242
|
|
|
4264
|
-
var _react = _interopRequireWildcard(
|
|
4243
|
+
var _react = _interopRequireWildcard(React);
|
|
4265
4244
|
|
|
4266
4245
|
|
|
4267
4246
|
|
|
@@ -4285,12 +4264,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4285
4264
|
|
|
4286
4265
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4287
4266
|
|
|
4288
|
-
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); }; }
|
|
4289
4268
|
|
|
4290
|
-
function
|
|
4269
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4291
4270
|
|
|
4292
4271
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4293
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
|
+
|
|
4294
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); }
|
|
4295
4278
|
|
|
4296
4279
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4302,14 +4285,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4302
4285
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4303
4286
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4304
4287
|
|
|
4305
|
-
var Vimeo =
|
|
4306
|
-
/*#__PURE__*/
|
|
4307
|
-
function (_Component) {
|
|
4288
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4308
4289
|
_inherits(Vimeo, _Component);
|
|
4309
4290
|
|
|
4310
|
-
|
|
4311
|
-
var _getPrototypeOf2;
|
|
4291
|
+
var _super = _createSuper(Vimeo);
|
|
4312
4292
|
|
|
4293
|
+
function Vimeo() {
|
|
4313
4294
|
var _this;
|
|
4314
4295
|
|
|
4315
4296
|
_classCallCheck(this, Vimeo);
|
|
@@ -4318,7 +4299,7 @@ function (_Component) {
|
|
|
4318
4299
|
args[_key] = arguments[_key];
|
|
4319
4300
|
}
|
|
4320
4301
|
|
|
4321
|
-
_this =
|
|
4302
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4322
4303
|
|
|
4323
4304
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4324
4305
|
|
|
@@ -4475,7 +4456,7 @@ function (_Component) {
|
|
|
4475
4456
|
overflow: 'hidden',
|
|
4476
4457
|
display: display
|
|
4477
4458
|
};
|
|
4478
|
-
return _react["default"].createElement("div", {
|
|
4459
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4479
4460
|
key: this.props.url,
|
|
4480
4461
|
ref: this.ref,
|
|
4481
4462
|
style: style
|
|
@@ -4506,7 +4487,7 @@ exports["default"] = _default;
|
|
|
4506
4487
|
});
|
|
4507
4488
|
|
|
4508
4489
|
unwrapExports(Vimeo_1);
|
|
4509
|
-
|
|
4490
|
+
Vimeo_1.Vimeo;
|
|
4510
4491
|
|
|
4511
4492
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4512
4493
|
|
|
@@ -4515,7 +4496,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4515
4496
|
});
|
|
4516
4497
|
exports["default"] = exports.Facebook = void 0;
|
|
4517
4498
|
|
|
4518
|
-
var _react = _interopRequireWildcard(
|
|
4499
|
+
var _react = _interopRequireWildcard(React);
|
|
4519
4500
|
|
|
4520
4501
|
|
|
4521
4502
|
|
|
@@ -4535,12 +4516,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4535
4516
|
|
|
4536
4517
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4537
4518
|
|
|
4538
|
-
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); }; }
|
|
4539
4520
|
|
|
4540
|
-
function
|
|
4521
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4541
4522
|
|
|
4542
4523
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4543
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
|
+
|
|
4544
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); }
|
|
4545
4530
|
|
|
4546
4531
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4553,14 +4538,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4553
4538
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4554
4539
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4555
4540
|
|
|
4556
|
-
var Facebook =
|
|
4557
|
-
/*#__PURE__*/
|
|
4558
|
-
function (_Component) {
|
|
4541
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4559
4542
|
_inherits(Facebook, _Component);
|
|
4560
4543
|
|
|
4561
|
-
|
|
4562
|
-
var _getPrototypeOf2;
|
|
4544
|
+
var _super = _createSuper(Facebook);
|
|
4563
4545
|
|
|
4546
|
+
function Facebook() {
|
|
4564
4547
|
var _this;
|
|
4565
4548
|
|
|
4566
4549
|
_classCallCheck(this, Facebook);
|
|
@@ -4569,7 +4552,7 @@ function (_Component) {
|
|
|
4569
4552
|
args[_key] = arguments[_key];
|
|
4570
4553
|
}
|
|
4571
4554
|
|
|
4572
|
-
_this =
|
|
4555
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4573
4556
|
|
|
4574
4557
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4575
4558
|
|
|
@@ -4685,7 +4668,7 @@ function (_Component) {
|
|
|
4685
4668
|
width: '100%',
|
|
4686
4669
|
height: '100%'
|
|
4687
4670
|
};
|
|
4688
|
-
return _react["default"].createElement("div", {
|
|
4671
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4689
4672
|
style: style,
|
|
4690
4673
|
id: this.playerID,
|
|
4691
4674
|
className: "fb-video",
|
|
@@ -4716,7 +4699,7 @@ exports["default"] = _default;
|
|
|
4716
4699
|
});
|
|
4717
4700
|
|
|
4718
4701
|
unwrapExports(Facebook_1);
|
|
4719
|
-
|
|
4702
|
+
Facebook_1.Facebook;
|
|
4720
4703
|
|
|
4721
4704
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4722
4705
|
|
|
@@ -4725,7 +4708,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4725
4708
|
});
|
|
4726
4709
|
exports["default"] = exports.Streamable = void 0;
|
|
4727
4710
|
|
|
4728
|
-
var _react = _interopRequireWildcard(
|
|
4711
|
+
var _react = _interopRequireWildcard(React);
|
|
4729
4712
|
|
|
4730
4713
|
|
|
4731
4714
|
|
|
@@ -4745,12 +4728,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4745
4728
|
|
|
4746
4729
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4747
4730
|
|
|
4748
|
-
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); }; }
|
|
4749
4732
|
|
|
4750
|
-
function
|
|
4733
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4751
4734
|
|
|
4752
4735
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4753
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
|
+
|
|
4754
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); }
|
|
4755
4742
|
|
|
4756
4743
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4761,14 +4748,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4761
4748
|
var SDK_GLOBAL = 'playerjs';
|
|
4762
4749
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4763
4750
|
|
|
4764
|
-
var Streamable =
|
|
4765
|
-
/*#__PURE__*/
|
|
4766
|
-
function (_Component) {
|
|
4751
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4767
4752
|
_inherits(Streamable, _Component);
|
|
4768
4753
|
|
|
4769
|
-
|
|
4770
|
-
var _getPrototypeOf2;
|
|
4754
|
+
var _super = _createSuper(Streamable);
|
|
4771
4755
|
|
|
4756
|
+
function Streamable() {
|
|
4772
4757
|
var _this;
|
|
4773
4758
|
|
|
4774
4759
|
_classCallCheck(this, Streamable);
|
|
@@ -4777,7 +4762,7 @@ function (_Component) {
|
|
|
4777
4762
|
args[_key] = arguments[_key];
|
|
4778
4763
|
}
|
|
4779
4764
|
|
|
4780
|
-
_this =
|
|
4765
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4781
4766
|
|
|
4782
4767
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4783
4768
|
|
|
@@ -4897,7 +4882,7 @@ function (_Component) {
|
|
|
4897
4882
|
width: '100%',
|
|
4898
4883
|
height: '100%'
|
|
4899
4884
|
};
|
|
4900
|
-
return _react["default"].createElement("iframe", {
|
|
4885
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4901
4886
|
ref: this.ref,
|
|
4902
4887
|
src: "https://streamable.com/o/".concat(id),
|
|
4903
4888
|
frameBorder: "0",
|
|
@@ -4925,7 +4910,7 @@ exports["default"] = _default;
|
|
|
4925
4910
|
});
|
|
4926
4911
|
|
|
4927
4912
|
unwrapExports(Streamable_1);
|
|
4928
|
-
|
|
4913
|
+
Streamable_1.Streamable;
|
|
4929
4914
|
|
|
4930
4915
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4931
4916
|
|
|
@@ -4934,7 +4919,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4934
4919
|
});
|
|
4935
4920
|
exports["default"] = exports.Wistia = void 0;
|
|
4936
4921
|
|
|
4937
|
-
var _react = _interopRequireWildcard(
|
|
4922
|
+
var _react = _interopRequireWildcard(React);
|
|
4938
4923
|
|
|
4939
4924
|
|
|
4940
4925
|
|
|
@@ -4958,12 +4943,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4958
4943
|
|
|
4959
4944
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4960
4945
|
|
|
4961
|
-
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); }; }
|
|
4962
4947
|
|
|
4963
|
-
function
|
|
4948
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4964
4949
|
|
|
4965
4950
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4966
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
|
+
|
|
4967
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); }
|
|
4968
4957
|
|
|
4969
4958
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4974,26 +4963,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4974
4963
|
var SDK_GLOBAL = 'Wistia';
|
|
4975
4964
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4976
4965
|
|
|
4977
|
-
var Wistia =
|
|
4978
|
-
/*#__PURE__*/
|
|
4979
|
-
function (_Component) {
|
|
4966
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4980
4967
|
_inherits(Wistia, _Component);
|
|
4981
4968
|
|
|
4982
|
-
|
|
4983
|
-
var _getPrototypeOf2;
|
|
4969
|
+
var _super = _createSuper(Wistia);
|
|
4984
4970
|
|
|
4971
|
+
function Wistia() {
|
|
4985
4972
|
var _this;
|
|
4986
4973
|
|
|
4987
4974
|
_classCallCheck(this, Wistia);
|
|
4988
4975
|
|
|
4989
|
-
for (var _len = arguments.length,
|
|
4990
|
-
|
|
4976
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4977
|
+
_args[_key] = arguments[_key];
|
|
4991
4978
|
}
|
|
4992
4979
|
|
|
4993
|
-
_this =
|
|
4980
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4994
4981
|
|
|
4995
4982
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4996
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
|
+
|
|
4997
5008
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4998
5009
|
_this.callPlayer('mute');
|
|
4999
5010
|
});
|
|
@@ -5015,17 +5026,13 @@ function (_Component) {
|
|
|
5015
5026
|
value: function load(url) {
|
|
5016
5027
|
var _this2 = this;
|
|
5017
5028
|
|
|
5018
|
-
var _this$
|
|
5019
|
-
playing = _this$
|
|
5020
|
-
muted = _this$
|
|
5021
|
-
controls = _this$
|
|
5022
|
-
_onReady = _this$
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
onSeek = _this$props.onSeek,
|
|
5026
|
-
onEnded = _this$props.onEnded,
|
|
5027
|
-
config = _this$props.config,
|
|
5028
|
-
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;
|
|
5029
5036
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5030
5037
|
window._wq = window._wq || [];
|
|
5031
5038
|
|
|
@@ -5042,19 +5049,28 @@ function (_Component) {
|
|
|
5042
5049
|
|
|
5043
5050
|
_this2.unbind();
|
|
5044
5051
|
|
|
5045
|
-
_this2.player.bind('play', onPlay);
|
|
5052
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5046
5053
|
|
|
5047
|
-
_this2.player.bind('pause', onPause);
|
|
5054
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5048
5055
|
|
|
5049
|
-
_this2.player.bind('seek', onSeek);
|
|
5056
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5050
5057
|
|
|
5051
|
-
_this2.player.bind('end', onEnded);
|
|
5058
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5052
5059
|
|
|
5053
5060
|
_onReady();
|
|
5054
5061
|
}
|
|
5055
5062
|
});
|
|
5056
5063
|
}, onError);
|
|
5057
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
|
+
|
|
5058
5074
|
}, {
|
|
5059
5075
|
key: "play",
|
|
5060
5076
|
value: function play() {
|
|
@@ -5065,19 +5081,6 @@ function (_Component) {
|
|
|
5065
5081
|
value: function pause() {
|
|
5066
5082
|
this.callPlayer('pause');
|
|
5067
5083
|
}
|
|
5068
|
-
}, {
|
|
5069
|
-
key: "unbind",
|
|
5070
|
-
value: function unbind() {
|
|
5071
|
-
var _this$props2 = this.props,
|
|
5072
|
-
onPlay = _this$props2.onPlay,
|
|
5073
|
-
onPause = _this$props2.onPause,
|
|
5074
|
-
onSeek = _this$props2.onSeek,
|
|
5075
|
-
onEnded = _this$props2.onEnded;
|
|
5076
|
-
this.player.unbind('play', onPlay);
|
|
5077
|
-
this.player.unbind('pause', onPause);
|
|
5078
|
-
this.player.unbind('seek', onSeek);
|
|
5079
|
-
this.player.unbind('end', onEnded);
|
|
5080
|
-
}
|
|
5081
5084
|
}, {
|
|
5082
5085
|
key: "stop",
|
|
5083
5086
|
value: function stop() {
|
|
@@ -5123,7 +5126,7 @@ function (_Component) {
|
|
|
5123
5126
|
width: '100%',
|
|
5124
5127
|
height: '100%'
|
|
5125
5128
|
};
|
|
5126
|
-
return _react["default"].createElement("div", {
|
|
5129
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5127
5130
|
key: id,
|
|
5128
5131
|
className: className,
|
|
5129
5132
|
style: style
|
|
@@ -5150,7 +5153,7 @@ exports["default"] = _default;
|
|
|
5150
5153
|
});
|
|
5151
5154
|
|
|
5152
5155
|
unwrapExports(Wistia_1);
|
|
5153
|
-
|
|
5156
|
+
Wistia_1.Wistia;
|
|
5154
5157
|
|
|
5155
5158
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5156
5159
|
|
|
@@ -5159,7 +5162,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5159
5162
|
});
|
|
5160
5163
|
exports["default"] = exports.Twitch = void 0;
|
|
5161
5164
|
|
|
5162
|
-
var _react = _interopRequireWildcard(
|
|
5165
|
+
var _react = _interopRequireWildcard(React);
|
|
5163
5166
|
|
|
5164
5167
|
|
|
5165
5168
|
|
|
@@ -5183,12 +5186,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5183
5186
|
|
|
5184
5187
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5185
5188
|
|
|
5186
|
-
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); }; }
|
|
5187
5190
|
|
|
5188
|
-
function
|
|
5191
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5189
5192
|
|
|
5190
5193
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5191
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
|
+
|
|
5192
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); }
|
|
5193
5200
|
|
|
5194
5201
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5201,14 +5208,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5201
5208
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5202
5209
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5203
5210
|
|
|
5204
|
-
var Twitch =
|
|
5205
|
-
/*#__PURE__*/
|
|
5206
|
-
function (_Component) {
|
|
5211
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5207
5212
|
_inherits(Twitch, _Component);
|
|
5208
5213
|
|
|
5209
|
-
|
|
5210
|
-
var _getPrototypeOf2;
|
|
5214
|
+
var _super = _createSuper(Twitch);
|
|
5211
5215
|
|
|
5216
|
+
function Twitch() {
|
|
5212
5217
|
var _this;
|
|
5213
5218
|
|
|
5214
5219
|
_classCallCheck(this, Twitch);
|
|
@@ -5217,7 +5222,7 @@ function (_Component) {
|
|
|
5217
5222
|
args[_key] = arguments[_key];
|
|
5218
5223
|
}
|
|
5219
5224
|
|
|
5220
|
-
_this =
|
|
5225
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5221
5226
|
|
|
5222
5227
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5223
5228
|
|
|
@@ -5338,7 +5343,7 @@ function (_Component) {
|
|
|
5338
5343
|
width: '100%',
|
|
5339
5344
|
height: '100%'
|
|
5340
5345
|
};
|
|
5341
|
-
return _react["default"].createElement("div", {
|
|
5346
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5342
5347
|
style: style,
|
|
5343
5348
|
id: this.playerID
|
|
5344
5349
|
});
|
|
@@ -5364,7 +5369,7 @@ exports["default"] = _default;
|
|
|
5364
5369
|
});
|
|
5365
5370
|
|
|
5366
5371
|
unwrapExports(Twitch_1);
|
|
5367
|
-
|
|
5372
|
+
Twitch_1.Twitch;
|
|
5368
5373
|
|
|
5369
5374
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5370
5375
|
|
|
@@ -5373,7 +5378,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5373
5378
|
});
|
|
5374
5379
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5375
5380
|
|
|
5376
|
-
var _react = _interopRequireWildcard(
|
|
5381
|
+
var _react = _interopRequireWildcard(React);
|
|
5377
5382
|
|
|
5378
5383
|
|
|
5379
5384
|
|
|
@@ -5391,11 +5396,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5391
5396
|
|
|
5392
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; }
|
|
5393
5398
|
|
|
5394
|
-
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."); }
|
|
5395
5402
|
|
|
5396
|
-
function
|
|
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); }
|
|
5397
5404
|
|
|
5398
|
-
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; }
|
|
5406
|
+
|
|
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; }
|
|
5399
5408
|
|
|
5400
5409
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5401
5410
|
|
|
@@ -5405,12 +5414,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5405
5414
|
|
|
5406
5415
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5407
5416
|
|
|
5408
|
-
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); }; }
|
|
5409
5418
|
|
|
5410
|
-
function
|
|
5419
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5411
5420
|
|
|
5412
5421
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5413
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
|
+
|
|
5414
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); }
|
|
5415
5428
|
|
|
5416
5429
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5422,14 +5435,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5422
5435
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5423
5436
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5424
5437
|
|
|
5425
|
-
var DailyMotion =
|
|
5426
|
-
/*#__PURE__*/
|
|
5427
|
-
function (_Component) {
|
|
5438
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5428
5439
|
_inherits(DailyMotion, _Component);
|
|
5429
5440
|
|
|
5430
|
-
|
|
5431
|
-
var _getPrototypeOf2;
|
|
5441
|
+
var _super = _createSuper(DailyMotion);
|
|
5432
5442
|
|
|
5443
|
+
function DailyMotion() {
|
|
5433
5444
|
var _this;
|
|
5434
5445
|
|
|
5435
5446
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5438,7 +5449,7 @@ function (_Component) {
|
|
|
5438
5449
|
args[_key] = arguments[_key];
|
|
5439
5450
|
}
|
|
5440
5451
|
|
|
5441
|
-
_this =
|
|
5452
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5442
5453
|
|
|
5443
5454
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5444
5455
|
|
|
@@ -5567,9 +5578,9 @@ function (_Component) {
|
|
|
5567
5578
|
height: '100%',
|
|
5568
5579
|
display: display
|
|
5569
5580
|
};
|
|
5570
|
-
return _react["default"].createElement("div", {
|
|
5581
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5571
5582
|
style: style
|
|
5572
|
-
}, _react["default"].createElement("div", {
|
|
5583
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5573
5584
|
ref: this.ref
|
|
5574
5585
|
}));
|
|
5575
5586
|
}
|
|
@@ -5594,7 +5605,7 @@ exports["default"] = _default;
|
|
|
5594
5605
|
});
|
|
5595
5606
|
|
|
5596
5607
|
unwrapExports(DailyMotion_1);
|
|
5597
|
-
|
|
5608
|
+
DailyMotion_1.DailyMotion;
|
|
5598
5609
|
|
|
5599
5610
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5600
5611
|
|
|
@@ -5603,7 +5614,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5603
5614
|
});
|
|
5604
5615
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5605
5616
|
|
|
5606
|
-
var _react = _interopRequireWildcard(
|
|
5617
|
+
var _react = _interopRequireWildcard(React);
|
|
5607
5618
|
|
|
5608
5619
|
|
|
5609
5620
|
|
|
@@ -5627,12 +5638,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5627
5638
|
|
|
5628
5639
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5629
5640
|
|
|
5630
|
-
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); }; }
|
|
5631
5642
|
|
|
5632
|
-
function
|
|
5643
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5633
5644
|
|
|
5634
5645
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5635
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
|
+
|
|
5636
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); }
|
|
5637
5652
|
|
|
5638
5653
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5643,14 +5658,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5643
5658
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5644
5659
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5645
5660
|
|
|
5646
|
-
var Mixcloud =
|
|
5647
|
-
/*#__PURE__*/
|
|
5648
|
-
function (_Component) {
|
|
5661
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5649
5662
|
_inherits(Mixcloud, _Component);
|
|
5650
5663
|
|
|
5651
|
-
|
|
5652
|
-
var _getPrototypeOf2;
|
|
5664
|
+
var _super = _createSuper(Mixcloud);
|
|
5653
5665
|
|
|
5666
|
+
function Mixcloud() {
|
|
5654
5667
|
var _this;
|
|
5655
5668
|
|
|
5656
5669
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5659,7 +5672,7 @@ function (_Component) {
|
|
|
5659
5672
|
args[_key] = arguments[_key];
|
|
5660
5673
|
}
|
|
5661
5674
|
|
|
5662
|
-
_this =
|
|
5675
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5663
5676
|
|
|
5664
5677
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5665
5678
|
|
|
@@ -5762,7 +5775,7 @@ function (_Component) {
|
|
|
5762
5775
|
})); // We have to give the iframe a key here to prevent a
|
|
5763
5776
|
// weird dialog appearing when loading a new track
|
|
5764
5777
|
|
|
5765
|
-
return _react["default"].createElement("iframe", {
|
|
5778
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5766
5779
|
key: id,
|
|
5767
5780
|
ref: this.ref,
|
|
5768
5781
|
style: style,
|
|
@@ -5791,7 +5804,7 @@ exports["default"] = _default;
|
|
|
5791
5804
|
});
|
|
5792
5805
|
|
|
5793
5806
|
unwrapExports(Mixcloud_1);
|
|
5794
|
-
|
|
5807
|
+
Mixcloud_1.Mixcloud;
|
|
5795
5808
|
|
|
5796
5809
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5797
5810
|
|
|
@@ -5800,7 +5813,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5800
5813
|
});
|
|
5801
5814
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5802
5815
|
|
|
5803
|
-
var _react = _interopRequireWildcard(
|
|
5816
|
+
var _react = _interopRequireWildcard(React);
|
|
5804
5817
|
|
|
5805
5818
|
|
|
5806
5819
|
|
|
@@ -5822,23 +5835,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5822
5835
|
|
|
5823
5836
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5824
5837
|
|
|
5825
|
-
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); }; }
|
|
5826
5839
|
|
|
5827
|
-
function
|
|
5840
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5828
5841
|
|
|
5829
5842
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5830
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
|
+
|
|
5831
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); }
|
|
5832
5849
|
|
|
5833
5850
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5834
5851
|
|
|
5835
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; }
|
|
5836
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
|
+
|
|
5837
5860
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5838
5861
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5839
5862
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5840
5863
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5841
|
-
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';
|
|
5842
5865
|
var HLS_GLOBAL = 'Hls';
|
|
5843
5866
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5844
5867
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5847,12 +5870,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5847
5870
|
|
|
5848
5871
|
function canPlay(url) {
|
|
5849
5872
|
if (url instanceof Array) {
|
|
5850
|
-
var
|
|
5851
|
-
|
|
5852
|
-
var _iteratorError = undefined;
|
|
5873
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5874
|
+
_step;
|
|
5853
5875
|
|
|
5854
5876
|
try {
|
|
5855
|
-
for (
|
|
5877
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5856
5878
|
var item = _step.value;
|
|
5857
5879
|
|
|
5858
5880
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5864,18 +5886,9 @@ function canPlay(url) {
|
|
|
5864
5886
|
}
|
|
5865
5887
|
}
|
|
5866
5888
|
} catch (err) {
|
|
5867
|
-
|
|
5868
|
-
_iteratorError = err;
|
|
5889
|
+
_iterator.e(err);
|
|
5869
5890
|
} finally {
|
|
5870
|
-
|
|
5871
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5872
|
-
_iterator["return"]();
|
|
5873
|
-
}
|
|
5874
|
-
} finally {
|
|
5875
|
-
if (_didIteratorError) {
|
|
5876
|
-
throw _iteratorError;
|
|
5877
|
-
}
|
|
5878
|
-
}
|
|
5891
|
+
_iterator.f();
|
|
5879
5892
|
}
|
|
5880
5893
|
|
|
5881
5894
|
return false;
|
|
@@ -5899,14 +5912,12 @@ function canEnablePIP(url) {
|
|
|
5899
5912
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5900
5913
|
}
|
|
5901
5914
|
|
|
5902
|
-
var FilePlayer =
|
|
5903
|
-
/*#__PURE__*/
|
|
5904
|
-
function (_Component) {
|
|
5915
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5905
5916
|
_inherits(FilePlayer, _Component);
|
|
5906
5917
|
|
|
5907
|
-
|
|
5908
|
-
var _getPrototypeOf2;
|
|
5918
|
+
var _super = _createSuper(FilePlayer);
|
|
5909
5919
|
|
|
5920
|
+
function FilePlayer() {
|
|
5910
5921
|
var _this;
|
|
5911
5922
|
|
|
5912
5923
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5915,7 +5926,7 @@ function (_Component) {
|
|
|
5915
5926
|
_args[_key] = arguments[_key];
|
|
5916
5927
|
}
|
|
5917
5928
|
|
|
5918
|
-
_this =
|
|
5929
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5919
5930
|
|
|
5920
5931
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5921
5932
|
var _this$props;
|
|
@@ -6002,19 +6013,19 @@ function (_Component) {
|
|
|
6002
6013
|
|
|
6003
6014
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6004
6015
|
if (typeof source === 'string') {
|
|
6005
|
-
return _react["default"].createElement("source", {
|
|
6016
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6006
6017
|
key: index,
|
|
6007
6018
|
src: source
|
|
6008
6019
|
});
|
|
6009
6020
|
}
|
|
6010
6021
|
|
|
6011
|
-
return _react["default"].createElement("source", _extends({
|
|
6022
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6012
6023
|
key: index
|
|
6013
6024
|
}, source));
|
|
6014
6025
|
});
|
|
6015
6026
|
|
|
6016
6027
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6017
|
-
return _react["default"].createElement("track", _extends({
|
|
6028
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6018
6029
|
key: index
|
|
6019
6030
|
}, track));
|
|
6020
6031
|
});
|
|
@@ -6052,6 +6063,10 @@ function (_Component) {
|
|
|
6052
6063
|
key: "componentWillUnmount",
|
|
6053
6064
|
value: function componentWillUnmount() {
|
|
6054
6065
|
this.removeListeners(this.player);
|
|
6066
|
+
|
|
6067
|
+
if (this.hls) {
|
|
6068
|
+
this.hls.destroy();
|
|
6069
|
+
}
|
|
6055
6070
|
}
|
|
6056
6071
|
}, {
|
|
6057
6072
|
key: "addListeners",
|
|
@@ -6182,10 +6197,6 @@ function (_Component) {
|
|
|
6182
6197
|
value: function stop() {
|
|
6183
6198
|
this.player.removeAttribute('src');
|
|
6184
6199
|
|
|
6185
|
-
if (this.hls) {
|
|
6186
|
-
this.hls.destroy();
|
|
6187
|
-
}
|
|
6188
|
-
|
|
6189
6200
|
if (this.dash) {
|
|
6190
6201
|
this.dash.reset();
|
|
6191
6202
|
}
|
|
@@ -6297,7 +6308,7 @@ function (_Component) {
|
|
|
6297
6308
|
width: width === 'auto' ? width : '100%',
|
|
6298
6309
|
height: height === 'auto' ? height : '100%'
|
|
6299
6310
|
};
|
|
6300
|
-
return _react["default"].createElement(Element, _extends({
|
|
6311
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6301
6312
|
ref: this.ref,
|
|
6302
6313
|
src: this.getSource(url),
|
|
6303
6314
|
style: style,
|
|
@@ -6327,7 +6338,7 @@ exports["default"] = _default;
|
|
|
6327
6338
|
});
|
|
6328
6339
|
|
|
6329
6340
|
unwrapExports(FilePlayer_1);
|
|
6330
|
-
|
|
6341
|
+
FilePlayer_1.FilePlayer;
|
|
6331
6342
|
|
|
6332
6343
|
var players = createCommonjsModule(function (module, exports) {
|
|
6333
6344
|
|
|
@@ -6369,7 +6380,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6369
6380
|
});
|
|
6370
6381
|
exports["default"] = void 0;
|
|
6371
6382
|
|
|
6372
|
-
var _react = _interopRequireWildcard(
|
|
6383
|
+
var _react = _interopRequireWildcard(React);
|
|
6373
6384
|
|
|
6374
6385
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6375
6386
|
|
|
@@ -6387,12 +6398,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6387
6398
|
|
|
6388
6399
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6389
6400
|
|
|
6390
|
-
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); }; }
|
|
6391
6402
|
|
|
6392
|
-
function
|
|
6403
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6393
6404
|
|
|
6394
6405
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6395
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
|
+
|
|
6396
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); }
|
|
6397
6412
|
|
|
6398
6413
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6401,14 +6416,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6401
6416
|
|
|
6402
6417
|
var ICON_SIZE = '64px';
|
|
6403
6418
|
|
|
6404
|
-
var Preview =
|
|
6405
|
-
/*#__PURE__*/
|
|
6406
|
-
function (_Component) {
|
|
6419
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6407
6420
|
_inherits(Preview, _Component);
|
|
6408
6421
|
|
|
6409
|
-
|
|
6410
|
-
var _getPrototypeOf2;
|
|
6422
|
+
var _super = _createSuper(Preview);
|
|
6411
6423
|
|
|
6424
|
+
function Preview() {
|
|
6412
6425
|
var _this;
|
|
6413
6426
|
|
|
6414
6427
|
_classCallCheck(this, Preview);
|
|
@@ -6417,7 +6430,7 @@ function (_Component) {
|
|
|
6417
6430
|
args[_key] = arguments[_key];
|
|
6418
6431
|
}
|
|
6419
6432
|
|
|
6420
|
-
_this =
|
|
6433
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6421
6434
|
|
|
6422
6435
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6423
6436
|
|
|
@@ -6515,15 +6528,15 @@ function (_Component) {
|
|
|
6515
6528
|
}
|
|
6516
6529
|
};
|
|
6517
6530
|
|
|
6518
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6531
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6519
6532
|
style: styles.shadow,
|
|
6520
6533
|
className: "react-player__shadow"
|
|
6521
|
-
}, _react["default"].createElement("div", {
|
|
6534
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6522
6535
|
style: styles.playIcon,
|
|
6523
6536
|
className: "react-player__play-icon"
|
|
6524
6537
|
}));
|
|
6525
6538
|
|
|
6526
|
-
return _react["default"].createElement("div", {
|
|
6539
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6527
6540
|
style: styles.preview,
|
|
6528
6541
|
className: "react-player__preview",
|
|
6529
6542
|
onClick: onClick
|
|
@@ -6546,7 +6559,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6546
6559
|
});
|
|
6547
6560
|
exports["default"] = renderPreloadPlayers;
|
|
6548
6561
|
|
|
6549
|
-
var _react = _interopRequireDefault(
|
|
6562
|
+
var _react = _interopRequireDefault(React);
|
|
6550
6563
|
|
|
6551
6564
|
var _Player = _interopRequireDefault(Player_1);
|
|
6552
6565
|
|
|
@@ -6560,6 +6573,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6560
6573
|
|
|
6561
6574
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6562
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
|
+
|
|
6563
6582
|
var PRELOAD_PLAYERS = [{
|
|
6564
6583
|
Player: YouTube_1.YouTube,
|
|
6565
6584
|
configKey: 'youtube',
|
|
@@ -6580,16 +6599,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6580
6599
|
|
|
6581
6600
|
function renderPreloadPlayers(url, controls, config) {
|
|
6582
6601
|
var players = [];
|
|
6583
|
-
|
|
6584
|
-
var
|
|
6585
|
-
|
|
6602
|
+
|
|
6603
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6604
|
+
_step;
|
|
6586
6605
|
|
|
6587
6606
|
try {
|
|
6588
|
-
for (
|
|
6607
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6589
6608
|
var player = _step.value;
|
|
6590
6609
|
|
|
6591
6610
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6592
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6611
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6593
6612
|
key: player.Player.displayName,
|
|
6594
6613
|
activePlayer: player.Player,
|
|
6595
6614
|
url: player.url,
|
|
@@ -6601,18 +6620,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6601
6620
|
}
|
|
6602
6621
|
}
|
|
6603
6622
|
} catch (err) {
|
|
6604
|
-
|
|
6605
|
-
_iteratorError = err;
|
|
6623
|
+
_iterator.e(err);
|
|
6606
6624
|
} finally {
|
|
6607
|
-
|
|
6608
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6609
|
-
_iterator["return"]();
|
|
6610
|
-
}
|
|
6611
|
-
} finally {
|
|
6612
|
-
if (_didIteratorError) {
|
|
6613
|
-
throw _iteratorError;
|
|
6614
|
-
}
|
|
6615
|
-
}
|
|
6625
|
+
_iterator.f();
|
|
6616
6626
|
}
|
|
6617
6627
|
|
|
6618
6628
|
return players;
|
|
@@ -6688,7 +6698,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6688
6698
|
});
|
|
6689
6699
|
exports["default"] = void 0;
|
|
6690
6700
|
|
|
6691
|
-
var _react = _interopRequireWildcard(
|
|
6701
|
+
var _react = _interopRequireWildcard(React);
|
|
6692
6702
|
|
|
6693
6703
|
|
|
6694
6704
|
|
|
@@ -6736,13 +6746,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6736
6746
|
|
|
6737
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); }
|
|
6738
6748
|
|
|
6739
|
-
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."); }
|
|
6752
|
+
|
|
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); }
|
|
6740
6754
|
|
|
6741
|
-
function
|
|
6755
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6742
6756
|
|
|
6743
|
-
function
|
|
6757
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6744
6758
|
|
|
6745
|
-
function
|
|
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; }
|
|
6746
6760
|
|
|
6747
6761
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6748
6762
|
|
|
@@ -6750,12 +6764,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6750
6764
|
|
|
6751
6765
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6752
6766
|
|
|
6753
|
-
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); }; }
|
|
6754
6768
|
|
|
6755
|
-
function
|
|
6769
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6756
6770
|
|
|
6757
6771
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6758
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
|
+
|
|
6759
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); }
|
|
6760
6778
|
|
|
6761
6779
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6765,14 +6783,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6765
6783
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6766
6784
|
var customPlayers = [];
|
|
6767
6785
|
|
|
6768
|
-
var ReactPlayer =
|
|
6769
|
-
/*#__PURE__*/
|
|
6770
|
-
function (_Component) {
|
|
6786
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6771
6787
|
_inherits(ReactPlayer, _Component);
|
|
6772
6788
|
|
|
6773
|
-
|
|
6774
|
-
var _getPrototypeOf2;
|
|
6789
|
+
var _super = _createSuper(ReactPlayer);
|
|
6775
6790
|
|
|
6791
|
+
function ReactPlayer() {
|
|
6776
6792
|
var _this;
|
|
6777
6793
|
|
|
6778
6794
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6781,7 +6797,7 @@ function (_Component) {
|
|
|
6781
6797
|
args[_key] = arguments[_key];
|
|
6782
6798
|
}
|
|
6783
6799
|
|
|
6784
|
-
_this =
|
|
6800
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6785
6801
|
|
|
6786
6802
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6787
6803
|
|
|
@@ -6892,7 +6908,7 @@ function (_Component) {
|
|
|
6892
6908
|
key: "renderActivePlayer",
|
|
6893
6909
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6894
6910
|
if (!url) return null;
|
|
6895
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6911
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6896
6912
|
key: activePlayer.displayName,
|
|
6897
6913
|
ref: this.activePlayerRef,
|
|
6898
6914
|
config: this.config,
|
|
@@ -6929,14 +6945,14 @@ function (_Component) {
|
|
|
6929
6945
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6930
6946
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6931
6947
|
|
|
6932
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6948
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6933
6949
|
url: url,
|
|
6934
6950
|
light: light,
|
|
6935
6951
|
playIcon: playIcon,
|
|
6936
6952
|
onClick: this.handleClickPreview
|
|
6937
6953
|
});
|
|
6938
6954
|
|
|
6939
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6955
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6940
6956
|
ref: this.wrapperRef,
|
|
6941
6957
|
style: _objectSpread({}, style, {
|
|
6942
6958
|
width: width,
|
|
@@ -6996,20 +7012,20 @@ var Audio = function Audio(_ref) {
|
|
|
6996
7012
|
var node = _ref.node;
|
|
6997
7013
|
|
|
6998
7014
|
if (node.uploadAudio) {
|
|
6999
|
-
return
|
|
7015
|
+
return React.createElement(
|
|
7000
7016
|
'div',
|
|
7001
7017
|
{ className: 'audio d-block text-center mb-3' },
|
|
7002
|
-
|
|
7018
|
+
React.createElement(
|
|
7003
7019
|
'audio',
|
|
7004
7020
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7005
|
-
|
|
7006
|
-
|
|
7021
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7022
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7007
7023
|
'Your browser does not support the audio element.'
|
|
7008
7024
|
),
|
|
7009
|
-
node.caption &&
|
|
7025
|
+
node.caption && React.createElement(
|
|
7010
7026
|
'p',
|
|
7011
7027
|
{ style: { fontSize: '.9rem' } },
|
|
7012
|
-
|
|
7028
|
+
React.createElement(
|
|
7013
7029
|
'em',
|
|
7014
7030
|
null,
|
|
7015
7031
|
node.caption
|
|
@@ -7019,15 +7035,15 @@ var Audio = function Audio(_ref) {
|
|
|
7019
7035
|
} else if (node.audioFilePth) {
|
|
7020
7036
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7021
7037
|
if (hostname === 'embeds.audioboom.com') {
|
|
7022
|
-
return
|
|
7038
|
+
return React.createElement(
|
|
7023
7039
|
'div',
|
|
7024
7040
|
null,
|
|
7025
|
-
|
|
7041
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7026
7042
|
' ',
|
|
7027
|
-
node.caption &&
|
|
7043
|
+
node.caption && React.createElement(
|
|
7028
7044
|
'p',
|
|
7029
7045
|
{ style: { fontSize: '.9rem' } },
|
|
7030
|
-
|
|
7046
|
+
React.createElement(
|
|
7031
7047
|
'em',
|
|
7032
7048
|
null,
|
|
7033
7049
|
node.caption
|
|
@@ -7035,14 +7051,14 @@ var Audio = function Audio(_ref) {
|
|
|
7035
7051
|
)
|
|
7036
7052
|
);
|
|
7037
7053
|
}
|
|
7038
|
-
return
|
|
7054
|
+
return React.createElement(
|
|
7039
7055
|
'div',
|
|
7040
7056
|
{ className: 'audio' },
|
|
7041
|
-
|
|
7042
|
-
node.caption &&
|
|
7057
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7058
|
+
node.caption && React.createElement(
|
|
7043
7059
|
'p',
|
|
7044
7060
|
{ style: { fontSize: '.9rem' } },
|
|
7045
|
-
|
|
7061
|
+
React.createElement(
|
|
7046
7062
|
'em',
|
|
7047
7063
|
null,
|
|
7048
7064
|
node.caption
|
|
@@ -7060,34 +7076,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7060
7076
|
var profileImage = arguments[6];
|
|
7061
7077
|
|
|
7062
7078
|
if (authorName && authorURL) {
|
|
7063
|
-
return
|
|
7079
|
+
return React.createElement(
|
|
7064
7080
|
'span',
|
|
7065
7081
|
null,
|
|
7066
|
-
|
|
7082
|
+
React.createElement(
|
|
7067
7083
|
'a',
|
|
7068
7084
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7069
7085
|
authorName
|
|
7070
7086
|
),
|
|
7071
|
-
|
|
7087
|
+
React.createElement(
|
|
7072
7088
|
Card,
|
|
7073
7089
|
{ className: 'author-details-card-' + index },
|
|
7074
|
-
|
|
7090
|
+
React.createElement(
|
|
7075
7091
|
Row,
|
|
7076
7092
|
null,
|
|
7077
|
-
profileImage &&
|
|
7093
|
+
profileImage && React.createElement(
|
|
7078
7094
|
Col,
|
|
7079
7095
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7080
|
-
|
|
7096
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7081
7097
|
),
|
|
7082
|
-
|
|
7098
|
+
React.createElement(
|
|
7083
7099
|
Col,
|
|
7084
7100
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7085
|
-
|
|
7101
|
+
React.createElement(
|
|
7086
7102
|
'div',
|
|
7087
7103
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7088
7104
|
authorName
|
|
7089
7105
|
),
|
|
7090
|
-
|
|
7106
|
+
React.createElement(
|
|
7091
7107
|
'p',
|
|
7092
7108
|
null,
|
|
7093
7109
|
biography
|
|
@@ -7095,7 +7111,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7095
7111
|
)
|
|
7096
7112
|
)
|
|
7097
7113
|
),
|
|
7098
|
-
|
|
7114
|
+
React.createElement(
|
|
7099
7115
|
'style',
|
|
7100
7116
|
{ jsx: 'true' },
|
|
7101
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 '
|
|
@@ -7103,7 +7119,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7103
7119
|
length !== index + 1 && ' , '
|
|
7104
7120
|
);
|
|
7105
7121
|
} else if (authorName) {
|
|
7106
|
-
return
|
|
7122
|
+
return React.createElement(
|
|
7107
7123
|
'span',
|
|
7108
7124
|
{ key: index },
|
|
7109
7125
|
authorName,
|
|
@@ -7263,8 +7279,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7263
7279
|
var duration = player.getDuration();
|
|
7264
7280
|
var queue = Math.floor(duration / 10);
|
|
7265
7281
|
var segment = Math.floor(current / queue);
|
|
7266
|
-
Beam.report_beam_video('Ready',
|
|
7267
|
-
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);
|
|
7268
7284
|
//autoplay
|
|
7269
7285
|
|
|
7270
7286
|
//Small pause before starting next video
|
|
@@ -7284,8 +7300,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7284
7300
|
var queue = Math.floor(duration / 10);
|
|
7285
7301
|
var segment = Math.floor(current / queue);
|
|
7286
7302
|
|
|
7287
|
-
Beam.report_beam_video('End',
|
|
7288
|
-
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);
|
|
7289
7305
|
setEndReported(true);
|
|
7290
7306
|
clearInterval(intervalID);
|
|
7291
7307
|
}
|
|
@@ -7335,8 +7351,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7335
7351
|
var queue = Math.floor(duration / 10);
|
|
7336
7352
|
var segment = Math.floor(current / queue);
|
|
7337
7353
|
if (!queueProgress.includes(segment)) {
|
|
7338
|
-
Beam.report_beam_video('Segment',
|
|
7339
|
-
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);
|
|
7340
7356
|
queueProgress.push(segment);
|
|
7341
7357
|
}
|
|
7342
7358
|
};
|
|
@@ -7349,8 +7365,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7349
7365
|
var queue = Math.floor(duration / 10);
|
|
7350
7366
|
var segment = Math.floor(current / queue);
|
|
7351
7367
|
|
|
7352
|
-
Beam.report_beam_video('Play',
|
|
7353
|
-
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);
|
|
7354
7370
|
|
|
7355
7371
|
if (!playReported) {
|
|
7356
7372
|
setPlayReported(true);
|
|
@@ -7368,8 +7384,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7368
7384
|
var queue = Math.floor(duration / 10);
|
|
7369
7385
|
var segment = Math.floor(current / queue);
|
|
7370
7386
|
|
|
7371
|
-
Beam.report_beam_video('Pause',
|
|
7372
|
-
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);
|
|
7373
7389
|
};
|
|
7374
7390
|
|
|
7375
7391
|
// Youtube Options
|
|
@@ -7380,44 +7396,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7380
7396
|
}
|
|
7381
7397
|
};
|
|
7382
7398
|
|
|
7383
|
-
return
|
|
7399
|
+
return React.createElement(
|
|
7384
7400
|
'div',
|
|
7385
7401
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7386
|
-
|
|
7402
|
+
React.createElement(
|
|
7387
7403
|
'div',
|
|
7388
7404
|
{ className: 'mt-2 mb-5' },
|
|
7389
|
-
series &&
|
|
7405
|
+
series && React.createElement(
|
|
7390
7406
|
'div',
|
|
7391
7407
|
{ style: { fontSize: '0.9rem' } },
|
|
7392
7408
|
article.title,
|
|
7393
7409
|
' - Episode ',
|
|
7394
7410
|
series
|
|
7395
7411
|
),
|
|
7396
|
-
Videos[series - 1] &&
|
|
7412
|
+
Videos[series - 1] && React.createElement(
|
|
7397
7413
|
'h1',
|
|
7398
7414
|
{ className: 'mb-3' },
|
|
7399
7415
|
Videos[series - 1].title
|
|
7400
7416
|
),
|
|
7401
|
-
|
|
7417
|
+
React.createElement(
|
|
7402
7418
|
'div',
|
|
7403
7419
|
null,
|
|
7404
7420
|
moment(article.published).format('LL')
|
|
7405
7421
|
),
|
|
7406
|
-
|
|
7422
|
+
React.createElement(
|
|
7407
7423
|
'div',
|
|
7408
7424
|
{ className: 'mb-3' },
|
|
7409
7425
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7410
|
-
return
|
|
7426
|
+
return React.createElement(
|
|
7411
7427
|
'span',
|
|
7412
7428
|
{ key: index },
|
|
7413
7429
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7414
7430
|
);
|
|
7415
7431
|
})
|
|
7416
7432
|
),
|
|
7417
|
-
|
|
7433
|
+
React.createElement(
|
|
7418
7434
|
'p',
|
|
7419
7435
|
null,
|
|
7420
|
-
|
|
7436
|
+
React.createElement(SocialShare, {
|
|
7421
7437
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7422
7438
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7423
7439
|
shareVia: meta.shareVia,
|
|
@@ -7432,20 +7448,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7432
7448
|
hideFacebook: meta.hideFBShare
|
|
7433
7449
|
})
|
|
7434
7450
|
),
|
|
7435
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7451
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7436
7452
|
'p',
|
|
7437
7453
|
{ className: 'mb-3' },
|
|
7438
|
-
|
|
7454
|
+
React.createElement(
|
|
7439
7455
|
'em',
|
|
7440
7456
|
null,
|
|
7441
7457
|
Videos[series - 1].intro
|
|
7442
7458
|
)
|
|
7443
7459
|
)
|
|
7444
7460
|
),
|
|
7445
|
-
|
|
7461
|
+
React.createElement(
|
|
7446
7462
|
'div',
|
|
7447
7463
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7448
|
-
vidUrl && vidType == 'youtube' &&
|
|
7464
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7449
7465
|
className: 'fluid-iframe',
|
|
7450
7466
|
videoId: getYoutubeId(vidUrl),
|
|
7451
7467
|
opts: opts,
|
|
@@ -7456,10 +7472,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7456
7472
|
return handleOnEnd(e);
|
|
7457
7473
|
}
|
|
7458
7474
|
}),
|
|
7459
|
-
vidUrl && vidType == 'mp4' &&
|
|
7460
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7461
|
-
|
|
7462
|
-
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(
|
|
7463
7479
|
'div',
|
|
7464
7480
|
{
|
|
7465
7481
|
className: 'vid-series',
|
|
@@ -7469,10 +7485,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7469
7485
|
maxHeight: '100%',
|
|
7470
7486
|
paddingBottom: '0'
|
|
7471
7487
|
} },
|
|
7472
|
-
|
|
7488
|
+
React.createElement(
|
|
7473
7489
|
'p',
|
|
7474
7490
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7475
|
-
|
|
7491
|
+
React.createElement(
|
|
7476
7492
|
'b',
|
|
7477
7493
|
{ style: { fontSize: '1.25em' } },
|
|
7478
7494
|
'Now Playing:'
|
|
@@ -7480,16 +7496,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7480
7496
|
' ',
|
|
7481
7497
|
seriesData[series ? series - 1 : 0].title
|
|
7482
7498
|
),
|
|
7483
|
-
vidUrl &&
|
|
7499
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7484
7500
|
)
|
|
7485
7501
|
),
|
|
7486
|
-
|
|
7487
|
-
|
|
7502
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7503
|
+
React.createElement(
|
|
7488
7504
|
'div',
|
|
7489
7505
|
{ className: 'vid-text' },
|
|
7490
|
-
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()))
|
|
7491
7507
|
),
|
|
7492
|
-
|
|
7508
|
+
React.createElement(
|
|
7493
7509
|
'style',
|
|
7494
7510
|
{ jsx: 'true' },
|
|
7495
7511
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7497,14 +7513,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7497
7513
|
);
|
|
7498
7514
|
};
|
|
7499
7515
|
|
|
7500
|
-
var Poll = function Poll(_ref) {
|
|
7501
|
-
var node = _ref.node
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
onVote = _ref.onVote
|
|
7506
|
-
_ref
|
|
7507
|
-
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;
|
|
7508
7524
|
|
|
7509
7525
|
var _useState = useState(null),
|
|
7510
7526
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7542,67 +7558,67 @@ var Poll = function Poll(_ref) {
|
|
|
7542
7558
|
return acc;
|
|
7543
7559
|
}
|
|
7544
7560
|
}, 0);
|
|
7545
|
-
return
|
|
7546
|
-
|
|
7561
|
+
return React.createElement(
|
|
7562
|
+
React.Fragment,
|
|
7547
7563
|
null,
|
|
7548
|
-
question &&
|
|
7564
|
+
question && React.createElement(
|
|
7549
7565
|
'p',
|
|
7550
7566
|
{ className: 'font-weight-bold' },
|
|
7551
7567
|
question
|
|
7552
7568
|
),
|
|
7553
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7569
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7554
7570
|
'form',
|
|
7555
7571
|
{ onSubmit: function onSubmit(e) {
|
|
7556
7572
|
return onSubmitPoll(e);
|
|
7557
7573
|
} },
|
|
7558
7574
|
choices && choices.map(function (choice) {
|
|
7559
|
-
return
|
|
7575
|
+
return React.createElement(
|
|
7560
7576
|
'div',
|
|
7561
7577
|
{ key: choice._key },
|
|
7562
|
-
|
|
7578
|
+
React.createElement(
|
|
7563
7579
|
'label',
|
|
7564
7580
|
{ className: 'pl-2' },
|
|
7565
|
-
|
|
7581
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7566
7582
|
return setSelectedChoice(e.target.value);
|
|
7567
7583
|
} }),
|
|
7568
7584
|
' ' + choice.choiceText
|
|
7569
7585
|
)
|
|
7570
7586
|
);
|
|
7571
7587
|
}),
|
|
7572
|
-
|
|
7588
|
+
React.createElement(
|
|
7573
7589
|
Button,
|
|
7574
7590
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7575
7591
|
'Vote'
|
|
7576
7592
|
)
|
|
7577
7593
|
),
|
|
7578
|
-
|
|
7594
|
+
React.createElement(
|
|
7579
7595
|
'div',
|
|
7580
7596
|
{ className: 'progress-container' },
|
|
7581
7597
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7582
7598
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7583
|
-
return
|
|
7599
|
+
return React.createElement(
|
|
7584
7600
|
'div',
|
|
7585
7601
|
{ key: choice._key, className: 'mb-3' },
|
|
7586
|
-
|
|
7602
|
+
React.createElement(
|
|
7587
7603
|
'div',
|
|
7588
7604
|
{ className: 'correct-answer' },
|
|
7589
|
-
|
|
7605
|
+
React.createElement(
|
|
7590
7606
|
'div',
|
|
7591
7607
|
null,
|
|
7592
7608
|
choice.choiceText
|
|
7593
7609
|
),
|
|
7594
|
-
choice.choiceAnswer === true &&
|
|
7610
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7595
7611
|
'div',
|
|
7596
7612
|
null,
|
|
7597
|
-
|
|
7613
|
+
React.createElement(
|
|
7598
7614
|
'span',
|
|
7599
7615
|
{ style: { color: 'limegreen' } },
|
|
7600
7616
|
'Correct!'
|
|
7601
7617
|
)
|
|
7602
7618
|
)
|
|
7603
7619
|
),
|
|
7604
|
-
|
|
7605
|
-
|
|
7620
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7621
|
+
React.createElement(
|
|
7606
7622
|
'span',
|
|
7607
7623
|
{ className: 'float-right' },
|
|
7608
7624
|
percentage,
|
|
@@ -7613,14 +7629,14 @@ var Poll = function Poll(_ref) {
|
|
|
7613
7629
|
);
|
|
7614
7630
|
})
|
|
7615
7631
|
),
|
|
7616
|
-
showAnswer &&
|
|
7632
|
+
showAnswer && React.createElement(
|
|
7617
7633
|
'h4',
|
|
7618
7634
|
{ className: 'text-center small p-3' },
|
|
7619
7635
|
'Total Votes: ',
|
|
7620
7636
|
choicesTotalCount
|
|
7621
7637
|
),
|
|
7622
|
-
showAnswer && response &&
|
|
7623
|
-
|
|
7638
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7639
|
+
React.createElement(
|
|
7624
7640
|
'style',
|
|
7625
7641
|
{ jsx: 'true' },
|
|
7626
7642
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7638,22 +7654,22 @@ _export(_export.S, 'Object', {
|
|
|
7638
7654
|
}
|
|
7639
7655
|
});
|
|
7640
7656
|
|
|
7641
|
-
var values = _core.Object.values;
|
|
7657
|
+
var values$1 = _core.Object.values;
|
|
7642
7658
|
|
|
7643
|
-
var values
|
|
7644
|
-
module.exports = { "default": values, __esModule: true };
|
|
7659
|
+
var values = createCommonjsModule(function (module) {
|
|
7660
|
+
module.exports = { "default": values$1, __esModule: true };
|
|
7645
7661
|
});
|
|
7646
7662
|
|
|
7647
|
-
var _Object$values = unwrapExports(values
|
|
7663
|
+
var _Object$values = unwrapExports(values);
|
|
7648
7664
|
|
|
7649
|
-
var Poll
|
|
7650
|
-
var node = _ref.node
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
onVote = _ref.onVote
|
|
7655
|
-
_ref
|
|
7656
|
-
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;
|
|
7657
7673
|
|
|
7658
7674
|
var _useState = useState(null),
|
|
7659
7675
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7719,67 +7735,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7719
7735
|
return acc;
|
|
7720
7736
|
}
|
|
7721
7737
|
}, 0);
|
|
7722
|
-
return
|
|
7723
|
-
|
|
7738
|
+
return React.createElement(
|
|
7739
|
+
React.Fragment,
|
|
7724
7740
|
null,
|
|
7725
|
-
question &&
|
|
7741
|
+
question && React.createElement(
|
|
7726
7742
|
'p',
|
|
7727
7743
|
{ className: 'font-weight-bold' },
|
|
7728
7744
|
question
|
|
7729
7745
|
),
|
|
7730
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7746
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7731
7747
|
'form',
|
|
7732
7748
|
{ onSubmit: function onSubmit(e) {
|
|
7733
7749
|
return onSubmitPoll(e);
|
|
7734
7750
|
} },
|
|
7735
7751
|
choices && choices.map(function (choice) {
|
|
7736
|
-
return
|
|
7752
|
+
return React.createElement(
|
|
7737
7753
|
'div',
|
|
7738
7754
|
{ key: choice._key },
|
|
7739
|
-
|
|
7755
|
+
React.createElement(
|
|
7740
7756
|
'label',
|
|
7741
7757
|
{ className: 'pl-2' },
|
|
7742
|
-
|
|
7758
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7743
7759
|
return setSelectedChoice(e.target.value);
|
|
7744
7760
|
} }),
|
|
7745
7761
|
' ' + choice.choiceText
|
|
7746
7762
|
)
|
|
7747
7763
|
);
|
|
7748
7764
|
}),
|
|
7749
|
-
|
|
7765
|
+
React.createElement(
|
|
7750
7766
|
Button,
|
|
7751
7767
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7752
7768
|
'Vote'
|
|
7753
7769
|
)
|
|
7754
7770
|
),
|
|
7755
|
-
|
|
7771
|
+
React.createElement(
|
|
7756
7772
|
'div',
|
|
7757
7773
|
{ className: 'progress-container' },
|
|
7758
7774
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7759
7775
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7760
|
-
return
|
|
7776
|
+
return React.createElement(
|
|
7761
7777
|
'div',
|
|
7762
7778
|
{ key: choice._key, className: 'mb-3' },
|
|
7763
|
-
|
|
7779
|
+
React.createElement(
|
|
7764
7780
|
'div',
|
|
7765
7781
|
{ className: 'correct-answer' },
|
|
7766
|
-
|
|
7782
|
+
React.createElement(
|
|
7767
7783
|
'div',
|
|
7768
7784
|
null,
|
|
7769
7785
|
choice.choiceText
|
|
7770
7786
|
),
|
|
7771
|
-
choice.choiceAnswer === true &&
|
|
7787
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7772
7788
|
'div',
|
|
7773
7789
|
null,
|
|
7774
|
-
|
|
7790
|
+
React.createElement(
|
|
7775
7791
|
'span',
|
|
7776
7792
|
{ style: { color: 'limegreen' } },
|
|
7777
7793
|
'Correct!'
|
|
7778
7794
|
)
|
|
7779
7795
|
)
|
|
7780
7796
|
),
|
|
7781
|
-
|
|
7782
|
-
|
|
7797
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7798
|
+
React.createElement(
|
|
7783
7799
|
'span',
|
|
7784
7800
|
{ className: 'float-right' },
|
|
7785
7801
|
percentage,
|
|
@@ -7790,14 +7806,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7790
7806
|
);
|
|
7791
7807
|
})
|
|
7792
7808
|
),
|
|
7793
|
-
showAnswer &&
|
|
7809
|
+
showAnswer && React.createElement(
|
|
7794
7810
|
'h4',
|
|
7795
7811
|
{ className: 'text-center small p-3' },
|
|
7796
7812
|
'Total Votes: ',
|
|
7797
7813
|
choicesTotalCount
|
|
7798
7814
|
),
|
|
7799
|
-
showAnswer && response &&
|
|
7800
|
-
|
|
7815
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7816
|
+
React.createElement(
|
|
7801
7817
|
'style',
|
|
7802
7818
|
{ jsx: 'true' },
|
|
7803
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 '
|
|
@@ -7805,7 +7821,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7805
7821
|
);
|
|
7806
7822
|
};
|
|
7807
7823
|
|
|
7808
|
-
var numberOfPaginations =
|
|
7824
|
+
var numberOfPaginations = main_42 ? 4 : 10;
|
|
7809
7825
|
|
|
7810
7826
|
var Quiz = function Quiz(_ref) {
|
|
7811
7827
|
var quizzes = _ref.quizzes,
|
|
@@ -7923,34 +7939,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7923
7939
|
};
|
|
7924
7940
|
|
|
7925
7941
|
var renderPagination = function renderPagination() {
|
|
7926
|
-
return
|
|
7927
|
-
Pagination
|
|
7928
|
-
{ className: 'p-0 m-0', size:
|
|
7929
|
-
|
|
7942
|
+
return React.createElement(
|
|
7943
|
+
Pagination,
|
|
7944
|
+
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
7945
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7930
7946
|
return changePage('first');
|
|
7931
7947
|
}, disabled: currentPage === 1 }),
|
|
7932
|
-
|
|
7948
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7933
7949
|
return changePage('prev');
|
|
7934
7950
|
}, disabled: currentPage === 1 }),
|
|
7935
|
-
|
|
7951
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7936
7952
|
return renderNewPages('prev');
|
|
7937
7953
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7938
7954
|
pages.map(function (page) {
|
|
7939
|
-
return
|
|
7940
|
-
Pagination
|
|
7955
|
+
return React.createElement(
|
|
7956
|
+
Pagination.Item,
|
|
7941
7957
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7942
7958
|
return changePage(page);
|
|
7943
7959
|
} },
|
|
7944
7960
|
page
|
|
7945
7961
|
);
|
|
7946
7962
|
}),
|
|
7947
|
-
|
|
7963
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7948
7964
|
return renderNewPages('next');
|
|
7949
7965
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7950
|
-
|
|
7966
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7951
7967
|
return changePage('next');
|
|
7952
7968
|
}, disabled: currentPage === pageCount }),
|
|
7953
|
-
|
|
7969
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7954
7970
|
return changePage('last');
|
|
7955
7971
|
}, disabled: currentPage === pageCount })
|
|
7956
7972
|
);
|
|
@@ -8033,51 +8049,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8033
8049
|
}
|
|
8034
8050
|
};
|
|
8035
8051
|
|
|
8036
|
-
return
|
|
8037
|
-
|
|
8052
|
+
return React.createElement(
|
|
8053
|
+
React.Fragment,
|
|
8038
8054
|
null,
|
|
8039
|
-
quizzes[currentPage - 1] &&
|
|
8040
|
-
|
|
8055
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8056
|
+
React.Fragment,
|
|
8041
8057
|
null,
|
|
8042
|
-
|
|
8043
|
-
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(
|
|
8044
8060
|
'form',
|
|
8045
8061
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8046
8062
|
return e.preventDefault();
|
|
8047
8063
|
} },
|
|
8048
8064
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8049
|
-
return
|
|
8065
|
+
return React.createElement(
|
|
8050
8066
|
'div',
|
|
8051
8067
|
{ key: answer._key },
|
|
8052
|
-
|
|
8068
|
+
React.createElement(
|
|
8053
8069
|
'label',
|
|
8054
8070
|
{ className: 'pl-2' },
|
|
8055
|
-
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 }),
|
|
8056
8072
|
' ' + answer.answerText
|
|
8057
8073
|
)
|
|
8058
8074
|
);
|
|
8059
8075
|
})
|
|
8060
8076
|
)
|
|
8061
8077
|
),
|
|
8062
|
-
!showAnswer &&
|
|
8078
|
+
!showAnswer && React.createElement(
|
|
8063
8079
|
Button$1,
|
|
8064
8080
|
{ onClick: function onClick() {
|
|
8065
8081
|
return checkAnswers();
|
|
8066
8082
|
}, variant: 'info', block: true },
|
|
8067
8083
|
'Please click here for answer'
|
|
8068
8084
|
),
|
|
8069
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8070
|
-
|
|
8085
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8086
|
+
React.Fragment,
|
|
8071
8087
|
null,
|
|
8072
|
-
|
|
8088
|
+
React.createElement(
|
|
8073
8089
|
'h4',
|
|
8074
8090
|
null,
|
|
8075
8091
|
'Answer:'
|
|
8076
8092
|
),
|
|
8077
|
-
quizzes[currentPage - 1].answer &&
|
|
8093
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8078
8094
|
),
|
|
8079
|
-
|
|
8080
|
-
pageCount > 1 &&
|
|
8095
|
+
React.createElement('br', null),
|
|
8096
|
+
pageCount > 1 && React.createElement(
|
|
8081
8097
|
'div',
|
|
8082
8098
|
{ className: 'd-flex justify-content-center' },
|
|
8083
8099
|
renderPagination()
|
|
@@ -8088,19 +8104,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8088
8104
|
var Leads = function Leads(_ref) {
|
|
8089
8105
|
var url = _ref.url;
|
|
8090
8106
|
|
|
8091
|
-
return
|
|
8107
|
+
return React.createElement(
|
|
8092
8108
|
'div',
|
|
8093
8109
|
{ className: 'd-block text-center mb-3' },
|
|
8094
|
-
url &&
|
|
8110
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8095
8111
|
);
|
|
8096
8112
|
};
|
|
8097
8113
|
|
|
8098
|
-
var urlFor$
|
|
8114
|
+
var urlFor$3 = function urlFor(source, client) {
|
|
8099
8115
|
var builder = imageUrlBuilder(client);
|
|
8100
8116
|
return builder.image(source).auto('format');
|
|
8101
8117
|
};
|
|
8102
8118
|
|
|
8103
|
-
var Slideshow
|
|
8119
|
+
var Slideshow = function Slideshow(_ref) {
|
|
8104
8120
|
var slides = _ref.node.slides,
|
|
8105
8121
|
client = _ref.client,
|
|
8106
8122
|
pageview = _ref.pageview,
|
|
@@ -8112,8 +8128,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8112
8128
|
|
|
8113
8129
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8114
8130
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8115
|
-
carouselIndex = _useState2[0]
|
|
8116
|
-
|
|
8131
|
+
carouselIndex = _useState2[0];
|
|
8132
|
+
_useState2[1];
|
|
8117
8133
|
|
|
8118
8134
|
// useEffect(() => {
|
|
8119
8135
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8139,42 +8155,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8139
8155
|
}
|
|
8140
8156
|
};
|
|
8141
8157
|
|
|
8142
|
-
return
|
|
8158
|
+
return React.createElement(
|
|
8143
8159
|
'div',
|
|
8144
8160
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8145
|
-
|
|
8161
|
+
React.createElement(
|
|
8146
8162
|
Carousel,
|
|
8147
8163
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8148
8164
|
slides && slides.map(function (slide) {
|
|
8149
8165
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8150
|
-
return
|
|
8166
|
+
return React.createElement(
|
|
8151
8167
|
Carousel.Item,
|
|
8152
8168
|
{ key: slide._key },
|
|
8153
|
-
|
|
8169
|
+
React.createElement(
|
|
8154
8170
|
'a',
|
|
8155
8171
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8156
|
-
|
|
8172
|
+
React.createElement(
|
|
8157
8173
|
LazyLoad,
|
|
8158
8174
|
null,
|
|
8159
|
-
|
|
8175
|
+
React.createElement('img', { src: urlFor$3(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8160
8176
|
)
|
|
8161
8177
|
),
|
|
8162
|
-
|
|
8178
|
+
React.createElement(
|
|
8163
8179
|
'div',
|
|
8164
8180
|
{ className: 'p-2' },
|
|
8165
|
-
slide.slideshowImage.caption &&
|
|
8181
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8166
8182
|
'h3',
|
|
8167
8183
|
{ style: { padding: '0px' } },
|
|
8168
8184
|
slide.slideshowImage.caption
|
|
8169
8185
|
),
|
|
8170
|
-
slide.description &&
|
|
8186
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8171
8187
|
)
|
|
8172
8188
|
);
|
|
8173
8189
|
}
|
|
8174
8190
|
return null;
|
|
8175
8191
|
})
|
|
8176
8192
|
),
|
|
8177
|
-
|
|
8193
|
+
React.createElement(
|
|
8178
8194
|
'style',
|
|
8179
8195
|
{ jsx: 'true' },
|
|
8180
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 '
|
|
@@ -8193,10 +8209,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8193
8209
|
sizes = _props$node.sizes,
|
|
8194
8210
|
sizeMapping = _props$node.sizeMapping;
|
|
8195
8211
|
|
|
8196
|
-
return
|
|
8212
|
+
return React.createElement(
|
|
8197
8213
|
'div',
|
|
8198
8214
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8199
|
-
|
|
8215
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8200
8216
|
);
|
|
8201
8217
|
};
|
|
8202
8218
|
|
|
@@ -8207,15 +8223,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8207
8223
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8208
8224
|
|
|
8209
8225
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8210
|
-
return
|
|
8226
|
+
return React.createElement(
|
|
8211
8227
|
'section',
|
|
8212
8228
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8213
|
-
Caption &&
|
|
8229
|
+
Caption && React.createElement(
|
|
8214
8230
|
'h4',
|
|
8215
8231
|
{ className: 'formstack-caption' },
|
|
8216
8232
|
Caption
|
|
8217
8233
|
),
|
|
8218
|
-
|
|
8234
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8219
8235
|
);
|
|
8220
8236
|
};
|
|
8221
8237
|
|
|
@@ -8235,29 +8251,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8235
8251
|
}
|
|
8236
8252
|
});
|
|
8237
8253
|
if (medias && medias.length > 0) {
|
|
8238
|
-
return
|
|
8254
|
+
return React.createElement(
|
|
8239
8255
|
'div',
|
|
8240
8256
|
{ className: 'multi-media-container' },
|
|
8241
|
-
|
|
8257
|
+
React.createElement(
|
|
8242
8258
|
Row$1,
|
|
8243
8259
|
{ noGutters: true },
|
|
8244
8260
|
medias.map(function (media) {
|
|
8245
|
-
return
|
|
8261
|
+
return React.createElement(
|
|
8246
8262
|
Col$1,
|
|
8247
8263
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8248
|
-
|
|
8264
|
+
React.createElement(
|
|
8249
8265
|
'a',
|
|
8250
|
-
_extends
|
|
8266
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8251
8267
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8252
|
-
|
|
8268
|
+
React.createElement(
|
|
8253
8269
|
'div',
|
|
8254
8270
|
{ className: 'multi-media-image-container' },
|
|
8255
|
-
imageBox &&
|
|
8271
|
+
imageBox && React.createElement(
|
|
8256
8272
|
LazyLoad,
|
|
8257
8273
|
{ once: true },
|
|
8258
|
-
|
|
8274
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8259
8275
|
),
|
|
8260
|
-
media.caption &&
|
|
8276
|
+
media.caption && React.createElement(
|
|
8261
8277
|
'span',
|
|
8262
8278
|
{ className: 'multi-media-caption' },
|
|
8263
8279
|
media.caption
|
|
@@ -8267,7 +8283,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8267
8283
|
);
|
|
8268
8284
|
})
|
|
8269
8285
|
),
|
|
8270
|
-
|
|
8286
|
+
React.createElement(
|
|
8271
8287
|
'style',
|
|
8272
8288
|
{ jsx: 'true' },
|
|
8273
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 '
|
|
@@ -8314,7 +8330,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8314
8330
|
}
|
|
8315
8331
|
};
|
|
8316
8332
|
|
|
8317
|
-
_this.wraperRef =
|
|
8333
|
+
_this.wraperRef = React.createRef();
|
|
8318
8334
|
_this.visible = false;
|
|
8319
8335
|
return _this;
|
|
8320
8336
|
}
|
|
@@ -8342,7 +8358,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8342
8358
|
_props$id = _props.id,
|
|
8343
8359
|
id = _props$id === undefined ? '' : _props$id;
|
|
8344
8360
|
|
|
8345
|
-
return
|
|
8361
|
+
return React.createElement(
|
|
8346
8362
|
'div',
|
|
8347
8363
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8348
8364
|
this.props.children
|
|
@@ -8351,7 +8367,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8351
8367
|
}]);
|
|
8352
8368
|
|
|
8353
8369
|
return InscreenSensor;
|
|
8354
|
-
}(
|
|
8370
|
+
}(React.Component);
|
|
8355
8371
|
|
|
8356
8372
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8357
8373
|
var nodes = _ref.nodes,
|
|
@@ -8464,33 +8480,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8464
8480
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8465
8481
|
var showReading = show ? 'showReading' : '';
|
|
8466
8482
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8467
|
-
return
|
|
8483
|
+
return React.createElement(
|
|
8468
8484
|
'div',
|
|
8469
8485
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8470
|
-
|
|
8486
|
+
React.createElement(
|
|
8471
8487
|
'a',
|
|
8472
8488
|
{ onClick: function onClick(e) {
|
|
8473
8489
|
return articleCardClickHandler(e);
|
|
8474
8490
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8475
|
-
|
|
8491
|
+
React.createElement(
|
|
8476
8492
|
'div',
|
|
8477
8493
|
{ className: 'prevNext-thumbnail' },
|
|
8478
|
-
|
|
8479
|
-
|
|
8494
|
+
React.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8495
|
+
React.createElement(
|
|
8480
8496
|
'div',
|
|
8481
8497
|
{ className: 'prevNext-reading ' + showReading },
|
|
8482
8498
|
articleLabel
|
|
8483
8499
|
)
|
|
8484
8500
|
),
|
|
8485
|
-
|
|
8501
|
+
React.createElement(
|
|
8486
8502
|
'div',
|
|
8487
8503
|
{ className: 'prevNext-summary' },
|
|
8488
|
-
|
|
8504
|
+
React.createElement(
|
|
8489
8505
|
'div',
|
|
8490
8506
|
{ className: 'prevNext-publishDate' },
|
|
8491
8507
|
moment(article.published).format('LL')
|
|
8492
8508
|
),
|
|
8493
|
-
|
|
8509
|
+
React.createElement(
|
|
8494
8510
|
'h2',
|
|
8495
8511
|
{ className: 'prevNext-title' },
|
|
8496
8512
|
article.title
|
|
@@ -8539,7 +8555,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8539
8555
|
|
|
8540
8556
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8541
8557
|
if (biography) {
|
|
8542
|
-
return
|
|
8558
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8543
8559
|
}
|
|
8544
8560
|
};
|
|
8545
8561
|
|
|
@@ -8625,7 +8641,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8625
8641
|
//console.log('useLayoutEffect')
|
|
8626
8642
|
if (!firstLoad) {
|
|
8627
8643
|
setUpArrowClicked(false);
|
|
8628
|
-
if (
|
|
8644
|
+
if (main_43) {
|
|
8629
8645
|
grabLoadedAds();
|
|
8630
8646
|
} else {
|
|
8631
8647
|
scrollToArticle();
|
|
@@ -8649,7 +8665,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8649
8665
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8650
8666
|
if (pageview) pageview(path);
|
|
8651
8667
|
|
|
8652
|
-
if (!
|
|
8668
|
+
if (!main_43) {
|
|
8653
8669
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8654
8670
|
if (window.googletag && googletag.pubadsReady) {
|
|
8655
8671
|
lib_3.refresh();
|
|
@@ -8657,7 +8673,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8657
8673
|
});
|
|
8658
8674
|
}
|
|
8659
8675
|
//Refresh leaderboard ad on mobile
|
|
8660
|
-
if (
|
|
8676
|
+
if (main_43) {
|
|
8661
8677
|
var leaderboardSlotId = '';
|
|
8662
8678
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8663
8679
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8697,38 +8713,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8697
8713
|
setSensorVisible(false);
|
|
8698
8714
|
};
|
|
8699
8715
|
|
|
8700
|
-
return
|
|
8701
|
-
|
|
8716
|
+
return React.createElement(
|
|
8717
|
+
React.Fragment,
|
|
8702
8718
|
null,
|
|
8703
|
-
|
|
8719
|
+
React.createElement(
|
|
8704
8720
|
'div',
|
|
8705
8721
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8706
|
-
|
|
8722
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8707
8723
|
return handleArrowClick();
|
|
8708
8724
|
} })
|
|
8709
8725
|
),
|
|
8710
|
-
|
|
8711
|
-
|
|
8726
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8727
|
+
React.createElement(
|
|
8712
8728
|
'div',
|
|
8713
8729
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8714
|
-
|
|
8730
|
+
React.createElement(
|
|
8715
8731
|
'h5',
|
|
8716
8732
|
{ className: 'objective-title' },
|
|
8717
8733
|
nodes.seriesTitle
|
|
8718
8734
|
),
|
|
8719
|
-
|
|
8735
|
+
React.createElement(
|
|
8720
8736
|
'div',
|
|
8721
8737
|
{ className: 'prevNextWrapper' },
|
|
8722
8738
|
PrevNextCards(false, -1)
|
|
8723
8739
|
)
|
|
8724
8740
|
),
|
|
8725
|
-
|
|
8726
|
-
|
|
8741
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8742
|
+
React.createElement(
|
|
8727
8743
|
'div',
|
|
8728
8744
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8729
|
-
|
|
8745
|
+
main_43 && Ads.map(function (ad, index) {
|
|
8730
8746
|
if (index === 0) {
|
|
8731
|
-
return
|
|
8747
|
+
return React.createElement(
|
|
8732
8748
|
'div',
|
|
8733
8749
|
{
|
|
8734
8750
|
key: 'addid-1',
|
|
@@ -8748,14 +8764,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8748
8764
|
}
|
|
8749
8765
|
})
|
|
8750
8766
|
),
|
|
8751
|
-
|
|
8767
|
+
React.createElement(
|
|
8752
8768
|
'div',
|
|
8753
8769
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8754
8770
|
Articles.map(function (article, index) {
|
|
8755
|
-
return
|
|
8771
|
+
return React.createElement(
|
|
8756
8772
|
'div',
|
|
8757
8773
|
{ key: article.title },
|
|
8758
|
-
|
|
8774
|
+
React.createElement(
|
|
8759
8775
|
InscreenSensor,
|
|
8760
8776
|
{
|
|
8761
8777
|
visible: sensorVisible,
|
|
@@ -8773,84 +8789,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8773
8789
|
}
|
|
8774
8790
|
}
|
|
8775
8791
|
} },
|
|
8776
|
-
|
|
8792
|
+
React.createElement(
|
|
8777
8793
|
Head,
|
|
8778
8794
|
null,
|
|
8779
|
-
currentTitle !== null &&
|
|
8795
|
+
currentTitle !== null && React.createElement(
|
|
8780
8796
|
'title',
|
|
8781
8797
|
{ key: 'title' },
|
|
8782
8798
|
currentTitle
|
|
8783
8799
|
),
|
|
8784
|
-
currentSummary !== null &&
|
|
8785
|
-
currentURL !== null &&
|
|
8786
|
-
currentTitle !== null &&
|
|
8787
|
-
currentThumbnail !== null &&
|
|
8788
|
-
currentSummary !== null &&
|
|
8789
|
-
currentTitle !== null &&
|
|
8790
|
-
currentThumbnail !== null &&
|
|
8791
|
-
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' })
|
|
8792
8808
|
),
|
|
8793
|
-
|
|
8809
|
+
React.createElement(
|
|
8794
8810
|
'article',
|
|
8795
8811
|
{ className: 'article-wrapper' },
|
|
8796
|
-
|
|
8812
|
+
React.createElement(
|
|
8797
8813
|
'div',
|
|
8798
8814
|
{ className: 'article-publishDate' },
|
|
8799
8815
|
moment(article.published).format('LL')
|
|
8800
8816
|
),
|
|
8801
|
-
|
|
8817
|
+
React.createElement(
|
|
8802
8818
|
'div',
|
|
8803
8819
|
{ className: 'author-details-wrapper' },
|
|
8804
8820
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8805
|
-
return
|
|
8821
|
+
return React.createElement(
|
|
8806
8822
|
'span',
|
|
8807
8823
|
{ key: index },
|
|
8808
8824
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8809
8825
|
);
|
|
8810
8826
|
})
|
|
8811
8827
|
),
|
|
8812
|
-
|
|
8828
|
+
React.createElement(
|
|
8813
8829
|
'h2',
|
|
8814
8830
|
{ className: 'article-title' },
|
|
8815
8831
|
article.title
|
|
8816
8832
|
),
|
|
8817
|
-
|
|
8833
|
+
React.createElement(
|
|
8818
8834
|
'div',
|
|
8819
8835
|
{ className: 'mt-2 mb-2' },
|
|
8820
|
-
|
|
8836
|
+
React.createElement(BlockContent, _extends({
|
|
8821
8837
|
serializers: getSerializers,
|
|
8822
8838
|
videoAccountIDs: accountIDs,
|
|
8823
8839
|
blocks: article.text,
|
|
8824
8840
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8825
8841
|
}, client.config())),
|
|
8826
|
-
|
|
8842
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8827
8843
|
),
|
|
8828
|
-
Articles.length > 1 &&
|
|
8829
|
-
|
|
8844
|
+
Articles.length > 1 && React.createElement(
|
|
8845
|
+
React.Fragment,
|
|
8830
8846
|
null,
|
|
8831
|
-
|
|
8847
|
+
React.createElement(
|
|
8832
8848
|
'div',
|
|
8833
8849
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8834
|
-
|
|
8850
|
+
React.createElement(
|
|
8835
8851
|
'h5',
|
|
8836
8852
|
{ className: 'objective-title' },
|
|
8837
8853
|
nodes.seriesTitle
|
|
8838
8854
|
),
|
|
8839
|
-
|
|
8855
|
+
React.createElement(
|
|
8840
8856
|
'div',
|
|
8841
8857
|
{ className: 'prevNextWrapper' },
|
|
8842
8858
|
PrevNextCards(true, index)
|
|
8843
8859
|
)
|
|
8844
8860
|
),
|
|
8845
|
-
|
|
8861
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8846
8862
|
)
|
|
8847
8863
|
),
|
|
8848
|
-
|
|
8864
|
+
React.createElement(
|
|
8849
8865
|
'div',
|
|
8850
8866
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8851
|
-
|
|
8867
|
+
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8852
8868
|
if (innerIndex === 0) {
|
|
8853
|
-
return
|
|
8869
|
+
return React.createElement(
|
|
8854
8870
|
'div',
|
|
8855
8871
|
{
|
|
8856
8872
|
key: 'addid-' + (index + 2),
|
|
@@ -8873,7 +8889,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8873
8889
|
)
|
|
8874
8890
|
);
|
|
8875
8891
|
}),
|
|
8876
|
-
|
|
8892
|
+
React.createElement(
|
|
8877
8893
|
'style',
|
|
8878
8894
|
{ jsx: 'true' },
|
|
8879
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 '
|
|
@@ -8903,11 +8919,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8903
8919
|
};
|
|
8904
8920
|
}, [handleClickOutside]);
|
|
8905
8921
|
|
|
8906
|
-
return
|
|
8922
|
+
return React.createElement(
|
|
8907
8923
|
'div',
|
|
8908
8924
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8909
|
-
|
|
8910
|
-
|
|
8925
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8926
|
+
React.createElement(
|
|
8911
8927
|
'style',
|
|
8912
8928
|
{ jsx: 'true' },
|
|
8913
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 '
|
|
@@ -8915,49 +8931,17 @@ var LightBox = function LightBox(_ref) {
|
|
|
8915
8931
|
);
|
|
8916
8932
|
};
|
|
8917
8933
|
|
|
8918
|
-
var urlFor$
|
|
8934
|
+
var urlFor$1 = function urlFor(source, client) {
|
|
8919
8935
|
var builder = imageUrlBuilder(client);
|
|
8920
8936
|
return builder.image(source).auto('format');
|
|
8921
8937
|
};
|
|
8922
8938
|
|
|
8923
|
-
var generateSrcSet = function generateSrcSet(source, client, width) {
|
|
8924
|
-
var builder = imageUrlBuilder(client);
|
|
8925
|
-
return builder.image(source).width(width).fit('max').auto('format').url();
|
|
8926
|
-
};
|
|
8927
|
-
|
|
8928
8939
|
var compareProps = function compareProps(prevProps, nextProps) {
|
|
8929
8940
|
if (nextProps.node.asset && nextProps.node.asset._ref) {
|
|
8930
8941
|
return prevProps.node.asset._ref === nextProps.node.asset._ref;
|
|
8931
8942
|
}
|
|
8932
8943
|
};
|
|
8933
8944
|
|
|
8934
|
-
var FigureImage = React__default.memo(function (_ref2) {
|
|
8935
|
-
var node = _ref2.node,
|
|
8936
|
-
client = _ref2.client,
|
|
8937
|
-
imgAlt = _ref2.imgAlt,
|
|
8938
|
-
link = _ref2.link,
|
|
8939
|
-
handleClickFigure = _ref2.handleClickFigure;
|
|
8940
|
-
|
|
8941
|
-
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8942
|
-
return React__default.createElement(
|
|
8943
|
-
'picture',
|
|
8944
|
-
null,
|
|
8945
|
-
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: generateSrcSet(node, client, 1500) }),
|
|
8946
|
-
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: generateSrcSet(node, client, 1000) }),
|
|
8947
|
-
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: generateSrcSet(node, client, 500) }),
|
|
8948
|
-
React__default.createElement('img', _extends$1({
|
|
8949
|
-
style: figureImageStyle,
|
|
8950
|
-
className: 'figure-image',
|
|
8951
|
-
src: urlFor$3(node, client).url(),
|
|
8952
|
-
alt: imgAlt ? imgAlt : 'figure image'
|
|
8953
|
-
}, !link && {
|
|
8954
|
-
onClick: function onClick() {
|
|
8955
|
-
return handleClickFigure(node, client);
|
|
8956
|
-
}
|
|
8957
|
-
}))
|
|
8958
|
-
);
|
|
8959
|
-
});
|
|
8960
|
-
|
|
8961
8945
|
var FigureComponent = function FigureComponent(props) {
|
|
8962
8946
|
var _useState = useState(false),
|
|
8963
8947
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -9033,13 +9017,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9033
9017
|
|
|
9034
9018
|
var FigureCaption = useCallback(function () {
|
|
9035
9019
|
if (imgcaption && imgcaption.length > 0) {
|
|
9036
|
-
return
|
|
9020
|
+
return React.createElement(
|
|
9037
9021
|
'div',
|
|
9038
9022
|
{ className: 'figure-caption' },
|
|
9039
|
-
|
|
9023
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9040
9024
|
);
|
|
9041
9025
|
} else if (caption) {
|
|
9042
|
-
return
|
|
9026
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9043
9027
|
} else return null;
|
|
9044
9028
|
}, [caption, imgcaption]);
|
|
9045
9029
|
|
|
@@ -9051,29 +9035,33 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9051
9035
|
margin: figureMargin
|
|
9052
9036
|
};
|
|
9053
9037
|
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
setShowLightbox(true);
|
|
9057
|
-
}, [node, client]);
|
|
9058
|
-
|
|
9059
|
-
return React__default.createElement(
|
|
9060
|
-
React__default.Fragment,
|
|
9038
|
+
return React.createElement(
|
|
9039
|
+
React.Fragment,
|
|
9061
9040
|
null,
|
|
9062
|
-
|
|
9063
|
-
Figure$
|
|
9041
|
+
React.createElement(
|
|
9042
|
+
Figure$2,
|
|
9064
9043
|
{ className: '' + class_name, style: figureStyle },
|
|
9065
|
-
link ?
|
|
9044
|
+
link ? React.createElement(
|
|
9066
9045
|
'a',
|
|
9067
9046
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
) :
|
|
9071
|
-
|
|
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,
|
|
9072
9051
|
null,
|
|
9073
|
-
|
|
9074
|
-
|
|
9052
|
+
React.createElement(Figure$2.Image, {
|
|
9053
|
+
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
9054
|
+
className: 'figure-image',
|
|
9055
|
+
src: urlFor$1(node, client).url(),
|
|
9056
|
+
alt: alt && alt,
|
|
9057
|
+
onClick: function onClick() {
|
|
9058
|
+
setLightboxImgSrc(urlFor$1(node, client).url());
|
|
9059
|
+
setShowLightbox(true);
|
|
9060
|
+
}
|
|
9061
|
+
}),
|
|
9062
|
+
React.createElement(FigureCaption, null)
|
|
9075
9063
|
),
|
|
9076
|
-
|
|
9064
|
+
React.createElement(LightBox, {
|
|
9077
9065
|
showLightbox: showLightbox,
|
|
9078
9066
|
lightboxImgSrc: lightboxImgSrc,
|
|
9079
9067
|
closeLightbox: function closeLightbox() {
|
|
@@ -9082,7 +9070,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9082
9070
|
}
|
|
9083
9071
|
})
|
|
9084
9072
|
),
|
|
9085
|
-
|
|
9073
|
+
React.createElement(
|
|
9086
9074
|
'style',
|
|
9087
9075
|
{ jsx: 'true' },
|
|
9088
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 '
|
|
@@ -9090,9 +9078,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9090
9078
|
);
|
|
9091
9079
|
};
|
|
9092
9080
|
|
|
9093
|
-
var Figure =
|
|
9081
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9094
9082
|
|
|
9095
|
-
var urlFor
|
|
9083
|
+
var urlFor = function urlFor(source, client) {
|
|
9096
9084
|
var builder = imageUrlBuilder(client);
|
|
9097
9085
|
return builder.image(source).auto('format');
|
|
9098
9086
|
};
|
|
@@ -9136,68 +9124,68 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9136
9124
|
imgcaption = _ref.imgcaption;
|
|
9137
9125
|
|
|
9138
9126
|
if (imgcaption && imgcaption.length > 0) {
|
|
9139
|
-
return
|
|
9127
|
+
return React.createElement(
|
|
9140
9128
|
'div',
|
|
9141
9129
|
{ className: 'multi-figure-caption' },
|
|
9142
|
-
|
|
9130
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9143
9131
|
);
|
|
9144
9132
|
} else if (caption) {
|
|
9145
|
-
return
|
|
9133
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9146
9134
|
} else return null;
|
|
9147
9135
|
};
|
|
9148
9136
|
|
|
9149
9137
|
if (images && images.length > 0) {
|
|
9150
|
-
return
|
|
9138
|
+
return React.createElement(
|
|
9151
9139
|
'div',
|
|
9152
9140
|
{ className: 'multi-figure-container' },
|
|
9153
|
-
|
|
9141
|
+
React.createElement(
|
|
9154
9142
|
Row$1,
|
|
9155
9143
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9156
9144
|
images.map(function (image, index) {
|
|
9157
|
-
return
|
|
9145
|
+
return React.createElement(
|
|
9158
9146
|
Col$1,
|
|
9159
9147
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9160
|
-
image.link ?
|
|
9148
|
+
image.link ? React.createElement(
|
|
9161
9149
|
'a',
|
|
9162
|
-
_extends
|
|
9163
|
-
|
|
9150
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9151
|
+
React.createElement(
|
|
9164
9152
|
'div',
|
|
9165
9153
|
{ className: 'multi-figure-image-container' },
|
|
9166
|
-
|
|
9154
|
+
React.createElement(
|
|
9167
9155
|
LazyLoad,
|
|
9168
9156
|
{ once: true },
|
|
9169
|
-
|
|
9157
|
+
React.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor(image.asset, client).url(), alt: image.alt })
|
|
9170
9158
|
),
|
|
9171
|
-
|
|
9159
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9172
9160
|
)
|
|
9173
|
-
) :
|
|
9161
|
+
) : React.createElement(
|
|
9174
9162
|
'div',
|
|
9175
9163
|
{ className: 'multi-figure-image-container' },
|
|
9176
|
-
|
|
9164
|
+
React.createElement(
|
|
9177
9165
|
LazyLoad,
|
|
9178
9166
|
{ once: true },
|
|
9179
|
-
|
|
9167
|
+
React.createElement('img', {
|
|
9180
9168
|
'images-count': images.length,
|
|
9181
9169
|
className: 'multi-figure-image',
|
|
9182
|
-
src: urlFor
|
|
9170
|
+
src: urlFor(image.asset, client).url(),
|
|
9183
9171
|
alt: image.alt,
|
|
9184
9172
|
onClick: function onClick() {
|
|
9185
|
-
setOpenImgSrc(urlFor
|
|
9173
|
+
setOpenImgSrc(urlFor(image, client).url());
|
|
9186
9174
|
setOpenImg(true);
|
|
9187
9175
|
}
|
|
9188
9176
|
})
|
|
9189
9177
|
),
|
|
9190
|
-
|
|
9178
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9191
9179
|
)
|
|
9192
9180
|
);
|
|
9193
9181
|
})
|
|
9194
9182
|
),
|
|
9195
|
-
|
|
9183
|
+
React.createElement(
|
|
9196
9184
|
'div',
|
|
9197
9185
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9198
|
-
|
|
9186
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9199
9187
|
),
|
|
9200
|
-
|
|
9188
|
+
React.createElement(
|
|
9201
9189
|
'style',
|
|
9202
9190
|
{ jsx: 'true' },
|
|
9203
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 '
|
|
@@ -9219,10 +9207,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9219
9207
|
|
|
9220
9208
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9221
9209
|
|
|
9222
|
-
return
|
|
9210
|
+
return React.createElement(
|
|
9223
9211
|
'div',
|
|
9224
9212
|
{ id: elementId },
|
|
9225
|
-
|
|
9213
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9226
9214
|
);
|
|
9227
9215
|
};
|
|
9228
9216
|
|
|
@@ -9251,7 +9239,7 @@ exports.__esModule = true;
|
|
|
9251
9239
|
|
|
9252
9240
|
|
|
9253
9241
|
|
|
9254
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9242
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9255
9243
|
|
|
9256
9244
|
|
|
9257
9245
|
|
|
@@ -9271,7 +9259,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9271
9259
|
|
|
9272
9260
|
|
|
9273
9261
|
|
|
9274
|
-
var _react2 = _interopRequireDefault(
|
|
9262
|
+
var _react2 = _interopRequireDefault(React);
|
|
9275
9263
|
|
|
9276
9264
|
|
|
9277
9265
|
|
|
@@ -9420,9 +9408,9 @@ var ScriptTag = function (_Component) {
|
|
|
9420
9408
|
|
|
9421
9409
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9422
9410
|
// eslint-disable-next-line no-unused-vars
|
|
9423
|
-
var _props3 = this.props
|
|
9424
|
-
|
|
9425
|
-
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9411
|
+
var _props3 = this.props;
|
|
9412
|
+
_props3.isHydrating;
|
|
9413
|
+
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9426
9414
|
|
|
9427
9415
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9428
9416
|
return _this2.domRef = tag;
|
|
@@ -9430,7 +9418,7 @@ var ScriptTag = function (_Component) {
|
|
|
9430
9418
|
};
|
|
9431
9419
|
|
|
9432
9420
|
return ScriptTag;
|
|
9433
|
-
}(
|
|
9421
|
+
}(React.Component);
|
|
9434
9422
|
|
|
9435
9423
|
ScriptTag.propTypes = {
|
|
9436
9424
|
/**
|
|
@@ -9500,11 +9488,11 @@ var FormAssembly = function FormAssembly(_ref) {
|
|
|
9500
9488
|
}, 1000);
|
|
9501
9489
|
}, []);
|
|
9502
9490
|
|
|
9503
|
-
return
|
|
9491
|
+
return React.createElement(
|
|
9504
9492
|
'section',
|
|
9505
9493
|
{ ref: formAssemblyRef, className: 'form-assembly' },
|
|
9506
|
-
|
|
9507
|
-
|
|
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 })
|
|
9508
9496
|
);
|
|
9509
9497
|
};
|
|
9510
9498
|
|
|
@@ -9538,27 +9526,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9538
9526
|
return window.removeEventListener('resize', handleResize);
|
|
9539
9527
|
};
|
|
9540
9528
|
}, []);
|
|
9541
|
-
return
|
|
9529
|
+
return React.createElement(
|
|
9542
9530
|
'div',
|
|
9543
9531
|
{ className: 'blockTableHolder', ref: holder },
|
|
9544
|
-
|
|
9532
|
+
React.createElement(
|
|
9545
9533
|
'div',
|
|
9546
9534
|
{ className: 'blockTable' },
|
|
9547
9535
|
rows && rows.map(function (row) {
|
|
9548
|
-
return
|
|
9536
|
+
return React.createElement(
|
|
9549
9537
|
'div',
|
|
9550
9538
|
{ className: 'blockTableRow' },
|
|
9551
9539
|
row.cells && row.cells.map(function (cell) {
|
|
9552
|
-
return
|
|
9540
|
+
return React.createElement(
|
|
9553
9541
|
'div',
|
|
9554
9542
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9555
|
-
|
|
9543
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9556
9544
|
);
|
|
9557
9545
|
})
|
|
9558
9546
|
);
|
|
9559
9547
|
})
|
|
9560
9548
|
),
|
|
9561
|
-
|
|
9549
|
+
React.createElement(
|
|
9562
9550
|
'style',
|
|
9563
9551
|
{ jsx: true },
|
|
9564
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 '
|
|
@@ -9637,12 +9625,12 @@ var getSerializers = function getSerializers() {
|
|
|
9637
9625
|
var node = _ref.node;
|
|
9638
9626
|
var url = node.url;
|
|
9639
9627
|
|
|
9640
|
-
return
|
|
9628
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9641
9629
|
},
|
|
9642
9630
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9643
9631
|
var node = _ref2.node;
|
|
9644
9632
|
|
|
9645
|
-
return
|
|
9633
|
+
return React.createElement(YouTubeGallery, {
|
|
9646
9634
|
nodes: node,
|
|
9647
9635
|
article: article,
|
|
9648
9636
|
meta: meta,
|
|
@@ -9656,7 +9644,7 @@ var getSerializers = function getSerializers() {
|
|
|
9656
9644
|
articleSeries: function articleSeries(_ref3) {
|
|
9657
9645
|
var node = _ref3.node;
|
|
9658
9646
|
|
|
9659
|
-
return
|
|
9647
|
+
return React.createElement(ArticleSeries, {
|
|
9660
9648
|
nodes: node,
|
|
9661
9649
|
accountIDs: videoAccountIDs || {},
|
|
9662
9650
|
pageview: pageview,
|
|
@@ -9669,61 +9657,61 @@ var getSerializers = function getSerializers() {
|
|
|
9669
9657
|
figure: function figure(_ref4) {
|
|
9670
9658
|
var node = _ref4.node;
|
|
9671
9659
|
|
|
9672
|
-
return
|
|
9660
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9673
9661
|
},
|
|
9674
9662
|
multifigure: function multifigure(_ref5) {
|
|
9675
9663
|
var node = _ref5.node;
|
|
9676
9664
|
|
|
9677
|
-
return
|
|
9665
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9678
9666
|
},
|
|
9679
9667
|
slideshow: function slideshow(_ref6) {
|
|
9680
9668
|
var node = _ref6.node;
|
|
9681
9669
|
var slides = node.slides;
|
|
9682
9670
|
|
|
9683
|
-
return
|
|
9671
|
+
return React.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
9684
9672
|
},
|
|
9685
9673
|
sidebar: function sidebar(_ref7) {
|
|
9686
9674
|
var node = _ref7.node;
|
|
9687
9675
|
var caption = node.caption,
|
|
9688
9676
|
content = node.content;
|
|
9689
9677
|
|
|
9690
|
-
return
|
|
9678
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9691
9679
|
},
|
|
9692
9680
|
datatable: function datatable(_ref8) {
|
|
9693
9681
|
var node = _ref8.node;
|
|
9694
9682
|
var table = node.table;
|
|
9695
9683
|
|
|
9696
|
-
return
|
|
9684
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9697
9685
|
},
|
|
9698
9686
|
media: function media(_ref9) {
|
|
9699
9687
|
var node = _ref9.node;
|
|
9700
9688
|
|
|
9701
|
-
return
|
|
9689
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9702
9690
|
},
|
|
9703
9691
|
iframe: function iframe(_ref10) {
|
|
9704
9692
|
var node = _ref10.node;
|
|
9705
9693
|
|
|
9706
|
-
return
|
|
9694
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9707
9695
|
},
|
|
9708
9696
|
video: function video(_ref11) {
|
|
9709
9697
|
var node = _ref11.node;
|
|
9710
9698
|
|
|
9711
|
-
return
|
|
9699
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9712
9700
|
},
|
|
9713
9701
|
audio: function audio(_ref12) {
|
|
9714
9702
|
var node = _ref12.node;
|
|
9715
9703
|
|
|
9716
|
-
return
|
|
9704
|
+
return React.createElement(Audio, { node: node });
|
|
9717
9705
|
},
|
|
9718
9706
|
poll: function poll(_ref13) {
|
|
9719
9707
|
var node = _ref13.node;
|
|
9720
9708
|
|
|
9721
|
-
return
|
|
9709
|
+
return React.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9722
9710
|
},
|
|
9723
9711
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9724
9712
|
var node = _ref14.node;
|
|
9725
9713
|
|
|
9726
|
-
return
|
|
9714
|
+
return React.createElement(Poll, {
|
|
9727
9715
|
node: node,
|
|
9728
9716
|
client: client,
|
|
9729
9717
|
pageview: pageview,
|
|
@@ -9737,35 +9725,35 @@ var getSerializers = function getSerializers() {
|
|
|
9737
9725
|
var node = _ref15.node;
|
|
9738
9726
|
var quizzes = node.quizzes;
|
|
9739
9727
|
|
|
9740
|
-
return
|
|
9728
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9741
9729
|
},
|
|
9742
9730
|
leads: function leads(_ref16) {
|
|
9743
9731
|
var node = _ref16.node;
|
|
9744
9732
|
var leadID = node.leadID;
|
|
9745
9733
|
|
|
9746
9734
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9747
|
-
return
|
|
9735
|
+
return React.createElement(Leads, { url: url });
|
|
9748
9736
|
},
|
|
9749
9737
|
slideshows: function slideshows(_ref17) {
|
|
9750
9738
|
var node = _ref17.node;
|
|
9751
9739
|
|
|
9752
|
-
return
|
|
9740
|
+
return React.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9753
9741
|
},
|
|
9754
9742
|
nativeAd: function nativeAd(_ref18) {
|
|
9755
9743
|
var node = _ref18.node;
|
|
9756
9744
|
|
|
9757
|
-
return
|
|
9745
|
+
return React.createElement(NativeAd, { node: node });
|
|
9758
9746
|
},
|
|
9759
9747
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9760
9748
|
var node = _ref19.node;
|
|
9761
9749
|
|
|
9762
|
-
return
|
|
9750
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9763
9751
|
},
|
|
9764
9752
|
hrtag: function hrtag() {
|
|
9765
|
-
return
|
|
9753
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9766
9754
|
},
|
|
9767
9755
|
brtag: function brtag() {
|
|
9768
|
-
return
|
|
9756
|
+
return React.createElement('br', { className: 'line-break' });
|
|
9769
9757
|
},
|
|
9770
9758
|
formstack: function formstack(_ref20) {
|
|
9771
9759
|
var node = _ref20.node;
|
|
@@ -9773,33 +9761,33 @@ var getSerializers = function getSerializers() {
|
|
|
9773
9761
|
Caption = node.Caption,
|
|
9774
9762
|
needSegmentSupport = node.needSegmentSupport;
|
|
9775
9763
|
|
|
9776
|
-
return
|
|
9764
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9777
9765
|
},
|
|
9778
9766
|
formassembly: function formassembly(_ref21) {
|
|
9779
9767
|
var node = _ref21.node;
|
|
9780
9768
|
|
|
9781
|
-
return
|
|
9769
|
+
return React.createElement(FormAssembly, { node: node });
|
|
9782
9770
|
},
|
|
9783
9771
|
multimedia: function multimedia(_ref22) {
|
|
9784
9772
|
var node = _ref22.node;
|
|
9785
9773
|
|
|
9786
|
-
return
|
|
9774
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
9787
9775
|
},
|
|
9788
9776
|
blockTable: function blockTable(_ref23) {
|
|
9789
9777
|
var node = _ref23.node;
|
|
9790
|
-
return
|
|
9778
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9791
9779
|
}
|
|
9792
9780
|
},
|
|
9793
9781
|
marks: {
|
|
9794
9782
|
superscript: function superscript(props) {
|
|
9795
|
-
return
|
|
9783
|
+
return React.createElement(
|
|
9796
9784
|
'sup',
|
|
9797
9785
|
null,
|
|
9798
9786
|
props.children
|
|
9799
9787
|
);
|
|
9800
9788
|
},
|
|
9801
9789
|
subscript: function subscript(props) {
|
|
9802
|
-
return
|
|
9790
|
+
return React.createElement(
|
|
9803
9791
|
'sub',
|
|
9804
9792
|
null,
|
|
9805
9793
|
props.children
|
|
@@ -9815,7 +9803,7 @@ var getSerializers = function getSerializers() {
|
|
|
9815
9803
|
if (href && href.charAt(0) === '#') {
|
|
9816
9804
|
var elementId = href.slice(1);
|
|
9817
9805
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9818
|
-
return
|
|
9806
|
+
return React.createElement(
|
|
9819
9807
|
'a',
|
|
9820
9808
|
{ onClick: function onClick() {
|
|
9821
9809
|
return ScrollToElement(elementId);
|
|
@@ -9825,7 +9813,7 @@ var getSerializers = function getSerializers() {
|
|
|
9825
9813
|
}
|
|
9826
9814
|
|
|
9827
9815
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9828
|
-
return
|
|
9816
|
+
return React.createElement(
|
|
9829
9817
|
'a',
|
|
9830
9818
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9831
9819
|
children
|
|
@@ -9833,7 +9821,7 @@ var getSerializers = function getSerializers() {
|
|
|
9833
9821
|
},
|
|
9834
9822
|
alignleft: function alignleft(_ref24) {
|
|
9835
9823
|
var children = _ref24.children;
|
|
9836
|
-
return
|
|
9824
|
+
return React.createElement(
|
|
9837
9825
|
'div',
|
|
9838
9826
|
{ style: { textAlign: 'left' } },
|
|
9839
9827
|
children
|
|
@@ -9841,7 +9829,7 @@ var getSerializers = function getSerializers() {
|
|
|
9841
9829
|
},
|
|
9842
9830
|
alignright: function alignright(_ref25) {
|
|
9843
9831
|
var children = _ref25.children;
|
|
9844
|
-
return
|
|
9832
|
+
return React.createElement(
|
|
9845
9833
|
'div',
|
|
9846
9834
|
{ style: { textAlign: 'right' } },
|
|
9847
9835
|
children
|
|
@@ -9849,7 +9837,7 @@ var getSerializers = function getSerializers() {
|
|
|
9849
9837
|
},
|
|
9850
9838
|
aligncenter: function aligncenter(_ref26) {
|
|
9851
9839
|
var children = _ref26.children;
|
|
9852
|
-
return
|
|
9840
|
+
return React.createElement(
|
|
9853
9841
|
'div',
|
|
9854
9842
|
{ style: { textAlign: 'center' } },
|
|
9855
9843
|
children
|
|
@@ -9857,7 +9845,7 @@ var getSerializers = function getSerializers() {
|
|
|
9857
9845
|
},
|
|
9858
9846
|
alignjustify: function alignjustify(_ref27) {
|
|
9859
9847
|
var children = _ref27.children;
|
|
9860
|
-
return
|
|
9848
|
+
return React.createElement(
|
|
9861
9849
|
'div',
|
|
9862
9850
|
{ style: { textAlign: 'justify' } },
|
|
9863
9851
|
children
|
|
@@ -9867,7 +9855,7 @@ var getSerializers = function getSerializers() {
|
|
|
9867
9855
|
var children = props.children,
|
|
9868
9856
|
color = props.mark.color;
|
|
9869
9857
|
|
|
9870
|
-
return
|
|
9858
|
+
return React.createElement(
|
|
9871
9859
|
'span',
|
|
9872
9860
|
{ style: { color: color ? color.hex : null } },
|
|
9873
9861
|
children
|