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