@mjhls/mjh-framework 1.0.850-affiliatefix-v1 → 1.0.850-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/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +30 -31
- package/dist/cjs/AD300x250x600.js +30 -31
- package/dist/cjs/AD728x90.js +33 -34
- package/dist/cjs/ADFloatingFooter.js +32 -33
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +32 -33
- package/dist/cjs/{ADInfeed-859820d9.js → ADInfeed-98c71bcd.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +32 -33
- package/dist/cjs/ADSponsoredResources.js +32 -33
- package/dist/cjs/ADWebcast.js +32 -33
- package/dist/cjs/ADWelcome.js +33 -34
- package/dist/cjs/{ADlgInfeed-da3a36a6.js → ADlgInfeed-9de32585.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +101 -34
- package/dist/cjs/AdSlotsProvider.js +925 -24
- package/dist/cjs/AlgoliaSearch.js +1276 -1371
- package/dist/cjs/AlphabeticList.js +25 -26
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +59 -60
- package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
- package/dist/cjs/ArticleSeriesListing.js +61 -62
- package/dist/cjs/Auth.js +462 -686
- package/dist/cjs/AuthWrapper.js +423 -1739
- 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 +59 -62
- package/dist/cjs/ConferenceArticleCard.js +37 -38
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +103 -107
- package/dist/cjs/DeckQueue.js +90 -94
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-26baccf1.js} +34 -35
- package/dist/cjs/EventsDeck.js +152 -159
- package/dist/cjs/ExternalResources.js +80 -81
- package/dist/cjs/Feature.js +24 -26
- package/dist/cjs/ForbesHero.js +42 -43
- package/dist/cjs/GridContent.js +304 -190
- package/dist/cjs/GridHero.js +44 -45
- package/dist/cjs/GroupDeck.js +59 -60
- package/dist/cjs/HamMagazine.js +141 -146
- 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 +72 -73
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +73 -78
- package/dist/cjs/IssueDeck.js +72 -77
- package/dist/cjs/IssueLanding.js +93 -96
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -41
- package/dist/cjs/MasterDeck.js +80 -81
- package/dist/cjs/MediaSeriesLanding.js +1137 -1228
- package/dist/cjs/NavDvm.js +74 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +148 -153
- package/dist/cjs/NavNative.js +145 -153
- package/dist/cjs/OncliveHero.js +19 -19
- package/dist/cjs/OncliveLargeHero.js +72 -73
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +1205 -115
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +40 -43
- package/dist/cjs/PubToc.js +15 -16
- package/dist/cjs/PublicationDeck.js +62 -67
- package/dist/cjs/PublicationLanding.js +135 -139
- package/dist/cjs/QueueDeckExpanded.js +1150 -1131
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +54 -55
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +368 -343
- package/dist/cjs/SeriesListingDeck.js +38 -38
- package/dist/cjs/{SeriesSlider-34c6cc2b.js → SeriesSlider-8bbc989f.js} +39 -40
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +38 -39
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-cea213aa.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +59 -64
- package/dist/cjs/TaxonomyDescription.js +55 -56
- package/dist/cjs/TemplateNormal.js +74 -75
- package/dist/cjs/ThumbnailCard.js +21 -23
- package/dist/cjs/Ustream.js +30 -31
- package/dist/cjs/VerticalHero.js +16 -17
- package/dist/cjs/VideoProgramLandingPage.js +74 -78
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +49 -50
- package/dist/cjs/VideoSeriesListing.js +82 -81
- package/dist/cjs/View.js +342 -264
- package/dist/cjs/YahooHero.js +41 -42
- package/dist/cjs/YoutubeGroup.js +66 -67
- 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-0a918631.js} +7 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +20 -20
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +45 -45
- package/dist/cjs/{getTargeting-be6168ad.js → getTargeting-f1821260.js} +26 -17
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
- package/dist/cjs/{index-060c5d65.js → index-bc88f898.js} +1039 -1005
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/{index-50be6759.js → index-e2e62963.js} +10 -26
- 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-00a6aade.js → index.esm-90433435.js} +16 -7
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
- package/dist/cjs/index.js +164 -169
- package/dist/cjs/{inherits-c2065b95.js → inherits-452ff02c.js} +19 -19
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +24 -24
- package/dist/esm/AD300x250x600.js +24 -24
- package/dist/esm/AD728x90.js +27 -27
- package/dist/esm/ADFloatingFooter.js +23 -23
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +23 -23
- package/dist/esm/{ADInfeed-4bf3b2f9.js → ADInfeed-bbdd5398.js} +6 -6
- package/dist/esm/ADSkyscraper.js +23 -23
- package/dist/esm/ADSponsoredResources.js +23 -23
- package/dist/esm/ADWebcast.js +23 -23
- package/dist/esm/ADWelcome.js +20 -20
- package/dist/esm/{ADlgInfeed-a3377c4a.js → ADlgInfeed-4473ee3b.js} +4 -4
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +92 -24
- package/dist/esm/AdSlotsProvider.js +922 -20
- package/dist/esm/AlgoliaSearch.js +505 -599
- package/dist/esm/AlphabeticList.js +10 -10
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +50 -50
- package/dist/esm/ArticleSeriesLandingPage.js +32 -32
- package/dist/esm/ArticleSeriesListing.js +34 -34
- package/dist/esm/Auth.js +375 -595
- package/dist/esm/AuthWrapper.js +396 -1711
- 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 +39 -39
- package/dist/esm/ConferenceArticleCard.js +22 -22
- package/dist/esm/DeckContent.js +57 -57
- package/dist/esm/DeckQueue.js +50 -50
- package/dist/esm/{Dfp-2c43d2a0.js → Dfp-b7236041.js} +15 -15
- package/dist/esm/EventsDeck.js +67 -67
- package/dist/esm/ExternalResources.js +48 -48
- package/dist/esm/Feature.js +4 -4
- package/dist/esm/ForbesHero.js +12 -12
- package/dist/esm/GridContent.js +200 -82
- package/dist/esm/GridHero.js +13 -13
- package/dist/esm/GroupDeck.js +14 -14
- package/dist/esm/HamMagazine.js +39 -39
- package/dist/esm/Hero.js +4 -4
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +47 -47
- package/dist/esm/HorizontalHero.js +5 -5
- package/dist/esm/IssueContentDeck.js +27 -27
- package/dist/esm/IssueDeck.js +37 -37
- package/dist/esm/IssueLanding.js +82 -84
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +22 -22
- package/dist/esm/MasterDeck.js +45 -45
- package/dist/esm/MediaSeriesLanding.js +663 -751
- package/dist/esm/NavDvm.js +16 -16
- package/dist/esm/NavMagazine.js +44 -44
- package/dist/esm/NavNative.js +49 -49
- package/dist/esm/OncliveHero.js +5 -4
- package/dist/esm/OncliveLargeHero.js +13 -13
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +1155 -65
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +32 -34
- package/dist/esm/PubToc.js +8 -8
- package/dist/esm/PublicationDeck.js +24 -24
- package/dist/esm/PublicationLanding.js +76 -76
- package/dist/esm/QueueDeckExpanded.js +1103 -1084
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +35 -35
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +8 -8
- package/dist/esm/Segment.js +368 -343
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-5d5c08f4.js → SeriesSlider-a866bb21.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +17 -17
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-03c3e869.js} +12 -12
- package/dist/esm/TaxonomyCard.js +25 -25
- package/dist/esm/TaxonomyDescription.js +46 -46
- package/dist/esm/TemplateNormal.js +50 -50
- package/dist/esm/ThumbnailCard.js +7 -7
- package/dist/esm/Ustream.js +14 -14
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoProgramLandingPage.js +54 -54
- package/dist/esm/VideoSeriesCard.js +14 -14
- package/dist/esm/VideoSeriesFilter.js +9 -9
- package/dist/esm/VideoSeriesLandingPage.js +38 -38
- package/dist/esm/VideoSeriesListing.js +39 -37
- package/dist/esm/View.js +174 -92
- package/dist/esm/YahooHero.js +15 -15
- package/dist/esm/YoutubeGroup.js +26 -26
- 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-4877b617.js} +33 -33
- 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-6f2fcc99.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +14 -14
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -45
- package/dist/esm/{getTargeting-68291ce9.js → getTargeting-bd800589.js} +25 -16
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-f0fc23eb.js → index-41a678ea.js} +4 -4
- 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-98ca9cec.js → index-aaa2dae0.js} +11 -26
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index-01d53c17.js → index-f2a0d400.js} +688 -647
- 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-d4932dea.js → index.esm-cf08bf18.js} +13 -6
- package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
- package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
- package/dist/esm/index.js +122 -124
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-a41fe93f.js → inherits-cf8dde54.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +111 -110
- 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/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/main-d4165069.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
|
@@ -1,59 +1,52 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
5
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
|
+
var _toObject = require('./_to-object-329a650b.js');
|
|
7
|
+
var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
8
|
+
var _extends$1 = require('./extends-0a918631.js');
|
|
9
|
+
var inherits$1 = require('./inherits-452ff02c.js');
|
|
10
|
+
var _typeof = require('./typeof-725500bc.js');
|
|
3
11
|
var React = require('react');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var urlFor = require('./urlFor.js');
|
|
7
|
-
var index = require('./index-fc2f1ca2.js');
|
|
8
|
-
var Router = require('next/router');
|
|
9
|
-
var index$1 = require('./index-187c967e.js');
|
|
12
|
+
var React__default = _interopDefault(React);
|
|
13
|
+
var index = require('./index-98e01cb9.js');
|
|
10
14
|
var PropTypes = require('prop-types');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
15
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
16
|
+
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
17
|
+
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
18
|
+
var moment = require('./moment-575fe24c.js');
|
|
19
|
+
var Router = require('next/router');
|
|
20
|
+
var Router__default = _interopDefault(Router);
|
|
21
|
+
var urlFor = require('./urlFor.js');
|
|
22
|
+
var index$2 = require('./index-96b3db50.js');
|
|
23
|
+
var main = require('./main-02daeefe.js');
|
|
24
|
+
var entities = require('./entities-310b46ee.js');
|
|
25
|
+
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
14
26
|
var Segment = require('./Segment.js');
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-a195642e.js');
|
|
27
|
+
var Beam = require('./Beam.js');
|
|
28
|
+
var AdSlot = require('./AdSlot.js');
|
|
29
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
30
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
31
|
+
var index$3 = require('./index-187c967e.js');
|
|
21
32
|
var GroupDeck = require('./GroupDeck.js');
|
|
22
|
-
var
|
|
33
|
+
var reactBootstrap = require('react-bootstrap');
|
|
34
|
+
var index_esm = require('./index.esm-90433435.js');
|
|
35
|
+
var util = require('./util-f2c1b65b.js');
|
|
36
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
37
|
+
var Head = _interopDefault(require('next/head'));
|
|
23
38
|
var SocialShare = require('./SocialShare.js');
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var Pagination = require('react-bootstrap/Pagination');
|
|
28
|
-
var Button = require('react-bootstrap/Button');
|
|
29
|
-
var entities = require('./entities-3f9d0f2f.js');
|
|
30
|
-
var AdSlot = require('./AdSlot.js');
|
|
31
|
-
var Row = require('react-bootstrap/Row');
|
|
32
|
-
var Col = require('react-bootstrap/Col');
|
|
33
|
-
var Head = require('next/head');
|
|
34
|
-
var inherits = require('./inherits-c2065b95.js');
|
|
35
|
-
var index_esm = require('./index.esm-00a6aade.js');
|
|
36
|
-
var Figure$1 = require('react-bootstrap/Figure');
|
|
37
|
-
|
|
38
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
39
|
-
|
|
40
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
41
|
-
var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
|
|
42
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
43
|
-
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
44
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
45
|
-
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
|
|
46
|
-
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);
|
|
47
|
-
var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
|
|
48
|
-
var Figure__default = /*#__PURE__*/_interopDefaultLegacy(Figure$1);
|
|
39
|
+
var _objectToArray = require('./_object-to-array-5762f850.js');
|
|
40
|
+
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
41
|
+
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
49
42
|
|
|
50
43
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
51
44
|
var pageNumber = selectedIndex + 1;
|
|
52
45
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
53
|
-
Router__default
|
|
46
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
54
47
|
};
|
|
55
48
|
|
|
56
|
-
var Slideshow
|
|
49
|
+
var Slideshow = function Slideshow(_ref) {
|
|
57
50
|
var slides = _ref.slides,
|
|
58
51
|
client = _ref.client,
|
|
59
52
|
pageview = _ref.pageview;
|
|
@@ -80,20 +73,27 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
80
73
|
if (pageview) pageview(router.asPath);
|
|
81
74
|
}, [router]);
|
|
82
75
|
|
|
83
|
-
return React__default
|
|
76
|
+
return React__default.createElement(
|
|
84
77
|
'div',
|
|
85
78
|
{ className: 'mt-3 mb-3' },
|
|
86
|
-
React__default
|
|
79
|
+
React__default.createElement(
|
|
87
80
|
reactBootstrap.Carousel,
|
|
88
81
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
89
82
|
return onChangeSlide(selectedIndex, router);
|
|
90
83
|
}, interval: null },
|
|
91
84
|
slides && slides.map(function (slide) {
|
|
92
|
-
return React__default
|
|
85
|
+
return React__default.createElement(
|
|
93
86
|
reactBootstrap.Carousel.Item,
|
|
94
87
|
{ key: slide._key },
|
|
95
|
-
React__default
|
|
96
|
-
|
|
88
|
+
React__default.createElement(
|
|
89
|
+
'picture',
|
|
90
|
+
null,
|
|
91
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
92
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
93
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
94
|
+
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
95
|
+
),
|
|
96
|
+
slide.caption && React__default.createElement(
|
|
97
97
|
'p',
|
|
98
98
|
{ className: 'p-2' },
|
|
99
99
|
slide.caption
|
|
@@ -104,18 +104,21 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
104
104
|
);
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
var isArray = Array.isArray;
|
|
108
|
+
var keyList = Object.keys;
|
|
109
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
110
110
|
|
|
111
111
|
var fastDeepEqual = function equal(a, b) {
|
|
112
112
|
if (a === b) return true;
|
|
113
113
|
|
|
114
114
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
115
|
-
|
|
115
|
+
var arrA = isArray(a)
|
|
116
|
+
, arrB = isArray(b)
|
|
117
|
+
, i
|
|
118
|
+
, length
|
|
119
|
+
, key;
|
|
116
120
|
|
|
117
|
-
|
|
118
|
-
if (Array.isArray(a)) {
|
|
121
|
+
if (arrA && arrB) {
|
|
119
122
|
length = a.length;
|
|
120
123
|
if (length != b.length) return false;
|
|
121
124
|
for (i = length; i-- !== 0;)
|
|
@@ -123,29 +126,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
123
126
|
return true;
|
|
124
127
|
}
|
|
125
128
|
|
|
129
|
+
if (arrA != arrB) return false;
|
|
126
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();
|
|
127
135
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
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();
|
|
131
140
|
|
|
132
|
-
keys =
|
|
141
|
+
var keys = keyList(a);
|
|
133
142
|
length = keys.length;
|
|
134
|
-
|
|
143
|
+
|
|
144
|
+
if (length !== keyList(b).length)
|
|
145
|
+
return false;
|
|
135
146
|
|
|
136
147
|
for (i = length; i-- !== 0;)
|
|
137
|
-
if (!
|
|
148
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
138
149
|
|
|
139
150
|
for (i = length; i-- !== 0;) {
|
|
140
|
-
|
|
141
|
-
|
|
151
|
+
key = keys[i];
|
|
142
152
|
if (!equal(a[key], b[key])) return false;
|
|
143
153
|
}
|
|
144
154
|
|
|
145
155
|
return true;
|
|
146
156
|
}
|
|
147
157
|
|
|
148
|
-
// true if both NaN, false otherwise
|
|
149
158
|
return a!==a && b!==b;
|
|
150
159
|
};
|
|
151
160
|
|
|
@@ -683,14 +692,14 @@ function coerce(val) {
|
|
|
683
692
|
return val;
|
|
684
693
|
}
|
|
685
694
|
});
|
|
686
|
-
debug.coerce;
|
|
687
|
-
debug.disable;
|
|
688
|
-
debug.enable;
|
|
689
|
-
debug.enabled;
|
|
690
|
-
debug.humanize;
|
|
691
|
-
debug.names;
|
|
692
|
-
debug.skips;
|
|
693
|
-
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;
|
|
694
703
|
|
|
695
704
|
var browser = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
696
705
|
/**
|
|
@@ -879,13 +888,13 @@ function localstorage() {
|
|
|
879
888
|
} catch (e) {}
|
|
880
889
|
}
|
|
881
890
|
});
|
|
882
|
-
browser.log;
|
|
883
|
-
browser.formatArgs;
|
|
884
|
-
browser.save;
|
|
885
|
-
browser.load;
|
|
886
|
-
browser.useColors;
|
|
887
|
-
browser.storage;
|
|
888
|
-
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;
|
|
889
898
|
|
|
890
899
|
// MIT lisence
|
|
891
900
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1160,14 +1169,14 @@ function init (debug) {
|
|
|
1160
1169
|
|
|
1161
1170
|
exports.enable(load());
|
|
1162
1171
|
});
|
|
1163
|
-
node.init;
|
|
1164
|
-
node.log;
|
|
1165
|
-
node.formatArgs;
|
|
1166
|
-
node.save;
|
|
1167
|
-
node.load;
|
|
1168
|
-
node.useColors;
|
|
1169
|
-
node.colors;
|
|
1170
|
-
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;
|
|
1171
1180
|
|
|
1172
1181
|
var src = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
1173
1182
|
/**
|
|
@@ -1568,239 +1577,199 @@ module.exports = exports['default'];
|
|
|
1568
1577
|
|
|
1569
1578
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1570
1579
|
|
|
1571
|
-
function
|
|
1572
|
-
|
|
1573
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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; }; }();
|
|
1574
1581
|
|
|
1575
|
-
function
|
|
1576
|
-
|
|
1577
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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; };
|
|
1578
1583
|
|
|
1579
|
-
function
|
|
1580
|
-
|
|
1581
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1582
|
-
|
|
1583
|
-
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); }; }
|
|
1584
|
-
|
|
1585
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1586
|
-
|
|
1587
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1588
|
-
|
|
1589
|
-
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; } }
|
|
1590
|
-
|
|
1591
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1584
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1592
1585
|
|
|
1593
|
-
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; }
|
|
1594
1587
|
|
|
1595
|
-
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; }
|
|
1596
1589
|
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
*
|
|
1600
|
-
*
|
|
1601
|
-
* @param {Object}
|
|
1602
|
-
* @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
|
|
1603
1595
|
*/
|
|
1604
|
-
|
|
1605
1596
|
function shouldUpdateVideo(prevProps, props) {
|
|
1606
1597
|
// A changing video should always trigger an update
|
|
1607
1598
|
if (prevProps.videoId !== props.videoId) {
|
|
1608
1599
|
return true;
|
|
1609
|
-
}
|
|
1610
|
-
// update.
|
|
1611
|
-
|
|
1600
|
+
}
|
|
1612
1601
|
|
|
1602
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1603
|
+
// update.
|
|
1613
1604
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1614
1605
|
var vars = props.opts.playerVars || {};
|
|
1606
|
+
|
|
1615
1607
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1616
1608
|
}
|
|
1617
|
-
/**
|
|
1618
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1619
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1620
|
-
* player reset is necessary.
|
|
1621
|
-
*
|
|
1622
|
-
* @param {Object} opts
|
|
1623
|
-
*/
|
|
1624
|
-
|
|
1625
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
|
+
*/
|
|
1626
1617
|
function filterResetOptions(opts) {
|
|
1627
|
-
return
|
|
1628
|
-
playerVars:
|
|
1618
|
+
return _extends({}, opts, {
|
|
1619
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1629
1620
|
autoplay: 0,
|
|
1630
1621
|
start: 0,
|
|
1631
1622
|
end: 0
|
|
1632
|
-
}
|
|
1623
|
+
})
|
|
1633
1624
|
});
|
|
1634
1625
|
}
|
|
1635
|
-
/**
|
|
1636
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1637
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1638
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1639
|
-
* those.
|
|
1640
|
-
*
|
|
1641
|
-
* @param {Object} prevProps
|
|
1642
|
-
* @param {Object} props
|
|
1643
|
-
*/
|
|
1644
|
-
|
|
1645
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
|
+
*/
|
|
1646
1636
|
function shouldResetPlayer(prevProps, props) {
|
|
1647
1637
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1648
1638
|
}
|
|
1649
|
-
/**
|
|
1650
|
-
* Check whether a props change should result in an id or className update.
|
|
1651
|
-
*
|
|
1652
|
-
* @param {Object} prevProps
|
|
1653
|
-
* @param {Object} props
|
|
1654
|
-
*/
|
|
1655
|
-
|
|
1656
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
|
+
*/
|
|
1657
1646
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1658
1647
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1659
1648
|
}
|
|
1660
1649
|
|
|
1661
|
-
var YouTube =
|
|
1650
|
+
var YouTube = function (_React$Component) {
|
|
1662
1651
|
_inherits(YouTube, _React$Component);
|
|
1663
1652
|
|
|
1664
|
-
var _super = _createSuper(YouTube);
|
|
1665
|
-
|
|
1666
|
-
/**
|
|
1667
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1668
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1669
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1670
|
-
*/
|
|
1671
1653
|
function YouTube(props) {
|
|
1672
|
-
var _this;
|
|
1673
|
-
|
|
1674
1654
|
_classCallCheck(this, YouTube);
|
|
1675
1655
|
|
|
1676
|
-
_this =
|
|
1656
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1677
1657
|
|
|
1678
|
-
|
|
1658
|
+
_this.onPlayerReady = function (event) {
|
|
1679
1659
|
return _this.props.onReady(event);
|
|
1680
|
-
}
|
|
1660
|
+
};
|
|
1681
1661
|
|
|
1682
|
-
|
|
1662
|
+
_this.onPlayerError = function (event) {
|
|
1683
1663
|
return _this.props.onError(event);
|
|
1684
|
-
}
|
|
1664
|
+
};
|
|
1685
1665
|
|
|
1686
|
-
|
|
1666
|
+
_this.onPlayerStateChange = function (event) {
|
|
1687
1667
|
_this.props.onStateChange(event);
|
|
1688
|
-
|
|
1689
1668
|
switch (event.data) {
|
|
1669
|
+
|
|
1690
1670
|
case YouTube.PlayerState.ENDED:
|
|
1691
1671
|
_this.props.onEnd(event);
|
|
1692
|
-
|
|
1693
1672
|
break;
|
|
1694
1673
|
|
|
1695
1674
|
case YouTube.PlayerState.PLAYING:
|
|
1696
1675
|
_this.props.onPlay(event);
|
|
1697
|
-
|
|
1698
1676
|
break;
|
|
1699
1677
|
|
|
1700
1678
|
case YouTube.PlayerState.PAUSED:
|
|
1701
1679
|
_this.props.onPause(event);
|
|
1702
|
-
|
|
1703
1680
|
break;
|
|
1704
1681
|
}
|
|
1705
|
-
}
|
|
1682
|
+
};
|
|
1706
1683
|
|
|
1707
|
-
|
|
1684
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1708
1685
|
return _this.props.onPlaybackRateChange(event);
|
|
1709
|
-
}
|
|
1686
|
+
};
|
|
1710
1687
|
|
|
1711
|
-
|
|
1688
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1712
1689
|
return _this.props.onPlaybackQualityChange(event);
|
|
1713
|
-
}
|
|
1690
|
+
};
|
|
1714
1691
|
|
|
1715
|
-
|
|
1692
|
+
_this.createPlayer = function () {
|
|
1716
1693
|
// do not attempt to create a player server-side, it won't work
|
|
1717
|
-
if (typeof document === 'undefined') return;
|
|
1718
|
-
|
|
1719
|
-
var playerOpts =
|
|
1694
|
+
if (typeof document === 'undefined') return;
|
|
1695
|
+
// create player
|
|
1696
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1720
1697
|
// preload the `videoId` video if one is already given
|
|
1721
1698
|
videoId: _this.props.videoId
|
|
1722
1699
|
});
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1700
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1701
|
+
// attach event handlers
|
|
1726
1702
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1727
|
-
|
|
1728
1703
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1729
|
-
|
|
1730
1704
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1731
|
-
|
|
1732
1705
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1733
|
-
|
|
1734
1706
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1735
|
-
}
|
|
1707
|
+
};
|
|
1736
1708
|
|
|
1737
|
-
|
|
1709
|
+
_this.resetPlayer = function () {
|
|
1738
1710
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1739
|
-
}
|
|
1711
|
+
};
|
|
1740
1712
|
|
|
1741
|
-
|
|
1713
|
+
_this.updatePlayer = function () {
|
|
1742
1714
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1743
1715
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1744
1716
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1745
1717
|
});
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1749
|
-
return _this.internalPlayer;
|
|
1750
|
-
});
|
|
1718
|
+
};
|
|
1751
1719
|
|
|
1752
|
-
|
|
1720
|
+
_this.updateVideo = function () {
|
|
1753
1721
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1754
1722
|
_this.internalPlayer.stopVideo();
|
|
1755
|
-
|
|
1756
1723
|
return;
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1724
|
+
}
|
|
1759
1725
|
|
|
1726
|
+
// set queueing options
|
|
1760
1727
|
var autoplay = false;
|
|
1761
1728
|
var opts = {
|
|
1762
1729
|
videoId: _this.props.videoId
|
|
1763
1730
|
};
|
|
1764
|
-
|
|
1765
1731
|
if ('playerVars' in _this.props.opts) {
|
|
1766
1732
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1767
|
-
|
|
1768
1733
|
if ('start' in _this.props.opts.playerVars) {
|
|
1769
1734
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1770
1735
|
}
|
|
1771
|
-
|
|
1772
1736
|
if ('end' in _this.props.opts.playerVars) {
|
|
1773
1737
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1774
1738
|
}
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1739
|
+
}
|
|
1777
1740
|
|
|
1741
|
+
// if autoplay is enabled loadVideoById
|
|
1778
1742
|
if (autoplay) {
|
|
1779
1743
|
_this.internalPlayer.loadVideoById(opts);
|
|
1780
|
-
|
|
1781
1744
|
return;
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1784
|
-
|
|
1745
|
+
}
|
|
1746
|
+
// default behaviour just cues the video
|
|
1785
1747
|
_this.internalPlayer.cueVideoById(opts);
|
|
1786
|
-
}
|
|
1748
|
+
};
|
|
1787
1749
|
|
|
1788
|
-
|
|
1750
|
+
_this.refContainer = function (container) {
|
|
1789
1751
|
_this.container = container;
|
|
1790
|
-
}
|
|
1752
|
+
};
|
|
1791
1753
|
|
|
1792
1754
|
_this.container = null;
|
|
1793
1755
|
_this.internalPlayer = null;
|
|
1794
1756
|
return _this;
|
|
1795
1757
|
}
|
|
1796
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
|
+
|
|
1797
1766
|
_createClass(YouTube, [{
|
|
1798
|
-
key:
|
|
1767
|
+
key: 'componentDidMount',
|
|
1799
1768
|
value: function componentDidMount() {
|
|
1800
1769
|
this.createPlayer();
|
|
1801
1770
|
}
|
|
1802
1771
|
}, {
|
|
1803
|
-
key:
|
|
1772
|
+
key: 'componentDidUpdate',
|
|
1804
1773
|
value: function componentDidUpdate(prevProps) {
|
|
1805
1774
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1806
1775
|
this.updatePlayer();
|
|
@@ -1815,70 +1784,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1815
1784
|
}
|
|
1816
1785
|
}
|
|
1817
1786
|
}, {
|
|
1818
|
-
key:
|
|
1787
|
+
key: 'componentWillUnmount',
|
|
1819
1788
|
value: function componentWillUnmount() {
|
|
1820
|
-
/**
|
|
1821
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1822
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1823
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1824
|
-
* 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.
|
|
1825
1794
|
*/
|
|
1826
1795
|
this.internalPlayer.destroy();
|
|
1827
1796
|
}
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
*
|
|
1831
|
-
*
|
|
1832
|
-
*
|
|
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.
|
|
1833
1863
|
*/
|
|
1834
1864
|
|
|
1835
1865
|
}, {
|
|
1836
|
-
key:
|
|
1866
|
+
key: 'render',
|
|
1837
1867
|
value: function render() {
|
|
1838
|
-
return
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
id: this.props.id,
|
|
1842
|
-
|
|
1843
|
-
ref: this.refContainer
|
|
1844
|
-
}));
|
|
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
|
+
);
|
|
1845
1873
|
}
|
|
1846
1874
|
}]);
|
|
1847
1875
|
|
|
1848
1876
|
return YouTube;
|
|
1849
|
-
}(React__default
|
|
1850
|
-
|
|
1851
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1852
|
-
UNSTARTED: -1,
|
|
1853
|
-
ENDED: 0,
|
|
1854
|
-
PLAYING: 1,
|
|
1855
|
-
PAUSED: 2,
|
|
1856
|
-
BUFFERING: 3,
|
|
1857
|
-
CUED: 5
|
|
1858
|
-
});
|
|
1877
|
+
}(React__default.Component);
|
|
1859
1878
|
|
|
1860
1879
|
YouTube.propTypes = {
|
|
1861
|
-
videoId: PropTypes__default
|
|
1880
|
+
videoId: PropTypes__default.string,
|
|
1881
|
+
|
|
1862
1882
|
// custom ID for player element
|
|
1863
|
-
id: PropTypes__default
|
|
1883
|
+
id: PropTypes__default.string,
|
|
1884
|
+
|
|
1864
1885
|
// custom class name for player element
|
|
1865
|
-
className: PropTypes__default
|
|
1886
|
+
className: PropTypes__default.string,
|
|
1866
1887
|
// custom class name for player container element
|
|
1867
|
-
containerClassName: PropTypes__default
|
|
1888
|
+
containerClassName: PropTypes__default.string,
|
|
1889
|
+
|
|
1868
1890
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1869
|
-
opts: PropTypes__default
|
|
1891
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1892
|
+
|
|
1870
1893
|
// event subscriptions
|
|
1871
|
-
onReady: PropTypes__default
|
|
1872
|
-
onError: PropTypes__default
|
|
1873
|
-
onPlay: PropTypes__default
|
|
1874
|
-
onPause: PropTypes__default
|
|
1875
|
-
onEnd: PropTypes__default
|
|
1876
|
-
onStateChange: PropTypes__default
|
|
1877
|
-
onPlaybackRateChange: PropTypes__default
|
|
1878
|
-
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
|
|
1879
1902
|
};
|
|
1880
1903
|
YouTube.defaultProps = {
|
|
1881
|
-
videoId: null,
|
|
1882
1904
|
id: null,
|
|
1883
1905
|
className: null,
|
|
1884
1906
|
opts: {},
|
|
@@ -1892,12 +1914,20 @@ YouTube.defaultProps = {
|
|
|
1892
1914
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1893
1915
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1894
1916
|
};
|
|
1917
|
+
YouTube.PlayerState = {
|
|
1918
|
+
UNSTARTED: -1,
|
|
1919
|
+
ENDED: 0,
|
|
1920
|
+
PLAYING: 1,
|
|
1921
|
+
PAUSED: 2,
|
|
1922
|
+
BUFFERING: 3,
|
|
1923
|
+
CUED: 5
|
|
1924
|
+
};
|
|
1895
1925
|
|
|
1896
1926
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1897
1927
|
var url = _ref.url,
|
|
1898
1928
|
autoplay = _ref.autoplay;
|
|
1899
1929
|
|
|
1900
|
-
var id = index$
|
|
1930
|
+
var id = index$3.getYoutubeId(url);
|
|
1901
1931
|
|
|
1902
1932
|
var _useState = React.useState(false),
|
|
1903
1933
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -1930,8 +1960,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1930
1960
|
var duration = player.getDuration();
|
|
1931
1961
|
var queue = Math.floor(duration / 10);
|
|
1932
1962
|
var segment = Math.floor(current / queue);
|
|
1933
|
-
Beam.report_beam_video('Ready', main.
|
|
1934
|
-
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);
|
|
1935
1965
|
};
|
|
1936
1966
|
|
|
1937
1967
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1941,8 +1971,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1941
1971
|
var segment = Math.floor(current / queue);
|
|
1942
1972
|
|
|
1943
1973
|
if (!queueProgress.includes(segment)) {
|
|
1944
|
-
Beam.report_beam_video('Segment', main.
|
|
1945
|
-
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);
|
|
1946
1976
|
queueProgress.push(segment);
|
|
1947
1977
|
}
|
|
1948
1978
|
};
|
|
@@ -1955,8 +1985,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1955
1985
|
var queue = Math.floor(duration / 10);
|
|
1956
1986
|
var segment = Math.floor(current / queue);
|
|
1957
1987
|
|
|
1958
|
-
Beam.report_beam_video('Play', main.
|
|
1959
|
-
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);
|
|
1960
1990
|
|
|
1961
1991
|
if (!playReported) {
|
|
1962
1992
|
setPlayReported(true);
|
|
@@ -1975,8 +2005,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1975
2005
|
var queue = Math.floor(duration / 10);
|
|
1976
2006
|
var segment = Math.floor(current / queue);
|
|
1977
2007
|
|
|
1978
|
-
Beam.report_beam_video('End', main.
|
|
1979
|
-
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);
|
|
1980
2010
|
setEndReported(true);
|
|
1981
2011
|
clearInterval(intervalID);
|
|
1982
2012
|
}
|
|
@@ -1989,15 +2019,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1989
2019
|
var queue = Math.floor(duration / 10);
|
|
1990
2020
|
var segment = Math.floor(current / queue);
|
|
1991
2021
|
|
|
1992
|
-
Beam.report_beam_video('Pause', main.
|
|
1993
|
-
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);
|
|
1994
2024
|
};
|
|
1995
2025
|
|
|
1996
|
-
return React__default
|
|
2026
|
+
return React__default.createElement(
|
|
1997
2027
|
'div',
|
|
1998
2028
|
{ id: 'fluid-video-container' },
|
|
1999
|
-
React__default
|
|
2000
|
-
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(
|
|
2001
2031
|
'style',
|
|
2002
2032
|
{ jsx: 'true' },
|
|
2003
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 '
|
|
@@ -2010,20 +2040,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2010
2040
|
content = _ref.content,
|
|
2011
2041
|
getSerializers = _ref.getSerializers;
|
|
2012
2042
|
|
|
2013
|
-
return React__default
|
|
2043
|
+
return React__default.createElement(
|
|
2014
2044
|
'article',
|
|
2015
2045
|
{ className: 'sidebar' },
|
|
2016
|
-
React__default
|
|
2046
|
+
React__default.createElement(
|
|
2017
2047
|
'div',
|
|
2018
2048
|
null,
|
|
2019
|
-
React__default
|
|
2049
|
+
React__default.createElement(
|
|
2020
2050
|
'h3',
|
|
2021
2051
|
null,
|
|
2022
2052
|
caption
|
|
2023
2053
|
),
|
|
2024
|
-
React__default
|
|
2054
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2025
2055
|
),
|
|
2026
|
-
React__default
|
|
2056
|
+
React__default.createElement(
|
|
2027
2057
|
'style',
|
|
2028
2058
|
{ jsx: 'true' },
|
|
2029
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 '
|
|
@@ -2034,18 +2064,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2034
2064
|
var TableShow = function TableShow(_ref) {
|
|
2035
2065
|
var rows = _ref.rows;
|
|
2036
2066
|
|
|
2037
|
-
return React__default
|
|
2067
|
+
return React__default.createElement(
|
|
2038
2068
|
reactBootstrap.Table,
|
|
2039
2069
|
{ bordered: true, hover: true, responsive: true },
|
|
2040
|
-
React__default
|
|
2070
|
+
React__default.createElement(
|
|
2041
2071
|
'tbody',
|
|
2042
2072
|
null,
|
|
2043
2073
|
rows && rows.map(function (row) {
|
|
2044
|
-
return React__default
|
|
2074
|
+
return React__default.createElement(
|
|
2045
2075
|
'tr',
|
|
2046
2076
|
{ key: row._key },
|
|
2047
2077
|
row.cells && row.cells.map(function (cell, index) {
|
|
2048
|
-
return cell && React__default
|
|
2078
|
+
return cell && React__default.createElement(
|
|
2049
2079
|
'td',
|
|
2050
2080
|
{ key: index },
|
|
2051
2081
|
cell
|
|
@@ -2143,18 +2173,25 @@ var Media = function Media(_ref) {
|
|
|
2143
2173
|
margin: imageMargin
|
|
2144
2174
|
};
|
|
2145
2175
|
|
|
2146
|
-
return React__default
|
|
2176
|
+
return React__default.createElement(
|
|
2147
2177
|
reactBootstrap.Figure,
|
|
2148
2178
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2149
|
-
React__default
|
|
2179
|
+
React__default.createElement(
|
|
2150
2180
|
'a',
|
|
2151
2181
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2152
|
-
React__default
|
|
2182
|
+
React__default.createElement(
|
|
2153
2183
|
index$2.LazyLoad,
|
|
2154
2184
|
{ once: true },
|
|
2155
|
-
React__default
|
|
2185
|
+
React__default.createElement(
|
|
2186
|
+
'picture',
|
|
2187
|
+
null,
|
|
2188
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2189
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2190
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2191
|
+
React__default.createElement('img', _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2192
|
+
)
|
|
2156
2193
|
),
|
|
2157
|
-
caption && React__default
|
|
2194
|
+
caption && React__default.createElement(
|
|
2158
2195
|
reactBootstrap.Figure.Caption,
|
|
2159
2196
|
{ className: 'media-caption' },
|
|
2160
2197
|
caption
|
|
@@ -2162,9 +2199,9 @@ var Media = function Media(_ref) {
|
|
|
2162
2199
|
)
|
|
2163
2200
|
);
|
|
2164
2201
|
} else if (caption && caption !== '') {
|
|
2165
|
-
return React__default
|
|
2202
|
+
return React__default.createElement(
|
|
2166
2203
|
'a',
|
|
2167
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2204
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2168
2205
|
href: uploadDoc.asset.url + '?dl='
|
|
2169
2206
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2170
2207
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2182,10 +2219,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2182
2219
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2183
2220
|
|
|
2184
2221
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2185
|
-
return React__default
|
|
2222
|
+
return React__default.createElement(
|
|
2186
2223
|
'div',
|
|
2187
2224
|
{ className: 'd-block text-center mb-3' },
|
|
2188
|
-
React__default
|
|
2225
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2189
2226
|
);
|
|
2190
2227
|
};
|
|
2191
2228
|
|
|
@@ -2219,8 +2256,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2219
2256
|
var duration = player.duration;
|
|
2220
2257
|
var queue = Math.floor(duration / 10);
|
|
2221
2258
|
var segment = Math.floor(current / queue);
|
|
2222
|
-
Beam.report_beam_video('Ready', main.
|
|
2223
|
-
Segment.report_video_event('Video Ready', main.
|
|
2259
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'MP4');
|
|
2260
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'MP4');
|
|
2224
2261
|
};
|
|
2225
2262
|
|
|
2226
2263
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2229,8 +2266,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2229
2266
|
var queue = Math.floor(duration / 10);
|
|
2230
2267
|
var segment = Math.floor(current / queue);
|
|
2231
2268
|
if (!queueProgress.includes(segment)) {
|
|
2232
|
-
Beam.report_beam_video('Segment', main.
|
|
2233
|
-
Segment.report_video_event('Video Segment', main.
|
|
2269
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'MP4');
|
|
2270
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'MP4');
|
|
2234
2271
|
queueProgress.push(segment);
|
|
2235
2272
|
}
|
|
2236
2273
|
};
|
|
@@ -2242,8 +2279,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2242
2279
|
var duration = player.duration;
|
|
2243
2280
|
var queue = Math.floor(duration / 10);
|
|
2244
2281
|
var segment = Math.floor(current / queue);
|
|
2245
|
-
Beam.report_beam_video('Play', main.
|
|
2246
|
-
Segment.report_video_event('Video Play', main.
|
|
2282
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'MP4');
|
|
2283
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'MP4');
|
|
2247
2284
|
|
|
2248
2285
|
if (!playReported) {
|
|
2249
2286
|
event.persist();
|
|
@@ -2263,8 +2300,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2263
2300
|
var queue = Math.floor(duration / 10);
|
|
2264
2301
|
var segment = Math.floor(current / queue);
|
|
2265
2302
|
|
|
2266
|
-
Beam.report_beam_video('End', main.
|
|
2267
|
-
Segment.report_video_event('Video End', main.
|
|
2303
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment, 'MP4');
|
|
2304
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'MP4');
|
|
2268
2305
|
setEndReported(true);
|
|
2269
2306
|
clearInterval(intervalID);
|
|
2270
2307
|
}
|
|
@@ -2276,14 +2313,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2276
2313
|
var duration = player.duration - current;
|
|
2277
2314
|
var queue = Math.floor(duration / 10);
|
|
2278
2315
|
var segment = Math.floor(current / queue);
|
|
2279
|
-
Beam.report_beam_video('Pause', main.
|
|
2280
|
-
Segment.report_video_event('Video Pause', main.
|
|
2316
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2317
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2281
2318
|
};
|
|
2282
2319
|
|
|
2283
|
-
return React__default
|
|
2320
|
+
return React__default.createElement(
|
|
2284
2321
|
'div',
|
|
2285
2322
|
null,
|
|
2286
|
-
vidLoaded && React__default
|
|
2323
|
+
vidLoaded && React__default.createElement(
|
|
2287
2324
|
'video',
|
|
2288
2325
|
{
|
|
2289
2326
|
poster: thumbnail || '',
|
|
@@ -2301,7 +2338,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2301
2338
|
onPlay: function onPlay(e) {
|
|
2302
2339
|
return handleOnPlay(e);
|
|
2303
2340
|
} },
|
|
2304
|
-
React__default
|
|
2341
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2305
2342
|
'Your browser does not support the video tag.'
|
|
2306
2343
|
)
|
|
2307
2344
|
);
|
|
@@ -2338,7 +2375,7 @@ var Video = function Video(_ref) {
|
|
|
2338
2375
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2339
2376
|
//console.log('success:', success.ref)
|
|
2340
2377
|
var player = success.ref;
|
|
2341
|
-
if (_typeof
|
|
2378
|
+
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2342
2379
|
player.ima3.settings.debug = true;
|
|
2343
2380
|
if (targeting.content_placement && targeting.document_url) {
|
|
2344
2381
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2366,8 +2403,8 @@ var Video = function Video(_ref) {
|
|
|
2366
2403
|
player.pause();
|
|
2367
2404
|
}
|
|
2368
2405
|
|
|
2369
|
-
Beam.report_beam_video('Ready', main.
|
|
2370
|
-
Segment.report_video_event('Video Ready', main.
|
|
2406
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2407
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2371
2408
|
});
|
|
2372
2409
|
|
|
2373
2410
|
// play
|
|
@@ -2376,8 +2413,8 @@ var Video = function Video(_ref) {
|
|
|
2376
2413
|
var current = player.currentTime();
|
|
2377
2414
|
var queue = Math.floor(duration / 10);
|
|
2378
2415
|
var segment = Math.floor(current / queue);
|
|
2379
|
-
Beam.report_beam_video('Play', main.
|
|
2380
|
-
Segment.report_video_event('Video Play', main.
|
|
2416
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2417
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2381
2418
|
});
|
|
2382
2419
|
|
|
2383
2420
|
// pause
|
|
@@ -2386,8 +2423,8 @@ var Video = function Video(_ref) {
|
|
|
2386
2423
|
var current = player.currentTime();
|
|
2387
2424
|
var queue = Math.floor(duration / 10);
|
|
2388
2425
|
var segment = Math.floor(current / queue);
|
|
2389
|
-
Beam.report_beam_video('Pause', main.
|
|
2390
|
-
Segment.report_video_event('Video Pause', main.
|
|
2426
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2427
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2391
2428
|
});
|
|
2392
2429
|
|
|
2393
2430
|
// end
|
|
@@ -2396,8 +2433,8 @@ var Video = function Video(_ref) {
|
|
|
2396
2433
|
var current = player.currentTime();
|
|
2397
2434
|
var queue = Math.floor(duration / 10);
|
|
2398
2435
|
var segment = Math.floor(current / queue);
|
|
2399
|
-
Beam.report_beam_video('End', main.
|
|
2400
|
-
Segment.report_video_event('Video End', main.
|
|
2436
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2437
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2401
2438
|
autoplayNextVideo(evt);
|
|
2402
2439
|
});
|
|
2403
2440
|
|
|
@@ -2408,8 +2445,8 @@ var Video = function Video(_ref) {
|
|
|
2408
2445
|
var queue = Math.floor(duration / 10);
|
|
2409
2446
|
var segment = Math.floor(current / queue);
|
|
2410
2447
|
if (!queueProgress.includes(segment)) {
|
|
2411
|
-
Beam.report_beam_video('Segment', main.
|
|
2412
|
-
Segment.report_video_event('Video Segment', main.
|
|
2448
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2449
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2413
2450
|
queueProgress.push(segment);
|
|
2414
2451
|
}
|
|
2415
2452
|
});
|
|
@@ -2420,8 +2457,8 @@ var Video = function Video(_ref) {
|
|
|
2420
2457
|
var id = player.ads.ad.id;
|
|
2421
2458
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2422
2459
|
|
|
2423
|
-
Beam.report_beam_ad('AD Started', main.
|
|
2424
|
-
Segment.report_ad_event('Video Ad Started', main.
|
|
2460
|
+
Beam.report_beam_ad('AD Started', main.main_16, '', '', '', '', '', adType, duration, id);
|
|
2461
|
+
Segment.report_ad_event('Video Ad Started', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2425
2462
|
});
|
|
2426
2463
|
|
|
2427
2464
|
// ad ended
|
|
@@ -2429,60 +2466,60 @@ var Video = function Video(_ref) {
|
|
|
2429
2466
|
var duration = player.ads.ad.duration;
|
|
2430
2467
|
var id = player.ads.ad.id;
|
|
2431
2468
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2432
|
-
Beam.report_beam_ad('AD Ended', main.
|
|
2433
|
-
Segment.report_ad_event('Video Ad Ended', main.
|
|
2469
|
+
Beam.report_beam_ad('AD Ended', main.main_16, '', '', '', '', '', adType, duration, id);
|
|
2470
|
+
Segment.report_ad_event('Video Ad Ended', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2434
2471
|
});
|
|
2435
2472
|
};
|
|
2436
2473
|
|
|
2437
2474
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2438
2475
|
if (videoID) {
|
|
2439
|
-
return React__default
|
|
2476
|
+
return React__default.createElement(
|
|
2440
2477
|
'div',
|
|
2441
2478
|
null,
|
|
2442
|
-
React__default
|
|
2479
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2443
2480
|
onSuccess: onVideoSuccess,
|
|
2444
2481
|
accountId: accountIDs.brightcove.accountId,
|
|
2445
2482
|
videoId: videoID,
|
|
2446
2483
|
playerId: accountIDs.brightcove.playerId,
|
|
2447
2484
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2448
2485
|
}),
|
|
2449
|
-
React__default
|
|
2486
|
+
React__default.createElement(
|
|
2450
2487
|
'style',
|
|
2451
2488
|
{ jsx: 'true' },
|
|
2452
2489
|
'\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 '
|
|
2453
2490
|
)
|
|
2454
2491
|
);
|
|
2455
2492
|
} else if (playlistID) {
|
|
2456
|
-
return React__default
|
|
2493
|
+
return React__default.createElement(
|
|
2457
2494
|
'div',
|
|
2458
2495
|
null,
|
|
2459
|
-
React__default
|
|
2496
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2460
2497
|
accountId: accountIDs.brightcove.accountId,
|
|
2461
2498
|
playlistId: playlistID,
|
|
2462
2499
|
playerId: accountIDs.brightcove.playerId,
|
|
2463
2500
|
onSuccess: onVideoSuccess,
|
|
2464
2501
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2465
2502
|
}),
|
|
2466
|
-
React__default
|
|
2503
|
+
React__default.createElement(
|
|
2467
2504
|
'style',
|
|
2468
2505
|
{ jsx: 'true' },
|
|
2469
2506
|
'\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 '
|
|
2470
2507
|
)
|
|
2471
2508
|
);
|
|
2472
2509
|
} else if (experienceID) {
|
|
2473
|
-
return React__default
|
|
2510
|
+
return React__default.createElement(
|
|
2474
2511
|
'div',
|
|
2475
2512
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2476
|
-
videoLoaded && React__default
|
|
2513
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2477
2514
|
);
|
|
2478
2515
|
}
|
|
2479
2516
|
return null;
|
|
2480
2517
|
}
|
|
2481
2518
|
if (source === 'mp4') {
|
|
2482
|
-
return React__default
|
|
2519
|
+
return React__default.createElement(
|
|
2483
2520
|
'div',
|
|
2484
2521
|
null,
|
|
2485
|
-
React__default
|
|
2522
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2486
2523
|
);
|
|
2487
2524
|
}
|
|
2488
2525
|
|
|
@@ -2497,7 +2534,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2497
2534
|
});
|
|
2498
2535
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2499
2536
|
|
|
2500
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2537
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2501
2538
|
|
|
2502
2539
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2503
2540
|
|
|
@@ -2693,9 +2730,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2693
2730
|
});
|
|
2694
2731
|
|
|
2695
2732
|
_commonjsHelpers.unwrapExports(props);
|
|
2696
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2697
|
-
props.defaultProps;
|
|
2698
|
-
props.propTypes;
|
|
2733
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2734
|
+
var props_2 = props.defaultProps;
|
|
2735
|
+
var props_3 = props.propTypes;
|
|
2699
2736
|
|
|
2700
2737
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2701
2738
|
return isNonNullObject(value)
|
|
@@ -2860,17 +2897,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2860
2897
|
|
|
2861
2898
|
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; }
|
|
2862
2899
|
|
|
2863
|
-
function
|
|
2900
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2864
2901
|
|
|
2865
|
-
function
|
|
2902
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2866
2903
|
|
|
2867
|
-
function
|
|
2868
|
-
|
|
2869
|
-
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); }
|
|
2870
|
-
|
|
2871
|
-
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; }
|
|
2872
|
-
|
|
2873
|
-
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; }
|
|
2904
|
+
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; }
|
|
2874
2905
|
|
|
2875
2906
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2876
2907
|
|
|
@@ -3000,12 +3031,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3000
3031
|
|
|
3001
3032
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3002
3033
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3003
|
-
|
|
3004
|
-
var
|
|
3005
|
-
|
|
3034
|
+
var _iteratorNormalCompletion = true;
|
|
3035
|
+
var _didIteratorError = false;
|
|
3036
|
+
var _iteratorError = undefined;
|
|
3006
3037
|
|
|
3007
3038
|
try {
|
|
3008
|
-
for (_iterator.
|
|
3039
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3009
3040
|
var p = _step.value;
|
|
3010
3041
|
|
|
3011
3042
|
if (props$1[p]) {
|
|
@@ -3020,9 +3051,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3020
3051
|
}
|
|
3021
3052
|
}
|
|
3022
3053
|
} catch (err) {
|
|
3023
|
-
|
|
3054
|
+
_didIteratorError = true;
|
|
3055
|
+
_iteratorError = err;
|
|
3024
3056
|
} finally {
|
|
3025
|
-
|
|
3057
|
+
try {
|
|
3058
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3059
|
+
_iterator["return"]();
|
|
3060
|
+
}
|
|
3061
|
+
} finally {
|
|
3062
|
+
if (_didIteratorError) {
|
|
3063
|
+
throw _iteratorError;
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3026
3066
|
}
|
|
3027
3067
|
|
|
3028
3068
|
return config;
|
|
@@ -3087,7 +3127,7 @@ function isEqual(a, b) {
|
|
|
3087
3127
|
return true;
|
|
3088
3128
|
}
|
|
3089
3129
|
|
|
3090
|
-
if ((0, React__default
|
|
3130
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3091
3131
|
return true;
|
|
3092
3132
|
}
|
|
3093
3133
|
|
|
@@ -3130,17 +3170,17 @@ function isMediaStream(url) {
|
|
|
3130
3170
|
});
|
|
3131
3171
|
|
|
3132
3172
|
_commonjsHelpers.unwrapExports(utils);
|
|
3133
|
-
utils.parseStartTime;
|
|
3134
|
-
utils.parseEndTime;
|
|
3135
|
-
utils.randomString;
|
|
3136
|
-
utils.queryString;
|
|
3137
|
-
utils.getSDK;
|
|
3138
|
-
utils.getConfig;
|
|
3139
|
-
utils.omit;
|
|
3140
|
-
utils.callPlayer;
|
|
3141
|
-
utils.isObject;
|
|
3142
|
-
utils.isEqual;
|
|
3143
|
-
utils.isMediaStream;
|
|
3173
|
+
var utils_1 = utils.parseStartTime;
|
|
3174
|
+
var utils_2 = utils.parseEndTime;
|
|
3175
|
+
var utils_3 = utils.randomString;
|
|
3176
|
+
var utils_4 = utils.queryString;
|
|
3177
|
+
var utils_5 = utils.getSDK;
|
|
3178
|
+
var utils_6 = utils.getConfig;
|
|
3179
|
+
var utils_7 = utils.omit;
|
|
3180
|
+
var utils_8 = utils.callPlayer;
|
|
3181
|
+
var utils_9 = utils.isObject;
|
|
3182
|
+
var utils_10 = utils.isEqual;
|
|
3183
|
+
var utils_11 = utils.isMediaStream;
|
|
3144
3184
|
|
|
3145
3185
|
var Player_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3146
3186
|
|
|
@@ -3149,7 +3189,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3149
3189
|
});
|
|
3150
3190
|
exports["default"] = void 0;
|
|
3151
3191
|
|
|
3152
|
-
var _react = _interopRequireWildcard(React__default
|
|
3192
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3153
3193
|
|
|
3154
3194
|
|
|
3155
3195
|
|
|
@@ -3169,16 +3209,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3169
3209
|
|
|
3170
3210
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3171
3211
|
|
|
3172
|
-
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); }; }
|
|
3173
|
-
|
|
3174
3212
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3175
3213
|
|
|
3176
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3177
|
-
|
|
3178
|
-
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; } }
|
|
3179
|
-
|
|
3180
3214
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3181
3215
|
|
|
3216
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3217
|
+
|
|
3182
3218
|
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); }
|
|
3183
3219
|
|
|
3184
3220
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3187,12 +3223,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3187
3223
|
|
|
3188
3224
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3189
3225
|
|
|
3190
|
-
var Player =
|
|
3226
|
+
var Player =
|
|
3227
|
+
/*#__PURE__*/
|
|
3228
|
+
function (_Component) {
|
|
3191
3229
|
_inherits(Player, _Component);
|
|
3192
3230
|
|
|
3193
|
-
var _super = _createSuper(Player);
|
|
3194
|
-
|
|
3195
3231
|
function Player() {
|
|
3232
|
+
var _getPrototypeOf2;
|
|
3233
|
+
|
|
3196
3234
|
var _this;
|
|
3197
3235
|
|
|
3198
3236
|
_classCallCheck(this, Player);
|
|
@@ -3201,7 +3239,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3201
3239
|
_args[_key] = arguments[_key];
|
|
3202
3240
|
}
|
|
3203
3241
|
|
|
3204
|
-
_this =
|
|
3242
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3205
3243
|
|
|
3206
3244
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3207
3245
|
|
|
@@ -3526,7 +3564,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3526
3564
|
return null;
|
|
3527
3565
|
}
|
|
3528
3566
|
|
|
3529
|
-
return
|
|
3567
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3530
3568
|
ref: this.ref,
|
|
3531
3569
|
onReady: this.handleReady,
|
|
3532
3570
|
onPlay: this.handlePlay,
|
|
@@ -3559,7 +3597,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3559
3597
|
});
|
|
3560
3598
|
exports["default"] = createSinglePlayer;
|
|
3561
3599
|
|
|
3562
|
-
var _react = _interopRequireWildcard(React__default
|
|
3600
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3563
3601
|
|
|
3564
3602
|
|
|
3565
3603
|
|
|
@@ -3587,16 +3625,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3587
3625
|
|
|
3588
3626
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3589
3627
|
|
|
3590
|
-
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); }; }
|
|
3591
|
-
|
|
3592
3628
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3593
3629
|
|
|
3594
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3595
|
-
|
|
3596
|
-
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; } }
|
|
3597
|
-
|
|
3598
3630
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3599
3631
|
|
|
3632
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3633
|
+
|
|
3600
3634
|
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); }
|
|
3601
3635
|
|
|
3602
3636
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3608,12 +3642,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3608
3642
|
function createSinglePlayer(activePlayer) {
|
|
3609
3643
|
var _class, _temp;
|
|
3610
3644
|
|
|
3611
|
-
return _temp = _class =
|
|
3645
|
+
return _temp = _class =
|
|
3646
|
+
/*#__PURE__*/
|
|
3647
|
+
function (_Component) {
|
|
3612
3648
|
_inherits(SinglePlayer, _Component);
|
|
3613
3649
|
|
|
3614
|
-
var _super = _createSuper(SinglePlayer);
|
|
3615
|
-
|
|
3616
3650
|
function SinglePlayer() {
|
|
3651
|
+
var _getPrototypeOf2;
|
|
3652
|
+
|
|
3617
3653
|
var _this;
|
|
3618
3654
|
|
|
3619
3655
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3622,7 +3658,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3622
3658
|
args[_key] = arguments[_key];
|
|
3623
3659
|
}
|
|
3624
3660
|
|
|
3625
|
-
_this =
|
|
3661
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3626
3662
|
|
|
3627
3663
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3628
3664
|
|
|
@@ -3690,12 +3726,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3690
3726
|
height = _this$props.height,
|
|
3691
3727
|
Wrapper = _this$props.wrapper;
|
|
3692
3728
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3693
|
-
return
|
|
3729
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3694
3730
|
style: _objectSpread({}, style, {
|
|
3695
3731
|
width: width,
|
|
3696
3732
|
height: height
|
|
3697
3733
|
})
|
|
3698
|
-
}, otherProps),
|
|
3734
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3699
3735
|
ref: this.ref,
|
|
3700
3736
|
activePlayer: activePlayer,
|
|
3701
3737
|
config: this.config
|
|
@@ -3717,7 +3753,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3717
3753
|
});
|
|
3718
3754
|
exports["default"] = exports.YouTube = void 0;
|
|
3719
3755
|
|
|
3720
|
-
var _react = _interopRequireWildcard(React__default
|
|
3756
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3721
3757
|
|
|
3722
3758
|
|
|
3723
3759
|
|
|
@@ -3741,31 +3777,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3741
3777
|
|
|
3742
3778
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3743
3779
|
|
|
3744
|
-
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); }; }
|
|
3745
|
-
|
|
3746
3780
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3747
3781
|
|
|
3748
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3749
|
-
|
|
3750
|
-
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; } }
|
|
3751
|
-
|
|
3752
3782
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3753
3783
|
|
|
3784
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3785
|
+
|
|
3754
3786
|
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); }
|
|
3755
3787
|
|
|
3756
3788
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3757
3789
|
|
|
3758
3790
|
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; }
|
|
3759
3791
|
|
|
3760
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3761
|
-
|
|
3762
|
-
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."); }
|
|
3763
|
-
|
|
3764
|
-
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); }
|
|
3792
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3765
3793
|
|
|
3766
|
-
function
|
|
3794
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3767
3795
|
|
|
3768
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
3796
|
+
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; }
|
|
3769
3797
|
|
|
3770
3798
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3771
3799
|
|
|
@@ -3790,12 +3818,14 @@ function parsePlaylist(url) {
|
|
|
3790
3818
|
return {};
|
|
3791
3819
|
}
|
|
3792
3820
|
|
|
3793
|
-
var YouTube =
|
|
3821
|
+
var YouTube =
|
|
3822
|
+
/*#__PURE__*/
|
|
3823
|
+
function (_Component) {
|
|
3794
3824
|
_inherits(YouTube, _Component);
|
|
3795
3825
|
|
|
3796
|
-
var _super = _createSuper(YouTube);
|
|
3797
|
-
|
|
3798
3826
|
function YouTube() {
|
|
3827
|
+
var _getPrototypeOf2;
|
|
3828
|
+
|
|
3799
3829
|
var _this;
|
|
3800
3830
|
|
|
3801
3831
|
_classCallCheck(this, YouTube);
|
|
@@ -3804,7 +3834,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3804
3834
|
args[_key] = arguments[_key];
|
|
3805
3835
|
}
|
|
3806
3836
|
|
|
3807
|
-
_this =
|
|
3837
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3808
3838
|
|
|
3809
3839
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3810
3840
|
|
|
@@ -3992,9 +4022,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3992
4022
|
height: '100%',
|
|
3993
4023
|
display: display
|
|
3994
4024
|
};
|
|
3995
|
-
return
|
|
4025
|
+
return _react["default"].createElement("div", {
|
|
3996
4026
|
style: style
|
|
3997
|
-
},
|
|
4027
|
+
}, _react["default"].createElement("div", {
|
|
3998
4028
|
ref: this.ref
|
|
3999
4029
|
}));
|
|
4000
4030
|
}
|
|
@@ -4017,7 +4047,7 @@ exports["default"] = _default;
|
|
|
4017
4047
|
});
|
|
4018
4048
|
|
|
4019
4049
|
_commonjsHelpers.unwrapExports(YouTube_1);
|
|
4020
|
-
YouTube_1.YouTube;
|
|
4050
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4021
4051
|
|
|
4022
4052
|
var SoundCloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4023
4053
|
|
|
@@ -4026,7 +4056,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4026
4056
|
});
|
|
4027
4057
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4028
4058
|
|
|
4029
|
-
var _react = _interopRequireWildcard(React__default
|
|
4059
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4030
4060
|
|
|
4031
4061
|
|
|
4032
4062
|
|
|
@@ -4050,16 +4080,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4050
4080
|
|
|
4051
4081
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4052
4082
|
|
|
4053
|
-
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); }; }
|
|
4054
|
-
|
|
4055
4083
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4056
4084
|
|
|
4057
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4058
|
-
|
|
4059
|
-
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; } }
|
|
4060
|
-
|
|
4061
4085
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4062
4086
|
|
|
4087
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4088
|
+
|
|
4063
4089
|
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); }
|
|
4064
4090
|
|
|
4065
4091
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4068,14 +4094,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4068
4094
|
|
|
4069
4095
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4070
4096
|
var SDK_GLOBAL = 'SC';
|
|
4071
|
-
var MATCH_URL = /(
|
|
4097
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4072
4098
|
|
|
4073
|
-
var SoundCloud =
|
|
4099
|
+
var SoundCloud =
|
|
4100
|
+
/*#__PURE__*/
|
|
4101
|
+
function (_Component) {
|
|
4074
4102
|
_inherits(SoundCloud, _Component);
|
|
4075
4103
|
|
|
4076
|
-
var _super = _createSuper(SoundCloud);
|
|
4077
|
-
|
|
4078
4104
|
function SoundCloud() {
|
|
4105
|
+
var _getPrototypeOf2;
|
|
4106
|
+
|
|
4079
4107
|
var _this;
|
|
4080
4108
|
|
|
4081
4109
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4084,7 +4112,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4084
4112
|
args[_key] = arguments[_key];
|
|
4085
4113
|
}
|
|
4086
4114
|
|
|
4087
|
-
_this =
|
|
4115
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4088
4116
|
|
|
4089
4117
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4090
4118
|
|
|
@@ -4205,7 +4233,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4205
4233
|
height: '100%',
|
|
4206
4234
|
display: display
|
|
4207
4235
|
};
|
|
4208
|
-
return
|
|
4236
|
+
return _react["default"].createElement("iframe", {
|
|
4209
4237
|
ref: this.ref,
|
|
4210
4238
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4211
4239
|
style: style,
|
|
@@ -4234,7 +4262,7 @@ exports["default"] = _default;
|
|
|
4234
4262
|
});
|
|
4235
4263
|
|
|
4236
4264
|
_commonjsHelpers.unwrapExports(SoundCloud_1);
|
|
4237
|
-
SoundCloud_1.SoundCloud;
|
|
4265
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4238
4266
|
|
|
4239
4267
|
var Vimeo_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4240
4268
|
|
|
@@ -4243,7 +4271,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4243
4271
|
});
|
|
4244
4272
|
exports["default"] = exports.Vimeo = void 0;
|
|
4245
4273
|
|
|
4246
|
-
var _react = _interopRequireWildcard(React__default
|
|
4274
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4247
4275
|
|
|
4248
4276
|
|
|
4249
4277
|
|
|
@@ -4267,16 +4295,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4267
4295
|
|
|
4268
4296
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4269
4297
|
|
|
4270
|
-
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); }; }
|
|
4271
|
-
|
|
4272
4298
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4273
4299
|
|
|
4274
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4275
|
-
|
|
4276
|
-
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; } }
|
|
4277
|
-
|
|
4278
4300
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4279
4301
|
|
|
4302
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4303
|
+
|
|
4280
4304
|
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); }
|
|
4281
4305
|
|
|
4282
4306
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4288,12 +4312,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4288
4312
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4289
4313
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4290
4314
|
|
|
4291
|
-
var Vimeo =
|
|
4315
|
+
var Vimeo =
|
|
4316
|
+
/*#__PURE__*/
|
|
4317
|
+
function (_Component) {
|
|
4292
4318
|
_inherits(Vimeo, _Component);
|
|
4293
4319
|
|
|
4294
|
-
var _super = _createSuper(Vimeo);
|
|
4295
|
-
|
|
4296
4320
|
function Vimeo() {
|
|
4321
|
+
var _getPrototypeOf2;
|
|
4322
|
+
|
|
4297
4323
|
var _this;
|
|
4298
4324
|
|
|
4299
4325
|
_classCallCheck(this, Vimeo);
|
|
@@ -4302,7 +4328,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4302
4328
|
args[_key] = arguments[_key];
|
|
4303
4329
|
}
|
|
4304
4330
|
|
|
4305
|
-
_this =
|
|
4331
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4306
4332
|
|
|
4307
4333
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4308
4334
|
|
|
@@ -4459,7 +4485,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4459
4485
|
overflow: 'hidden',
|
|
4460
4486
|
display: display
|
|
4461
4487
|
};
|
|
4462
|
-
return
|
|
4488
|
+
return _react["default"].createElement("div", {
|
|
4463
4489
|
key: this.props.url,
|
|
4464
4490
|
ref: this.ref,
|
|
4465
4491
|
style: style
|
|
@@ -4490,7 +4516,7 @@ exports["default"] = _default;
|
|
|
4490
4516
|
});
|
|
4491
4517
|
|
|
4492
4518
|
_commonjsHelpers.unwrapExports(Vimeo_1);
|
|
4493
|
-
Vimeo_1.Vimeo;
|
|
4519
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4494
4520
|
|
|
4495
4521
|
var Facebook_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4496
4522
|
|
|
@@ -4499,7 +4525,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4499
4525
|
});
|
|
4500
4526
|
exports["default"] = exports.Facebook = void 0;
|
|
4501
4527
|
|
|
4502
|
-
var _react = _interopRequireWildcard(React__default
|
|
4528
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4503
4529
|
|
|
4504
4530
|
|
|
4505
4531
|
|
|
@@ -4519,16 +4545,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4519
4545
|
|
|
4520
4546
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4521
4547
|
|
|
4522
|
-
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); }; }
|
|
4523
|
-
|
|
4524
4548
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4525
4549
|
|
|
4526
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4527
|
-
|
|
4528
|
-
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; } }
|
|
4529
|
-
|
|
4530
4550
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4531
4551
|
|
|
4552
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4553
|
+
|
|
4532
4554
|
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); }
|
|
4533
4555
|
|
|
4534
4556
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4541,12 +4563,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4541
4563
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4542
4564
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4543
4565
|
|
|
4544
|
-
var Facebook =
|
|
4566
|
+
var Facebook =
|
|
4567
|
+
/*#__PURE__*/
|
|
4568
|
+
function (_Component) {
|
|
4545
4569
|
_inherits(Facebook, _Component);
|
|
4546
4570
|
|
|
4547
|
-
var _super = _createSuper(Facebook);
|
|
4548
|
-
|
|
4549
4571
|
function Facebook() {
|
|
4572
|
+
var _getPrototypeOf2;
|
|
4573
|
+
|
|
4550
4574
|
var _this;
|
|
4551
4575
|
|
|
4552
4576
|
_classCallCheck(this, Facebook);
|
|
@@ -4555,7 +4579,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4555
4579
|
args[_key] = arguments[_key];
|
|
4556
4580
|
}
|
|
4557
4581
|
|
|
4558
|
-
_this =
|
|
4582
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4559
4583
|
|
|
4560
4584
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4561
4585
|
|
|
@@ -4671,7 +4695,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4671
4695
|
width: '100%',
|
|
4672
4696
|
height: '100%'
|
|
4673
4697
|
};
|
|
4674
|
-
return
|
|
4698
|
+
return _react["default"].createElement("div", {
|
|
4675
4699
|
style: style,
|
|
4676
4700
|
id: this.playerID,
|
|
4677
4701
|
className: "fb-video",
|
|
@@ -4702,7 +4726,7 @@ exports["default"] = _default;
|
|
|
4702
4726
|
});
|
|
4703
4727
|
|
|
4704
4728
|
_commonjsHelpers.unwrapExports(Facebook_1);
|
|
4705
|
-
Facebook_1.Facebook;
|
|
4729
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4706
4730
|
|
|
4707
4731
|
var Streamable_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4708
4732
|
|
|
@@ -4711,7 +4735,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4711
4735
|
});
|
|
4712
4736
|
exports["default"] = exports.Streamable = void 0;
|
|
4713
4737
|
|
|
4714
|
-
var _react = _interopRequireWildcard(React__default
|
|
4738
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4715
4739
|
|
|
4716
4740
|
|
|
4717
4741
|
|
|
@@ -4731,16 +4755,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4731
4755
|
|
|
4732
4756
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4733
4757
|
|
|
4734
|
-
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); }; }
|
|
4735
|
-
|
|
4736
4758
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4737
4759
|
|
|
4738
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4739
|
-
|
|
4740
|
-
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; } }
|
|
4741
|
-
|
|
4742
4760
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4743
4761
|
|
|
4762
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4763
|
+
|
|
4744
4764
|
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); }
|
|
4745
4765
|
|
|
4746
4766
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4751,12 +4771,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4751
4771
|
var SDK_GLOBAL = 'playerjs';
|
|
4752
4772
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4753
4773
|
|
|
4754
|
-
var Streamable =
|
|
4774
|
+
var Streamable =
|
|
4775
|
+
/*#__PURE__*/
|
|
4776
|
+
function (_Component) {
|
|
4755
4777
|
_inherits(Streamable, _Component);
|
|
4756
4778
|
|
|
4757
|
-
var _super = _createSuper(Streamable);
|
|
4758
|
-
|
|
4759
4779
|
function Streamable() {
|
|
4780
|
+
var _getPrototypeOf2;
|
|
4781
|
+
|
|
4760
4782
|
var _this;
|
|
4761
4783
|
|
|
4762
4784
|
_classCallCheck(this, Streamable);
|
|
@@ -4765,7 +4787,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4765
4787
|
args[_key] = arguments[_key];
|
|
4766
4788
|
}
|
|
4767
4789
|
|
|
4768
|
-
_this =
|
|
4790
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4769
4791
|
|
|
4770
4792
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4771
4793
|
|
|
@@ -4885,7 +4907,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4885
4907
|
width: '100%',
|
|
4886
4908
|
height: '100%'
|
|
4887
4909
|
};
|
|
4888
|
-
return
|
|
4910
|
+
return _react["default"].createElement("iframe", {
|
|
4889
4911
|
ref: this.ref,
|
|
4890
4912
|
src: "https://streamable.com/o/".concat(id),
|
|
4891
4913
|
frameBorder: "0",
|
|
@@ -4913,7 +4935,7 @@ exports["default"] = _default;
|
|
|
4913
4935
|
});
|
|
4914
4936
|
|
|
4915
4937
|
_commonjsHelpers.unwrapExports(Streamable_1);
|
|
4916
|
-
Streamable_1.Streamable;
|
|
4938
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4917
4939
|
|
|
4918
4940
|
var Wistia_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4919
4941
|
|
|
@@ -4922,7 +4944,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4922
4944
|
});
|
|
4923
4945
|
exports["default"] = exports.Wistia = void 0;
|
|
4924
4946
|
|
|
4925
|
-
var _react = _interopRequireWildcard(React__default
|
|
4947
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4926
4948
|
|
|
4927
4949
|
|
|
4928
4950
|
|
|
@@ -4946,16 +4968,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4946
4968
|
|
|
4947
4969
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4948
4970
|
|
|
4949
|
-
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); }; }
|
|
4950
|
-
|
|
4951
4971
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4952
4972
|
|
|
4953
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4954
|
-
|
|
4955
|
-
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; } }
|
|
4956
|
-
|
|
4957
4973
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4958
4974
|
|
|
4975
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4976
|
+
|
|
4959
4977
|
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); }
|
|
4960
4978
|
|
|
4961
4979
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4966,48 +4984,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4966
4984
|
var SDK_GLOBAL = 'Wistia';
|
|
4967
4985
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4968
4986
|
|
|
4969
|
-
var Wistia =
|
|
4987
|
+
var Wistia =
|
|
4988
|
+
/*#__PURE__*/
|
|
4989
|
+
function (_Component) {
|
|
4970
4990
|
_inherits(Wistia, _Component);
|
|
4971
4991
|
|
|
4972
|
-
var _super = _createSuper(Wistia);
|
|
4973
|
-
|
|
4974
4992
|
function Wistia() {
|
|
4993
|
+
var _getPrototypeOf2;
|
|
4994
|
+
|
|
4975
4995
|
var _this;
|
|
4976
4996
|
|
|
4977
4997
|
_classCallCheck(this, Wistia);
|
|
4978
4998
|
|
|
4979
|
-
for (var _len = arguments.length,
|
|
4980
|
-
|
|
4999
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5000
|
+
args[_key] = arguments[_key];
|
|
4981
5001
|
}
|
|
4982
5002
|
|
|
4983
|
-
_this =
|
|
5003
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4984
5004
|
|
|
4985
5005
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4986
5006
|
|
|
4987
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4988
|
-
var _this$props;
|
|
4989
|
-
|
|
4990
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4991
|
-
});
|
|
4992
|
-
|
|
4993
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4994
|
-
var _this$props2;
|
|
4995
|
-
|
|
4996
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4997
|
-
});
|
|
4998
|
-
|
|
4999
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5000
|
-
var _this$props3;
|
|
5001
|
-
|
|
5002
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5003
|
-
});
|
|
5004
|
-
|
|
5005
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5006
|
-
var _this$props4;
|
|
5007
|
-
|
|
5008
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5009
|
-
});
|
|
5010
|
-
|
|
5011
5007
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5012
5008
|
_this.callPlayer('mute');
|
|
5013
5009
|
});
|
|
@@ -5029,13 +5025,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5029
5025
|
value: function load(url) {
|
|
5030
5026
|
var _this2 = this;
|
|
5031
5027
|
|
|
5032
|
-
var _this$
|
|
5033
|
-
playing = _this$
|
|
5034
|
-
muted = _this$
|
|
5035
|
-
controls = _this$
|
|
5036
|
-
_onReady = _this$
|
|
5037
|
-
|
|
5038
|
-
|
|
5028
|
+
var _this$props = this.props,
|
|
5029
|
+
playing = _this$props.playing,
|
|
5030
|
+
muted = _this$props.muted,
|
|
5031
|
+
controls = _this$props.controls,
|
|
5032
|
+
_onReady = _this$props.onReady,
|
|
5033
|
+
onPlay = _this$props.onPlay,
|
|
5034
|
+
onPause = _this$props.onPause,
|
|
5035
|
+
onSeek = _this$props.onSeek,
|
|
5036
|
+
onEnded = _this$props.onEnded,
|
|
5037
|
+
config = _this$props.config,
|
|
5038
|
+
onError = _this$props.onError;
|
|
5039
5039
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5040
5040
|
window._wq = window._wq || [];
|
|
5041
5041
|
|
|
@@ -5052,28 +5052,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5052
5052
|
|
|
5053
5053
|
_this2.unbind();
|
|
5054
5054
|
|
|
5055
|
-
_this2.player.bind('play',
|
|
5055
|
+
_this2.player.bind('play', onPlay);
|
|
5056
5056
|
|
|
5057
|
-
_this2.player.bind('pause',
|
|
5057
|
+
_this2.player.bind('pause', onPause);
|
|
5058
5058
|
|
|
5059
|
-
_this2.player.bind('seek',
|
|
5059
|
+
_this2.player.bind('seek', onSeek);
|
|
5060
5060
|
|
|
5061
|
-
_this2.player.bind('end',
|
|
5061
|
+
_this2.player.bind('end', onEnded);
|
|
5062
5062
|
|
|
5063
5063
|
_onReady();
|
|
5064
5064
|
}
|
|
5065
5065
|
});
|
|
5066
5066
|
}, onError);
|
|
5067
5067
|
}
|
|
5068
|
-
}, {
|
|
5069
|
-
key: "unbind",
|
|
5070
|
-
value: function unbind() {
|
|
5071
|
-
this.player.unbind('play', this.onPlay);
|
|
5072
|
-
this.player.unbind('pause', this.onPause);
|
|
5073
|
-
this.player.unbind('seek', this.onSeek);
|
|
5074
|
-
this.player.unbind('end', this.onEnded);
|
|
5075
|
-
} // Proxy methods to prevent listener leaks
|
|
5076
|
-
|
|
5077
5068
|
}, {
|
|
5078
5069
|
key: "play",
|
|
5079
5070
|
value: function play() {
|
|
@@ -5084,6 +5075,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5084
5075
|
value: function pause() {
|
|
5085
5076
|
this.callPlayer('pause');
|
|
5086
5077
|
}
|
|
5078
|
+
}, {
|
|
5079
|
+
key: "unbind",
|
|
5080
|
+
value: function unbind() {
|
|
5081
|
+
var _this$props2 = this.props,
|
|
5082
|
+
onPlay = _this$props2.onPlay,
|
|
5083
|
+
onPause = _this$props2.onPause,
|
|
5084
|
+
onSeek = _this$props2.onSeek,
|
|
5085
|
+
onEnded = _this$props2.onEnded;
|
|
5086
|
+
this.player.unbind('play', onPlay);
|
|
5087
|
+
this.player.unbind('pause', onPause);
|
|
5088
|
+
this.player.unbind('seek', onSeek);
|
|
5089
|
+
this.player.unbind('end', onEnded);
|
|
5090
|
+
}
|
|
5087
5091
|
}, {
|
|
5088
5092
|
key: "stop",
|
|
5089
5093
|
value: function stop() {
|
|
@@ -5129,7 +5133,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5129
5133
|
width: '100%',
|
|
5130
5134
|
height: '100%'
|
|
5131
5135
|
};
|
|
5132
|
-
return
|
|
5136
|
+
return _react["default"].createElement("div", {
|
|
5133
5137
|
key: id,
|
|
5134
5138
|
className: className,
|
|
5135
5139
|
style: style
|
|
@@ -5156,7 +5160,7 @@ exports["default"] = _default;
|
|
|
5156
5160
|
});
|
|
5157
5161
|
|
|
5158
5162
|
_commonjsHelpers.unwrapExports(Wistia_1);
|
|
5159
|
-
Wistia_1.Wistia;
|
|
5163
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5160
5164
|
|
|
5161
5165
|
var Twitch_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5162
5166
|
|
|
@@ -5165,7 +5169,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5165
5169
|
});
|
|
5166
5170
|
exports["default"] = exports.Twitch = void 0;
|
|
5167
5171
|
|
|
5168
|
-
var _react = _interopRequireWildcard(React__default
|
|
5172
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5169
5173
|
|
|
5170
5174
|
|
|
5171
5175
|
|
|
@@ -5189,16 +5193,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5189
5193
|
|
|
5190
5194
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5191
5195
|
|
|
5192
|
-
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); }; }
|
|
5193
|
-
|
|
5194
5196
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5195
5197
|
|
|
5196
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5197
|
-
|
|
5198
|
-
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; } }
|
|
5199
|
-
|
|
5200
5198
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5201
5199
|
|
|
5200
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5201
|
+
|
|
5202
5202
|
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); }
|
|
5203
5203
|
|
|
5204
5204
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5211,12 +5211,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5211
5211
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5212
5212
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5213
5213
|
|
|
5214
|
-
var Twitch =
|
|
5214
|
+
var Twitch =
|
|
5215
|
+
/*#__PURE__*/
|
|
5216
|
+
function (_Component) {
|
|
5215
5217
|
_inherits(Twitch, _Component);
|
|
5216
5218
|
|
|
5217
|
-
var _super = _createSuper(Twitch);
|
|
5218
|
-
|
|
5219
5219
|
function Twitch() {
|
|
5220
|
+
var _getPrototypeOf2;
|
|
5221
|
+
|
|
5220
5222
|
var _this;
|
|
5221
5223
|
|
|
5222
5224
|
_classCallCheck(this, Twitch);
|
|
@@ -5225,7 +5227,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5225
5227
|
args[_key] = arguments[_key];
|
|
5226
5228
|
}
|
|
5227
5229
|
|
|
5228
|
-
_this =
|
|
5230
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5229
5231
|
|
|
5230
5232
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5231
5233
|
|
|
@@ -5346,7 +5348,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5346
5348
|
width: '100%',
|
|
5347
5349
|
height: '100%'
|
|
5348
5350
|
};
|
|
5349
|
-
return
|
|
5351
|
+
return _react["default"].createElement("div", {
|
|
5350
5352
|
style: style,
|
|
5351
5353
|
id: this.playerID
|
|
5352
5354
|
});
|
|
@@ -5372,7 +5374,7 @@ exports["default"] = _default;
|
|
|
5372
5374
|
});
|
|
5373
5375
|
|
|
5374
5376
|
_commonjsHelpers.unwrapExports(Twitch_1);
|
|
5375
|
-
Twitch_1.Twitch;
|
|
5377
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5376
5378
|
|
|
5377
5379
|
var DailyMotion_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5378
5380
|
|
|
@@ -5381,7 +5383,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5381
5383
|
});
|
|
5382
5384
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5383
5385
|
|
|
5384
|
-
var _react = _interopRequireWildcard(React__default
|
|
5386
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5385
5387
|
|
|
5386
5388
|
|
|
5387
5389
|
|
|
@@ -5399,15 +5401,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5399
5401
|
|
|
5400
5402
|
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; }
|
|
5401
5403
|
|
|
5402
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5403
|
-
|
|
5404
|
-
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."); }
|
|
5405
|
-
|
|
5406
|
-
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); }
|
|
5404
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5407
5405
|
|
|
5408
|
-
function
|
|
5406
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5409
5407
|
|
|
5410
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
5408
|
+
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; }
|
|
5411
5409
|
|
|
5412
5410
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5413
5411
|
|
|
@@ -5417,16 +5415,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5417
5415
|
|
|
5418
5416
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5419
5417
|
|
|
5420
|
-
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); }; }
|
|
5421
|
-
|
|
5422
5418
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5423
5419
|
|
|
5424
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5425
|
-
|
|
5426
|
-
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; } }
|
|
5427
|
-
|
|
5428
5420
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5429
5421
|
|
|
5422
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5423
|
+
|
|
5430
5424
|
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); }
|
|
5431
5425
|
|
|
5432
5426
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5438,12 +5432,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5438
5432
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5439
5433
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5440
5434
|
|
|
5441
|
-
var DailyMotion =
|
|
5435
|
+
var DailyMotion =
|
|
5436
|
+
/*#__PURE__*/
|
|
5437
|
+
function (_Component) {
|
|
5442
5438
|
_inherits(DailyMotion, _Component);
|
|
5443
5439
|
|
|
5444
|
-
var _super = _createSuper(DailyMotion);
|
|
5445
|
-
|
|
5446
5440
|
function DailyMotion() {
|
|
5441
|
+
var _getPrototypeOf2;
|
|
5442
|
+
|
|
5447
5443
|
var _this;
|
|
5448
5444
|
|
|
5449
5445
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5452,7 +5448,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5452
5448
|
args[_key] = arguments[_key];
|
|
5453
5449
|
}
|
|
5454
5450
|
|
|
5455
|
-
_this =
|
|
5451
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5456
5452
|
|
|
5457
5453
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5458
5454
|
|
|
@@ -5581,9 +5577,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5581
5577
|
height: '100%',
|
|
5582
5578
|
display: display
|
|
5583
5579
|
};
|
|
5584
|
-
return
|
|
5580
|
+
return _react["default"].createElement("div", {
|
|
5585
5581
|
style: style
|
|
5586
|
-
},
|
|
5582
|
+
}, _react["default"].createElement("div", {
|
|
5587
5583
|
ref: this.ref
|
|
5588
5584
|
}));
|
|
5589
5585
|
}
|
|
@@ -5608,7 +5604,7 @@ exports["default"] = _default;
|
|
|
5608
5604
|
});
|
|
5609
5605
|
|
|
5610
5606
|
_commonjsHelpers.unwrapExports(DailyMotion_1);
|
|
5611
|
-
DailyMotion_1.DailyMotion;
|
|
5607
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5612
5608
|
|
|
5613
5609
|
var Mixcloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5614
5610
|
|
|
@@ -5617,7 +5613,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5617
5613
|
});
|
|
5618
5614
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5619
5615
|
|
|
5620
|
-
var _react = _interopRequireWildcard(React__default
|
|
5616
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5621
5617
|
|
|
5622
5618
|
|
|
5623
5619
|
|
|
@@ -5641,16 +5637,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5641
5637
|
|
|
5642
5638
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5643
5639
|
|
|
5644
|
-
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); }; }
|
|
5645
|
-
|
|
5646
5640
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5647
5641
|
|
|
5648
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5649
|
-
|
|
5650
|
-
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; } }
|
|
5651
|
-
|
|
5652
5642
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5653
5643
|
|
|
5644
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5645
|
+
|
|
5654
5646
|
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); }
|
|
5655
5647
|
|
|
5656
5648
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5661,12 +5653,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5661
5653
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5662
5654
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5663
5655
|
|
|
5664
|
-
var Mixcloud =
|
|
5656
|
+
var Mixcloud =
|
|
5657
|
+
/*#__PURE__*/
|
|
5658
|
+
function (_Component) {
|
|
5665
5659
|
_inherits(Mixcloud, _Component);
|
|
5666
5660
|
|
|
5667
|
-
var _super = _createSuper(Mixcloud);
|
|
5668
|
-
|
|
5669
5661
|
function Mixcloud() {
|
|
5662
|
+
var _getPrototypeOf2;
|
|
5663
|
+
|
|
5670
5664
|
var _this;
|
|
5671
5665
|
|
|
5672
5666
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5675,7 +5669,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5675
5669
|
args[_key] = arguments[_key];
|
|
5676
5670
|
}
|
|
5677
5671
|
|
|
5678
|
-
_this =
|
|
5672
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5679
5673
|
|
|
5680
5674
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5681
5675
|
|
|
@@ -5778,7 +5772,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5778
5772
|
})); // We have to give the iframe a key here to prevent a
|
|
5779
5773
|
// weird dialog appearing when loading a new track
|
|
5780
5774
|
|
|
5781
|
-
return
|
|
5775
|
+
return _react["default"].createElement("iframe", {
|
|
5782
5776
|
key: id,
|
|
5783
5777
|
ref: this.ref,
|
|
5784
5778
|
style: style,
|
|
@@ -5807,7 +5801,7 @@ exports["default"] = _default;
|
|
|
5807
5801
|
});
|
|
5808
5802
|
|
|
5809
5803
|
_commonjsHelpers.unwrapExports(Mixcloud_1);
|
|
5810
|
-
Mixcloud_1.Mixcloud;
|
|
5804
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5811
5805
|
|
|
5812
5806
|
var FilePlayer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5813
5807
|
|
|
@@ -5816,7 +5810,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5816
5810
|
});
|
|
5817
5811
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5818
5812
|
|
|
5819
|
-
var _react = _interopRequireWildcard(React__default
|
|
5813
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5820
5814
|
|
|
5821
5815
|
|
|
5822
5816
|
|
|
@@ -5838,33 +5832,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5838
5832
|
|
|
5839
5833
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5840
5834
|
|
|
5841
|
-
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); }; }
|
|
5842
|
-
|
|
5843
5835
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5844
5836
|
|
|
5845
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5846
|
-
|
|
5847
|
-
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; } }
|
|
5848
|
-
|
|
5849
5837
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5850
5838
|
|
|
5839
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5840
|
+
|
|
5851
5841
|
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); }
|
|
5852
5842
|
|
|
5853
5843
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5854
5844
|
|
|
5855
5845
|
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; }
|
|
5856
5846
|
|
|
5857
|
-
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; } } }; }
|
|
5858
|
-
|
|
5859
|
-
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); }
|
|
5860
|
-
|
|
5861
|
-
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; }
|
|
5862
|
-
|
|
5863
5847
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5864
5848
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5865
5849
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5866
5850
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5867
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5851
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5868
5852
|
var HLS_GLOBAL = 'Hls';
|
|
5869
5853
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5870
5854
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5873,11 +5857,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5873
5857
|
|
|
5874
5858
|
function canPlay(url) {
|
|
5875
5859
|
if (url instanceof Array) {
|
|
5876
|
-
var
|
|
5877
|
-
|
|
5860
|
+
var _iteratorNormalCompletion = true;
|
|
5861
|
+
var _didIteratorError = false;
|
|
5862
|
+
var _iteratorError = undefined;
|
|
5878
5863
|
|
|
5879
5864
|
try {
|
|
5880
|
-
for (_iterator.
|
|
5865
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5881
5866
|
var item = _step.value;
|
|
5882
5867
|
|
|
5883
5868
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5889,9 +5874,18 @@ function canPlay(url) {
|
|
|
5889
5874
|
}
|
|
5890
5875
|
}
|
|
5891
5876
|
} catch (err) {
|
|
5892
|
-
|
|
5877
|
+
_didIteratorError = true;
|
|
5878
|
+
_iteratorError = err;
|
|
5893
5879
|
} finally {
|
|
5894
|
-
|
|
5880
|
+
try {
|
|
5881
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5882
|
+
_iterator["return"]();
|
|
5883
|
+
}
|
|
5884
|
+
} finally {
|
|
5885
|
+
if (_didIteratorError) {
|
|
5886
|
+
throw _iteratorError;
|
|
5887
|
+
}
|
|
5888
|
+
}
|
|
5895
5889
|
}
|
|
5896
5890
|
|
|
5897
5891
|
return false;
|
|
@@ -5915,12 +5909,14 @@ function canEnablePIP(url) {
|
|
|
5915
5909
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5916
5910
|
}
|
|
5917
5911
|
|
|
5918
|
-
var FilePlayer =
|
|
5912
|
+
var FilePlayer =
|
|
5913
|
+
/*#__PURE__*/
|
|
5914
|
+
function (_Component) {
|
|
5919
5915
|
_inherits(FilePlayer, _Component);
|
|
5920
5916
|
|
|
5921
|
-
var _super = _createSuper(FilePlayer);
|
|
5922
|
-
|
|
5923
5917
|
function FilePlayer() {
|
|
5918
|
+
var _getPrototypeOf2;
|
|
5919
|
+
|
|
5924
5920
|
var _this;
|
|
5925
5921
|
|
|
5926
5922
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5929,7 +5925,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5929
5925
|
_args[_key] = arguments[_key];
|
|
5930
5926
|
}
|
|
5931
5927
|
|
|
5932
|
-
_this =
|
|
5928
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5933
5929
|
|
|
5934
5930
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5935
5931
|
var _this$props;
|
|
@@ -6016,19 +6012,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6016
6012
|
|
|
6017
6013
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6018
6014
|
if (typeof source === 'string') {
|
|
6019
|
-
return
|
|
6015
|
+
return _react["default"].createElement("source", {
|
|
6020
6016
|
key: index,
|
|
6021
6017
|
src: source
|
|
6022
6018
|
});
|
|
6023
6019
|
}
|
|
6024
6020
|
|
|
6025
|
-
return
|
|
6021
|
+
return _react["default"].createElement("source", _extends({
|
|
6026
6022
|
key: index
|
|
6027
6023
|
}, source));
|
|
6028
6024
|
});
|
|
6029
6025
|
|
|
6030
6026
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6031
|
-
return
|
|
6027
|
+
return _react["default"].createElement("track", _extends({
|
|
6032
6028
|
key: index
|
|
6033
6029
|
}, track));
|
|
6034
6030
|
});
|
|
@@ -6066,10 +6062,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6066
6062
|
key: "componentWillUnmount",
|
|
6067
6063
|
value: function componentWillUnmount() {
|
|
6068
6064
|
this.removeListeners(this.player);
|
|
6069
|
-
|
|
6070
|
-
if (this.hls) {
|
|
6071
|
-
this.hls.destroy();
|
|
6072
|
-
}
|
|
6073
6065
|
}
|
|
6074
6066
|
}, {
|
|
6075
6067
|
key: "addListeners",
|
|
@@ -6200,6 +6192,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6200
6192
|
value: function stop() {
|
|
6201
6193
|
this.player.removeAttribute('src');
|
|
6202
6194
|
|
|
6195
|
+
if (this.hls) {
|
|
6196
|
+
this.hls.destroy();
|
|
6197
|
+
}
|
|
6198
|
+
|
|
6203
6199
|
if (this.dash) {
|
|
6204
6200
|
this.dash.reset();
|
|
6205
6201
|
}
|
|
@@ -6311,7 +6307,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6311
6307
|
width: width === 'auto' ? width : '100%',
|
|
6312
6308
|
height: height === 'auto' ? height : '100%'
|
|
6313
6309
|
};
|
|
6314
|
-
return
|
|
6310
|
+
return _react["default"].createElement(Element, _extends({
|
|
6315
6311
|
ref: this.ref,
|
|
6316
6312
|
src: this.getSource(url),
|
|
6317
6313
|
style: style,
|
|
@@ -6341,7 +6337,7 @@ exports["default"] = _default;
|
|
|
6341
6337
|
});
|
|
6342
6338
|
|
|
6343
6339
|
_commonjsHelpers.unwrapExports(FilePlayer_1);
|
|
6344
|
-
FilePlayer_1.FilePlayer;
|
|
6340
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6345
6341
|
|
|
6346
6342
|
var players = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
6347
6343
|
|
|
@@ -6383,7 +6379,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6383
6379
|
});
|
|
6384
6380
|
exports["default"] = void 0;
|
|
6385
6381
|
|
|
6386
|
-
var _react = _interopRequireWildcard(React__default
|
|
6382
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6387
6383
|
|
|
6388
6384
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6389
6385
|
|
|
@@ -6401,16 +6397,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6401
6397
|
|
|
6402
6398
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6403
6399
|
|
|
6404
|
-
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); }; }
|
|
6405
|
-
|
|
6406
6400
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6407
6401
|
|
|
6408
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6409
|
-
|
|
6410
|
-
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; } }
|
|
6411
|
-
|
|
6412
6402
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6413
6403
|
|
|
6404
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6405
|
+
|
|
6414
6406
|
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); }
|
|
6415
6407
|
|
|
6416
6408
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6419,12 +6411,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6419
6411
|
|
|
6420
6412
|
var ICON_SIZE = '64px';
|
|
6421
6413
|
|
|
6422
|
-
var Preview =
|
|
6414
|
+
var Preview =
|
|
6415
|
+
/*#__PURE__*/
|
|
6416
|
+
function (_Component) {
|
|
6423
6417
|
_inherits(Preview, _Component);
|
|
6424
6418
|
|
|
6425
|
-
var _super = _createSuper(Preview);
|
|
6426
|
-
|
|
6427
6419
|
function Preview() {
|
|
6420
|
+
var _getPrototypeOf2;
|
|
6421
|
+
|
|
6428
6422
|
var _this;
|
|
6429
6423
|
|
|
6430
6424
|
_classCallCheck(this, Preview);
|
|
@@ -6433,7 +6427,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6433
6427
|
args[_key] = arguments[_key];
|
|
6434
6428
|
}
|
|
6435
6429
|
|
|
6436
|
-
_this =
|
|
6430
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6437
6431
|
|
|
6438
6432
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6439
6433
|
|
|
@@ -6531,15 +6525,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6531
6525
|
}
|
|
6532
6526
|
};
|
|
6533
6527
|
|
|
6534
|
-
var defaultPlayIcon =
|
|
6528
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6535
6529
|
style: styles.shadow,
|
|
6536
6530
|
className: "react-player__shadow"
|
|
6537
|
-
},
|
|
6531
|
+
}, _react["default"].createElement("div", {
|
|
6538
6532
|
style: styles.playIcon,
|
|
6539
6533
|
className: "react-player__play-icon"
|
|
6540
6534
|
}));
|
|
6541
6535
|
|
|
6542
|
-
return
|
|
6536
|
+
return _react["default"].createElement("div", {
|
|
6543
6537
|
style: styles.preview,
|
|
6544
6538
|
className: "react-player__preview",
|
|
6545
6539
|
onClick: onClick
|
|
@@ -6562,7 +6556,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6562
6556
|
});
|
|
6563
6557
|
exports["default"] = renderPreloadPlayers;
|
|
6564
6558
|
|
|
6565
|
-
var _react = _interopRequireDefault(React__default
|
|
6559
|
+
var _react = _interopRequireDefault(React__default);
|
|
6566
6560
|
|
|
6567
6561
|
var _Player = _interopRequireDefault(Player_1);
|
|
6568
6562
|
|
|
@@ -6576,12 +6570,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6576
6570
|
|
|
6577
6571
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6578
6572
|
|
|
6579
|
-
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; } } }; }
|
|
6580
|
-
|
|
6581
|
-
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); }
|
|
6582
|
-
|
|
6583
|
-
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; }
|
|
6584
|
-
|
|
6585
6573
|
var PRELOAD_PLAYERS = [{
|
|
6586
6574
|
Player: YouTube_1.YouTube,
|
|
6587
6575
|
configKey: 'youtube',
|
|
@@ -6602,16 +6590,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6602
6590
|
|
|
6603
6591
|
function renderPreloadPlayers(url, controls, config) {
|
|
6604
6592
|
var players = [];
|
|
6605
|
-
|
|
6606
|
-
var
|
|
6607
|
-
|
|
6593
|
+
var _iteratorNormalCompletion = true;
|
|
6594
|
+
var _didIteratorError = false;
|
|
6595
|
+
var _iteratorError = undefined;
|
|
6608
6596
|
|
|
6609
6597
|
try {
|
|
6610
|
-
for (_iterator.
|
|
6598
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6611
6599
|
var player = _step.value;
|
|
6612
6600
|
|
|
6613
6601
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6614
|
-
players.push(
|
|
6602
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6615
6603
|
key: player.Player.displayName,
|
|
6616
6604
|
activePlayer: player.Player,
|
|
6617
6605
|
url: player.url,
|
|
@@ -6623,9 +6611,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6623
6611
|
}
|
|
6624
6612
|
}
|
|
6625
6613
|
} catch (err) {
|
|
6626
|
-
|
|
6614
|
+
_didIteratorError = true;
|
|
6615
|
+
_iteratorError = err;
|
|
6627
6616
|
} finally {
|
|
6628
|
-
|
|
6617
|
+
try {
|
|
6618
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6619
|
+
_iterator["return"]();
|
|
6620
|
+
}
|
|
6621
|
+
} finally {
|
|
6622
|
+
if (_didIteratorError) {
|
|
6623
|
+
throw _iteratorError;
|
|
6624
|
+
}
|
|
6625
|
+
}
|
|
6629
6626
|
}
|
|
6630
6627
|
|
|
6631
6628
|
return players;
|
|
@@ -6701,7 +6698,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6701
6698
|
});
|
|
6702
6699
|
exports["default"] = void 0;
|
|
6703
6700
|
|
|
6704
|
-
var _react = _interopRequireWildcard(React__default
|
|
6701
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6705
6702
|
|
|
6706
6703
|
|
|
6707
6704
|
|
|
@@ -6749,17 +6746,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6749
6746
|
|
|
6750
6747
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6751
6748
|
|
|
6752
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6753
|
-
|
|
6754
|
-
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."); }
|
|
6749
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6755
6750
|
|
|
6756
|
-
function
|
|
6751
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6757
6752
|
|
|
6758
|
-
function _iterableToArray(iter) { if (
|
|
6753
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6759
6754
|
|
|
6760
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6761
|
-
|
|
6762
|
-
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; }
|
|
6755
|
+
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; } }
|
|
6763
6756
|
|
|
6764
6757
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6765
6758
|
|
|
@@ -6767,16 +6760,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6767
6760
|
|
|
6768
6761
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6769
6762
|
|
|
6770
|
-
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); }; }
|
|
6771
|
-
|
|
6772
6763
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6773
6764
|
|
|
6774
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6775
|
-
|
|
6776
|
-
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; } }
|
|
6777
|
-
|
|
6778
6765
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6779
6766
|
|
|
6767
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6768
|
+
|
|
6780
6769
|
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); }
|
|
6781
6770
|
|
|
6782
6771
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6786,12 +6775,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6786
6775
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6787
6776
|
var customPlayers = [];
|
|
6788
6777
|
|
|
6789
|
-
var ReactPlayer =
|
|
6778
|
+
var ReactPlayer =
|
|
6779
|
+
/*#__PURE__*/
|
|
6780
|
+
function (_Component) {
|
|
6790
6781
|
_inherits(ReactPlayer, _Component);
|
|
6791
6782
|
|
|
6792
|
-
var _super = _createSuper(ReactPlayer);
|
|
6793
|
-
|
|
6794
6783
|
function ReactPlayer() {
|
|
6784
|
+
var _getPrototypeOf2;
|
|
6785
|
+
|
|
6795
6786
|
var _this;
|
|
6796
6787
|
|
|
6797
6788
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6800,7 +6791,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6800
6791
|
args[_key] = arguments[_key];
|
|
6801
6792
|
}
|
|
6802
6793
|
|
|
6803
|
-
_this =
|
|
6794
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6804
6795
|
|
|
6805
6796
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6806
6797
|
|
|
@@ -6911,7 +6902,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6911
6902
|
key: "renderActivePlayer",
|
|
6912
6903
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6913
6904
|
if (!url) return null;
|
|
6914
|
-
return
|
|
6905
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6915
6906
|
key: activePlayer.displayName,
|
|
6916
6907
|
ref: this.activePlayerRef,
|
|
6917
6908
|
config: this.config,
|
|
@@ -6948,14 +6939,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6948
6939
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6949
6940
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6950
6941
|
|
|
6951
|
-
var preview =
|
|
6942
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6952
6943
|
url: url,
|
|
6953
6944
|
light: light,
|
|
6954
6945
|
playIcon: playIcon,
|
|
6955
6946
|
onClick: this.handleClickPreview
|
|
6956
6947
|
});
|
|
6957
6948
|
|
|
6958
|
-
return
|
|
6949
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6959
6950
|
ref: this.wrapperRef,
|
|
6960
6951
|
style: _objectSpread({}, style, {
|
|
6961
6952
|
width: width,
|
|
@@ -7015,20 +7006,20 @@ var Audio = function Audio(_ref) {
|
|
|
7015
7006
|
var node = _ref.node;
|
|
7016
7007
|
|
|
7017
7008
|
if (node.uploadAudio) {
|
|
7018
|
-
return React__default
|
|
7009
|
+
return React__default.createElement(
|
|
7019
7010
|
'div',
|
|
7020
7011
|
{ className: 'audio d-block text-center mb-3' },
|
|
7021
|
-
React__default
|
|
7012
|
+
React__default.createElement(
|
|
7022
7013
|
'audio',
|
|
7023
7014
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7024
|
-
React__default
|
|
7025
|
-
React__default
|
|
7015
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7016
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7026
7017
|
'Your browser does not support the audio element.'
|
|
7027
7018
|
),
|
|
7028
|
-
node.caption && React__default
|
|
7019
|
+
node.caption && React__default.createElement(
|
|
7029
7020
|
'p',
|
|
7030
7021
|
{ style: { fontSize: '.9rem' } },
|
|
7031
|
-
React__default
|
|
7022
|
+
React__default.createElement(
|
|
7032
7023
|
'em',
|
|
7033
7024
|
null,
|
|
7034
7025
|
node.caption
|
|
@@ -7038,15 +7029,15 @@ var Audio = function Audio(_ref) {
|
|
|
7038
7029
|
} else if (node.audioFilePth) {
|
|
7039
7030
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7040
7031
|
if (hostname === 'embeds.audioboom.com') {
|
|
7041
|
-
return React__default
|
|
7032
|
+
return React__default.createElement(
|
|
7042
7033
|
'div',
|
|
7043
7034
|
null,
|
|
7044
|
-
React__default
|
|
7035
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7045
7036
|
' ',
|
|
7046
|
-
node.caption && React__default
|
|
7037
|
+
node.caption && React__default.createElement(
|
|
7047
7038
|
'p',
|
|
7048
7039
|
{ style: { fontSize: '.9rem' } },
|
|
7049
|
-
React__default
|
|
7040
|
+
React__default.createElement(
|
|
7050
7041
|
'em',
|
|
7051
7042
|
null,
|
|
7052
7043
|
node.caption
|
|
@@ -7054,14 +7045,14 @@ var Audio = function Audio(_ref) {
|
|
|
7054
7045
|
)
|
|
7055
7046
|
);
|
|
7056
7047
|
}
|
|
7057
|
-
return React__default
|
|
7048
|
+
return React__default.createElement(
|
|
7058
7049
|
'div',
|
|
7059
7050
|
{ className: 'audio' },
|
|
7060
|
-
React__default
|
|
7061
|
-
node.caption && React__default
|
|
7051
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7052
|
+
node.caption && React__default.createElement(
|
|
7062
7053
|
'p',
|
|
7063
7054
|
{ style: { fontSize: '.9rem' } },
|
|
7064
|
-
React__default
|
|
7055
|
+
React__default.createElement(
|
|
7065
7056
|
'em',
|
|
7066
7057
|
null,
|
|
7067
7058
|
node.caption
|
|
@@ -7079,34 +7070,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7079
7070
|
var profileImage = arguments[6];
|
|
7080
7071
|
|
|
7081
7072
|
if (authorName && authorURL) {
|
|
7082
|
-
return React__default
|
|
7073
|
+
return React__default.createElement(
|
|
7083
7074
|
'span',
|
|
7084
7075
|
null,
|
|
7085
|
-
React__default
|
|
7076
|
+
React__default.createElement(
|
|
7086
7077
|
'a',
|
|
7087
7078
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7088
7079
|
authorName
|
|
7089
7080
|
),
|
|
7090
|
-
React__default
|
|
7081
|
+
React__default.createElement(
|
|
7091
7082
|
reactBootstrap.Card,
|
|
7092
7083
|
{ className: 'author-details-card-' + index },
|
|
7093
|
-
React__default
|
|
7084
|
+
React__default.createElement(
|
|
7094
7085
|
reactBootstrap.Row,
|
|
7095
7086
|
null,
|
|
7096
|
-
profileImage && React__default
|
|
7087
|
+
profileImage && React__default.createElement(
|
|
7097
7088
|
reactBootstrap.Col,
|
|
7098
7089
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7099
|
-
React__default
|
|
7090
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7100
7091
|
),
|
|
7101
|
-
React__default
|
|
7092
|
+
React__default.createElement(
|
|
7102
7093
|
reactBootstrap.Col,
|
|
7103
7094
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7104
|
-
React__default
|
|
7095
|
+
React__default.createElement(
|
|
7105
7096
|
'div',
|
|
7106
7097
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7107
7098
|
authorName
|
|
7108
7099
|
),
|
|
7109
|
-
React__default
|
|
7100
|
+
React__default.createElement(
|
|
7110
7101
|
'p',
|
|
7111
7102
|
null,
|
|
7112
7103
|
biography
|
|
@@ -7114,7 +7105,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7114
7105
|
)
|
|
7115
7106
|
)
|
|
7116
7107
|
),
|
|
7117
|
-
React__default
|
|
7108
|
+
React__default.createElement(
|
|
7118
7109
|
'style',
|
|
7119
7110
|
{ jsx: 'true' },
|
|
7120
7111
|
'\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 '
|
|
@@ -7122,7 +7113,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7122
7113
|
length !== index + 1 && ' , '
|
|
7123
7114
|
);
|
|
7124
7115
|
} else if (authorName) {
|
|
7125
|
-
return React__default
|
|
7116
|
+
return React__default.createElement(
|
|
7126
7117
|
'span',
|
|
7127
7118
|
{ key: index },
|
|
7128
7119
|
authorName,
|
|
@@ -7224,7 +7215,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7224
7215
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7225
7216
|
data.push({ title: vid.title, thumbnail: urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
|
|
7226
7217
|
} else {
|
|
7227
|
-
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$
|
|
7218
|
+
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$3.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7228
7219
|
}
|
|
7229
7220
|
}
|
|
7230
7221
|
});
|
|
@@ -7277,14 +7268,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7277
7268
|
var duration = player.getDuration();
|
|
7278
7269
|
var queue = Math.floor(duration / 10);
|
|
7279
7270
|
var segment = Math.floor(current / queue);
|
|
7280
|
-
Beam.report_beam_video('Ready', main.
|
|
7281
|
-
Segment.report_video_event('Video Ready', main.
|
|
7271
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
|
|
7272
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
7282
7273
|
//autoplay
|
|
7283
7274
|
|
|
7284
7275
|
//Small pause before starting next video
|
|
7285
7276
|
setTimeout(function () {
|
|
7286
7277
|
//Youtube API to start video playing automatically
|
|
7287
|
-
var id = index$
|
|
7278
|
+
var id = index$3.getYoutubeId(vidUrl);
|
|
7288
7279
|
event.target.loadVideoById(id);
|
|
7289
7280
|
}, 1500);
|
|
7290
7281
|
};
|
|
@@ -7298,8 +7289,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7298
7289
|
var queue = Math.floor(duration / 10);
|
|
7299
7290
|
var segment = Math.floor(current / queue);
|
|
7300
7291
|
|
|
7301
|
-
Beam.report_beam_video('End', main.
|
|
7302
|
-
Segment.report_video_event('Video End', main.
|
|
7292
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment);
|
|
7293
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
7303
7294
|
setEndReported(true);
|
|
7304
7295
|
clearInterval(intervalID);
|
|
7305
7296
|
}
|
|
@@ -7349,8 +7340,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7349
7340
|
var queue = Math.floor(duration / 10);
|
|
7350
7341
|
var segment = Math.floor(current / queue);
|
|
7351
7342
|
if (!queueProgress.includes(segment)) {
|
|
7352
|
-
Beam.report_beam_video('Segment', main.
|
|
7353
|
-
Segment.report_video_event('Video Segment', main.
|
|
7343
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
|
|
7344
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
7354
7345
|
queueProgress.push(segment);
|
|
7355
7346
|
}
|
|
7356
7347
|
};
|
|
@@ -7363,8 +7354,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7363
7354
|
var queue = Math.floor(duration / 10);
|
|
7364
7355
|
var segment = Math.floor(current / queue);
|
|
7365
7356
|
|
|
7366
|
-
Beam.report_beam_video('Play', main.
|
|
7367
|
-
Segment.report_video_event('Video Play', main.
|
|
7357
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment);
|
|
7358
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
7368
7359
|
|
|
7369
7360
|
if (!playReported) {
|
|
7370
7361
|
setPlayReported(true);
|
|
@@ -7382,8 +7373,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7382
7373
|
var queue = Math.floor(duration / 10);
|
|
7383
7374
|
var segment = Math.floor(current / queue);
|
|
7384
7375
|
|
|
7385
|
-
Beam.report_beam_video('Pause', main.
|
|
7386
|
-
Segment.report_video_event('Video Pause', main.
|
|
7376
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
|
|
7377
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
7387
7378
|
};
|
|
7388
7379
|
|
|
7389
7380
|
// Youtube Options
|
|
@@ -7394,44 +7385,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7394
7385
|
}
|
|
7395
7386
|
};
|
|
7396
7387
|
|
|
7397
|
-
return React__default
|
|
7388
|
+
return React__default.createElement(
|
|
7398
7389
|
'div',
|
|
7399
7390
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7400
|
-
React__default
|
|
7391
|
+
React__default.createElement(
|
|
7401
7392
|
'div',
|
|
7402
7393
|
{ className: 'mt-2 mb-5' },
|
|
7403
|
-
series && React__default
|
|
7394
|
+
series && React__default.createElement(
|
|
7404
7395
|
'div',
|
|
7405
7396
|
{ style: { fontSize: '0.9rem' } },
|
|
7406
7397
|
article.title,
|
|
7407
7398
|
' - Episode ',
|
|
7408
7399
|
series
|
|
7409
7400
|
),
|
|
7410
|
-
Videos[series - 1] && React__default
|
|
7401
|
+
Videos[series - 1] && React__default.createElement(
|
|
7411
7402
|
'h1',
|
|
7412
7403
|
{ className: 'mb-3' },
|
|
7413
7404
|
Videos[series - 1].title
|
|
7414
7405
|
),
|
|
7415
|
-
React__default
|
|
7406
|
+
React__default.createElement(
|
|
7416
7407
|
'div',
|
|
7417
7408
|
null,
|
|
7418
7409
|
moment.moment(article.published).format('LL')
|
|
7419
7410
|
),
|
|
7420
|
-
React__default
|
|
7411
|
+
React__default.createElement(
|
|
7421
7412
|
'div',
|
|
7422
7413
|
{ className: 'mb-3' },
|
|
7423
7414
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7424
|
-
return React__default
|
|
7415
|
+
return React__default.createElement(
|
|
7425
7416
|
'span',
|
|
7426
7417
|
{ key: index },
|
|
7427
7418
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7428
7419
|
);
|
|
7429
7420
|
})
|
|
7430
7421
|
),
|
|
7431
|
-
React__default
|
|
7422
|
+
React__default.createElement(
|
|
7432
7423
|
'p',
|
|
7433
7424
|
null,
|
|
7434
|
-
React__default
|
|
7425
|
+
React__default.createElement(SocialShare, {
|
|
7435
7426
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7436
7427
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7437
7428
|
shareVia: meta.shareVia,
|
|
@@ -7446,22 +7437,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7446
7437
|
hideFacebook: meta.hideFBShare
|
|
7447
7438
|
})
|
|
7448
7439
|
),
|
|
7449
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7440
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7450
7441
|
'p',
|
|
7451
7442
|
{ className: 'mb-3' },
|
|
7452
|
-
React__default
|
|
7443
|
+
React__default.createElement(
|
|
7453
7444
|
'em',
|
|
7454
7445
|
null,
|
|
7455
7446
|
Videos[series - 1].intro
|
|
7456
7447
|
)
|
|
7457
7448
|
)
|
|
7458
7449
|
),
|
|
7459
|
-
React__default
|
|
7450
|
+
React__default.createElement(
|
|
7460
7451
|
'div',
|
|
7461
7452
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7462
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7453
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7463
7454
|
className: 'fluid-iframe',
|
|
7464
|
-
videoId: index$
|
|
7455
|
+
videoId: index$3.getYoutubeId(vidUrl),
|
|
7465
7456
|
opts: opts,
|
|
7466
7457
|
onReady: handleOnReady,
|
|
7467
7458
|
onPlay: handleOnPlay,
|
|
@@ -7470,10 +7461,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7470
7461
|
return handleOnEnd(e);
|
|
7471
7462
|
}
|
|
7472
7463
|
}),
|
|
7473
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7474
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7475
|
-
React__default
|
|
7476
|
-
series && React__default
|
|
7464
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7465
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7466
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7467
|
+
series && React__default.createElement(
|
|
7477
7468
|
'div',
|
|
7478
7469
|
{
|
|
7479
7470
|
className: 'vid-series',
|
|
@@ -7483,10 +7474,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7483
7474
|
maxHeight: '100%',
|
|
7484
7475
|
paddingBottom: '0'
|
|
7485
7476
|
} },
|
|
7486
|
-
React__default
|
|
7477
|
+
React__default.createElement(
|
|
7487
7478
|
'p',
|
|
7488
7479
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7489
|
-
React__default
|
|
7480
|
+
React__default.createElement(
|
|
7490
7481
|
'b',
|
|
7491
7482
|
{ style: { fontSize: '1.25em' } },
|
|
7492
7483
|
'Now Playing:'
|
|
@@ -7494,16 +7485,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7494
7485
|
' ',
|
|
7495
7486
|
seriesData[series ? series - 1 : 0].title
|
|
7496
7487
|
),
|
|
7497
|
-
vidUrl && React__default
|
|
7488
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7498
7489
|
)
|
|
7499
7490
|
),
|
|
7500
|
-
React__default
|
|
7501
|
-
React__default
|
|
7491
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7492
|
+
React__default.createElement(
|
|
7502
7493
|
'div',
|
|
7503
7494
|
{ className: 'vid-text' },
|
|
7504
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7495
|
+
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()))
|
|
7505
7496
|
),
|
|
7506
|
-
React__default
|
|
7497
|
+
React__default.createElement(
|
|
7507
7498
|
'style',
|
|
7508
7499
|
{ jsx: 'true' },
|
|
7509
7500
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7511,14 +7502,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7511
7502
|
);
|
|
7512
7503
|
};
|
|
7513
7504
|
|
|
7514
|
-
var Poll
|
|
7515
|
-
var node = _ref.node
|
|
7516
|
-
_ref.client
|
|
7517
|
-
_ref.pageview
|
|
7518
|
-
_ref.videoAccountIDs
|
|
7519
|
-
|
|
7520
|
-
_ref.showVotes
|
|
7521
|
-
|
|
7505
|
+
var Poll = function Poll(_ref) {
|
|
7506
|
+
var node = _ref.node,
|
|
7507
|
+
client = _ref.client,
|
|
7508
|
+
pageview = _ref.pageview,
|
|
7509
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7510
|
+
onVote = _ref.onVote,
|
|
7511
|
+
_ref$showVotes = _ref.showVotes,
|
|
7512
|
+
getSerializers = _ref.getSerializers;
|
|
7522
7513
|
|
|
7523
7514
|
var _useState = React.useState(null),
|
|
7524
7515
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7556,67 +7547,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7556
7547
|
return acc;
|
|
7557
7548
|
}
|
|
7558
7549
|
}, 0);
|
|
7559
|
-
return React__default
|
|
7560
|
-
React__default
|
|
7550
|
+
return React__default.createElement(
|
|
7551
|
+
React__default.Fragment,
|
|
7561
7552
|
null,
|
|
7562
|
-
question && React__default
|
|
7553
|
+
question && React__default.createElement(
|
|
7563
7554
|
'p',
|
|
7564
7555
|
{ className: 'font-weight-bold' },
|
|
7565
7556
|
question
|
|
7566
7557
|
),
|
|
7567
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7558
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7568
7559
|
'form',
|
|
7569
7560
|
{ onSubmit: function onSubmit(e) {
|
|
7570
7561
|
return onSubmitPoll(e);
|
|
7571
7562
|
} },
|
|
7572
7563
|
choices && choices.map(function (choice) {
|
|
7573
|
-
return React__default
|
|
7564
|
+
return React__default.createElement(
|
|
7574
7565
|
'div',
|
|
7575
7566
|
{ key: choice._key },
|
|
7576
|
-
React__default
|
|
7567
|
+
React__default.createElement(
|
|
7577
7568
|
'label',
|
|
7578
7569
|
{ className: 'pl-2' },
|
|
7579
|
-
React__default
|
|
7570
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7580
7571
|
return setSelectedChoice(e.target.value);
|
|
7581
7572
|
} }),
|
|
7582
7573
|
' ' + choice.choiceText
|
|
7583
7574
|
)
|
|
7584
7575
|
);
|
|
7585
7576
|
}),
|
|
7586
|
-
React__default
|
|
7577
|
+
React__default.createElement(
|
|
7587
7578
|
reactBootstrap.Button,
|
|
7588
7579
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7589
7580
|
'Vote'
|
|
7590
7581
|
)
|
|
7591
7582
|
),
|
|
7592
|
-
React__default
|
|
7583
|
+
React__default.createElement(
|
|
7593
7584
|
'div',
|
|
7594
7585
|
{ className: 'progress-container' },
|
|
7595
7586
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7596
7587
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7597
|
-
return React__default
|
|
7588
|
+
return React__default.createElement(
|
|
7598
7589
|
'div',
|
|
7599
7590
|
{ key: choice._key, className: 'mb-3' },
|
|
7600
|
-
React__default
|
|
7591
|
+
React__default.createElement(
|
|
7601
7592
|
'div',
|
|
7602
7593
|
{ className: 'correct-answer' },
|
|
7603
|
-
React__default
|
|
7594
|
+
React__default.createElement(
|
|
7604
7595
|
'div',
|
|
7605
7596
|
null,
|
|
7606
7597
|
choice.choiceText
|
|
7607
7598
|
),
|
|
7608
|
-
choice.choiceAnswer === true && React__default
|
|
7599
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7609
7600
|
'div',
|
|
7610
7601
|
null,
|
|
7611
|
-
React__default
|
|
7602
|
+
React__default.createElement(
|
|
7612
7603
|
'span',
|
|
7613
7604
|
{ style: { color: 'limegreen' } },
|
|
7614
7605
|
'Correct!'
|
|
7615
7606
|
)
|
|
7616
7607
|
)
|
|
7617
7608
|
),
|
|
7618
|
-
React__default
|
|
7619
|
-
React__default
|
|
7609
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7610
|
+
React__default.createElement(
|
|
7620
7611
|
'span',
|
|
7621
7612
|
{ className: 'float-right' },
|
|
7622
7613
|
percentage,
|
|
@@ -7627,14 +7618,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7627
7618
|
);
|
|
7628
7619
|
})
|
|
7629
7620
|
),
|
|
7630
|
-
showAnswer && React__default
|
|
7621
|
+
showAnswer && React__default.createElement(
|
|
7631
7622
|
'h4',
|
|
7632
7623
|
{ className: 'text-center small p-3' },
|
|
7633
7624
|
'Total Votes: ',
|
|
7634
7625
|
choicesTotalCount
|
|
7635
7626
|
),
|
|
7636
|
-
showAnswer && response && React__default
|
|
7637
|
-
React__default
|
|
7627
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7628
|
+
React__default.createElement(
|
|
7638
7629
|
'style',
|
|
7639
7630
|
{ jsx: 'true' },
|
|
7640
7631
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7652,22 +7643,22 @@ _toObject._export(_toObject._export.S, 'Object', {
|
|
|
7652
7643
|
}
|
|
7653
7644
|
});
|
|
7654
7645
|
|
|
7655
|
-
var values
|
|
7646
|
+
var values = _toObject._core.Object.values;
|
|
7656
7647
|
|
|
7657
|
-
var values = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7658
|
-
module.exports = { "default": values
|
|
7648
|
+
var values$1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7649
|
+
module.exports = { "default": values, __esModule: true };
|
|
7659
7650
|
});
|
|
7660
7651
|
|
|
7661
|
-
var _Object$values = _commonjsHelpers.unwrapExports(values);
|
|
7652
|
+
var _Object$values = _commonjsHelpers.unwrapExports(values$1);
|
|
7662
7653
|
|
|
7663
|
-
var Poll = function Poll(_ref) {
|
|
7664
|
-
var node = _ref.node
|
|
7665
|
-
_ref.client
|
|
7666
|
-
_ref.pageview
|
|
7667
|
-
_ref.videoAccountIDs
|
|
7668
|
-
|
|
7669
|
-
_ref.showVotes
|
|
7670
|
-
|
|
7654
|
+
var Poll$1 = function Poll(_ref) {
|
|
7655
|
+
var node = _ref.node,
|
|
7656
|
+
client = _ref.client,
|
|
7657
|
+
pageview = _ref.pageview,
|
|
7658
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7659
|
+
onVote = _ref.onVote,
|
|
7660
|
+
_ref$showVotes = _ref.showVotes,
|
|
7661
|
+
getSerializers = _ref.getSerializers;
|
|
7671
7662
|
|
|
7672
7663
|
var _useState = React.useState(null),
|
|
7673
7664
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7733,67 +7724,67 @@ var Poll = function Poll(_ref) {
|
|
|
7733
7724
|
return acc;
|
|
7734
7725
|
}
|
|
7735
7726
|
}, 0);
|
|
7736
|
-
return React__default
|
|
7737
|
-
React__default
|
|
7727
|
+
return React__default.createElement(
|
|
7728
|
+
React__default.Fragment,
|
|
7738
7729
|
null,
|
|
7739
|
-
question && React__default
|
|
7730
|
+
question && React__default.createElement(
|
|
7740
7731
|
'p',
|
|
7741
7732
|
{ className: 'font-weight-bold' },
|
|
7742
7733
|
question
|
|
7743
7734
|
),
|
|
7744
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7735
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7745
7736
|
'form',
|
|
7746
7737
|
{ onSubmit: function onSubmit(e) {
|
|
7747
7738
|
return onSubmitPoll(e);
|
|
7748
7739
|
} },
|
|
7749
7740
|
choices && choices.map(function (choice) {
|
|
7750
|
-
return React__default
|
|
7741
|
+
return React__default.createElement(
|
|
7751
7742
|
'div',
|
|
7752
7743
|
{ key: choice._key },
|
|
7753
|
-
React__default
|
|
7744
|
+
React__default.createElement(
|
|
7754
7745
|
'label',
|
|
7755
7746
|
{ className: 'pl-2' },
|
|
7756
|
-
React__default
|
|
7747
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7757
7748
|
return setSelectedChoice(e.target.value);
|
|
7758
7749
|
} }),
|
|
7759
7750
|
' ' + choice.choiceText
|
|
7760
7751
|
)
|
|
7761
7752
|
);
|
|
7762
7753
|
}),
|
|
7763
|
-
React__default
|
|
7754
|
+
React__default.createElement(
|
|
7764
7755
|
reactBootstrap.Button,
|
|
7765
7756
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7766
7757
|
'Vote'
|
|
7767
7758
|
)
|
|
7768
7759
|
),
|
|
7769
|
-
React__default
|
|
7760
|
+
React__default.createElement(
|
|
7770
7761
|
'div',
|
|
7771
7762
|
{ className: 'progress-container' },
|
|
7772
7763
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7773
7764
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7774
|
-
return React__default
|
|
7765
|
+
return React__default.createElement(
|
|
7775
7766
|
'div',
|
|
7776
7767
|
{ key: choice._key, className: 'mb-3' },
|
|
7777
|
-
React__default
|
|
7768
|
+
React__default.createElement(
|
|
7778
7769
|
'div',
|
|
7779
7770
|
{ className: 'correct-answer' },
|
|
7780
|
-
React__default
|
|
7771
|
+
React__default.createElement(
|
|
7781
7772
|
'div',
|
|
7782
7773
|
null,
|
|
7783
7774
|
choice.choiceText
|
|
7784
7775
|
),
|
|
7785
|
-
choice.choiceAnswer === true && React__default
|
|
7776
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7786
7777
|
'div',
|
|
7787
7778
|
null,
|
|
7788
|
-
React__default
|
|
7779
|
+
React__default.createElement(
|
|
7789
7780
|
'span',
|
|
7790
7781
|
{ style: { color: 'limegreen' } },
|
|
7791
7782
|
'Correct!'
|
|
7792
7783
|
)
|
|
7793
7784
|
)
|
|
7794
7785
|
),
|
|
7795
|
-
React__default
|
|
7796
|
-
React__default
|
|
7786
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7787
|
+
React__default.createElement(
|
|
7797
7788
|
'span',
|
|
7798
7789
|
{ className: 'float-right' },
|
|
7799
7790
|
percentage,
|
|
@@ -7804,14 +7795,14 @@ var Poll = function Poll(_ref) {
|
|
|
7804
7795
|
);
|
|
7805
7796
|
})
|
|
7806
7797
|
),
|
|
7807
|
-
showAnswer && React__default
|
|
7798
|
+
showAnswer && React__default.createElement(
|
|
7808
7799
|
'h4',
|
|
7809
7800
|
{ className: 'text-center small p-3' },
|
|
7810
7801
|
'Total Votes: ',
|
|
7811
7802
|
choicesTotalCount
|
|
7812
7803
|
),
|
|
7813
|
-
showAnswer && response && React__default
|
|
7814
|
-
React__default
|
|
7804
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7805
|
+
React__default.createElement(
|
|
7815
7806
|
'style',
|
|
7816
7807
|
{ jsx: 'true' },
|
|
7817
7808
|
'\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 '
|
|
@@ -7819,7 +7810,7 @@ var Poll = function Poll(_ref) {
|
|
|
7819
7810
|
);
|
|
7820
7811
|
};
|
|
7821
7812
|
|
|
7822
|
-
var numberOfPaginations = main.
|
|
7813
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7823
7814
|
|
|
7824
7815
|
var Quiz = function Quiz(_ref) {
|
|
7825
7816
|
var quizzes = _ref.quizzes,
|
|
@@ -7937,34 +7928,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7937
7928
|
};
|
|
7938
7929
|
|
|
7939
7930
|
var renderPagination = function renderPagination() {
|
|
7940
|
-
return React__default
|
|
7941
|
-
|
|
7942
|
-
{ className: 'p-0 m-0', size: main.
|
|
7943
|
-
React__default
|
|
7931
|
+
return React__default.createElement(
|
|
7932
|
+
Pagination,
|
|
7933
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7934
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7944
7935
|
return changePage('first');
|
|
7945
7936
|
}, disabled: currentPage === 1 }),
|
|
7946
|
-
React__default
|
|
7937
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7947
7938
|
return changePage('prev');
|
|
7948
7939
|
}, disabled: currentPage === 1 }),
|
|
7949
|
-
React__default
|
|
7940
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7950
7941
|
return renderNewPages('prev');
|
|
7951
7942
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7952
7943
|
pages.map(function (page) {
|
|
7953
|
-
return React__default
|
|
7954
|
-
|
|
7944
|
+
return React__default.createElement(
|
|
7945
|
+
Pagination.Item,
|
|
7955
7946
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7956
7947
|
return changePage(page);
|
|
7957
7948
|
} },
|
|
7958
7949
|
page
|
|
7959
7950
|
);
|
|
7960
7951
|
}),
|
|
7961
|
-
React__default
|
|
7952
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7962
7953
|
return renderNewPages('next');
|
|
7963
7954
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7964
|
-
React__default
|
|
7955
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7965
7956
|
return changePage('next');
|
|
7966
7957
|
}, disabled: currentPage === pageCount }),
|
|
7967
|
-
React__default
|
|
7958
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7968
7959
|
return changePage('last');
|
|
7969
7960
|
}, disabled: currentPage === pageCount })
|
|
7970
7961
|
);
|
|
@@ -8047,51 +8038,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8047
8038
|
}
|
|
8048
8039
|
};
|
|
8049
8040
|
|
|
8050
|
-
return React__default
|
|
8051
|
-
React__default
|
|
8041
|
+
return React__default.createElement(
|
|
8042
|
+
React__default.Fragment,
|
|
8052
8043
|
null,
|
|
8053
|
-
quizzes[currentPage - 1] && React__default
|
|
8054
|
-
React__default
|
|
8044
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8045
|
+
React__default.Fragment,
|
|
8055
8046
|
null,
|
|
8056
|
-
React__default
|
|
8057
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default
|
|
8047
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8048
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8058
8049
|
'form',
|
|
8059
8050
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8060
8051
|
return e.preventDefault();
|
|
8061
8052
|
} },
|
|
8062
8053
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8063
|
-
return React__default
|
|
8054
|
+
return React__default.createElement(
|
|
8064
8055
|
'div',
|
|
8065
8056
|
{ key: answer._key },
|
|
8066
|
-
React__default
|
|
8057
|
+
React__default.createElement(
|
|
8067
8058
|
'label',
|
|
8068
8059
|
{ className: 'pl-2' },
|
|
8069
|
-
quizzes[currentPage - 1].multiAnswer ? React__default
|
|
8060
|
+
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 }),
|
|
8070
8061
|
' ' + answer.answerText
|
|
8071
8062
|
)
|
|
8072
8063
|
);
|
|
8073
8064
|
})
|
|
8074
8065
|
)
|
|
8075
8066
|
),
|
|
8076
|
-
!showAnswer && React__default
|
|
8077
|
-
|
|
8067
|
+
!showAnswer && React__default.createElement(
|
|
8068
|
+
Button,
|
|
8078
8069
|
{ onClick: function onClick() {
|
|
8079
8070
|
return checkAnswers();
|
|
8080
8071
|
}, variant: 'info', block: true },
|
|
8081
8072
|
'Please click here for answer'
|
|
8082
8073
|
),
|
|
8083
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
8084
|
-
React__default
|
|
8074
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8075
|
+
React__default.Fragment,
|
|
8085
8076
|
null,
|
|
8086
|
-
React__default
|
|
8077
|
+
React__default.createElement(
|
|
8087
8078
|
'h4',
|
|
8088
8079
|
null,
|
|
8089
8080
|
'Answer:'
|
|
8090
8081
|
),
|
|
8091
|
-
quizzes[currentPage - 1].answer && React__default
|
|
8082
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8092
8083
|
),
|
|
8093
|
-
React__default
|
|
8094
|
-
pageCount > 1 && React__default
|
|
8084
|
+
React__default.createElement('br', null),
|
|
8085
|
+
pageCount > 1 && React__default.createElement(
|
|
8095
8086
|
'div',
|
|
8096
8087
|
{ className: 'd-flex justify-content-center' },
|
|
8097
8088
|
renderPagination()
|
|
@@ -8102,27 +8093,26 @@ var Quiz = function Quiz(_ref) {
|
|
|
8102
8093
|
var Leads = function Leads(_ref) {
|
|
8103
8094
|
var url = _ref.url;
|
|
8104
8095
|
|
|
8105
|
-
return React__default
|
|
8096
|
+
return React__default.createElement(
|
|
8106
8097
|
'div',
|
|
8107
8098
|
{ className: 'd-block text-center mb-3' },
|
|
8108
|
-
url && React__default
|
|
8099
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8109
8100
|
);
|
|
8110
8101
|
};
|
|
8111
8102
|
|
|
8112
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8103
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8113
8104
|
var slides = _ref.node.slides,
|
|
8114
8105
|
client = _ref.client,
|
|
8115
8106
|
pageview = _ref.pageview,
|
|
8116
8107
|
getSerializers = _ref.getSerializers;
|
|
8117
8108
|
|
|
8118
8109
|
var router = Router.useRouter();
|
|
8119
|
-
var carouselRef = React.useRef(null);
|
|
8120
8110
|
var pageNumber = router && router.asPath && router.asPath.split('?page=')[1];
|
|
8121
8111
|
|
|
8122
8112
|
var _useState = React.useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8123
8113
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
8124
|
-
carouselIndex = _useState2[0]
|
|
8125
|
-
_useState2[1];
|
|
8114
|
+
carouselIndex = _useState2[0],
|
|
8115
|
+
setCarouselIndex = _useState2[1];
|
|
8126
8116
|
|
|
8127
8117
|
// useEffect(() => {
|
|
8128
8118
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8143,47 +8133,61 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8143
8133
|
var pageNumber = selectedIndex + 1;
|
|
8144
8134
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
8145
8135
|
router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
8146
|
-
|
|
8147
|
-
carouselRef.current.scrollIntoView();
|
|
8148
|
-
}
|
|
8136
|
+
setCarouselIndex(selectedIndex);
|
|
8149
8137
|
};
|
|
8150
8138
|
|
|
8151
|
-
return React__default
|
|
8139
|
+
return React__default.createElement(
|
|
8152
8140
|
'div',
|
|
8153
|
-
{
|
|
8154
|
-
React__default
|
|
8141
|
+
{ className: 'mt-3 mb-4' },
|
|
8142
|
+
React__default.createElement(
|
|
8155
8143
|
reactBootstrap.Carousel,
|
|
8156
8144
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8157
8145
|
slides && slides.map(function (slide) {
|
|
8158
8146
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8159
|
-
return React__default
|
|
8147
|
+
return React__default.createElement(
|
|
8160
8148
|
reactBootstrap.Carousel.Item,
|
|
8161
8149
|
{ key: slide._key },
|
|
8162
|
-
React__default
|
|
8150
|
+
React__default.createElement(
|
|
8163
8151
|
'a',
|
|
8164
8152
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8165
|
-
React__default
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
React__default
|
|
8153
|
+
React__default.createElement(
|
|
8154
|
+
'div',
|
|
8155
|
+
{ className: 'embed-responsive embed-responsive-slide' },
|
|
8156
|
+
React__default.createElement(
|
|
8157
|
+
index$2.LazyLoad,
|
|
8158
|
+
null,
|
|
8159
|
+
React__default.createElement(
|
|
8160
|
+
'picture',
|
|
8161
|
+
null,
|
|
8162
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8163
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8164
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8165
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-responsive-item' })
|
|
8166
|
+
)
|
|
8167
|
+
),
|
|
8168
|
+
React__default.createElement(
|
|
8169
|
+
'style',
|
|
8170
|
+
{ jsx: 'true' },
|
|
8171
|
+
'\n .embed-responsive-slide::before {\n padding-top: ' + slide.slideshowImage.height / slide.slideshowImage.width * 100 + '%;\n }\n '
|
|
8172
|
+
)
|
|
8169
8173
|
)
|
|
8170
8174
|
),
|
|
8171
|
-
React__default
|
|
8175
|
+
React__default.createElement(
|
|
8172
8176
|
'div',
|
|
8173
8177
|
{ className: 'p-2' },
|
|
8174
|
-
slide.slideshowImage.caption && React__default
|
|
8178
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8175
8179
|
'h3',
|
|
8176
8180
|
{ style: { padding: '0px' } },
|
|
8177
8181
|
slide.slideshowImage.caption
|
|
8178
8182
|
),
|
|
8179
|
-
slide.description && React__default
|
|
8183
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8180
8184
|
)
|
|
8181
8185
|
);
|
|
8182
8186
|
}
|
|
8183
8187
|
return null;
|
|
8184
8188
|
})
|
|
8185
8189
|
),
|
|
8186
|
-
React__default
|
|
8190
|
+
React__default.createElement(
|
|
8187
8191
|
'style',
|
|
8188
8192
|
{ jsx: 'true' },
|
|
8189
8193
|
'\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 '
|
|
@@ -8202,10 +8206,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8202
8206
|
sizes = _props$node.sizes,
|
|
8203
8207
|
sizeMapping = _props$node.sizeMapping;
|
|
8204
8208
|
|
|
8205
|
-
return React__default
|
|
8209
|
+
return React__default.createElement(
|
|
8206
8210
|
'div',
|
|
8207
8211
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8208
|
-
React__default
|
|
8212
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8209
8213
|
);
|
|
8210
8214
|
};
|
|
8211
8215
|
|
|
@@ -8216,15 +8220,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8216
8220
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8217
8221
|
|
|
8218
8222
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8219
|
-
return React__default
|
|
8223
|
+
return React__default.createElement(
|
|
8220
8224
|
'section',
|
|
8221
8225
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8222
|
-
Caption && React__default
|
|
8226
|
+
Caption && React__default.createElement(
|
|
8223
8227
|
'h4',
|
|
8224
8228
|
{ className: 'formstack-caption' },
|
|
8225
8229
|
Caption
|
|
8226
8230
|
),
|
|
8227
|
-
React__default
|
|
8231
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8228
8232
|
);
|
|
8229
8233
|
};
|
|
8230
8234
|
|
|
@@ -8240,29 +8244,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8240
8244
|
}
|
|
8241
8245
|
});
|
|
8242
8246
|
if (medias && medias.length > 0) {
|
|
8243
|
-
return React__default
|
|
8247
|
+
return React__default.createElement(
|
|
8244
8248
|
'div',
|
|
8245
8249
|
{ className: 'multi-media-container' },
|
|
8246
|
-
React__default
|
|
8247
|
-
|
|
8250
|
+
React__default.createElement(
|
|
8251
|
+
Row,
|
|
8248
8252
|
{ noGutters: true },
|
|
8249
8253
|
medias.map(function (media) {
|
|
8250
|
-
return React__default
|
|
8251
|
-
|
|
8254
|
+
return React__default.createElement(
|
|
8255
|
+
Col,
|
|
8252
8256
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8253
|
-
React__default
|
|
8257
|
+
React__default.createElement(
|
|
8254
8258
|
'a',
|
|
8255
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8259
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8256
8260
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8257
|
-
React__default
|
|
8261
|
+
React__default.createElement(
|
|
8258
8262
|
'div',
|
|
8259
8263
|
{ className: 'multi-media-image-container' },
|
|
8260
|
-
imageBox && React__default
|
|
8264
|
+
imageBox && React__default.createElement(
|
|
8261
8265
|
index$2.LazyLoad,
|
|
8262
8266
|
{ once: true },
|
|
8263
|
-
React__default
|
|
8267
|
+
React__default.createElement(
|
|
8268
|
+
'picture',
|
|
8269
|
+
null,
|
|
8270
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8271
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8272
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8273
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8274
|
+
)
|
|
8264
8275
|
),
|
|
8265
|
-
media.caption && React__default
|
|
8276
|
+
media.caption && React__default.createElement(
|
|
8266
8277
|
'span',
|
|
8267
8278
|
{ className: 'multi-media-caption' },
|
|
8268
8279
|
media.caption
|
|
@@ -8272,7 +8283,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8272
8283
|
);
|
|
8273
8284
|
})
|
|
8274
8285
|
),
|
|
8275
|
-
React__default
|
|
8286
|
+
React__default.createElement(
|
|
8276
8287
|
'style',
|
|
8277
8288
|
{ jsx: 'true' },
|
|
8278
8289
|
'\n .multi-media-container {\n margin-bottom: 1rem;\n }\n .multi-media-image {\n width: 100%;\n height: auto;\n object-fit: cover;\n }\n\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-media-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-media-image[images-count=\'4\'] {\n height: 100px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 200px;\n }\n .multi-media-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-media-image[images-count=\'4\'] {\n height: 150px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 300px;\n }\n }\n\n .multi-media-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
|
|
@@ -8283,12 +8294,12 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8283
8294
|
};
|
|
8284
8295
|
|
|
8285
8296
|
var InscreenSensor = function (_React$Component) {
|
|
8286
|
-
inherits._inherits(InscreenSensor, _React$Component);
|
|
8297
|
+
inherits$1._inherits(InscreenSensor, _React$Component);
|
|
8287
8298
|
|
|
8288
8299
|
function InscreenSensor(props) {
|
|
8289
|
-
inherits._classCallCheck(this, InscreenSensor);
|
|
8300
|
+
inherits$1._classCallCheck(this, InscreenSensor);
|
|
8290
8301
|
|
|
8291
|
-
var _this = inherits._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8302
|
+
var _this = inherits$1._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$1._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8292
8303
|
|
|
8293
8304
|
_this.scrollHandler = function () {
|
|
8294
8305
|
var visible = _this.checkInside();
|
|
@@ -8319,12 +8330,12 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8319
8330
|
}
|
|
8320
8331
|
};
|
|
8321
8332
|
|
|
8322
|
-
_this.wraperRef = React__default
|
|
8333
|
+
_this.wraperRef = React__default.createRef();
|
|
8323
8334
|
_this.visible = false;
|
|
8324
8335
|
return _this;
|
|
8325
8336
|
}
|
|
8326
8337
|
|
|
8327
|
-
inherits._createClass(InscreenSensor, [{
|
|
8338
|
+
inherits$1._createClass(InscreenSensor, [{
|
|
8328
8339
|
key: 'componentDidMount',
|
|
8329
8340
|
value: function componentDidMount() {
|
|
8330
8341
|
this.visible = this.checkInside();
|
|
@@ -8347,7 +8358,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8347
8358
|
_props$id = _props.id,
|
|
8348
8359
|
id = _props$id === undefined ? '' : _props$id;
|
|
8349
8360
|
|
|
8350
|
-
return React__default
|
|
8361
|
+
return React__default.createElement(
|
|
8351
8362
|
'div',
|
|
8352
8363
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8353
8364
|
this.props.children
|
|
@@ -8356,7 +8367,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8356
8367
|
}]);
|
|
8357
8368
|
|
|
8358
8369
|
return InscreenSensor;
|
|
8359
|
-
}(React__default
|
|
8370
|
+
}(React__default.Component);
|
|
8360
8371
|
|
|
8361
8372
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8362
8373
|
var nodes = _ref.nodes,
|
|
@@ -8465,33 +8476,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8465
8476
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8466
8477
|
var showReading = show ? 'showReading' : '';
|
|
8467
8478
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8468
|
-
return React__default
|
|
8479
|
+
return React__default.createElement(
|
|
8469
8480
|
'div',
|
|
8470
8481
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8471
|
-
React__default
|
|
8482
|
+
React__default.createElement(
|
|
8472
8483
|
'a',
|
|
8473
8484
|
{ onClick: function onClick(e) {
|
|
8474
8485
|
return articleCardClickHandler(e);
|
|
8475
8486
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8476
|
-
React__default
|
|
8487
|
+
React__default.createElement(
|
|
8477
8488
|
'div',
|
|
8478
8489
|
{ className: 'prevNext-thumbnail' },
|
|
8479
|
-
React__default
|
|
8480
|
-
React__default
|
|
8490
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8491
|
+
React__default.createElement(
|
|
8481
8492
|
'div',
|
|
8482
8493
|
{ className: 'prevNext-reading ' + showReading },
|
|
8483
8494
|
articleLabel
|
|
8484
8495
|
)
|
|
8485
8496
|
),
|
|
8486
|
-
React__default
|
|
8497
|
+
React__default.createElement(
|
|
8487
8498
|
'div',
|
|
8488
8499
|
{ className: 'prevNext-summary' },
|
|
8489
|
-
React__default
|
|
8500
|
+
React__default.createElement(
|
|
8490
8501
|
'div',
|
|
8491
8502
|
{ className: 'prevNext-publishDate' },
|
|
8492
8503
|
moment.moment(article.published).format('LL')
|
|
8493
8504
|
),
|
|
8494
|
-
React__default
|
|
8505
|
+
React__default.createElement(
|
|
8495
8506
|
'h2',
|
|
8496
8507
|
{ className: 'prevNext-title' },
|
|
8497
8508
|
article.title
|
|
@@ -8540,7 +8551,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8540
8551
|
|
|
8541
8552
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8542
8553
|
if (biography) {
|
|
8543
|
-
return React__default
|
|
8554
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8544
8555
|
}
|
|
8545
8556
|
};
|
|
8546
8557
|
|
|
@@ -8626,7 +8637,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8626
8637
|
//console.log('useLayoutEffect')
|
|
8627
8638
|
if (!firstLoad) {
|
|
8628
8639
|
setUpArrowClicked(false);
|
|
8629
|
-
if (main.
|
|
8640
|
+
if (main.main_36) {
|
|
8630
8641
|
grabLoadedAds();
|
|
8631
8642
|
} else {
|
|
8632
8643
|
scrollToArticle();
|
|
@@ -8650,7 +8661,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8650
8661
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8651
8662
|
if (pageview) pageview(path);
|
|
8652
8663
|
|
|
8653
|
-
if (!main.
|
|
8664
|
+
if (!main.main_36) {
|
|
8654
8665
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8655
8666
|
if (window.googletag && googletag.pubadsReady) {
|
|
8656
8667
|
index.lib_3.refresh();
|
|
@@ -8658,7 +8669,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8658
8669
|
});
|
|
8659
8670
|
}
|
|
8660
8671
|
//Refresh leaderboard ad on mobile
|
|
8661
|
-
if (main.
|
|
8672
|
+
if (main.main_36) {
|
|
8662
8673
|
var leaderboardSlotId = '';
|
|
8663
8674
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8664
8675
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8698,38 +8709,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8698
8709
|
setSensorVisible(false);
|
|
8699
8710
|
};
|
|
8700
8711
|
|
|
8701
|
-
return React__default
|
|
8702
|
-
React__default
|
|
8712
|
+
return React__default.createElement(
|
|
8713
|
+
React__default.Fragment,
|
|
8703
8714
|
null,
|
|
8704
|
-
React__default
|
|
8715
|
+
React__default.createElement(
|
|
8705
8716
|
'div',
|
|
8706
8717
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8707
|
-
React__default
|
|
8718
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8708
8719
|
return handleArrowClick();
|
|
8709
8720
|
} })
|
|
8710
8721
|
),
|
|
8711
|
-
React__default
|
|
8712
|
-
React__default
|
|
8722
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8723
|
+
React__default.createElement(
|
|
8713
8724
|
'div',
|
|
8714
8725
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8715
|
-
React__default
|
|
8726
|
+
React__default.createElement(
|
|
8716
8727
|
'h5',
|
|
8717
8728
|
{ className: 'objective-title' },
|
|
8718
8729
|
nodes.seriesTitle
|
|
8719
8730
|
),
|
|
8720
|
-
React__default
|
|
8731
|
+
React__default.createElement(
|
|
8721
8732
|
'div',
|
|
8722
8733
|
{ className: 'prevNextWrapper' },
|
|
8723
8734
|
PrevNextCards(false, -1)
|
|
8724
8735
|
)
|
|
8725
8736
|
),
|
|
8726
|
-
React__default
|
|
8727
|
-
React__default
|
|
8737
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8738
|
+
React__default.createElement(
|
|
8728
8739
|
'div',
|
|
8729
8740
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8730
|
-
main.
|
|
8741
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8731
8742
|
if (index === 0) {
|
|
8732
|
-
return React__default
|
|
8743
|
+
return React__default.createElement(
|
|
8733
8744
|
'div',
|
|
8734
8745
|
{
|
|
8735
8746
|
key: 'addid-1',
|
|
@@ -8749,14 +8760,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8749
8760
|
}
|
|
8750
8761
|
})
|
|
8751
8762
|
),
|
|
8752
|
-
React__default
|
|
8763
|
+
React__default.createElement(
|
|
8753
8764
|
'div',
|
|
8754
8765
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8755
8766
|
Articles.map(function (article, index) {
|
|
8756
|
-
return React__default
|
|
8767
|
+
return React__default.createElement(
|
|
8757
8768
|
'div',
|
|
8758
8769
|
{ key: article.title },
|
|
8759
|
-
React__default
|
|
8770
|
+
React__default.createElement(
|
|
8760
8771
|
InscreenSensor,
|
|
8761
8772
|
{
|
|
8762
8773
|
visible: sensorVisible,
|
|
@@ -8774,84 +8785,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8774
8785
|
}
|
|
8775
8786
|
}
|
|
8776
8787
|
} },
|
|
8777
|
-
React__default
|
|
8778
|
-
|
|
8788
|
+
React__default.createElement(
|
|
8789
|
+
Head,
|
|
8779
8790
|
null,
|
|
8780
|
-
currentTitle !== null && React__default
|
|
8791
|
+
currentTitle !== null && React__default.createElement(
|
|
8781
8792
|
'title',
|
|
8782
8793
|
{ key: 'title' },
|
|
8783
8794
|
currentTitle
|
|
8784
8795
|
),
|
|
8785
|
-
currentSummary !== null && React__default
|
|
8786
|
-
currentURL !== null && React__default
|
|
8787
|
-
currentTitle !== null && React__default
|
|
8788
|
-
currentThumbnail !== null && React__default
|
|
8789
|
-
currentSummary !== null && React__default
|
|
8790
|
-
currentTitle !== null && React__default
|
|
8791
|
-
currentThumbnail !== null && React__default
|
|
8792
|
-
currentSummary !== null && React__default
|
|
8796
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8797
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8798
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8799
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8800
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8801
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8802
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8803
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8793
8804
|
),
|
|
8794
|
-
React__default
|
|
8805
|
+
React__default.createElement(
|
|
8795
8806
|
'article',
|
|
8796
8807
|
{ className: 'article-wrapper' },
|
|
8797
|
-
React__default
|
|
8808
|
+
React__default.createElement(
|
|
8798
8809
|
'div',
|
|
8799
8810
|
{ className: 'article-publishDate' },
|
|
8800
8811
|
moment.moment(article.published).format('LL')
|
|
8801
8812
|
),
|
|
8802
|
-
React__default
|
|
8813
|
+
React__default.createElement(
|
|
8803
8814
|
'div',
|
|
8804
8815
|
{ className: 'author-details-wrapper' },
|
|
8805
8816
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8806
|
-
return React__default
|
|
8817
|
+
return React__default.createElement(
|
|
8807
8818
|
'span',
|
|
8808
8819
|
{ key: index },
|
|
8809
8820
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8810
8821
|
);
|
|
8811
8822
|
})
|
|
8812
8823
|
),
|
|
8813
|
-
React__default
|
|
8824
|
+
React__default.createElement(
|
|
8814
8825
|
'h2',
|
|
8815
8826
|
{ className: 'article-title' },
|
|
8816
8827
|
article.title
|
|
8817
8828
|
),
|
|
8818
|
-
React__default
|
|
8829
|
+
React__default.createElement(
|
|
8819
8830
|
'div',
|
|
8820
8831
|
{ className: 'mt-2 mb-2' },
|
|
8821
|
-
React__default
|
|
8832
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8822
8833
|
serializers: getSerializers,
|
|
8823
8834
|
videoAccountIDs: accountIDs,
|
|
8824
8835
|
blocks: article.text,
|
|
8825
8836
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8826
8837
|
}, client.config())),
|
|
8827
|
-
React__default
|
|
8838
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8828
8839
|
),
|
|
8829
|
-
Articles.length > 1 && React__default
|
|
8830
|
-
React__default
|
|
8840
|
+
Articles.length > 1 && React__default.createElement(
|
|
8841
|
+
React__default.Fragment,
|
|
8831
8842
|
null,
|
|
8832
|
-
React__default
|
|
8843
|
+
React__default.createElement(
|
|
8833
8844
|
'div',
|
|
8834
8845
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8835
|
-
React__default
|
|
8846
|
+
React__default.createElement(
|
|
8836
8847
|
'h5',
|
|
8837
8848
|
{ className: 'objective-title' },
|
|
8838
8849
|
nodes.seriesTitle
|
|
8839
8850
|
),
|
|
8840
|
-
React__default
|
|
8851
|
+
React__default.createElement(
|
|
8841
8852
|
'div',
|
|
8842
8853
|
{ className: 'prevNextWrapper' },
|
|
8843
8854
|
PrevNextCards(true, index)
|
|
8844
8855
|
)
|
|
8845
8856
|
),
|
|
8846
|
-
React__default
|
|
8857
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8847
8858
|
)
|
|
8848
8859
|
),
|
|
8849
|
-
React__default
|
|
8860
|
+
React__default.createElement(
|
|
8850
8861
|
'div',
|
|
8851
8862
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8852
|
-
main.
|
|
8863
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8853
8864
|
if (innerIndex === 0) {
|
|
8854
|
-
return React__default
|
|
8865
|
+
return React__default.createElement(
|
|
8855
8866
|
'div',
|
|
8856
8867
|
{
|
|
8857
8868
|
key: 'addid-' + (index + 2),
|
|
@@ -8874,7 +8885,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8874
8885
|
)
|
|
8875
8886
|
);
|
|
8876
8887
|
}),
|
|
8877
|
-
React__default
|
|
8888
|
+
React__default.createElement(
|
|
8878
8889
|
'style',
|
|
8879
8890
|
{ jsx: 'true' },
|
|
8880
8891
|
'\n .scrollToTopArrow {\n position: fixed;\n top: 150px;\n display: flex;\n justify-content: center;\n width: ' + contentWidth + 'px;\n opacity: 1;\n z-index: 99999999999;\n visibility: hidden;\n }\n .scrollToTopArrow > svg {\n min-height: 50px;\n min-width: 50px;\n max-height: 50px;\n max-width: 50px;\n }\n .block-content > div p {\n padding: 0;\n }\n\n h2.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.prevNext-title {\n padding: 0;\n font-size: 1rem;\n font-weight: 500;\n }\n .article-wrapper {\n border: 1px solid #252525;\n border-radius: 5px;\n padding: 1rem 1rem 0 1rem;\n margin-bottom: 1rem;\n }\n .prevNext-reading {\n margin-top: -10px;\n width: 75%;\n text-align: center;\n background: white;\n border: 1px solid #252525;\n align-self: center;\n display: none;\n }\n .showReading {\n display: block;\n }\n .author-details-wrapper a {\n color: #252525;\n }\n .objective-prevNext-Wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .objective-title {\n padding: 0 !important;\n }\n .prevNext-thumbnail {\n display: flex;\n flex-direction: column;\n min-width: 225px;\n max-width: 225px;\n overflow: hidden;\n align-items: center;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-thumbnail img {\n height: 125px;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-summary {\n text-align: center;\n }\n .prevNext-publishDate {\n font-size: 0.75rem;\n margin-top: 0.5rem;\n }\n .prevNext-title {\n padding: 0 !important;\n line-height: 1 !important;\n font-weight: 500;\n }\n .prevNextWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n flex-wrap: wrap;\n }\n .prevNextWrapper a {\n display: flex;\n flex-direction: column;\n color: #252525;\n align-items: center;\n }\n .prevNextCards {\n max-width: 250px;\n margin-bottom: 1rem;\n }\n @media only screen and (max-width: 568px) {\n .prevNextWrapper {\n flex-direction: column;\n align-items: center;\n }\n .prevNextCards {\n margin-bottom: 2rem;\n }\n }\n @media only screen and (max-width: 568px) {\n }\n '
|
|
@@ -8904,11 +8915,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8904
8915
|
};
|
|
8905
8916
|
}, [handleClickOutside]);
|
|
8906
8917
|
|
|
8907
|
-
return React__default
|
|
8918
|
+
return React__default.createElement(
|
|
8908
8919
|
'div',
|
|
8909
8920
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8910
|
-
React__default
|
|
8911
|
-
React__default
|
|
8921
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8922
|
+
React__default.createElement(
|
|
8912
8923
|
'style',
|
|
8913
8924
|
{ jsx: 'true' },
|
|
8914
8925
|
'\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 '
|
|
@@ -8922,7 +8933,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8922
8933
|
}
|
|
8923
8934
|
};
|
|
8924
8935
|
|
|
8925
|
-
var FigureImage = React__default
|
|
8936
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8926
8937
|
var node = _ref2.node,
|
|
8927
8938
|
client = _ref2.client,
|
|
8928
8939
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8930,13 +8941,13 @@ var FigureImage = React__default['default'].memo(function (_ref2) {
|
|
|
8930
8941
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8931
8942
|
|
|
8932
8943
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8933
|
-
return React__default
|
|
8944
|
+
return React__default.createElement(
|
|
8934
8945
|
'picture',
|
|
8935
8946
|
null,
|
|
8936
|
-
React__default
|
|
8937
|
-
React__default
|
|
8938
|
-
React__default
|
|
8939
|
-
React__default
|
|
8947
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8948
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8949
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8950
|
+
React__default.createElement('img', _extends$1._extends({
|
|
8940
8951
|
style: figureImageStyle,
|
|
8941
8952
|
className: 'figure-image',
|
|
8942
8953
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9024,13 +9035,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9024
9035
|
|
|
9025
9036
|
var FigureCaption = React.useCallback(function () {
|
|
9026
9037
|
if (imgcaption && imgcaption.length > 0) {
|
|
9027
|
-
return React__default
|
|
9038
|
+
return React__default.createElement(
|
|
9028
9039
|
'div',
|
|
9029
9040
|
{ className: 'figure-caption' },
|
|
9030
|
-
React__default
|
|
9041
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9031
9042
|
);
|
|
9032
9043
|
} else if (caption) {
|
|
9033
|
-
return React__default
|
|
9044
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9034
9045
|
} else return null;
|
|
9035
9046
|
}, [caption, imgcaption]);
|
|
9036
9047
|
|
|
@@ -9047,24 +9058,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9047
9058
|
setShowLightbox(true);
|
|
9048
9059
|
}, [node, client]);
|
|
9049
9060
|
|
|
9050
|
-
return React__default
|
|
9051
|
-
React__default
|
|
9061
|
+
return React__default.createElement(
|
|
9062
|
+
React__default.Fragment,
|
|
9052
9063
|
null,
|
|
9053
|
-
React__default
|
|
9054
|
-
|
|
9064
|
+
React__default.createElement(
|
|
9065
|
+
Figure$1,
|
|
9055
9066
|
{ className: '' + class_name, style: figureStyle },
|
|
9056
|
-
link ? React__default
|
|
9067
|
+
link ? React__default.createElement(
|
|
9057
9068
|
'a',
|
|
9058
9069
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9059
|
-
React__default
|
|
9060
|
-
React__default
|
|
9061
|
-
) : React__default
|
|
9062
|
-
React__default
|
|
9070
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9071
|
+
React__default.createElement(FigureCaption, null)
|
|
9072
|
+
) : React__default.createElement(
|
|
9073
|
+
React__default.Fragment,
|
|
9063
9074
|
null,
|
|
9064
|
-
React__default
|
|
9065
|
-
React__default
|
|
9075
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9076
|
+
React__default.createElement(FigureCaption, null)
|
|
9066
9077
|
),
|
|
9067
|
-
React__default
|
|
9078
|
+
React__default.createElement(LightBox, {
|
|
9068
9079
|
showLightbox: showLightbox,
|
|
9069
9080
|
lightboxImgSrc: lightboxImgSrc,
|
|
9070
9081
|
closeLightbox: function closeLightbox() {
|
|
@@ -9073,7 +9084,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9073
9084
|
}
|
|
9074
9085
|
})
|
|
9075
9086
|
),
|
|
9076
|
-
React__default
|
|
9087
|
+
React__default.createElement(
|
|
9077
9088
|
'style',
|
|
9078
9089
|
{ jsx: 'true' },
|
|
9079
9090
|
'\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 '
|
|
@@ -9081,7 +9092,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9081
9092
|
);
|
|
9082
9093
|
};
|
|
9083
9094
|
|
|
9084
|
-
var Figure = React__default
|
|
9095
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9085
9096
|
|
|
9086
9097
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9087
9098
|
React.useEffect(function () {
|
|
@@ -9098,6 +9109,33 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9098
9109
|
}, [ref]);
|
|
9099
9110
|
}
|
|
9100
9111
|
|
|
9112
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9113
|
+
var imagesCount = _ref.imagesCount,
|
|
9114
|
+
image = _ref.image,
|
|
9115
|
+
client = _ref.client,
|
|
9116
|
+
imgAlt = _ref.imgAlt,
|
|
9117
|
+
link = _ref.link,
|
|
9118
|
+
handleClickFigure = _ref.handleClickFigure;
|
|
9119
|
+
|
|
9120
|
+
return React__default.createElement(
|
|
9121
|
+
'picture',
|
|
9122
|
+
null,
|
|
9123
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9124
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9125
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9126
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9127
|
+
'images-count': imagesCount,
|
|
9128
|
+
className: 'multi-figure-image',
|
|
9129
|
+
src: urlFor({ source: image, client: client }),
|
|
9130
|
+
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9131
|
+
}, !link && {
|
|
9132
|
+
onClick: function onClick() {
|
|
9133
|
+
return handleClickFigure(image, client);
|
|
9134
|
+
}
|
|
9135
|
+
}))
|
|
9136
|
+
);
|
|
9137
|
+
});
|
|
9138
|
+
|
|
9101
9139
|
var MultiFigure = function MultiFigure(props) {
|
|
9102
9140
|
var images = props.node.images,
|
|
9103
9141
|
client = props.client,
|
|
@@ -9117,76 +9155,72 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9117
9155
|
var lightboxContainer = React.useRef(null);
|
|
9118
9156
|
useOutsideAlerter(lightboxImage, lightboxContainer, setOpenImg, setOpenImgSrc);
|
|
9119
9157
|
|
|
9120
|
-
var FigureCaption = function FigureCaption(
|
|
9121
|
-
var caption =
|
|
9122
|
-
imgcaption =
|
|
9158
|
+
var FigureCaption = function FigureCaption(_ref2) {
|
|
9159
|
+
var caption = _ref2.caption,
|
|
9160
|
+
imgcaption = _ref2.imgcaption;
|
|
9123
9161
|
|
|
9124
9162
|
if (imgcaption && imgcaption.length > 0) {
|
|
9125
|
-
return React__default
|
|
9163
|
+
return React__default.createElement(
|
|
9126
9164
|
'div',
|
|
9127
9165
|
{ className: 'multi-figure-caption' },
|
|
9128
|
-
React__default
|
|
9166
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9129
9167
|
);
|
|
9130
9168
|
} else if (caption) {
|
|
9131
|
-
return React__default
|
|
9169
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9132
9170
|
} else return null;
|
|
9133
9171
|
};
|
|
9134
9172
|
|
|
9173
|
+
var handleClickFigure = React.useCallback(function (image, client) {
|
|
9174
|
+
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9175
|
+
setOpenImg(true);
|
|
9176
|
+
}, [client]);
|
|
9177
|
+
|
|
9135
9178
|
if (images && images.length > 0) {
|
|
9136
|
-
return React__default
|
|
9179
|
+
return React__default.createElement(
|
|
9137
9180
|
'div',
|
|
9138
9181
|
{ className: 'multi-figure-container' },
|
|
9139
|
-
React__default
|
|
9140
|
-
|
|
9182
|
+
React__default.createElement(
|
|
9183
|
+
Row,
|
|
9141
9184
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9142
9185
|
images.map(function (image, index) {
|
|
9143
|
-
return React__default
|
|
9144
|
-
|
|
9186
|
+
return React__default.createElement(
|
|
9187
|
+
Col,
|
|
9145
9188
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9146
|
-
image.link ? React__default
|
|
9189
|
+
image.link ? React__default.createElement(
|
|
9147
9190
|
'a',
|
|
9148
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9149
|
-
React__default
|
|
9191
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9192
|
+
React__default.createElement(
|
|
9150
9193
|
'div',
|
|
9151
9194
|
{ className: 'multi-figure-image-container' },
|
|
9152
|
-
React__default
|
|
9195
|
+
React__default.createElement(
|
|
9153
9196
|
index$2.LazyLoad,
|
|
9154
9197
|
{ once: true },
|
|
9155
|
-
React__default
|
|
9198
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9156
9199
|
),
|
|
9157
|
-
React__default
|
|
9200
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9158
9201
|
)
|
|
9159
|
-
) : React__default
|
|
9202
|
+
) : React__default.createElement(
|
|
9160
9203
|
'div',
|
|
9161
9204
|
{ className: 'multi-figure-image-container' },
|
|
9162
|
-
React__default
|
|
9205
|
+
React__default.createElement(
|
|
9163
9206
|
index$2.LazyLoad,
|
|
9164
9207
|
{ once: true },
|
|
9165
|
-
React__default
|
|
9166
|
-
'images-count': images.length,
|
|
9167
|
-
className: 'multi-figure-image',
|
|
9168
|
-
src: urlFor({ source: image.asset, client: client }),
|
|
9169
|
-
alt: image.alt,
|
|
9170
|
-
onClick: function onClick() {
|
|
9171
|
-
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9172
|
-
setOpenImg(true);
|
|
9173
|
-
}
|
|
9174
|
-
})
|
|
9208
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9175
9209
|
),
|
|
9176
|
-
React__default
|
|
9210
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9177
9211
|
)
|
|
9178
9212
|
);
|
|
9179
9213
|
})
|
|
9180
9214
|
),
|
|
9181
|
-
React__default
|
|
9215
|
+
React__default.createElement(
|
|
9182
9216
|
'div',
|
|
9183
9217
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9184
|
-
React__default
|
|
9218
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9185
9219
|
),
|
|
9186
|
-
React__default
|
|
9220
|
+
React__default.createElement(
|
|
9187
9221
|
'style',
|
|
9188
9222
|
{ jsx: 'true' },
|
|
9189
|
-
'\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 '
|
|
9223
|
+
'\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 cursor: pointer;\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 '
|
|
9190
9224
|
)
|
|
9191
9225
|
);
|
|
9192
9226
|
}
|
|
@@ -9205,10 +9239,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9205
9239
|
|
|
9206
9240
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9207
9241
|
|
|
9208
|
-
return React__default
|
|
9242
|
+
return React__default.createElement(
|
|
9209
9243
|
'div',
|
|
9210
9244
|
{ id: elementId },
|
|
9211
|
-
React__default
|
|
9245
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
9212
9246
|
);
|
|
9213
9247
|
};
|
|
9214
9248
|
|
|
@@ -9237,7 +9271,7 @@ exports.__esModule = true;
|
|
|
9237
9271
|
|
|
9238
9272
|
|
|
9239
9273
|
|
|
9240
|
-
var _extends3 = _interopRequireDefault(_extends._extends$1);
|
|
9274
|
+
var _extends3 = _interopRequireDefault(_extends$1._extends$1);
|
|
9241
9275
|
|
|
9242
9276
|
|
|
9243
9277
|
|
|
@@ -9245,23 +9279,23 @@ var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
|
9245
9279
|
|
|
9246
9280
|
|
|
9247
9281
|
|
|
9248
|
-
var _classCallCheck3 = _interopRequireDefault(inherits.classCallCheck);
|
|
9282
|
+
var _classCallCheck3 = _interopRequireDefault(inherits$1.classCallCheck);
|
|
9249
9283
|
|
|
9250
9284
|
|
|
9251
9285
|
|
|
9252
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(inherits.possibleConstructorReturn);
|
|
9286
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(inherits$1.possibleConstructorReturn);
|
|
9253
9287
|
|
|
9254
9288
|
|
|
9255
9289
|
|
|
9256
|
-
var _inherits3 = _interopRequireDefault(inherits.inherits);
|
|
9290
|
+
var _inherits3 = _interopRequireDefault(inherits$1.inherits);
|
|
9257
9291
|
|
|
9258
9292
|
|
|
9259
9293
|
|
|
9260
|
-
var _react2 = _interopRequireDefault(React__default
|
|
9294
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9261
9295
|
|
|
9262
9296
|
|
|
9263
9297
|
|
|
9264
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default
|
|
9298
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default);
|
|
9265
9299
|
|
|
9266
9300
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9267
9301
|
var noop = function noop() {};
|
|
@@ -9406,9 +9440,9 @@ var ScriptTag = function (_Component) {
|
|
|
9406
9440
|
|
|
9407
9441
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9408
9442
|
// eslint-disable-next-line no-unused-vars
|
|
9409
|
-
var _props3 = this.props
|
|
9410
|
-
_props3.isHydrating
|
|
9411
|
-
|
|
9443
|
+
var _props3 = this.props,
|
|
9444
|
+
isHydrating = _props3.isHydrating,
|
|
9445
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9412
9446
|
|
|
9413
9447
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9414
9448
|
return _this2.domRef = tag;
|
|
@@ -9416,7 +9450,7 @@ var ScriptTag = function (_Component) {
|
|
|
9416
9450
|
};
|
|
9417
9451
|
|
|
9418
9452
|
return ScriptTag;
|
|
9419
|
-
}(React__default
|
|
9453
|
+
}(React__default.Component);
|
|
9420
9454
|
|
|
9421
9455
|
ScriptTag.propTypes = {
|
|
9422
9456
|
/**
|
|
@@ -9481,7 +9515,7 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9481
9515
|
React.useEffect(function () {
|
|
9482
9516
|
if (FormID) {
|
|
9483
9517
|
var src = 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID;
|
|
9484
|
-
var anonymousID = analytics.user() && analytics.user().anonymousId();
|
|
9518
|
+
var anonymousID = typeof analytics !== 'undefined' && analytics.user() && analytics.user().anonymousId();
|
|
9485
9519
|
if (anonymousID && needSegmentSupport) {
|
|
9486
9520
|
src = src + '?tfa_1=' + anonymousID;
|
|
9487
9521
|
}
|
|
@@ -9495,11 +9529,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9495
9529
|
}, []);
|
|
9496
9530
|
|
|
9497
9531
|
if (iframeSrc) {
|
|
9498
|
-
return React__default
|
|
9532
|
+
return React__default.createElement(
|
|
9499
9533
|
'section',
|
|
9500
9534
|
{ className: 'form-assembly' },
|
|
9501
|
-
React__default
|
|
9502
|
-
React__default
|
|
9535
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9536
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9503
9537
|
);
|
|
9504
9538
|
}
|
|
9505
9539
|
|
|
@@ -9536,27 +9570,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9536
9570
|
return window.removeEventListener('resize', handleResize);
|
|
9537
9571
|
};
|
|
9538
9572
|
}, []);
|
|
9539
|
-
return React__default
|
|
9573
|
+
return React__default.createElement(
|
|
9540
9574
|
'div',
|
|
9541
9575
|
{ className: 'blockTableHolder', ref: holder },
|
|
9542
|
-
React__default
|
|
9576
|
+
React__default.createElement(
|
|
9543
9577
|
'div',
|
|
9544
9578
|
{ className: 'blockTable' },
|
|
9545
9579
|
rows && rows.map(function (row) {
|
|
9546
|
-
return React__default
|
|
9580
|
+
return React__default.createElement(
|
|
9547
9581
|
'div',
|
|
9548
9582
|
{ className: 'blockTableRow' },
|
|
9549
9583
|
row.cells && row.cells.map(function (cell) {
|
|
9550
|
-
return React__default
|
|
9584
|
+
return React__default.createElement(
|
|
9551
9585
|
'div',
|
|
9552
9586
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9553
|
-
React__default
|
|
9587
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9554
9588
|
);
|
|
9555
9589
|
})
|
|
9556
9590
|
);
|
|
9557
9591
|
})
|
|
9558
9592
|
),
|
|
9559
|
-
React__default
|
|
9593
|
+
React__default.createElement(
|
|
9560
9594
|
'style',
|
|
9561
9595
|
{ jsx: true },
|
|
9562
9596
|
'\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 '
|
|
@@ -9635,12 +9669,12 @@ var getSerializers = function getSerializers() {
|
|
|
9635
9669
|
var node = _ref.node;
|
|
9636
9670
|
var url = node.url;
|
|
9637
9671
|
|
|
9638
|
-
return React__default
|
|
9672
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9639
9673
|
},
|
|
9640
9674
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9641
9675
|
var node = _ref2.node;
|
|
9642
9676
|
|
|
9643
|
-
return React__default
|
|
9677
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9644
9678
|
nodes: node,
|
|
9645
9679
|
article: article,
|
|
9646
9680
|
meta: meta,
|
|
@@ -9654,7 +9688,7 @@ var getSerializers = function getSerializers() {
|
|
|
9654
9688
|
articleSeries: function articleSeries(_ref3) {
|
|
9655
9689
|
var node = _ref3.node;
|
|
9656
9690
|
|
|
9657
|
-
return React__default
|
|
9691
|
+
return React__default.createElement(ArticleSeries, {
|
|
9658
9692
|
nodes: node,
|
|
9659
9693
|
accountIDs: videoAccountIDs || {},
|
|
9660
9694
|
pageview: pageview,
|
|
@@ -9667,61 +9701,61 @@ var getSerializers = function getSerializers() {
|
|
|
9667
9701
|
figure: function figure(_ref4) {
|
|
9668
9702
|
var node = _ref4.node;
|
|
9669
9703
|
|
|
9670
|
-
return React__default
|
|
9704
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9671
9705
|
},
|
|
9672
9706
|
multifigure: function multifigure(_ref5) {
|
|
9673
9707
|
var node = _ref5.node;
|
|
9674
9708
|
|
|
9675
|
-
return React__default
|
|
9709
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9676
9710
|
},
|
|
9677
9711
|
slideshow: function slideshow(_ref6) {
|
|
9678
9712
|
var node = _ref6.node;
|
|
9679
9713
|
var slides = node.slides;
|
|
9680
9714
|
|
|
9681
|
-
return React__default
|
|
9715
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9682
9716
|
},
|
|
9683
9717
|
sidebar: function sidebar(_ref7) {
|
|
9684
9718
|
var node = _ref7.node;
|
|
9685
9719
|
var caption = node.caption,
|
|
9686
9720
|
content = node.content;
|
|
9687
9721
|
|
|
9688
|
-
return React__default
|
|
9722
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9689
9723
|
},
|
|
9690
9724
|
datatable: function datatable(_ref8) {
|
|
9691
9725
|
var node = _ref8.node;
|
|
9692
9726
|
var table = node.table;
|
|
9693
9727
|
|
|
9694
|
-
return React__default
|
|
9728
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9695
9729
|
},
|
|
9696
9730
|
media: function media(_ref9) {
|
|
9697
9731
|
var node = _ref9.node;
|
|
9698
9732
|
|
|
9699
|
-
return React__default
|
|
9733
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9700
9734
|
},
|
|
9701
9735
|
iframe: function iframe(_ref10) {
|
|
9702
9736
|
var node = _ref10.node;
|
|
9703
9737
|
|
|
9704
|
-
return React__default
|
|
9738
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9705
9739
|
},
|
|
9706
9740
|
video: function video(_ref11) {
|
|
9707
9741
|
var node = _ref11.node;
|
|
9708
9742
|
|
|
9709
|
-
return React__default
|
|
9743
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9710
9744
|
},
|
|
9711
9745
|
audio: function audio(_ref12) {
|
|
9712
9746
|
var node = _ref12.node;
|
|
9713
9747
|
|
|
9714
|
-
return React__default
|
|
9748
|
+
return React__default.createElement(Audio, { node: node });
|
|
9715
9749
|
},
|
|
9716
9750
|
poll: function poll(_ref13) {
|
|
9717
9751
|
var node = _ref13.node;
|
|
9718
9752
|
|
|
9719
|
-
return React__default
|
|
9753
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9720
9754
|
},
|
|
9721
9755
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9722
9756
|
var node = _ref14.node;
|
|
9723
9757
|
|
|
9724
|
-
return React__default
|
|
9758
|
+
return React__default.createElement(Poll$1, {
|
|
9725
9759
|
node: node,
|
|
9726
9760
|
client: client,
|
|
9727
9761
|
pageview: pageview,
|
|
@@ -9735,35 +9769,35 @@ var getSerializers = function getSerializers() {
|
|
|
9735
9769
|
var node = _ref15.node;
|
|
9736
9770
|
var quizzes = node.quizzes;
|
|
9737
9771
|
|
|
9738
|
-
return React__default
|
|
9772
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9739
9773
|
},
|
|
9740
9774
|
leads: function leads(_ref16) {
|
|
9741
9775
|
var node = _ref16.node;
|
|
9742
9776
|
var leadID = node.leadID;
|
|
9743
9777
|
|
|
9744
9778
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9745
|
-
return React__default
|
|
9779
|
+
return React__default.createElement(Leads, { url: url });
|
|
9746
9780
|
},
|
|
9747
9781
|
slideshows: function slideshows(_ref17) {
|
|
9748
9782
|
var node = _ref17.node;
|
|
9749
9783
|
|
|
9750
|
-
return React__default
|
|
9784
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9751
9785
|
},
|
|
9752
9786
|
nativeAd: function nativeAd(_ref18) {
|
|
9753
9787
|
var node = _ref18.node;
|
|
9754
9788
|
|
|
9755
|
-
return React__default
|
|
9789
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9756
9790
|
},
|
|
9757
9791
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9758
9792
|
var node = _ref19.node;
|
|
9759
9793
|
|
|
9760
|
-
return React__default
|
|
9794
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9761
9795
|
},
|
|
9762
9796
|
hrtag: function hrtag() {
|
|
9763
|
-
return React__default
|
|
9797
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9764
9798
|
},
|
|
9765
9799
|
brtag: function brtag() {
|
|
9766
|
-
return React__default
|
|
9800
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9767
9801
|
},
|
|
9768
9802
|
formstack: function formstack(_ref20) {
|
|
9769
9803
|
var node = _ref20.node;
|
|
@@ -9771,29 +9805,29 @@ var getSerializers = function getSerializers() {
|
|
|
9771
9805
|
Caption = node.Caption,
|
|
9772
9806
|
needSegmentSupport = node.needSegmentSupport;
|
|
9773
9807
|
|
|
9774
|
-
return React__default
|
|
9808
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9775
9809
|
},
|
|
9776
9810
|
formassembly: FormAssembly,
|
|
9777
9811
|
multimedia: function multimedia(_ref21) {
|
|
9778
9812
|
var node = _ref21.node;
|
|
9779
9813
|
|
|
9780
|
-
return React__default
|
|
9814
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9781
9815
|
},
|
|
9782
9816
|
blockTable: function blockTable(_ref22) {
|
|
9783
9817
|
var node = _ref22.node;
|
|
9784
|
-
return React__default
|
|
9818
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9785
9819
|
}
|
|
9786
9820
|
},
|
|
9787
9821
|
marks: {
|
|
9788
9822
|
superscript: function superscript(props) {
|
|
9789
|
-
return React__default
|
|
9823
|
+
return React__default.createElement(
|
|
9790
9824
|
'sup',
|
|
9791
9825
|
null,
|
|
9792
9826
|
props.children
|
|
9793
9827
|
);
|
|
9794
9828
|
},
|
|
9795
9829
|
subscript: function subscript(props) {
|
|
9796
|
-
return React__default
|
|
9830
|
+
return React__default.createElement(
|
|
9797
9831
|
'sub',
|
|
9798
9832
|
null,
|
|
9799
9833
|
props.children
|
|
@@ -9809,7 +9843,7 @@ var getSerializers = function getSerializers() {
|
|
|
9809
9843
|
if (href && href.charAt(0) === '#') {
|
|
9810
9844
|
var elementId = href.slice(1);
|
|
9811
9845
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9812
|
-
return React__default
|
|
9846
|
+
return React__default.createElement(
|
|
9813
9847
|
'a',
|
|
9814
9848
|
{ onClick: function onClick() {
|
|
9815
9849
|
return ScrollToElement(elementId);
|
|
@@ -9819,7 +9853,7 @@ var getSerializers = function getSerializers() {
|
|
|
9819
9853
|
}
|
|
9820
9854
|
|
|
9821
9855
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9822
|
-
return React__default
|
|
9856
|
+
return React__default.createElement(
|
|
9823
9857
|
'a',
|
|
9824
9858
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9825
9859
|
children
|
|
@@ -9827,7 +9861,7 @@ var getSerializers = function getSerializers() {
|
|
|
9827
9861
|
},
|
|
9828
9862
|
alignleft: function alignleft(_ref23) {
|
|
9829
9863
|
var children = _ref23.children;
|
|
9830
|
-
return React__default
|
|
9864
|
+
return React__default.createElement(
|
|
9831
9865
|
'div',
|
|
9832
9866
|
{ style: { textAlign: 'left' } },
|
|
9833
9867
|
children
|
|
@@ -9835,7 +9869,7 @@ var getSerializers = function getSerializers() {
|
|
|
9835
9869
|
},
|
|
9836
9870
|
alignright: function alignright(_ref24) {
|
|
9837
9871
|
var children = _ref24.children;
|
|
9838
|
-
return React__default
|
|
9872
|
+
return React__default.createElement(
|
|
9839
9873
|
'div',
|
|
9840
9874
|
{ style: { textAlign: 'right' } },
|
|
9841
9875
|
children
|
|
@@ -9843,7 +9877,7 @@ var getSerializers = function getSerializers() {
|
|
|
9843
9877
|
},
|
|
9844
9878
|
aligncenter: function aligncenter(_ref25) {
|
|
9845
9879
|
var children = _ref25.children;
|
|
9846
|
-
return React__default
|
|
9880
|
+
return React__default.createElement(
|
|
9847
9881
|
'div',
|
|
9848
9882
|
{ style: { textAlign: 'center' } },
|
|
9849
9883
|
children
|
|
@@ -9851,7 +9885,7 @@ var getSerializers = function getSerializers() {
|
|
|
9851
9885
|
},
|
|
9852
9886
|
alignjustify: function alignjustify(_ref26) {
|
|
9853
9887
|
var children = _ref26.children;
|
|
9854
|
-
return React__default
|
|
9888
|
+
return React__default.createElement(
|
|
9855
9889
|
'div',
|
|
9856
9890
|
{ style: { textAlign: 'justify' } },
|
|
9857
9891
|
children
|
|
@@ -9861,7 +9895,7 @@ var getSerializers = function getSerializers() {
|
|
|
9861
9895
|
var children = props.children,
|
|
9862
9896
|
color = props.mark.color;
|
|
9863
9897
|
|
|
9864
|
-
return React__default
|
|
9898
|
+
return React__default.createElement(
|
|
9865
9899
|
'span',
|
|
9866
9900
|
{ style: { color: color ? color.hex : null } },
|
|
9867
9901
|
children
|