@mjhls/mjh-framework 1.0.841 → 1.0.842-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-8b336c67.js → ADInfeed-55587a4e.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-aedd5e18.js → ADlgInfeed-5c3d8260.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +101 -34
- package/dist/cjs/AdSlotsProvider.js +920 -23
- package/dist/cjs/AlgoliaSearch.js +1273 -1391
- 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 +269 -311
- 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 +88 -92
- 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 +233 -238
- package/dist/cjs/GridHero.js +44 -45
- package/dist/cjs/GroupDeck.js +59 -60
- package/dist/cjs/HamMagazine.js +140 -145
- 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 +24 -25
- 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 +1125 -1116
- package/dist/cjs/NavDvm.js +74 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +147 -152
- package/dist/cjs/NavNative.js +139 -147
- 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 +1204 -109
- package/dist/cjs/PdfDownload.js +8 -9
- 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 +1133 -1110
- package/dist/cjs/RecentNews.js +21 -22
- 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 +6 -6
- package/dist/cjs/SeriesListingDeck.js +38 -38
- package/dist/cjs/{SeriesSlider-cbab9f0f.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-ecb4f972.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 +29 -30
- 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 +78 -79
- package/dist/cjs/View.js +263 -266
- 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/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-021d644c.js} +12 -12
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/iconBase-68959171.js +3 -0
- 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-0a582ba9.js → index-ac18d02c.js} +983 -1006
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/{index-8041a4eb.js → index-e2e62963.js} +1 -11
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +164 -168
- 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 +7 -7
- package/dist/esm/AD300x250.js +27 -27
- package/dist/esm/AD300x250x600.js +27 -27
- package/dist/esm/AD728x90.js +30 -30
- package/dist/esm/ADFloatingFooter.js +29 -29
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -29
- package/dist/esm/{ADInfeed-28b1e946.js → ADInfeed-bb665cdc.js} +11 -11
- package/dist/esm/ADSkyscraper.js +29 -29
- package/dist/esm/ADSponsoredResources.js +29 -29
- package/dist/esm/ADWebcast.js +29 -29
- package/dist/esm/ADWelcome.js +30 -30
- package/dist/esm/{ADlgInfeed-0b474b02.js → ADlgInfeed-2897d78f.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +95 -27
- package/dist/esm/AdSlotsProvider.js +918 -20
- package/dist/esm/AlgoliaSearch.js +702 -819
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +56 -56
- package/dist/esm/ArticleSeriesLandingPage.js +37 -37
- package/dist/esm/ArticleSeriesListing.js +57 -57
- package/dist/esm/Auth.js +445 -665
- package/dist/esm/AuthWrapper.js +267 -308
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-34b16174.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-e9b4ddcf.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +30 -30
- package/dist/esm/Column3.js +56 -56
- package/dist/esm/ConferenceArticleCard.js +35 -35
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +98 -98
- package/dist/esm/DeckQueue.js +83 -83
- package/dist/esm/{Dfp-43f121ff.js → Dfp-b7236041.js} +22 -22
- package/dist/esm/EventsDeck.js +129 -129
- package/dist/esm/ExternalResources.js +74 -74
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +201 -201
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +116 -116
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +69 -69
- package/dist/esm/HorizontalHero.js +22 -22
- package/dist/esm/IssueContentDeck.js +61 -61
- package/dist/esm/IssueDeck.js +65 -65
- package/dist/esm/IssueLanding.js +90 -92
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +35 -35
- package/dist/esm/MasterDeck.js +77 -77
- package/dist/esm/MediaSeriesLanding.js +853 -841
- package/dist/esm/NavDvm.js +59 -59
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +126 -126
- package/dist/esm/NavNative.js +116 -116
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +60 -60
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +1202 -107
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +37 -39
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +53 -53
- package/dist/esm/PublicationLanding.js +122 -122
- package/dist/esm/QueueDeckExpanded.js +1125 -1102
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +48 -48
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +13 -13
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +32 -32
- package/dist/esm/{SeriesSlider-5c62a578.js → SeriesSlider-a866bb21.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +34 -34
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-cd38ae60.js → SocialSearchComponent-03c3e869.js} +30 -30
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +54 -54
- package/dist/esm/TaxonomyDescription.js +50 -50
- package/dist/esm/TemplateNormal.js +70 -70
- package/dist/esm/ThumbnailCard.js +14 -14
- package/dist/esm/Ustream.js +26 -26
- package/dist/esm/VerticalHero.js +14 -14
- package/dist/esm/VideoProgramLandingPage.js +67 -67
- package/dist/esm/VideoSeriesCard.js +26 -26
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +42 -42
- package/dist/esm/VideoSeriesListing.js +74 -74
- package/dist/esm/View.js +248 -247
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +51 -51
- 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-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- 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/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-82e86707.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-2446af28.js → index-41a678ea.js} +6 -6
- package/dist/esm/{index-35bdcc81.js → index-5f7e79e7.js} +10 -10
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/{index-66ffc224.js → index-8dbb97f3.js} +946 -962
- package/dist/esm/{index-67e1773f.js → index-aaa2dae0.js} +2 -11
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +137 -138
- 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-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- 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/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- 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-025fdc78.js +0 -973
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/main-b5c5aac1.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
|
@@ -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-974f47d9.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,27 +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
|
|
88
|
+
React__default.createElement(
|
|
96
89
|
'picture',
|
|
97
90
|
null,
|
|
98
|
-
React__default
|
|
99
|
-
React__default
|
|
100
|
-
React__default
|
|
101
|
-
React__default
|
|
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%' } })
|
|
102
95
|
),
|
|
103
|
-
slide.caption && React__default
|
|
96
|
+
slide.caption && React__default.createElement(
|
|
104
97
|
'p',
|
|
105
98
|
{ className: 'p-2' },
|
|
106
99
|
slide.caption
|
|
@@ -111,18 +104,21 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
111
104
|
);
|
|
112
105
|
};
|
|
113
106
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
107
|
+
var isArray = Array.isArray;
|
|
108
|
+
var keyList = Object.keys;
|
|
109
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
117
110
|
|
|
118
111
|
var fastDeepEqual = function equal(a, b) {
|
|
119
112
|
if (a === b) return true;
|
|
120
113
|
|
|
121
114
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
122
|
-
|
|
115
|
+
var arrA = isArray(a)
|
|
116
|
+
, arrB = isArray(b)
|
|
117
|
+
, i
|
|
118
|
+
, length
|
|
119
|
+
, key;
|
|
123
120
|
|
|
124
|
-
|
|
125
|
-
if (Array.isArray(a)) {
|
|
121
|
+
if (arrA && arrB) {
|
|
126
122
|
length = a.length;
|
|
127
123
|
if (length != b.length) return false;
|
|
128
124
|
for (i = length; i-- !== 0;)
|
|
@@ -130,29 +126,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
130
126
|
return true;
|
|
131
127
|
}
|
|
132
128
|
|
|
129
|
+
if (arrA != arrB) return false;
|
|
133
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();
|
|
134
135
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
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();
|
|
138
140
|
|
|
139
|
-
keys =
|
|
141
|
+
var keys = keyList(a);
|
|
140
142
|
length = keys.length;
|
|
141
|
-
|
|
143
|
+
|
|
144
|
+
if (length !== keyList(b).length)
|
|
145
|
+
return false;
|
|
142
146
|
|
|
143
147
|
for (i = length; i-- !== 0;)
|
|
144
|
-
if (!
|
|
148
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
145
149
|
|
|
146
150
|
for (i = length; i-- !== 0;) {
|
|
147
|
-
|
|
148
|
-
|
|
151
|
+
key = keys[i];
|
|
149
152
|
if (!equal(a[key], b[key])) return false;
|
|
150
153
|
}
|
|
151
154
|
|
|
152
155
|
return true;
|
|
153
156
|
}
|
|
154
157
|
|
|
155
|
-
// true if both NaN, false otherwise
|
|
156
158
|
return a!==a && b!==b;
|
|
157
159
|
};
|
|
158
160
|
|
|
@@ -690,14 +692,14 @@ function coerce(val) {
|
|
|
690
692
|
return val;
|
|
691
693
|
}
|
|
692
694
|
});
|
|
693
|
-
debug.coerce;
|
|
694
|
-
debug.disable;
|
|
695
|
-
debug.enable;
|
|
696
|
-
debug.enabled;
|
|
697
|
-
debug.humanize;
|
|
698
|
-
debug.names;
|
|
699
|
-
debug.skips;
|
|
700
|
-
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;
|
|
701
703
|
|
|
702
704
|
var browser = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
703
705
|
/**
|
|
@@ -886,13 +888,13 @@ function localstorage() {
|
|
|
886
888
|
} catch (e) {}
|
|
887
889
|
}
|
|
888
890
|
});
|
|
889
|
-
browser.log;
|
|
890
|
-
browser.formatArgs;
|
|
891
|
-
browser.save;
|
|
892
|
-
browser.load;
|
|
893
|
-
browser.useColors;
|
|
894
|
-
browser.storage;
|
|
895
|
-
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;
|
|
896
898
|
|
|
897
899
|
// MIT lisence
|
|
898
900
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1167,14 +1169,14 @@ function init (debug) {
|
|
|
1167
1169
|
|
|
1168
1170
|
exports.enable(load());
|
|
1169
1171
|
});
|
|
1170
|
-
node.init;
|
|
1171
|
-
node.log;
|
|
1172
|
-
node.formatArgs;
|
|
1173
|
-
node.save;
|
|
1174
|
-
node.load;
|
|
1175
|
-
node.useColors;
|
|
1176
|
-
node.colors;
|
|
1177
|
-
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;
|
|
1178
1180
|
|
|
1179
1181
|
var src = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
1180
1182
|
/**
|
|
@@ -1575,239 +1577,199 @@ module.exports = exports['default'];
|
|
|
1575
1577
|
|
|
1576
1578
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1577
1579
|
|
|
1578
|
-
function
|
|
1579
|
-
|
|
1580
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1581
|
-
|
|
1582
|
-
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); } }
|
|
1583
|
-
|
|
1584
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1585
|
-
|
|
1586
|
-
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); }
|
|
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; }; }();
|
|
1587
1581
|
|
|
1588
|
-
function
|
|
1589
|
-
|
|
1590
|
-
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); }; }
|
|
1591
|
-
|
|
1592
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
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; };
|
|
1593
1583
|
|
|
1594
|
-
function
|
|
1595
|
-
|
|
1596
|
-
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; } }
|
|
1597
|
-
|
|
1598
|
-
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"); } }
|
|
1599
1585
|
|
|
1600
|
-
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; }
|
|
1601
1587
|
|
|
1602
|
-
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; }
|
|
1603
1589
|
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
*
|
|
1607
|
-
*
|
|
1608
|
-
* @param {Object}
|
|
1609
|
-
* @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
|
|
1610
1595
|
*/
|
|
1611
|
-
|
|
1612
1596
|
function shouldUpdateVideo(prevProps, props) {
|
|
1613
1597
|
// A changing video should always trigger an update
|
|
1614
1598
|
if (prevProps.videoId !== props.videoId) {
|
|
1615
1599
|
return true;
|
|
1616
|
-
}
|
|
1617
|
-
// update.
|
|
1618
|
-
|
|
1600
|
+
}
|
|
1619
1601
|
|
|
1602
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1603
|
+
// update.
|
|
1620
1604
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1621
1605
|
var vars = props.opts.playerVars || {};
|
|
1606
|
+
|
|
1622
1607
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1623
1608
|
}
|
|
1624
|
-
/**
|
|
1625
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1626
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1627
|
-
* player reset is necessary.
|
|
1628
|
-
*
|
|
1629
|
-
* @param {Object} opts
|
|
1630
|
-
*/
|
|
1631
|
-
|
|
1632
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
|
+
*/
|
|
1633
1617
|
function filterResetOptions(opts) {
|
|
1634
|
-
return
|
|
1635
|
-
playerVars:
|
|
1618
|
+
return _extends({}, opts, {
|
|
1619
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1636
1620
|
autoplay: 0,
|
|
1637
1621
|
start: 0,
|
|
1638
1622
|
end: 0
|
|
1639
|
-
}
|
|
1623
|
+
})
|
|
1640
1624
|
});
|
|
1641
1625
|
}
|
|
1642
|
-
/**
|
|
1643
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1644
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1645
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1646
|
-
* those.
|
|
1647
|
-
*
|
|
1648
|
-
* @param {Object} prevProps
|
|
1649
|
-
* @param {Object} props
|
|
1650
|
-
*/
|
|
1651
|
-
|
|
1652
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
|
+
*/
|
|
1653
1636
|
function shouldResetPlayer(prevProps, props) {
|
|
1654
1637
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1655
1638
|
}
|
|
1656
|
-
/**
|
|
1657
|
-
* Check whether a props change should result in an id or className update.
|
|
1658
|
-
*
|
|
1659
|
-
* @param {Object} prevProps
|
|
1660
|
-
* @param {Object} props
|
|
1661
|
-
*/
|
|
1662
|
-
|
|
1663
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
|
+
*/
|
|
1664
1646
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1665
1647
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1666
1648
|
}
|
|
1667
1649
|
|
|
1668
|
-
var YouTube =
|
|
1650
|
+
var YouTube = function (_React$Component) {
|
|
1669
1651
|
_inherits(YouTube, _React$Component);
|
|
1670
1652
|
|
|
1671
|
-
var _super = _createSuper(YouTube);
|
|
1672
|
-
|
|
1673
|
-
/**
|
|
1674
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1675
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1676
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1677
|
-
*/
|
|
1678
1653
|
function YouTube(props) {
|
|
1679
|
-
var _this;
|
|
1680
|
-
|
|
1681
1654
|
_classCallCheck(this, YouTube);
|
|
1682
1655
|
|
|
1683
|
-
_this =
|
|
1656
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1684
1657
|
|
|
1685
|
-
|
|
1658
|
+
_this.onPlayerReady = function (event) {
|
|
1686
1659
|
return _this.props.onReady(event);
|
|
1687
|
-
}
|
|
1660
|
+
};
|
|
1688
1661
|
|
|
1689
|
-
|
|
1662
|
+
_this.onPlayerError = function (event) {
|
|
1690
1663
|
return _this.props.onError(event);
|
|
1691
|
-
}
|
|
1664
|
+
};
|
|
1692
1665
|
|
|
1693
|
-
|
|
1666
|
+
_this.onPlayerStateChange = function (event) {
|
|
1694
1667
|
_this.props.onStateChange(event);
|
|
1695
|
-
|
|
1696
1668
|
switch (event.data) {
|
|
1669
|
+
|
|
1697
1670
|
case YouTube.PlayerState.ENDED:
|
|
1698
1671
|
_this.props.onEnd(event);
|
|
1699
|
-
|
|
1700
1672
|
break;
|
|
1701
1673
|
|
|
1702
1674
|
case YouTube.PlayerState.PLAYING:
|
|
1703
1675
|
_this.props.onPlay(event);
|
|
1704
|
-
|
|
1705
1676
|
break;
|
|
1706
1677
|
|
|
1707
1678
|
case YouTube.PlayerState.PAUSED:
|
|
1708
1679
|
_this.props.onPause(event);
|
|
1709
|
-
|
|
1710
1680
|
break;
|
|
1711
1681
|
}
|
|
1712
|
-
}
|
|
1682
|
+
};
|
|
1713
1683
|
|
|
1714
|
-
|
|
1684
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1715
1685
|
return _this.props.onPlaybackRateChange(event);
|
|
1716
|
-
}
|
|
1686
|
+
};
|
|
1717
1687
|
|
|
1718
|
-
|
|
1688
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1719
1689
|
return _this.props.onPlaybackQualityChange(event);
|
|
1720
|
-
}
|
|
1690
|
+
};
|
|
1721
1691
|
|
|
1722
|
-
|
|
1692
|
+
_this.createPlayer = function () {
|
|
1723
1693
|
// do not attempt to create a player server-side, it won't work
|
|
1724
|
-
if (typeof document === 'undefined') return;
|
|
1725
|
-
|
|
1726
|
-
var playerOpts =
|
|
1694
|
+
if (typeof document === 'undefined') return;
|
|
1695
|
+
// create player
|
|
1696
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1727
1697
|
// preload the `videoId` video if one is already given
|
|
1728
1698
|
videoId: _this.props.videoId
|
|
1729
1699
|
});
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1700
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1701
|
+
// attach event handlers
|
|
1733
1702
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1734
|
-
|
|
1735
1703
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1736
|
-
|
|
1737
1704
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1738
|
-
|
|
1739
1705
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1740
|
-
|
|
1741
1706
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1742
|
-
}
|
|
1707
|
+
};
|
|
1743
1708
|
|
|
1744
|
-
|
|
1709
|
+
_this.resetPlayer = function () {
|
|
1745
1710
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1746
|
-
}
|
|
1711
|
+
};
|
|
1747
1712
|
|
|
1748
|
-
|
|
1713
|
+
_this.updatePlayer = function () {
|
|
1749
1714
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1750
1715
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1751
1716
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1752
1717
|
});
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1755
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1756
|
-
return _this.internalPlayer;
|
|
1757
|
-
});
|
|
1718
|
+
};
|
|
1758
1719
|
|
|
1759
|
-
|
|
1720
|
+
_this.updateVideo = function () {
|
|
1760
1721
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1761
1722
|
_this.internalPlayer.stopVideo();
|
|
1762
|
-
|
|
1763
1723
|
return;
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1724
|
+
}
|
|
1766
1725
|
|
|
1726
|
+
// set queueing options
|
|
1767
1727
|
var autoplay = false;
|
|
1768
1728
|
var opts = {
|
|
1769
1729
|
videoId: _this.props.videoId
|
|
1770
1730
|
};
|
|
1771
|
-
|
|
1772
1731
|
if ('playerVars' in _this.props.opts) {
|
|
1773
1732
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1774
|
-
|
|
1775
1733
|
if ('start' in _this.props.opts.playerVars) {
|
|
1776
1734
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1777
1735
|
}
|
|
1778
|
-
|
|
1779
1736
|
if ('end' in _this.props.opts.playerVars) {
|
|
1780
1737
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1781
1738
|
}
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1739
|
+
}
|
|
1784
1740
|
|
|
1741
|
+
// if autoplay is enabled loadVideoById
|
|
1785
1742
|
if (autoplay) {
|
|
1786
1743
|
_this.internalPlayer.loadVideoById(opts);
|
|
1787
|
-
|
|
1788
1744
|
return;
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
|
|
1745
|
+
}
|
|
1746
|
+
// default behaviour just cues the video
|
|
1792
1747
|
_this.internalPlayer.cueVideoById(opts);
|
|
1793
|
-
}
|
|
1748
|
+
};
|
|
1794
1749
|
|
|
1795
|
-
|
|
1750
|
+
_this.refContainer = function (container) {
|
|
1796
1751
|
_this.container = container;
|
|
1797
|
-
}
|
|
1752
|
+
};
|
|
1798
1753
|
|
|
1799
1754
|
_this.container = null;
|
|
1800
1755
|
_this.internalPlayer = null;
|
|
1801
1756
|
return _this;
|
|
1802
1757
|
}
|
|
1803
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
|
+
|
|
1804
1766
|
_createClass(YouTube, [{
|
|
1805
|
-
key:
|
|
1767
|
+
key: 'componentDidMount',
|
|
1806
1768
|
value: function componentDidMount() {
|
|
1807
1769
|
this.createPlayer();
|
|
1808
1770
|
}
|
|
1809
1771
|
}, {
|
|
1810
|
-
key:
|
|
1772
|
+
key: 'componentDidUpdate',
|
|
1811
1773
|
value: function componentDidUpdate(prevProps) {
|
|
1812
1774
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1813
1775
|
this.updatePlayer();
|
|
@@ -1822,70 +1784,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1822
1784
|
}
|
|
1823
1785
|
}
|
|
1824
1786
|
}, {
|
|
1825
|
-
key:
|
|
1787
|
+
key: 'componentWillUnmount',
|
|
1826
1788
|
value: function componentWillUnmount() {
|
|
1827
|
-
/**
|
|
1828
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1829
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1830
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1831
|
-
* 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.
|
|
1832
1794
|
*/
|
|
1833
1795
|
this.internalPlayer.destroy();
|
|
1834
1796
|
}
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
*
|
|
1838
|
-
*
|
|
1839
|
-
*
|
|
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.
|
|
1840
1863
|
*/
|
|
1841
1864
|
|
|
1842
1865
|
}, {
|
|
1843
|
-
key:
|
|
1866
|
+
key: 'render',
|
|
1844
1867
|
value: function render() {
|
|
1845
|
-
return
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
id: this.props.id,
|
|
1849
|
-
|
|
1850
|
-
ref: this.refContainer
|
|
1851
|
-
}));
|
|
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
|
+
);
|
|
1852
1873
|
}
|
|
1853
1874
|
}]);
|
|
1854
1875
|
|
|
1855
1876
|
return YouTube;
|
|
1856
|
-
}(React__default
|
|
1857
|
-
|
|
1858
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1859
|
-
UNSTARTED: -1,
|
|
1860
|
-
ENDED: 0,
|
|
1861
|
-
PLAYING: 1,
|
|
1862
|
-
PAUSED: 2,
|
|
1863
|
-
BUFFERING: 3,
|
|
1864
|
-
CUED: 5
|
|
1865
|
-
});
|
|
1877
|
+
}(React__default.Component);
|
|
1866
1878
|
|
|
1867
1879
|
YouTube.propTypes = {
|
|
1868
|
-
videoId: PropTypes__default
|
|
1880
|
+
videoId: PropTypes__default.string,
|
|
1881
|
+
|
|
1869
1882
|
// custom ID for player element
|
|
1870
|
-
id: PropTypes__default
|
|
1883
|
+
id: PropTypes__default.string,
|
|
1884
|
+
|
|
1871
1885
|
// custom class name for player element
|
|
1872
|
-
className: PropTypes__default
|
|
1886
|
+
className: PropTypes__default.string,
|
|
1873
1887
|
// custom class name for player container element
|
|
1874
|
-
containerClassName: PropTypes__default
|
|
1888
|
+
containerClassName: PropTypes__default.string,
|
|
1889
|
+
|
|
1875
1890
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1876
|
-
opts: PropTypes__default
|
|
1891
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1892
|
+
|
|
1877
1893
|
// event subscriptions
|
|
1878
|
-
onReady: PropTypes__default
|
|
1879
|
-
onError: PropTypes__default
|
|
1880
|
-
onPlay: PropTypes__default
|
|
1881
|
-
onPause: PropTypes__default
|
|
1882
|
-
onEnd: PropTypes__default
|
|
1883
|
-
onStateChange: PropTypes__default
|
|
1884
|
-
onPlaybackRateChange: PropTypes__default
|
|
1885
|
-
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
|
|
1886
1902
|
};
|
|
1887
1903
|
YouTube.defaultProps = {
|
|
1888
|
-
videoId: null,
|
|
1889
1904
|
id: null,
|
|
1890
1905
|
className: null,
|
|
1891
1906
|
opts: {},
|
|
@@ -1899,12 +1914,20 @@ YouTube.defaultProps = {
|
|
|
1899
1914
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1900
1915
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1901
1916
|
};
|
|
1917
|
+
YouTube.PlayerState = {
|
|
1918
|
+
UNSTARTED: -1,
|
|
1919
|
+
ENDED: 0,
|
|
1920
|
+
PLAYING: 1,
|
|
1921
|
+
PAUSED: 2,
|
|
1922
|
+
BUFFERING: 3,
|
|
1923
|
+
CUED: 5
|
|
1924
|
+
};
|
|
1902
1925
|
|
|
1903
1926
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1904
1927
|
var url = _ref.url,
|
|
1905
1928
|
autoplay = _ref.autoplay;
|
|
1906
1929
|
|
|
1907
|
-
var id = index$
|
|
1930
|
+
var id = index$3.getYoutubeId(url);
|
|
1908
1931
|
|
|
1909
1932
|
var _useState = React.useState(false),
|
|
1910
1933
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -1937,8 +1960,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1937
1960
|
var duration = player.getDuration();
|
|
1938
1961
|
var queue = Math.floor(duration / 10);
|
|
1939
1962
|
var segment = Math.floor(current / queue);
|
|
1940
|
-
Beam.report_beam_video('Ready', main.
|
|
1941
|
-
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);
|
|
1942
1965
|
};
|
|
1943
1966
|
|
|
1944
1967
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1948,8 +1971,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1948
1971
|
var segment = Math.floor(current / queue);
|
|
1949
1972
|
|
|
1950
1973
|
if (!queueProgress.includes(segment)) {
|
|
1951
|
-
Beam.report_beam_video('Segment', main.
|
|
1952
|
-
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);
|
|
1953
1976
|
queueProgress.push(segment);
|
|
1954
1977
|
}
|
|
1955
1978
|
};
|
|
@@ -1962,8 +1985,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1962
1985
|
var queue = Math.floor(duration / 10);
|
|
1963
1986
|
var segment = Math.floor(current / queue);
|
|
1964
1987
|
|
|
1965
|
-
Beam.report_beam_video('Play', main.
|
|
1966
|
-
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);
|
|
1967
1990
|
|
|
1968
1991
|
if (!playReported) {
|
|
1969
1992
|
setPlayReported(true);
|
|
@@ -1982,8 +2005,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1982
2005
|
var queue = Math.floor(duration / 10);
|
|
1983
2006
|
var segment = Math.floor(current / queue);
|
|
1984
2007
|
|
|
1985
|
-
Beam.report_beam_video('End', main.
|
|
1986
|
-
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);
|
|
1987
2010
|
setEndReported(true);
|
|
1988
2011
|
clearInterval(intervalID);
|
|
1989
2012
|
}
|
|
@@ -1996,15 +2019,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1996
2019
|
var queue = Math.floor(duration / 10);
|
|
1997
2020
|
var segment = Math.floor(current / queue);
|
|
1998
2021
|
|
|
1999
|
-
Beam.report_beam_video('Pause', main.
|
|
2000
|
-
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);
|
|
2001
2024
|
};
|
|
2002
2025
|
|
|
2003
|
-
return React__default
|
|
2026
|
+
return React__default.createElement(
|
|
2004
2027
|
'div',
|
|
2005
2028
|
{ id: 'fluid-video-container' },
|
|
2006
|
-
React__default
|
|
2007
|
-
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(
|
|
2008
2031
|
'style',
|
|
2009
2032
|
{ jsx: 'true' },
|
|
2010
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 '
|
|
@@ -2017,20 +2040,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2017
2040
|
content = _ref.content,
|
|
2018
2041
|
getSerializers = _ref.getSerializers;
|
|
2019
2042
|
|
|
2020
|
-
return React__default
|
|
2043
|
+
return React__default.createElement(
|
|
2021
2044
|
'article',
|
|
2022
2045
|
{ className: 'sidebar' },
|
|
2023
|
-
React__default
|
|
2046
|
+
React__default.createElement(
|
|
2024
2047
|
'div',
|
|
2025
2048
|
null,
|
|
2026
|
-
React__default
|
|
2049
|
+
React__default.createElement(
|
|
2027
2050
|
'h3',
|
|
2028
2051
|
null,
|
|
2029
2052
|
caption
|
|
2030
2053
|
),
|
|
2031
|
-
React__default
|
|
2054
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2032
2055
|
),
|
|
2033
|
-
React__default
|
|
2056
|
+
React__default.createElement(
|
|
2034
2057
|
'style',
|
|
2035
2058
|
{ jsx: 'true' },
|
|
2036
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 '
|
|
@@ -2041,18 +2064,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2041
2064
|
var TableShow = function TableShow(_ref) {
|
|
2042
2065
|
var rows = _ref.rows;
|
|
2043
2066
|
|
|
2044
|
-
return React__default
|
|
2067
|
+
return React__default.createElement(
|
|
2045
2068
|
reactBootstrap.Table,
|
|
2046
2069
|
{ bordered: true, hover: true, responsive: true },
|
|
2047
|
-
React__default
|
|
2070
|
+
React__default.createElement(
|
|
2048
2071
|
'tbody',
|
|
2049
2072
|
null,
|
|
2050
2073
|
rows && rows.map(function (row) {
|
|
2051
|
-
return React__default
|
|
2074
|
+
return React__default.createElement(
|
|
2052
2075
|
'tr',
|
|
2053
2076
|
{ key: row._key },
|
|
2054
2077
|
row.cells && row.cells.map(function (cell, index) {
|
|
2055
|
-
return cell && React__default
|
|
2078
|
+
return cell && React__default.createElement(
|
|
2056
2079
|
'td',
|
|
2057
2080
|
{ key: index },
|
|
2058
2081
|
cell
|
|
@@ -2150,25 +2173,25 @@ var Media = function Media(_ref) {
|
|
|
2150
2173
|
margin: imageMargin
|
|
2151
2174
|
};
|
|
2152
2175
|
|
|
2153
|
-
return React__default
|
|
2176
|
+
return React__default.createElement(
|
|
2154
2177
|
reactBootstrap.Figure,
|
|
2155
2178
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2156
|
-
React__default
|
|
2179
|
+
React__default.createElement(
|
|
2157
2180
|
'a',
|
|
2158
2181
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2159
|
-
React__default
|
|
2182
|
+
React__default.createElement(
|
|
2160
2183
|
index$2.LazyLoad,
|
|
2161
2184
|
{ once: true },
|
|
2162
|
-
React__default
|
|
2185
|
+
React__default.createElement(
|
|
2163
2186
|
'picture',
|
|
2164
2187
|
null,
|
|
2165
|
-
React__default
|
|
2166
|
-
React__default
|
|
2167
|
-
React__default
|
|
2168
|
-
React__default
|
|
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 }))
|
|
2169
2192
|
)
|
|
2170
2193
|
),
|
|
2171
|
-
caption && React__default
|
|
2194
|
+
caption && React__default.createElement(
|
|
2172
2195
|
reactBootstrap.Figure.Caption,
|
|
2173
2196
|
{ className: 'media-caption' },
|
|
2174
2197
|
caption
|
|
@@ -2176,9 +2199,9 @@ var Media = function Media(_ref) {
|
|
|
2176
2199
|
)
|
|
2177
2200
|
);
|
|
2178
2201
|
} else if (caption && caption !== '') {
|
|
2179
|
-
return React__default
|
|
2202
|
+
return React__default.createElement(
|
|
2180
2203
|
'a',
|
|
2181
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2204
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2182
2205
|
href: uploadDoc.asset.url + '?dl='
|
|
2183
2206
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2184
2207
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2196,10 +2219,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2196
2219
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2197
2220
|
|
|
2198
2221
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2199
|
-
return React__default
|
|
2222
|
+
return React__default.createElement(
|
|
2200
2223
|
'div',
|
|
2201
2224
|
{ className: 'd-block text-center mb-3' },
|
|
2202
|
-
React__default
|
|
2225
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2203
2226
|
);
|
|
2204
2227
|
};
|
|
2205
2228
|
|
|
@@ -2233,8 +2256,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2233
2256
|
var duration = player.duration;
|
|
2234
2257
|
var queue = Math.floor(duration / 10);
|
|
2235
2258
|
var segment = Math.floor(current / queue);
|
|
2236
|
-
Beam.report_beam_video('Ready', main.
|
|
2237
|
-
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');
|
|
2238
2261
|
};
|
|
2239
2262
|
|
|
2240
2263
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2243,8 +2266,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2243
2266
|
var queue = Math.floor(duration / 10);
|
|
2244
2267
|
var segment = Math.floor(current / queue);
|
|
2245
2268
|
if (!queueProgress.includes(segment)) {
|
|
2246
|
-
Beam.report_beam_video('Segment', main.
|
|
2247
|
-
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');
|
|
2248
2271
|
queueProgress.push(segment);
|
|
2249
2272
|
}
|
|
2250
2273
|
};
|
|
@@ -2256,8 +2279,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2256
2279
|
var duration = player.duration;
|
|
2257
2280
|
var queue = Math.floor(duration / 10);
|
|
2258
2281
|
var segment = Math.floor(current / queue);
|
|
2259
|
-
Beam.report_beam_video('Play', main.
|
|
2260
|
-
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');
|
|
2261
2284
|
|
|
2262
2285
|
if (!playReported) {
|
|
2263
2286
|
event.persist();
|
|
@@ -2277,8 +2300,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2277
2300
|
var queue = Math.floor(duration / 10);
|
|
2278
2301
|
var segment = Math.floor(current / queue);
|
|
2279
2302
|
|
|
2280
|
-
Beam.report_beam_video('End', main.
|
|
2281
|
-
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');
|
|
2282
2305
|
setEndReported(true);
|
|
2283
2306
|
clearInterval(intervalID);
|
|
2284
2307
|
}
|
|
@@ -2290,14 +2313,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2290
2313
|
var duration = player.duration - current;
|
|
2291
2314
|
var queue = Math.floor(duration / 10);
|
|
2292
2315
|
var segment = Math.floor(current / queue);
|
|
2293
|
-
Beam.report_beam_video('Pause', main.
|
|
2294
|
-
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');
|
|
2295
2318
|
};
|
|
2296
2319
|
|
|
2297
|
-
return React__default
|
|
2320
|
+
return React__default.createElement(
|
|
2298
2321
|
'div',
|
|
2299
2322
|
null,
|
|
2300
|
-
vidLoaded && React__default
|
|
2323
|
+
vidLoaded && React__default.createElement(
|
|
2301
2324
|
'video',
|
|
2302
2325
|
{
|
|
2303
2326
|
poster: thumbnail || '',
|
|
@@ -2315,7 +2338,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2315
2338
|
onPlay: function onPlay(e) {
|
|
2316
2339
|
return handleOnPlay(e);
|
|
2317
2340
|
} },
|
|
2318
|
-
React__default
|
|
2341
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2319
2342
|
'Your browser does not support the video tag.'
|
|
2320
2343
|
)
|
|
2321
2344
|
);
|
|
@@ -2352,7 +2375,7 @@ var Video = function Video(_ref) {
|
|
|
2352
2375
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2353
2376
|
//console.log('success:', success.ref)
|
|
2354
2377
|
var player = success.ref;
|
|
2355
|
-
if (_typeof
|
|
2378
|
+
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2356
2379
|
player.ima3.settings.debug = true;
|
|
2357
2380
|
if (targeting.content_placement && targeting.document_url) {
|
|
2358
2381
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2380,8 +2403,8 @@ var Video = function Video(_ref) {
|
|
|
2380
2403
|
player.pause();
|
|
2381
2404
|
}
|
|
2382
2405
|
|
|
2383
|
-
Beam.report_beam_video('Ready', main.
|
|
2384
|
-
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);
|
|
2385
2408
|
});
|
|
2386
2409
|
|
|
2387
2410
|
// play
|
|
@@ -2390,8 +2413,8 @@ var Video = function Video(_ref) {
|
|
|
2390
2413
|
var current = player.currentTime();
|
|
2391
2414
|
var queue = Math.floor(duration / 10);
|
|
2392
2415
|
var segment = Math.floor(current / queue);
|
|
2393
|
-
Beam.report_beam_video('Play', main.
|
|
2394
|
-
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);
|
|
2395
2418
|
});
|
|
2396
2419
|
|
|
2397
2420
|
// pause
|
|
@@ -2400,8 +2423,8 @@ var Video = function Video(_ref) {
|
|
|
2400
2423
|
var current = player.currentTime();
|
|
2401
2424
|
var queue = Math.floor(duration / 10);
|
|
2402
2425
|
var segment = Math.floor(current / queue);
|
|
2403
|
-
Beam.report_beam_video('Pause', main.
|
|
2404
|
-
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);
|
|
2405
2428
|
});
|
|
2406
2429
|
|
|
2407
2430
|
// end
|
|
@@ -2410,8 +2433,8 @@ var Video = function Video(_ref) {
|
|
|
2410
2433
|
var current = player.currentTime();
|
|
2411
2434
|
var queue = Math.floor(duration / 10);
|
|
2412
2435
|
var segment = Math.floor(current / queue);
|
|
2413
|
-
Beam.report_beam_video('End', main.
|
|
2414
|
-
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);
|
|
2415
2438
|
autoplayNextVideo(evt);
|
|
2416
2439
|
});
|
|
2417
2440
|
|
|
@@ -2422,8 +2445,8 @@ var Video = function Video(_ref) {
|
|
|
2422
2445
|
var queue = Math.floor(duration / 10);
|
|
2423
2446
|
var segment = Math.floor(current / queue);
|
|
2424
2447
|
if (!queueProgress.includes(segment)) {
|
|
2425
|
-
Beam.report_beam_video('Segment', main.
|
|
2426
|
-
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);
|
|
2427
2450
|
queueProgress.push(segment);
|
|
2428
2451
|
}
|
|
2429
2452
|
});
|
|
@@ -2434,8 +2457,8 @@ var Video = function Video(_ref) {
|
|
|
2434
2457
|
var id = player.ads.ad.id;
|
|
2435
2458
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2436
2459
|
|
|
2437
|
-
Beam.report_beam_ad('AD Started', main.
|
|
2438
|
-
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);
|
|
2439
2462
|
});
|
|
2440
2463
|
|
|
2441
2464
|
// ad ended
|
|
@@ -2443,60 +2466,60 @@ var Video = function Video(_ref) {
|
|
|
2443
2466
|
var duration = player.ads.ad.duration;
|
|
2444
2467
|
var id = player.ads.ad.id;
|
|
2445
2468
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2446
|
-
Beam.report_beam_ad('AD Ended', main.
|
|
2447
|
-
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);
|
|
2448
2471
|
});
|
|
2449
2472
|
};
|
|
2450
2473
|
|
|
2451
2474
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2452
2475
|
if (videoID) {
|
|
2453
|
-
return React__default
|
|
2476
|
+
return React__default.createElement(
|
|
2454
2477
|
'div',
|
|
2455
2478
|
null,
|
|
2456
|
-
React__default
|
|
2479
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2457
2480
|
onSuccess: onVideoSuccess,
|
|
2458
2481
|
accountId: accountIDs.brightcove.accountId,
|
|
2459
2482
|
videoId: videoID,
|
|
2460
2483
|
playerId: accountIDs.brightcove.playerId,
|
|
2461
2484
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2462
2485
|
}),
|
|
2463
|
-
React__default
|
|
2486
|
+
React__default.createElement(
|
|
2464
2487
|
'style',
|
|
2465
2488
|
{ jsx: 'true' },
|
|
2466
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 '
|
|
2467
2490
|
)
|
|
2468
2491
|
);
|
|
2469
2492
|
} else if (playlistID) {
|
|
2470
|
-
return React__default
|
|
2493
|
+
return React__default.createElement(
|
|
2471
2494
|
'div',
|
|
2472
2495
|
null,
|
|
2473
|
-
React__default
|
|
2496
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2474
2497
|
accountId: accountIDs.brightcove.accountId,
|
|
2475
2498
|
playlistId: playlistID,
|
|
2476
2499
|
playerId: accountIDs.brightcove.playerId,
|
|
2477
2500
|
onSuccess: onVideoSuccess,
|
|
2478
2501
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2479
2502
|
}),
|
|
2480
|
-
React__default
|
|
2503
|
+
React__default.createElement(
|
|
2481
2504
|
'style',
|
|
2482
2505
|
{ jsx: 'true' },
|
|
2483
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 '
|
|
2484
2507
|
)
|
|
2485
2508
|
);
|
|
2486
2509
|
} else if (experienceID) {
|
|
2487
|
-
return React__default
|
|
2510
|
+
return React__default.createElement(
|
|
2488
2511
|
'div',
|
|
2489
2512
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2490
|
-
videoLoaded && React__default
|
|
2513
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2491
2514
|
);
|
|
2492
2515
|
}
|
|
2493
2516
|
return null;
|
|
2494
2517
|
}
|
|
2495
2518
|
if (source === 'mp4') {
|
|
2496
|
-
return React__default
|
|
2519
|
+
return React__default.createElement(
|
|
2497
2520
|
'div',
|
|
2498
2521
|
null,
|
|
2499
|
-
React__default
|
|
2522
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2500
2523
|
);
|
|
2501
2524
|
}
|
|
2502
2525
|
|
|
@@ -2511,7 +2534,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2511
2534
|
});
|
|
2512
2535
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2513
2536
|
|
|
2514
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2537
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2515
2538
|
|
|
2516
2539
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2517
2540
|
|
|
@@ -2707,9 +2730,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2707
2730
|
});
|
|
2708
2731
|
|
|
2709
2732
|
_commonjsHelpers.unwrapExports(props);
|
|
2710
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2711
|
-
props.defaultProps;
|
|
2712
|
-
props.propTypes;
|
|
2733
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2734
|
+
var props_2 = props.defaultProps;
|
|
2735
|
+
var props_3 = props.propTypes;
|
|
2713
2736
|
|
|
2714
2737
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2715
2738
|
return isNonNullObject(value)
|
|
@@ -2874,17 +2897,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2874
2897
|
|
|
2875
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; }
|
|
2876
2899
|
|
|
2877
|
-
function
|
|
2900
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2878
2901
|
|
|
2879
|
-
function
|
|
2902
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2880
2903
|
|
|
2881
|
-
function
|
|
2882
|
-
|
|
2883
|
-
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); }
|
|
2884
|
-
|
|
2885
|
-
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; }
|
|
2886
|
-
|
|
2887
|
-
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; }
|
|
2888
2905
|
|
|
2889
2906
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2890
2907
|
|
|
@@ -3014,12 +3031,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3014
3031
|
|
|
3015
3032
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3016
3033
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3017
|
-
|
|
3018
|
-
var
|
|
3019
|
-
|
|
3034
|
+
var _iteratorNormalCompletion = true;
|
|
3035
|
+
var _didIteratorError = false;
|
|
3036
|
+
var _iteratorError = undefined;
|
|
3020
3037
|
|
|
3021
3038
|
try {
|
|
3022
|
-
for (_iterator.
|
|
3039
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3023
3040
|
var p = _step.value;
|
|
3024
3041
|
|
|
3025
3042
|
if (props$1[p]) {
|
|
@@ -3034,9 +3051,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3034
3051
|
}
|
|
3035
3052
|
}
|
|
3036
3053
|
} catch (err) {
|
|
3037
|
-
|
|
3054
|
+
_didIteratorError = true;
|
|
3055
|
+
_iteratorError = err;
|
|
3038
3056
|
} finally {
|
|
3039
|
-
|
|
3057
|
+
try {
|
|
3058
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3059
|
+
_iterator["return"]();
|
|
3060
|
+
}
|
|
3061
|
+
} finally {
|
|
3062
|
+
if (_didIteratorError) {
|
|
3063
|
+
throw _iteratorError;
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3040
3066
|
}
|
|
3041
3067
|
|
|
3042
3068
|
return config;
|
|
@@ -3101,7 +3127,7 @@ function isEqual(a, b) {
|
|
|
3101
3127
|
return true;
|
|
3102
3128
|
}
|
|
3103
3129
|
|
|
3104
|
-
if ((0, React__default
|
|
3130
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3105
3131
|
return true;
|
|
3106
3132
|
}
|
|
3107
3133
|
|
|
@@ -3144,17 +3170,17 @@ function isMediaStream(url) {
|
|
|
3144
3170
|
});
|
|
3145
3171
|
|
|
3146
3172
|
_commonjsHelpers.unwrapExports(utils);
|
|
3147
|
-
utils.parseStartTime;
|
|
3148
|
-
utils.parseEndTime;
|
|
3149
|
-
utils.randomString;
|
|
3150
|
-
utils.queryString;
|
|
3151
|
-
utils.getSDK;
|
|
3152
|
-
utils.getConfig;
|
|
3153
|
-
utils.omit;
|
|
3154
|
-
utils.callPlayer;
|
|
3155
|
-
utils.isObject;
|
|
3156
|
-
utils.isEqual;
|
|
3157
|
-
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;
|
|
3158
3184
|
|
|
3159
3185
|
var Player_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3160
3186
|
|
|
@@ -3163,7 +3189,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3163
3189
|
});
|
|
3164
3190
|
exports["default"] = void 0;
|
|
3165
3191
|
|
|
3166
|
-
var _react = _interopRequireWildcard(React__default
|
|
3192
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3167
3193
|
|
|
3168
3194
|
|
|
3169
3195
|
|
|
@@ -3183,16 +3209,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3183
3209
|
|
|
3184
3210
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3185
3211
|
|
|
3186
|
-
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); }; }
|
|
3187
|
-
|
|
3188
3212
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3189
3213
|
|
|
3190
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3191
|
-
|
|
3192
|
-
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; } }
|
|
3193
|
-
|
|
3194
3214
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3195
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
|
+
|
|
3196
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); }
|
|
3197
3219
|
|
|
3198
3220
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3201,12 +3223,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3201
3223
|
|
|
3202
3224
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3203
3225
|
|
|
3204
|
-
var Player =
|
|
3226
|
+
var Player =
|
|
3227
|
+
/*#__PURE__*/
|
|
3228
|
+
function (_Component) {
|
|
3205
3229
|
_inherits(Player, _Component);
|
|
3206
3230
|
|
|
3207
|
-
var _super = _createSuper(Player);
|
|
3208
|
-
|
|
3209
3231
|
function Player() {
|
|
3232
|
+
var _getPrototypeOf2;
|
|
3233
|
+
|
|
3210
3234
|
var _this;
|
|
3211
3235
|
|
|
3212
3236
|
_classCallCheck(this, Player);
|
|
@@ -3215,7 +3239,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3215
3239
|
_args[_key] = arguments[_key];
|
|
3216
3240
|
}
|
|
3217
3241
|
|
|
3218
|
-
_this =
|
|
3242
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3219
3243
|
|
|
3220
3244
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3221
3245
|
|
|
@@ -3540,7 +3564,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3540
3564
|
return null;
|
|
3541
3565
|
}
|
|
3542
3566
|
|
|
3543
|
-
return
|
|
3567
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3544
3568
|
ref: this.ref,
|
|
3545
3569
|
onReady: this.handleReady,
|
|
3546
3570
|
onPlay: this.handlePlay,
|
|
@@ -3573,7 +3597,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3573
3597
|
});
|
|
3574
3598
|
exports["default"] = createSinglePlayer;
|
|
3575
3599
|
|
|
3576
|
-
var _react = _interopRequireWildcard(React__default
|
|
3600
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3577
3601
|
|
|
3578
3602
|
|
|
3579
3603
|
|
|
@@ -3601,16 +3625,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3601
3625
|
|
|
3602
3626
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3603
3627
|
|
|
3604
|
-
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); }; }
|
|
3605
|
-
|
|
3606
3628
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3607
3629
|
|
|
3608
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3609
|
-
|
|
3610
|
-
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; } }
|
|
3611
|
-
|
|
3612
3630
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3613
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
|
+
|
|
3614
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); }
|
|
3615
3635
|
|
|
3616
3636
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3622,12 +3642,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3622
3642
|
function createSinglePlayer(activePlayer) {
|
|
3623
3643
|
var _class, _temp;
|
|
3624
3644
|
|
|
3625
|
-
return _temp = _class =
|
|
3645
|
+
return _temp = _class =
|
|
3646
|
+
/*#__PURE__*/
|
|
3647
|
+
function (_Component) {
|
|
3626
3648
|
_inherits(SinglePlayer, _Component);
|
|
3627
3649
|
|
|
3628
|
-
var _super = _createSuper(SinglePlayer);
|
|
3629
|
-
|
|
3630
3650
|
function SinglePlayer() {
|
|
3651
|
+
var _getPrototypeOf2;
|
|
3652
|
+
|
|
3631
3653
|
var _this;
|
|
3632
3654
|
|
|
3633
3655
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3636,7 +3658,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3636
3658
|
args[_key] = arguments[_key];
|
|
3637
3659
|
}
|
|
3638
3660
|
|
|
3639
|
-
_this =
|
|
3661
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3640
3662
|
|
|
3641
3663
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3642
3664
|
|
|
@@ -3704,12 +3726,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3704
3726
|
height = _this$props.height,
|
|
3705
3727
|
Wrapper = _this$props.wrapper;
|
|
3706
3728
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3707
|
-
return
|
|
3729
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3708
3730
|
style: _objectSpread({}, style, {
|
|
3709
3731
|
width: width,
|
|
3710
3732
|
height: height
|
|
3711
3733
|
})
|
|
3712
|
-
}, otherProps),
|
|
3734
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3713
3735
|
ref: this.ref,
|
|
3714
3736
|
activePlayer: activePlayer,
|
|
3715
3737
|
config: this.config
|
|
@@ -3731,7 +3753,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3731
3753
|
});
|
|
3732
3754
|
exports["default"] = exports.YouTube = void 0;
|
|
3733
3755
|
|
|
3734
|
-
var _react = _interopRequireWildcard(React__default
|
|
3756
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3735
3757
|
|
|
3736
3758
|
|
|
3737
3759
|
|
|
@@ -3755,31 +3777,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3755
3777
|
|
|
3756
3778
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3757
3779
|
|
|
3758
|
-
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); }; }
|
|
3759
|
-
|
|
3760
3780
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3761
3781
|
|
|
3762
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3763
|
-
|
|
3764
|
-
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; } }
|
|
3765
|
-
|
|
3766
3782
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3767
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
|
+
|
|
3768
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); }
|
|
3769
3787
|
|
|
3770
3788
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3771
3789
|
|
|
3772
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; }
|
|
3773
3791
|
|
|
3774
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3792
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3775
3793
|
|
|
3776
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3794
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3777
3795
|
|
|
3778
|
-
function
|
|
3779
|
-
|
|
3780
|
-
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; }
|
|
3781
|
-
|
|
3782
|
-
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; }
|
|
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; }
|
|
3783
3797
|
|
|
3784
3798
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3785
3799
|
|
|
@@ -3804,12 +3818,14 @@ function parsePlaylist(url) {
|
|
|
3804
3818
|
return {};
|
|
3805
3819
|
}
|
|
3806
3820
|
|
|
3807
|
-
var YouTube =
|
|
3821
|
+
var YouTube =
|
|
3822
|
+
/*#__PURE__*/
|
|
3823
|
+
function (_Component) {
|
|
3808
3824
|
_inherits(YouTube, _Component);
|
|
3809
3825
|
|
|
3810
|
-
var _super = _createSuper(YouTube);
|
|
3811
|
-
|
|
3812
3826
|
function YouTube() {
|
|
3827
|
+
var _getPrototypeOf2;
|
|
3828
|
+
|
|
3813
3829
|
var _this;
|
|
3814
3830
|
|
|
3815
3831
|
_classCallCheck(this, YouTube);
|
|
@@ -3818,7 +3834,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3818
3834
|
args[_key] = arguments[_key];
|
|
3819
3835
|
}
|
|
3820
3836
|
|
|
3821
|
-
_this =
|
|
3837
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3822
3838
|
|
|
3823
3839
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3824
3840
|
|
|
@@ -4006,9 +4022,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4006
4022
|
height: '100%',
|
|
4007
4023
|
display: display
|
|
4008
4024
|
};
|
|
4009
|
-
return
|
|
4025
|
+
return _react["default"].createElement("div", {
|
|
4010
4026
|
style: style
|
|
4011
|
-
},
|
|
4027
|
+
}, _react["default"].createElement("div", {
|
|
4012
4028
|
ref: this.ref
|
|
4013
4029
|
}));
|
|
4014
4030
|
}
|
|
@@ -4031,7 +4047,7 @@ exports["default"] = _default;
|
|
|
4031
4047
|
});
|
|
4032
4048
|
|
|
4033
4049
|
_commonjsHelpers.unwrapExports(YouTube_1);
|
|
4034
|
-
YouTube_1.YouTube;
|
|
4050
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4035
4051
|
|
|
4036
4052
|
var SoundCloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4037
4053
|
|
|
@@ -4040,7 +4056,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4040
4056
|
});
|
|
4041
4057
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4042
4058
|
|
|
4043
|
-
var _react = _interopRequireWildcard(React__default
|
|
4059
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4044
4060
|
|
|
4045
4061
|
|
|
4046
4062
|
|
|
@@ -4064,16 +4080,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4064
4080
|
|
|
4065
4081
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4066
4082
|
|
|
4067
|
-
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); }; }
|
|
4068
|
-
|
|
4069
4083
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4070
4084
|
|
|
4071
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4072
|
-
|
|
4073
|
-
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; } }
|
|
4074
|
-
|
|
4075
4085
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4076
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
|
+
|
|
4077
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); }
|
|
4078
4090
|
|
|
4079
4091
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4082,14 +4094,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4082
4094
|
|
|
4083
4095
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4084
4096
|
var SDK_GLOBAL = 'SC';
|
|
4085
|
-
var MATCH_URL = /(
|
|
4097
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4086
4098
|
|
|
4087
|
-
var SoundCloud =
|
|
4099
|
+
var SoundCloud =
|
|
4100
|
+
/*#__PURE__*/
|
|
4101
|
+
function (_Component) {
|
|
4088
4102
|
_inherits(SoundCloud, _Component);
|
|
4089
4103
|
|
|
4090
|
-
var _super = _createSuper(SoundCloud);
|
|
4091
|
-
|
|
4092
4104
|
function SoundCloud() {
|
|
4105
|
+
var _getPrototypeOf2;
|
|
4106
|
+
|
|
4093
4107
|
var _this;
|
|
4094
4108
|
|
|
4095
4109
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4098,7 +4112,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4098
4112
|
args[_key] = arguments[_key];
|
|
4099
4113
|
}
|
|
4100
4114
|
|
|
4101
|
-
_this =
|
|
4115
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4102
4116
|
|
|
4103
4117
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4104
4118
|
|
|
@@ -4219,7 +4233,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4219
4233
|
height: '100%',
|
|
4220
4234
|
display: display
|
|
4221
4235
|
};
|
|
4222
|
-
return
|
|
4236
|
+
return _react["default"].createElement("iframe", {
|
|
4223
4237
|
ref: this.ref,
|
|
4224
4238
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4225
4239
|
style: style,
|
|
@@ -4248,7 +4262,7 @@ exports["default"] = _default;
|
|
|
4248
4262
|
});
|
|
4249
4263
|
|
|
4250
4264
|
_commonjsHelpers.unwrapExports(SoundCloud_1);
|
|
4251
|
-
SoundCloud_1.SoundCloud;
|
|
4265
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4252
4266
|
|
|
4253
4267
|
var Vimeo_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4254
4268
|
|
|
@@ -4257,7 +4271,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4257
4271
|
});
|
|
4258
4272
|
exports["default"] = exports.Vimeo = void 0;
|
|
4259
4273
|
|
|
4260
|
-
var _react = _interopRequireWildcard(React__default
|
|
4274
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4261
4275
|
|
|
4262
4276
|
|
|
4263
4277
|
|
|
@@ -4281,16 +4295,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4281
4295
|
|
|
4282
4296
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4283
4297
|
|
|
4284
|
-
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); }; }
|
|
4285
|
-
|
|
4286
4298
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4287
4299
|
|
|
4288
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4289
|
-
|
|
4290
|
-
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; } }
|
|
4291
|
-
|
|
4292
4300
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4293
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
|
+
|
|
4294
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); }
|
|
4295
4305
|
|
|
4296
4306
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4302,12 +4312,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4302
4312
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4303
4313
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4304
4314
|
|
|
4305
|
-
var Vimeo =
|
|
4315
|
+
var Vimeo =
|
|
4316
|
+
/*#__PURE__*/
|
|
4317
|
+
function (_Component) {
|
|
4306
4318
|
_inherits(Vimeo, _Component);
|
|
4307
4319
|
|
|
4308
|
-
var _super = _createSuper(Vimeo);
|
|
4309
|
-
|
|
4310
4320
|
function Vimeo() {
|
|
4321
|
+
var _getPrototypeOf2;
|
|
4322
|
+
|
|
4311
4323
|
var _this;
|
|
4312
4324
|
|
|
4313
4325
|
_classCallCheck(this, Vimeo);
|
|
@@ -4316,7 +4328,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4316
4328
|
args[_key] = arguments[_key];
|
|
4317
4329
|
}
|
|
4318
4330
|
|
|
4319
|
-
_this =
|
|
4331
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4320
4332
|
|
|
4321
4333
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4322
4334
|
|
|
@@ -4473,7 +4485,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4473
4485
|
overflow: 'hidden',
|
|
4474
4486
|
display: display
|
|
4475
4487
|
};
|
|
4476
|
-
return
|
|
4488
|
+
return _react["default"].createElement("div", {
|
|
4477
4489
|
key: this.props.url,
|
|
4478
4490
|
ref: this.ref,
|
|
4479
4491
|
style: style
|
|
@@ -4504,7 +4516,7 @@ exports["default"] = _default;
|
|
|
4504
4516
|
});
|
|
4505
4517
|
|
|
4506
4518
|
_commonjsHelpers.unwrapExports(Vimeo_1);
|
|
4507
|
-
Vimeo_1.Vimeo;
|
|
4519
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4508
4520
|
|
|
4509
4521
|
var Facebook_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4510
4522
|
|
|
@@ -4513,7 +4525,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4513
4525
|
});
|
|
4514
4526
|
exports["default"] = exports.Facebook = void 0;
|
|
4515
4527
|
|
|
4516
|
-
var _react = _interopRequireWildcard(React__default
|
|
4528
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4517
4529
|
|
|
4518
4530
|
|
|
4519
4531
|
|
|
@@ -4533,16 +4545,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4533
4545
|
|
|
4534
4546
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4535
4547
|
|
|
4536
|
-
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); }; }
|
|
4537
|
-
|
|
4538
4548
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4539
4549
|
|
|
4540
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4541
|
-
|
|
4542
|
-
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; } }
|
|
4543
|
-
|
|
4544
4550
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4545
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
|
+
|
|
4546
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); }
|
|
4547
4555
|
|
|
4548
4556
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4555,12 +4563,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4555
4563
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4556
4564
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4557
4565
|
|
|
4558
|
-
var Facebook =
|
|
4566
|
+
var Facebook =
|
|
4567
|
+
/*#__PURE__*/
|
|
4568
|
+
function (_Component) {
|
|
4559
4569
|
_inherits(Facebook, _Component);
|
|
4560
4570
|
|
|
4561
|
-
var _super = _createSuper(Facebook);
|
|
4562
|
-
|
|
4563
4571
|
function Facebook() {
|
|
4572
|
+
var _getPrototypeOf2;
|
|
4573
|
+
|
|
4564
4574
|
var _this;
|
|
4565
4575
|
|
|
4566
4576
|
_classCallCheck(this, Facebook);
|
|
@@ -4569,7 +4579,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4569
4579
|
args[_key] = arguments[_key];
|
|
4570
4580
|
}
|
|
4571
4581
|
|
|
4572
|
-
_this =
|
|
4582
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4573
4583
|
|
|
4574
4584
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4575
4585
|
|
|
@@ -4685,7 +4695,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4685
4695
|
width: '100%',
|
|
4686
4696
|
height: '100%'
|
|
4687
4697
|
};
|
|
4688
|
-
return
|
|
4698
|
+
return _react["default"].createElement("div", {
|
|
4689
4699
|
style: style,
|
|
4690
4700
|
id: this.playerID,
|
|
4691
4701
|
className: "fb-video",
|
|
@@ -4716,7 +4726,7 @@ exports["default"] = _default;
|
|
|
4716
4726
|
});
|
|
4717
4727
|
|
|
4718
4728
|
_commonjsHelpers.unwrapExports(Facebook_1);
|
|
4719
|
-
Facebook_1.Facebook;
|
|
4729
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4720
4730
|
|
|
4721
4731
|
var Streamable_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4722
4732
|
|
|
@@ -4725,7 +4735,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4725
4735
|
});
|
|
4726
4736
|
exports["default"] = exports.Streamable = void 0;
|
|
4727
4737
|
|
|
4728
|
-
var _react = _interopRequireWildcard(React__default
|
|
4738
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4729
4739
|
|
|
4730
4740
|
|
|
4731
4741
|
|
|
@@ -4745,16 +4755,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4745
4755
|
|
|
4746
4756
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4747
4757
|
|
|
4748
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4749
|
-
|
|
4750
4758
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4751
4759
|
|
|
4752
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4753
|
-
|
|
4754
|
-
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; } }
|
|
4755
|
-
|
|
4756
4760
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4757
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
|
+
|
|
4758
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); }
|
|
4759
4765
|
|
|
4760
4766
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4765,12 +4771,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4765
4771
|
var SDK_GLOBAL = 'playerjs';
|
|
4766
4772
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4767
4773
|
|
|
4768
|
-
var Streamable =
|
|
4774
|
+
var Streamable =
|
|
4775
|
+
/*#__PURE__*/
|
|
4776
|
+
function (_Component) {
|
|
4769
4777
|
_inherits(Streamable, _Component);
|
|
4770
4778
|
|
|
4771
|
-
var _super = _createSuper(Streamable);
|
|
4772
|
-
|
|
4773
4779
|
function Streamable() {
|
|
4780
|
+
var _getPrototypeOf2;
|
|
4781
|
+
|
|
4774
4782
|
var _this;
|
|
4775
4783
|
|
|
4776
4784
|
_classCallCheck(this, Streamable);
|
|
@@ -4779,7 +4787,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4779
4787
|
args[_key] = arguments[_key];
|
|
4780
4788
|
}
|
|
4781
4789
|
|
|
4782
|
-
_this =
|
|
4790
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4783
4791
|
|
|
4784
4792
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4785
4793
|
|
|
@@ -4899,7 +4907,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4899
4907
|
width: '100%',
|
|
4900
4908
|
height: '100%'
|
|
4901
4909
|
};
|
|
4902
|
-
return
|
|
4910
|
+
return _react["default"].createElement("iframe", {
|
|
4903
4911
|
ref: this.ref,
|
|
4904
4912
|
src: "https://streamable.com/o/".concat(id),
|
|
4905
4913
|
frameBorder: "0",
|
|
@@ -4927,7 +4935,7 @@ exports["default"] = _default;
|
|
|
4927
4935
|
});
|
|
4928
4936
|
|
|
4929
4937
|
_commonjsHelpers.unwrapExports(Streamable_1);
|
|
4930
|
-
Streamable_1.Streamable;
|
|
4938
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4931
4939
|
|
|
4932
4940
|
var Wistia_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4933
4941
|
|
|
@@ -4936,7 +4944,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4936
4944
|
});
|
|
4937
4945
|
exports["default"] = exports.Wistia = void 0;
|
|
4938
4946
|
|
|
4939
|
-
var _react = _interopRequireWildcard(React__default
|
|
4947
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4940
4948
|
|
|
4941
4949
|
|
|
4942
4950
|
|
|
@@ -4960,16 +4968,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4960
4968
|
|
|
4961
4969
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4962
4970
|
|
|
4963
|
-
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); }; }
|
|
4964
|
-
|
|
4965
4971
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4966
4972
|
|
|
4967
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4968
|
-
|
|
4969
|
-
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; } }
|
|
4970
|
-
|
|
4971
4973
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4972
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
|
+
|
|
4973
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); }
|
|
4974
4978
|
|
|
4975
4979
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4980,48 +4984,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4980
4984
|
var SDK_GLOBAL = 'Wistia';
|
|
4981
4985
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4982
4986
|
|
|
4983
|
-
var Wistia =
|
|
4987
|
+
var Wistia =
|
|
4988
|
+
/*#__PURE__*/
|
|
4989
|
+
function (_Component) {
|
|
4984
4990
|
_inherits(Wistia, _Component);
|
|
4985
4991
|
|
|
4986
|
-
var _super = _createSuper(Wistia);
|
|
4987
|
-
|
|
4988
4992
|
function Wistia() {
|
|
4993
|
+
var _getPrototypeOf2;
|
|
4994
|
+
|
|
4989
4995
|
var _this;
|
|
4990
4996
|
|
|
4991
4997
|
_classCallCheck(this, Wistia);
|
|
4992
4998
|
|
|
4993
|
-
for (var _len = arguments.length,
|
|
4994
|
-
|
|
4999
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5000
|
+
args[_key] = arguments[_key];
|
|
4995
5001
|
}
|
|
4996
5002
|
|
|
4997
|
-
_this =
|
|
5003
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4998
5004
|
|
|
4999
5005
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5000
5006
|
|
|
5001
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
5002
|
-
var _this$props;
|
|
5003
|
-
|
|
5004
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5005
|
-
});
|
|
5006
|
-
|
|
5007
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5008
|
-
var _this$props2;
|
|
5009
|
-
|
|
5010
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5011
|
-
});
|
|
5012
|
-
|
|
5013
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5014
|
-
var _this$props3;
|
|
5015
|
-
|
|
5016
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5017
|
-
});
|
|
5018
|
-
|
|
5019
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5020
|
-
var _this$props4;
|
|
5021
|
-
|
|
5022
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5023
|
-
});
|
|
5024
|
-
|
|
5025
5007
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5026
5008
|
_this.callPlayer('mute');
|
|
5027
5009
|
});
|
|
@@ -5043,13 +5025,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5043
5025
|
value: function load(url) {
|
|
5044
5026
|
var _this2 = this;
|
|
5045
5027
|
|
|
5046
|
-
var _this$
|
|
5047
|
-
playing = _this$
|
|
5048
|
-
muted = _this$
|
|
5049
|
-
controls = _this$
|
|
5050
|
-
_onReady = _this$
|
|
5051
|
-
|
|
5052
|
-
|
|
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;
|
|
5053
5039
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5054
5040
|
window._wq = window._wq || [];
|
|
5055
5041
|
|
|
@@ -5066,28 +5052,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5066
5052
|
|
|
5067
5053
|
_this2.unbind();
|
|
5068
5054
|
|
|
5069
|
-
_this2.player.bind('play',
|
|
5055
|
+
_this2.player.bind('play', onPlay);
|
|
5070
5056
|
|
|
5071
|
-
_this2.player.bind('pause',
|
|
5057
|
+
_this2.player.bind('pause', onPause);
|
|
5072
5058
|
|
|
5073
|
-
_this2.player.bind('seek',
|
|
5059
|
+
_this2.player.bind('seek', onSeek);
|
|
5074
5060
|
|
|
5075
|
-
_this2.player.bind('end',
|
|
5061
|
+
_this2.player.bind('end', onEnded);
|
|
5076
5062
|
|
|
5077
5063
|
_onReady();
|
|
5078
5064
|
}
|
|
5079
5065
|
});
|
|
5080
5066
|
}, onError);
|
|
5081
5067
|
}
|
|
5082
|
-
}, {
|
|
5083
|
-
key: "unbind",
|
|
5084
|
-
value: function unbind() {
|
|
5085
|
-
this.player.unbind('play', this.onPlay);
|
|
5086
|
-
this.player.unbind('pause', this.onPause);
|
|
5087
|
-
this.player.unbind('seek', this.onSeek);
|
|
5088
|
-
this.player.unbind('end', this.onEnded);
|
|
5089
|
-
} // Proxy methods to prevent listener leaks
|
|
5090
|
-
|
|
5091
5068
|
}, {
|
|
5092
5069
|
key: "play",
|
|
5093
5070
|
value: function play() {
|
|
@@ -5098,6 +5075,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5098
5075
|
value: function pause() {
|
|
5099
5076
|
this.callPlayer('pause');
|
|
5100
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
|
+
}
|
|
5101
5091
|
}, {
|
|
5102
5092
|
key: "stop",
|
|
5103
5093
|
value: function stop() {
|
|
@@ -5143,7 +5133,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5143
5133
|
width: '100%',
|
|
5144
5134
|
height: '100%'
|
|
5145
5135
|
};
|
|
5146
|
-
return
|
|
5136
|
+
return _react["default"].createElement("div", {
|
|
5147
5137
|
key: id,
|
|
5148
5138
|
className: className,
|
|
5149
5139
|
style: style
|
|
@@ -5170,7 +5160,7 @@ exports["default"] = _default;
|
|
|
5170
5160
|
});
|
|
5171
5161
|
|
|
5172
5162
|
_commonjsHelpers.unwrapExports(Wistia_1);
|
|
5173
|
-
Wistia_1.Wistia;
|
|
5163
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5174
5164
|
|
|
5175
5165
|
var Twitch_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5176
5166
|
|
|
@@ -5179,7 +5169,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5179
5169
|
});
|
|
5180
5170
|
exports["default"] = exports.Twitch = void 0;
|
|
5181
5171
|
|
|
5182
|
-
var _react = _interopRequireWildcard(React__default
|
|
5172
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5183
5173
|
|
|
5184
5174
|
|
|
5185
5175
|
|
|
@@ -5203,16 +5193,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5203
5193
|
|
|
5204
5194
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5205
5195
|
|
|
5206
|
-
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); }; }
|
|
5207
|
-
|
|
5208
5196
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5209
5197
|
|
|
5210
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5211
|
-
|
|
5212
|
-
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; } }
|
|
5213
|
-
|
|
5214
5198
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5215
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
|
+
|
|
5216
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); }
|
|
5217
5203
|
|
|
5218
5204
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5225,12 +5211,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5225
5211
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5226
5212
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5227
5213
|
|
|
5228
|
-
var Twitch =
|
|
5214
|
+
var Twitch =
|
|
5215
|
+
/*#__PURE__*/
|
|
5216
|
+
function (_Component) {
|
|
5229
5217
|
_inherits(Twitch, _Component);
|
|
5230
5218
|
|
|
5231
|
-
var _super = _createSuper(Twitch);
|
|
5232
|
-
|
|
5233
5219
|
function Twitch() {
|
|
5220
|
+
var _getPrototypeOf2;
|
|
5221
|
+
|
|
5234
5222
|
var _this;
|
|
5235
5223
|
|
|
5236
5224
|
_classCallCheck(this, Twitch);
|
|
@@ -5239,7 +5227,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5239
5227
|
args[_key] = arguments[_key];
|
|
5240
5228
|
}
|
|
5241
5229
|
|
|
5242
|
-
_this =
|
|
5230
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5243
5231
|
|
|
5244
5232
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5245
5233
|
|
|
@@ -5360,7 +5348,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5360
5348
|
width: '100%',
|
|
5361
5349
|
height: '100%'
|
|
5362
5350
|
};
|
|
5363
|
-
return
|
|
5351
|
+
return _react["default"].createElement("div", {
|
|
5364
5352
|
style: style,
|
|
5365
5353
|
id: this.playerID
|
|
5366
5354
|
});
|
|
@@ -5386,7 +5374,7 @@ exports["default"] = _default;
|
|
|
5386
5374
|
});
|
|
5387
5375
|
|
|
5388
5376
|
_commonjsHelpers.unwrapExports(Twitch_1);
|
|
5389
|
-
Twitch_1.Twitch;
|
|
5377
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5390
5378
|
|
|
5391
5379
|
var DailyMotion_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5392
5380
|
|
|
@@ -5395,7 +5383,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5395
5383
|
});
|
|
5396
5384
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5397
5385
|
|
|
5398
|
-
var _react = _interopRequireWildcard(React__default
|
|
5386
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5399
5387
|
|
|
5400
5388
|
|
|
5401
5389
|
|
|
@@ -5413,15 +5401,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5413
5401
|
|
|
5414
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; }
|
|
5415
5403
|
|
|
5416
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5417
|
-
|
|
5418
|
-
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."); }
|
|
5404
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5419
5405
|
|
|
5420
|
-
function
|
|
5406
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5421
5407
|
|
|
5422
|
-
function
|
|
5423
|
-
|
|
5424
|
-
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; }
|
|
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; }
|
|
5425
5409
|
|
|
5426
5410
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5427
5411
|
|
|
@@ -5431,16 +5415,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5431
5415
|
|
|
5432
5416
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5433
5417
|
|
|
5434
|
-
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); }; }
|
|
5435
|
-
|
|
5436
5418
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5437
5419
|
|
|
5438
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5439
|
-
|
|
5440
|
-
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; } }
|
|
5441
|
-
|
|
5442
5420
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5443
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
|
+
|
|
5444
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); }
|
|
5445
5425
|
|
|
5446
5426
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5452,12 +5432,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5452
5432
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5453
5433
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5454
5434
|
|
|
5455
|
-
var DailyMotion =
|
|
5435
|
+
var DailyMotion =
|
|
5436
|
+
/*#__PURE__*/
|
|
5437
|
+
function (_Component) {
|
|
5456
5438
|
_inherits(DailyMotion, _Component);
|
|
5457
5439
|
|
|
5458
|
-
var _super = _createSuper(DailyMotion);
|
|
5459
|
-
|
|
5460
5440
|
function DailyMotion() {
|
|
5441
|
+
var _getPrototypeOf2;
|
|
5442
|
+
|
|
5461
5443
|
var _this;
|
|
5462
5444
|
|
|
5463
5445
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5466,7 +5448,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5466
5448
|
args[_key] = arguments[_key];
|
|
5467
5449
|
}
|
|
5468
5450
|
|
|
5469
|
-
_this =
|
|
5451
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5470
5452
|
|
|
5471
5453
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5472
5454
|
|
|
@@ -5595,9 +5577,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5595
5577
|
height: '100%',
|
|
5596
5578
|
display: display
|
|
5597
5579
|
};
|
|
5598
|
-
return
|
|
5580
|
+
return _react["default"].createElement("div", {
|
|
5599
5581
|
style: style
|
|
5600
|
-
},
|
|
5582
|
+
}, _react["default"].createElement("div", {
|
|
5601
5583
|
ref: this.ref
|
|
5602
5584
|
}));
|
|
5603
5585
|
}
|
|
@@ -5622,7 +5604,7 @@ exports["default"] = _default;
|
|
|
5622
5604
|
});
|
|
5623
5605
|
|
|
5624
5606
|
_commonjsHelpers.unwrapExports(DailyMotion_1);
|
|
5625
|
-
DailyMotion_1.DailyMotion;
|
|
5607
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5626
5608
|
|
|
5627
5609
|
var Mixcloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5628
5610
|
|
|
@@ -5631,7 +5613,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5631
5613
|
});
|
|
5632
5614
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5633
5615
|
|
|
5634
|
-
var _react = _interopRequireWildcard(React__default
|
|
5616
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5635
5617
|
|
|
5636
5618
|
|
|
5637
5619
|
|
|
@@ -5655,16 +5637,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5655
5637
|
|
|
5656
5638
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5657
5639
|
|
|
5658
|
-
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); }; }
|
|
5659
|
-
|
|
5660
5640
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5661
5641
|
|
|
5662
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5663
|
-
|
|
5664
|
-
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; } }
|
|
5665
|
-
|
|
5666
5642
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5667
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
|
+
|
|
5668
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); }
|
|
5669
5647
|
|
|
5670
5648
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5675,12 +5653,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5675
5653
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5676
5654
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5677
5655
|
|
|
5678
|
-
var Mixcloud =
|
|
5656
|
+
var Mixcloud =
|
|
5657
|
+
/*#__PURE__*/
|
|
5658
|
+
function (_Component) {
|
|
5679
5659
|
_inherits(Mixcloud, _Component);
|
|
5680
5660
|
|
|
5681
|
-
var _super = _createSuper(Mixcloud);
|
|
5682
|
-
|
|
5683
5661
|
function Mixcloud() {
|
|
5662
|
+
var _getPrototypeOf2;
|
|
5663
|
+
|
|
5684
5664
|
var _this;
|
|
5685
5665
|
|
|
5686
5666
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5689,7 +5669,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5689
5669
|
args[_key] = arguments[_key];
|
|
5690
5670
|
}
|
|
5691
5671
|
|
|
5692
|
-
_this =
|
|
5672
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5693
5673
|
|
|
5694
5674
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5695
5675
|
|
|
@@ -5792,7 +5772,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5792
5772
|
})); // We have to give the iframe a key here to prevent a
|
|
5793
5773
|
// weird dialog appearing when loading a new track
|
|
5794
5774
|
|
|
5795
|
-
return
|
|
5775
|
+
return _react["default"].createElement("iframe", {
|
|
5796
5776
|
key: id,
|
|
5797
5777
|
ref: this.ref,
|
|
5798
5778
|
style: style,
|
|
@@ -5821,7 +5801,7 @@ exports["default"] = _default;
|
|
|
5821
5801
|
});
|
|
5822
5802
|
|
|
5823
5803
|
_commonjsHelpers.unwrapExports(Mixcloud_1);
|
|
5824
|
-
Mixcloud_1.Mixcloud;
|
|
5804
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5825
5805
|
|
|
5826
5806
|
var FilePlayer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5827
5807
|
|
|
@@ -5830,7 +5810,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5830
5810
|
});
|
|
5831
5811
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5832
5812
|
|
|
5833
|
-
var _react = _interopRequireWildcard(React__default
|
|
5813
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5834
5814
|
|
|
5835
5815
|
|
|
5836
5816
|
|
|
@@ -5852,33 +5832,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5852
5832
|
|
|
5853
5833
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5854
5834
|
|
|
5855
|
-
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); }; }
|
|
5856
|
-
|
|
5857
5835
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5858
5836
|
|
|
5859
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5860
|
-
|
|
5861
|
-
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; } }
|
|
5862
|
-
|
|
5863
5837
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5864
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
|
+
|
|
5865
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); }
|
|
5866
5842
|
|
|
5867
5843
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5868
5844
|
|
|
5869
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; }
|
|
5870
5846
|
|
|
5871
|
-
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; } } }; }
|
|
5872
|
-
|
|
5873
|
-
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); }
|
|
5874
|
-
|
|
5875
|
-
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; }
|
|
5876
|
-
|
|
5877
5847
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5878
5848
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5879
5849
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5880
5850
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5881
|
-
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';
|
|
5882
5852
|
var HLS_GLOBAL = 'Hls';
|
|
5883
5853
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5884
5854
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5887,11 +5857,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5887
5857
|
|
|
5888
5858
|
function canPlay(url) {
|
|
5889
5859
|
if (url instanceof Array) {
|
|
5890
|
-
var
|
|
5891
|
-
|
|
5860
|
+
var _iteratorNormalCompletion = true;
|
|
5861
|
+
var _didIteratorError = false;
|
|
5862
|
+
var _iteratorError = undefined;
|
|
5892
5863
|
|
|
5893
5864
|
try {
|
|
5894
|
-
for (_iterator.
|
|
5865
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5895
5866
|
var item = _step.value;
|
|
5896
5867
|
|
|
5897
5868
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5903,9 +5874,18 @@ function canPlay(url) {
|
|
|
5903
5874
|
}
|
|
5904
5875
|
}
|
|
5905
5876
|
} catch (err) {
|
|
5906
|
-
|
|
5877
|
+
_didIteratorError = true;
|
|
5878
|
+
_iteratorError = err;
|
|
5907
5879
|
} finally {
|
|
5908
|
-
|
|
5880
|
+
try {
|
|
5881
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5882
|
+
_iterator["return"]();
|
|
5883
|
+
}
|
|
5884
|
+
} finally {
|
|
5885
|
+
if (_didIteratorError) {
|
|
5886
|
+
throw _iteratorError;
|
|
5887
|
+
}
|
|
5888
|
+
}
|
|
5909
5889
|
}
|
|
5910
5890
|
|
|
5911
5891
|
return false;
|
|
@@ -5929,12 +5909,14 @@ function canEnablePIP(url) {
|
|
|
5929
5909
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5930
5910
|
}
|
|
5931
5911
|
|
|
5932
|
-
var FilePlayer =
|
|
5912
|
+
var FilePlayer =
|
|
5913
|
+
/*#__PURE__*/
|
|
5914
|
+
function (_Component) {
|
|
5933
5915
|
_inherits(FilePlayer, _Component);
|
|
5934
5916
|
|
|
5935
|
-
var _super = _createSuper(FilePlayer);
|
|
5936
|
-
|
|
5937
5917
|
function FilePlayer() {
|
|
5918
|
+
var _getPrototypeOf2;
|
|
5919
|
+
|
|
5938
5920
|
var _this;
|
|
5939
5921
|
|
|
5940
5922
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5943,7 +5925,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5943
5925
|
_args[_key] = arguments[_key];
|
|
5944
5926
|
}
|
|
5945
5927
|
|
|
5946
|
-
_this =
|
|
5928
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5947
5929
|
|
|
5948
5930
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5949
5931
|
var _this$props;
|
|
@@ -6030,19 +6012,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6030
6012
|
|
|
6031
6013
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6032
6014
|
if (typeof source === 'string') {
|
|
6033
|
-
return
|
|
6015
|
+
return _react["default"].createElement("source", {
|
|
6034
6016
|
key: index,
|
|
6035
6017
|
src: source
|
|
6036
6018
|
});
|
|
6037
6019
|
}
|
|
6038
6020
|
|
|
6039
|
-
return
|
|
6021
|
+
return _react["default"].createElement("source", _extends({
|
|
6040
6022
|
key: index
|
|
6041
6023
|
}, source));
|
|
6042
6024
|
});
|
|
6043
6025
|
|
|
6044
6026
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6045
|
-
return
|
|
6027
|
+
return _react["default"].createElement("track", _extends({
|
|
6046
6028
|
key: index
|
|
6047
6029
|
}, track));
|
|
6048
6030
|
});
|
|
@@ -6080,10 +6062,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6080
6062
|
key: "componentWillUnmount",
|
|
6081
6063
|
value: function componentWillUnmount() {
|
|
6082
6064
|
this.removeListeners(this.player);
|
|
6083
|
-
|
|
6084
|
-
if (this.hls) {
|
|
6085
|
-
this.hls.destroy();
|
|
6086
|
-
}
|
|
6087
6065
|
}
|
|
6088
6066
|
}, {
|
|
6089
6067
|
key: "addListeners",
|
|
@@ -6214,6 +6192,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6214
6192
|
value: function stop() {
|
|
6215
6193
|
this.player.removeAttribute('src');
|
|
6216
6194
|
|
|
6195
|
+
if (this.hls) {
|
|
6196
|
+
this.hls.destroy();
|
|
6197
|
+
}
|
|
6198
|
+
|
|
6217
6199
|
if (this.dash) {
|
|
6218
6200
|
this.dash.reset();
|
|
6219
6201
|
}
|
|
@@ -6325,7 +6307,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6325
6307
|
width: width === 'auto' ? width : '100%',
|
|
6326
6308
|
height: height === 'auto' ? height : '100%'
|
|
6327
6309
|
};
|
|
6328
|
-
return
|
|
6310
|
+
return _react["default"].createElement(Element, _extends({
|
|
6329
6311
|
ref: this.ref,
|
|
6330
6312
|
src: this.getSource(url),
|
|
6331
6313
|
style: style,
|
|
@@ -6355,7 +6337,7 @@ exports["default"] = _default;
|
|
|
6355
6337
|
});
|
|
6356
6338
|
|
|
6357
6339
|
_commonjsHelpers.unwrapExports(FilePlayer_1);
|
|
6358
|
-
FilePlayer_1.FilePlayer;
|
|
6340
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6359
6341
|
|
|
6360
6342
|
var players = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
6361
6343
|
|
|
@@ -6397,7 +6379,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6397
6379
|
});
|
|
6398
6380
|
exports["default"] = void 0;
|
|
6399
6381
|
|
|
6400
|
-
var _react = _interopRequireWildcard(React__default
|
|
6382
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6401
6383
|
|
|
6402
6384
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6403
6385
|
|
|
@@ -6415,16 +6397,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6415
6397
|
|
|
6416
6398
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6417
6399
|
|
|
6418
|
-
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); }; }
|
|
6419
|
-
|
|
6420
6400
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6421
6401
|
|
|
6422
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6423
|
-
|
|
6424
|
-
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; } }
|
|
6425
|
-
|
|
6426
6402
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6427
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
|
+
|
|
6428
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); }
|
|
6429
6407
|
|
|
6430
6408
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6433,12 +6411,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6433
6411
|
|
|
6434
6412
|
var ICON_SIZE = '64px';
|
|
6435
6413
|
|
|
6436
|
-
var Preview =
|
|
6414
|
+
var Preview =
|
|
6415
|
+
/*#__PURE__*/
|
|
6416
|
+
function (_Component) {
|
|
6437
6417
|
_inherits(Preview, _Component);
|
|
6438
6418
|
|
|
6439
|
-
var _super = _createSuper(Preview);
|
|
6440
|
-
|
|
6441
6419
|
function Preview() {
|
|
6420
|
+
var _getPrototypeOf2;
|
|
6421
|
+
|
|
6442
6422
|
var _this;
|
|
6443
6423
|
|
|
6444
6424
|
_classCallCheck(this, Preview);
|
|
@@ -6447,7 +6427,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6447
6427
|
args[_key] = arguments[_key];
|
|
6448
6428
|
}
|
|
6449
6429
|
|
|
6450
|
-
_this =
|
|
6430
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6451
6431
|
|
|
6452
6432
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6453
6433
|
|
|
@@ -6545,15 +6525,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6545
6525
|
}
|
|
6546
6526
|
};
|
|
6547
6527
|
|
|
6548
|
-
var defaultPlayIcon =
|
|
6528
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6549
6529
|
style: styles.shadow,
|
|
6550
6530
|
className: "react-player__shadow"
|
|
6551
|
-
},
|
|
6531
|
+
}, _react["default"].createElement("div", {
|
|
6552
6532
|
style: styles.playIcon,
|
|
6553
6533
|
className: "react-player__play-icon"
|
|
6554
6534
|
}));
|
|
6555
6535
|
|
|
6556
|
-
return
|
|
6536
|
+
return _react["default"].createElement("div", {
|
|
6557
6537
|
style: styles.preview,
|
|
6558
6538
|
className: "react-player__preview",
|
|
6559
6539
|
onClick: onClick
|
|
@@ -6576,7 +6556,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6576
6556
|
});
|
|
6577
6557
|
exports["default"] = renderPreloadPlayers;
|
|
6578
6558
|
|
|
6579
|
-
var _react = _interopRequireDefault(React__default
|
|
6559
|
+
var _react = _interopRequireDefault(React__default);
|
|
6580
6560
|
|
|
6581
6561
|
var _Player = _interopRequireDefault(Player_1);
|
|
6582
6562
|
|
|
@@ -6590,12 +6570,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6590
6570
|
|
|
6591
6571
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6592
6572
|
|
|
6593
|
-
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; } } }; }
|
|
6594
|
-
|
|
6595
|
-
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); }
|
|
6596
|
-
|
|
6597
|
-
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; }
|
|
6598
|
-
|
|
6599
6573
|
var PRELOAD_PLAYERS = [{
|
|
6600
6574
|
Player: YouTube_1.YouTube,
|
|
6601
6575
|
configKey: 'youtube',
|
|
@@ -6616,16 +6590,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6616
6590
|
|
|
6617
6591
|
function renderPreloadPlayers(url, controls, config) {
|
|
6618
6592
|
var players = [];
|
|
6619
|
-
|
|
6620
|
-
var
|
|
6621
|
-
|
|
6593
|
+
var _iteratorNormalCompletion = true;
|
|
6594
|
+
var _didIteratorError = false;
|
|
6595
|
+
var _iteratorError = undefined;
|
|
6622
6596
|
|
|
6623
6597
|
try {
|
|
6624
|
-
for (_iterator.
|
|
6598
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6625
6599
|
var player = _step.value;
|
|
6626
6600
|
|
|
6627
6601
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6628
|
-
players.push(
|
|
6602
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6629
6603
|
key: player.Player.displayName,
|
|
6630
6604
|
activePlayer: player.Player,
|
|
6631
6605
|
url: player.url,
|
|
@@ -6637,9 +6611,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6637
6611
|
}
|
|
6638
6612
|
}
|
|
6639
6613
|
} catch (err) {
|
|
6640
|
-
|
|
6614
|
+
_didIteratorError = true;
|
|
6615
|
+
_iteratorError = err;
|
|
6641
6616
|
} finally {
|
|
6642
|
-
|
|
6617
|
+
try {
|
|
6618
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6619
|
+
_iterator["return"]();
|
|
6620
|
+
}
|
|
6621
|
+
} finally {
|
|
6622
|
+
if (_didIteratorError) {
|
|
6623
|
+
throw _iteratorError;
|
|
6624
|
+
}
|
|
6625
|
+
}
|
|
6643
6626
|
}
|
|
6644
6627
|
|
|
6645
6628
|
return players;
|
|
@@ -6715,7 +6698,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6715
6698
|
});
|
|
6716
6699
|
exports["default"] = void 0;
|
|
6717
6700
|
|
|
6718
|
-
var _react = _interopRequireWildcard(React__default
|
|
6701
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6719
6702
|
|
|
6720
6703
|
|
|
6721
6704
|
|
|
@@ -6763,17 +6746,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6763
6746
|
|
|
6764
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); }
|
|
6765
6748
|
|
|
6766
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6749
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6767
6750
|
|
|
6768
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
6751
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6769
6752
|
|
|
6770
|
-
function
|
|
6753
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6771
6754
|
|
|
6772
|
-
function
|
|
6773
|
-
|
|
6774
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6775
|
-
|
|
6776
|
-
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; } }
|
|
6777
6756
|
|
|
6778
6757
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6779
6758
|
|
|
@@ -6781,16 +6760,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6781
6760
|
|
|
6782
6761
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6783
6762
|
|
|
6784
|
-
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); }; }
|
|
6785
|
-
|
|
6786
6763
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6787
6764
|
|
|
6788
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6789
|
-
|
|
6790
|
-
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; } }
|
|
6791
|
-
|
|
6792
6765
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6793
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
|
+
|
|
6794
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); }
|
|
6795
6770
|
|
|
6796
6771
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6800,12 +6775,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6800
6775
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6801
6776
|
var customPlayers = [];
|
|
6802
6777
|
|
|
6803
|
-
var ReactPlayer =
|
|
6778
|
+
var ReactPlayer =
|
|
6779
|
+
/*#__PURE__*/
|
|
6780
|
+
function (_Component) {
|
|
6804
6781
|
_inherits(ReactPlayer, _Component);
|
|
6805
6782
|
|
|
6806
|
-
var _super = _createSuper(ReactPlayer);
|
|
6807
|
-
|
|
6808
6783
|
function ReactPlayer() {
|
|
6784
|
+
var _getPrototypeOf2;
|
|
6785
|
+
|
|
6809
6786
|
var _this;
|
|
6810
6787
|
|
|
6811
6788
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6814,7 +6791,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6814
6791
|
args[_key] = arguments[_key];
|
|
6815
6792
|
}
|
|
6816
6793
|
|
|
6817
|
-
_this =
|
|
6794
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6818
6795
|
|
|
6819
6796
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6820
6797
|
|
|
@@ -6925,7 +6902,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6925
6902
|
key: "renderActivePlayer",
|
|
6926
6903
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6927
6904
|
if (!url) return null;
|
|
6928
|
-
return
|
|
6905
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6929
6906
|
key: activePlayer.displayName,
|
|
6930
6907
|
ref: this.activePlayerRef,
|
|
6931
6908
|
config: this.config,
|
|
@@ -6962,14 +6939,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6962
6939
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6963
6940
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6964
6941
|
|
|
6965
|
-
var preview =
|
|
6942
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6966
6943
|
url: url,
|
|
6967
6944
|
light: light,
|
|
6968
6945
|
playIcon: playIcon,
|
|
6969
6946
|
onClick: this.handleClickPreview
|
|
6970
6947
|
});
|
|
6971
6948
|
|
|
6972
|
-
return
|
|
6949
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6973
6950
|
ref: this.wrapperRef,
|
|
6974
6951
|
style: _objectSpread({}, style, {
|
|
6975
6952
|
width: width,
|
|
@@ -7029,20 +7006,20 @@ var Audio = function Audio(_ref) {
|
|
|
7029
7006
|
var node = _ref.node;
|
|
7030
7007
|
|
|
7031
7008
|
if (node.uploadAudio) {
|
|
7032
|
-
return React__default
|
|
7009
|
+
return React__default.createElement(
|
|
7033
7010
|
'div',
|
|
7034
7011
|
{ className: 'audio d-block text-center mb-3' },
|
|
7035
|
-
React__default
|
|
7012
|
+
React__default.createElement(
|
|
7036
7013
|
'audio',
|
|
7037
7014
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7038
|
-
React__default
|
|
7039
|
-
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' }),
|
|
7040
7017
|
'Your browser does not support the audio element.'
|
|
7041
7018
|
),
|
|
7042
|
-
node.caption && React__default
|
|
7019
|
+
node.caption && React__default.createElement(
|
|
7043
7020
|
'p',
|
|
7044
7021
|
{ style: { fontSize: '.9rem' } },
|
|
7045
|
-
React__default
|
|
7022
|
+
React__default.createElement(
|
|
7046
7023
|
'em',
|
|
7047
7024
|
null,
|
|
7048
7025
|
node.caption
|
|
@@ -7052,15 +7029,15 @@ var Audio = function Audio(_ref) {
|
|
|
7052
7029
|
} else if (node.audioFilePth) {
|
|
7053
7030
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7054
7031
|
if (hostname === 'embeds.audioboom.com') {
|
|
7055
|
-
return React__default
|
|
7032
|
+
return React__default.createElement(
|
|
7056
7033
|
'div',
|
|
7057
7034
|
null,
|
|
7058
|
-
React__default
|
|
7035
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7059
7036
|
' ',
|
|
7060
|
-
node.caption && React__default
|
|
7037
|
+
node.caption && React__default.createElement(
|
|
7061
7038
|
'p',
|
|
7062
7039
|
{ style: { fontSize: '.9rem' } },
|
|
7063
|
-
React__default
|
|
7040
|
+
React__default.createElement(
|
|
7064
7041
|
'em',
|
|
7065
7042
|
null,
|
|
7066
7043
|
node.caption
|
|
@@ -7068,14 +7045,14 @@ var Audio = function Audio(_ref) {
|
|
|
7068
7045
|
)
|
|
7069
7046
|
);
|
|
7070
7047
|
}
|
|
7071
|
-
return React__default
|
|
7048
|
+
return React__default.createElement(
|
|
7072
7049
|
'div',
|
|
7073
7050
|
{ className: 'audio' },
|
|
7074
|
-
React__default
|
|
7075
|
-
node.caption && React__default
|
|
7051
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7052
|
+
node.caption && React__default.createElement(
|
|
7076
7053
|
'p',
|
|
7077
7054
|
{ style: { fontSize: '.9rem' } },
|
|
7078
|
-
React__default
|
|
7055
|
+
React__default.createElement(
|
|
7079
7056
|
'em',
|
|
7080
7057
|
null,
|
|
7081
7058
|
node.caption
|
|
@@ -7093,34 +7070,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7093
7070
|
var profileImage = arguments[6];
|
|
7094
7071
|
|
|
7095
7072
|
if (authorName && authorURL) {
|
|
7096
|
-
return React__default
|
|
7073
|
+
return React__default.createElement(
|
|
7097
7074
|
'span',
|
|
7098
7075
|
null,
|
|
7099
|
-
React__default
|
|
7076
|
+
React__default.createElement(
|
|
7100
7077
|
'a',
|
|
7101
7078
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7102
7079
|
authorName
|
|
7103
7080
|
),
|
|
7104
|
-
React__default
|
|
7081
|
+
React__default.createElement(
|
|
7105
7082
|
reactBootstrap.Card,
|
|
7106
7083
|
{ className: 'author-details-card-' + index },
|
|
7107
|
-
React__default
|
|
7084
|
+
React__default.createElement(
|
|
7108
7085
|
reactBootstrap.Row,
|
|
7109
7086
|
null,
|
|
7110
|
-
profileImage && React__default
|
|
7087
|
+
profileImage && React__default.createElement(
|
|
7111
7088
|
reactBootstrap.Col,
|
|
7112
7089
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7113
|
-
React__default
|
|
7090
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7114
7091
|
),
|
|
7115
|
-
React__default
|
|
7092
|
+
React__default.createElement(
|
|
7116
7093
|
reactBootstrap.Col,
|
|
7117
7094
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7118
|
-
React__default
|
|
7095
|
+
React__default.createElement(
|
|
7119
7096
|
'div',
|
|
7120
7097
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7121
7098
|
authorName
|
|
7122
7099
|
),
|
|
7123
|
-
React__default
|
|
7100
|
+
React__default.createElement(
|
|
7124
7101
|
'p',
|
|
7125
7102
|
null,
|
|
7126
7103
|
biography
|
|
@@ -7128,7 +7105,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7128
7105
|
)
|
|
7129
7106
|
)
|
|
7130
7107
|
),
|
|
7131
|
-
React__default
|
|
7108
|
+
React__default.createElement(
|
|
7132
7109
|
'style',
|
|
7133
7110
|
{ jsx: 'true' },
|
|
7134
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 '
|
|
@@ -7136,7 +7113,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7136
7113
|
length !== index + 1 && ' , '
|
|
7137
7114
|
);
|
|
7138
7115
|
} else if (authorName) {
|
|
7139
|
-
return React__default
|
|
7116
|
+
return React__default.createElement(
|
|
7140
7117
|
'span',
|
|
7141
7118
|
{ key: index },
|
|
7142
7119
|
authorName,
|
|
@@ -7238,7 +7215,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7238
7215
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7239
7216
|
data.push({ title: vid.title, thumbnail: urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
|
|
7240
7217
|
} else {
|
|
7241
|
-
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 });
|
|
7242
7219
|
}
|
|
7243
7220
|
}
|
|
7244
7221
|
});
|
|
@@ -7291,14 +7268,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7291
7268
|
var duration = player.getDuration();
|
|
7292
7269
|
var queue = Math.floor(duration / 10);
|
|
7293
7270
|
var segment = Math.floor(current / queue);
|
|
7294
|
-
Beam.report_beam_video('Ready', main.
|
|
7295
|
-
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);
|
|
7296
7273
|
//autoplay
|
|
7297
7274
|
|
|
7298
7275
|
//Small pause before starting next video
|
|
7299
7276
|
setTimeout(function () {
|
|
7300
7277
|
//Youtube API to start video playing automatically
|
|
7301
|
-
var id = index$
|
|
7278
|
+
var id = index$3.getYoutubeId(vidUrl);
|
|
7302
7279
|
event.target.loadVideoById(id);
|
|
7303
7280
|
}, 1500);
|
|
7304
7281
|
};
|
|
@@ -7312,8 +7289,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7312
7289
|
var queue = Math.floor(duration / 10);
|
|
7313
7290
|
var segment = Math.floor(current / queue);
|
|
7314
7291
|
|
|
7315
|
-
Beam.report_beam_video('End', main.
|
|
7316
|
-
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);
|
|
7317
7294
|
setEndReported(true);
|
|
7318
7295
|
clearInterval(intervalID);
|
|
7319
7296
|
}
|
|
@@ -7363,8 +7340,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7363
7340
|
var queue = Math.floor(duration / 10);
|
|
7364
7341
|
var segment = Math.floor(current / queue);
|
|
7365
7342
|
if (!queueProgress.includes(segment)) {
|
|
7366
|
-
Beam.report_beam_video('Segment', main.
|
|
7367
|
-
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);
|
|
7368
7345
|
queueProgress.push(segment);
|
|
7369
7346
|
}
|
|
7370
7347
|
};
|
|
@@ -7377,8 +7354,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7377
7354
|
var queue = Math.floor(duration / 10);
|
|
7378
7355
|
var segment = Math.floor(current / queue);
|
|
7379
7356
|
|
|
7380
|
-
Beam.report_beam_video('Play', main.
|
|
7381
|
-
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);
|
|
7382
7359
|
|
|
7383
7360
|
if (!playReported) {
|
|
7384
7361
|
setPlayReported(true);
|
|
@@ -7396,8 +7373,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7396
7373
|
var queue = Math.floor(duration / 10);
|
|
7397
7374
|
var segment = Math.floor(current / queue);
|
|
7398
7375
|
|
|
7399
|
-
Beam.report_beam_video('Pause', main.
|
|
7400
|
-
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);
|
|
7401
7378
|
};
|
|
7402
7379
|
|
|
7403
7380
|
// Youtube Options
|
|
@@ -7408,44 +7385,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7408
7385
|
}
|
|
7409
7386
|
};
|
|
7410
7387
|
|
|
7411
|
-
return React__default
|
|
7388
|
+
return React__default.createElement(
|
|
7412
7389
|
'div',
|
|
7413
7390
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7414
|
-
React__default
|
|
7391
|
+
React__default.createElement(
|
|
7415
7392
|
'div',
|
|
7416
7393
|
{ className: 'mt-2 mb-5' },
|
|
7417
|
-
series && React__default
|
|
7394
|
+
series && React__default.createElement(
|
|
7418
7395
|
'div',
|
|
7419
7396
|
{ style: { fontSize: '0.9rem' } },
|
|
7420
7397
|
article.title,
|
|
7421
7398
|
' - Episode ',
|
|
7422
7399
|
series
|
|
7423
7400
|
),
|
|
7424
|
-
Videos[series - 1] && React__default
|
|
7401
|
+
Videos[series - 1] && React__default.createElement(
|
|
7425
7402
|
'h1',
|
|
7426
7403
|
{ className: 'mb-3' },
|
|
7427
7404
|
Videos[series - 1].title
|
|
7428
7405
|
),
|
|
7429
|
-
React__default
|
|
7406
|
+
React__default.createElement(
|
|
7430
7407
|
'div',
|
|
7431
7408
|
null,
|
|
7432
7409
|
moment.moment(article.published).format('LL')
|
|
7433
7410
|
),
|
|
7434
|
-
React__default
|
|
7411
|
+
React__default.createElement(
|
|
7435
7412
|
'div',
|
|
7436
7413
|
{ className: 'mb-3' },
|
|
7437
7414
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7438
|
-
return React__default
|
|
7415
|
+
return React__default.createElement(
|
|
7439
7416
|
'span',
|
|
7440
7417
|
{ key: index },
|
|
7441
7418
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7442
7419
|
);
|
|
7443
7420
|
})
|
|
7444
7421
|
),
|
|
7445
|
-
React__default
|
|
7422
|
+
React__default.createElement(
|
|
7446
7423
|
'p',
|
|
7447
7424
|
null,
|
|
7448
|
-
React__default
|
|
7425
|
+
React__default.createElement(SocialShare, {
|
|
7449
7426
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7450
7427
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7451
7428
|
shareVia: meta.shareVia,
|
|
@@ -7460,22 +7437,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7460
7437
|
hideFacebook: meta.hideFBShare
|
|
7461
7438
|
})
|
|
7462
7439
|
),
|
|
7463
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7440
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7464
7441
|
'p',
|
|
7465
7442
|
{ className: 'mb-3' },
|
|
7466
|
-
React__default
|
|
7443
|
+
React__default.createElement(
|
|
7467
7444
|
'em',
|
|
7468
7445
|
null,
|
|
7469
7446
|
Videos[series - 1].intro
|
|
7470
7447
|
)
|
|
7471
7448
|
)
|
|
7472
7449
|
),
|
|
7473
|
-
React__default
|
|
7450
|
+
React__default.createElement(
|
|
7474
7451
|
'div',
|
|
7475
7452
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7476
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7453
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7477
7454
|
className: 'fluid-iframe',
|
|
7478
|
-
videoId: index$
|
|
7455
|
+
videoId: index$3.getYoutubeId(vidUrl),
|
|
7479
7456
|
opts: opts,
|
|
7480
7457
|
onReady: handleOnReady,
|
|
7481
7458
|
onPlay: handleOnPlay,
|
|
@@ -7484,10 +7461,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7484
7461
|
return handleOnEnd(e);
|
|
7485
7462
|
}
|
|
7486
7463
|
}),
|
|
7487
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7488
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7489
|
-
React__default
|
|
7490
|
-
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(
|
|
7491
7468
|
'div',
|
|
7492
7469
|
{
|
|
7493
7470
|
className: 'vid-series',
|
|
@@ -7497,10 +7474,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7497
7474
|
maxHeight: '100%',
|
|
7498
7475
|
paddingBottom: '0'
|
|
7499
7476
|
} },
|
|
7500
|
-
React__default
|
|
7477
|
+
React__default.createElement(
|
|
7501
7478
|
'p',
|
|
7502
7479
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7503
|
-
React__default
|
|
7480
|
+
React__default.createElement(
|
|
7504
7481
|
'b',
|
|
7505
7482
|
{ style: { fontSize: '1.25em' } },
|
|
7506
7483
|
'Now Playing:'
|
|
@@ -7508,16 +7485,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7508
7485
|
' ',
|
|
7509
7486
|
seriesData[series ? series - 1 : 0].title
|
|
7510
7487
|
),
|
|
7511
|
-
vidUrl && React__default
|
|
7488
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7512
7489
|
)
|
|
7513
7490
|
),
|
|
7514
|
-
React__default
|
|
7515
|
-
React__default
|
|
7491
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7492
|
+
React__default.createElement(
|
|
7516
7493
|
'div',
|
|
7517
7494
|
{ className: 'vid-text' },
|
|
7518
|
-
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()))
|
|
7519
7496
|
),
|
|
7520
|
-
React__default
|
|
7497
|
+
React__default.createElement(
|
|
7521
7498
|
'style',
|
|
7522
7499
|
{ jsx: 'true' },
|
|
7523
7500
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7525,14 +7502,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7525
7502
|
);
|
|
7526
7503
|
};
|
|
7527
7504
|
|
|
7528
|
-
var Poll
|
|
7529
|
-
var node = _ref.node
|
|
7530
|
-
_ref.client
|
|
7531
|
-
_ref.pageview
|
|
7532
|
-
_ref.videoAccountIDs
|
|
7533
|
-
|
|
7534
|
-
_ref.showVotes
|
|
7535
|
-
|
|
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;
|
|
7536
7513
|
|
|
7537
7514
|
var _useState = React.useState(null),
|
|
7538
7515
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7570,67 +7547,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7570
7547
|
return acc;
|
|
7571
7548
|
}
|
|
7572
7549
|
}, 0);
|
|
7573
|
-
return React__default
|
|
7574
|
-
React__default
|
|
7550
|
+
return React__default.createElement(
|
|
7551
|
+
React__default.Fragment,
|
|
7575
7552
|
null,
|
|
7576
|
-
question && React__default
|
|
7553
|
+
question && React__default.createElement(
|
|
7577
7554
|
'p',
|
|
7578
7555
|
{ className: 'font-weight-bold' },
|
|
7579
7556
|
question
|
|
7580
7557
|
),
|
|
7581
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7558
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7582
7559
|
'form',
|
|
7583
7560
|
{ onSubmit: function onSubmit(e) {
|
|
7584
7561
|
return onSubmitPoll(e);
|
|
7585
7562
|
} },
|
|
7586
7563
|
choices && choices.map(function (choice) {
|
|
7587
|
-
return React__default
|
|
7564
|
+
return React__default.createElement(
|
|
7588
7565
|
'div',
|
|
7589
7566
|
{ key: choice._key },
|
|
7590
|
-
React__default
|
|
7567
|
+
React__default.createElement(
|
|
7591
7568
|
'label',
|
|
7592
7569
|
{ className: 'pl-2' },
|
|
7593
|
-
React__default
|
|
7570
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7594
7571
|
return setSelectedChoice(e.target.value);
|
|
7595
7572
|
} }),
|
|
7596
7573
|
' ' + choice.choiceText
|
|
7597
7574
|
)
|
|
7598
7575
|
);
|
|
7599
7576
|
}),
|
|
7600
|
-
React__default
|
|
7577
|
+
React__default.createElement(
|
|
7601
7578
|
reactBootstrap.Button,
|
|
7602
7579
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7603
7580
|
'Vote'
|
|
7604
7581
|
)
|
|
7605
7582
|
),
|
|
7606
|
-
React__default
|
|
7583
|
+
React__default.createElement(
|
|
7607
7584
|
'div',
|
|
7608
7585
|
{ className: 'progress-container' },
|
|
7609
7586
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7610
7587
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7611
|
-
return React__default
|
|
7588
|
+
return React__default.createElement(
|
|
7612
7589
|
'div',
|
|
7613
7590
|
{ key: choice._key, className: 'mb-3' },
|
|
7614
|
-
React__default
|
|
7591
|
+
React__default.createElement(
|
|
7615
7592
|
'div',
|
|
7616
7593
|
{ className: 'correct-answer' },
|
|
7617
|
-
React__default
|
|
7594
|
+
React__default.createElement(
|
|
7618
7595
|
'div',
|
|
7619
7596
|
null,
|
|
7620
7597
|
choice.choiceText
|
|
7621
7598
|
),
|
|
7622
|
-
choice.choiceAnswer === true && React__default
|
|
7599
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7623
7600
|
'div',
|
|
7624
7601
|
null,
|
|
7625
|
-
React__default
|
|
7602
|
+
React__default.createElement(
|
|
7626
7603
|
'span',
|
|
7627
7604
|
{ style: { color: 'limegreen' } },
|
|
7628
7605
|
'Correct!'
|
|
7629
7606
|
)
|
|
7630
7607
|
)
|
|
7631
7608
|
),
|
|
7632
|
-
React__default
|
|
7633
|
-
React__default
|
|
7609
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7610
|
+
React__default.createElement(
|
|
7634
7611
|
'span',
|
|
7635
7612
|
{ className: 'float-right' },
|
|
7636
7613
|
percentage,
|
|
@@ -7641,14 +7618,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7641
7618
|
);
|
|
7642
7619
|
})
|
|
7643
7620
|
),
|
|
7644
|
-
showAnswer && React__default
|
|
7621
|
+
showAnswer && React__default.createElement(
|
|
7645
7622
|
'h4',
|
|
7646
7623
|
{ className: 'text-center small p-3' },
|
|
7647
7624
|
'Total Votes: ',
|
|
7648
7625
|
choicesTotalCount
|
|
7649
7626
|
),
|
|
7650
|
-
showAnswer && response && React__default
|
|
7651
|
-
React__default
|
|
7627
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7628
|
+
React__default.createElement(
|
|
7652
7629
|
'style',
|
|
7653
7630
|
{ jsx: 'true' },
|
|
7654
7631
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7666,22 +7643,22 @@ _toObject._export(_toObject._export.S, 'Object', {
|
|
|
7666
7643
|
}
|
|
7667
7644
|
});
|
|
7668
7645
|
|
|
7669
|
-
var values
|
|
7646
|
+
var values = _toObject._core.Object.values;
|
|
7670
7647
|
|
|
7671
|
-
var values = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7672
|
-
module.exports = { "default": values
|
|
7648
|
+
var values$1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7649
|
+
module.exports = { "default": values, __esModule: true };
|
|
7673
7650
|
});
|
|
7674
7651
|
|
|
7675
|
-
var _Object$values = _commonjsHelpers.unwrapExports(values);
|
|
7652
|
+
var _Object$values = _commonjsHelpers.unwrapExports(values$1);
|
|
7676
7653
|
|
|
7677
|
-
var Poll = function Poll(_ref) {
|
|
7678
|
-
var node = _ref.node
|
|
7679
|
-
_ref.client
|
|
7680
|
-
_ref.pageview
|
|
7681
|
-
_ref.videoAccountIDs
|
|
7682
|
-
|
|
7683
|
-
_ref.showVotes
|
|
7684
|
-
|
|
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;
|
|
7685
7662
|
|
|
7686
7663
|
var _useState = React.useState(null),
|
|
7687
7664
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7747,67 +7724,67 @@ var Poll = function Poll(_ref) {
|
|
|
7747
7724
|
return acc;
|
|
7748
7725
|
}
|
|
7749
7726
|
}, 0);
|
|
7750
|
-
return React__default
|
|
7751
|
-
React__default
|
|
7727
|
+
return React__default.createElement(
|
|
7728
|
+
React__default.Fragment,
|
|
7752
7729
|
null,
|
|
7753
|
-
question && React__default
|
|
7730
|
+
question && React__default.createElement(
|
|
7754
7731
|
'p',
|
|
7755
7732
|
{ className: 'font-weight-bold' },
|
|
7756
7733
|
question
|
|
7757
7734
|
),
|
|
7758
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7735
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7759
7736
|
'form',
|
|
7760
7737
|
{ onSubmit: function onSubmit(e) {
|
|
7761
7738
|
return onSubmitPoll(e);
|
|
7762
7739
|
} },
|
|
7763
7740
|
choices && choices.map(function (choice) {
|
|
7764
|
-
return React__default
|
|
7741
|
+
return React__default.createElement(
|
|
7765
7742
|
'div',
|
|
7766
7743
|
{ key: choice._key },
|
|
7767
|
-
React__default
|
|
7744
|
+
React__default.createElement(
|
|
7768
7745
|
'label',
|
|
7769
7746
|
{ className: 'pl-2' },
|
|
7770
|
-
React__default
|
|
7747
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7771
7748
|
return setSelectedChoice(e.target.value);
|
|
7772
7749
|
} }),
|
|
7773
7750
|
' ' + choice.choiceText
|
|
7774
7751
|
)
|
|
7775
7752
|
);
|
|
7776
7753
|
}),
|
|
7777
|
-
React__default
|
|
7754
|
+
React__default.createElement(
|
|
7778
7755
|
reactBootstrap.Button,
|
|
7779
7756
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7780
7757
|
'Vote'
|
|
7781
7758
|
)
|
|
7782
7759
|
),
|
|
7783
|
-
React__default
|
|
7760
|
+
React__default.createElement(
|
|
7784
7761
|
'div',
|
|
7785
7762
|
{ className: 'progress-container' },
|
|
7786
7763
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7787
7764
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7788
|
-
return React__default
|
|
7765
|
+
return React__default.createElement(
|
|
7789
7766
|
'div',
|
|
7790
7767
|
{ key: choice._key, className: 'mb-3' },
|
|
7791
|
-
React__default
|
|
7768
|
+
React__default.createElement(
|
|
7792
7769
|
'div',
|
|
7793
7770
|
{ className: 'correct-answer' },
|
|
7794
|
-
React__default
|
|
7771
|
+
React__default.createElement(
|
|
7795
7772
|
'div',
|
|
7796
7773
|
null,
|
|
7797
7774
|
choice.choiceText
|
|
7798
7775
|
),
|
|
7799
|
-
choice.choiceAnswer === true && React__default
|
|
7776
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7800
7777
|
'div',
|
|
7801
7778
|
null,
|
|
7802
|
-
React__default
|
|
7779
|
+
React__default.createElement(
|
|
7803
7780
|
'span',
|
|
7804
7781
|
{ style: { color: 'limegreen' } },
|
|
7805
7782
|
'Correct!'
|
|
7806
7783
|
)
|
|
7807
7784
|
)
|
|
7808
7785
|
),
|
|
7809
|
-
React__default
|
|
7810
|
-
React__default
|
|
7786
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7787
|
+
React__default.createElement(
|
|
7811
7788
|
'span',
|
|
7812
7789
|
{ className: 'float-right' },
|
|
7813
7790
|
percentage,
|
|
@@ -7818,14 +7795,14 @@ var Poll = function Poll(_ref) {
|
|
|
7818
7795
|
);
|
|
7819
7796
|
})
|
|
7820
7797
|
),
|
|
7821
|
-
showAnswer && React__default
|
|
7798
|
+
showAnswer && React__default.createElement(
|
|
7822
7799
|
'h4',
|
|
7823
7800
|
{ className: 'text-center small p-3' },
|
|
7824
7801
|
'Total Votes: ',
|
|
7825
7802
|
choicesTotalCount
|
|
7826
7803
|
),
|
|
7827
|
-
showAnswer && response && React__default
|
|
7828
|
-
React__default
|
|
7804
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7805
|
+
React__default.createElement(
|
|
7829
7806
|
'style',
|
|
7830
7807
|
{ jsx: 'true' },
|
|
7831
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 '
|
|
@@ -7833,7 +7810,7 @@ var Poll = function Poll(_ref) {
|
|
|
7833
7810
|
);
|
|
7834
7811
|
};
|
|
7835
7812
|
|
|
7836
|
-
var numberOfPaginations = main.
|
|
7813
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7837
7814
|
|
|
7838
7815
|
var Quiz = function Quiz(_ref) {
|
|
7839
7816
|
var quizzes = _ref.quizzes,
|
|
@@ -7951,34 +7928,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7951
7928
|
};
|
|
7952
7929
|
|
|
7953
7930
|
var renderPagination = function renderPagination() {
|
|
7954
|
-
return React__default
|
|
7955
|
-
|
|
7956
|
-
{ className: 'p-0 m-0', size: main.
|
|
7957
|
-
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() {
|
|
7958
7935
|
return changePage('first');
|
|
7959
7936
|
}, disabled: currentPage === 1 }),
|
|
7960
|
-
React__default
|
|
7937
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7961
7938
|
return changePage('prev');
|
|
7962
7939
|
}, disabled: currentPage === 1 }),
|
|
7963
|
-
React__default
|
|
7940
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7964
7941
|
return renderNewPages('prev');
|
|
7965
7942
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7966
7943
|
pages.map(function (page) {
|
|
7967
|
-
return React__default
|
|
7968
|
-
|
|
7944
|
+
return React__default.createElement(
|
|
7945
|
+
Pagination.Item,
|
|
7969
7946
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7970
7947
|
return changePage(page);
|
|
7971
7948
|
} },
|
|
7972
7949
|
page
|
|
7973
7950
|
);
|
|
7974
7951
|
}),
|
|
7975
|
-
React__default
|
|
7952
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7976
7953
|
return renderNewPages('next');
|
|
7977
7954
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7978
|
-
React__default
|
|
7955
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7979
7956
|
return changePage('next');
|
|
7980
7957
|
}, disabled: currentPage === pageCount }),
|
|
7981
|
-
React__default
|
|
7958
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7982
7959
|
return changePage('last');
|
|
7983
7960
|
}, disabled: currentPage === pageCount })
|
|
7984
7961
|
);
|
|
@@ -8061,51 +8038,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8061
8038
|
}
|
|
8062
8039
|
};
|
|
8063
8040
|
|
|
8064
|
-
return React__default
|
|
8065
|
-
React__default
|
|
8041
|
+
return React__default.createElement(
|
|
8042
|
+
React__default.Fragment,
|
|
8066
8043
|
null,
|
|
8067
|
-
quizzes[currentPage - 1] && React__default
|
|
8068
|
-
React__default
|
|
8044
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8045
|
+
React__default.Fragment,
|
|
8069
8046
|
null,
|
|
8070
|
-
React__default
|
|
8071
|
-
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(
|
|
8072
8049
|
'form',
|
|
8073
8050
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8074
8051
|
return e.preventDefault();
|
|
8075
8052
|
} },
|
|
8076
8053
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8077
|
-
return React__default
|
|
8054
|
+
return React__default.createElement(
|
|
8078
8055
|
'div',
|
|
8079
8056
|
{ key: answer._key },
|
|
8080
|
-
React__default
|
|
8057
|
+
React__default.createElement(
|
|
8081
8058
|
'label',
|
|
8082
8059
|
{ className: 'pl-2' },
|
|
8083
|
-
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 }),
|
|
8084
8061
|
' ' + answer.answerText
|
|
8085
8062
|
)
|
|
8086
8063
|
);
|
|
8087
8064
|
})
|
|
8088
8065
|
)
|
|
8089
8066
|
),
|
|
8090
|
-
!showAnswer && React__default
|
|
8091
|
-
|
|
8067
|
+
!showAnswer && React__default.createElement(
|
|
8068
|
+
Button,
|
|
8092
8069
|
{ onClick: function onClick() {
|
|
8093
8070
|
return checkAnswers();
|
|
8094
8071
|
}, variant: 'info', block: true },
|
|
8095
8072
|
'Please click here for answer'
|
|
8096
8073
|
),
|
|
8097
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
8098
|
-
React__default
|
|
8074
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8075
|
+
React__default.Fragment,
|
|
8099
8076
|
null,
|
|
8100
|
-
React__default
|
|
8077
|
+
React__default.createElement(
|
|
8101
8078
|
'h4',
|
|
8102
8079
|
null,
|
|
8103
8080
|
'Answer:'
|
|
8104
8081
|
),
|
|
8105
|
-
quizzes[currentPage - 1].answer && React__default
|
|
8082
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8106
8083
|
),
|
|
8107
|
-
React__default
|
|
8108
|
-
pageCount > 1 && React__default
|
|
8084
|
+
React__default.createElement('br', null),
|
|
8085
|
+
pageCount > 1 && React__default.createElement(
|
|
8109
8086
|
'div',
|
|
8110
8087
|
{ className: 'd-flex justify-content-center' },
|
|
8111
8088
|
renderPagination()
|
|
@@ -8116,14 +8093,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
8116
8093
|
var Leads = function Leads(_ref) {
|
|
8117
8094
|
var url = _ref.url;
|
|
8118
8095
|
|
|
8119
|
-
return React__default
|
|
8096
|
+
return React__default.createElement(
|
|
8120
8097
|
'div',
|
|
8121
8098
|
{ className: 'd-block text-center mb-3' },
|
|
8122
|
-
url && React__default
|
|
8099
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8123
8100
|
);
|
|
8124
8101
|
};
|
|
8125
8102
|
|
|
8126
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8103
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8127
8104
|
var slides = _ref.node.slides,
|
|
8128
8105
|
client = _ref.client,
|
|
8129
8106
|
pageview = _ref.pageview,
|
|
@@ -8135,8 +8112,8 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8135
8112
|
|
|
8136
8113
|
var _useState = React.useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8137
8114
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
8138
|
-
carouselIndex = _useState2[0]
|
|
8139
|
-
_useState2[1];
|
|
8115
|
+
carouselIndex = _useState2[0],
|
|
8116
|
+
setCarouselIndex = _useState2[1];
|
|
8140
8117
|
|
|
8141
8118
|
// useEffect(() => {
|
|
8142
8119
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8162,49 +8139,49 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8162
8139
|
}
|
|
8163
8140
|
};
|
|
8164
8141
|
|
|
8165
|
-
return React__default
|
|
8142
|
+
return React__default.createElement(
|
|
8166
8143
|
'div',
|
|
8167
8144
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8168
|
-
React__default
|
|
8145
|
+
React__default.createElement(
|
|
8169
8146
|
reactBootstrap.Carousel,
|
|
8170
8147
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8171
8148
|
slides && slides.map(function (slide) {
|
|
8172
8149
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8173
|
-
return React__default
|
|
8150
|
+
return React__default.createElement(
|
|
8174
8151
|
reactBootstrap.Carousel.Item,
|
|
8175
8152
|
{ key: slide._key },
|
|
8176
|
-
React__default
|
|
8153
|
+
React__default.createElement(
|
|
8177
8154
|
'a',
|
|
8178
8155
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8179
|
-
React__default
|
|
8156
|
+
React__default.createElement(
|
|
8180
8157
|
index$2.LazyLoad,
|
|
8181
8158
|
null,
|
|
8182
|
-
React__default
|
|
8159
|
+
React__default.createElement(
|
|
8183
8160
|
'picture',
|
|
8184
8161
|
null,
|
|
8185
|
-
React__default
|
|
8186
|
-
React__default
|
|
8187
|
-
React__default
|
|
8188
|
-
React__default
|
|
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', style: { width: '100%' } })
|
|
8189
8166
|
)
|
|
8190
8167
|
)
|
|
8191
8168
|
),
|
|
8192
|
-
React__default
|
|
8169
|
+
React__default.createElement(
|
|
8193
8170
|
'div',
|
|
8194
8171
|
{ className: 'p-2' },
|
|
8195
|
-
slide.slideshowImage.caption && React__default
|
|
8172
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8196
8173
|
'h3',
|
|
8197
8174
|
{ style: { padding: '0px' } },
|
|
8198
8175
|
slide.slideshowImage.caption
|
|
8199
8176
|
),
|
|
8200
|
-
slide.description && React__default
|
|
8177
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8201
8178
|
)
|
|
8202
8179
|
);
|
|
8203
8180
|
}
|
|
8204
8181
|
return null;
|
|
8205
8182
|
})
|
|
8206
8183
|
),
|
|
8207
|
-
React__default
|
|
8184
|
+
React__default.createElement(
|
|
8208
8185
|
'style',
|
|
8209
8186
|
{ jsx: 'true' },
|
|
8210
8187
|
'\n .carousel-indicators {\n bottom: -2.5rem !important;\n }\n .carousel-indicators li {\n width: 20px;\n height: 20px;\n border-radius: 50% !important;\n background-color: var(--secondary);\n }\n .carousel-control-prev {\n justify-content: flex-start;\n }\n .carousel-control-next {\n justify-content: flex-end;\n }\n '
|
|
@@ -8223,10 +8200,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8223
8200
|
sizes = _props$node.sizes,
|
|
8224
8201
|
sizeMapping = _props$node.sizeMapping;
|
|
8225
8202
|
|
|
8226
|
-
return React__default
|
|
8203
|
+
return React__default.createElement(
|
|
8227
8204
|
'div',
|
|
8228
8205
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8229
|
-
React__default
|
|
8206
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8230
8207
|
);
|
|
8231
8208
|
};
|
|
8232
8209
|
|
|
@@ -8237,15 +8214,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8237
8214
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8238
8215
|
|
|
8239
8216
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8240
|
-
return React__default
|
|
8217
|
+
return React__default.createElement(
|
|
8241
8218
|
'section',
|
|
8242
8219
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8243
|
-
Caption && React__default
|
|
8220
|
+
Caption && React__default.createElement(
|
|
8244
8221
|
'h4',
|
|
8245
8222
|
{ className: 'formstack-caption' },
|
|
8246
8223
|
Caption
|
|
8247
8224
|
),
|
|
8248
|
-
React__default
|
|
8225
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8249
8226
|
);
|
|
8250
8227
|
};
|
|
8251
8228
|
|
|
@@ -8261,36 +8238,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8261
8238
|
}
|
|
8262
8239
|
});
|
|
8263
8240
|
if (medias && medias.length > 0) {
|
|
8264
|
-
return React__default
|
|
8241
|
+
return React__default.createElement(
|
|
8265
8242
|
'div',
|
|
8266
8243
|
{ className: 'multi-media-container' },
|
|
8267
|
-
React__default
|
|
8268
|
-
|
|
8244
|
+
React__default.createElement(
|
|
8245
|
+
Row,
|
|
8269
8246
|
{ noGutters: true },
|
|
8270
8247
|
medias.map(function (media) {
|
|
8271
|
-
return React__default
|
|
8272
|
-
|
|
8248
|
+
return React__default.createElement(
|
|
8249
|
+
Col,
|
|
8273
8250
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8274
|
-
React__default
|
|
8251
|
+
React__default.createElement(
|
|
8275
8252
|
'a',
|
|
8276
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8253
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8277
8254
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8278
|
-
React__default
|
|
8255
|
+
React__default.createElement(
|
|
8279
8256
|
'div',
|
|
8280
8257
|
{ className: 'multi-media-image-container' },
|
|
8281
|
-
imageBox && React__default
|
|
8258
|
+
imageBox && React__default.createElement(
|
|
8282
8259
|
index$2.LazyLoad,
|
|
8283
8260
|
{ once: true },
|
|
8284
|
-
React__default
|
|
8261
|
+
React__default.createElement(
|
|
8285
8262
|
'picture',
|
|
8286
8263
|
null,
|
|
8287
|
-
React__default
|
|
8288
|
-
React__default
|
|
8289
|
-
React__default
|
|
8290
|
-
React__default
|
|
8264
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8265
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8266
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8267
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8291
8268
|
)
|
|
8292
8269
|
),
|
|
8293
|
-
media.caption && React__default
|
|
8270
|
+
media.caption && React__default.createElement(
|
|
8294
8271
|
'span',
|
|
8295
8272
|
{ className: 'multi-media-caption' },
|
|
8296
8273
|
media.caption
|
|
@@ -8300,7 +8277,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8300
8277
|
);
|
|
8301
8278
|
})
|
|
8302
8279
|
),
|
|
8303
|
-
React__default
|
|
8280
|
+
React__default.createElement(
|
|
8304
8281
|
'style',
|
|
8305
8282
|
{ jsx: 'true' },
|
|
8306
8283
|
'\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 '
|
|
@@ -8311,12 +8288,12 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8311
8288
|
};
|
|
8312
8289
|
|
|
8313
8290
|
var InscreenSensor = function (_React$Component) {
|
|
8314
|
-
inherits._inherits(InscreenSensor, _React$Component);
|
|
8291
|
+
inherits$1._inherits(InscreenSensor, _React$Component);
|
|
8315
8292
|
|
|
8316
8293
|
function InscreenSensor(props) {
|
|
8317
|
-
inherits._classCallCheck(this, InscreenSensor);
|
|
8294
|
+
inherits$1._classCallCheck(this, InscreenSensor);
|
|
8318
8295
|
|
|
8319
|
-
var _this = inherits._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8296
|
+
var _this = inherits$1._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$1._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8320
8297
|
|
|
8321
8298
|
_this.scrollHandler = function () {
|
|
8322
8299
|
var visible = _this.checkInside();
|
|
@@ -8347,12 +8324,12 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8347
8324
|
}
|
|
8348
8325
|
};
|
|
8349
8326
|
|
|
8350
|
-
_this.wraperRef = React__default
|
|
8327
|
+
_this.wraperRef = React__default.createRef();
|
|
8351
8328
|
_this.visible = false;
|
|
8352
8329
|
return _this;
|
|
8353
8330
|
}
|
|
8354
8331
|
|
|
8355
|
-
inherits._createClass(InscreenSensor, [{
|
|
8332
|
+
inherits$1._createClass(InscreenSensor, [{
|
|
8356
8333
|
key: 'componentDidMount',
|
|
8357
8334
|
value: function componentDidMount() {
|
|
8358
8335
|
this.visible = this.checkInside();
|
|
@@ -8375,7 +8352,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8375
8352
|
_props$id = _props.id,
|
|
8376
8353
|
id = _props$id === undefined ? '' : _props$id;
|
|
8377
8354
|
|
|
8378
|
-
return React__default
|
|
8355
|
+
return React__default.createElement(
|
|
8379
8356
|
'div',
|
|
8380
8357
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8381
8358
|
this.props.children
|
|
@@ -8384,7 +8361,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8384
8361
|
}]);
|
|
8385
8362
|
|
|
8386
8363
|
return InscreenSensor;
|
|
8387
|
-
}(React__default
|
|
8364
|
+
}(React__default.Component);
|
|
8388
8365
|
|
|
8389
8366
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8390
8367
|
var nodes = _ref.nodes,
|
|
@@ -8493,33 +8470,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8493
8470
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8494
8471
|
var showReading = show ? 'showReading' : '';
|
|
8495
8472
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8496
|
-
return React__default
|
|
8473
|
+
return React__default.createElement(
|
|
8497
8474
|
'div',
|
|
8498
8475
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8499
|
-
React__default
|
|
8476
|
+
React__default.createElement(
|
|
8500
8477
|
'a',
|
|
8501
8478
|
{ onClick: function onClick(e) {
|
|
8502
8479
|
return articleCardClickHandler(e);
|
|
8503
8480
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8504
|
-
React__default
|
|
8481
|
+
React__default.createElement(
|
|
8505
8482
|
'div',
|
|
8506
8483
|
{ className: 'prevNext-thumbnail' },
|
|
8507
|
-
React__default
|
|
8508
|
-
React__default
|
|
8484
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8485
|
+
React__default.createElement(
|
|
8509
8486
|
'div',
|
|
8510
8487
|
{ className: 'prevNext-reading ' + showReading },
|
|
8511
8488
|
articleLabel
|
|
8512
8489
|
)
|
|
8513
8490
|
),
|
|
8514
|
-
React__default
|
|
8491
|
+
React__default.createElement(
|
|
8515
8492
|
'div',
|
|
8516
8493
|
{ className: 'prevNext-summary' },
|
|
8517
|
-
React__default
|
|
8494
|
+
React__default.createElement(
|
|
8518
8495
|
'div',
|
|
8519
8496
|
{ className: 'prevNext-publishDate' },
|
|
8520
8497
|
moment.moment(article.published).format('LL')
|
|
8521
8498
|
),
|
|
8522
|
-
React__default
|
|
8499
|
+
React__default.createElement(
|
|
8523
8500
|
'h2',
|
|
8524
8501
|
{ className: 'prevNext-title' },
|
|
8525
8502
|
article.title
|
|
@@ -8568,7 +8545,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8568
8545
|
|
|
8569
8546
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8570
8547
|
if (biography) {
|
|
8571
|
-
return React__default
|
|
8548
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8572
8549
|
}
|
|
8573
8550
|
};
|
|
8574
8551
|
|
|
@@ -8654,7 +8631,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8654
8631
|
//console.log('useLayoutEffect')
|
|
8655
8632
|
if (!firstLoad) {
|
|
8656
8633
|
setUpArrowClicked(false);
|
|
8657
|
-
if (main.
|
|
8634
|
+
if (main.main_36) {
|
|
8658
8635
|
grabLoadedAds();
|
|
8659
8636
|
} else {
|
|
8660
8637
|
scrollToArticle();
|
|
@@ -8678,7 +8655,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8678
8655
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8679
8656
|
if (pageview) pageview(path);
|
|
8680
8657
|
|
|
8681
|
-
if (!main.
|
|
8658
|
+
if (!main.main_36) {
|
|
8682
8659
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8683
8660
|
if (window.googletag && googletag.pubadsReady) {
|
|
8684
8661
|
index.lib_3.refresh();
|
|
@@ -8686,7 +8663,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8686
8663
|
});
|
|
8687
8664
|
}
|
|
8688
8665
|
//Refresh leaderboard ad on mobile
|
|
8689
|
-
if (main.
|
|
8666
|
+
if (main.main_36) {
|
|
8690
8667
|
var leaderboardSlotId = '';
|
|
8691
8668
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8692
8669
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8726,38 +8703,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8726
8703
|
setSensorVisible(false);
|
|
8727
8704
|
};
|
|
8728
8705
|
|
|
8729
|
-
return React__default
|
|
8730
|
-
React__default
|
|
8706
|
+
return React__default.createElement(
|
|
8707
|
+
React__default.Fragment,
|
|
8731
8708
|
null,
|
|
8732
|
-
React__default
|
|
8709
|
+
React__default.createElement(
|
|
8733
8710
|
'div',
|
|
8734
8711
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8735
|
-
React__default
|
|
8712
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8736
8713
|
return handleArrowClick();
|
|
8737
8714
|
} })
|
|
8738
8715
|
),
|
|
8739
|
-
React__default
|
|
8740
|
-
React__default
|
|
8716
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8717
|
+
React__default.createElement(
|
|
8741
8718
|
'div',
|
|
8742
8719
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8743
|
-
React__default
|
|
8720
|
+
React__default.createElement(
|
|
8744
8721
|
'h5',
|
|
8745
8722
|
{ className: 'objective-title' },
|
|
8746
8723
|
nodes.seriesTitle
|
|
8747
8724
|
),
|
|
8748
|
-
React__default
|
|
8725
|
+
React__default.createElement(
|
|
8749
8726
|
'div',
|
|
8750
8727
|
{ className: 'prevNextWrapper' },
|
|
8751
8728
|
PrevNextCards(false, -1)
|
|
8752
8729
|
)
|
|
8753
8730
|
),
|
|
8754
|
-
React__default
|
|
8755
|
-
React__default
|
|
8731
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8732
|
+
React__default.createElement(
|
|
8756
8733
|
'div',
|
|
8757
8734
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8758
|
-
main.
|
|
8735
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8759
8736
|
if (index === 0) {
|
|
8760
|
-
return React__default
|
|
8737
|
+
return React__default.createElement(
|
|
8761
8738
|
'div',
|
|
8762
8739
|
{
|
|
8763
8740
|
key: 'addid-1',
|
|
@@ -8777,14 +8754,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8777
8754
|
}
|
|
8778
8755
|
})
|
|
8779
8756
|
),
|
|
8780
|
-
React__default
|
|
8757
|
+
React__default.createElement(
|
|
8781
8758
|
'div',
|
|
8782
8759
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8783
8760
|
Articles.map(function (article, index) {
|
|
8784
|
-
return React__default
|
|
8761
|
+
return React__default.createElement(
|
|
8785
8762
|
'div',
|
|
8786
8763
|
{ key: article.title },
|
|
8787
|
-
React__default
|
|
8764
|
+
React__default.createElement(
|
|
8788
8765
|
InscreenSensor,
|
|
8789
8766
|
{
|
|
8790
8767
|
visible: sensorVisible,
|
|
@@ -8802,84 +8779,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8802
8779
|
}
|
|
8803
8780
|
}
|
|
8804
8781
|
} },
|
|
8805
|
-
React__default
|
|
8806
|
-
|
|
8782
|
+
React__default.createElement(
|
|
8783
|
+
Head,
|
|
8807
8784
|
null,
|
|
8808
|
-
currentTitle !== null && React__default
|
|
8785
|
+
currentTitle !== null && React__default.createElement(
|
|
8809
8786
|
'title',
|
|
8810
8787
|
{ key: 'title' },
|
|
8811
8788
|
currentTitle
|
|
8812
8789
|
),
|
|
8813
|
-
currentSummary !== null && React__default
|
|
8814
|
-
currentURL !== null && React__default
|
|
8815
|
-
currentTitle !== null && React__default
|
|
8816
|
-
currentThumbnail !== null && React__default
|
|
8817
|
-
currentSummary !== null && React__default
|
|
8818
|
-
currentTitle !== null && React__default
|
|
8819
|
-
currentThumbnail !== null && React__default
|
|
8820
|
-
currentSummary !== null && React__default
|
|
8790
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8791
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8792
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8793
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8794
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8795
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8796
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8797
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8821
8798
|
),
|
|
8822
|
-
React__default
|
|
8799
|
+
React__default.createElement(
|
|
8823
8800
|
'article',
|
|
8824
8801
|
{ className: 'article-wrapper' },
|
|
8825
|
-
React__default
|
|
8802
|
+
React__default.createElement(
|
|
8826
8803
|
'div',
|
|
8827
8804
|
{ className: 'article-publishDate' },
|
|
8828
8805
|
moment.moment(article.published).format('LL')
|
|
8829
8806
|
),
|
|
8830
|
-
React__default
|
|
8807
|
+
React__default.createElement(
|
|
8831
8808
|
'div',
|
|
8832
8809
|
{ className: 'author-details-wrapper' },
|
|
8833
8810
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8834
|
-
return React__default
|
|
8811
|
+
return React__default.createElement(
|
|
8835
8812
|
'span',
|
|
8836
8813
|
{ key: index },
|
|
8837
8814
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8838
8815
|
);
|
|
8839
8816
|
})
|
|
8840
8817
|
),
|
|
8841
|
-
React__default
|
|
8818
|
+
React__default.createElement(
|
|
8842
8819
|
'h2',
|
|
8843
8820
|
{ className: 'article-title' },
|
|
8844
8821
|
article.title
|
|
8845
8822
|
),
|
|
8846
|
-
React__default
|
|
8823
|
+
React__default.createElement(
|
|
8847
8824
|
'div',
|
|
8848
8825
|
{ className: 'mt-2 mb-2' },
|
|
8849
|
-
React__default
|
|
8826
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8850
8827
|
serializers: getSerializers,
|
|
8851
8828
|
videoAccountIDs: accountIDs,
|
|
8852
8829
|
blocks: article.text,
|
|
8853
8830
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8854
8831
|
}, client.config())),
|
|
8855
|
-
React__default
|
|
8832
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8856
8833
|
),
|
|
8857
|
-
Articles.length > 1 && React__default
|
|
8858
|
-
React__default
|
|
8834
|
+
Articles.length > 1 && React__default.createElement(
|
|
8835
|
+
React__default.Fragment,
|
|
8859
8836
|
null,
|
|
8860
|
-
React__default
|
|
8837
|
+
React__default.createElement(
|
|
8861
8838
|
'div',
|
|
8862
8839
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8863
|
-
React__default
|
|
8840
|
+
React__default.createElement(
|
|
8864
8841
|
'h5',
|
|
8865
8842
|
{ className: 'objective-title' },
|
|
8866
8843
|
nodes.seriesTitle
|
|
8867
8844
|
),
|
|
8868
|
-
React__default
|
|
8845
|
+
React__default.createElement(
|
|
8869
8846
|
'div',
|
|
8870
8847
|
{ className: 'prevNextWrapper' },
|
|
8871
8848
|
PrevNextCards(true, index)
|
|
8872
8849
|
)
|
|
8873
8850
|
),
|
|
8874
|
-
React__default
|
|
8851
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8875
8852
|
)
|
|
8876
8853
|
),
|
|
8877
|
-
React__default
|
|
8854
|
+
React__default.createElement(
|
|
8878
8855
|
'div',
|
|
8879
8856
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8880
|
-
main.
|
|
8857
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8881
8858
|
if (innerIndex === 0) {
|
|
8882
|
-
return React__default
|
|
8859
|
+
return React__default.createElement(
|
|
8883
8860
|
'div',
|
|
8884
8861
|
{
|
|
8885
8862
|
key: 'addid-' + (index + 2),
|
|
@@ -8902,7 +8879,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8902
8879
|
)
|
|
8903
8880
|
);
|
|
8904
8881
|
}),
|
|
8905
|
-
React__default
|
|
8882
|
+
React__default.createElement(
|
|
8906
8883
|
'style',
|
|
8907
8884
|
{ jsx: 'true' },
|
|
8908
8885
|
'\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 '
|
|
@@ -8932,11 +8909,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8932
8909
|
};
|
|
8933
8910
|
}, [handleClickOutside]);
|
|
8934
8911
|
|
|
8935
|
-
return React__default
|
|
8912
|
+
return React__default.createElement(
|
|
8936
8913
|
'div',
|
|
8937
8914
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8938
|
-
React__default
|
|
8939
|
-
React__default
|
|
8915
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8916
|
+
React__default.createElement(
|
|
8940
8917
|
'style',
|
|
8941
8918
|
{ jsx: 'true' },
|
|
8942
8919
|
'\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 '
|
|
@@ -8950,7 +8927,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8950
8927
|
}
|
|
8951
8928
|
};
|
|
8952
8929
|
|
|
8953
|
-
var FigureImage
|
|
8930
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8954
8931
|
var node = _ref2.node,
|
|
8955
8932
|
client = _ref2.client,
|
|
8956
8933
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8958,13 +8935,13 @@ var FigureImage$1 = React__default['default'].memo(function (_ref2) {
|
|
|
8958
8935
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8959
8936
|
|
|
8960
8937
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8961
|
-
return React__default
|
|
8938
|
+
return React__default.createElement(
|
|
8962
8939
|
'picture',
|
|
8963
8940
|
null,
|
|
8964
|
-
React__default
|
|
8965
|
-
React__default
|
|
8966
|
-
React__default
|
|
8967
|
-
React__default
|
|
8941
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8942
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8943
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8944
|
+
React__default.createElement('img', _extends$1._extends({
|
|
8968
8945
|
style: figureImageStyle,
|
|
8969
8946
|
className: 'figure-image',
|
|
8970
8947
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9052,13 +9029,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9052
9029
|
|
|
9053
9030
|
var FigureCaption = React.useCallback(function () {
|
|
9054
9031
|
if (imgcaption && imgcaption.length > 0) {
|
|
9055
|
-
return React__default
|
|
9032
|
+
return React__default.createElement(
|
|
9056
9033
|
'div',
|
|
9057
9034
|
{ className: 'figure-caption' },
|
|
9058
|
-
React__default
|
|
9035
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9059
9036
|
);
|
|
9060
9037
|
} else if (caption) {
|
|
9061
|
-
return React__default
|
|
9038
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9062
9039
|
} else return null;
|
|
9063
9040
|
}, [caption, imgcaption]);
|
|
9064
9041
|
|
|
@@ -9075,24 +9052,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9075
9052
|
setShowLightbox(true);
|
|
9076
9053
|
}, [node, client]);
|
|
9077
9054
|
|
|
9078
|
-
return React__default
|
|
9079
|
-
React__default
|
|
9055
|
+
return React__default.createElement(
|
|
9056
|
+
React__default.Fragment,
|
|
9080
9057
|
null,
|
|
9081
|
-
React__default
|
|
9082
|
-
|
|
9058
|
+
React__default.createElement(
|
|
9059
|
+
Figure$1,
|
|
9083
9060
|
{ className: '' + class_name, style: figureStyle },
|
|
9084
|
-
link ? React__default
|
|
9061
|
+
link ? React__default.createElement(
|
|
9085
9062
|
'a',
|
|
9086
9063
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9087
|
-
React__default
|
|
9088
|
-
React__default
|
|
9089
|
-
) : React__default
|
|
9090
|
-
React__default
|
|
9064
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9065
|
+
React__default.createElement(FigureCaption, null)
|
|
9066
|
+
) : React__default.createElement(
|
|
9067
|
+
React__default.Fragment,
|
|
9091
9068
|
null,
|
|
9092
|
-
React__default
|
|
9093
|
-
React__default
|
|
9069
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9070
|
+
React__default.createElement(FigureCaption, null)
|
|
9094
9071
|
),
|
|
9095
|
-
React__default
|
|
9072
|
+
React__default.createElement(LightBox, {
|
|
9096
9073
|
showLightbox: showLightbox,
|
|
9097
9074
|
lightboxImgSrc: lightboxImgSrc,
|
|
9098
9075
|
closeLightbox: function closeLightbox() {
|
|
@@ -9101,7 +9078,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9101
9078
|
}
|
|
9102
9079
|
})
|
|
9103
9080
|
),
|
|
9104
|
-
React__default
|
|
9081
|
+
React__default.createElement(
|
|
9105
9082
|
'style',
|
|
9106
9083
|
{ jsx: 'true' },
|
|
9107
9084
|
'\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 '
|
|
@@ -9109,7 +9086,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9109
9086
|
);
|
|
9110
9087
|
};
|
|
9111
9088
|
|
|
9112
|
-
var Figure = React__default
|
|
9089
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9113
9090
|
|
|
9114
9091
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9115
9092
|
React.useEffect(function () {
|
|
@@ -9126,7 +9103,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9126
9103
|
}, [ref]);
|
|
9127
9104
|
}
|
|
9128
9105
|
|
|
9129
|
-
var FigureImage = React__default
|
|
9106
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9130
9107
|
var imagesCount = _ref.imagesCount,
|
|
9131
9108
|
image = _ref.image,
|
|
9132
9109
|
client = _ref.client,
|
|
@@ -9134,13 +9111,13 @@ var FigureImage = React__default['default'].memo(function (_ref) {
|
|
|
9134
9111
|
link = _ref.link,
|
|
9135
9112
|
handleClickFigure = _ref.handleClickFigure;
|
|
9136
9113
|
|
|
9137
|
-
return React__default
|
|
9114
|
+
return React__default.createElement(
|
|
9138
9115
|
'picture',
|
|
9139
9116
|
null,
|
|
9140
|
-
React__default
|
|
9141
|
-
React__default
|
|
9142
|
-
React__default
|
|
9143
|
-
React__default
|
|
9117
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9118
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9119
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9120
|
+
React__default.createElement('img', _extends$1._extends({
|
|
9144
9121
|
'images-count': imagesCount,
|
|
9145
9122
|
className: 'multi-figure-image',
|
|
9146
9123
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9177,13 +9154,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9177
9154
|
imgcaption = _ref2.imgcaption;
|
|
9178
9155
|
|
|
9179
9156
|
if (imgcaption && imgcaption.length > 0) {
|
|
9180
|
-
return React__default
|
|
9157
|
+
return React__default.createElement(
|
|
9181
9158
|
'div',
|
|
9182
9159
|
{ className: 'multi-figure-caption' },
|
|
9183
|
-
React__default
|
|
9160
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9184
9161
|
);
|
|
9185
9162
|
} else if (caption) {
|
|
9186
|
-
return React__default
|
|
9163
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9187
9164
|
} else return null;
|
|
9188
9165
|
};
|
|
9189
9166
|
|
|
@@ -9193,48 +9170,48 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9193
9170
|
}, [client]);
|
|
9194
9171
|
|
|
9195
9172
|
if (images && images.length > 0) {
|
|
9196
|
-
return React__default
|
|
9173
|
+
return React__default.createElement(
|
|
9197
9174
|
'div',
|
|
9198
9175
|
{ className: 'multi-figure-container' },
|
|
9199
|
-
React__default
|
|
9200
|
-
|
|
9176
|
+
React__default.createElement(
|
|
9177
|
+
Row,
|
|
9201
9178
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9202
9179
|
images.map(function (image, index) {
|
|
9203
|
-
return React__default
|
|
9204
|
-
|
|
9180
|
+
return React__default.createElement(
|
|
9181
|
+
Col,
|
|
9205
9182
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9206
|
-
image.link ? React__default
|
|
9183
|
+
image.link ? React__default.createElement(
|
|
9207
9184
|
'a',
|
|
9208
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9209
|
-
React__default
|
|
9185
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9186
|
+
React__default.createElement(
|
|
9210
9187
|
'div',
|
|
9211
9188
|
{ className: 'multi-figure-image-container' },
|
|
9212
|
-
React__default
|
|
9189
|
+
React__default.createElement(
|
|
9213
9190
|
index$2.LazyLoad,
|
|
9214
9191
|
{ once: true },
|
|
9215
|
-
React__default
|
|
9192
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9216
9193
|
),
|
|
9217
|
-
React__default
|
|
9194
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9218
9195
|
)
|
|
9219
|
-
) : React__default
|
|
9196
|
+
) : React__default.createElement(
|
|
9220
9197
|
'div',
|
|
9221
9198
|
{ className: 'multi-figure-image-container' },
|
|
9222
|
-
React__default
|
|
9199
|
+
React__default.createElement(
|
|
9223
9200
|
index$2.LazyLoad,
|
|
9224
9201
|
{ once: true },
|
|
9225
|
-
React__default
|
|
9202
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9226
9203
|
),
|
|
9227
|
-
React__default
|
|
9204
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9228
9205
|
)
|
|
9229
9206
|
);
|
|
9230
9207
|
})
|
|
9231
9208
|
),
|
|
9232
|
-
React__default
|
|
9209
|
+
React__default.createElement(
|
|
9233
9210
|
'div',
|
|
9234
9211
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9235
|
-
React__default
|
|
9212
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9236
9213
|
),
|
|
9237
|
-
React__default
|
|
9214
|
+
React__default.createElement(
|
|
9238
9215
|
'style',
|
|
9239
9216
|
{ jsx: 'true' },
|
|
9240
9217
|
'\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 '
|
|
@@ -9256,10 +9233,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9256
9233
|
|
|
9257
9234
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9258
9235
|
|
|
9259
|
-
return React__default
|
|
9236
|
+
return React__default.createElement(
|
|
9260
9237
|
'div',
|
|
9261
9238
|
{ id: elementId },
|
|
9262
|
-
React__default
|
|
9239
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
9263
9240
|
);
|
|
9264
9241
|
};
|
|
9265
9242
|
|
|
@@ -9288,7 +9265,7 @@ exports.__esModule = true;
|
|
|
9288
9265
|
|
|
9289
9266
|
|
|
9290
9267
|
|
|
9291
|
-
var _extends3 = _interopRequireDefault(_extends._extends$1);
|
|
9268
|
+
var _extends3 = _interopRequireDefault(_extends$1._extends$1);
|
|
9292
9269
|
|
|
9293
9270
|
|
|
9294
9271
|
|
|
@@ -9296,23 +9273,23 @@ var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
|
9296
9273
|
|
|
9297
9274
|
|
|
9298
9275
|
|
|
9299
|
-
var _classCallCheck3 = _interopRequireDefault(inherits.classCallCheck);
|
|
9276
|
+
var _classCallCheck3 = _interopRequireDefault(inherits$1.classCallCheck);
|
|
9300
9277
|
|
|
9301
9278
|
|
|
9302
9279
|
|
|
9303
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(inherits.possibleConstructorReturn);
|
|
9280
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(inherits$1.possibleConstructorReturn);
|
|
9304
9281
|
|
|
9305
9282
|
|
|
9306
9283
|
|
|
9307
|
-
var _inherits3 = _interopRequireDefault(inherits.inherits);
|
|
9284
|
+
var _inherits3 = _interopRequireDefault(inherits$1.inherits);
|
|
9308
9285
|
|
|
9309
9286
|
|
|
9310
9287
|
|
|
9311
|
-
var _react2 = _interopRequireDefault(React__default
|
|
9288
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9312
9289
|
|
|
9313
9290
|
|
|
9314
9291
|
|
|
9315
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default
|
|
9292
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default);
|
|
9316
9293
|
|
|
9317
9294
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9318
9295
|
var noop = function noop() {};
|
|
@@ -9457,9 +9434,9 @@ var ScriptTag = function (_Component) {
|
|
|
9457
9434
|
|
|
9458
9435
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9459
9436
|
// eslint-disable-next-line no-unused-vars
|
|
9460
|
-
var _props3 = this.props
|
|
9461
|
-
_props3.isHydrating
|
|
9462
|
-
|
|
9437
|
+
var _props3 = this.props,
|
|
9438
|
+
isHydrating = _props3.isHydrating,
|
|
9439
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9463
9440
|
|
|
9464
9441
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9465
9442
|
return _this2.domRef = tag;
|
|
@@ -9467,7 +9444,7 @@ var ScriptTag = function (_Component) {
|
|
|
9467
9444
|
};
|
|
9468
9445
|
|
|
9469
9446
|
return ScriptTag;
|
|
9470
|
-
}(React__default
|
|
9447
|
+
}(React__default.Component);
|
|
9471
9448
|
|
|
9472
9449
|
ScriptTag.propTypes = {
|
|
9473
9450
|
/**
|
|
@@ -9546,11 +9523,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9546
9523
|
}, []);
|
|
9547
9524
|
|
|
9548
9525
|
if (iframeSrc) {
|
|
9549
|
-
return React__default
|
|
9526
|
+
return React__default.createElement(
|
|
9550
9527
|
'section',
|
|
9551
9528
|
{ className: 'form-assembly' },
|
|
9552
|
-
React__default
|
|
9553
|
-
React__default
|
|
9529
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9530
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9554
9531
|
);
|
|
9555
9532
|
}
|
|
9556
9533
|
|
|
@@ -9587,27 +9564,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9587
9564
|
return window.removeEventListener('resize', handleResize);
|
|
9588
9565
|
};
|
|
9589
9566
|
}, []);
|
|
9590
|
-
return React__default
|
|
9567
|
+
return React__default.createElement(
|
|
9591
9568
|
'div',
|
|
9592
9569
|
{ className: 'blockTableHolder', ref: holder },
|
|
9593
|
-
React__default
|
|
9570
|
+
React__default.createElement(
|
|
9594
9571
|
'div',
|
|
9595
9572
|
{ className: 'blockTable' },
|
|
9596
9573
|
rows && rows.map(function (row) {
|
|
9597
|
-
return React__default
|
|
9574
|
+
return React__default.createElement(
|
|
9598
9575
|
'div',
|
|
9599
9576
|
{ className: 'blockTableRow' },
|
|
9600
9577
|
row.cells && row.cells.map(function (cell) {
|
|
9601
|
-
return React__default
|
|
9578
|
+
return React__default.createElement(
|
|
9602
9579
|
'div',
|
|
9603
9580
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9604
|
-
React__default
|
|
9581
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9605
9582
|
);
|
|
9606
9583
|
})
|
|
9607
9584
|
);
|
|
9608
9585
|
})
|
|
9609
9586
|
),
|
|
9610
|
-
React__default
|
|
9587
|
+
React__default.createElement(
|
|
9611
9588
|
'style',
|
|
9612
9589
|
{ jsx: true },
|
|
9613
9590
|
'\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 '
|
|
@@ -9686,12 +9663,12 @@ var getSerializers = function getSerializers() {
|
|
|
9686
9663
|
var node = _ref.node;
|
|
9687
9664
|
var url = node.url;
|
|
9688
9665
|
|
|
9689
|
-
return React__default
|
|
9666
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9690
9667
|
},
|
|
9691
9668
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9692
9669
|
var node = _ref2.node;
|
|
9693
9670
|
|
|
9694
|
-
return React__default
|
|
9671
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9695
9672
|
nodes: node,
|
|
9696
9673
|
article: article,
|
|
9697
9674
|
meta: meta,
|
|
@@ -9705,7 +9682,7 @@ var getSerializers = function getSerializers() {
|
|
|
9705
9682
|
articleSeries: function articleSeries(_ref3) {
|
|
9706
9683
|
var node = _ref3.node;
|
|
9707
9684
|
|
|
9708
|
-
return React__default
|
|
9685
|
+
return React__default.createElement(ArticleSeries, {
|
|
9709
9686
|
nodes: node,
|
|
9710
9687
|
accountIDs: videoAccountIDs || {},
|
|
9711
9688
|
pageview: pageview,
|
|
@@ -9718,61 +9695,61 @@ var getSerializers = function getSerializers() {
|
|
|
9718
9695
|
figure: function figure(_ref4) {
|
|
9719
9696
|
var node = _ref4.node;
|
|
9720
9697
|
|
|
9721
|
-
return React__default
|
|
9698
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9722
9699
|
},
|
|
9723
9700
|
multifigure: function multifigure(_ref5) {
|
|
9724
9701
|
var node = _ref5.node;
|
|
9725
9702
|
|
|
9726
|
-
return React__default
|
|
9703
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9727
9704
|
},
|
|
9728
9705
|
slideshow: function slideshow(_ref6) {
|
|
9729
9706
|
var node = _ref6.node;
|
|
9730
9707
|
var slides = node.slides;
|
|
9731
9708
|
|
|
9732
|
-
return React__default
|
|
9709
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9733
9710
|
},
|
|
9734
9711
|
sidebar: function sidebar(_ref7) {
|
|
9735
9712
|
var node = _ref7.node;
|
|
9736
9713
|
var caption = node.caption,
|
|
9737
9714
|
content = node.content;
|
|
9738
9715
|
|
|
9739
|
-
return React__default
|
|
9716
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9740
9717
|
},
|
|
9741
9718
|
datatable: function datatable(_ref8) {
|
|
9742
9719
|
var node = _ref8.node;
|
|
9743
9720
|
var table = node.table;
|
|
9744
9721
|
|
|
9745
|
-
return React__default
|
|
9722
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9746
9723
|
},
|
|
9747
9724
|
media: function media(_ref9) {
|
|
9748
9725
|
var node = _ref9.node;
|
|
9749
9726
|
|
|
9750
|
-
return React__default
|
|
9727
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9751
9728
|
},
|
|
9752
9729
|
iframe: function iframe(_ref10) {
|
|
9753
9730
|
var node = _ref10.node;
|
|
9754
9731
|
|
|
9755
|
-
return React__default
|
|
9732
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9756
9733
|
},
|
|
9757
9734
|
video: function video(_ref11) {
|
|
9758
9735
|
var node = _ref11.node;
|
|
9759
9736
|
|
|
9760
|
-
return React__default
|
|
9737
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9761
9738
|
},
|
|
9762
9739
|
audio: function audio(_ref12) {
|
|
9763
9740
|
var node = _ref12.node;
|
|
9764
9741
|
|
|
9765
|
-
return React__default
|
|
9742
|
+
return React__default.createElement(Audio, { node: node });
|
|
9766
9743
|
},
|
|
9767
9744
|
poll: function poll(_ref13) {
|
|
9768
9745
|
var node = _ref13.node;
|
|
9769
9746
|
|
|
9770
|
-
return React__default
|
|
9747
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9771
9748
|
},
|
|
9772
9749
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9773
9750
|
var node = _ref14.node;
|
|
9774
9751
|
|
|
9775
|
-
return React__default
|
|
9752
|
+
return React__default.createElement(Poll$1, {
|
|
9776
9753
|
node: node,
|
|
9777
9754
|
client: client,
|
|
9778
9755
|
pageview: pageview,
|
|
@@ -9786,35 +9763,35 @@ var getSerializers = function getSerializers() {
|
|
|
9786
9763
|
var node = _ref15.node;
|
|
9787
9764
|
var quizzes = node.quizzes;
|
|
9788
9765
|
|
|
9789
|
-
return React__default
|
|
9766
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9790
9767
|
},
|
|
9791
9768
|
leads: function leads(_ref16) {
|
|
9792
9769
|
var node = _ref16.node;
|
|
9793
9770
|
var leadID = node.leadID;
|
|
9794
9771
|
|
|
9795
9772
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9796
|
-
return React__default
|
|
9773
|
+
return React__default.createElement(Leads, { url: url });
|
|
9797
9774
|
},
|
|
9798
9775
|
slideshows: function slideshows(_ref17) {
|
|
9799
9776
|
var node = _ref17.node;
|
|
9800
9777
|
|
|
9801
|
-
return React__default
|
|
9778
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9802
9779
|
},
|
|
9803
9780
|
nativeAd: function nativeAd(_ref18) {
|
|
9804
9781
|
var node = _ref18.node;
|
|
9805
9782
|
|
|
9806
|
-
return React__default
|
|
9783
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9807
9784
|
},
|
|
9808
9785
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9809
9786
|
var node = _ref19.node;
|
|
9810
9787
|
|
|
9811
|
-
return React__default
|
|
9788
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9812
9789
|
},
|
|
9813
9790
|
hrtag: function hrtag() {
|
|
9814
|
-
return React__default
|
|
9791
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9815
9792
|
},
|
|
9816
9793
|
brtag: function brtag() {
|
|
9817
|
-
return React__default
|
|
9794
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9818
9795
|
},
|
|
9819
9796
|
formstack: function formstack(_ref20) {
|
|
9820
9797
|
var node = _ref20.node;
|
|
@@ -9822,29 +9799,29 @@ var getSerializers = function getSerializers() {
|
|
|
9822
9799
|
Caption = node.Caption,
|
|
9823
9800
|
needSegmentSupport = node.needSegmentSupport;
|
|
9824
9801
|
|
|
9825
|
-
return React__default
|
|
9802
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9826
9803
|
},
|
|
9827
9804
|
formassembly: FormAssembly,
|
|
9828
9805
|
multimedia: function multimedia(_ref21) {
|
|
9829
9806
|
var node = _ref21.node;
|
|
9830
9807
|
|
|
9831
|
-
return React__default
|
|
9808
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9832
9809
|
},
|
|
9833
9810
|
blockTable: function blockTable(_ref22) {
|
|
9834
9811
|
var node = _ref22.node;
|
|
9835
|
-
return React__default
|
|
9812
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9836
9813
|
}
|
|
9837
9814
|
},
|
|
9838
9815
|
marks: {
|
|
9839
9816
|
superscript: function superscript(props) {
|
|
9840
|
-
return React__default
|
|
9817
|
+
return React__default.createElement(
|
|
9841
9818
|
'sup',
|
|
9842
9819
|
null,
|
|
9843
9820
|
props.children
|
|
9844
9821
|
);
|
|
9845
9822
|
},
|
|
9846
9823
|
subscript: function subscript(props) {
|
|
9847
|
-
return React__default
|
|
9824
|
+
return React__default.createElement(
|
|
9848
9825
|
'sub',
|
|
9849
9826
|
null,
|
|
9850
9827
|
props.children
|
|
@@ -9860,7 +9837,7 @@ var getSerializers = function getSerializers() {
|
|
|
9860
9837
|
if (href && href.charAt(0) === '#') {
|
|
9861
9838
|
var elementId = href.slice(1);
|
|
9862
9839
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9863
|
-
return React__default
|
|
9840
|
+
return React__default.createElement(
|
|
9864
9841
|
'a',
|
|
9865
9842
|
{ onClick: function onClick() {
|
|
9866
9843
|
return ScrollToElement(elementId);
|
|
@@ -9870,7 +9847,7 @@ var getSerializers = function getSerializers() {
|
|
|
9870
9847
|
}
|
|
9871
9848
|
|
|
9872
9849
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9873
|
-
return React__default
|
|
9850
|
+
return React__default.createElement(
|
|
9874
9851
|
'a',
|
|
9875
9852
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9876
9853
|
children
|
|
@@ -9878,7 +9855,7 @@ var getSerializers = function getSerializers() {
|
|
|
9878
9855
|
},
|
|
9879
9856
|
alignleft: function alignleft(_ref23) {
|
|
9880
9857
|
var children = _ref23.children;
|
|
9881
|
-
return React__default
|
|
9858
|
+
return React__default.createElement(
|
|
9882
9859
|
'div',
|
|
9883
9860
|
{ style: { textAlign: 'left' } },
|
|
9884
9861
|
children
|
|
@@ -9886,7 +9863,7 @@ var getSerializers = function getSerializers() {
|
|
|
9886
9863
|
},
|
|
9887
9864
|
alignright: function alignright(_ref24) {
|
|
9888
9865
|
var children = _ref24.children;
|
|
9889
|
-
return React__default
|
|
9866
|
+
return React__default.createElement(
|
|
9890
9867
|
'div',
|
|
9891
9868
|
{ style: { textAlign: 'right' } },
|
|
9892
9869
|
children
|
|
@@ -9894,7 +9871,7 @@ var getSerializers = function getSerializers() {
|
|
|
9894
9871
|
},
|
|
9895
9872
|
aligncenter: function aligncenter(_ref25) {
|
|
9896
9873
|
var children = _ref25.children;
|
|
9897
|
-
return React__default
|
|
9874
|
+
return React__default.createElement(
|
|
9898
9875
|
'div',
|
|
9899
9876
|
{ style: { textAlign: 'center' } },
|
|
9900
9877
|
children
|
|
@@ -9902,7 +9879,7 @@ var getSerializers = function getSerializers() {
|
|
|
9902
9879
|
},
|
|
9903
9880
|
alignjustify: function alignjustify(_ref26) {
|
|
9904
9881
|
var children = _ref26.children;
|
|
9905
|
-
return React__default
|
|
9882
|
+
return React__default.createElement(
|
|
9906
9883
|
'div',
|
|
9907
9884
|
{ style: { textAlign: 'justify' } },
|
|
9908
9885
|
children
|
|
@@ -9912,7 +9889,7 @@ var getSerializers = function getSerializers() {
|
|
|
9912
9889
|
var children = props.children,
|
|
9913
9890
|
color = props.mark.color;
|
|
9914
9891
|
|
|
9915
|
-
return React__default
|
|
9892
|
+
return React__default.createElement(
|
|
9916
9893
|
'span',
|
|
9917
9894
|
{ style: { color: color ? color.hex : null } },
|
|
9918
9895
|
children
|