@mjhls/mjh-framework 1.0.815 → 1.0.816-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +30 -30
- package/dist/cjs/AD300x250x600.js +30 -30
- package/dist/cjs/AD728x90.js +33 -33
- package/dist/cjs/ADFloatingFooter.js +32 -32
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +32 -32
- package/dist/cjs/{ADInfeed-7cf51090.js → ADInfeed-7c4b33b3.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +32 -32
- package/dist/cjs/ADSponsoredResources.js +32 -32
- package/dist/cjs/ADWebcast.js +32 -32
- package/dist/cjs/ADWelcome.js +33 -33
- package/dist/cjs/{ADlgInfeed-bf24708d.js → ADlgInfeed-563e0168.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +35 -35
- package/dist/cjs/AdSlotsProvider.js +912 -40
- package/dist/cjs/AlgoliaSearch.js +14122 -60
- package/dist/cjs/AlphabeticList.js +25 -26
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +58 -58
- package/dist/cjs/ArticleSeriesLandingPage.js +41 -41
- package/dist/cjs/ArticleSeriesListing.js +61 -61
- package/dist/cjs/Auth.js +662 -686
- package/dist/cjs/AuthWrapper.js +268 -310
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +84 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +33 -36
- package/dist/cjs/Column3.js +59 -61
- package/dist/cjs/ConferenceArticleCard.js +23 -24
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +96 -99
- package/dist/cjs/DeckQueue.js +89 -92
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-26baccf1.js} +34 -34
- package/dist/cjs/EventsDeck.js +135 -142
- package/dist/cjs/ExternalResources.js +80 -80
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +278 -184
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +58 -59
- package/dist/cjs/HamMagazine.js +131 -136
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +71 -71
- package/dist/cjs/HorizontalHero.js +26 -27
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +71 -76
- package/dist/cjs/IssueLanding.js +66 -66
- package/dist/cjs/LeftNav.js +39 -40
- package/dist/cjs/MasterDeck.js +72 -72
- package/dist/cjs/MediaSeriesLanding.js +1092 -1183
- package/dist/cjs/NavDvm.js +74 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +138 -143
- package/dist/cjs/NavNative.js +130 -138
- package/dist/cjs/NavNormal.js +48 -53
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +110 -110
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +42 -42
- package/dist/cjs/PubToc.js +15 -16
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +108 -112
- package/dist/cjs/QueueDeckExpanded.js +295 -294
- package/dist/cjs/RecentNews.js +24 -25
- package/dist/cjs/RelatedContent.js +24 -25
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +39 -38
- package/dist/cjs/{SeriesSlider-2db54929.js → SeriesSlider-4abb21b4.js} +37 -38
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -37
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-cea213aa.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +58 -63
- package/dist/cjs/TaxonomyDescription.js +55 -55
- package/dist/cjs/TemplateNormal.js +76 -76
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +30 -31
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoProgramLandingPage.js +73 -76
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +50 -50
- package/dist/cjs/VideoSeriesListing.js +78 -78
- package/dist/cjs/View.js +262 -264
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +62 -63
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-29bdbc6d.js → extends-0a918631.js} +7 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +12 -425
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +45 -44
- package/dist/cjs/{getTargeting-a100d6e5.js → getTargeting-021d644c.js} +3 -3
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-0e4427c8.js → index-98e01cb9.js} +13 -479
- package/dist/cjs/{index-70971c54.js → index-a8c4e3fd.js} +995 -1018
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/index-e2e62963.js +89 -0
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
- package/dist/cjs/{index.esm-9225638f.js → index.esm-66ffa47a.js} +10 -5
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
- package/dist/cjs/index.js +163 -166
- package/dist/cjs/{inherits-c2065b95.js → inherits-9953db94.js} +22 -22
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +24 -23
- package/dist/esm/AD300x250x600.js +24 -23
- package/dist/esm/AD728x90.js +27 -26
- package/dist/esm/ADFloatingFooter.js +23 -22
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +23 -22
- package/dist/esm/{ADInfeed-f7d00a9a.js → ADInfeed-31055afd.js} +6 -6
- package/dist/esm/ADSkyscraper.js +23 -22
- package/dist/esm/ADSponsoredResources.js +23 -22
- package/dist/esm/ADWebcast.js +23 -22
- package/dist/esm/ADWelcome.js +20 -19
- package/dist/esm/{ADlgInfeed-db64f46d.js → ADlgInfeed-dcb27a6c.js} +4 -4
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +24 -23
- package/dist/esm/AdSlotsProvider.js +911 -38
- package/dist/esm/AlgoliaSearch.js +14091 -28
- package/dist/esm/AlphabeticList.js +10 -10
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +49 -48
- package/dist/esm/ArticleSeriesLandingPage.js +33 -32
- package/dist/esm/ArticleSeriesListing.js +34 -33
- package/dist/esm/Auth.js +575 -595
- package/dist/esm/AuthWrapper.js +246 -287
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-34b16174.js} +1 -1
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-e9b4ddcf.js} +34 -34
- package/dist/esm/Breadcrumbs.js +7 -7
- package/dist/esm/CMEDeck.js +25 -24
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +21 -21
- package/dist/esm/Column3.js +39 -38
- package/dist/esm/ConferenceArticleCard.js +7 -7
- package/dist/esm/DeckContent.js +49 -48
- package/dist/esm/DeckQueue.js +48 -47
- package/dist/esm/{Dfp-be030f2a.js → Dfp-b7236041.js} +15 -14
- package/dist/esm/EventsDeck.js +50 -50
- package/dist/esm/ExternalResources.js +48 -47
- package/dist/esm/Feature.js +4 -4
- package/dist/esm/ForbesHero.js +11 -11
- package/dist/esm/GridContent.js +180 -82
- package/dist/esm/GridHero.js +12 -12
- package/dist/esm/GroupDeck.js +13 -13
- package/dist/esm/HamMagazine.js +29 -29
- package/dist/esm/Hero.js +3 -3
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +46 -45
- package/dist/esm/HorizontalHero.js +5 -5
- package/dist/esm/IssueContentDeck.js +26 -26
- package/dist/esm/IssueDeck.js +36 -36
- package/dist/esm/IssueLanding.js +55 -54
- package/dist/esm/LeftNav.js +22 -21
- package/dist/esm/MasterDeck.js +37 -36
- package/dist/esm/MediaSeriesLanding.js +644 -732
- package/dist/esm/NavDvm.js +16 -16
- package/dist/esm/NavMagazine.js +34 -34
- package/dist/esm/NavNative.js +34 -34
- package/dist/esm/NavNormal.js +18 -18
- package/dist/esm/OncliveHero.js +5 -4
- package/dist/esm/OncliveLargeHero.js +12 -12
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +58 -57
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +34 -33
- package/dist/esm/PubToc.js +8 -8
- package/dist/esm/PublicationDeck.js +23 -23
- package/dist/esm/PublicationLanding.js +49 -49
- package/dist/esm/QueueDeckExpanded.js +38 -37
- package/dist/esm/RecentNews.js +6 -6
- package/dist/esm/RelatedContent.js +6 -6
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +8 -8
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +20 -19
- package/dist/esm/{SeriesSlider-c8477bf3.js → SeriesSlider-36be7223.js} +10 -10
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-03c3e869.js} +12 -12
- package/dist/esm/TaxonomyCard.js +24 -24
- package/dist/esm/TaxonomyDescription.js +46 -45
- package/dist/esm/TemplateNormal.js +51 -50
- package/dist/esm/ThumbnailCard.js +6 -6
- package/dist/esm/Ustream.js +14 -14
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoProgramLandingPage.js +53 -52
- package/dist/esm/VideoSeriesCard.js +12 -12
- package/dist/esm/VideoSeriesFilter.js +9 -9
- package/dist/esm/VideoSeriesLandingPage.js +38 -37
- package/dist/esm/VideoSeriesListing.js +35 -34
- package/dist/esm/View.js +92 -90
- package/dist/esm/YahooHero.js +14 -14
- package/dist/esm/YoutubeGroup.js +21 -21
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-fc1c2e29.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-60e0e1c6.js → extends-6f2fcc99.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +12 -425
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -44
- package/dist/esm/{getTargeting-05c216d6.js → getTargeting-82e86707.js} +2 -2
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-5cc7b406.js → index-41a678ea.js} +4 -469
- package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/{index-a30e3b71.js → index-782e414a.js} +616 -632
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
- package/dist/esm/{index.esm-e874e770.js → index.esm-b08f4b04.js} +10 -5
- package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
- package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
- package/dist/esm/index.js +120 -120
- package/dist/esm/{inherits-a41fe93f.js → inherits-cf8dde54.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/index-db3bb315.js +0 -207
- package/dist/esm/main-d4165069.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
|
@@ -1,63 +1,56 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
5
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
|
+
var _toObject = require('./_to-object-329a650b.js');
|
|
7
|
+
var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
8
|
+
var _extends$1 = require('./extends-0a918631.js');
|
|
9
|
+
var inherits$1 = require('./inherits-9953db94.js');
|
|
10
|
+
var _typeof$1 = require('./typeof-725500bc.js');
|
|
3
11
|
var React = require('react');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var index = require('./index-efca863c.js');
|
|
7
|
-
var index$1 = require('./index-0e4427c8.js');
|
|
8
|
-
var Router = require('next/router');
|
|
9
|
-
var index$2 = require('./index-187c967e.js');
|
|
12
|
+
var React__default = _interopDefault(React);
|
|
13
|
+
var index = require('./index-98e01cb9.js');
|
|
10
14
|
var PropTypes = require('prop-types');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
15
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
16
|
+
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
17
|
+
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
18
|
+
var moment = require('./moment-575fe24c.js');
|
|
19
|
+
var Router = require('next/router');
|
|
20
|
+
var Router__default = _interopDefault(Router);
|
|
21
|
+
var index$1 = require('./index-be0c82be.js');
|
|
22
|
+
var index$2 = require('./index-96b3db50.js');
|
|
23
|
+
var main = require('./main-02daeefe.js');
|
|
24
|
+
var entities = require('./entities-310b46ee.js');
|
|
25
|
+
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
14
26
|
var Segment = require('./Segment.js');
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-a195642e.js');
|
|
27
|
+
var Beam = require('./Beam.js');
|
|
28
|
+
var AdSlot = require('./AdSlot.js');
|
|
29
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
30
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
31
|
+
var index$3 = require('./index-187c967e.js');
|
|
21
32
|
var GroupDeck = require('./GroupDeck.js');
|
|
22
|
-
var
|
|
33
|
+
var reactBootstrap = require('react-bootstrap');
|
|
34
|
+
var index_esm = require('./index.esm-90433435.js');
|
|
35
|
+
var util = require('./util-f2c1b65b.js');
|
|
36
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
37
|
+
var Head = _interopDefault(require('next/head'));
|
|
23
38
|
var SocialShare = require('./SocialShare.js');
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
var
|
|
29
|
-
var entities = require('./entities-3f9d0f2f.js');
|
|
30
|
-
var AdSlot = require('./AdSlot.js');
|
|
31
|
-
var Row = require('react-bootstrap/Row');
|
|
32
|
-
var Col = require('react-bootstrap/Col');
|
|
33
|
-
var Head = require('next/head');
|
|
34
|
-
var inherits = require('./inherits-c2065b95.js');
|
|
35
|
-
var index_esm = require('./index.esm-00a6aade.js');
|
|
36
|
-
var Figure$1 = require('react-bootstrap/Figure');
|
|
37
|
-
|
|
38
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
39
|
-
|
|
40
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
41
|
-
var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
|
|
42
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
43
|
-
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
44
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
45
|
-
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
|
|
46
|
-
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);
|
|
47
|
-
var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
|
|
48
|
-
var Figure__default = /*#__PURE__*/_interopDefaultLegacy(Figure$1);
|
|
49
|
-
|
|
50
|
-
var urlFor$4 = function urlFor(source, builder) {
|
|
39
|
+
var _objectToArray = require('./_object-to-array-5762f850.js');
|
|
40
|
+
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
41
|
+
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
42
|
+
|
|
43
|
+
var urlFor = function urlFor(source, builder) {
|
|
51
44
|
return builder.image(source).auto('format');
|
|
52
45
|
};
|
|
53
46
|
|
|
54
47
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
55
48
|
var pageNumber = selectedIndex + 1;
|
|
56
49
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
57
|
-
Router__default
|
|
50
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
58
51
|
};
|
|
59
52
|
|
|
60
|
-
var Slideshow
|
|
53
|
+
var Slideshow = function Slideshow(_ref) {
|
|
61
54
|
var slides = _ref.slides,
|
|
62
55
|
client = _ref.client,
|
|
63
56
|
pageview = _ref.pageview;
|
|
@@ -69,7 +62,7 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
69
62
|
carouselIndex = _useState2[0],
|
|
70
63
|
setCarouselIndex = _useState2[1];
|
|
71
64
|
|
|
72
|
-
var builder = index.imageUrlBuilder(client);
|
|
65
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
73
66
|
|
|
74
67
|
React.useEffect(function () {
|
|
75
68
|
var itemArr = router.asPath.split('?page=');
|
|
@@ -82,24 +75,24 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
82
75
|
}, [router]);
|
|
83
76
|
|
|
84
77
|
React.useEffect(function () {
|
|
85
|
-
index
|
|
78
|
+
index.lib_3.refresh();
|
|
86
79
|
if (pageview) pageview(router.asPath);
|
|
87
80
|
}, [router]);
|
|
88
81
|
|
|
89
|
-
return React__default
|
|
82
|
+
return React__default.createElement(
|
|
90
83
|
'div',
|
|
91
84
|
{ className: 'mt-3 mb-3' },
|
|
92
|
-
React__default
|
|
85
|
+
React__default.createElement(
|
|
93
86
|
reactBootstrap.Carousel,
|
|
94
87
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
95
88
|
return onChangeSlide(selectedIndex, router);
|
|
96
89
|
}, interval: null },
|
|
97
90
|
slides && slides.map(function (slide) {
|
|
98
|
-
return React__default
|
|
91
|
+
return React__default.createElement(
|
|
99
92
|
reactBootstrap.Carousel.Item,
|
|
100
93
|
{ key: slide._key },
|
|
101
|
-
React__default
|
|
102
|
-
slide.caption && React__default
|
|
94
|
+
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
95
|
+
slide.caption && React__default.createElement(
|
|
103
96
|
'p',
|
|
104
97
|
{ className: 'p-2' },
|
|
105
98
|
slide.caption
|
|
@@ -110,18 +103,21 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
110
103
|
);
|
|
111
104
|
};
|
|
112
105
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
106
|
+
var isArray = Array.isArray;
|
|
107
|
+
var keyList = Object.keys;
|
|
108
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
116
109
|
|
|
117
110
|
var fastDeepEqual = function equal(a, b) {
|
|
118
111
|
if (a === b) return true;
|
|
119
112
|
|
|
120
113
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
121
|
-
|
|
114
|
+
var arrA = isArray(a)
|
|
115
|
+
, arrB = isArray(b)
|
|
116
|
+
, i
|
|
117
|
+
, length
|
|
118
|
+
, key;
|
|
122
119
|
|
|
123
|
-
|
|
124
|
-
if (Array.isArray(a)) {
|
|
120
|
+
if (arrA && arrB) {
|
|
125
121
|
length = a.length;
|
|
126
122
|
if (length != b.length) return false;
|
|
127
123
|
for (i = length; i-- !== 0;)
|
|
@@ -129,29 +125,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
129
125
|
return true;
|
|
130
126
|
}
|
|
131
127
|
|
|
128
|
+
if (arrA != arrB) return false;
|
|
132
129
|
|
|
130
|
+
var dateA = a instanceof Date
|
|
131
|
+
, dateB = b instanceof Date;
|
|
132
|
+
if (dateA != dateB) return false;
|
|
133
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
133
134
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
if (
|
|
135
|
+
var regexpA = a instanceof RegExp
|
|
136
|
+
, regexpB = b instanceof RegExp;
|
|
137
|
+
if (regexpA != regexpB) return false;
|
|
138
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
137
139
|
|
|
138
|
-
keys =
|
|
140
|
+
var keys = keyList(a);
|
|
139
141
|
length = keys.length;
|
|
140
|
-
|
|
142
|
+
|
|
143
|
+
if (length !== keyList(b).length)
|
|
144
|
+
return false;
|
|
141
145
|
|
|
142
146
|
for (i = length; i-- !== 0;)
|
|
143
|
-
if (!
|
|
147
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
144
148
|
|
|
145
149
|
for (i = length; i-- !== 0;) {
|
|
146
|
-
|
|
147
|
-
|
|
150
|
+
key = keys[i];
|
|
148
151
|
if (!equal(a[key], b[key])) return false;
|
|
149
152
|
}
|
|
150
153
|
|
|
151
154
|
return true;
|
|
152
155
|
}
|
|
153
156
|
|
|
154
|
-
// true if both NaN, false otherwise
|
|
155
157
|
return a!==a && b!==b;
|
|
156
158
|
};
|
|
157
159
|
|
|
@@ -689,14 +691,14 @@ function coerce(val) {
|
|
|
689
691
|
return val;
|
|
690
692
|
}
|
|
691
693
|
});
|
|
692
|
-
debug.coerce;
|
|
693
|
-
debug.disable;
|
|
694
|
-
debug.enable;
|
|
695
|
-
debug.enabled;
|
|
696
|
-
debug.humanize;
|
|
697
|
-
debug.names;
|
|
698
|
-
debug.skips;
|
|
699
|
-
debug.formatters;
|
|
694
|
+
var debug_1 = debug.coerce;
|
|
695
|
+
var debug_2 = debug.disable;
|
|
696
|
+
var debug_3 = debug.enable;
|
|
697
|
+
var debug_4 = debug.enabled;
|
|
698
|
+
var debug_5 = debug.humanize;
|
|
699
|
+
var debug_6 = debug.names;
|
|
700
|
+
var debug_7 = debug.skips;
|
|
701
|
+
var debug_8 = debug.formatters;
|
|
700
702
|
|
|
701
703
|
var browser = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
702
704
|
/**
|
|
@@ -885,13 +887,13 @@ function localstorage() {
|
|
|
885
887
|
} catch (e) {}
|
|
886
888
|
}
|
|
887
889
|
});
|
|
888
|
-
browser.log;
|
|
889
|
-
browser.formatArgs;
|
|
890
|
-
browser.save;
|
|
891
|
-
browser.load;
|
|
892
|
-
browser.useColors;
|
|
893
|
-
browser.storage;
|
|
894
|
-
browser.colors;
|
|
890
|
+
var browser_1 = browser.log;
|
|
891
|
+
var browser_2 = browser.formatArgs;
|
|
892
|
+
var browser_3 = browser.save;
|
|
893
|
+
var browser_4 = browser.load;
|
|
894
|
+
var browser_5 = browser.useColors;
|
|
895
|
+
var browser_6 = browser.storage;
|
|
896
|
+
var browser_7 = browser.colors;
|
|
895
897
|
|
|
896
898
|
// MIT lisence
|
|
897
899
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1166,14 +1168,14 @@ function init (debug) {
|
|
|
1166
1168
|
|
|
1167
1169
|
exports.enable(load());
|
|
1168
1170
|
});
|
|
1169
|
-
node.init;
|
|
1170
|
-
node.log;
|
|
1171
|
-
node.formatArgs;
|
|
1172
|
-
node.save;
|
|
1173
|
-
node.load;
|
|
1174
|
-
node.useColors;
|
|
1175
|
-
node.colors;
|
|
1176
|
-
node.inspectOpts;
|
|
1171
|
+
var node_1 = node.init;
|
|
1172
|
+
var node_2 = node.log;
|
|
1173
|
+
var node_3 = node.formatArgs;
|
|
1174
|
+
var node_4 = node.save;
|
|
1175
|
+
var node_5 = node.load;
|
|
1176
|
+
var node_6 = node.useColors;
|
|
1177
|
+
var node_7 = node.colors;
|
|
1178
|
+
var node_8 = node.inspectOpts;
|
|
1177
1179
|
|
|
1178
1180
|
var src = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
1179
1181
|
/**
|
|
@@ -1574,239 +1576,199 @@ module.exports = exports['default'];
|
|
|
1574
1576
|
|
|
1575
1577
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1576
1578
|
|
|
1577
|
-
function
|
|
1578
|
-
|
|
1579
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1580
|
-
|
|
1581
|
-
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); } }
|
|
1582
|
-
|
|
1583
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1584
|
-
|
|
1585
|
-
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); }
|
|
1586
|
-
|
|
1587
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1579
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1588
1580
|
|
|
1589
|
-
function
|
|
1581
|
+
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; };
|
|
1590
1582
|
|
|
1591
|
-
function
|
|
1592
|
-
|
|
1593
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1594
|
-
|
|
1595
|
-
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; } }
|
|
1596
|
-
|
|
1597
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1583
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1598
1584
|
|
|
1599
|
-
function
|
|
1585
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1600
1586
|
|
|
1601
|
-
function
|
|
1587
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1602
1588
|
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
* @param {Object}
|
|
1608
|
-
* @param {Object} props
|
|
1589
|
+
/**
|
|
1590
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1591
|
+
*
|
|
1592
|
+
* @param {Object} prevProps
|
|
1593
|
+
* @param {Object} props
|
|
1609
1594
|
*/
|
|
1610
|
-
|
|
1611
1595
|
function shouldUpdateVideo(prevProps, props) {
|
|
1612
1596
|
// A changing video should always trigger an update
|
|
1613
1597
|
if (prevProps.videoId !== props.videoId) {
|
|
1614
1598
|
return true;
|
|
1615
|
-
}
|
|
1616
|
-
// update.
|
|
1617
|
-
|
|
1599
|
+
}
|
|
1618
1600
|
|
|
1601
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1602
|
+
// update.
|
|
1619
1603
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1620
1604
|
var vars = props.opts.playerVars || {};
|
|
1605
|
+
|
|
1621
1606
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1622
1607
|
}
|
|
1623
|
-
/**
|
|
1624
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1625
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1626
|
-
* player reset is necessary.
|
|
1627
|
-
*
|
|
1628
|
-
* @param {Object} opts
|
|
1629
|
-
*/
|
|
1630
|
-
|
|
1631
1608
|
|
|
1609
|
+
/**
|
|
1610
|
+
* Neutralise 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
|
|
1615
|
+
*/
|
|
1632
1616
|
function filterResetOptions(opts) {
|
|
1633
|
-
return
|
|
1634
|
-
playerVars:
|
|
1617
|
+
return _extends({}, opts, {
|
|
1618
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1635
1619
|
autoplay: 0,
|
|
1636
1620
|
start: 0,
|
|
1637
1621
|
end: 0
|
|
1638
|
-
}
|
|
1622
|
+
})
|
|
1639
1623
|
});
|
|
1640
1624
|
}
|
|
1641
|
-
/**
|
|
1642
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1643
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1644
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1645
|
-
* those.
|
|
1646
|
-
*
|
|
1647
|
-
* @param {Object} prevProps
|
|
1648
|
-
* @param {Object} props
|
|
1649
|
-
*/
|
|
1650
|
-
|
|
1651
1625
|
|
|
1626
|
+
/**
|
|
1627
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1628
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1629
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1630
|
+
* those.
|
|
1631
|
+
*
|
|
1632
|
+
* @param {Object} prevProps
|
|
1633
|
+
* @param {Object} props
|
|
1634
|
+
*/
|
|
1652
1635
|
function shouldResetPlayer(prevProps, props) {
|
|
1653
1636
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1654
1637
|
}
|
|
1655
|
-
/**
|
|
1656
|
-
* Check whether a props change should result in an id or className update.
|
|
1657
|
-
*
|
|
1658
|
-
* @param {Object} prevProps
|
|
1659
|
-
* @param {Object} props
|
|
1660
|
-
*/
|
|
1661
|
-
|
|
1662
1638
|
|
|
1639
|
+
/**
|
|
1640
|
+
* Check whether a props change should result in an id or className update.
|
|
1641
|
+
*
|
|
1642
|
+
* @param {Object} prevProps
|
|
1643
|
+
* @param {Object} props
|
|
1644
|
+
*/
|
|
1663
1645
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1664
1646
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1665
1647
|
}
|
|
1666
1648
|
|
|
1667
|
-
var YouTube =
|
|
1649
|
+
var YouTube = function (_React$Component) {
|
|
1668
1650
|
_inherits(YouTube, _React$Component);
|
|
1669
1651
|
|
|
1670
|
-
var _super = _createSuper(YouTube);
|
|
1671
|
-
|
|
1672
|
-
/**
|
|
1673
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1674
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1675
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1676
|
-
*/
|
|
1677
1652
|
function YouTube(props) {
|
|
1678
|
-
var _this;
|
|
1679
|
-
|
|
1680
1653
|
_classCallCheck(this, YouTube);
|
|
1681
1654
|
|
|
1682
|
-
_this =
|
|
1655
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1683
1656
|
|
|
1684
|
-
|
|
1657
|
+
_this.onPlayerReady = function (event) {
|
|
1685
1658
|
return _this.props.onReady(event);
|
|
1686
|
-
}
|
|
1659
|
+
};
|
|
1687
1660
|
|
|
1688
|
-
|
|
1661
|
+
_this.onPlayerError = function (event) {
|
|
1689
1662
|
return _this.props.onError(event);
|
|
1690
|
-
}
|
|
1663
|
+
};
|
|
1691
1664
|
|
|
1692
|
-
|
|
1665
|
+
_this.onPlayerStateChange = function (event) {
|
|
1693
1666
|
_this.props.onStateChange(event);
|
|
1694
|
-
|
|
1695
1667
|
switch (event.data) {
|
|
1668
|
+
|
|
1696
1669
|
case YouTube.PlayerState.ENDED:
|
|
1697
1670
|
_this.props.onEnd(event);
|
|
1698
|
-
|
|
1699
1671
|
break;
|
|
1700
1672
|
|
|
1701
1673
|
case YouTube.PlayerState.PLAYING:
|
|
1702
1674
|
_this.props.onPlay(event);
|
|
1703
|
-
|
|
1704
1675
|
break;
|
|
1705
1676
|
|
|
1706
1677
|
case YouTube.PlayerState.PAUSED:
|
|
1707
1678
|
_this.props.onPause(event);
|
|
1708
|
-
|
|
1709
1679
|
break;
|
|
1710
1680
|
}
|
|
1711
|
-
}
|
|
1681
|
+
};
|
|
1712
1682
|
|
|
1713
|
-
|
|
1683
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1714
1684
|
return _this.props.onPlaybackRateChange(event);
|
|
1715
|
-
}
|
|
1685
|
+
};
|
|
1716
1686
|
|
|
1717
|
-
|
|
1687
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1718
1688
|
return _this.props.onPlaybackQualityChange(event);
|
|
1719
|
-
}
|
|
1689
|
+
};
|
|
1720
1690
|
|
|
1721
|
-
|
|
1691
|
+
_this.createPlayer = function () {
|
|
1722
1692
|
// do not attempt to create a player server-side, it won't work
|
|
1723
|
-
if (typeof document === 'undefined') return;
|
|
1724
|
-
|
|
1725
|
-
var playerOpts =
|
|
1693
|
+
if (typeof document === 'undefined') return;
|
|
1694
|
+
// create player
|
|
1695
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1726
1696
|
// preload the `videoId` video if one is already given
|
|
1727
1697
|
videoId: _this.props.videoId
|
|
1728
1698
|
});
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1699
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1700
|
+
// attach event handlers
|
|
1732
1701
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1733
|
-
|
|
1734
1702
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1735
|
-
|
|
1736
1703
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1737
|
-
|
|
1738
1704
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1739
|
-
|
|
1740
1705
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1741
|
-
}
|
|
1706
|
+
};
|
|
1742
1707
|
|
|
1743
|
-
|
|
1708
|
+
_this.resetPlayer = function () {
|
|
1744
1709
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1745
|
-
}
|
|
1710
|
+
};
|
|
1746
1711
|
|
|
1747
|
-
|
|
1712
|
+
_this.updatePlayer = function () {
|
|
1748
1713
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1749
1714
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1750
1715
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1751
1716
|
});
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1755
|
-
return _this.internalPlayer;
|
|
1756
|
-
});
|
|
1717
|
+
};
|
|
1757
1718
|
|
|
1758
|
-
|
|
1719
|
+
_this.updateVideo = function () {
|
|
1759
1720
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1760
1721
|
_this.internalPlayer.stopVideo();
|
|
1761
|
-
|
|
1762
1722
|
return;
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1723
|
+
}
|
|
1765
1724
|
|
|
1725
|
+
// set queueing options
|
|
1766
1726
|
var autoplay = false;
|
|
1767
1727
|
var opts = {
|
|
1768
1728
|
videoId: _this.props.videoId
|
|
1769
1729
|
};
|
|
1770
|
-
|
|
1771
1730
|
if ('playerVars' in _this.props.opts) {
|
|
1772
1731
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1773
|
-
|
|
1774
1732
|
if ('start' in _this.props.opts.playerVars) {
|
|
1775
1733
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1776
1734
|
}
|
|
1777
|
-
|
|
1778
1735
|
if ('end' in _this.props.opts.playerVars) {
|
|
1779
1736
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1780
1737
|
}
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1738
|
+
}
|
|
1783
1739
|
|
|
1740
|
+
// if autoplay is enabled loadVideoById
|
|
1784
1741
|
if (autoplay) {
|
|
1785
1742
|
_this.internalPlayer.loadVideoById(opts);
|
|
1786
|
-
|
|
1787
1743
|
return;
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
|
|
1744
|
+
}
|
|
1745
|
+
// default behaviour just cues the video
|
|
1791
1746
|
_this.internalPlayer.cueVideoById(opts);
|
|
1792
|
-
}
|
|
1747
|
+
};
|
|
1793
1748
|
|
|
1794
|
-
|
|
1749
|
+
_this.refContainer = function (container) {
|
|
1795
1750
|
_this.container = container;
|
|
1796
|
-
}
|
|
1751
|
+
};
|
|
1797
1752
|
|
|
1798
1753
|
_this.container = null;
|
|
1799
1754
|
_this.internalPlayer = null;
|
|
1800
1755
|
return _this;
|
|
1801
1756
|
}
|
|
1802
1757
|
|
|
1758
|
+
/**
|
|
1759
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1760
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1761
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1762
|
+
*/
|
|
1763
|
+
|
|
1764
|
+
|
|
1803
1765
|
_createClass(YouTube, [{
|
|
1804
|
-
key:
|
|
1766
|
+
key: 'componentDidMount',
|
|
1805
1767
|
value: function componentDidMount() {
|
|
1806
1768
|
this.createPlayer();
|
|
1807
1769
|
}
|
|
1808
1770
|
}, {
|
|
1809
|
-
key:
|
|
1771
|
+
key: 'componentDidUpdate',
|
|
1810
1772
|
value: function componentDidUpdate(prevProps) {
|
|
1811
1773
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1812
1774
|
this.updatePlayer();
|
|
@@ -1821,70 +1783,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1821
1783
|
}
|
|
1822
1784
|
}
|
|
1823
1785
|
}, {
|
|
1824
|
-
key:
|
|
1786
|
+
key: 'componentWillUnmount',
|
|
1825
1787
|
value: function componentWillUnmount() {
|
|
1826
|
-
/**
|
|
1827
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1828
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1829
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1830
|
-
* this method isn't quick enough to reset the container element.
|
|
1788
|
+
/**
|
|
1789
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1790
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1791
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1792
|
+
* this method isn't quick enough to reset the container element.
|
|
1831
1793
|
*/
|
|
1832
1794
|
this.internalPlayer.destroy();
|
|
1833
1795
|
}
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
*
|
|
1837
|
-
*
|
|
1838
|
-
*
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1799
|
+
*
|
|
1800
|
+
* @param {Object} event
|
|
1801
|
+
* @param {Object} target - player object
|
|
1802
|
+
*/
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
/**
|
|
1806
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1807
|
+
*
|
|
1808
|
+
* @param {Object} event
|
|
1809
|
+
* @param {Integer} data - error type
|
|
1810
|
+
* @param {Object} target - player object
|
|
1811
|
+
*/
|
|
1812
|
+
|
|
1813
|
+
|
|
1814
|
+
/**
|
|
1815
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1816
|
+
*
|
|
1817
|
+
* @param {Object} event
|
|
1818
|
+
* @param {Integer} data - status change type
|
|
1819
|
+
* @param {Object} target - actual YT player
|
|
1820
|
+
*/
|
|
1821
|
+
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1825
|
+
*
|
|
1826
|
+
* @param {Object} event
|
|
1827
|
+
* @param {Float} data - playback rate
|
|
1828
|
+
* @param {Object} target - actual YT player
|
|
1829
|
+
*/
|
|
1830
|
+
|
|
1831
|
+
|
|
1832
|
+
/**
|
|
1833
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1834
|
+
*
|
|
1835
|
+
* @param {Object} event
|
|
1836
|
+
* @param {String} data - playback quality
|
|
1837
|
+
* @param {Object} target - actual YT player
|
|
1838
|
+
*/
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1843
|
+
*/
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1848
|
+
*/
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1853
|
+
* React should update this automatically but since the Youtube Player API
|
|
1854
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1855
|
+
*/
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1860
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1861
|
+
* Youtube Player API methods to update the video.
|
|
1839
1862
|
*/
|
|
1840
1863
|
|
|
1841
1864
|
}, {
|
|
1842
|
-
key:
|
|
1865
|
+
key: 'render',
|
|
1843
1866
|
value: function render() {
|
|
1844
|
-
return
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
id: this.props.id,
|
|
1848
|
-
|
|
1849
|
-
ref: this.refContainer
|
|
1850
|
-
}));
|
|
1867
|
+
return React__default.createElement(
|
|
1868
|
+
'div',
|
|
1869
|
+
{ className: this.props.containerClassName },
|
|
1870
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1871
|
+
);
|
|
1851
1872
|
}
|
|
1852
1873
|
}]);
|
|
1853
1874
|
|
|
1854
1875
|
return YouTube;
|
|
1855
|
-
}(React__default
|
|
1856
|
-
|
|
1857
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1858
|
-
UNSTARTED: -1,
|
|
1859
|
-
ENDED: 0,
|
|
1860
|
-
PLAYING: 1,
|
|
1861
|
-
PAUSED: 2,
|
|
1862
|
-
BUFFERING: 3,
|
|
1863
|
-
CUED: 5
|
|
1864
|
-
});
|
|
1876
|
+
}(React__default.Component);
|
|
1865
1877
|
|
|
1866
1878
|
YouTube.propTypes = {
|
|
1867
|
-
videoId: PropTypes__default
|
|
1879
|
+
videoId: PropTypes__default.string,
|
|
1880
|
+
|
|
1868
1881
|
// custom ID for player element
|
|
1869
|
-
id: PropTypes__default
|
|
1882
|
+
id: PropTypes__default.string,
|
|
1883
|
+
|
|
1870
1884
|
// custom class name for player element
|
|
1871
|
-
className: PropTypes__default
|
|
1885
|
+
className: PropTypes__default.string,
|
|
1872
1886
|
// custom class name for player container element
|
|
1873
|
-
containerClassName: PropTypes__default
|
|
1887
|
+
containerClassName: PropTypes__default.string,
|
|
1888
|
+
|
|
1874
1889
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1875
|
-
opts: PropTypes__default
|
|
1890
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1891
|
+
|
|
1876
1892
|
// event subscriptions
|
|
1877
|
-
onReady: PropTypes__default
|
|
1878
|
-
onError: PropTypes__default
|
|
1879
|
-
onPlay: PropTypes__default
|
|
1880
|
-
onPause: PropTypes__default
|
|
1881
|
-
onEnd: PropTypes__default
|
|
1882
|
-
onStateChange: PropTypes__default
|
|
1883
|
-
onPlaybackRateChange: PropTypes__default
|
|
1884
|
-
onPlaybackQualityChange: PropTypes__default
|
|
1893
|
+
onReady: PropTypes__default.func,
|
|
1894
|
+
onError: PropTypes__default.func,
|
|
1895
|
+
onPlay: PropTypes__default.func,
|
|
1896
|
+
onPause: PropTypes__default.func,
|
|
1897
|
+
onEnd: PropTypes__default.func,
|
|
1898
|
+
onStateChange: PropTypes__default.func,
|
|
1899
|
+
onPlaybackRateChange: PropTypes__default.func,
|
|
1900
|
+
onPlaybackQualityChange: PropTypes__default.func
|
|
1885
1901
|
};
|
|
1886
1902
|
YouTube.defaultProps = {
|
|
1887
|
-
videoId: null,
|
|
1888
1903
|
id: null,
|
|
1889
1904
|
className: null,
|
|
1890
1905
|
opts: {},
|
|
@@ -1898,12 +1913,20 @@ YouTube.defaultProps = {
|
|
|
1898
1913
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1899
1914
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1900
1915
|
};
|
|
1916
|
+
YouTube.PlayerState = {
|
|
1917
|
+
UNSTARTED: -1,
|
|
1918
|
+
ENDED: 0,
|
|
1919
|
+
PLAYING: 1,
|
|
1920
|
+
PAUSED: 2,
|
|
1921
|
+
BUFFERING: 3,
|
|
1922
|
+
CUED: 5
|
|
1923
|
+
};
|
|
1901
1924
|
|
|
1902
1925
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1903
1926
|
var url = _ref.url,
|
|
1904
1927
|
autoplay = _ref.autoplay;
|
|
1905
1928
|
|
|
1906
|
-
var id = index$
|
|
1929
|
+
var id = index$3.getYoutubeId(url);
|
|
1907
1930
|
|
|
1908
1931
|
var _useState = React.useState(false),
|
|
1909
1932
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -1936,8 +1959,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1936
1959
|
var duration = player.getDuration();
|
|
1937
1960
|
var queue = Math.floor(duration / 10);
|
|
1938
1961
|
var segment = Math.floor(current / queue);
|
|
1939
|
-
Beam.report_beam_video('Ready', main.
|
|
1940
|
-
Segment.report_video_event('Video Ready', main.
|
|
1962
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
|
|
1963
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
1941
1964
|
};
|
|
1942
1965
|
|
|
1943
1966
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1947,8 +1970,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1947
1970
|
var segment = Math.floor(current / queue);
|
|
1948
1971
|
|
|
1949
1972
|
if (!queueProgress.includes(segment)) {
|
|
1950
|
-
Beam.report_beam_video('Segment', main.
|
|
1951
|
-
Segment.report_video_event('Video Segment', main.
|
|
1973
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
|
|
1974
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
1952
1975
|
queueProgress.push(segment);
|
|
1953
1976
|
}
|
|
1954
1977
|
};
|
|
@@ -1961,8 +1984,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1961
1984
|
var queue = Math.floor(duration / 10);
|
|
1962
1985
|
var segment = Math.floor(current / queue);
|
|
1963
1986
|
|
|
1964
|
-
Beam.report_beam_video('Play', main.
|
|
1965
|
-
Segment.report_video_event('Video Play', main.
|
|
1987
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment);
|
|
1988
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
1966
1989
|
|
|
1967
1990
|
if (!playReported) {
|
|
1968
1991
|
setPlayReported(true);
|
|
@@ -1981,8 +2004,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1981
2004
|
var queue = Math.floor(duration / 10);
|
|
1982
2005
|
var segment = Math.floor(current / queue);
|
|
1983
2006
|
|
|
1984
|
-
Beam.report_beam_video('End', main.
|
|
1985
|
-
Segment.report_video_event('Video End', main.
|
|
2007
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment);
|
|
2008
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
1986
2009
|
setEndReported(true);
|
|
1987
2010
|
clearInterval(intervalID);
|
|
1988
2011
|
}
|
|
@@ -1995,15 +2018,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1995
2018
|
var queue = Math.floor(duration / 10);
|
|
1996
2019
|
var segment = Math.floor(current / queue);
|
|
1997
2020
|
|
|
1998
|
-
Beam.report_beam_video('Pause', main.
|
|
1999
|
-
Segment.report_video_event('Video Pause', main.
|
|
2021
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
|
|
2022
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
2000
2023
|
};
|
|
2001
2024
|
|
|
2002
|
-
return React__default
|
|
2025
|
+
return React__default.createElement(
|
|
2003
2026
|
'div',
|
|
2004
2027
|
{ id: 'fluid-video-container' },
|
|
2005
|
-
React__default
|
|
2006
|
-
React__default
|
|
2028
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2029
|
+
React__default.createElement(
|
|
2007
2030
|
'style',
|
|
2008
2031
|
{ jsx: 'true' },
|
|
2009
2032
|
'\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 '
|
|
@@ -2016,20 +2039,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2016
2039
|
content = _ref.content,
|
|
2017
2040
|
getSerializers = _ref.getSerializers;
|
|
2018
2041
|
|
|
2019
|
-
return React__default
|
|
2042
|
+
return React__default.createElement(
|
|
2020
2043
|
'article',
|
|
2021
2044
|
{ className: 'sidebar' },
|
|
2022
|
-
React__default
|
|
2045
|
+
React__default.createElement(
|
|
2023
2046
|
'div',
|
|
2024
2047
|
null,
|
|
2025
|
-
React__default
|
|
2048
|
+
React__default.createElement(
|
|
2026
2049
|
'h3',
|
|
2027
2050
|
null,
|
|
2028
2051
|
caption
|
|
2029
2052
|
),
|
|
2030
|
-
React__default
|
|
2053
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2031
2054
|
),
|
|
2032
|
-
React__default
|
|
2055
|
+
React__default.createElement(
|
|
2033
2056
|
'style',
|
|
2034
2057
|
{ jsx: 'true' },
|
|
2035
2058
|
'\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 '
|
|
@@ -2040,18 +2063,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2040
2063
|
var TableShow = function TableShow(_ref) {
|
|
2041
2064
|
var rows = _ref.rows;
|
|
2042
2065
|
|
|
2043
|
-
return React__default
|
|
2066
|
+
return React__default.createElement(
|
|
2044
2067
|
reactBootstrap.Table,
|
|
2045
2068
|
{ bordered: true, hover: true, responsive: true },
|
|
2046
|
-
React__default
|
|
2069
|
+
React__default.createElement(
|
|
2047
2070
|
'tbody',
|
|
2048
2071
|
null,
|
|
2049
2072
|
rows && rows.map(function (row) {
|
|
2050
|
-
return React__default
|
|
2073
|
+
return React__default.createElement(
|
|
2051
2074
|
'tr',
|
|
2052
2075
|
{ key: row._key },
|
|
2053
2076
|
row.cells && row.cells.map(function (cell, index) {
|
|
2054
|
-
return cell && React__default
|
|
2077
|
+
return cell && React__default.createElement(
|
|
2055
2078
|
'td',
|
|
2056
2079
|
{ key: index },
|
|
2057
2080
|
cell
|
|
@@ -2079,7 +2102,7 @@ var Media = function Media(_ref) {
|
|
|
2079
2102
|
_node$disableTextWrap = node.disableTextWrap,
|
|
2080
2103
|
disableTextWrap = _node$disableTextWrap === undefined ? false : _node$disableTextWrap;
|
|
2081
2104
|
|
|
2082
|
-
var builder = index.imageUrlBuilder(client);
|
|
2105
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
2083
2106
|
|
|
2084
2107
|
var urlFor = function urlFor(source) {
|
|
2085
2108
|
return builder.image(source).auto('format');
|
|
@@ -2154,18 +2177,18 @@ var Media = function Media(_ref) {
|
|
|
2154
2177
|
margin: imageMargin
|
|
2155
2178
|
};
|
|
2156
2179
|
|
|
2157
|
-
return React__default
|
|
2180
|
+
return React__default.createElement(
|
|
2158
2181
|
reactBootstrap.Figure,
|
|
2159
2182
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2160
|
-
React__default
|
|
2183
|
+
React__default.createElement(
|
|
2161
2184
|
'a',
|
|
2162
2185
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2163
|
-
React__default
|
|
2164
|
-
index$
|
|
2186
|
+
React__default.createElement(
|
|
2187
|
+
index$2.LazyLoad,
|
|
2165
2188
|
{ once: true },
|
|
2166
|
-
React__default
|
|
2189
|
+
React__default.createElement(reactBootstrap.Figure.Image, _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2167
2190
|
),
|
|
2168
|
-
caption && React__default
|
|
2191
|
+
caption && React__default.createElement(
|
|
2169
2192
|
reactBootstrap.Figure.Caption,
|
|
2170
2193
|
{ className: 'media-caption' },
|
|
2171
2194
|
caption
|
|
@@ -2173,9 +2196,9 @@ var Media = function Media(_ref) {
|
|
|
2173
2196
|
)
|
|
2174
2197
|
);
|
|
2175
2198
|
} else if (caption && caption !== '') {
|
|
2176
|
-
return React__default
|
|
2199
|
+
return React__default.createElement(
|
|
2177
2200
|
'a',
|
|
2178
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2201
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2179
2202
|
href: uploadDoc.asset.url + '?dl='
|
|
2180
2203
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2181
2204
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2193,10 +2216,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2193
2216
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2194
2217
|
|
|
2195
2218
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2196
|
-
return React__default
|
|
2219
|
+
return React__default.createElement(
|
|
2197
2220
|
'div',
|
|
2198
2221
|
{ className: 'd-block text-center mb-3' },
|
|
2199
|
-
React__default
|
|
2222
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2200
2223
|
);
|
|
2201
2224
|
};
|
|
2202
2225
|
|
|
@@ -2230,8 +2253,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2230
2253
|
var duration = player.duration;
|
|
2231
2254
|
var queue = Math.floor(duration / 10);
|
|
2232
2255
|
var segment = Math.floor(current / queue);
|
|
2233
|
-
Beam.report_beam_video('Ready', main.
|
|
2234
|
-
Segment.report_video_event('Video Ready', main.
|
|
2256
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'MP4');
|
|
2257
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'MP4');
|
|
2235
2258
|
};
|
|
2236
2259
|
|
|
2237
2260
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2240,8 +2263,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2240
2263
|
var queue = Math.floor(duration / 10);
|
|
2241
2264
|
var segment = Math.floor(current / queue);
|
|
2242
2265
|
if (!queueProgress.includes(segment)) {
|
|
2243
|
-
Beam.report_beam_video('Segment', main.
|
|
2244
|
-
Segment.report_video_event('Video Segment', main.
|
|
2266
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'MP4');
|
|
2267
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'MP4');
|
|
2245
2268
|
queueProgress.push(segment);
|
|
2246
2269
|
}
|
|
2247
2270
|
};
|
|
@@ -2253,8 +2276,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2253
2276
|
var duration = player.duration;
|
|
2254
2277
|
var queue = Math.floor(duration / 10);
|
|
2255
2278
|
var segment = Math.floor(current / queue);
|
|
2256
|
-
Beam.report_beam_video('Play', main.
|
|
2257
|
-
Segment.report_video_event('Video Play', main.
|
|
2279
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'MP4');
|
|
2280
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'MP4');
|
|
2258
2281
|
|
|
2259
2282
|
if (!playReported) {
|
|
2260
2283
|
event.persist();
|
|
@@ -2274,8 +2297,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2274
2297
|
var queue = Math.floor(duration / 10);
|
|
2275
2298
|
var segment = Math.floor(current / queue);
|
|
2276
2299
|
|
|
2277
|
-
Beam.report_beam_video('End', main.
|
|
2278
|
-
Segment.report_video_event('Video End', main.
|
|
2300
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment, 'MP4');
|
|
2301
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'MP4');
|
|
2279
2302
|
setEndReported(true);
|
|
2280
2303
|
clearInterval(intervalID);
|
|
2281
2304
|
}
|
|
@@ -2287,14 +2310,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2287
2310
|
var duration = player.duration - current;
|
|
2288
2311
|
var queue = Math.floor(duration / 10);
|
|
2289
2312
|
var segment = Math.floor(current / queue);
|
|
2290
|
-
Beam.report_beam_video('Pause', main.
|
|
2291
|
-
Segment.report_video_event('Video Pause', main.
|
|
2313
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2314
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2292
2315
|
};
|
|
2293
2316
|
|
|
2294
|
-
return React__default
|
|
2317
|
+
return React__default.createElement(
|
|
2295
2318
|
'div',
|
|
2296
2319
|
null,
|
|
2297
|
-
vidLoaded && React__default
|
|
2320
|
+
vidLoaded && React__default.createElement(
|
|
2298
2321
|
'video',
|
|
2299
2322
|
{
|
|
2300
2323
|
poster: thumbnail || '',
|
|
@@ -2312,7 +2335,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2312
2335
|
onPlay: function onPlay(e) {
|
|
2313
2336
|
return handleOnPlay(e);
|
|
2314
2337
|
} },
|
|
2315
|
-
React__default
|
|
2338
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2316
2339
|
'Your browser does not support the video tag.'
|
|
2317
2340
|
)
|
|
2318
2341
|
);
|
|
@@ -2377,8 +2400,8 @@ var Video = function Video(_ref) {
|
|
|
2377
2400
|
player.pause();
|
|
2378
2401
|
}
|
|
2379
2402
|
|
|
2380
|
-
Beam.report_beam_video('Ready', main.
|
|
2381
|
-
Segment.report_video_event('Video Ready', main.
|
|
2403
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2404
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2382
2405
|
});
|
|
2383
2406
|
|
|
2384
2407
|
// play
|
|
@@ -2387,8 +2410,8 @@ var Video = function Video(_ref) {
|
|
|
2387
2410
|
var current = player.currentTime();
|
|
2388
2411
|
var queue = Math.floor(duration / 10);
|
|
2389
2412
|
var segment = Math.floor(current / queue);
|
|
2390
|
-
Beam.report_beam_video('Play', main.
|
|
2391
|
-
Segment.report_video_event('Video Play', main.
|
|
2413
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2414
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2392
2415
|
});
|
|
2393
2416
|
|
|
2394
2417
|
// pause
|
|
@@ -2397,8 +2420,8 @@ var Video = function Video(_ref) {
|
|
|
2397
2420
|
var current = player.currentTime();
|
|
2398
2421
|
var queue = Math.floor(duration / 10);
|
|
2399
2422
|
var segment = Math.floor(current / queue);
|
|
2400
|
-
Beam.report_beam_video('Pause', main.
|
|
2401
|
-
Segment.report_video_event('Video Pause', main.
|
|
2423
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2424
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2402
2425
|
});
|
|
2403
2426
|
|
|
2404
2427
|
// end
|
|
@@ -2407,8 +2430,8 @@ var Video = function Video(_ref) {
|
|
|
2407
2430
|
var current = player.currentTime();
|
|
2408
2431
|
var queue = Math.floor(duration / 10);
|
|
2409
2432
|
var segment = Math.floor(current / queue);
|
|
2410
|
-
Beam.report_beam_video('End', main.
|
|
2411
|
-
Segment.report_video_event('Video End', main.
|
|
2433
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2434
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2412
2435
|
autoplayNextVideo(evt);
|
|
2413
2436
|
});
|
|
2414
2437
|
|
|
@@ -2419,8 +2442,8 @@ var Video = function Video(_ref) {
|
|
|
2419
2442
|
var queue = Math.floor(duration / 10);
|
|
2420
2443
|
var segment = Math.floor(current / queue);
|
|
2421
2444
|
if (!queueProgress.includes(segment)) {
|
|
2422
|
-
Beam.report_beam_video('Segment', main.
|
|
2423
|
-
Segment.report_video_event('Video Segment', main.
|
|
2445
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2446
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2424
2447
|
queueProgress.push(segment);
|
|
2425
2448
|
}
|
|
2426
2449
|
});
|
|
@@ -2431,8 +2454,8 @@ var Video = function Video(_ref) {
|
|
|
2431
2454
|
var id = player.ads.ad.id;
|
|
2432
2455
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2433
2456
|
|
|
2434
|
-
Beam.report_beam_ad('AD Started', main.
|
|
2435
|
-
Segment.report_ad_event('Video Ad Started', main.
|
|
2457
|
+
Beam.report_beam_ad('AD Started', main.main_16, '', '', '', '', '', adType, duration, id);
|
|
2458
|
+
Segment.report_ad_event('Video Ad Started', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2436
2459
|
});
|
|
2437
2460
|
|
|
2438
2461
|
// ad ended
|
|
@@ -2440,60 +2463,60 @@ var Video = function Video(_ref) {
|
|
|
2440
2463
|
var duration = player.ads.ad.duration;
|
|
2441
2464
|
var id = player.ads.ad.id;
|
|
2442
2465
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2443
|
-
Beam.report_beam_ad('AD Ended', main.
|
|
2444
|
-
Segment.report_ad_event('Video Ad Ended', main.
|
|
2466
|
+
Beam.report_beam_ad('AD Ended', main.main_16, '', '', '', '', '', adType, duration, id);
|
|
2467
|
+
Segment.report_ad_event('Video Ad Ended', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2445
2468
|
});
|
|
2446
2469
|
};
|
|
2447
2470
|
|
|
2448
2471
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2449
2472
|
if (videoID) {
|
|
2450
|
-
return React__default
|
|
2473
|
+
return React__default.createElement(
|
|
2451
2474
|
'div',
|
|
2452
2475
|
null,
|
|
2453
|
-
React__default
|
|
2476
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2454
2477
|
onSuccess: onVideoSuccess,
|
|
2455
2478
|
accountId: accountIDs.brightcove.accountId,
|
|
2456
2479
|
videoId: videoID,
|
|
2457
2480
|
playerId: accountIDs.brightcove.playerId,
|
|
2458
2481
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2459
2482
|
}),
|
|
2460
|
-
React__default
|
|
2483
|
+
React__default.createElement(
|
|
2461
2484
|
'style',
|
|
2462
2485
|
{ jsx: 'true' },
|
|
2463
2486
|
'\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 '
|
|
2464
2487
|
)
|
|
2465
2488
|
);
|
|
2466
2489
|
} else if (playlistID) {
|
|
2467
|
-
return React__default
|
|
2490
|
+
return React__default.createElement(
|
|
2468
2491
|
'div',
|
|
2469
2492
|
null,
|
|
2470
|
-
React__default
|
|
2493
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2471
2494
|
accountId: accountIDs.brightcove.accountId,
|
|
2472
2495
|
playlistId: playlistID,
|
|
2473
2496
|
playerId: accountIDs.brightcove.playerId,
|
|
2474
2497
|
onSuccess: onVideoSuccess,
|
|
2475
2498
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2476
2499
|
}),
|
|
2477
|
-
React__default
|
|
2500
|
+
React__default.createElement(
|
|
2478
2501
|
'style',
|
|
2479
2502
|
{ jsx: 'true' },
|
|
2480
2503
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2481
2504
|
)
|
|
2482
2505
|
);
|
|
2483
2506
|
} else if (experienceID) {
|
|
2484
|
-
return React__default
|
|
2507
|
+
return React__default.createElement(
|
|
2485
2508
|
'div',
|
|
2486
2509
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2487
|
-
videoLoaded && React__default
|
|
2510
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2488
2511
|
);
|
|
2489
2512
|
}
|
|
2490
2513
|
return null;
|
|
2491
2514
|
}
|
|
2492
2515
|
if (source === 'mp4') {
|
|
2493
|
-
return React__default
|
|
2516
|
+
return React__default.createElement(
|
|
2494
2517
|
'div',
|
|
2495
2518
|
null,
|
|
2496
|
-
React__default
|
|
2519
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2497
2520
|
);
|
|
2498
2521
|
}
|
|
2499
2522
|
|
|
@@ -2508,7 +2531,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2508
2531
|
});
|
|
2509
2532
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2510
2533
|
|
|
2511
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2534
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2512
2535
|
|
|
2513
2536
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2514
2537
|
|
|
@@ -2704,9 +2727,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2704
2727
|
});
|
|
2705
2728
|
|
|
2706
2729
|
_commonjsHelpers.unwrapExports(props);
|
|
2707
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2708
|
-
props.defaultProps;
|
|
2709
|
-
props.propTypes;
|
|
2730
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2731
|
+
var props_2 = props.defaultProps;
|
|
2732
|
+
var props_3 = props.propTypes;
|
|
2710
2733
|
|
|
2711
2734
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2712
2735
|
return isNonNullObject(value)
|
|
@@ -2871,17 +2894,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2871
2894
|
|
|
2872
2895
|
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; }
|
|
2873
2896
|
|
|
2874
|
-
function
|
|
2875
|
-
|
|
2876
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2877
|
-
|
|
2878
|
-
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."); }
|
|
2897
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2879
2898
|
|
|
2880
|
-
function
|
|
2899
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2881
2900
|
|
|
2882
|
-
function
|
|
2883
|
-
|
|
2884
|
-
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; }
|
|
2901
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2885
2902
|
|
|
2886
2903
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2887
2904
|
|
|
@@ -3011,12 +3028,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3011
3028
|
|
|
3012
3029
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3013
3030
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3014
|
-
|
|
3015
|
-
var
|
|
3016
|
-
|
|
3031
|
+
var _iteratorNormalCompletion = true;
|
|
3032
|
+
var _didIteratorError = false;
|
|
3033
|
+
var _iteratorError = undefined;
|
|
3017
3034
|
|
|
3018
3035
|
try {
|
|
3019
|
-
for (_iterator.
|
|
3036
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3020
3037
|
var p = _step.value;
|
|
3021
3038
|
|
|
3022
3039
|
if (props$1[p]) {
|
|
@@ -3031,9 +3048,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3031
3048
|
}
|
|
3032
3049
|
}
|
|
3033
3050
|
} catch (err) {
|
|
3034
|
-
|
|
3051
|
+
_didIteratorError = true;
|
|
3052
|
+
_iteratorError = err;
|
|
3035
3053
|
} finally {
|
|
3036
|
-
|
|
3054
|
+
try {
|
|
3055
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3056
|
+
_iterator["return"]();
|
|
3057
|
+
}
|
|
3058
|
+
} finally {
|
|
3059
|
+
if (_didIteratorError) {
|
|
3060
|
+
throw _iteratorError;
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3037
3063
|
}
|
|
3038
3064
|
|
|
3039
3065
|
return config;
|
|
@@ -3098,7 +3124,7 @@ function isEqual(a, b) {
|
|
|
3098
3124
|
return true;
|
|
3099
3125
|
}
|
|
3100
3126
|
|
|
3101
|
-
if ((0, React__default
|
|
3127
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3102
3128
|
return true;
|
|
3103
3129
|
}
|
|
3104
3130
|
|
|
@@ -3141,17 +3167,17 @@ function isMediaStream(url) {
|
|
|
3141
3167
|
});
|
|
3142
3168
|
|
|
3143
3169
|
_commonjsHelpers.unwrapExports(utils);
|
|
3144
|
-
utils.parseStartTime;
|
|
3145
|
-
utils.parseEndTime;
|
|
3146
|
-
utils.randomString;
|
|
3147
|
-
utils.queryString;
|
|
3148
|
-
utils.getSDK;
|
|
3149
|
-
utils.getConfig;
|
|
3150
|
-
utils.omit;
|
|
3151
|
-
utils.callPlayer;
|
|
3152
|
-
utils.isObject;
|
|
3153
|
-
utils.isEqual;
|
|
3154
|
-
utils.isMediaStream;
|
|
3170
|
+
var utils_1 = utils.parseStartTime;
|
|
3171
|
+
var utils_2 = utils.parseEndTime;
|
|
3172
|
+
var utils_3 = utils.randomString;
|
|
3173
|
+
var utils_4 = utils.queryString;
|
|
3174
|
+
var utils_5 = utils.getSDK;
|
|
3175
|
+
var utils_6 = utils.getConfig;
|
|
3176
|
+
var utils_7 = utils.omit;
|
|
3177
|
+
var utils_8 = utils.callPlayer;
|
|
3178
|
+
var utils_9 = utils.isObject;
|
|
3179
|
+
var utils_10 = utils.isEqual;
|
|
3180
|
+
var utils_11 = utils.isMediaStream;
|
|
3155
3181
|
|
|
3156
3182
|
var Player_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3157
3183
|
|
|
@@ -3160,7 +3186,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3160
3186
|
});
|
|
3161
3187
|
exports["default"] = void 0;
|
|
3162
3188
|
|
|
3163
|
-
var _react = _interopRequireWildcard(React__default
|
|
3189
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3164
3190
|
|
|
3165
3191
|
|
|
3166
3192
|
|
|
@@ -3180,16 +3206,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3180
3206
|
|
|
3181
3207
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3182
3208
|
|
|
3183
|
-
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); }; }
|
|
3184
|
-
|
|
3185
3209
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3186
3210
|
|
|
3187
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3188
|
-
|
|
3189
|
-
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; } }
|
|
3190
|
-
|
|
3191
3211
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3192
3212
|
|
|
3213
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3214
|
+
|
|
3193
3215
|
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); }
|
|
3194
3216
|
|
|
3195
3217
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3198,12 +3220,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3198
3220
|
|
|
3199
3221
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3200
3222
|
|
|
3201
|
-
var Player =
|
|
3223
|
+
var Player =
|
|
3224
|
+
/*#__PURE__*/
|
|
3225
|
+
function (_Component) {
|
|
3202
3226
|
_inherits(Player, _Component);
|
|
3203
3227
|
|
|
3204
|
-
var _super = _createSuper(Player);
|
|
3205
|
-
|
|
3206
3228
|
function Player() {
|
|
3229
|
+
var _getPrototypeOf2;
|
|
3230
|
+
|
|
3207
3231
|
var _this;
|
|
3208
3232
|
|
|
3209
3233
|
_classCallCheck(this, Player);
|
|
@@ -3212,7 +3236,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3212
3236
|
_args[_key] = arguments[_key];
|
|
3213
3237
|
}
|
|
3214
3238
|
|
|
3215
|
-
_this =
|
|
3239
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3216
3240
|
|
|
3217
3241
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3218
3242
|
|
|
@@ -3537,7 +3561,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3537
3561
|
return null;
|
|
3538
3562
|
}
|
|
3539
3563
|
|
|
3540
|
-
return
|
|
3564
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3541
3565
|
ref: this.ref,
|
|
3542
3566
|
onReady: this.handleReady,
|
|
3543
3567
|
onPlay: this.handlePlay,
|
|
@@ -3570,7 +3594,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3570
3594
|
});
|
|
3571
3595
|
exports["default"] = createSinglePlayer;
|
|
3572
3596
|
|
|
3573
|
-
var _react = _interopRequireWildcard(React__default
|
|
3597
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3574
3598
|
|
|
3575
3599
|
|
|
3576
3600
|
|
|
@@ -3598,16 +3622,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3598
3622
|
|
|
3599
3623
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3600
3624
|
|
|
3601
|
-
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); }; }
|
|
3602
|
-
|
|
3603
3625
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3604
3626
|
|
|
3605
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3606
|
-
|
|
3607
|
-
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; } }
|
|
3608
|
-
|
|
3609
3627
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3610
3628
|
|
|
3629
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3630
|
+
|
|
3611
3631
|
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); }
|
|
3612
3632
|
|
|
3613
3633
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3619,12 +3639,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3619
3639
|
function createSinglePlayer(activePlayer) {
|
|
3620
3640
|
var _class, _temp;
|
|
3621
3641
|
|
|
3622
|
-
return _temp = _class =
|
|
3642
|
+
return _temp = _class =
|
|
3643
|
+
/*#__PURE__*/
|
|
3644
|
+
function (_Component) {
|
|
3623
3645
|
_inherits(SinglePlayer, _Component);
|
|
3624
3646
|
|
|
3625
|
-
var _super = _createSuper(SinglePlayer);
|
|
3626
|
-
|
|
3627
3647
|
function SinglePlayer() {
|
|
3648
|
+
var _getPrototypeOf2;
|
|
3649
|
+
|
|
3628
3650
|
var _this;
|
|
3629
3651
|
|
|
3630
3652
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3633,7 +3655,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3633
3655
|
args[_key] = arguments[_key];
|
|
3634
3656
|
}
|
|
3635
3657
|
|
|
3636
|
-
_this =
|
|
3658
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3637
3659
|
|
|
3638
3660
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3639
3661
|
|
|
@@ -3701,12 +3723,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3701
3723
|
height = _this$props.height,
|
|
3702
3724
|
Wrapper = _this$props.wrapper;
|
|
3703
3725
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3704
|
-
return
|
|
3726
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3705
3727
|
style: _objectSpread({}, style, {
|
|
3706
3728
|
width: width,
|
|
3707
3729
|
height: height
|
|
3708
3730
|
})
|
|
3709
|
-
}, otherProps),
|
|
3731
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3710
3732
|
ref: this.ref,
|
|
3711
3733
|
activePlayer: activePlayer,
|
|
3712
3734
|
config: this.config
|
|
@@ -3728,7 +3750,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3728
3750
|
});
|
|
3729
3751
|
exports["default"] = exports.YouTube = void 0;
|
|
3730
3752
|
|
|
3731
|
-
var _react = _interopRequireWildcard(React__default
|
|
3753
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3732
3754
|
|
|
3733
3755
|
|
|
3734
3756
|
|
|
@@ -3752,31 +3774,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3752
3774
|
|
|
3753
3775
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3754
3776
|
|
|
3755
|
-
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); }; }
|
|
3756
|
-
|
|
3757
3777
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3758
3778
|
|
|
3759
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3760
|
-
|
|
3761
|
-
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; } }
|
|
3762
|
-
|
|
3763
3779
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3764
3780
|
|
|
3781
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3782
|
+
|
|
3765
3783
|
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); }
|
|
3766
3784
|
|
|
3767
3785
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3768
3786
|
|
|
3769
3787
|
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; }
|
|
3770
3788
|
|
|
3771
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3772
|
-
|
|
3773
|
-
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."); }
|
|
3774
|
-
|
|
3775
|
-
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); }
|
|
3789
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3776
3790
|
|
|
3777
|
-
function
|
|
3791
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3778
3792
|
|
|
3779
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
3793
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3780
3794
|
|
|
3781
3795
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3782
3796
|
|
|
@@ -3801,12 +3815,14 @@ function parsePlaylist(url) {
|
|
|
3801
3815
|
return {};
|
|
3802
3816
|
}
|
|
3803
3817
|
|
|
3804
|
-
var YouTube =
|
|
3818
|
+
var YouTube =
|
|
3819
|
+
/*#__PURE__*/
|
|
3820
|
+
function (_Component) {
|
|
3805
3821
|
_inherits(YouTube, _Component);
|
|
3806
3822
|
|
|
3807
|
-
var _super = _createSuper(YouTube);
|
|
3808
|
-
|
|
3809
3823
|
function YouTube() {
|
|
3824
|
+
var _getPrototypeOf2;
|
|
3825
|
+
|
|
3810
3826
|
var _this;
|
|
3811
3827
|
|
|
3812
3828
|
_classCallCheck(this, YouTube);
|
|
@@ -3815,7 +3831,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3815
3831
|
args[_key] = arguments[_key];
|
|
3816
3832
|
}
|
|
3817
3833
|
|
|
3818
|
-
_this =
|
|
3834
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3819
3835
|
|
|
3820
3836
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3821
3837
|
|
|
@@ -4003,9 +4019,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4003
4019
|
height: '100%',
|
|
4004
4020
|
display: display
|
|
4005
4021
|
};
|
|
4006
|
-
return
|
|
4022
|
+
return _react["default"].createElement("div", {
|
|
4007
4023
|
style: style
|
|
4008
|
-
},
|
|
4024
|
+
}, _react["default"].createElement("div", {
|
|
4009
4025
|
ref: this.ref
|
|
4010
4026
|
}));
|
|
4011
4027
|
}
|
|
@@ -4028,7 +4044,7 @@ exports["default"] = _default;
|
|
|
4028
4044
|
});
|
|
4029
4045
|
|
|
4030
4046
|
_commonjsHelpers.unwrapExports(YouTube_1);
|
|
4031
|
-
YouTube_1.YouTube;
|
|
4047
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4032
4048
|
|
|
4033
4049
|
var SoundCloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4034
4050
|
|
|
@@ -4037,7 +4053,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4037
4053
|
});
|
|
4038
4054
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4039
4055
|
|
|
4040
|
-
var _react = _interopRequireWildcard(React__default
|
|
4056
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4041
4057
|
|
|
4042
4058
|
|
|
4043
4059
|
|
|
@@ -4061,16 +4077,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4061
4077
|
|
|
4062
4078
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4063
4079
|
|
|
4064
|
-
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); }; }
|
|
4065
|
-
|
|
4066
4080
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4067
4081
|
|
|
4068
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4069
|
-
|
|
4070
|
-
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; } }
|
|
4071
|
-
|
|
4072
4082
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4073
4083
|
|
|
4084
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4085
|
+
|
|
4074
4086
|
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); }
|
|
4075
4087
|
|
|
4076
4088
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4079,14 +4091,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4079
4091
|
|
|
4080
4092
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4081
4093
|
var SDK_GLOBAL = 'SC';
|
|
4082
|
-
var MATCH_URL = /(
|
|
4094
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4083
4095
|
|
|
4084
|
-
var SoundCloud =
|
|
4096
|
+
var SoundCloud =
|
|
4097
|
+
/*#__PURE__*/
|
|
4098
|
+
function (_Component) {
|
|
4085
4099
|
_inherits(SoundCloud, _Component);
|
|
4086
4100
|
|
|
4087
|
-
var _super = _createSuper(SoundCloud);
|
|
4088
|
-
|
|
4089
4101
|
function SoundCloud() {
|
|
4102
|
+
var _getPrototypeOf2;
|
|
4103
|
+
|
|
4090
4104
|
var _this;
|
|
4091
4105
|
|
|
4092
4106
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4095,7 +4109,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4095
4109
|
args[_key] = arguments[_key];
|
|
4096
4110
|
}
|
|
4097
4111
|
|
|
4098
|
-
_this =
|
|
4112
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4099
4113
|
|
|
4100
4114
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4101
4115
|
|
|
@@ -4216,7 +4230,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4216
4230
|
height: '100%',
|
|
4217
4231
|
display: display
|
|
4218
4232
|
};
|
|
4219
|
-
return
|
|
4233
|
+
return _react["default"].createElement("iframe", {
|
|
4220
4234
|
ref: this.ref,
|
|
4221
4235
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4222
4236
|
style: style,
|
|
@@ -4245,7 +4259,7 @@ exports["default"] = _default;
|
|
|
4245
4259
|
});
|
|
4246
4260
|
|
|
4247
4261
|
_commonjsHelpers.unwrapExports(SoundCloud_1);
|
|
4248
|
-
SoundCloud_1.SoundCloud;
|
|
4262
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4249
4263
|
|
|
4250
4264
|
var Vimeo_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4251
4265
|
|
|
@@ -4254,7 +4268,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4254
4268
|
});
|
|
4255
4269
|
exports["default"] = exports.Vimeo = void 0;
|
|
4256
4270
|
|
|
4257
|
-
var _react = _interopRequireWildcard(React__default
|
|
4271
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4258
4272
|
|
|
4259
4273
|
|
|
4260
4274
|
|
|
@@ -4278,16 +4292,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4278
4292
|
|
|
4279
4293
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4280
4294
|
|
|
4281
|
-
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); }; }
|
|
4282
|
-
|
|
4283
4295
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4284
4296
|
|
|
4285
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4286
|
-
|
|
4287
|
-
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; } }
|
|
4288
|
-
|
|
4289
4297
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4290
4298
|
|
|
4299
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4300
|
+
|
|
4291
4301
|
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); }
|
|
4292
4302
|
|
|
4293
4303
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4299,12 +4309,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4299
4309
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4300
4310
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4301
4311
|
|
|
4302
|
-
var Vimeo =
|
|
4312
|
+
var Vimeo =
|
|
4313
|
+
/*#__PURE__*/
|
|
4314
|
+
function (_Component) {
|
|
4303
4315
|
_inherits(Vimeo, _Component);
|
|
4304
4316
|
|
|
4305
|
-
var _super = _createSuper(Vimeo);
|
|
4306
|
-
|
|
4307
4317
|
function Vimeo() {
|
|
4318
|
+
var _getPrototypeOf2;
|
|
4319
|
+
|
|
4308
4320
|
var _this;
|
|
4309
4321
|
|
|
4310
4322
|
_classCallCheck(this, Vimeo);
|
|
@@ -4313,7 +4325,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4313
4325
|
args[_key] = arguments[_key];
|
|
4314
4326
|
}
|
|
4315
4327
|
|
|
4316
|
-
_this =
|
|
4328
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4317
4329
|
|
|
4318
4330
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4319
4331
|
|
|
@@ -4470,7 +4482,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4470
4482
|
overflow: 'hidden',
|
|
4471
4483
|
display: display
|
|
4472
4484
|
};
|
|
4473
|
-
return
|
|
4485
|
+
return _react["default"].createElement("div", {
|
|
4474
4486
|
key: this.props.url,
|
|
4475
4487
|
ref: this.ref,
|
|
4476
4488
|
style: style
|
|
@@ -4501,7 +4513,7 @@ exports["default"] = _default;
|
|
|
4501
4513
|
});
|
|
4502
4514
|
|
|
4503
4515
|
_commonjsHelpers.unwrapExports(Vimeo_1);
|
|
4504
|
-
Vimeo_1.Vimeo;
|
|
4516
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4505
4517
|
|
|
4506
4518
|
var Facebook_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4507
4519
|
|
|
@@ -4510,7 +4522,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4510
4522
|
});
|
|
4511
4523
|
exports["default"] = exports.Facebook = void 0;
|
|
4512
4524
|
|
|
4513
|
-
var _react = _interopRequireWildcard(React__default
|
|
4525
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4514
4526
|
|
|
4515
4527
|
|
|
4516
4528
|
|
|
@@ -4530,16 +4542,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4530
4542
|
|
|
4531
4543
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4532
4544
|
|
|
4533
|
-
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); }; }
|
|
4534
|
-
|
|
4535
4545
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4536
4546
|
|
|
4537
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4538
|
-
|
|
4539
|
-
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; } }
|
|
4540
|
-
|
|
4541
4547
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4542
4548
|
|
|
4549
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4550
|
+
|
|
4543
4551
|
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); }
|
|
4544
4552
|
|
|
4545
4553
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4552,12 +4560,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4552
4560
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4553
4561
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4554
4562
|
|
|
4555
|
-
var Facebook =
|
|
4563
|
+
var Facebook =
|
|
4564
|
+
/*#__PURE__*/
|
|
4565
|
+
function (_Component) {
|
|
4556
4566
|
_inherits(Facebook, _Component);
|
|
4557
4567
|
|
|
4558
|
-
var _super = _createSuper(Facebook);
|
|
4559
|
-
|
|
4560
4568
|
function Facebook() {
|
|
4569
|
+
var _getPrototypeOf2;
|
|
4570
|
+
|
|
4561
4571
|
var _this;
|
|
4562
4572
|
|
|
4563
4573
|
_classCallCheck(this, Facebook);
|
|
@@ -4566,7 +4576,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4566
4576
|
args[_key] = arguments[_key];
|
|
4567
4577
|
}
|
|
4568
4578
|
|
|
4569
|
-
_this =
|
|
4579
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4570
4580
|
|
|
4571
4581
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4572
4582
|
|
|
@@ -4682,7 +4692,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4682
4692
|
width: '100%',
|
|
4683
4693
|
height: '100%'
|
|
4684
4694
|
};
|
|
4685
|
-
return
|
|
4695
|
+
return _react["default"].createElement("div", {
|
|
4686
4696
|
style: style,
|
|
4687
4697
|
id: this.playerID,
|
|
4688
4698
|
className: "fb-video",
|
|
@@ -4713,7 +4723,7 @@ exports["default"] = _default;
|
|
|
4713
4723
|
});
|
|
4714
4724
|
|
|
4715
4725
|
_commonjsHelpers.unwrapExports(Facebook_1);
|
|
4716
|
-
Facebook_1.Facebook;
|
|
4726
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4717
4727
|
|
|
4718
4728
|
var Streamable_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4719
4729
|
|
|
@@ -4722,7 +4732,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4722
4732
|
});
|
|
4723
4733
|
exports["default"] = exports.Streamable = void 0;
|
|
4724
4734
|
|
|
4725
|
-
var _react = _interopRequireWildcard(React__default
|
|
4735
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4726
4736
|
|
|
4727
4737
|
|
|
4728
4738
|
|
|
@@ -4742,16 +4752,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4742
4752
|
|
|
4743
4753
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4744
4754
|
|
|
4745
|
-
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); }; }
|
|
4746
|
-
|
|
4747
4755
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4748
4756
|
|
|
4749
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4750
|
-
|
|
4751
|
-
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; } }
|
|
4752
|
-
|
|
4753
4757
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4754
4758
|
|
|
4759
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4760
|
+
|
|
4755
4761
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4756
4762
|
|
|
4757
4763
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4762,12 +4768,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4762
4768
|
var SDK_GLOBAL = 'playerjs';
|
|
4763
4769
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4764
4770
|
|
|
4765
|
-
var Streamable =
|
|
4771
|
+
var Streamable =
|
|
4772
|
+
/*#__PURE__*/
|
|
4773
|
+
function (_Component) {
|
|
4766
4774
|
_inherits(Streamable, _Component);
|
|
4767
4775
|
|
|
4768
|
-
var _super = _createSuper(Streamable);
|
|
4769
|
-
|
|
4770
4776
|
function Streamable() {
|
|
4777
|
+
var _getPrototypeOf2;
|
|
4778
|
+
|
|
4771
4779
|
var _this;
|
|
4772
4780
|
|
|
4773
4781
|
_classCallCheck(this, Streamable);
|
|
@@ -4776,7 +4784,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4776
4784
|
args[_key] = arguments[_key];
|
|
4777
4785
|
}
|
|
4778
4786
|
|
|
4779
|
-
_this =
|
|
4787
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4780
4788
|
|
|
4781
4789
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4782
4790
|
|
|
@@ -4896,7 +4904,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4896
4904
|
width: '100%',
|
|
4897
4905
|
height: '100%'
|
|
4898
4906
|
};
|
|
4899
|
-
return
|
|
4907
|
+
return _react["default"].createElement("iframe", {
|
|
4900
4908
|
ref: this.ref,
|
|
4901
4909
|
src: "https://streamable.com/o/".concat(id),
|
|
4902
4910
|
frameBorder: "0",
|
|
@@ -4924,7 +4932,7 @@ exports["default"] = _default;
|
|
|
4924
4932
|
});
|
|
4925
4933
|
|
|
4926
4934
|
_commonjsHelpers.unwrapExports(Streamable_1);
|
|
4927
|
-
Streamable_1.Streamable;
|
|
4935
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4928
4936
|
|
|
4929
4937
|
var Wistia_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4930
4938
|
|
|
@@ -4933,7 +4941,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4933
4941
|
});
|
|
4934
4942
|
exports["default"] = exports.Wistia = void 0;
|
|
4935
4943
|
|
|
4936
|
-
var _react = _interopRequireWildcard(React__default
|
|
4944
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4937
4945
|
|
|
4938
4946
|
|
|
4939
4947
|
|
|
@@ -4957,16 +4965,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4957
4965
|
|
|
4958
4966
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4959
4967
|
|
|
4960
|
-
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); }; }
|
|
4961
|
-
|
|
4962
4968
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4963
4969
|
|
|
4964
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4965
|
-
|
|
4966
|
-
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; } }
|
|
4967
|
-
|
|
4968
4970
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4969
4971
|
|
|
4972
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4973
|
+
|
|
4970
4974
|
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); }
|
|
4971
4975
|
|
|
4972
4976
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4977,48 +4981,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4977
4981
|
var SDK_GLOBAL = 'Wistia';
|
|
4978
4982
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4979
4983
|
|
|
4980
|
-
var Wistia =
|
|
4984
|
+
var Wistia =
|
|
4985
|
+
/*#__PURE__*/
|
|
4986
|
+
function (_Component) {
|
|
4981
4987
|
_inherits(Wistia, _Component);
|
|
4982
4988
|
|
|
4983
|
-
var _super = _createSuper(Wistia);
|
|
4984
|
-
|
|
4985
4989
|
function Wistia() {
|
|
4990
|
+
var _getPrototypeOf2;
|
|
4991
|
+
|
|
4986
4992
|
var _this;
|
|
4987
4993
|
|
|
4988
4994
|
_classCallCheck(this, Wistia);
|
|
4989
4995
|
|
|
4990
|
-
for (var _len = arguments.length,
|
|
4991
|
-
|
|
4996
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4997
|
+
args[_key] = arguments[_key];
|
|
4992
4998
|
}
|
|
4993
4999
|
|
|
4994
|
-
_this =
|
|
5000
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4995
5001
|
|
|
4996
5002
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4997
5003
|
|
|
4998
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4999
|
-
var _this$props;
|
|
5000
|
-
|
|
5001
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5002
|
-
});
|
|
5003
|
-
|
|
5004
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5005
|
-
var _this$props2;
|
|
5006
|
-
|
|
5007
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5008
|
-
});
|
|
5009
|
-
|
|
5010
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5011
|
-
var _this$props3;
|
|
5012
|
-
|
|
5013
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5014
|
-
});
|
|
5015
|
-
|
|
5016
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5017
|
-
var _this$props4;
|
|
5018
|
-
|
|
5019
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5020
|
-
});
|
|
5021
|
-
|
|
5022
5004
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5023
5005
|
_this.callPlayer('mute');
|
|
5024
5006
|
});
|
|
@@ -5040,13 +5022,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5040
5022
|
value: function load(url) {
|
|
5041
5023
|
var _this2 = this;
|
|
5042
5024
|
|
|
5043
|
-
var _this$
|
|
5044
|
-
playing = _this$
|
|
5045
|
-
muted = _this$
|
|
5046
|
-
controls = _this$
|
|
5047
|
-
_onReady = _this$
|
|
5048
|
-
|
|
5049
|
-
|
|
5025
|
+
var _this$props = this.props,
|
|
5026
|
+
playing = _this$props.playing,
|
|
5027
|
+
muted = _this$props.muted,
|
|
5028
|
+
controls = _this$props.controls,
|
|
5029
|
+
_onReady = _this$props.onReady,
|
|
5030
|
+
onPlay = _this$props.onPlay,
|
|
5031
|
+
onPause = _this$props.onPause,
|
|
5032
|
+
onSeek = _this$props.onSeek,
|
|
5033
|
+
onEnded = _this$props.onEnded,
|
|
5034
|
+
config = _this$props.config,
|
|
5035
|
+
onError = _this$props.onError;
|
|
5050
5036
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5051
5037
|
window._wq = window._wq || [];
|
|
5052
5038
|
|
|
@@ -5063,28 +5049,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5063
5049
|
|
|
5064
5050
|
_this2.unbind();
|
|
5065
5051
|
|
|
5066
|
-
_this2.player.bind('play',
|
|
5052
|
+
_this2.player.bind('play', onPlay);
|
|
5067
5053
|
|
|
5068
|
-
_this2.player.bind('pause',
|
|
5054
|
+
_this2.player.bind('pause', onPause);
|
|
5069
5055
|
|
|
5070
|
-
_this2.player.bind('seek',
|
|
5056
|
+
_this2.player.bind('seek', onSeek);
|
|
5071
5057
|
|
|
5072
|
-
_this2.player.bind('end',
|
|
5058
|
+
_this2.player.bind('end', onEnded);
|
|
5073
5059
|
|
|
5074
5060
|
_onReady();
|
|
5075
5061
|
}
|
|
5076
5062
|
});
|
|
5077
5063
|
}, onError);
|
|
5078
5064
|
}
|
|
5079
|
-
}, {
|
|
5080
|
-
key: "unbind",
|
|
5081
|
-
value: function unbind() {
|
|
5082
|
-
this.player.unbind('play', this.onPlay);
|
|
5083
|
-
this.player.unbind('pause', this.onPause);
|
|
5084
|
-
this.player.unbind('seek', this.onSeek);
|
|
5085
|
-
this.player.unbind('end', this.onEnded);
|
|
5086
|
-
} // Proxy methods to prevent listener leaks
|
|
5087
|
-
|
|
5088
5065
|
}, {
|
|
5089
5066
|
key: "play",
|
|
5090
5067
|
value: function play() {
|
|
@@ -5095,6 +5072,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5095
5072
|
value: function pause() {
|
|
5096
5073
|
this.callPlayer('pause');
|
|
5097
5074
|
}
|
|
5075
|
+
}, {
|
|
5076
|
+
key: "unbind",
|
|
5077
|
+
value: function unbind() {
|
|
5078
|
+
var _this$props2 = this.props,
|
|
5079
|
+
onPlay = _this$props2.onPlay,
|
|
5080
|
+
onPause = _this$props2.onPause,
|
|
5081
|
+
onSeek = _this$props2.onSeek,
|
|
5082
|
+
onEnded = _this$props2.onEnded;
|
|
5083
|
+
this.player.unbind('play', onPlay);
|
|
5084
|
+
this.player.unbind('pause', onPause);
|
|
5085
|
+
this.player.unbind('seek', onSeek);
|
|
5086
|
+
this.player.unbind('end', onEnded);
|
|
5087
|
+
}
|
|
5098
5088
|
}, {
|
|
5099
5089
|
key: "stop",
|
|
5100
5090
|
value: function stop() {
|
|
@@ -5140,7 +5130,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5140
5130
|
width: '100%',
|
|
5141
5131
|
height: '100%'
|
|
5142
5132
|
};
|
|
5143
|
-
return
|
|
5133
|
+
return _react["default"].createElement("div", {
|
|
5144
5134
|
key: id,
|
|
5145
5135
|
className: className,
|
|
5146
5136
|
style: style
|
|
@@ -5167,7 +5157,7 @@ exports["default"] = _default;
|
|
|
5167
5157
|
});
|
|
5168
5158
|
|
|
5169
5159
|
_commonjsHelpers.unwrapExports(Wistia_1);
|
|
5170
|
-
Wistia_1.Wistia;
|
|
5160
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5171
5161
|
|
|
5172
5162
|
var Twitch_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5173
5163
|
|
|
@@ -5176,7 +5166,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5176
5166
|
});
|
|
5177
5167
|
exports["default"] = exports.Twitch = void 0;
|
|
5178
5168
|
|
|
5179
|
-
var _react = _interopRequireWildcard(React__default
|
|
5169
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5180
5170
|
|
|
5181
5171
|
|
|
5182
5172
|
|
|
@@ -5200,16 +5190,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5200
5190
|
|
|
5201
5191
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5202
5192
|
|
|
5203
|
-
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); }; }
|
|
5204
|
-
|
|
5205
5193
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5206
5194
|
|
|
5207
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5208
|
-
|
|
5209
|
-
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; } }
|
|
5210
|
-
|
|
5211
5195
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5212
5196
|
|
|
5197
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5198
|
+
|
|
5213
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); }
|
|
5214
5200
|
|
|
5215
5201
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5222,12 +5208,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5222
5208
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5223
5209
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5224
5210
|
|
|
5225
|
-
var Twitch =
|
|
5211
|
+
var Twitch =
|
|
5212
|
+
/*#__PURE__*/
|
|
5213
|
+
function (_Component) {
|
|
5226
5214
|
_inherits(Twitch, _Component);
|
|
5227
5215
|
|
|
5228
|
-
var _super = _createSuper(Twitch);
|
|
5229
|
-
|
|
5230
5216
|
function Twitch() {
|
|
5217
|
+
var _getPrototypeOf2;
|
|
5218
|
+
|
|
5231
5219
|
var _this;
|
|
5232
5220
|
|
|
5233
5221
|
_classCallCheck(this, Twitch);
|
|
@@ -5236,7 +5224,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5236
5224
|
args[_key] = arguments[_key];
|
|
5237
5225
|
}
|
|
5238
5226
|
|
|
5239
|
-
_this =
|
|
5227
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5240
5228
|
|
|
5241
5229
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5242
5230
|
|
|
@@ -5357,7 +5345,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5357
5345
|
width: '100%',
|
|
5358
5346
|
height: '100%'
|
|
5359
5347
|
};
|
|
5360
|
-
return
|
|
5348
|
+
return _react["default"].createElement("div", {
|
|
5361
5349
|
style: style,
|
|
5362
5350
|
id: this.playerID
|
|
5363
5351
|
});
|
|
@@ -5383,7 +5371,7 @@ exports["default"] = _default;
|
|
|
5383
5371
|
});
|
|
5384
5372
|
|
|
5385
5373
|
_commonjsHelpers.unwrapExports(Twitch_1);
|
|
5386
|
-
Twitch_1.Twitch;
|
|
5374
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5387
5375
|
|
|
5388
5376
|
var DailyMotion_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5389
5377
|
|
|
@@ -5392,7 +5380,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5392
5380
|
});
|
|
5393
5381
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5394
5382
|
|
|
5395
|
-
var _react = _interopRequireWildcard(React__default
|
|
5383
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5396
5384
|
|
|
5397
5385
|
|
|
5398
5386
|
|
|
@@ -5410,15 +5398,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5410
5398
|
|
|
5411
5399
|
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; }
|
|
5412
5400
|
|
|
5413
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5414
|
-
|
|
5415
|
-
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."); }
|
|
5416
|
-
|
|
5417
|
-
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); }
|
|
5401
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5418
5402
|
|
|
5419
|
-
function
|
|
5403
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5420
5404
|
|
|
5421
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
5405
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5422
5406
|
|
|
5423
5407
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5424
5408
|
|
|
@@ -5428,16 +5412,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5428
5412
|
|
|
5429
5413
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5430
5414
|
|
|
5431
|
-
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); }; }
|
|
5432
|
-
|
|
5433
5415
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5434
5416
|
|
|
5435
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5436
|
-
|
|
5437
|
-
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; } }
|
|
5438
|
-
|
|
5439
5417
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5440
5418
|
|
|
5419
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5420
|
+
|
|
5441
5421
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5442
5422
|
|
|
5443
5423
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5449,12 +5429,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5449
5429
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5450
5430
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5451
5431
|
|
|
5452
|
-
var DailyMotion =
|
|
5432
|
+
var DailyMotion =
|
|
5433
|
+
/*#__PURE__*/
|
|
5434
|
+
function (_Component) {
|
|
5453
5435
|
_inherits(DailyMotion, _Component);
|
|
5454
5436
|
|
|
5455
|
-
var _super = _createSuper(DailyMotion);
|
|
5456
|
-
|
|
5457
5437
|
function DailyMotion() {
|
|
5438
|
+
var _getPrototypeOf2;
|
|
5439
|
+
|
|
5458
5440
|
var _this;
|
|
5459
5441
|
|
|
5460
5442
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5463,7 +5445,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5463
5445
|
args[_key] = arguments[_key];
|
|
5464
5446
|
}
|
|
5465
5447
|
|
|
5466
|
-
_this =
|
|
5448
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5467
5449
|
|
|
5468
5450
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5469
5451
|
|
|
@@ -5592,9 +5574,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5592
5574
|
height: '100%',
|
|
5593
5575
|
display: display
|
|
5594
5576
|
};
|
|
5595
|
-
return
|
|
5577
|
+
return _react["default"].createElement("div", {
|
|
5596
5578
|
style: style
|
|
5597
|
-
},
|
|
5579
|
+
}, _react["default"].createElement("div", {
|
|
5598
5580
|
ref: this.ref
|
|
5599
5581
|
}));
|
|
5600
5582
|
}
|
|
@@ -5619,7 +5601,7 @@ exports["default"] = _default;
|
|
|
5619
5601
|
});
|
|
5620
5602
|
|
|
5621
5603
|
_commonjsHelpers.unwrapExports(DailyMotion_1);
|
|
5622
|
-
DailyMotion_1.DailyMotion;
|
|
5604
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5623
5605
|
|
|
5624
5606
|
var Mixcloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5625
5607
|
|
|
@@ -5628,7 +5610,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5628
5610
|
});
|
|
5629
5611
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5630
5612
|
|
|
5631
|
-
var _react = _interopRequireWildcard(React__default
|
|
5613
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5632
5614
|
|
|
5633
5615
|
|
|
5634
5616
|
|
|
@@ -5652,16 +5634,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5652
5634
|
|
|
5653
5635
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5654
5636
|
|
|
5655
|
-
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); }; }
|
|
5656
|
-
|
|
5657
5637
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5658
5638
|
|
|
5659
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5660
|
-
|
|
5661
|
-
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; } }
|
|
5662
|
-
|
|
5663
5639
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5664
5640
|
|
|
5641
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5642
|
+
|
|
5665
5643
|
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); }
|
|
5666
5644
|
|
|
5667
5645
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5672,12 +5650,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5672
5650
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5673
5651
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5674
5652
|
|
|
5675
|
-
var Mixcloud =
|
|
5653
|
+
var Mixcloud =
|
|
5654
|
+
/*#__PURE__*/
|
|
5655
|
+
function (_Component) {
|
|
5676
5656
|
_inherits(Mixcloud, _Component);
|
|
5677
5657
|
|
|
5678
|
-
var _super = _createSuper(Mixcloud);
|
|
5679
|
-
|
|
5680
5658
|
function Mixcloud() {
|
|
5659
|
+
var _getPrototypeOf2;
|
|
5660
|
+
|
|
5681
5661
|
var _this;
|
|
5682
5662
|
|
|
5683
5663
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5686,7 +5666,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5686
5666
|
args[_key] = arguments[_key];
|
|
5687
5667
|
}
|
|
5688
5668
|
|
|
5689
|
-
_this =
|
|
5669
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5690
5670
|
|
|
5691
5671
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5692
5672
|
|
|
@@ -5789,7 +5769,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5789
5769
|
})); // We have to give the iframe a key here to prevent a
|
|
5790
5770
|
// weird dialog appearing when loading a new track
|
|
5791
5771
|
|
|
5792
|
-
return
|
|
5772
|
+
return _react["default"].createElement("iframe", {
|
|
5793
5773
|
key: id,
|
|
5794
5774
|
ref: this.ref,
|
|
5795
5775
|
style: style,
|
|
@@ -5818,7 +5798,7 @@ exports["default"] = _default;
|
|
|
5818
5798
|
});
|
|
5819
5799
|
|
|
5820
5800
|
_commonjsHelpers.unwrapExports(Mixcloud_1);
|
|
5821
|
-
Mixcloud_1.Mixcloud;
|
|
5801
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5822
5802
|
|
|
5823
5803
|
var FilePlayer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5824
5804
|
|
|
@@ -5827,7 +5807,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5827
5807
|
});
|
|
5828
5808
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5829
5809
|
|
|
5830
|
-
var _react = _interopRequireWildcard(React__default
|
|
5810
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5831
5811
|
|
|
5832
5812
|
|
|
5833
5813
|
|
|
@@ -5849,33 +5829,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5849
5829
|
|
|
5850
5830
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5851
5831
|
|
|
5852
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5853
|
-
|
|
5854
5832
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5855
5833
|
|
|
5856
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5857
|
-
|
|
5858
|
-
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; } }
|
|
5859
|
-
|
|
5860
5834
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5861
5835
|
|
|
5836
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5837
|
+
|
|
5862
5838
|
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); }
|
|
5863
5839
|
|
|
5864
5840
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5865
5841
|
|
|
5866
5842
|
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; }
|
|
5867
5843
|
|
|
5868
|
-
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; } } }; }
|
|
5869
|
-
|
|
5870
|
-
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); }
|
|
5871
|
-
|
|
5872
|
-
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; }
|
|
5873
|
-
|
|
5874
5844
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5875
5845
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5876
5846
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5877
5847
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5878
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5848
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5879
5849
|
var HLS_GLOBAL = 'Hls';
|
|
5880
5850
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5881
5851
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5884,11 +5854,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5884
5854
|
|
|
5885
5855
|
function canPlay(url) {
|
|
5886
5856
|
if (url instanceof Array) {
|
|
5887
|
-
var
|
|
5888
|
-
|
|
5857
|
+
var _iteratorNormalCompletion = true;
|
|
5858
|
+
var _didIteratorError = false;
|
|
5859
|
+
var _iteratorError = undefined;
|
|
5889
5860
|
|
|
5890
5861
|
try {
|
|
5891
|
-
for (_iterator.
|
|
5862
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5892
5863
|
var item = _step.value;
|
|
5893
5864
|
|
|
5894
5865
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5900,9 +5871,18 @@ function canPlay(url) {
|
|
|
5900
5871
|
}
|
|
5901
5872
|
}
|
|
5902
5873
|
} catch (err) {
|
|
5903
|
-
|
|
5874
|
+
_didIteratorError = true;
|
|
5875
|
+
_iteratorError = err;
|
|
5904
5876
|
} finally {
|
|
5905
|
-
|
|
5877
|
+
try {
|
|
5878
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5879
|
+
_iterator["return"]();
|
|
5880
|
+
}
|
|
5881
|
+
} finally {
|
|
5882
|
+
if (_didIteratorError) {
|
|
5883
|
+
throw _iteratorError;
|
|
5884
|
+
}
|
|
5885
|
+
}
|
|
5906
5886
|
}
|
|
5907
5887
|
|
|
5908
5888
|
return false;
|
|
@@ -5926,12 +5906,14 @@ function canEnablePIP(url) {
|
|
|
5926
5906
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5927
5907
|
}
|
|
5928
5908
|
|
|
5929
|
-
var FilePlayer =
|
|
5909
|
+
var FilePlayer =
|
|
5910
|
+
/*#__PURE__*/
|
|
5911
|
+
function (_Component) {
|
|
5930
5912
|
_inherits(FilePlayer, _Component);
|
|
5931
5913
|
|
|
5932
|
-
var _super = _createSuper(FilePlayer);
|
|
5933
|
-
|
|
5934
5914
|
function FilePlayer() {
|
|
5915
|
+
var _getPrototypeOf2;
|
|
5916
|
+
|
|
5935
5917
|
var _this;
|
|
5936
5918
|
|
|
5937
5919
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5940,7 +5922,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5940
5922
|
_args[_key] = arguments[_key];
|
|
5941
5923
|
}
|
|
5942
5924
|
|
|
5943
|
-
_this =
|
|
5925
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5944
5926
|
|
|
5945
5927
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5946
5928
|
var _this$props;
|
|
@@ -6027,19 +6009,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6027
6009
|
|
|
6028
6010
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6029
6011
|
if (typeof source === 'string') {
|
|
6030
|
-
return
|
|
6012
|
+
return _react["default"].createElement("source", {
|
|
6031
6013
|
key: index,
|
|
6032
6014
|
src: source
|
|
6033
6015
|
});
|
|
6034
6016
|
}
|
|
6035
6017
|
|
|
6036
|
-
return
|
|
6018
|
+
return _react["default"].createElement("source", _extends({
|
|
6037
6019
|
key: index
|
|
6038
6020
|
}, source));
|
|
6039
6021
|
});
|
|
6040
6022
|
|
|
6041
6023
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6042
|
-
return
|
|
6024
|
+
return _react["default"].createElement("track", _extends({
|
|
6043
6025
|
key: index
|
|
6044
6026
|
}, track));
|
|
6045
6027
|
});
|
|
@@ -6077,10 +6059,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6077
6059
|
key: "componentWillUnmount",
|
|
6078
6060
|
value: function componentWillUnmount() {
|
|
6079
6061
|
this.removeListeners(this.player);
|
|
6080
|
-
|
|
6081
|
-
if (this.hls) {
|
|
6082
|
-
this.hls.destroy();
|
|
6083
|
-
}
|
|
6084
6062
|
}
|
|
6085
6063
|
}, {
|
|
6086
6064
|
key: "addListeners",
|
|
@@ -6211,6 +6189,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6211
6189
|
value: function stop() {
|
|
6212
6190
|
this.player.removeAttribute('src');
|
|
6213
6191
|
|
|
6192
|
+
if (this.hls) {
|
|
6193
|
+
this.hls.destroy();
|
|
6194
|
+
}
|
|
6195
|
+
|
|
6214
6196
|
if (this.dash) {
|
|
6215
6197
|
this.dash.reset();
|
|
6216
6198
|
}
|
|
@@ -6322,7 +6304,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6322
6304
|
width: width === 'auto' ? width : '100%',
|
|
6323
6305
|
height: height === 'auto' ? height : '100%'
|
|
6324
6306
|
};
|
|
6325
|
-
return
|
|
6307
|
+
return _react["default"].createElement(Element, _extends({
|
|
6326
6308
|
ref: this.ref,
|
|
6327
6309
|
src: this.getSource(url),
|
|
6328
6310
|
style: style,
|
|
@@ -6352,7 +6334,7 @@ exports["default"] = _default;
|
|
|
6352
6334
|
});
|
|
6353
6335
|
|
|
6354
6336
|
_commonjsHelpers.unwrapExports(FilePlayer_1);
|
|
6355
|
-
FilePlayer_1.FilePlayer;
|
|
6337
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6356
6338
|
|
|
6357
6339
|
var players = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
6358
6340
|
|
|
@@ -6394,7 +6376,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6394
6376
|
});
|
|
6395
6377
|
exports["default"] = void 0;
|
|
6396
6378
|
|
|
6397
|
-
var _react = _interopRequireWildcard(React__default
|
|
6379
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6398
6380
|
|
|
6399
6381
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6400
6382
|
|
|
@@ -6412,16 +6394,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6412
6394
|
|
|
6413
6395
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6414
6396
|
|
|
6415
|
-
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); }; }
|
|
6416
|
-
|
|
6417
6397
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6418
6398
|
|
|
6419
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6420
|
-
|
|
6421
|
-
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; } }
|
|
6422
|
-
|
|
6423
6399
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6424
6400
|
|
|
6401
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6402
|
+
|
|
6425
6403
|
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); }
|
|
6426
6404
|
|
|
6427
6405
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6430,12 +6408,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6430
6408
|
|
|
6431
6409
|
var ICON_SIZE = '64px';
|
|
6432
6410
|
|
|
6433
|
-
var Preview =
|
|
6411
|
+
var Preview =
|
|
6412
|
+
/*#__PURE__*/
|
|
6413
|
+
function (_Component) {
|
|
6434
6414
|
_inherits(Preview, _Component);
|
|
6435
6415
|
|
|
6436
|
-
var _super = _createSuper(Preview);
|
|
6437
|
-
|
|
6438
6416
|
function Preview() {
|
|
6417
|
+
var _getPrototypeOf2;
|
|
6418
|
+
|
|
6439
6419
|
var _this;
|
|
6440
6420
|
|
|
6441
6421
|
_classCallCheck(this, Preview);
|
|
@@ -6444,7 +6424,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6444
6424
|
args[_key] = arguments[_key];
|
|
6445
6425
|
}
|
|
6446
6426
|
|
|
6447
|
-
_this =
|
|
6427
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6448
6428
|
|
|
6449
6429
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6450
6430
|
|
|
@@ -6542,15 +6522,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6542
6522
|
}
|
|
6543
6523
|
};
|
|
6544
6524
|
|
|
6545
|
-
var defaultPlayIcon =
|
|
6525
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6546
6526
|
style: styles.shadow,
|
|
6547
6527
|
className: "react-player__shadow"
|
|
6548
|
-
},
|
|
6528
|
+
}, _react["default"].createElement("div", {
|
|
6549
6529
|
style: styles.playIcon,
|
|
6550
6530
|
className: "react-player__play-icon"
|
|
6551
6531
|
}));
|
|
6552
6532
|
|
|
6553
|
-
return
|
|
6533
|
+
return _react["default"].createElement("div", {
|
|
6554
6534
|
style: styles.preview,
|
|
6555
6535
|
className: "react-player__preview",
|
|
6556
6536
|
onClick: onClick
|
|
@@ -6573,7 +6553,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6573
6553
|
});
|
|
6574
6554
|
exports["default"] = renderPreloadPlayers;
|
|
6575
6555
|
|
|
6576
|
-
var _react = _interopRequireDefault(React__default
|
|
6556
|
+
var _react = _interopRequireDefault(React__default);
|
|
6577
6557
|
|
|
6578
6558
|
var _Player = _interopRequireDefault(Player_1);
|
|
6579
6559
|
|
|
@@ -6587,12 +6567,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6587
6567
|
|
|
6588
6568
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6589
6569
|
|
|
6590
|
-
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; } } }; }
|
|
6591
|
-
|
|
6592
|
-
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); }
|
|
6593
|
-
|
|
6594
|
-
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; }
|
|
6595
|
-
|
|
6596
6570
|
var PRELOAD_PLAYERS = [{
|
|
6597
6571
|
Player: YouTube_1.YouTube,
|
|
6598
6572
|
configKey: 'youtube',
|
|
@@ -6613,16 +6587,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6613
6587
|
|
|
6614
6588
|
function renderPreloadPlayers(url, controls, config) {
|
|
6615
6589
|
var players = [];
|
|
6616
|
-
|
|
6617
|
-
var
|
|
6618
|
-
|
|
6590
|
+
var _iteratorNormalCompletion = true;
|
|
6591
|
+
var _didIteratorError = false;
|
|
6592
|
+
var _iteratorError = undefined;
|
|
6619
6593
|
|
|
6620
6594
|
try {
|
|
6621
|
-
for (_iterator.
|
|
6595
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6622
6596
|
var player = _step.value;
|
|
6623
6597
|
|
|
6624
6598
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6625
|
-
players.push(
|
|
6599
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6626
6600
|
key: player.Player.displayName,
|
|
6627
6601
|
activePlayer: player.Player,
|
|
6628
6602
|
url: player.url,
|
|
@@ -6634,9 +6608,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6634
6608
|
}
|
|
6635
6609
|
}
|
|
6636
6610
|
} catch (err) {
|
|
6637
|
-
|
|
6611
|
+
_didIteratorError = true;
|
|
6612
|
+
_iteratorError = err;
|
|
6638
6613
|
} finally {
|
|
6639
|
-
|
|
6614
|
+
try {
|
|
6615
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6616
|
+
_iterator["return"]();
|
|
6617
|
+
}
|
|
6618
|
+
} finally {
|
|
6619
|
+
if (_didIteratorError) {
|
|
6620
|
+
throw _iteratorError;
|
|
6621
|
+
}
|
|
6622
|
+
}
|
|
6640
6623
|
}
|
|
6641
6624
|
|
|
6642
6625
|
return players;
|
|
@@ -6712,7 +6695,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6712
6695
|
});
|
|
6713
6696
|
exports["default"] = void 0;
|
|
6714
6697
|
|
|
6715
|
-
var _react = _interopRequireWildcard(React__default
|
|
6698
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6716
6699
|
|
|
6717
6700
|
|
|
6718
6701
|
|
|
@@ -6760,17 +6743,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6760
6743
|
|
|
6761
6744
|
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); }
|
|
6762
6745
|
|
|
6763
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6764
|
-
|
|
6765
|
-
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."); }
|
|
6746
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6766
6747
|
|
|
6767
|
-
function
|
|
6748
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6768
6749
|
|
|
6769
|
-
function _iterableToArray(iter) { if (
|
|
6750
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6770
6751
|
|
|
6771
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6772
|
-
|
|
6773
|
-
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; }
|
|
6752
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
6774
6753
|
|
|
6775
6754
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6776
6755
|
|
|
@@ -6778,16 +6757,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6778
6757
|
|
|
6779
6758
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6780
6759
|
|
|
6781
|
-
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); }; }
|
|
6782
|
-
|
|
6783
6760
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6784
6761
|
|
|
6785
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6786
|
-
|
|
6787
|
-
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; } }
|
|
6788
|
-
|
|
6789
6762
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6790
6763
|
|
|
6764
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6765
|
+
|
|
6791
6766
|
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); }
|
|
6792
6767
|
|
|
6793
6768
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6797,12 +6772,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6797
6772
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6798
6773
|
var customPlayers = [];
|
|
6799
6774
|
|
|
6800
|
-
var ReactPlayer =
|
|
6775
|
+
var ReactPlayer =
|
|
6776
|
+
/*#__PURE__*/
|
|
6777
|
+
function (_Component) {
|
|
6801
6778
|
_inherits(ReactPlayer, _Component);
|
|
6802
6779
|
|
|
6803
|
-
var _super = _createSuper(ReactPlayer);
|
|
6804
|
-
|
|
6805
6780
|
function ReactPlayer() {
|
|
6781
|
+
var _getPrototypeOf2;
|
|
6782
|
+
|
|
6806
6783
|
var _this;
|
|
6807
6784
|
|
|
6808
6785
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6811,7 +6788,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6811
6788
|
args[_key] = arguments[_key];
|
|
6812
6789
|
}
|
|
6813
6790
|
|
|
6814
|
-
_this =
|
|
6791
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6815
6792
|
|
|
6816
6793
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6817
6794
|
|
|
@@ -6922,7 +6899,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6922
6899
|
key: "renderActivePlayer",
|
|
6923
6900
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6924
6901
|
if (!url) return null;
|
|
6925
|
-
return
|
|
6902
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6926
6903
|
key: activePlayer.displayName,
|
|
6927
6904
|
ref: this.activePlayerRef,
|
|
6928
6905
|
config: this.config,
|
|
@@ -6959,14 +6936,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6959
6936
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6960
6937
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6961
6938
|
|
|
6962
|
-
var preview =
|
|
6939
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6963
6940
|
url: url,
|
|
6964
6941
|
light: light,
|
|
6965
6942
|
playIcon: playIcon,
|
|
6966
6943
|
onClick: this.handleClickPreview
|
|
6967
6944
|
});
|
|
6968
6945
|
|
|
6969
|
-
return
|
|
6946
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6970
6947
|
ref: this.wrapperRef,
|
|
6971
6948
|
style: _objectSpread({}, style, {
|
|
6972
6949
|
width: width,
|
|
@@ -7026,20 +7003,20 @@ var Audio = function Audio(_ref) {
|
|
|
7026
7003
|
var node = _ref.node;
|
|
7027
7004
|
|
|
7028
7005
|
if (node.uploadAudio) {
|
|
7029
|
-
return React__default
|
|
7006
|
+
return React__default.createElement(
|
|
7030
7007
|
'div',
|
|
7031
7008
|
{ className: 'audio d-block text-center mb-3' },
|
|
7032
|
-
React__default
|
|
7009
|
+
React__default.createElement(
|
|
7033
7010
|
'audio',
|
|
7034
7011
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7035
|
-
React__default
|
|
7036
|
-
React__default
|
|
7012
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7013
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7037
7014
|
'Your browser does not support the audio element.'
|
|
7038
7015
|
),
|
|
7039
|
-
node.caption && React__default
|
|
7016
|
+
node.caption && React__default.createElement(
|
|
7040
7017
|
'p',
|
|
7041
7018
|
{ style: { fontSize: '.9rem' } },
|
|
7042
|
-
React__default
|
|
7019
|
+
React__default.createElement(
|
|
7043
7020
|
'em',
|
|
7044
7021
|
null,
|
|
7045
7022
|
node.caption
|
|
@@ -7049,15 +7026,15 @@ var Audio = function Audio(_ref) {
|
|
|
7049
7026
|
} else if (node.audioFilePth) {
|
|
7050
7027
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7051
7028
|
if (hostname === 'embeds.audioboom.com') {
|
|
7052
|
-
return React__default
|
|
7029
|
+
return React__default.createElement(
|
|
7053
7030
|
'div',
|
|
7054
7031
|
null,
|
|
7055
|
-
React__default
|
|
7032
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7056
7033
|
' ',
|
|
7057
|
-
node.caption && React__default
|
|
7034
|
+
node.caption && React__default.createElement(
|
|
7058
7035
|
'p',
|
|
7059
7036
|
{ style: { fontSize: '.9rem' } },
|
|
7060
|
-
React__default
|
|
7037
|
+
React__default.createElement(
|
|
7061
7038
|
'em',
|
|
7062
7039
|
null,
|
|
7063
7040
|
node.caption
|
|
@@ -7065,14 +7042,14 @@ var Audio = function Audio(_ref) {
|
|
|
7065
7042
|
)
|
|
7066
7043
|
);
|
|
7067
7044
|
}
|
|
7068
|
-
return React__default
|
|
7045
|
+
return React__default.createElement(
|
|
7069
7046
|
'div',
|
|
7070
7047
|
{ className: 'audio' },
|
|
7071
|
-
React__default
|
|
7072
|
-
node.caption && React__default
|
|
7048
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7049
|
+
node.caption && React__default.createElement(
|
|
7073
7050
|
'p',
|
|
7074
7051
|
{ style: { fontSize: '.9rem' } },
|
|
7075
|
-
React__default
|
|
7052
|
+
React__default.createElement(
|
|
7076
7053
|
'em',
|
|
7077
7054
|
null,
|
|
7078
7055
|
node.caption
|
|
@@ -7090,34 +7067,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7090
7067
|
var profileImage = arguments[6];
|
|
7091
7068
|
|
|
7092
7069
|
if (authorName && authorURL) {
|
|
7093
|
-
return React__default
|
|
7070
|
+
return React__default.createElement(
|
|
7094
7071
|
'span',
|
|
7095
7072
|
null,
|
|
7096
|
-
React__default
|
|
7073
|
+
React__default.createElement(
|
|
7097
7074
|
'a',
|
|
7098
7075
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7099
7076
|
authorName
|
|
7100
7077
|
),
|
|
7101
|
-
React__default
|
|
7078
|
+
React__default.createElement(
|
|
7102
7079
|
reactBootstrap.Card,
|
|
7103
7080
|
{ className: 'author-details-card-' + index },
|
|
7104
|
-
React__default
|
|
7081
|
+
React__default.createElement(
|
|
7105
7082
|
reactBootstrap.Row,
|
|
7106
7083
|
null,
|
|
7107
|
-
profileImage && React__default
|
|
7084
|
+
profileImage && React__default.createElement(
|
|
7108
7085
|
reactBootstrap.Col,
|
|
7109
7086
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7110
|
-
React__default
|
|
7087
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7111
7088
|
),
|
|
7112
|
-
React__default
|
|
7089
|
+
React__default.createElement(
|
|
7113
7090
|
reactBootstrap.Col,
|
|
7114
7091
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7115
|
-
React__default
|
|
7092
|
+
React__default.createElement(
|
|
7116
7093
|
'div',
|
|
7117
7094
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7118
7095
|
authorName
|
|
7119
7096
|
),
|
|
7120
|
-
React__default
|
|
7097
|
+
React__default.createElement(
|
|
7121
7098
|
'p',
|
|
7122
7099
|
null,
|
|
7123
7100
|
biography
|
|
@@ -7125,7 +7102,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7125
7102
|
)
|
|
7126
7103
|
)
|
|
7127
7104
|
),
|
|
7128
|
-
React__default
|
|
7105
|
+
React__default.createElement(
|
|
7129
7106
|
'style',
|
|
7130
7107
|
{ jsx: 'true' },
|
|
7131
7108
|
'\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 '
|
|
@@ -7133,7 +7110,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7133
7110
|
length !== index + 1 && ' , '
|
|
7134
7111
|
);
|
|
7135
7112
|
} else if (authorName) {
|
|
7136
|
-
return React__default
|
|
7113
|
+
return React__default.createElement(
|
|
7137
7114
|
'span',
|
|
7138
7115
|
{ key: index },
|
|
7139
7116
|
authorName,
|
|
@@ -7165,7 +7142,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7165
7142
|
}
|
|
7166
7143
|
});
|
|
7167
7144
|
|
|
7168
|
-
var builder = index.imageUrlBuilder(client);
|
|
7145
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
7169
7146
|
function urlFor(source) {
|
|
7170
7147
|
return builder.image(source);
|
|
7171
7148
|
}
|
|
@@ -7240,7 +7217,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7240
7217
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7241
7218
|
data.push({ title: vid.title, thumbnail: urlFor(vid.thumbnail.asset).url(), url: vid.url });
|
|
7242
7219
|
} else {
|
|
7243
|
-
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$
|
|
7220
|
+
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$3.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7244
7221
|
}
|
|
7245
7222
|
}
|
|
7246
7223
|
});
|
|
@@ -7293,14 +7270,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7293
7270
|
var duration = player.getDuration();
|
|
7294
7271
|
var queue = Math.floor(duration / 10);
|
|
7295
7272
|
var segment = Math.floor(current / queue);
|
|
7296
|
-
Beam.report_beam_video('Ready', main.
|
|
7297
|
-
Segment.report_video_event('Video Ready', main.
|
|
7273
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
|
|
7274
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
7298
7275
|
//autoplay
|
|
7299
7276
|
|
|
7300
7277
|
//Small pause before starting next video
|
|
7301
7278
|
setTimeout(function () {
|
|
7302
7279
|
//Youtube API to start video playing automatically
|
|
7303
|
-
var id = index$
|
|
7280
|
+
var id = index$3.getYoutubeId(vidUrl);
|
|
7304
7281
|
event.target.loadVideoById(id);
|
|
7305
7282
|
}, 1500);
|
|
7306
7283
|
};
|
|
@@ -7314,8 +7291,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7314
7291
|
var queue = Math.floor(duration / 10);
|
|
7315
7292
|
var segment = Math.floor(current / queue);
|
|
7316
7293
|
|
|
7317
|
-
Beam.report_beam_video('End', main.
|
|
7318
|
-
Segment.report_video_event('Video End', main.
|
|
7294
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment);
|
|
7295
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
7319
7296
|
setEndReported(true);
|
|
7320
7297
|
clearInterval(intervalID);
|
|
7321
7298
|
}
|
|
@@ -7365,8 +7342,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7365
7342
|
var queue = Math.floor(duration / 10);
|
|
7366
7343
|
var segment = Math.floor(current / queue);
|
|
7367
7344
|
if (!queueProgress.includes(segment)) {
|
|
7368
|
-
Beam.report_beam_video('Segment', main.
|
|
7369
|
-
Segment.report_video_event('Video Segment', main.
|
|
7345
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
|
|
7346
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
7370
7347
|
queueProgress.push(segment);
|
|
7371
7348
|
}
|
|
7372
7349
|
};
|
|
@@ -7379,8 +7356,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7379
7356
|
var queue = Math.floor(duration / 10);
|
|
7380
7357
|
var segment = Math.floor(current / queue);
|
|
7381
7358
|
|
|
7382
|
-
Beam.report_beam_video('Play', main.
|
|
7383
|
-
Segment.report_video_event('Video Play', main.
|
|
7359
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment);
|
|
7360
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
7384
7361
|
|
|
7385
7362
|
if (!playReported) {
|
|
7386
7363
|
setPlayReported(true);
|
|
@@ -7398,8 +7375,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7398
7375
|
var queue = Math.floor(duration / 10);
|
|
7399
7376
|
var segment = Math.floor(current / queue);
|
|
7400
7377
|
|
|
7401
|
-
Beam.report_beam_video('Pause', main.
|
|
7402
|
-
Segment.report_video_event('Video Pause', main.
|
|
7378
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
|
|
7379
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
7403
7380
|
};
|
|
7404
7381
|
|
|
7405
7382
|
// Youtube Options
|
|
@@ -7410,44 +7387,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7410
7387
|
}
|
|
7411
7388
|
};
|
|
7412
7389
|
|
|
7413
|
-
return React__default
|
|
7390
|
+
return React__default.createElement(
|
|
7414
7391
|
'div',
|
|
7415
7392
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7416
|
-
React__default
|
|
7393
|
+
React__default.createElement(
|
|
7417
7394
|
'div',
|
|
7418
7395
|
{ className: 'mt-2 mb-5' },
|
|
7419
|
-
series && React__default
|
|
7396
|
+
series && React__default.createElement(
|
|
7420
7397
|
'div',
|
|
7421
7398
|
{ style: { fontSize: '0.9rem' } },
|
|
7422
7399
|
article.title,
|
|
7423
7400
|
' - Episode ',
|
|
7424
7401
|
series
|
|
7425
7402
|
),
|
|
7426
|
-
Videos[series - 1] && React__default
|
|
7403
|
+
Videos[series - 1] && React__default.createElement(
|
|
7427
7404
|
'h1',
|
|
7428
7405
|
{ className: 'mb-3' },
|
|
7429
7406
|
Videos[series - 1].title
|
|
7430
7407
|
),
|
|
7431
|
-
React__default
|
|
7408
|
+
React__default.createElement(
|
|
7432
7409
|
'div',
|
|
7433
7410
|
null,
|
|
7434
7411
|
moment.moment(article.published).format('LL')
|
|
7435
7412
|
),
|
|
7436
|
-
React__default
|
|
7413
|
+
React__default.createElement(
|
|
7437
7414
|
'div',
|
|
7438
7415
|
{ className: 'mb-3' },
|
|
7439
7416
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7440
|
-
return React__default
|
|
7417
|
+
return React__default.createElement(
|
|
7441
7418
|
'span',
|
|
7442
7419
|
{ key: index },
|
|
7443
7420
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7444
7421
|
);
|
|
7445
7422
|
})
|
|
7446
7423
|
),
|
|
7447
|
-
React__default
|
|
7424
|
+
React__default.createElement(
|
|
7448
7425
|
'p',
|
|
7449
7426
|
null,
|
|
7450
|
-
React__default
|
|
7427
|
+
React__default.createElement(SocialShare, {
|
|
7451
7428
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7452
7429
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7453
7430
|
shareVia: meta.shareVia,
|
|
@@ -7462,22 +7439,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7462
7439
|
hideFacebook: meta.hideFBShare
|
|
7463
7440
|
})
|
|
7464
7441
|
),
|
|
7465
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7442
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7466
7443
|
'p',
|
|
7467
7444
|
{ className: 'mb-3' },
|
|
7468
|
-
React__default
|
|
7445
|
+
React__default.createElement(
|
|
7469
7446
|
'em',
|
|
7470
7447
|
null,
|
|
7471
7448
|
Videos[series - 1].intro
|
|
7472
7449
|
)
|
|
7473
7450
|
)
|
|
7474
7451
|
),
|
|
7475
|
-
React__default
|
|
7452
|
+
React__default.createElement(
|
|
7476
7453
|
'div',
|
|
7477
7454
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7478
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7455
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7479
7456
|
className: 'fluid-iframe',
|
|
7480
|
-
videoId: index$
|
|
7457
|
+
videoId: index$3.getYoutubeId(vidUrl),
|
|
7481
7458
|
opts: opts,
|
|
7482
7459
|
onReady: handleOnReady,
|
|
7483
7460
|
onPlay: handleOnPlay,
|
|
@@ -7486,10 +7463,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7486
7463
|
return handleOnEnd(e);
|
|
7487
7464
|
}
|
|
7488
7465
|
}),
|
|
7489
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7490
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7491
|
-
React__default
|
|
7492
|
-
series && React__default
|
|
7466
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7467
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7468
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7469
|
+
series && React__default.createElement(
|
|
7493
7470
|
'div',
|
|
7494
7471
|
{
|
|
7495
7472
|
className: 'vid-series',
|
|
@@ -7499,10 +7476,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7499
7476
|
maxHeight: '100%',
|
|
7500
7477
|
paddingBottom: '0'
|
|
7501
7478
|
} },
|
|
7502
|
-
React__default
|
|
7479
|
+
React__default.createElement(
|
|
7503
7480
|
'p',
|
|
7504
7481
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7505
|
-
React__default
|
|
7482
|
+
React__default.createElement(
|
|
7506
7483
|
'b',
|
|
7507
7484
|
{ style: { fontSize: '1.25em' } },
|
|
7508
7485
|
'Now Playing:'
|
|
@@ -7510,16 +7487,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7510
7487
|
' ',
|
|
7511
7488
|
seriesData[series ? series - 1 : 0].title
|
|
7512
7489
|
),
|
|
7513
|
-
vidUrl && React__default
|
|
7490
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7514
7491
|
)
|
|
7515
7492
|
),
|
|
7516
|
-
React__default
|
|
7517
|
-
React__default
|
|
7493
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7494
|
+
React__default.createElement(
|
|
7518
7495
|
'div',
|
|
7519
7496
|
{ className: 'vid-text' },
|
|
7520
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7497
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7521
7498
|
),
|
|
7522
|
-
React__default
|
|
7499
|
+
React__default.createElement(
|
|
7523
7500
|
'style',
|
|
7524
7501
|
{ jsx: 'true' },
|
|
7525
7502
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7527,14 +7504,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7527
7504
|
);
|
|
7528
7505
|
};
|
|
7529
7506
|
|
|
7530
|
-
var Poll
|
|
7531
|
-
var node = _ref.node
|
|
7532
|
-
_ref.client
|
|
7533
|
-
_ref.pageview
|
|
7534
|
-
_ref.videoAccountIDs
|
|
7535
|
-
|
|
7536
|
-
_ref.showVotes
|
|
7537
|
-
|
|
7507
|
+
var Poll = function Poll(_ref) {
|
|
7508
|
+
var node = _ref.node,
|
|
7509
|
+
client = _ref.client,
|
|
7510
|
+
pageview = _ref.pageview,
|
|
7511
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7512
|
+
onVote = _ref.onVote,
|
|
7513
|
+
_ref$showVotes = _ref.showVotes,
|
|
7514
|
+
getSerializers = _ref.getSerializers;
|
|
7538
7515
|
|
|
7539
7516
|
var _useState = React.useState(null),
|
|
7540
7517
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7572,67 +7549,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7572
7549
|
return acc;
|
|
7573
7550
|
}
|
|
7574
7551
|
}, 0);
|
|
7575
|
-
return React__default
|
|
7576
|
-
React__default
|
|
7552
|
+
return React__default.createElement(
|
|
7553
|
+
React__default.Fragment,
|
|
7577
7554
|
null,
|
|
7578
|
-
question && React__default
|
|
7555
|
+
question && React__default.createElement(
|
|
7579
7556
|
'p',
|
|
7580
7557
|
{ className: 'font-weight-bold' },
|
|
7581
7558
|
question
|
|
7582
7559
|
),
|
|
7583
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7560
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7584
7561
|
'form',
|
|
7585
7562
|
{ onSubmit: function onSubmit(e) {
|
|
7586
7563
|
return onSubmitPoll(e);
|
|
7587
7564
|
} },
|
|
7588
7565
|
choices && choices.map(function (choice) {
|
|
7589
|
-
return React__default
|
|
7566
|
+
return React__default.createElement(
|
|
7590
7567
|
'div',
|
|
7591
7568
|
{ key: choice._key },
|
|
7592
|
-
React__default
|
|
7569
|
+
React__default.createElement(
|
|
7593
7570
|
'label',
|
|
7594
7571
|
{ className: 'pl-2' },
|
|
7595
|
-
React__default
|
|
7572
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7596
7573
|
return setSelectedChoice(e.target.value);
|
|
7597
7574
|
} }),
|
|
7598
7575
|
' ' + choice.choiceText
|
|
7599
7576
|
)
|
|
7600
7577
|
);
|
|
7601
7578
|
}),
|
|
7602
|
-
React__default
|
|
7579
|
+
React__default.createElement(
|
|
7603
7580
|
reactBootstrap.Button,
|
|
7604
7581
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7605
7582
|
'Vote'
|
|
7606
7583
|
)
|
|
7607
7584
|
),
|
|
7608
|
-
React__default
|
|
7585
|
+
React__default.createElement(
|
|
7609
7586
|
'div',
|
|
7610
7587
|
{ className: 'progress-container' },
|
|
7611
7588
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7612
7589
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7613
|
-
return React__default
|
|
7590
|
+
return React__default.createElement(
|
|
7614
7591
|
'div',
|
|
7615
7592
|
{ key: choice._key, className: 'mb-3' },
|
|
7616
|
-
React__default
|
|
7593
|
+
React__default.createElement(
|
|
7617
7594
|
'div',
|
|
7618
7595
|
{ className: 'correct-answer' },
|
|
7619
|
-
React__default
|
|
7596
|
+
React__default.createElement(
|
|
7620
7597
|
'div',
|
|
7621
7598
|
null,
|
|
7622
7599
|
choice.choiceText
|
|
7623
7600
|
),
|
|
7624
|
-
choice.choiceAnswer === true && React__default
|
|
7601
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7625
7602
|
'div',
|
|
7626
7603
|
null,
|
|
7627
|
-
React__default
|
|
7604
|
+
React__default.createElement(
|
|
7628
7605
|
'span',
|
|
7629
7606
|
{ style: { color: 'limegreen' } },
|
|
7630
7607
|
'Correct!'
|
|
7631
7608
|
)
|
|
7632
7609
|
)
|
|
7633
7610
|
),
|
|
7634
|
-
React__default
|
|
7635
|
-
React__default
|
|
7611
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7612
|
+
React__default.createElement(
|
|
7636
7613
|
'span',
|
|
7637
7614
|
{ className: 'float-right' },
|
|
7638
7615
|
percentage,
|
|
@@ -7643,14 +7620,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7643
7620
|
);
|
|
7644
7621
|
})
|
|
7645
7622
|
),
|
|
7646
|
-
showAnswer && React__default
|
|
7623
|
+
showAnswer && React__default.createElement(
|
|
7647
7624
|
'h4',
|
|
7648
7625
|
{ className: 'text-center small p-3' },
|
|
7649
7626
|
'Total Votes: ',
|
|
7650
7627
|
choicesTotalCount
|
|
7651
7628
|
),
|
|
7652
|
-
showAnswer && response && React__default
|
|
7653
|
-
React__default
|
|
7629
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7630
|
+
React__default.createElement(
|
|
7654
7631
|
'style',
|
|
7655
7632
|
{ jsx: 'true' },
|
|
7656
7633
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7668,22 +7645,22 @@ _toObject._export(_toObject._export.S, 'Object', {
|
|
|
7668
7645
|
}
|
|
7669
7646
|
});
|
|
7670
7647
|
|
|
7671
|
-
var values
|
|
7648
|
+
var values = _toObject._core.Object.values;
|
|
7672
7649
|
|
|
7673
|
-
var values = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7674
|
-
module.exports = { "default": values
|
|
7650
|
+
var values$1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7651
|
+
module.exports = { "default": values, __esModule: true };
|
|
7675
7652
|
});
|
|
7676
7653
|
|
|
7677
|
-
var _Object$values = _commonjsHelpers.unwrapExports(values);
|
|
7654
|
+
var _Object$values = _commonjsHelpers.unwrapExports(values$1);
|
|
7678
7655
|
|
|
7679
|
-
var Poll = function Poll(_ref) {
|
|
7680
|
-
var node = _ref.node
|
|
7681
|
-
_ref.client
|
|
7682
|
-
_ref.pageview
|
|
7683
|
-
_ref.videoAccountIDs
|
|
7684
|
-
|
|
7685
|
-
_ref.showVotes
|
|
7686
|
-
|
|
7656
|
+
var Poll$1 = function Poll(_ref) {
|
|
7657
|
+
var node = _ref.node,
|
|
7658
|
+
client = _ref.client,
|
|
7659
|
+
pageview = _ref.pageview,
|
|
7660
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7661
|
+
onVote = _ref.onVote,
|
|
7662
|
+
_ref$showVotes = _ref.showVotes,
|
|
7663
|
+
getSerializers = _ref.getSerializers;
|
|
7687
7664
|
|
|
7688
7665
|
var _useState = React.useState(null),
|
|
7689
7666
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7749,67 +7726,67 @@ var Poll = function Poll(_ref) {
|
|
|
7749
7726
|
return acc;
|
|
7750
7727
|
}
|
|
7751
7728
|
}, 0);
|
|
7752
|
-
return React__default
|
|
7753
|
-
React__default
|
|
7729
|
+
return React__default.createElement(
|
|
7730
|
+
React__default.Fragment,
|
|
7754
7731
|
null,
|
|
7755
|
-
question && React__default
|
|
7732
|
+
question && React__default.createElement(
|
|
7756
7733
|
'p',
|
|
7757
7734
|
{ className: 'font-weight-bold' },
|
|
7758
7735
|
question
|
|
7759
7736
|
),
|
|
7760
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7737
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7761
7738
|
'form',
|
|
7762
7739
|
{ onSubmit: function onSubmit(e) {
|
|
7763
7740
|
return onSubmitPoll(e);
|
|
7764
7741
|
} },
|
|
7765
7742
|
choices && choices.map(function (choice) {
|
|
7766
|
-
return React__default
|
|
7743
|
+
return React__default.createElement(
|
|
7767
7744
|
'div',
|
|
7768
7745
|
{ key: choice._key },
|
|
7769
|
-
React__default
|
|
7746
|
+
React__default.createElement(
|
|
7770
7747
|
'label',
|
|
7771
7748
|
{ className: 'pl-2' },
|
|
7772
|
-
React__default
|
|
7749
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7773
7750
|
return setSelectedChoice(e.target.value);
|
|
7774
7751
|
} }),
|
|
7775
7752
|
' ' + choice.choiceText
|
|
7776
7753
|
)
|
|
7777
7754
|
);
|
|
7778
7755
|
}),
|
|
7779
|
-
React__default
|
|
7756
|
+
React__default.createElement(
|
|
7780
7757
|
reactBootstrap.Button,
|
|
7781
7758
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7782
7759
|
'Vote'
|
|
7783
7760
|
)
|
|
7784
7761
|
),
|
|
7785
|
-
React__default
|
|
7762
|
+
React__default.createElement(
|
|
7786
7763
|
'div',
|
|
7787
7764
|
{ className: 'progress-container' },
|
|
7788
7765
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7789
7766
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7790
|
-
return React__default
|
|
7767
|
+
return React__default.createElement(
|
|
7791
7768
|
'div',
|
|
7792
7769
|
{ key: choice._key, className: 'mb-3' },
|
|
7793
|
-
React__default
|
|
7770
|
+
React__default.createElement(
|
|
7794
7771
|
'div',
|
|
7795
7772
|
{ className: 'correct-answer' },
|
|
7796
|
-
React__default
|
|
7773
|
+
React__default.createElement(
|
|
7797
7774
|
'div',
|
|
7798
7775
|
null,
|
|
7799
7776
|
choice.choiceText
|
|
7800
7777
|
),
|
|
7801
|
-
choice.choiceAnswer === true && React__default
|
|
7778
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7802
7779
|
'div',
|
|
7803
7780
|
null,
|
|
7804
|
-
React__default
|
|
7781
|
+
React__default.createElement(
|
|
7805
7782
|
'span',
|
|
7806
7783
|
{ style: { color: 'limegreen' } },
|
|
7807
7784
|
'Correct!'
|
|
7808
7785
|
)
|
|
7809
7786
|
)
|
|
7810
7787
|
),
|
|
7811
|
-
React__default
|
|
7812
|
-
React__default
|
|
7788
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7789
|
+
React__default.createElement(
|
|
7813
7790
|
'span',
|
|
7814
7791
|
{ className: 'float-right' },
|
|
7815
7792
|
percentage,
|
|
@@ -7820,14 +7797,14 @@ var Poll = function Poll(_ref) {
|
|
|
7820
7797
|
);
|
|
7821
7798
|
})
|
|
7822
7799
|
),
|
|
7823
|
-
showAnswer && React__default
|
|
7800
|
+
showAnswer && React__default.createElement(
|
|
7824
7801
|
'h4',
|
|
7825
7802
|
{ className: 'text-center small p-3' },
|
|
7826
7803
|
'Total Votes: ',
|
|
7827
7804
|
choicesTotalCount
|
|
7828
7805
|
),
|
|
7829
|
-
showAnswer && response && React__default
|
|
7830
|
-
React__default
|
|
7806
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7807
|
+
React__default.createElement(
|
|
7831
7808
|
'style',
|
|
7832
7809
|
{ jsx: 'true' },
|
|
7833
7810
|
'\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 '
|
|
@@ -7835,7 +7812,7 @@ var Poll = function Poll(_ref) {
|
|
|
7835
7812
|
);
|
|
7836
7813
|
};
|
|
7837
7814
|
|
|
7838
|
-
var numberOfPaginations = main.
|
|
7815
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7839
7816
|
|
|
7840
7817
|
var Quiz = function Quiz(_ref) {
|
|
7841
7818
|
var quizzes = _ref.quizzes,
|
|
@@ -7899,7 +7876,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7899
7876
|
setEndIndex(numberOfPaginations - 1);
|
|
7900
7877
|
newPath = window.location.pathname;
|
|
7901
7878
|
window.history.pushState(null, null, newPath);
|
|
7902
|
-
index
|
|
7879
|
+
index.lib_3.refresh();
|
|
7903
7880
|
if (pageview) pageview(newPath);
|
|
7904
7881
|
break;
|
|
7905
7882
|
case 'last':
|
|
@@ -7908,7 +7885,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7908
7885
|
setEndIndex(pageCount - pageCount % numberOfPaginations + numberOfPaginations - 1);
|
|
7909
7886
|
newPath = window.location.pathname + '?page=' + pageCount;
|
|
7910
7887
|
window.history.pushState(null, null, newPath);
|
|
7911
|
-
index
|
|
7888
|
+
index.lib_3.refresh();
|
|
7912
7889
|
if (pageview) pageview(newPath);
|
|
7913
7890
|
break;
|
|
7914
7891
|
case 'next':
|
|
@@ -7919,7 +7896,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7919
7896
|
}
|
|
7920
7897
|
newPath = window.location.pathname + '?page=' + (currentPage + 1);
|
|
7921
7898
|
window.history.pushState(null, null, newPath);
|
|
7922
|
-
index
|
|
7899
|
+
index.lib_3.refresh();
|
|
7923
7900
|
if (pageview) pageview(newPath);
|
|
7924
7901
|
break;
|
|
7925
7902
|
case 'prev':
|
|
@@ -7930,14 +7907,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
7930
7907
|
}
|
|
7931
7908
|
newPath = window.location.pathname + '?page=' + (currentPage - 1);
|
|
7932
7909
|
window.history.pushState(null, null, newPath);
|
|
7933
|
-
index
|
|
7910
|
+
index.lib_3.refresh();
|
|
7934
7911
|
if (pageview) pageview(newPath);
|
|
7935
7912
|
break;
|
|
7936
7913
|
default:
|
|
7937
7914
|
setCurrentPage(control);
|
|
7938
7915
|
newPath = window.location.pathname + '?page=' + control;
|
|
7939
7916
|
window.history.pushState(null, null, newPath);
|
|
7940
|
-
index
|
|
7917
|
+
index.lib_3.refresh();
|
|
7941
7918
|
if (pageview) pageview(newPath);
|
|
7942
7919
|
}
|
|
7943
7920
|
};
|
|
@@ -7953,34 +7930,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7953
7930
|
};
|
|
7954
7931
|
|
|
7955
7932
|
var renderPagination = function renderPagination() {
|
|
7956
|
-
return React__default
|
|
7957
|
-
|
|
7958
|
-
{ className: 'p-0 m-0', size: main.
|
|
7959
|
-
React__default
|
|
7933
|
+
return React__default.createElement(
|
|
7934
|
+
Pagination,
|
|
7935
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7936
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7960
7937
|
return changePage('first');
|
|
7961
7938
|
}, disabled: currentPage === 1 }),
|
|
7962
|
-
React__default
|
|
7939
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7963
7940
|
return changePage('prev');
|
|
7964
7941
|
}, disabled: currentPage === 1 }),
|
|
7965
|
-
React__default
|
|
7942
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7966
7943
|
return renderNewPages('prev');
|
|
7967
7944
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7968
7945
|
pages.map(function (page) {
|
|
7969
|
-
return React__default
|
|
7970
|
-
|
|
7946
|
+
return React__default.createElement(
|
|
7947
|
+
Pagination.Item,
|
|
7971
7948
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7972
7949
|
return changePage(page);
|
|
7973
7950
|
} },
|
|
7974
7951
|
page
|
|
7975
7952
|
);
|
|
7976
7953
|
}),
|
|
7977
|
-
React__default
|
|
7954
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7978
7955
|
return renderNewPages('next');
|
|
7979
7956
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7980
|
-
React__default
|
|
7957
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7981
7958
|
return changePage('next');
|
|
7982
7959
|
}, disabled: currentPage === pageCount }),
|
|
7983
|
-
React__default
|
|
7960
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7984
7961
|
return changePage('last');
|
|
7985
7962
|
}, disabled: currentPage === pageCount })
|
|
7986
7963
|
);
|
|
@@ -8063,51 +8040,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8063
8040
|
}
|
|
8064
8041
|
};
|
|
8065
8042
|
|
|
8066
|
-
return React__default
|
|
8067
|
-
React__default
|
|
8043
|
+
return React__default.createElement(
|
|
8044
|
+
React__default.Fragment,
|
|
8068
8045
|
null,
|
|
8069
|
-
quizzes[currentPage - 1] && React__default
|
|
8070
|
-
React__default
|
|
8046
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8047
|
+
React__default.Fragment,
|
|
8071
8048
|
null,
|
|
8072
|
-
React__default
|
|
8073
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default
|
|
8049
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8050
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8074
8051
|
'form',
|
|
8075
8052
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8076
8053
|
return e.preventDefault();
|
|
8077
8054
|
} },
|
|
8078
8055
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8079
|
-
return React__default
|
|
8056
|
+
return React__default.createElement(
|
|
8080
8057
|
'div',
|
|
8081
8058
|
{ key: answer._key },
|
|
8082
|
-
React__default
|
|
8059
|
+
React__default.createElement(
|
|
8083
8060
|
'label',
|
|
8084
8061
|
{ className: 'pl-2' },
|
|
8085
|
-
quizzes[currentPage - 1].multiAnswer ? React__default
|
|
8062
|
+
quizzes[currentPage - 1].multiAnswer ? React__default.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React__default.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8086
8063
|
' ' + answer.answerText
|
|
8087
8064
|
)
|
|
8088
8065
|
);
|
|
8089
8066
|
})
|
|
8090
8067
|
)
|
|
8091
8068
|
),
|
|
8092
|
-
!showAnswer && React__default
|
|
8093
|
-
|
|
8069
|
+
!showAnswer && React__default.createElement(
|
|
8070
|
+
Button,
|
|
8094
8071
|
{ onClick: function onClick() {
|
|
8095
8072
|
return checkAnswers();
|
|
8096
8073
|
}, variant: 'info', block: true },
|
|
8097
8074
|
'Please click here for answer'
|
|
8098
8075
|
),
|
|
8099
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
8100
|
-
React__default
|
|
8076
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8077
|
+
React__default.Fragment,
|
|
8101
8078
|
null,
|
|
8102
|
-
React__default
|
|
8079
|
+
React__default.createElement(
|
|
8103
8080
|
'h4',
|
|
8104
8081
|
null,
|
|
8105
8082
|
'Answer:'
|
|
8106
8083
|
),
|
|
8107
|
-
quizzes[currentPage - 1].answer && React__default
|
|
8084
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8108
8085
|
),
|
|
8109
|
-
React__default
|
|
8110
|
-
pageCount > 1 && React__default
|
|
8086
|
+
React__default.createElement('br', null),
|
|
8087
|
+
pageCount > 1 && React__default.createElement(
|
|
8111
8088
|
'div',
|
|
8112
8089
|
{ className: 'd-flex justify-content-center' },
|
|
8113
8090
|
renderPagination()
|
|
@@ -8118,19 +8095,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8118
8095
|
var Leads = function Leads(_ref) {
|
|
8119
8096
|
var url = _ref.url;
|
|
8120
8097
|
|
|
8121
|
-
return React__default
|
|
8098
|
+
return React__default.createElement(
|
|
8122
8099
|
'div',
|
|
8123
8100
|
{ className: 'd-block text-center mb-3' },
|
|
8124
|
-
url && React__default
|
|
8101
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8125
8102
|
);
|
|
8126
8103
|
};
|
|
8127
8104
|
|
|
8128
|
-
var urlFor$
|
|
8129
|
-
var builder = index.imageUrlBuilder(client);
|
|
8105
|
+
var urlFor$1 = function urlFor(source, client) {
|
|
8106
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8130
8107
|
return builder.image(source).auto('format');
|
|
8131
8108
|
};
|
|
8132
8109
|
|
|
8133
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8110
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8134
8111
|
var slides = _ref.node.slides,
|
|
8135
8112
|
client = _ref.client,
|
|
8136
8113
|
pageview = _ref.pageview,
|
|
@@ -8142,8 +8119,8 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8142
8119
|
|
|
8143
8120
|
var _useState = React.useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8144
8121
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
8145
|
-
carouselIndex = _useState2[0]
|
|
8146
|
-
_useState2[1];
|
|
8122
|
+
carouselIndex = _useState2[0],
|
|
8123
|
+
setCarouselIndex = _useState2[1];
|
|
8147
8124
|
|
|
8148
8125
|
// useEffect(() => {
|
|
8149
8126
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8156,7 +8133,7 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8156
8133
|
// }, [router])
|
|
8157
8134
|
|
|
8158
8135
|
React.useEffect(function () {
|
|
8159
|
-
index
|
|
8136
|
+
index.lib_3.refresh();
|
|
8160
8137
|
if (pageview) pageview(router.asPath);
|
|
8161
8138
|
}, [router]);
|
|
8162
8139
|
|
|
@@ -8169,42 +8146,42 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8169
8146
|
}
|
|
8170
8147
|
};
|
|
8171
8148
|
|
|
8172
|
-
return React__default
|
|
8149
|
+
return React__default.createElement(
|
|
8173
8150
|
'div',
|
|
8174
8151
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8175
|
-
React__default
|
|
8152
|
+
React__default.createElement(
|
|
8176
8153
|
reactBootstrap.Carousel,
|
|
8177
8154
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8178
8155
|
slides && slides.map(function (slide) {
|
|
8179
8156
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8180
|
-
return React__default
|
|
8157
|
+
return React__default.createElement(
|
|
8181
8158
|
reactBootstrap.Carousel.Item,
|
|
8182
8159
|
{ key: slide._key },
|
|
8183
|
-
React__default
|
|
8160
|
+
React__default.createElement(
|
|
8184
8161
|
'a',
|
|
8185
8162
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8186
|
-
React__default
|
|
8187
|
-
index$
|
|
8163
|
+
React__default.createElement(
|
|
8164
|
+
index$2.LazyLoad,
|
|
8188
8165
|
null,
|
|
8189
|
-
React__default
|
|
8166
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8190
8167
|
)
|
|
8191
8168
|
),
|
|
8192
|
-
React__default
|
|
8169
|
+
React__default.createElement(
|
|
8193
8170
|
'div',
|
|
8194
8171
|
{ className: 'p-2' },
|
|
8195
|
-
slide.slideshowImage.caption && React__default
|
|
8172
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8196
8173
|
'h3',
|
|
8197
8174
|
{ style: { padding: '0px' } },
|
|
8198
8175
|
slide.slideshowImage.caption
|
|
8199
8176
|
),
|
|
8200
|
-
slide.description && React__default
|
|
8177
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8201
8178
|
)
|
|
8202
8179
|
);
|
|
8203
8180
|
}
|
|
8204
8181
|
return null;
|
|
8205
8182
|
})
|
|
8206
8183
|
),
|
|
8207
|
-
React__default
|
|
8184
|
+
React__default.createElement(
|
|
8208
8185
|
'style',
|
|
8209
8186
|
{ jsx: 'true' },
|
|
8210
8187
|
'\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 '
|
|
@@ -8223,10 +8200,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8223
8200
|
sizes = _props$node.sizes,
|
|
8224
8201
|
sizeMapping = _props$node.sizeMapping;
|
|
8225
8202
|
|
|
8226
|
-
return React__default
|
|
8203
|
+
return React__default.createElement(
|
|
8227
8204
|
'div',
|
|
8228
8205
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8229
|
-
React__default
|
|
8206
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8230
8207
|
);
|
|
8231
8208
|
};
|
|
8232
8209
|
|
|
@@ -8237,20 +8214,20 @@ var Formstack = function Formstack(_ref) {
|
|
|
8237
8214
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8238
8215
|
|
|
8239
8216
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8240
|
-
return React__default
|
|
8217
|
+
return React__default.createElement(
|
|
8241
8218
|
'section',
|
|
8242
8219
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8243
|
-
Caption && React__default
|
|
8220
|
+
Caption && React__default.createElement(
|
|
8244
8221
|
'h4',
|
|
8245
8222
|
{ className: 'formstack-caption' },
|
|
8246
8223
|
Caption
|
|
8247
8224
|
),
|
|
8248
|
-
React__default
|
|
8225
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8249
8226
|
);
|
|
8250
8227
|
};
|
|
8251
8228
|
|
|
8252
8229
|
var urlFor$2 = function urlFor(source, client) {
|
|
8253
|
-
var builder = index.imageUrlBuilder(client);
|
|
8230
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8254
8231
|
return builder.image(source).auto('format');
|
|
8255
8232
|
};
|
|
8256
8233
|
var MultiMedia = function MultiMedia(props) {
|
|
@@ -8265,29 +8242,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8265
8242
|
}
|
|
8266
8243
|
});
|
|
8267
8244
|
if (medias && medias.length > 0) {
|
|
8268
|
-
return React__default
|
|
8245
|
+
return React__default.createElement(
|
|
8269
8246
|
'div',
|
|
8270
8247
|
{ className: 'multi-media-container' },
|
|
8271
|
-
React__default
|
|
8272
|
-
|
|
8248
|
+
React__default.createElement(
|
|
8249
|
+
Row,
|
|
8273
8250
|
{ noGutters: true },
|
|
8274
8251
|
medias.map(function (media) {
|
|
8275
|
-
return React__default
|
|
8276
|
-
|
|
8252
|
+
return React__default.createElement(
|
|
8253
|
+
Col,
|
|
8277
8254
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8278
|
-
React__default
|
|
8255
|
+
React__default.createElement(
|
|
8279
8256
|
'a',
|
|
8280
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8257
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8281
8258
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8282
|
-
React__default
|
|
8259
|
+
React__default.createElement(
|
|
8283
8260
|
'div',
|
|
8284
8261
|
{ className: 'multi-media-image-container' },
|
|
8285
|
-
imageBox && React__default
|
|
8286
|
-
index$
|
|
8262
|
+
imageBox && React__default.createElement(
|
|
8263
|
+
index$2.LazyLoad,
|
|
8287
8264
|
{ once: true },
|
|
8288
|
-
React__default
|
|
8265
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8289
8266
|
),
|
|
8290
|
-
media.caption && React__default
|
|
8267
|
+
media.caption && React__default.createElement(
|
|
8291
8268
|
'span',
|
|
8292
8269
|
{ className: 'multi-media-caption' },
|
|
8293
8270
|
media.caption
|
|
@@ -8297,7 +8274,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8297
8274
|
);
|
|
8298
8275
|
})
|
|
8299
8276
|
),
|
|
8300
|
-
React__default
|
|
8277
|
+
React__default.createElement(
|
|
8301
8278
|
'style',
|
|
8302
8279
|
{ jsx: 'true' },
|
|
8303
8280
|
'\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 '
|
|
@@ -8308,12 +8285,12 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8308
8285
|
};
|
|
8309
8286
|
|
|
8310
8287
|
var InscreenSensor = function (_React$Component) {
|
|
8311
|
-
inherits._inherits(InscreenSensor, _React$Component);
|
|
8288
|
+
inherits$1._inherits(InscreenSensor, _React$Component);
|
|
8312
8289
|
|
|
8313
8290
|
function InscreenSensor(props) {
|
|
8314
|
-
inherits._classCallCheck(this, InscreenSensor);
|
|
8291
|
+
inherits$1._classCallCheck(this, InscreenSensor);
|
|
8315
8292
|
|
|
8316
|
-
var _this = inherits._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8293
|
+
var _this = inherits$1._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$1._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8317
8294
|
|
|
8318
8295
|
_this.scrollHandler = function () {
|
|
8319
8296
|
var visible = _this.checkInside();
|
|
@@ -8344,12 +8321,12 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8344
8321
|
}
|
|
8345
8322
|
};
|
|
8346
8323
|
|
|
8347
|
-
_this.wraperRef = React__default
|
|
8324
|
+
_this.wraperRef = React__default.createRef();
|
|
8348
8325
|
_this.visible = false;
|
|
8349
8326
|
return _this;
|
|
8350
8327
|
}
|
|
8351
8328
|
|
|
8352
|
-
inherits._createClass(InscreenSensor, [{
|
|
8329
|
+
inherits$1._createClass(InscreenSensor, [{
|
|
8353
8330
|
key: 'componentDidMount',
|
|
8354
8331
|
value: function componentDidMount() {
|
|
8355
8332
|
this.visible = this.checkInside();
|
|
@@ -8372,7 +8349,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8372
8349
|
_props$id = _props.id,
|
|
8373
8350
|
id = _props$id === undefined ? '' : _props$id;
|
|
8374
8351
|
|
|
8375
|
-
return React__default
|
|
8352
|
+
return React__default.createElement(
|
|
8376
8353
|
'div',
|
|
8377
8354
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8378
8355
|
this.props.children
|
|
@@ -8381,7 +8358,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8381
8358
|
}]);
|
|
8382
8359
|
|
|
8383
8360
|
return InscreenSensor;
|
|
8384
|
-
}(React__default
|
|
8361
|
+
}(React__default.Component);
|
|
8385
8362
|
|
|
8386
8363
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8387
8364
|
var nodes = _ref.nodes,
|
|
@@ -8399,7 +8376,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8399
8376
|
var today = moment.moment().utc().format();
|
|
8400
8377
|
|
|
8401
8378
|
var authorPrefix = 'authors';
|
|
8402
|
-
var builder = index.imageUrlBuilder(client);
|
|
8379
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8403
8380
|
function urlFor(source) {
|
|
8404
8381
|
return builder.image(source);
|
|
8405
8382
|
}
|
|
@@ -8494,33 +8471,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8494
8471
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8495
8472
|
var showReading = show ? 'showReading' : '';
|
|
8496
8473
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8497
|
-
return React__default
|
|
8474
|
+
return React__default.createElement(
|
|
8498
8475
|
'div',
|
|
8499
8476
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8500
|
-
React__default
|
|
8477
|
+
React__default.createElement(
|
|
8501
8478
|
'a',
|
|
8502
8479
|
{ onClick: function onClick(e) {
|
|
8503
8480
|
return articleCardClickHandler(e);
|
|
8504
8481
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8505
|
-
React__default
|
|
8482
|
+
React__default.createElement(
|
|
8506
8483
|
'div',
|
|
8507
8484
|
{ className: 'prevNext-thumbnail' },
|
|
8508
|
-
React__default
|
|
8509
|
-
React__default
|
|
8485
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8486
|
+
React__default.createElement(
|
|
8510
8487
|
'div',
|
|
8511
8488
|
{ className: 'prevNext-reading ' + showReading },
|
|
8512
8489
|
articleLabel
|
|
8513
8490
|
)
|
|
8514
8491
|
),
|
|
8515
|
-
React__default
|
|
8492
|
+
React__default.createElement(
|
|
8516
8493
|
'div',
|
|
8517
8494
|
{ className: 'prevNext-summary' },
|
|
8518
|
-
React__default
|
|
8495
|
+
React__default.createElement(
|
|
8519
8496
|
'div',
|
|
8520
8497
|
{ className: 'prevNext-publishDate' },
|
|
8521
8498
|
moment.moment(article.published).format('LL')
|
|
8522
8499
|
),
|
|
8523
|
-
React__default
|
|
8500
|
+
React__default.createElement(
|
|
8524
8501
|
'h2',
|
|
8525
8502
|
{ className: 'prevNext-title' },
|
|
8526
8503
|
article.title
|
|
@@ -8569,7 +8546,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8569
8546
|
|
|
8570
8547
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8571
8548
|
if (biography) {
|
|
8572
|
-
return React__default
|
|
8549
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8573
8550
|
}
|
|
8574
8551
|
};
|
|
8575
8552
|
|
|
@@ -8655,7 +8632,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8655
8632
|
//console.log('useLayoutEffect')
|
|
8656
8633
|
if (!firstLoad) {
|
|
8657
8634
|
setUpArrowClicked(false);
|
|
8658
|
-
if (main.
|
|
8635
|
+
if (main.main_36) {
|
|
8659
8636
|
grabLoadedAds();
|
|
8660
8637
|
} else {
|
|
8661
8638
|
scrollToArticle();
|
|
@@ -8664,7 +8641,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8664
8641
|
});
|
|
8665
8642
|
|
|
8666
8643
|
var grabLoadedAds = function grabLoadedAds() {
|
|
8667
|
-
index
|
|
8644
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8668
8645
|
var checkIfReady = window.setInterval(function () {
|
|
8669
8646
|
if (window.googletag && googletag.pubadsReady) {
|
|
8670
8647
|
clearInterval(checkIfReady);
|
|
@@ -8679,19 +8656,19 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8679
8656
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8680
8657
|
if (pageview) pageview(path);
|
|
8681
8658
|
|
|
8682
|
-
if (!main.
|
|
8683
|
-
index
|
|
8659
|
+
if (!main.main_36) {
|
|
8660
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8684
8661
|
if (window.googletag && googletag.pubadsReady) {
|
|
8685
|
-
index
|
|
8662
|
+
index.lib_3.refresh();
|
|
8686
8663
|
}
|
|
8687
8664
|
});
|
|
8688
8665
|
}
|
|
8689
8666
|
//Refresh leaderboard ad on mobile
|
|
8690
|
-
if (main.
|
|
8667
|
+
if (main.main_36) {
|
|
8691
8668
|
var leaderboardSlotId = '';
|
|
8692
|
-
index
|
|
8669
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8693
8670
|
if (window.googletag && googletag.pubadsReady) {
|
|
8694
|
-
index
|
|
8671
|
+
index.lib_3.refresh(leaderboardSlotId);
|
|
8695
8672
|
}
|
|
8696
8673
|
});
|
|
8697
8674
|
}
|
|
@@ -8727,38 +8704,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8727
8704
|
setSensorVisible(false);
|
|
8728
8705
|
};
|
|
8729
8706
|
|
|
8730
|
-
return React__default
|
|
8731
|
-
React__default
|
|
8707
|
+
return React__default.createElement(
|
|
8708
|
+
React__default.Fragment,
|
|
8732
8709
|
null,
|
|
8733
|
-
React__default
|
|
8710
|
+
React__default.createElement(
|
|
8734
8711
|
'div',
|
|
8735
8712
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8736
|
-
React__default
|
|
8713
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8737
8714
|
return handleArrowClick();
|
|
8738
8715
|
} })
|
|
8739
8716
|
),
|
|
8740
|
-
React__default
|
|
8741
|
-
React__default
|
|
8717
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8718
|
+
React__default.createElement(
|
|
8742
8719
|
'div',
|
|
8743
8720
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8744
|
-
React__default
|
|
8721
|
+
React__default.createElement(
|
|
8745
8722
|
'h5',
|
|
8746
8723
|
{ className: 'objective-title' },
|
|
8747
8724
|
nodes.seriesTitle
|
|
8748
8725
|
),
|
|
8749
|
-
React__default
|
|
8726
|
+
React__default.createElement(
|
|
8750
8727
|
'div',
|
|
8751
8728
|
{ className: 'prevNextWrapper' },
|
|
8752
8729
|
PrevNextCards(false, -1)
|
|
8753
8730
|
)
|
|
8754
8731
|
),
|
|
8755
|
-
React__default
|
|
8756
|
-
React__default
|
|
8732
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8733
|
+
React__default.createElement(
|
|
8757
8734
|
'div',
|
|
8758
8735
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8759
|
-
main.
|
|
8736
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8760
8737
|
if (index === 0) {
|
|
8761
|
-
return React__default
|
|
8738
|
+
return React__default.createElement(
|
|
8762
8739
|
'div',
|
|
8763
8740
|
{
|
|
8764
8741
|
key: 'addid-1',
|
|
@@ -8778,14 +8755,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8778
8755
|
}
|
|
8779
8756
|
})
|
|
8780
8757
|
),
|
|
8781
|
-
React__default
|
|
8758
|
+
React__default.createElement(
|
|
8782
8759
|
'div',
|
|
8783
8760
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8784
8761
|
Articles.map(function (article, index) {
|
|
8785
|
-
return React__default
|
|
8762
|
+
return React__default.createElement(
|
|
8786
8763
|
'div',
|
|
8787
8764
|
{ key: article.title },
|
|
8788
|
-
React__default
|
|
8765
|
+
React__default.createElement(
|
|
8789
8766
|
InscreenSensor,
|
|
8790
8767
|
{
|
|
8791
8768
|
visible: sensorVisible,
|
|
@@ -8803,84 +8780,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8803
8780
|
}
|
|
8804
8781
|
}
|
|
8805
8782
|
} },
|
|
8806
|
-
React__default
|
|
8807
|
-
|
|
8783
|
+
React__default.createElement(
|
|
8784
|
+
Head,
|
|
8808
8785
|
null,
|
|
8809
|
-
currentTitle !== null && React__default
|
|
8786
|
+
currentTitle !== null && React__default.createElement(
|
|
8810
8787
|
'title',
|
|
8811
8788
|
{ key: 'title' },
|
|
8812
8789
|
currentTitle
|
|
8813
8790
|
),
|
|
8814
|
-
currentSummary !== null && React__default
|
|
8815
|
-
currentURL !== null && React__default
|
|
8816
|
-
currentTitle !== null && React__default
|
|
8817
|
-
currentThumbnail !== null && React__default
|
|
8818
|
-
currentSummary !== null && React__default
|
|
8819
|
-
currentTitle !== null && React__default
|
|
8820
|
-
currentThumbnail !== null && React__default
|
|
8821
|
-
currentSummary !== null && React__default
|
|
8791
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8792
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8793
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8794
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8795
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8796
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8797
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8798
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8822
8799
|
),
|
|
8823
|
-
React__default
|
|
8800
|
+
React__default.createElement(
|
|
8824
8801
|
'article',
|
|
8825
8802
|
{ className: 'article-wrapper' },
|
|
8826
|
-
React__default
|
|
8803
|
+
React__default.createElement(
|
|
8827
8804
|
'div',
|
|
8828
8805
|
{ className: 'article-publishDate' },
|
|
8829
8806
|
moment.moment(article.published).format('LL')
|
|
8830
8807
|
),
|
|
8831
|
-
React__default
|
|
8808
|
+
React__default.createElement(
|
|
8832
8809
|
'div',
|
|
8833
8810
|
{ className: 'author-details-wrapper' },
|
|
8834
8811
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8835
|
-
return React__default
|
|
8812
|
+
return React__default.createElement(
|
|
8836
8813
|
'span',
|
|
8837
8814
|
{ key: index },
|
|
8838
8815
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8839
8816
|
);
|
|
8840
8817
|
})
|
|
8841
8818
|
),
|
|
8842
|
-
React__default
|
|
8819
|
+
React__default.createElement(
|
|
8843
8820
|
'h2',
|
|
8844
8821
|
{ className: 'article-title' },
|
|
8845
8822
|
article.title
|
|
8846
8823
|
),
|
|
8847
|
-
React__default
|
|
8824
|
+
React__default.createElement(
|
|
8848
8825
|
'div',
|
|
8849
8826
|
{ className: 'mt-2 mb-2' },
|
|
8850
|
-
React__default
|
|
8827
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8851
8828
|
serializers: getSerializers,
|
|
8852
8829
|
videoAccountIDs: accountIDs,
|
|
8853
8830
|
blocks: article.text,
|
|
8854
8831
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8855
8832
|
}, client.config())),
|
|
8856
|
-
React__default
|
|
8833
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8857
8834
|
),
|
|
8858
|
-
Articles.length > 1 && React__default
|
|
8859
|
-
React__default
|
|
8835
|
+
Articles.length > 1 && React__default.createElement(
|
|
8836
|
+
React__default.Fragment,
|
|
8860
8837
|
null,
|
|
8861
|
-
React__default
|
|
8838
|
+
React__default.createElement(
|
|
8862
8839
|
'div',
|
|
8863
8840
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8864
|
-
React__default
|
|
8841
|
+
React__default.createElement(
|
|
8865
8842
|
'h5',
|
|
8866
8843
|
{ className: 'objective-title' },
|
|
8867
8844
|
nodes.seriesTitle
|
|
8868
8845
|
),
|
|
8869
|
-
React__default
|
|
8846
|
+
React__default.createElement(
|
|
8870
8847
|
'div',
|
|
8871
8848
|
{ className: 'prevNextWrapper' },
|
|
8872
8849
|
PrevNextCards(true, index)
|
|
8873
8850
|
)
|
|
8874
8851
|
),
|
|
8875
|
-
React__default
|
|
8852
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8876
8853
|
)
|
|
8877
8854
|
),
|
|
8878
|
-
React__default
|
|
8855
|
+
React__default.createElement(
|
|
8879
8856
|
'div',
|
|
8880
8857
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8881
|
-
main.
|
|
8858
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8882
8859
|
if (innerIndex === 0) {
|
|
8883
|
-
return React__default
|
|
8860
|
+
return React__default.createElement(
|
|
8884
8861
|
'div',
|
|
8885
8862
|
{
|
|
8886
8863
|
key: 'addid-' + (index + 2),
|
|
@@ -8903,7 +8880,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8903
8880
|
)
|
|
8904
8881
|
);
|
|
8905
8882
|
}),
|
|
8906
|
-
React__default
|
|
8883
|
+
React__default.createElement(
|
|
8907
8884
|
'style',
|
|
8908
8885
|
{ jsx: 'true' },
|
|
8909
8886
|
'\n .scrollToTopArrow {\n position: fixed;\n top: 150px;\n display: flex;\n justify-content: center;\n width: ' + contentWidth + 'px;\n opacity: 1;\n z-index: 99999999999;\n visibility: hidden;\n }\n .scrollToTopArrow > svg {\n min-height: 50px;\n min-width: 50px;\n max-height: 50px;\n max-width: 50px;\n }\n .block-content > div p {\n padding: 0;\n }\n\n h2.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.prevNext-title {\n padding: 0;\n font-size: 1rem;\n font-weight: 500;\n }\n .article-wrapper {\n border: 1px solid #252525;\n border-radius: 5px;\n padding: 1rem 1rem 0 1rem;\n margin-bottom: 1rem;\n }\n .prevNext-reading {\n margin-top: -10px;\n width: 75%;\n text-align: center;\n background: white;\n border: 1px solid #252525;\n align-self: center;\n display: none;\n }\n .showReading {\n display: block;\n }\n .author-details-wrapper a {\n color: #252525;\n }\n .objective-prevNext-Wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .objective-title {\n padding: 0 !important;\n }\n .prevNext-thumbnail {\n display: flex;\n flex-direction: column;\n min-width: 225px;\n max-width: 225px;\n overflow: hidden;\n align-items: center;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-thumbnail img {\n height: 125px;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-summary {\n text-align: center;\n }\n .prevNext-publishDate {\n font-size: 0.75rem;\n margin-top: 0.5rem;\n }\n .prevNext-title {\n padding: 0 !important;\n line-height: 1 !important;\n font-weight: 500;\n }\n .prevNextWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n flex-wrap: wrap;\n }\n .prevNextWrapper a {\n display: flex;\n flex-direction: column;\n color: #252525;\n align-items: center;\n }\n .prevNextCards {\n max-width: 250px;\n margin-bottom: 1rem;\n }\n @media only screen and (max-width: 568px) {\n .prevNextWrapper {\n flex-direction: column;\n align-items: center;\n }\n .prevNextCards {\n margin-bottom: 2rem;\n }\n }\n @media only screen and (max-width: 568px) {\n }\n '
|
|
@@ -8933,11 +8910,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8933
8910
|
};
|
|
8934
8911
|
}, [handleClickOutside]);
|
|
8935
8912
|
|
|
8936
|
-
return React__default
|
|
8913
|
+
return React__default.createElement(
|
|
8937
8914
|
'div',
|
|
8938
8915
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8939
|
-
React__default
|
|
8940
|
-
React__default
|
|
8916
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8917
|
+
React__default.createElement(
|
|
8941
8918
|
'style',
|
|
8942
8919
|
{ jsx: 'true' },
|
|
8943
8920
|
'\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 '
|
|
@@ -8945,13 +8922,13 @@ var LightBox = function LightBox(_ref) {
|
|
|
8945
8922
|
);
|
|
8946
8923
|
};
|
|
8947
8924
|
|
|
8948
|
-
var urlFor$
|
|
8949
|
-
var builder = index.imageUrlBuilder(client);
|
|
8925
|
+
var urlFor$3 = function urlFor(source, client) {
|
|
8926
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8950
8927
|
return builder.image(source).auto('format');
|
|
8951
8928
|
};
|
|
8952
8929
|
|
|
8953
8930
|
var generateSrcSet = function generateSrcSet(source, client, width) {
|
|
8954
|
-
var builder = index.imageUrlBuilder(client);
|
|
8931
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8955
8932
|
return builder.image(source).width(width).fit('max').auto('format').url();
|
|
8956
8933
|
};
|
|
8957
8934
|
|
|
@@ -8961,7 +8938,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8961
8938
|
}
|
|
8962
8939
|
};
|
|
8963
8940
|
|
|
8964
|
-
var FigureImage = React__default
|
|
8941
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8965
8942
|
var node = _ref2.node,
|
|
8966
8943
|
client = _ref2.client,
|
|
8967
8944
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8969,16 +8946,16 @@ var FigureImage = React__default['default'].memo(function (_ref2) {
|
|
|
8969
8946
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8970
8947
|
|
|
8971
8948
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8972
|
-
return React__default
|
|
8949
|
+
return React__default.createElement(
|
|
8973
8950
|
'picture',
|
|
8974
8951
|
null,
|
|
8975
|
-
React__default
|
|
8976
|
-
React__default
|
|
8977
|
-
React__default
|
|
8978
|
-
React__default
|
|
8952
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: generateSrcSet(node, client, 1500) }),
|
|
8953
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: generateSrcSet(node, client, 1000) }),
|
|
8954
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: generateSrcSet(node, client, 500) }),
|
|
8955
|
+
React__default.createElement('img', _extends$1._extends({
|
|
8979
8956
|
style: figureImageStyle,
|
|
8980
8957
|
className: 'figure-image',
|
|
8981
|
-
src: urlFor$
|
|
8958
|
+
src: urlFor$3(node, client).url(),
|
|
8982
8959
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
8983
8960
|
}, !link && {
|
|
8984
8961
|
onClick: function onClick() {
|
|
@@ -9063,13 +9040,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9063
9040
|
|
|
9064
9041
|
var FigureCaption = React.useCallback(function () {
|
|
9065
9042
|
if (imgcaption && imgcaption.length > 0) {
|
|
9066
|
-
return React__default
|
|
9043
|
+
return React__default.createElement(
|
|
9067
9044
|
'div',
|
|
9068
9045
|
{ className: 'figure-caption' },
|
|
9069
|
-
React__default
|
|
9046
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9070
9047
|
);
|
|
9071
9048
|
} else if (caption) {
|
|
9072
|
-
return React__default
|
|
9049
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9073
9050
|
} else return null;
|
|
9074
9051
|
}, [caption, imgcaption]);
|
|
9075
9052
|
|
|
@@ -9082,28 +9059,28 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9082
9059
|
};
|
|
9083
9060
|
|
|
9084
9061
|
var handleClickFigure = React.useCallback(function (node, client) {
|
|
9085
|
-
setLightboxImgSrc(urlFor$
|
|
9062
|
+
setLightboxImgSrc(urlFor$3(node, client).url());
|
|
9086
9063
|
setShowLightbox(true);
|
|
9087
9064
|
}, [node, client]);
|
|
9088
9065
|
|
|
9089
|
-
return React__default
|
|
9090
|
-
React__default
|
|
9066
|
+
return React__default.createElement(
|
|
9067
|
+
React__default.Fragment,
|
|
9091
9068
|
null,
|
|
9092
|
-
React__default
|
|
9093
|
-
|
|
9069
|
+
React__default.createElement(
|
|
9070
|
+
Figure$1,
|
|
9094
9071
|
{ className: '' + class_name, style: figureStyle },
|
|
9095
|
-
link ? React__default
|
|
9072
|
+
link ? React__default.createElement(
|
|
9096
9073
|
'a',
|
|
9097
9074
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9098
|
-
React__default
|
|
9099
|
-
React__default
|
|
9100
|
-
) : React__default
|
|
9101
|
-
React__default
|
|
9075
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9076
|
+
React__default.createElement(FigureCaption, null)
|
|
9077
|
+
) : React__default.createElement(
|
|
9078
|
+
React__default.Fragment,
|
|
9102
9079
|
null,
|
|
9103
|
-
React__default
|
|
9104
|
-
React__default
|
|
9080
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9081
|
+
React__default.createElement(FigureCaption, null)
|
|
9105
9082
|
),
|
|
9106
|
-
React__default
|
|
9083
|
+
React__default.createElement(LightBox, {
|
|
9107
9084
|
showLightbox: showLightbox,
|
|
9108
9085
|
lightboxImgSrc: lightboxImgSrc,
|
|
9109
9086
|
closeLightbox: function closeLightbox() {
|
|
@@ -9112,7 +9089,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9112
9089
|
}
|
|
9113
9090
|
})
|
|
9114
9091
|
),
|
|
9115
|
-
React__default
|
|
9092
|
+
React__default.createElement(
|
|
9116
9093
|
'style',
|
|
9117
9094
|
{ jsx: 'true' },
|
|
9118
9095
|
'\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 '
|
|
@@ -9120,10 +9097,10 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9120
9097
|
);
|
|
9121
9098
|
};
|
|
9122
9099
|
|
|
9123
|
-
var Figure = React__default
|
|
9100
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9124
9101
|
|
|
9125
|
-
var urlFor = function urlFor(source, client) {
|
|
9126
|
-
var builder = index.imageUrlBuilder(client);
|
|
9102
|
+
var urlFor$4 = function urlFor(source, client) {
|
|
9103
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
9127
9104
|
return builder.image(source).auto('format');
|
|
9128
9105
|
};
|
|
9129
9106
|
|
|
@@ -9166,68 +9143,68 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9166
9143
|
imgcaption = _ref.imgcaption;
|
|
9167
9144
|
|
|
9168
9145
|
if (imgcaption && imgcaption.length > 0) {
|
|
9169
|
-
return React__default
|
|
9146
|
+
return React__default.createElement(
|
|
9170
9147
|
'div',
|
|
9171
9148
|
{ className: 'multi-figure-caption' },
|
|
9172
|
-
React__default
|
|
9149
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9173
9150
|
);
|
|
9174
9151
|
} else if (caption) {
|
|
9175
|
-
return React__default
|
|
9152
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9176
9153
|
} else return null;
|
|
9177
9154
|
};
|
|
9178
9155
|
|
|
9179
9156
|
if (images && images.length > 0) {
|
|
9180
|
-
return React__default
|
|
9157
|
+
return React__default.createElement(
|
|
9181
9158
|
'div',
|
|
9182
9159
|
{ className: 'multi-figure-container' },
|
|
9183
|
-
React__default
|
|
9184
|
-
|
|
9160
|
+
React__default.createElement(
|
|
9161
|
+
Row,
|
|
9185
9162
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9186
9163
|
images.map(function (image, index) {
|
|
9187
|
-
return React__default
|
|
9188
|
-
|
|
9164
|
+
return React__default.createElement(
|
|
9165
|
+
Col,
|
|
9189
9166
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9190
|
-
image.link ? React__default
|
|
9167
|
+
image.link ? React__default.createElement(
|
|
9191
9168
|
'a',
|
|
9192
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9193
|
-
React__default
|
|
9169
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9170
|
+
React__default.createElement(
|
|
9194
9171
|
'div',
|
|
9195
9172
|
{ className: 'multi-figure-image-container' },
|
|
9196
|
-
React__default
|
|
9197
|
-
index$
|
|
9173
|
+
React__default.createElement(
|
|
9174
|
+
index$2.LazyLoad,
|
|
9198
9175
|
{ once: true },
|
|
9199
|
-
React__default
|
|
9176
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9200
9177
|
),
|
|
9201
|
-
React__default
|
|
9178
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9202
9179
|
)
|
|
9203
|
-
) : React__default
|
|
9180
|
+
) : React__default.createElement(
|
|
9204
9181
|
'div',
|
|
9205
9182
|
{ className: 'multi-figure-image-container' },
|
|
9206
|
-
React__default
|
|
9207
|
-
index$
|
|
9183
|
+
React__default.createElement(
|
|
9184
|
+
index$2.LazyLoad,
|
|
9208
9185
|
{ once: true },
|
|
9209
|
-
React__default
|
|
9186
|
+
React__default.createElement('img', {
|
|
9210
9187
|
'images-count': images.length,
|
|
9211
9188
|
className: 'multi-figure-image',
|
|
9212
|
-
src: urlFor(image.asset, client).url(),
|
|
9189
|
+
src: urlFor$4(image.asset, client).url(),
|
|
9213
9190
|
alt: image.alt,
|
|
9214
9191
|
onClick: function onClick() {
|
|
9215
|
-
setOpenImgSrc(urlFor(image, client).url());
|
|
9192
|
+
setOpenImgSrc(urlFor$4(image, client).url());
|
|
9216
9193
|
setOpenImg(true);
|
|
9217
9194
|
}
|
|
9218
9195
|
})
|
|
9219
9196
|
),
|
|
9220
|
-
React__default
|
|
9197
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9221
9198
|
)
|
|
9222
9199
|
);
|
|
9223
9200
|
})
|
|
9224
9201
|
),
|
|
9225
|
-
React__default
|
|
9202
|
+
React__default.createElement(
|
|
9226
9203
|
'div',
|
|
9227
9204
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9228
|
-
React__default
|
|
9205
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9229
9206
|
),
|
|
9230
|
-
React__default
|
|
9207
|
+
React__default.createElement(
|
|
9231
9208
|
'style',
|
|
9232
9209
|
{ jsx: 'true' },
|
|
9233
9210
|
'\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 '
|
|
@@ -9249,10 +9226,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9249
9226
|
|
|
9250
9227
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9251
9228
|
|
|
9252
|
-
return React__default
|
|
9229
|
+
return React__default.createElement(
|
|
9253
9230
|
'div',
|
|
9254
9231
|
{ id: elementId },
|
|
9255
|
-
React__default
|
|
9232
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
9256
9233
|
);
|
|
9257
9234
|
};
|
|
9258
9235
|
|
|
@@ -9281,7 +9258,7 @@ exports.__esModule = true;
|
|
|
9281
9258
|
|
|
9282
9259
|
|
|
9283
9260
|
|
|
9284
|
-
var _extends3 = _interopRequireDefault(_extends._extends$1);
|
|
9261
|
+
var _extends3 = _interopRequireDefault(_extends$1._extends$1);
|
|
9285
9262
|
|
|
9286
9263
|
|
|
9287
9264
|
|
|
@@ -9289,23 +9266,23 @@ var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
|
9289
9266
|
|
|
9290
9267
|
|
|
9291
9268
|
|
|
9292
|
-
var _classCallCheck3 = _interopRequireDefault(inherits.classCallCheck);
|
|
9269
|
+
var _classCallCheck3 = _interopRequireDefault(inherits$1.classCallCheck);
|
|
9293
9270
|
|
|
9294
9271
|
|
|
9295
9272
|
|
|
9296
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(inherits.possibleConstructorReturn);
|
|
9273
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(inherits$1.possibleConstructorReturn);
|
|
9297
9274
|
|
|
9298
9275
|
|
|
9299
9276
|
|
|
9300
|
-
var _inherits3 = _interopRequireDefault(inherits.inherits);
|
|
9277
|
+
var _inherits3 = _interopRequireDefault(inherits$1.inherits);
|
|
9301
9278
|
|
|
9302
9279
|
|
|
9303
9280
|
|
|
9304
|
-
var _react2 = _interopRequireDefault(React__default
|
|
9281
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9305
9282
|
|
|
9306
9283
|
|
|
9307
9284
|
|
|
9308
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default
|
|
9285
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default);
|
|
9309
9286
|
|
|
9310
9287
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9311
9288
|
var noop = function noop() {};
|
|
@@ -9450,9 +9427,9 @@ var ScriptTag = function (_Component) {
|
|
|
9450
9427
|
|
|
9451
9428
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9452
9429
|
// eslint-disable-next-line no-unused-vars
|
|
9453
|
-
var _props3 = this.props
|
|
9454
|
-
_props3.isHydrating
|
|
9455
|
-
|
|
9430
|
+
var _props3 = this.props,
|
|
9431
|
+
isHydrating = _props3.isHydrating,
|
|
9432
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9456
9433
|
|
|
9457
9434
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9458
9435
|
return _this2.domRef = tag;
|
|
@@ -9460,7 +9437,7 @@ var ScriptTag = function (_Component) {
|
|
|
9460
9437
|
};
|
|
9461
9438
|
|
|
9462
9439
|
return ScriptTag;
|
|
9463
|
-
}(React__default
|
|
9440
|
+
}(React__default.Component);
|
|
9464
9441
|
|
|
9465
9442
|
ScriptTag.propTypes = {
|
|
9466
9443
|
/**
|
|
@@ -9539,11 +9516,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9539
9516
|
}, []);
|
|
9540
9517
|
|
|
9541
9518
|
if (iframeSrc) {
|
|
9542
|
-
return React__default
|
|
9519
|
+
return React__default.createElement(
|
|
9543
9520
|
'section',
|
|
9544
9521
|
{ className: 'form-assembly' },
|
|
9545
|
-
React__default
|
|
9546
|
-
React__default
|
|
9522
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9523
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9547
9524
|
);
|
|
9548
9525
|
}
|
|
9549
9526
|
|
|
@@ -9580,27 +9557,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9580
9557
|
return window.removeEventListener('resize', handleResize);
|
|
9581
9558
|
};
|
|
9582
9559
|
}, []);
|
|
9583
|
-
return React__default
|
|
9560
|
+
return React__default.createElement(
|
|
9584
9561
|
'div',
|
|
9585
9562
|
{ className: 'blockTableHolder', ref: holder },
|
|
9586
|
-
React__default
|
|
9563
|
+
React__default.createElement(
|
|
9587
9564
|
'div',
|
|
9588
9565
|
{ className: 'blockTable' },
|
|
9589
9566
|
rows && rows.map(function (row) {
|
|
9590
|
-
return React__default
|
|
9567
|
+
return React__default.createElement(
|
|
9591
9568
|
'div',
|
|
9592
9569
|
{ className: 'blockTableRow' },
|
|
9593
9570
|
row.cells && row.cells.map(function (cell) {
|
|
9594
|
-
return React__default
|
|
9571
|
+
return React__default.createElement(
|
|
9595
9572
|
'div',
|
|
9596
9573
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9597
|
-
React__default
|
|
9574
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9598
9575
|
);
|
|
9599
9576
|
})
|
|
9600
9577
|
);
|
|
9601
9578
|
})
|
|
9602
9579
|
),
|
|
9603
|
-
React__default
|
|
9580
|
+
React__default.createElement(
|
|
9604
9581
|
'style',
|
|
9605
9582
|
{ jsx: true },
|
|
9606
9583
|
'\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 '
|
|
@@ -9679,12 +9656,12 @@ var getSerializers = function getSerializers() {
|
|
|
9679
9656
|
var node = _ref.node;
|
|
9680
9657
|
var url = node.url;
|
|
9681
9658
|
|
|
9682
|
-
return React__default
|
|
9659
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9683
9660
|
},
|
|
9684
9661
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9685
9662
|
var node = _ref2.node;
|
|
9686
9663
|
|
|
9687
|
-
return React__default
|
|
9664
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9688
9665
|
nodes: node,
|
|
9689
9666
|
article: article,
|
|
9690
9667
|
meta: meta,
|
|
@@ -9698,7 +9675,7 @@ var getSerializers = function getSerializers() {
|
|
|
9698
9675
|
articleSeries: function articleSeries(_ref3) {
|
|
9699
9676
|
var node = _ref3.node;
|
|
9700
9677
|
|
|
9701
|
-
return React__default
|
|
9678
|
+
return React__default.createElement(ArticleSeries, {
|
|
9702
9679
|
nodes: node,
|
|
9703
9680
|
accountIDs: videoAccountIDs || {},
|
|
9704
9681
|
pageview: pageview,
|
|
@@ -9711,61 +9688,61 @@ var getSerializers = function getSerializers() {
|
|
|
9711
9688
|
figure: function figure(_ref4) {
|
|
9712
9689
|
var node = _ref4.node;
|
|
9713
9690
|
|
|
9714
|
-
return React__default
|
|
9691
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9715
9692
|
},
|
|
9716
9693
|
multifigure: function multifigure(_ref5) {
|
|
9717
9694
|
var node = _ref5.node;
|
|
9718
9695
|
|
|
9719
|
-
return React__default
|
|
9696
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9720
9697
|
},
|
|
9721
9698
|
slideshow: function slideshow(_ref6) {
|
|
9722
9699
|
var node = _ref6.node;
|
|
9723
9700
|
var slides = node.slides;
|
|
9724
9701
|
|
|
9725
|
-
return React__default
|
|
9702
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9726
9703
|
},
|
|
9727
9704
|
sidebar: function sidebar(_ref7) {
|
|
9728
9705
|
var node = _ref7.node;
|
|
9729
9706
|
var caption = node.caption,
|
|
9730
9707
|
content = node.content;
|
|
9731
9708
|
|
|
9732
|
-
return React__default
|
|
9709
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9733
9710
|
},
|
|
9734
9711
|
datatable: function datatable(_ref8) {
|
|
9735
9712
|
var node = _ref8.node;
|
|
9736
9713
|
var table = node.table;
|
|
9737
9714
|
|
|
9738
|
-
return React__default
|
|
9715
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9739
9716
|
},
|
|
9740
9717
|
media: function media(_ref9) {
|
|
9741
9718
|
var node = _ref9.node;
|
|
9742
9719
|
|
|
9743
|
-
return React__default
|
|
9720
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9744
9721
|
},
|
|
9745
9722
|
iframe: function iframe(_ref10) {
|
|
9746
9723
|
var node = _ref10.node;
|
|
9747
9724
|
|
|
9748
|
-
return React__default
|
|
9725
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9749
9726
|
},
|
|
9750
9727
|
video: function video(_ref11) {
|
|
9751
9728
|
var node = _ref11.node;
|
|
9752
9729
|
|
|
9753
|
-
return React__default
|
|
9730
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9754
9731
|
},
|
|
9755
9732
|
audio: function audio(_ref12) {
|
|
9756
9733
|
var node = _ref12.node;
|
|
9757
9734
|
|
|
9758
|
-
return React__default
|
|
9735
|
+
return React__default.createElement(Audio, { node: node });
|
|
9759
9736
|
},
|
|
9760
9737
|
poll: function poll(_ref13) {
|
|
9761
9738
|
var node = _ref13.node;
|
|
9762
9739
|
|
|
9763
|
-
return React__default
|
|
9740
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9764
9741
|
},
|
|
9765
9742
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9766
9743
|
var node = _ref14.node;
|
|
9767
9744
|
|
|
9768
|
-
return React__default
|
|
9745
|
+
return React__default.createElement(Poll$1, {
|
|
9769
9746
|
node: node,
|
|
9770
9747
|
client: client,
|
|
9771
9748
|
pageview: pageview,
|
|
@@ -9779,35 +9756,35 @@ var getSerializers = function getSerializers() {
|
|
|
9779
9756
|
var node = _ref15.node;
|
|
9780
9757
|
var quizzes = node.quizzes;
|
|
9781
9758
|
|
|
9782
|
-
return React__default
|
|
9759
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9783
9760
|
},
|
|
9784
9761
|
leads: function leads(_ref16) {
|
|
9785
9762
|
var node = _ref16.node;
|
|
9786
9763
|
var leadID = node.leadID;
|
|
9787
9764
|
|
|
9788
9765
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9789
|
-
return React__default
|
|
9766
|
+
return React__default.createElement(Leads, { url: url });
|
|
9790
9767
|
},
|
|
9791
9768
|
slideshows: function slideshows(_ref17) {
|
|
9792
9769
|
var node = _ref17.node;
|
|
9793
9770
|
|
|
9794
|
-
return React__default
|
|
9771
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9795
9772
|
},
|
|
9796
9773
|
nativeAd: function nativeAd(_ref18) {
|
|
9797
9774
|
var node = _ref18.node;
|
|
9798
9775
|
|
|
9799
|
-
return React__default
|
|
9776
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9800
9777
|
},
|
|
9801
9778
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9802
9779
|
var node = _ref19.node;
|
|
9803
9780
|
|
|
9804
|
-
return React__default
|
|
9781
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9805
9782
|
},
|
|
9806
9783
|
hrtag: function hrtag() {
|
|
9807
|
-
return React__default
|
|
9784
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9808
9785
|
},
|
|
9809
9786
|
brtag: function brtag() {
|
|
9810
|
-
return React__default
|
|
9787
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9811
9788
|
},
|
|
9812
9789
|
formstack: function formstack(_ref20) {
|
|
9813
9790
|
var node = _ref20.node;
|
|
@@ -9815,29 +9792,29 @@ var getSerializers = function getSerializers() {
|
|
|
9815
9792
|
Caption = node.Caption,
|
|
9816
9793
|
needSegmentSupport = node.needSegmentSupport;
|
|
9817
9794
|
|
|
9818
|
-
return React__default
|
|
9795
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9819
9796
|
},
|
|
9820
9797
|
formassembly: FormAssembly,
|
|
9821
9798
|
multimedia: function multimedia(_ref21) {
|
|
9822
9799
|
var node = _ref21.node;
|
|
9823
9800
|
|
|
9824
|
-
return React__default
|
|
9801
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9825
9802
|
},
|
|
9826
9803
|
blockTable: function blockTable(_ref22) {
|
|
9827
9804
|
var node = _ref22.node;
|
|
9828
|
-
return React__default
|
|
9805
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9829
9806
|
}
|
|
9830
9807
|
},
|
|
9831
9808
|
marks: {
|
|
9832
9809
|
superscript: function superscript(props) {
|
|
9833
|
-
return React__default
|
|
9810
|
+
return React__default.createElement(
|
|
9834
9811
|
'sup',
|
|
9835
9812
|
null,
|
|
9836
9813
|
props.children
|
|
9837
9814
|
);
|
|
9838
9815
|
},
|
|
9839
9816
|
subscript: function subscript(props) {
|
|
9840
|
-
return React__default
|
|
9817
|
+
return React__default.createElement(
|
|
9841
9818
|
'sub',
|
|
9842
9819
|
null,
|
|
9843
9820
|
props.children
|
|
@@ -9853,7 +9830,7 @@ var getSerializers = function getSerializers() {
|
|
|
9853
9830
|
if (href && href.charAt(0) === '#') {
|
|
9854
9831
|
var elementId = href.slice(1);
|
|
9855
9832
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9856
|
-
return React__default
|
|
9833
|
+
return React__default.createElement(
|
|
9857
9834
|
'a',
|
|
9858
9835
|
{ onClick: function onClick() {
|
|
9859
9836
|
return ScrollToElement(elementId);
|
|
@@ -9863,7 +9840,7 @@ var getSerializers = function getSerializers() {
|
|
|
9863
9840
|
}
|
|
9864
9841
|
|
|
9865
9842
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9866
|
-
return React__default
|
|
9843
|
+
return React__default.createElement(
|
|
9867
9844
|
'a',
|
|
9868
9845
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9869
9846
|
children
|
|
@@ -9871,7 +9848,7 @@ var getSerializers = function getSerializers() {
|
|
|
9871
9848
|
},
|
|
9872
9849
|
alignleft: function alignleft(_ref23) {
|
|
9873
9850
|
var children = _ref23.children;
|
|
9874
|
-
return React__default
|
|
9851
|
+
return React__default.createElement(
|
|
9875
9852
|
'div',
|
|
9876
9853
|
{ style: { textAlign: 'left' } },
|
|
9877
9854
|
children
|
|
@@ -9879,7 +9856,7 @@ var getSerializers = function getSerializers() {
|
|
|
9879
9856
|
},
|
|
9880
9857
|
alignright: function alignright(_ref24) {
|
|
9881
9858
|
var children = _ref24.children;
|
|
9882
|
-
return React__default
|
|
9859
|
+
return React__default.createElement(
|
|
9883
9860
|
'div',
|
|
9884
9861
|
{ style: { textAlign: 'right' } },
|
|
9885
9862
|
children
|
|
@@ -9887,7 +9864,7 @@ var getSerializers = function getSerializers() {
|
|
|
9887
9864
|
},
|
|
9888
9865
|
aligncenter: function aligncenter(_ref25) {
|
|
9889
9866
|
var children = _ref25.children;
|
|
9890
|
-
return React__default
|
|
9867
|
+
return React__default.createElement(
|
|
9891
9868
|
'div',
|
|
9892
9869
|
{ style: { textAlign: 'center' } },
|
|
9893
9870
|
children
|
|
@@ -9895,7 +9872,7 @@ var getSerializers = function getSerializers() {
|
|
|
9895
9872
|
},
|
|
9896
9873
|
alignjustify: function alignjustify(_ref26) {
|
|
9897
9874
|
var children = _ref26.children;
|
|
9898
|
-
return React__default
|
|
9875
|
+
return React__default.createElement(
|
|
9899
9876
|
'div',
|
|
9900
9877
|
{ style: { textAlign: 'justify' } },
|
|
9901
9878
|
children
|
|
@@ -9905,7 +9882,7 @@ var getSerializers = function getSerializers() {
|
|
|
9905
9882
|
var children = props.children,
|
|
9906
9883
|
color = props.mark.color;
|
|
9907
9884
|
|
|
9908
|
-
return React__default
|
|
9885
|
+
return React__default.createElement(
|
|
9909
9886
|
'span',
|
|
9910
9887
|
{ style: { color: color ? color.hex : null } },
|
|
9911
9888
|
children
|