@mjhls/mjh-framework 1.0.833 → 1.0.834-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-8d621d3c.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-0e26bccb.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +35 -36
- package/dist/cjs/AdSlotsProvider.js +911 -20
- package/dist/cjs/AlgoliaSearch.js +1068 -1087
- package/dist/cjs/AlphabeticList.js +25 -26
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +58 -59
- 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 +185 -189
- 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 +71 -72
- 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 +94 -95
- 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 +107 -108
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +42 -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 +310 -310
- 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-1b636577.js → SeriesSlider-d16a5ae5.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-97dd19a5.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +59 -64
- package/dist/cjs/TaxonomyDescription.js +54 -55
- 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 +33 -34
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +50 -51
- package/dist/cjs/VideoSeriesListing.js +78 -79
- package/dist/cjs/View.js +346 -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 +44 -44
- 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-3fa73acd.js → index-a0bdcb69.js} +960 -983
- 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 +163 -167
- package/dist/cjs/{inherits-c2065b95.js → inherits-9953db94.js} +22 -22
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
- package/dist/cjs/urlFor.js +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-b566ce41.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-5eb7281d.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +27 -27
- package/dist/esm/AdSlotsProvider.js +909 -17
- package/dist/esm/AlgoliaSearch.js +718 -736
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +55 -55
- 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 +171 -171
- 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 +68 -68
- 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 +91 -91
- 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 +851 -839
- 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 +104 -104
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +39 -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 +275 -275
- 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-f9325e75.js → SeriesSlider-8dc17b11.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-db5ba548.js} +30 -30
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +54 -54
- package/dist/esm/TaxonomyDescription.js +49 -49
- 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 +330 -246
- 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-fc1c2e29.js} +32 -32
- 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 +44 -44
- 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-67e1773f.js → index-aaa2dae0.js} +2 -11
- package/dist/esm/{index-1654b705.js → index-d9cf292f.js} +923 -939
- 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 +136 -137
- 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 +110 -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,37 +1,37 @@
|
|
|
1
|
-
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
2
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-be2f7a22.js';
|
|
3
|
-
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
4
|
-
import urlFor from './urlFor.js';
|
|
5
|
-
import { l as lib_3 } from './index-2446af28.js';
|
|
6
|
-
import Router, { useRouter } from 'next/router';
|
|
7
|
-
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
2
|
+
import { _ as _export, a as _core } from './_to-object-a4107da3.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
4
|
+
import { _ as _extends$1, b as _extends$2 } from './extends-6f2fcc99.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-cf8dde54.js';
|
|
6
|
+
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
7
|
+
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
+
import { l as lib_3 } from './index-41a678ea.js';
|
|
9
|
+
import PropTypes from 'prop-types';
|
|
10
|
+
import Row$1 from 'react-bootstrap/Row';
|
|
11
|
+
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
13
|
+
import Router, { useRouter } from 'next/router';
|
|
14
|
+
import urlFor from './urlFor.js';
|
|
15
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
16
|
+
import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
|
|
17
|
+
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
12
19
|
import Segment from './Segment.js';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { _ as _typeof$1 } from './typeof-a286cf0c.js';
|
|
18
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-b43c695a.js';
|
|
20
|
+
import Beam from './Beam.js';
|
|
21
|
+
import DFPAdSlot from './AdSlot.js';
|
|
22
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
23
|
+
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
19
24
|
import GroupDeck from './GroupDeck.js';
|
|
20
|
-
import {
|
|
25
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
26
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
27
|
+
import { u as util } from './util-7700fc59.js';
|
|
28
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
29
|
+
import Head from 'next/head';
|
|
21
30
|
import SocialShare from './SocialShare.js';
|
|
22
|
-
import { _ as
|
|
23
|
-
import
|
|
24
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
25
|
-
import Pagination from 'react-bootstrap/Pagination';
|
|
31
|
+
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
32
|
+
import Pagination$1 from 'react-bootstrap/Pagination';
|
|
26
33
|
import Button$1 from 'react-bootstrap/Button';
|
|
27
|
-
import
|
|
28
|
-
import DFPAdSlot from './AdSlot.js';
|
|
29
|
-
import Row$1 from 'react-bootstrap/Row';
|
|
30
|
-
import Col$1 from 'react-bootstrap/Col';
|
|
31
|
-
import Head from 'next/head';
|
|
32
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-a41fe93f.js';
|
|
33
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
34
|
-
import Figure$2 from 'react-bootstrap/Figure';
|
|
34
|
+
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
35
35
|
|
|
36
36
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
37
37
|
var pageNumber = selectedIndex + 1;
|
|
@@ -39,7 +39,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
39
39
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
var Slideshow
|
|
42
|
+
var Slideshow = function Slideshow(_ref) {
|
|
43
43
|
var slides = _ref.slides,
|
|
44
44
|
client = _ref.client,
|
|
45
45
|
pageview = _ref.pageview;
|
|
@@ -66,20 +66,20 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
66
66
|
if (pageview) pageview(router.asPath);
|
|
67
67
|
}, [router]);
|
|
68
68
|
|
|
69
|
-
return
|
|
69
|
+
return React__default.createElement(
|
|
70
70
|
'div',
|
|
71
71
|
{ className: 'mt-3 mb-3' },
|
|
72
|
-
|
|
72
|
+
React__default.createElement(
|
|
73
73
|
Carousel,
|
|
74
74
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
75
75
|
return onChangeSlide(selectedIndex, router);
|
|
76
76
|
}, interval: null },
|
|
77
77
|
slides && slides.map(function (slide) {
|
|
78
|
-
return
|
|
78
|
+
return React__default.createElement(
|
|
79
79
|
Carousel.Item,
|
|
80
80
|
{ key: slide._key },
|
|
81
|
-
|
|
82
|
-
slide.caption &&
|
|
81
|
+
React__default.createElement('img', { src: slide.asset && urlFor({ source: slide.asset, client: client }), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
82
|
+
slide.caption && React__default.createElement(
|
|
83
83
|
'p',
|
|
84
84
|
{ className: 'p-2' },
|
|
85
85
|
slide.caption
|
|
@@ -90,18 +90,21 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
90
90
|
);
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
var isArray = Array.isArray;
|
|
94
|
+
var keyList = Object.keys;
|
|
95
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
96
96
|
|
|
97
97
|
var fastDeepEqual = function equal(a, b) {
|
|
98
98
|
if (a === b) return true;
|
|
99
99
|
|
|
100
100
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
101
|
-
|
|
101
|
+
var arrA = isArray(a)
|
|
102
|
+
, arrB = isArray(b)
|
|
103
|
+
, i
|
|
104
|
+
, length
|
|
105
|
+
, key;
|
|
102
106
|
|
|
103
|
-
|
|
104
|
-
if (Array.isArray(a)) {
|
|
107
|
+
if (arrA && arrB) {
|
|
105
108
|
length = a.length;
|
|
106
109
|
if (length != b.length) return false;
|
|
107
110
|
for (i = length; i-- !== 0;)
|
|
@@ -109,29 +112,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
109
112
|
return true;
|
|
110
113
|
}
|
|
111
114
|
|
|
115
|
+
if (arrA != arrB) return false;
|
|
112
116
|
|
|
117
|
+
var dateA = a instanceof Date
|
|
118
|
+
, dateB = b instanceof Date;
|
|
119
|
+
if (dateA != dateB) return false;
|
|
120
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
113
121
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
if (
|
|
122
|
+
var regexpA = a instanceof RegExp
|
|
123
|
+
, regexpB = b instanceof RegExp;
|
|
124
|
+
if (regexpA != regexpB) return false;
|
|
125
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
117
126
|
|
|
118
|
-
keys =
|
|
127
|
+
var keys = keyList(a);
|
|
119
128
|
length = keys.length;
|
|
120
|
-
|
|
129
|
+
|
|
130
|
+
if (length !== keyList(b).length)
|
|
131
|
+
return false;
|
|
121
132
|
|
|
122
133
|
for (i = length; i-- !== 0;)
|
|
123
|
-
if (!
|
|
134
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
124
135
|
|
|
125
136
|
for (i = length; i-- !== 0;) {
|
|
126
|
-
|
|
127
|
-
|
|
137
|
+
key = keys[i];
|
|
128
138
|
if (!equal(a[key], b[key])) return false;
|
|
129
139
|
}
|
|
130
140
|
|
|
131
141
|
return true;
|
|
132
142
|
}
|
|
133
143
|
|
|
134
|
-
// true if both NaN, false otherwise
|
|
135
144
|
return a!==a && b!==b;
|
|
136
145
|
};
|
|
137
146
|
|
|
@@ -669,14 +678,14 @@ function coerce(val) {
|
|
|
669
678
|
return val;
|
|
670
679
|
}
|
|
671
680
|
});
|
|
672
|
-
debug.coerce;
|
|
673
|
-
debug.disable;
|
|
674
|
-
debug.enable;
|
|
675
|
-
debug.enabled;
|
|
676
|
-
debug.humanize;
|
|
677
|
-
debug.names;
|
|
678
|
-
debug.skips;
|
|
679
|
-
debug.formatters;
|
|
681
|
+
var debug_1 = debug.coerce;
|
|
682
|
+
var debug_2 = debug.disable;
|
|
683
|
+
var debug_3 = debug.enable;
|
|
684
|
+
var debug_4 = debug.enabled;
|
|
685
|
+
var debug_5 = debug.humanize;
|
|
686
|
+
var debug_6 = debug.names;
|
|
687
|
+
var debug_7 = debug.skips;
|
|
688
|
+
var debug_8 = debug.formatters;
|
|
680
689
|
|
|
681
690
|
var browser = createCommonjsModule(function (module, exports) {
|
|
682
691
|
/**
|
|
@@ -865,13 +874,13 @@ function localstorage() {
|
|
|
865
874
|
} catch (e) {}
|
|
866
875
|
}
|
|
867
876
|
});
|
|
868
|
-
browser.log;
|
|
869
|
-
browser.formatArgs;
|
|
870
|
-
browser.save;
|
|
871
|
-
browser.load;
|
|
872
|
-
browser.useColors;
|
|
873
|
-
browser.storage;
|
|
874
|
-
browser.colors;
|
|
877
|
+
var browser_1 = browser.log;
|
|
878
|
+
var browser_2 = browser.formatArgs;
|
|
879
|
+
var browser_3 = browser.save;
|
|
880
|
+
var browser_4 = browser.load;
|
|
881
|
+
var browser_5 = browser.useColors;
|
|
882
|
+
var browser_6 = browser.storage;
|
|
883
|
+
var browser_7 = browser.colors;
|
|
875
884
|
|
|
876
885
|
// MIT lisence
|
|
877
886
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1146,14 +1155,14 @@ function init (debug) {
|
|
|
1146
1155
|
|
|
1147
1156
|
exports.enable(load());
|
|
1148
1157
|
});
|
|
1149
|
-
node.init;
|
|
1150
|
-
node.log;
|
|
1151
|
-
node.formatArgs;
|
|
1152
|
-
node.save;
|
|
1153
|
-
node.load;
|
|
1154
|
-
node.useColors;
|
|
1155
|
-
node.colors;
|
|
1156
|
-
node.inspectOpts;
|
|
1158
|
+
var node_1 = node.init;
|
|
1159
|
+
var node_2 = node.log;
|
|
1160
|
+
var node_3 = node.formatArgs;
|
|
1161
|
+
var node_4 = node.save;
|
|
1162
|
+
var node_5 = node.load;
|
|
1163
|
+
var node_6 = node.useColors;
|
|
1164
|
+
var node_7 = node.colors;
|
|
1165
|
+
var node_8 = node.inspectOpts;
|
|
1157
1166
|
|
|
1158
1167
|
var src = createCommonjsModule(function (module) {
|
|
1159
1168
|
/**
|
|
@@ -1554,239 +1563,199 @@ module.exports = exports['default'];
|
|
|
1554
1563
|
|
|
1555
1564
|
var youTubePlayer = unwrapExports(dist);
|
|
1556
1565
|
|
|
1557
|
-
function
|
|
1558
|
-
|
|
1559
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1560
|
-
|
|
1561
|
-
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); } }
|
|
1562
|
-
|
|
1563
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1564
|
-
|
|
1565
|
-
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); }
|
|
1566
|
-
|
|
1567
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1568
|
-
|
|
1569
|
-
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); }; }
|
|
1566
|
+
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; }; }();
|
|
1570
1567
|
|
|
1571
|
-
function
|
|
1568
|
+
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; };
|
|
1572
1569
|
|
|
1573
|
-
function
|
|
1570
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1574
1571
|
|
|
1575
|
-
function
|
|
1572
|
+
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; }
|
|
1576
1573
|
|
|
1577
|
-
function
|
|
1574
|
+
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; }
|
|
1578
1575
|
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
/**
|
|
1585
|
-
* Check whether a `props` change should result in the video being updated.
|
|
1586
|
-
*
|
|
1587
|
-
* @param {Object} prevProps
|
|
1588
|
-
* @param {Object} props
|
|
1576
|
+
/**
|
|
1577
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1578
|
+
*
|
|
1579
|
+
* @param {Object} prevProps
|
|
1580
|
+
* @param {Object} props
|
|
1589
1581
|
*/
|
|
1590
|
-
|
|
1591
1582
|
function shouldUpdateVideo(prevProps, props) {
|
|
1592
1583
|
// A changing video should always trigger an update
|
|
1593
1584
|
if (prevProps.videoId !== props.videoId) {
|
|
1594
1585
|
return true;
|
|
1595
|
-
}
|
|
1596
|
-
// update.
|
|
1597
|
-
|
|
1586
|
+
}
|
|
1598
1587
|
|
|
1588
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1589
|
+
// update.
|
|
1599
1590
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1600
1591
|
var vars = props.opts.playerVars || {};
|
|
1592
|
+
|
|
1601
1593
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1602
1594
|
}
|
|
1603
|
-
/**
|
|
1604
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1605
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1606
|
-
* player reset is necessary.
|
|
1607
|
-
*
|
|
1608
|
-
* @param {Object} opts
|
|
1609
|
-
*/
|
|
1610
|
-
|
|
1611
1595
|
|
|
1596
|
+
/**
|
|
1597
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1598
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1599
|
+
* player reset is necessary.
|
|
1600
|
+
*
|
|
1601
|
+
* @param {Object} opts
|
|
1602
|
+
*/
|
|
1612
1603
|
function filterResetOptions(opts) {
|
|
1613
|
-
return
|
|
1614
|
-
playerVars:
|
|
1604
|
+
return _extends({}, opts, {
|
|
1605
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1615
1606
|
autoplay: 0,
|
|
1616
1607
|
start: 0,
|
|
1617
1608
|
end: 0
|
|
1618
|
-
}
|
|
1609
|
+
})
|
|
1619
1610
|
});
|
|
1620
1611
|
}
|
|
1621
|
-
/**
|
|
1622
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1623
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1624
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1625
|
-
* those.
|
|
1626
|
-
*
|
|
1627
|
-
* @param {Object} prevProps
|
|
1628
|
-
* @param {Object} props
|
|
1629
|
-
*/
|
|
1630
|
-
|
|
1631
1612
|
|
|
1613
|
+
/**
|
|
1614
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1615
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1616
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1617
|
+
* those.
|
|
1618
|
+
*
|
|
1619
|
+
* @param {Object} prevProps
|
|
1620
|
+
* @param {Object} props
|
|
1621
|
+
*/
|
|
1632
1622
|
function shouldResetPlayer(prevProps, props) {
|
|
1633
1623
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1634
1624
|
}
|
|
1635
|
-
/**
|
|
1636
|
-
* Check whether a props change should result in an id or className update.
|
|
1637
|
-
*
|
|
1638
|
-
* @param {Object} prevProps
|
|
1639
|
-
* @param {Object} props
|
|
1640
|
-
*/
|
|
1641
|
-
|
|
1642
1625
|
|
|
1626
|
+
/**
|
|
1627
|
+
* Check whether a props change should result in an id or className update.
|
|
1628
|
+
*
|
|
1629
|
+
* @param {Object} prevProps
|
|
1630
|
+
* @param {Object} props
|
|
1631
|
+
*/
|
|
1643
1632
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1644
1633
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1645
1634
|
}
|
|
1646
1635
|
|
|
1647
|
-
var YouTube =
|
|
1636
|
+
var YouTube = function (_React$Component) {
|
|
1648
1637
|
_inherits(YouTube, _React$Component);
|
|
1649
1638
|
|
|
1650
|
-
var _super = _createSuper(YouTube);
|
|
1651
|
-
|
|
1652
|
-
/**
|
|
1653
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1654
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1655
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1656
|
-
*/
|
|
1657
1639
|
function YouTube(props) {
|
|
1658
|
-
var _this;
|
|
1659
|
-
|
|
1660
1640
|
_classCallCheck(this, YouTube);
|
|
1661
1641
|
|
|
1662
|
-
_this =
|
|
1642
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1663
1643
|
|
|
1664
|
-
|
|
1644
|
+
_this.onPlayerReady = function (event) {
|
|
1665
1645
|
return _this.props.onReady(event);
|
|
1666
|
-
}
|
|
1646
|
+
};
|
|
1667
1647
|
|
|
1668
|
-
|
|
1648
|
+
_this.onPlayerError = function (event) {
|
|
1669
1649
|
return _this.props.onError(event);
|
|
1670
|
-
}
|
|
1650
|
+
};
|
|
1671
1651
|
|
|
1672
|
-
|
|
1652
|
+
_this.onPlayerStateChange = function (event) {
|
|
1673
1653
|
_this.props.onStateChange(event);
|
|
1674
|
-
|
|
1675
1654
|
switch (event.data) {
|
|
1655
|
+
|
|
1676
1656
|
case YouTube.PlayerState.ENDED:
|
|
1677
1657
|
_this.props.onEnd(event);
|
|
1678
|
-
|
|
1679
1658
|
break;
|
|
1680
1659
|
|
|
1681
1660
|
case YouTube.PlayerState.PLAYING:
|
|
1682
1661
|
_this.props.onPlay(event);
|
|
1683
|
-
|
|
1684
1662
|
break;
|
|
1685
1663
|
|
|
1686
1664
|
case YouTube.PlayerState.PAUSED:
|
|
1687
1665
|
_this.props.onPause(event);
|
|
1688
|
-
|
|
1689
1666
|
break;
|
|
1690
1667
|
}
|
|
1691
|
-
}
|
|
1668
|
+
};
|
|
1692
1669
|
|
|
1693
|
-
|
|
1670
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1694
1671
|
return _this.props.onPlaybackRateChange(event);
|
|
1695
|
-
}
|
|
1672
|
+
};
|
|
1696
1673
|
|
|
1697
|
-
|
|
1674
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1698
1675
|
return _this.props.onPlaybackQualityChange(event);
|
|
1699
|
-
}
|
|
1676
|
+
};
|
|
1700
1677
|
|
|
1701
|
-
|
|
1678
|
+
_this.createPlayer = function () {
|
|
1702
1679
|
// do not attempt to create a player server-side, it won't work
|
|
1703
|
-
if (typeof document === 'undefined') return;
|
|
1704
|
-
|
|
1705
|
-
var playerOpts =
|
|
1680
|
+
if (typeof document === 'undefined') return;
|
|
1681
|
+
// create player
|
|
1682
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1706
1683
|
// preload the `videoId` video if one is already given
|
|
1707
1684
|
videoId: _this.props.videoId
|
|
1708
1685
|
});
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1686
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1687
|
+
// attach event handlers
|
|
1712
1688
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1713
|
-
|
|
1714
1689
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1715
|
-
|
|
1716
1690
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1717
|
-
|
|
1718
1691
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1719
|
-
|
|
1720
1692
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1721
|
-
}
|
|
1693
|
+
};
|
|
1722
1694
|
|
|
1723
|
-
|
|
1695
|
+
_this.resetPlayer = function () {
|
|
1724
1696
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1725
|
-
}
|
|
1697
|
+
};
|
|
1726
1698
|
|
|
1727
|
-
|
|
1699
|
+
_this.updatePlayer = function () {
|
|
1728
1700
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1729
1701
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1730
1702
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1731
1703
|
});
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1735
|
-
return _this.internalPlayer;
|
|
1736
|
-
});
|
|
1704
|
+
};
|
|
1737
1705
|
|
|
1738
|
-
|
|
1706
|
+
_this.updateVideo = function () {
|
|
1739
1707
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1740
1708
|
_this.internalPlayer.stopVideo();
|
|
1741
|
-
|
|
1742
1709
|
return;
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1710
|
+
}
|
|
1745
1711
|
|
|
1712
|
+
// set queueing options
|
|
1746
1713
|
var autoplay = false;
|
|
1747
1714
|
var opts = {
|
|
1748
1715
|
videoId: _this.props.videoId
|
|
1749
1716
|
};
|
|
1750
|
-
|
|
1751
1717
|
if ('playerVars' in _this.props.opts) {
|
|
1752
1718
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1753
|
-
|
|
1754
1719
|
if ('start' in _this.props.opts.playerVars) {
|
|
1755
1720
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1756
1721
|
}
|
|
1757
|
-
|
|
1758
1722
|
if ('end' in _this.props.opts.playerVars) {
|
|
1759
1723
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1760
1724
|
}
|
|
1761
|
-
}
|
|
1762
|
-
|
|
1725
|
+
}
|
|
1763
1726
|
|
|
1727
|
+
// if autoplay is enabled loadVideoById
|
|
1764
1728
|
if (autoplay) {
|
|
1765
1729
|
_this.internalPlayer.loadVideoById(opts);
|
|
1766
|
-
|
|
1767
1730
|
return;
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
|
-
|
|
1731
|
+
}
|
|
1732
|
+
// default behaviour just cues the video
|
|
1771
1733
|
_this.internalPlayer.cueVideoById(opts);
|
|
1772
|
-
}
|
|
1734
|
+
};
|
|
1773
1735
|
|
|
1774
|
-
|
|
1736
|
+
_this.refContainer = function (container) {
|
|
1775
1737
|
_this.container = container;
|
|
1776
|
-
}
|
|
1738
|
+
};
|
|
1777
1739
|
|
|
1778
1740
|
_this.container = null;
|
|
1779
1741
|
_this.internalPlayer = null;
|
|
1780
1742
|
return _this;
|
|
1781
1743
|
}
|
|
1782
1744
|
|
|
1745
|
+
/**
|
|
1746
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1747
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1748
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1749
|
+
*/
|
|
1750
|
+
|
|
1751
|
+
|
|
1783
1752
|
_createClass(YouTube, [{
|
|
1784
|
-
key:
|
|
1753
|
+
key: 'componentDidMount',
|
|
1785
1754
|
value: function componentDidMount() {
|
|
1786
1755
|
this.createPlayer();
|
|
1787
1756
|
}
|
|
1788
1757
|
}, {
|
|
1789
|
-
key:
|
|
1758
|
+
key: 'componentDidUpdate',
|
|
1790
1759
|
value: function componentDidUpdate(prevProps) {
|
|
1791
1760
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1792
1761
|
this.updatePlayer();
|
|
@@ -1801,58 +1770,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1801
1770
|
}
|
|
1802
1771
|
}
|
|
1803
1772
|
}, {
|
|
1804
|
-
key:
|
|
1773
|
+
key: 'componentWillUnmount',
|
|
1805
1774
|
value: function componentWillUnmount() {
|
|
1806
|
-
/**
|
|
1807
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1808
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1809
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1810
|
-
* this method isn't quick enough to reset the container element.
|
|
1775
|
+
/**
|
|
1776
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1777
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1778
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1779
|
+
* this method isn't quick enough to reset the container element.
|
|
1811
1780
|
*/
|
|
1812
1781
|
this.internalPlayer.destroy();
|
|
1813
1782
|
}
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
*
|
|
1817
|
-
*
|
|
1818
|
-
*
|
|
1783
|
+
|
|
1784
|
+
/**
|
|
1785
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1786
|
+
*
|
|
1787
|
+
* @param {Object} event
|
|
1788
|
+
* @param {Object} target - player object
|
|
1789
|
+
*/
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
/**
|
|
1793
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1794
|
+
*
|
|
1795
|
+
* @param {Object} event
|
|
1796
|
+
* @param {Integer} data - error type
|
|
1797
|
+
* @param {Object} target - player object
|
|
1798
|
+
*/
|
|
1799
|
+
|
|
1800
|
+
|
|
1801
|
+
/**
|
|
1802
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1803
|
+
*
|
|
1804
|
+
* @param {Object} event
|
|
1805
|
+
* @param {Integer} data - status change type
|
|
1806
|
+
* @param {Object} target - actual YT player
|
|
1807
|
+
*/
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
/**
|
|
1811
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1812
|
+
*
|
|
1813
|
+
* @param {Object} event
|
|
1814
|
+
* @param {Float} data - playback rate
|
|
1815
|
+
* @param {Object} target - actual YT player
|
|
1816
|
+
*/
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1821
|
+
*
|
|
1822
|
+
* @param {Object} event
|
|
1823
|
+
* @param {String} data - playback quality
|
|
1824
|
+
* @param {Object} target - actual YT player
|
|
1825
|
+
*/
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1830
|
+
*/
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1835
|
+
*/
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1840
|
+
* React should update this automatically but since the Youtube Player API
|
|
1841
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1842
|
+
*/
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1847
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1848
|
+
* Youtube Player API methods to update the video.
|
|
1819
1849
|
*/
|
|
1820
1850
|
|
|
1821
1851
|
}, {
|
|
1822
|
-
key:
|
|
1852
|
+
key: 'render',
|
|
1823
1853
|
value: function render() {
|
|
1824
|
-
return
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
id: this.props.id,
|
|
1828
|
-
|
|
1829
|
-
ref: this.refContainer
|
|
1830
|
-
}));
|
|
1854
|
+
return React__default.createElement(
|
|
1855
|
+
'div',
|
|
1856
|
+
{ className: this.props.containerClassName },
|
|
1857
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1858
|
+
);
|
|
1831
1859
|
}
|
|
1832
1860
|
}]);
|
|
1833
1861
|
|
|
1834
1862
|
return YouTube;
|
|
1835
|
-
}(
|
|
1836
|
-
|
|
1837
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1838
|
-
UNSTARTED: -1,
|
|
1839
|
-
ENDED: 0,
|
|
1840
|
-
PLAYING: 1,
|
|
1841
|
-
PAUSED: 2,
|
|
1842
|
-
BUFFERING: 3,
|
|
1843
|
-
CUED: 5
|
|
1844
|
-
});
|
|
1863
|
+
}(React__default.Component);
|
|
1845
1864
|
|
|
1846
1865
|
YouTube.propTypes = {
|
|
1847
1866
|
videoId: PropTypes.string,
|
|
1867
|
+
|
|
1848
1868
|
// custom ID for player element
|
|
1849
1869
|
id: PropTypes.string,
|
|
1870
|
+
|
|
1850
1871
|
// custom class name for player element
|
|
1851
1872
|
className: PropTypes.string,
|
|
1852
1873
|
// custom class name for player container element
|
|
1853
1874
|
containerClassName: PropTypes.string,
|
|
1875
|
+
|
|
1854
1876
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1855
1877
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1878
|
+
|
|
1856
1879
|
// event subscriptions
|
|
1857
1880
|
onReady: PropTypes.func,
|
|
1858
1881
|
onError: PropTypes.func,
|
|
@@ -1864,7 +1887,6 @@ YouTube.propTypes = {
|
|
|
1864
1887
|
onPlaybackQualityChange: PropTypes.func
|
|
1865
1888
|
};
|
|
1866
1889
|
YouTube.defaultProps = {
|
|
1867
|
-
videoId: null,
|
|
1868
1890
|
id: null,
|
|
1869
1891
|
className: null,
|
|
1870
1892
|
opts: {},
|
|
@@ -1878,6 +1900,14 @@ YouTube.defaultProps = {
|
|
|
1878
1900
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1879
1901
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1880
1902
|
};
|
|
1903
|
+
YouTube.PlayerState = {
|
|
1904
|
+
UNSTARTED: -1,
|
|
1905
|
+
ENDED: 0,
|
|
1906
|
+
PLAYING: 1,
|
|
1907
|
+
PAUSED: 2,
|
|
1908
|
+
BUFFERING: 3,
|
|
1909
|
+
CUED: 5
|
|
1910
|
+
};
|
|
1881
1911
|
|
|
1882
1912
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1883
1913
|
var url = _ref.url,
|
|
@@ -1916,8 +1946,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1916
1946
|
var duration = player.getDuration();
|
|
1917
1947
|
var queue = Math.floor(duration / 10);
|
|
1918
1948
|
var segment = Math.floor(current / queue);
|
|
1919
|
-
Beam.report_beam_video('Ready',
|
|
1920
|
-
Segment.report_video_event('Video Ready',
|
|
1949
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
1950
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1921
1951
|
};
|
|
1922
1952
|
|
|
1923
1953
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1927,8 +1957,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1927
1957
|
var segment = Math.floor(current / queue);
|
|
1928
1958
|
|
|
1929
1959
|
if (!queueProgress.includes(segment)) {
|
|
1930
|
-
Beam.report_beam_video('Segment',
|
|
1931
|
-
Segment.report_video_event('Video Segment',
|
|
1960
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
1961
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1932
1962
|
queueProgress.push(segment);
|
|
1933
1963
|
}
|
|
1934
1964
|
};
|
|
@@ -1941,8 +1971,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1941
1971
|
var queue = Math.floor(duration / 10);
|
|
1942
1972
|
var segment = Math.floor(current / queue);
|
|
1943
1973
|
|
|
1944
|
-
Beam.report_beam_video('Play',
|
|
1945
|
-
Segment.report_video_event('Video Play',
|
|
1974
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
1975
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1946
1976
|
|
|
1947
1977
|
if (!playReported) {
|
|
1948
1978
|
setPlayReported(true);
|
|
@@ -1961,8 +1991,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1961
1991
|
var queue = Math.floor(duration / 10);
|
|
1962
1992
|
var segment = Math.floor(current / queue);
|
|
1963
1993
|
|
|
1964
|
-
Beam.report_beam_video('End',
|
|
1965
|
-
Segment.report_video_event('Video End',
|
|
1994
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
1995
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1966
1996
|
setEndReported(true);
|
|
1967
1997
|
clearInterval(intervalID);
|
|
1968
1998
|
}
|
|
@@ -1975,15 +2005,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1975
2005
|
var queue = Math.floor(duration / 10);
|
|
1976
2006
|
var segment = Math.floor(current / queue);
|
|
1977
2007
|
|
|
1978
|
-
Beam.report_beam_video('Pause',
|
|
1979
|
-
Segment.report_video_event('Video Pause',
|
|
2008
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
2009
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1980
2010
|
};
|
|
1981
2011
|
|
|
1982
|
-
return
|
|
2012
|
+
return React__default.createElement(
|
|
1983
2013
|
'div',
|
|
1984
2014
|
{ id: 'fluid-video-container' },
|
|
1985
|
-
|
|
1986
|
-
|
|
2015
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2016
|
+
React__default.createElement(
|
|
1987
2017
|
'style',
|
|
1988
2018
|
{ jsx: 'true' },
|
|
1989
2019
|
'\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 '
|
|
@@ -1996,20 +2026,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
1996
2026
|
content = _ref.content,
|
|
1997
2027
|
getSerializers = _ref.getSerializers;
|
|
1998
2028
|
|
|
1999
|
-
return
|
|
2029
|
+
return React__default.createElement(
|
|
2000
2030
|
'article',
|
|
2001
2031
|
{ className: 'sidebar' },
|
|
2002
|
-
|
|
2032
|
+
React__default.createElement(
|
|
2003
2033
|
'div',
|
|
2004
2034
|
null,
|
|
2005
|
-
|
|
2035
|
+
React__default.createElement(
|
|
2006
2036
|
'h3',
|
|
2007
2037
|
null,
|
|
2008
2038
|
caption
|
|
2009
2039
|
),
|
|
2010
|
-
|
|
2040
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2011
2041
|
),
|
|
2012
|
-
|
|
2042
|
+
React__default.createElement(
|
|
2013
2043
|
'style',
|
|
2014
2044
|
{ jsx: 'true' },
|
|
2015
2045
|
'\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 '
|
|
@@ -2020,18 +2050,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2020
2050
|
var TableShow = function TableShow(_ref) {
|
|
2021
2051
|
var rows = _ref.rows;
|
|
2022
2052
|
|
|
2023
|
-
return
|
|
2053
|
+
return React__default.createElement(
|
|
2024
2054
|
Table,
|
|
2025
2055
|
{ bordered: true, hover: true, responsive: true },
|
|
2026
|
-
|
|
2056
|
+
React__default.createElement(
|
|
2027
2057
|
'tbody',
|
|
2028
2058
|
null,
|
|
2029
2059
|
rows && rows.map(function (row) {
|
|
2030
|
-
return
|
|
2060
|
+
return React__default.createElement(
|
|
2031
2061
|
'tr',
|
|
2032
2062
|
{ key: row._key },
|
|
2033
2063
|
row.cells && row.cells.map(function (cell, index) {
|
|
2034
|
-
return cell &&
|
|
2064
|
+
return cell && React__default.createElement(
|
|
2035
2065
|
'td',
|
|
2036
2066
|
{ key: index },
|
|
2037
2067
|
cell
|
|
@@ -2129,18 +2159,18 @@ var Media = function Media(_ref) {
|
|
|
2129
2159
|
margin: imageMargin
|
|
2130
2160
|
};
|
|
2131
2161
|
|
|
2132
|
-
return
|
|
2162
|
+
return React__default.createElement(
|
|
2133
2163
|
Figure$1,
|
|
2134
2164
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2135
|
-
|
|
2165
|
+
React__default.createElement(
|
|
2136
2166
|
'a',
|
|
2137
2167
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2138
|
-
|
|
2168
|
+
React__default.createElement(
|
|
2139
2169
|
LazyLoad,
|
|
2140
2170
|
{ once: true },
|
|
2141
|
-
|
|
2171
|
+
React__default.createElement(Figure$1.Image, _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2142
2172
|
),
|
|
2143
|
-
caption &&
|
|
2173
|
+
caption && React__default.createElement(
|
|
2144
2174
|
Figure$1.Caption,
|
|
2145
2175
|
{ className: 'media-caption' },
|
|
2146
2176
|
caption
|
|
@@ -2148,9 +2178,9 @@ var Media = function Media(_ref) {
|
|
|
2148
2178
|
)
|
|
2149
2179
|
);
|
|
2150
2180
|
} else if (caption && caption !== '') {
|
|
2151
|
-
return
|
|
2181
|
+
return React__default.createElement(
|
|
2152
2182
|
'a',
|
|
2153
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2183
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2154
2184
|
href: uploadDoc.asset.url + '?dl='
|
|
2155
2185
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2156
2186
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2168,10 +2198,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2168
2198
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2169
2199
|
|
|
2170
2200
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2171
|
-
return
|
|
2201
|
+
return React__default.createElement(
|
|
2172
2202
|
'div',
|
|
2173
2203
|
{ className: 'd-block text-center mb-3' },
|
|
2174
|
-
|
|
2204
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2175
2205
|
);
|
|
2176
2206
|
};
|
|
2177
2207
|
|
|
@@ -2205,8 +2235,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2205
2235
|
var duration = player.duration;
|
|
2206
2236
|
var queue = Math.floor(duration / 10);
|
|
2207
2237
|
var segment = Math.floor(current / queue);
|
|
2208
|
-
Beam.report_beam_video('Ready',
|
|
2209
|
-
Segment.report_video_event('Video Ready',
|
|
2238
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
|
|
2239
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
2210
2240
|
};
|
|
2211
2241
|
|
|
2212
2242
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2215,8 +2245,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2215
2245
|
var queue = Math.floor(duration / 10);
|
|
2216
2246
|
var segment = Math.floor(current / queue);
|
|
2217
2247
|
if (!queueProgress.includes(segment)) {
|
|
2218
|
-
Beam.report_beam_video('Segment',
|
|
2219
|
-
Segment.report_video_event('Video Segment',
|
|
2248
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
|
|
2249
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
2220
2250
|
queueProgress.push(segment);
|
|
2221
2251
|
}
|
|
2222
2252
|
};
|
|
@@ -2228,8 +2258,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2228
2258
|
var duration = player.duration;
|
|
2229
2259
|
var queue = Math.floor(duration / 10);
|
|
2230
2260
|
var segment = Math.floor(current / queue);
|
|
2231
|
-
Beam.report_beam_video('Play',
|
|
2232
|
-
Segment.report_video_event('Video Play',
|
|
2261
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
|
|
2262
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
2233
2263
|
|
|
2234
2264
|
if (!playReported) {
|
|
2235
2265
|
event.persist();
|
|
@@ -2249,8 +2279,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2249
2279
|
var queue = Math.floor(duration / 10);
|
|
2250
2280
|
var segment = Math.floor(current / queue);
|
|
2251
2281
|
|
|
2252
|
-
Beam.report_beam_video('End',
|
|
2253
|
-
Segment.report_video_event('Video End',
|
|
2282
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
|
|
2283
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
2254
2284
|
setEndReported(true);
|
|
2255
2285
|
clearInterval(intervalID);
|
|
2256
2286
|
}
|
|
@@ -2262,14 +2292,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2262
2292
|
var duration = player.duration - current;
|
|
2263
2293
|
var queue = Math.floor(duration / 10);
|
|
2264
2294
|
var segment = Math.floor(current / queue);
|
|
2265
|
-
Beam.report_beam_video('Pause',
|
|
2266
|
-
Segment.report_video_event('Video Pause',
|
|
2295
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
|
|
2296
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2267
2297
|
};
|
|
2268
2298
|
|
|
2269
|
-
return
|
|
2299
|
+
return React__default.createElement(
|
|
2270
2300
|
'div',
|
|
2271
2301
|
null,
|
|
2272
|
-
vidLoaded &&
|
|
2302
|
+
vidLoaded && React__default.createElement(
|
|
2273
2303
|
'video',
|
|
2274
2304
|
{
|
|
2275
2305
|
poster: thumbnail || '',
|
|
@@ -2287,7 +2317,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2287
2317
|
onPlay: function onPlay(e) {
|
|
2288
2318
|
return handleOnPlay(e);
|
|
2289
2319
|
} },
|
|
2290
|
-
|
|
2320
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2291
2321
|
'Your browser does not support the video tag.'
|
|
2292
2322
|
)
|
|
2293
2323
|
);
|
|
@@ -2324,7 +2354,7 @@ var Video = function Video(_ref) {
|
|
|
2324
2354
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2325
2355
|
//console.log('success:', success.ref)
|
|
2326
2356
|
var player = success.ref;
|
|
2327
|
-
if (_typeof
|
|
2357
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2328
2358
|
player.ima3.settings.debug = true;
|
|
2329
2359
|
if (targeting.content_placement && targeting.document_url) {
|
|
2330
2360
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2352,8 +2382,8 @@ var Video = function Video(_ref) {
|
|
|
2352
2382
|
player.pause();
|
|
2353
2383
|
}
|
|
2354
2384
|
|
|
2355
|
-
Beam.report_beam_video('Ready',
|
|
2356
|
-
Segment.report_video_event('Video Ready',
|
|
2385
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2386
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2357
2387
|
});
|
|
2358
2388
|
|
|
2359
2389
|
// play
|
|
@@ -2362,8 +2392,8 @@ var Video = function Video(_ref) {
|
|
|
2362
2392
|
var current = player.currentTime();
|
|
2363
2393
|
var queue = Math.floor(duration / 10);
|
|
2364
2394
|
var segment = Math.floor(current / queue);
|
|
2365
|
-
Beam.report_beam_video('Play',
|
|
2366
|
-
Segment.report_video_event('Video Play',
|
|
2395
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2396
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2367
2397
|
});
|
|
2368
2398
|
|
|
2369
2399
|
// pause
|
|
@@ -2372,8 +2402,8 @@ var Video = function Video(_ref) {
|
|
|
2372
2402
|
var current = player.currentTime();
|
|
2373
2403
|
var queue = Math.floor(duration / 10);
|
|
2374
2404
|
var segment = Math.floor(current / queue);
|
|
2375
|
-
Beam.report_beam_video('Pause',
|
|
2376
|
-
Segment.report_video_event('Video Pause',
|
|
2405
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2406
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2377
2407
|
});
|
|
2378
2408
|
|
|
2379
2409
|
// end
|
|
@@ -2382,8 +2412,8 @@ var Video = function Video(_ref) {
|
|
|
2382
2412
|
var current = player.currentTime();
|
|
2383
2413
|
var queue = Math.floor(duration / 10);
|
|
2384
2414
|
var segment = Math.floor(current / queue);
|
|
2385
|
-
Beam.report_beam_video('End',
|
|
2386
|
-
Segment.report_video_event('Video End',
|
|
2415
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2416
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2387
2417
|
autoplayNextVideo(evt);
|
|
2388
2418
|
});
|
|
2389
2419
|
|
|
@@ -2394,8 +2424,8 @@ var Video = function Video(_ref) {
|
|
|
2394
2424
|
var queue = Math.floor(duration / 10);
|
|
2395
2425
|
var segment = Math.floor(current / queue);
|
|
2396
2426
|
if (!queueProgress.includes(segment)) {
|
|
2397
|
-
Beam.report_beam_video('Segment',
|
|
2398
|
-
Segment.report_video_event('Video Segment',
|
|
2427
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2428
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2399
2429
|
queueProgress.push(segment);
|
|
2400
2430
|
}
|
|
2401
2431
|
});
|
|
@@ -2406,8 +2436,8 @@ var Video = function Video(_ref) {
|
|
|
2406
2436
|
var id = player.ads.ad.id;
|
|
2407
2437
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2408
2438
|
|
|
2409
|
-
Beam.report_beam_ad('AD Started',
|
|
2410
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2439
|
+
Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
|
|
2440
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2411
2441
|
});
|
|
2412
2442
|
|
|
2413
2443
|
// ad ended
|
|
@@ -2415,60 +2445,60 @@ var Video = function Video(_ref) {
|
|
|
2415
2445
|
var duration = player.ads.ad.duration;
|
|
2416
2446
|
var id = player.ads.ad.id;
|
|
2417
2447
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2418
|
-
Beam.report_beam_ad('AD Ended',
|
|
2419
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2448
|
+
Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
|
|
2449
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2420
2450
|
});
|
|
2421
2451
|
};
|
|
2422
2452
|
|
|
2423
2453
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2424
2454
|
if (videoID) {
|
|
2425
|
-
return
|
|
2455
|
+
return React__default.createElement(
|
|
2426
2456
|
'div',
|
|
2427
2457
|
null,
|
|
2428
|
-
|
|
2458
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2429
2459
|
onSuccess: onVideoSuccess,
|
|
2430
2460
|
accountId: accountIDs.brightcove.accountId,
|
|
2431
2461
|
videoId: videoID,
|
|
2432
2462
|
playerId: accountIDs.brightcove.playerId,
|
|
2433
2463
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2434
2464
|
}),
|
|
2435
|
-
|
|
2465
|
+
React__default.createElement(
|
|
2436
2466
|
'style',
|
|
2437
2467
|
{ jsx: 'true' },
|
|
2438
2468
|
'\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 '
|
|
2439
2469
|
)
|
|
2440
2470
|
);
|
|
2441
2471
|
} else if (playlistID) {
|
|
2442
|
-
return
|
|
2472
|
+
return React__default.createElement(
|
|
2443
2473
|
'div',
|
|
2444
2474
|
null,
|
|
2445
|
-
|
|
2475
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2446
2476
|
accountId: accountIDs.brightcove.accountId,
|
|
2447
2477
|
playlistId: playlistID,
|
|
2448
2478
|
playerId: accountIDs.brightcove.playerId,
|
|
2449
2479
|
onSuccess: onVideoSuccess,
|
|
2450
2480
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2451
2481
|
}),
|
|
2452
|
-
|
|
2482
|
+
React__default.createElement(
|
|
2453
2483
|
'style',
|
|
2454
2484
|
{ jsx: 'true' },
|
|
2455
2485
|
'\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 '
|
|
2456
2486
|
)
|
|
2457
2487
|
);
|
|
2458
2488
|
} else if (experienceID) {
|
|
2459
|
-
return
|
|
2489
|
+
return React__default.createElement(
|
|
2460
2490
|
'div',
|
|
2461
2491
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2462
|
-
videoLoaded &&
|
|
2492
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2463
2493
|
);
|
|
2464
2494
|
}
|
|
2465
2495
|
return null;
|
|
2466
2496
|
}
|
|
2467
2497
|
if (source === 'mp4') {
|
|
2468
|
-
return
|
|
2498
|
+
return React__default.createElement(
|
|
2469
2499
|
'div',
|
|
2470
2500
|
null,
|
|
2471
|
-
|
|
2501
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2472
2502
|
);
|
|
2473
2503
|
}
|
|
2474
2504
|
|
|
@@ -2679,9 +2709,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2679
2709
|
});
|
|
2680
2710
|
|
|
2681
2711
|
unwrapExports(props);
|
|
2682
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2683
|
-
props.defaultProps;
|
|
2684
|
-
props.propTypes;
|
|
2712
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2713
|
+
var props_2 = props.defaultProps;
|
|
2714
|
+
var props_3 = props.propTypes;
|
|
2685
2715
|
|
|
2686
2716
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2687
2717
|
return isNonNullObject(value)
|
|
@@ -2846,17 +2876,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2846
2876
|
|
|
2847
2877
|
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; }
|
|
2848
2878
|
|
|
2849
|
-
function
|
|
2850
|
-
|
|
2851
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2879
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2852
2880
|
|
|
2853
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
2881
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2854
2882
|
|
|
2855
|
-
function
|
|
2856
|
-
|
|
2857
|
-
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; }
|
|
2858
|
-
|
|
2859
|
-
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; }
|
|
2883
|
+
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; }
|
|
2860
2884
|
|
|
2861
2885
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2862
2886
|
|
|
@@ -2986,12 +3010,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2986
3010
|
|
|
2987
3011
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2988
3012
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2989
|
-
|
|
2990
|
-
var
|
|
2991
|
-
|
|
3013
|
+
var _iteratorNormalCompletion = true;
|
|
3014
|
+
var _didIteratorError = false;
|
|
3015
|
+
var _iteratorError = undefined;
|
|
2992
3016
|
|
|
2993
3017
|
try {
|
|
2994
|
-
for (_iterator.
|
|
3018
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
2995
3019
|
var p = _step.value;
|
|
2996
3020
|
|
|
2997
3021
|
if (props$1[p]) {
|
|
@@ -3006,9 +3030,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3006
3030
|
}
|
|
3007
3031
|
}
|
|
3008
3032
|
} catch (err) {
|
|
3009
|
-
|
|
3033
|
+
_didIteratorError = true;
|
|
3034
|
+
_iteratorError = err;
|
|
3010
3035
|
} finally {
|
|
3011
|
-
|
|
3036
|
+
try {
|
|
3037
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3038
|
+
_iterator["return"]();
|
|
3039
|
+
}
|
|
3040
|
+
} finally {
|
|
3041
|
+
if (_didIteratorError) {
|
|
3042
|
+
throw _iteratorError;
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3012
3045
|
}
|
|
3013
3046
|
|
|
3014
3047
|
return config;
|
|
@@ -3073,7 +3106,7 @@ function isEqual(a, b) {
|
|
|
3073
3106
|
return true;
|
|
3074
3107
|
}
|
|
3075
3108
|
|
|
3076
|
-
if ((0,
|
|
3109
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3077
3110
|
return true;
|
|
3078
3111
|
}
|
|
3079
3112
|
|
|
@@ -3116,17 +3149,17 @@ function isMediaStream(url) {
|
|
|
3116
3149
|
});
|
|
3117
3150
|
|
|
3118
3151
|
unwrapExports(utils);
|
|
3119
|
-
utils.parseStartTime;
|
|
3120
|
-
utils.parseEndTime;
|
|
3121
|
-
utils.randomString;
|
|
3122
|
-
utils.queryString;
|
|
3123
|
-
utils.getSDK;
|
|
3124
|
-
utils.getConfig;
|
|
3125
|
-
utils.omit;
|
|
3126
|
-
utils.callPlayer;
|
|
3127
|
-
utils.isObject;
|
|
3128
|
-
utils.isEqual;
|
|
3129
|
-
utils.isMediaStream;
|
|
3152
|
+
var utils_1 = utils.parseStartTime;
|
|
3153
|
+
var utils_2 = utils.parseEndTime;
|
|
3154
|
+
var utils_3 = utils.randomString;
|
|
3155
|
+
var utils_4 = utils.queryString;
|
|
3156
|
+
var utils_5 = utils.getSDK;
|
|
3157
|
+
var utils_6 = utils.getConfig;
|
|
3158
|
+
var utils_7 = utils.omit;
|
|
3159
|
+
var utils_8 = utils.callPlayer;
|
|
3160
|
+
var utils_9 = utils.isObject;
|
|
3161
|
+
var utils_10 = utils.isEqual;
|
|
3162
|
+
var utils_11 = utils.isMediaStream;
|
|
3130
3163
|
|
|
3131
3164
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3132
3165
|
|
|
@@ -3135,7 +3168,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3135
3168
|
});
|
|
3136
3169
|
exports["default"] = void 0;
|
|
3137
3170
|
|
|
3138
|
-
var _react = _interopRequireWildcard(
|
|
3171
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3139
3172
|
|
|
3140
3173
|
|
|
3141
3174
|
|
|
@@ -3155,16 +3188,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3155
3188
|
|
|
3156
3189
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3157
3190
|
|
|
3158
|
-
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); }; }
|
|
3159
|
-
|
|
3160
3191
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3161
3192
|
|
|
3162
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3163
|
-
|
|
3164
|
-
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; } }
|
|
3165
|
-
|
|
3166
3193
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3167
3194
|
|
|
3195
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3196
|
+
|
|
3168
3197
|
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); }
|
|
3169
3198
|
|
|
3170
3199
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3173,12 +3202,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3173
3202
|
|
|
3174
3203
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3175
3204
|
|
|
3176
|
-
var Player =
|
|
3205
|
+
var Player =
|
|
3206
|
+
/*#__PURE__*/
|
|
3207
|
+
function (_Component) {
|
|
3177
3208
|
_inherits(Player, _Component);
|
|
3178
3209
|
|
|
3179
|
-
var _super = _createSuper(Player);
|
|
3180
|
-
|
|
3181
3210
|
function Player() {
|
|
3211
|
+
var _getPrototypeOf2;
|
|
3212
|
+
|
|
3182
3213
|
var _this;
|
|
3183
3214
|
|
|
3184
3215
|
_classCallCheck(this, Player);
|
|
@@ -3187,7 +3218,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3187
3218
|
_args[_key] = arguments[_key];
|
|
3188
3219
|
}
|
|
3189
3220
|
|
|
3190
|
-
_this =
|
|
3221
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3191
3222
|
|
|
3192
3223
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3193
3224
|
|
|
@@ -3512,7 +3543,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3512
3543
|
return null;
|
|
3513
3544
|
}
|
|
3514
3545
|
|
|
3515
|
-
return
|
|
3546
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3516
3547
|
ref: this.ref,
|
|
3517
3548
|
onReady: this.handleReady,
|
|
3518
3549
|
onPlay: this.handlePlay,
|
|
@@ -3545,7 +3576,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3545
3576
|
});
|
|
3546
3577
|
exports["default"] = createSinglePlayer;
|
|
3547
3578
|
|
|
3548
|
-
var _react = _interopRequireWildcard(
|
|
3579
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3549
3580
|
|
|
3550
3581
|
|
|
3551
3582
|
|
|
@@ -3573,16 +3604,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3573
3604
|
|
|
3574
3605
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3575
3606
|
|
|
3576
|
-
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); }; }
|
|
3577
|
-
|
|
3578
3607
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3579
3608
|
|
|
3580
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3581
|
-
|
|
3582
|
-
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; } }
|
|
3583
|
-
|
|
3584
3609
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3585
3610
|
|
|
3611
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3612
|
+
|
|
3586
3613
|
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); }
|
|
3587
3614
|
|
|
3588
3615
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3594,12 +3621,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3594
3621
|
function createSinglePlayer(activePlayer) {
|
|
3595
3622
|
var _class, _temp;
|
|
3596
3623
|
|
|
3597
|
-
return _temp = _class =
|
|
3624
|
+
return _temp = _class =
|
|
3625
|
+
/*#__PURE__*/
|
|
3626
|
+
function (_Component) {
|
|
3598
3627
|
_inherits(SinglePlayer, _Component);
|
|
3599
3628
|
|
|
3600
|
-
var _super = _createSuper(SinglePlayer);
|
|
3601
|
-
|
|
3602
3629
|
function SinglePlayer() {
|
|
3630
|
+
var _getPrototypeOf2;
|
|
3631
|
+
|
|
3603
3632
|
var _this;
|
|
3604
3633
|
|
|
3605
3634
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3608,7 +3637,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3608
3637
|
args[_key] = arguments[_key];
|
|
3609
3638
|
}
|
|
3610
3639
|
|
|
3611
|
-
_this =
|
|
3640
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3612
3641
|
|
|
3613
3642
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3614
3643
|
|
|
@@ -3676,12 +3705,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3676
3705
|
height = _this$props.height,
|
|
3677
3706
|
Wrapper = _this$props.wrapper;
|
|
3678
3707
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3679
|
-
return
|
|
3708
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3680
3709
|
style: _objectSpread({}, style, {
|
|
3681
3710
|
width: width,
|
|
3682
3711
|
height: height
|
|
3683
3712
|
})
|
|
3684
|
-
}, otherProps),
|
|
3713
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3685
3714
|
ref: this.ref,
|
|
3686
3715
|
activePlayer: activePlayer,
|
|
3687
3716
|
config: this.config
|
|
@@ -3703,7 +3732,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3703
3732
|
});
|
|
3704
3733
|
exports["default"] = exports.YouTube = void 0;
|
|
3705
3734
|
|
|
3706
|
-
var _react = _interopRequireWildcard(
|
|
3735
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3707
3736
|
|
|
3708
3737
|
|
|
3709
3738
|
|
|
@@ -3727,31 +3756,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3727
3756
|
|
|
3728
3757
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3729
3758
|
|
|
3730
|
-
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); }; }
|
|
3731
|
-
|
|
3732
3759
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3733
3760
|
|
|
3734
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3735
|
-
|
|
3736
|
-
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; } }
|
|
3737
|
-
|
|
3738
3761
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3739
3762
|
|
|
3763
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3764
|
+
|
|
3740
3765
|
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); }
|
|
3741
3766
|
|
|
3742
3767
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3743
3768
|
|
|
3744
3769
|
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; }
|
|
3745
3770
|
|
|
3746
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3747
|
-
|
|
3748
|
-
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."); }
|
|
3749
|
-
|
|
3750
|
-
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); }
|
|
3771
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3751
3772
|
|
|
3752
|
-
function
|
|
3773
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3753
3774
|
|
|
3754
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
3775
|
+
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; }
|
|
3755
3776
|
|
|
3756
3777
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3757
3778
|
|
|
@@ -3776,12 +3797,14 @@ function parsePlaylist(url) {
|
|
|
3776
3797
|
return {};
|
|
3777
3798
|
}
|
|
3778
3799
|
|
|
3779
|
-
var YouTube =
|
|
3800
|
+
var YouTube =
|
|
3801
|
+
/*#__PURE__*/
|
|
3802
|
+
function (_Component) {
|
|
3780
3803
|
_inherits(YouTube, _Component);
|
|
3781
3804
|
|
|
3782
|
-
var _super = _createSuper(YouTube);
|
|
3783
|
-
|
|
3784
3805
|
function YouTube() {
|
|
3806
|
+
var _getPrototypeOf2;
|
|
3807
|
+
|
|
3785
3808
|
var _this;
|
|
3786
3809
|
|
|
3787
3810
|
_classCallCheck(this, YouTube);
|
|
@@ -3790,7 +3813,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3790
3813
|
args[_key] = arguments[_key];
|
|
3791
3814
|
}
|
|
3792
3815
|
|
|
3793
|
-
_this =
|
|
3816
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3794
3817
|
|
|
3795
3818
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3796
3819
|
|
|
@@ -3978,9 +4001,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3978
4001
|
height: '100%',
|
|
3979
4002
|
display: display
|
|
3980
4003
|
};
|
|
3981
|
-
return
|
|
4004
|
+
return _react["default"].createElement("div", {
|
|
3982
4005
|
style: style
|
|
3983
|
-
},
|
|
4006
|
+
}, _react["default"].createElement("div", {
|
|
3984
4007
|
ref: this.ref
|
|
3985
4008
|
}));
|
|
3986
4009
|
}
|
|
@@ -4003,7 +4026,7 @@ exports["default"] = _default;
|
|
|
4003
4026
|
});
|
|
4004
4027
|
|
|
4005
4028
|
unwrapExports(YouTube_1);
|
|
4006
|
-
YouTube_1.YouTube;
|
|
4029
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4007
4030
|
|
|
4008
4031
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4009
4032
|
|
|
@@ -4012,7 +4035,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4012
4035
|
});
|
|
4013
4036
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4014
4037
|
|
|
4015
|
-
var _react = _interopRequireWildcard(
|
|
4038
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4016
4039
|
|
|
4017
4040
|
|
|
4018
4041
|
|
|
@@ -4036,16 +4059,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4036
4059
|
|
|
4037
4060
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4038
4061
|
|
|
4039
|
-
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); }; }
|
|
4040
|
-
|
|
4041
4062
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4042
4063
|
|
|
4043
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4044
|
-
|
|
4045
|
-
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; } }
|
|
4046
|
-
|
|
4047
4064
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4048
4065
|
|
|
4066
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4067
|
+
|
|
4049
4068
|
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); }
|
|
4050
4069
|
|
|
4051
4070
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4054,14 +4073,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4054
4073
|
|
|
4055
4074
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4056
4075
|
var SDK_GLOBAL = 'SC';
|
|
4057
|
-
var MATCH_URL = /(
|
|
4076
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4058
4077
|
|
|
4059
|
-
var SoundCloud =
|
|
4078
|
+
var SoundCloud =
|
|
4079
|
+
/*#__PURE__*/
|
|
4080
|
+
function (_Component) {
|
|
4060
4081
|
_inherits(SoundCloud, _Component);
|
|
4061
4082
|
|
|
4062
|
-
var _super = _createSuper(SoundCloud);
|
|
4063
|
-
|
|
4064
4083
|
function SoundCloud() {
|
|
4084
|
+
var _getPrototypeOf2;
|
|
4085
|
+
|
|
4065
4086
|
var _this;
|
|
4066
4087
|
|
|
4067
4088
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4070,7 +4091,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4070
4091
|
args[_key] = arguments[_key];
|
|
4071
4092
|
}
|
|
4072
4093
|
|
|
4073
|
-
_this =
|
|
4094
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4074
4095
|
|
|
4075
4096
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4076
4097
|
|
|
@@ -4191,7 +4212,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4191
4212
|
height: '100%',
|
|
4192
4213
|
display: display
|
|
4193
4214
|
};
|
|
4194
|
-
return
|
|
4215
|
+
return _react["default"].createElement("iframe", {
|
|
4195
4216
|
ref: this.ref,
|
|
4196
4217
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4197
4218
|
style: style,
|
|
@@ -4220,7 +4241,7 @@ exports["default"] = _default;
|
|
|
4220
4241
|
});
|
|
4221
4242
|
|
|
4222
4243
|
unwrapExports(SoundCloud_1);
|
|
4223
|
-
SoundCloud_1.SoundCloud;
|
|
4244
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4224
4245
|
|
|
4225
4246
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4226
4247
|
|
|
@@ -4229,7 +4250,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4229
4250
|
});
|
|
4230
4251
|
exports["default"] = exports.Vimeo = void 0;
|
|
4231
4252
|
|
|
4232
|
-
var _react = _interopRequireWildcard(
|
|
4253
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4233
4254
|
|
|
4234
4255
|
|
|
4235
4256
|
|
|
@@ -4253,16 +4274,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4253
4274
|
|
|
4254
4275
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4255
4276
|
|
|
4256
|
-
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); }; }
|
|
4257
|
-
|
|
4258
4277
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4259
4278
|
|
|
4260
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4261
|
-
|
|
4262
|
-
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; } }
|
|
4263
|
-
|
|
4264
4279
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4265
4280
|
|
|
4281
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4282
|
+
|
|
4266
4283
|
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); }
|
|
4267
4284
|
|
|
4268
4285
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4274,12 +4291,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4274
4291
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4275
4292
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4276
4293
|
|
|
4277
|
-
var Vimeo =
|
|
4294
|
+
var Vimeo =
|
|
4295
|
+
/*#__PURE__*/
|
|
4296
|
+
function (_Component) {
|
|
4278
4297
|
_inherits(Vimeo, _Component);
|
|
4279
4298
|
|
|
4280
|
-
var _super = _createSuper(Vimeo);
|
|
4281
|
-
|
|
4282
4299
|
function Vimeo() {
|
|
4300
|
+
var _getPrototypeOf2;
|
|
4301
|
+
|
|
4283
4302
|
var _this;
|
|
4284
4303
|
|
|
4285
4304
|
_classCallCheck(this, Vimeo);
|
|
@@ -4288,7 +4307,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4288
4307
|
args[_key] = arguments[_key];
|
|
4289
4308
|
}
|
|
4290
4309
|
|
|
4291
|
-
_this =
|
|
4310
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4292
4311
|
|
|
4293
4312
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4294
4313
|
|
|
@@ -4445,7 +4464,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4445
4464
|
overflow: 'hidden',
|
|
4446
4465
|
display: display
|
|
4447
4466
|
};
|
|
4448
|
-
return
|
|
4467
|
+
return _react["default"].createElement("div", {
|
|
4449
4468
|
key: this.props.url,
|
|
4450
4469
|
ref: this.ref,
|
|
4451
4470
|
style: style
|
|
@@ -4476,7 +4495,7 @@ exports["default"] = _default;
|
|
|
4476
4495
|
});
|
|
4477
4496
|
|
|
4478
4497
|
unwrapExports(Vimeo_1);
|
|
4479
|
-
Vimeo_1.Vimeo;
|
|
4498
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4480
4499
|
|
|
4481
4500
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4482
4501
|
|
|
@@ -4485,7 +4504,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4485
4504
|
});
|
|
4486
4505
|
exports["default"] = exports.Facebook = void 0;
|
|
4487
4506
|
|
|
4488
|
-
var _react = _interopRequireWildcard(
|
|
4507
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4489
4508
|
|
|
4490
4509
|
|
|
4491
4510
|
|
|
@@ -4505,16 +4524,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4505
4524
|
|
|
4506
4525
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4507
4526
|
|
|
4508
|
-
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); }; }
|
|
4509
|
-
|
|
4510
4527
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4511
4528
|
|
|
4512
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4513
|
-
|
|
4514
|
-
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; } }
|
|
4515
|
-
|
|
4516
4529
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4517
4530
|
|
|
4531
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4532
|
+
|
|
4518
4533
|
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); }
|
|
4519
4534
|
|
|
4520
4535
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4527,12 +4542,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4527
4542
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4528
4543
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4529
4544
|
|
|
4530
|
-
var Facebook =
|
|
4545
|
+
var Facebook =
|
|
4546
|
+
/*#__PURE__*/
|
|
4547
|
+
function (_Component) {
|
|
4531
4548
|
_inherits(Facebook, _Component);
|
|
4532
4549
|
|
|
4533
|
-
var _super = _createSuper(Facebook);
|
|
4534
|
-
|
|
4535
4550
|
function Facebook() {
|
|
4551
|
+
var _getPrototypeOf2;
|
|
4552
|
+
|
|
4536
4553
|
var _this;
|
|
4537
4554
|
|
|
4538
4555
|
_classCallCheck(this, Facebook);
|
|
@@ -4541,7 +4558,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4541
4558
|
args[_key] = arguments[_key];
|
|
4542
4559
|
}
|
|
4543
4560
|
|
|
4544
|
-
_this =
|
|
4561
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4545
4562
|
|
|
4546
4563
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4547
4564
|
|
|
@@ -4657,7 +4674,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4657
4674
|
width: '100%',
|
|
4658
4675
|
height: '100%'
|
|
4659
4676
|
};
|
|
4660
|
-
return
|
|
4677
|
+
return _react["default"].createElement("div", {
|
|
4661
4678
|
style: style,
|
|
4662
4679
|
id: this.playerID,
|
|
4663
4680
|
className: "fb-video",
|
|
@@ -4688,7 +4705,7 @@ exports["default"] = _default;
|
|
|
4688
4705
|
});
|
|
4689
4706
|
|
|
4690
4707
|
unwrapExports(Facebook_1);
|
|
4691
|
-
Facebook_1.Facebook;
|
|
4708
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4692
4709
|
|
|
4693
4710
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4694
4711
|
|
|
@@ -4697,7 +4714,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4697
4714
|
});
|
|
4698
4715
|
exports["default"] = exports.Streamable = void 0;
|
|
4699
4716
|
|
|
4700
|
-
var _react = _interopRequireWildcard(
|
|
4717
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4701
4718
|
|
|
4702
4719
|
|
|
4703
4720
|
|
|
@@ -4717,16 +4734,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4717
4734
|
|
|
4718
4735
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4719
4736
|
|
|
4720
|
-
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); }; }
|
|
4721
|
-
|
|
4722
4737
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4723
4738
|
|
|
4724
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4725
|
-
|
|
4726
|
-
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; } }
|
|
4727
|
-
|
|
4728
4739
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4729
4740
|
|
|
4741
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4742
|
+
|
|
4730
4743
|
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); }
|
|
4731
4744
|
|
|
4732
4745
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4737,12 +4750,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4737
4750
|
var SDK_GLOBAL = 'playerjs';
|
|
4738
4751
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4739
4752
|
|
|
4740
|
-
var Streamable =
|
|
4753
|
+
var Streamable =
|
|
4754
|
+
/*#__PURE__*/
|
|
4755
|
+
function (_Component) {
|
|
4741
4756
|
_inherits(Streamable, _Component);
|
|
4742
4757
|
|
|
4743
|
-
var _super = _createSuper(Streamable);
|
|
4744
|
-
|
|
4745
4758
|
function Streamable() {
|
|
4759
|
+
var _getPrototypeOf2;
|
|
4760
|
+
|
|
4746
4761
|
var _this;
|
|
4747
4762
|
|
|
4748
4763
|
_classCallCheck(this, Streamable);
|
|
@@ -4751,7 +4766,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4751
4766
|
args[_key] = arguments[_key];
|
|
4752
4767
|
}
|
|
4753
4768
|
|
|
4754
|
-
_this =
|
|
4769
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4755
4770
|
|
|
4756
4771
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4757
4772
|
|
|
@@ -4871,7 +4886,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4871
4886
|
width: '100%',
|
|
4872
4887
|
height: '100%'
|
|
4873
4888
|
};
|
|
4874
|
-
return
|
|
4889
|
+
return _react["default"].createElement("iframe", {
|
|
4875
4890
|
ref: this.ref,
|
|
4876
4891
|
src: "https://streamable.com/o/".concat(id),
|
|
4877
4892
|
frameBorder: "0",
|
|
@@ -4899,7 +4914,7 @@ exports["default"] = _default;
|
|
|
4899
4914
|
});
|
|
4900
4915
|
|
|
4901
4916
|
unwrapExports(Streamable_1);
|
|
4902
|
-
Streamable_1.Streamable;
|
|
4917
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4903
4918
|
|
|
4904
4919
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4905
4920
|
|
|
@@ -4908,7 +4923,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4908
4923
|
});
|
|
4909
4924
|
exports["default"] = exports.Wistia = void 0;
|
|
4910
4925
|
|
|
4911
|
-
var _react = _interopRequireWildcard(
|
|
4926
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4912
4927
|
|
|
4913
4928
|
|
|
4914
4929
|
|
|
@@ -4932,16 +4947,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4932
4947
|
|
|
4933
4948
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4934
4949
|
|
|
4935
|
-
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); }; }
|
|
4936
|
-
|
|
4937
4950
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4938
4951
|
|
|
4939
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4940
|
-
|
|
4941
|
-
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; } }
|
|
4942
|
-
|
|
4943
4952
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4944
4953
|
|
|
4954
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4955
|
+
|
|
4945
4956
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4946
4957
|
|
|
4947
4958
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4952,48 +4963,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4952
4963
|
var SDK_GLOBAL = 'Wistia';
|
|
4953
4964
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4954
4965
|
|
|
4955
|
-
var Wistia =
|
|
4966
|
+
var Wistia =
|
|
4967
|
+
/*#__PURE__*/
|
|
4968
|
+
function (_Component) {
|
|
4956
4969
|
_inherits(Wistia, _Component);
|
|
4957
4970
|
|
|
4958
|
-
var _super = _createSuper(Wistia);
|
|
4959
|
-
|
|
4960
4971
|
function Wistia() {
|
|
4972
|
+
var _getPrototypeOf2;
|
|
4973
|
+
|
|
4961
4974
|
var _this;
|
|
4962
4975
|
|
|
4963
4976
|
_classCallCheck(this, Wistia);
|
|
4964
4977
|
|
|
4965
|
-
for (var _len = arguments.length,
|
|
4966
|
-
|
|
4978
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4979
|
+
args[_key] = arguments[_key];
|
|
4967
4980
|
}
|
|
4968
4981
|
|
|
4969
|
-
_this =
|
|
4982
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4970
4983
|
|
|
4971
4984
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4972
4985
|
|
|
4973
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4974
|
-
var _this$props;
|
|
4975
|
-
|
|
4976
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4977
|
-
});
|
|
4978
|
-
|
|
4979
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4980
|
-
var _this$props2;
|
|
4981
|
-
|
|
4982
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4983
|
-
});
|
|
4984
|
-
|
|
4985
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4986
|
-
var _this$props3;
|
|
4987
|
-
|
|
4988
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4989
|
-
});
|
|
4990
|
-
|
|
4991
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4992
|
-
var _this$props4;
|
|
4993
|
-
|
|
4994
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4995
|
-
});
|
|
4996
|
-
|
|
4997
4986
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4998
4987
|
_this.callPlayer('mute');
|
|
4999
4988
|
});
|
|
@@ -5015,13 +5004,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5015
5004
|
value: function load(url) {
|
|
5016
5005
|
var _this2 = this;
|
|
5017
5006
|
|
|
5018
|
-
var _this$
|
|
5019
|
-
playing = _this$
|
|
5020
|
-
muted = _this$
|
|
5021
|
-
controls = _this$
|
|
5022
|
-
_onReady = _this$
|
|
5023
|
-
|
|
5024
|
-
|
|
5007
|
+
var _this$props = this.props,
|
|
5008
|
+
playing = _this$props.playing,
|
|
5009
|
+
muted = _this$props.muted,
|
|
5010
|
+
controls = _this$props.controls,
|
|
5011
|
+
_onReady = _this$props.onReady,
|
|
5012
|
+
onPlay = _this$props.onPlay,
|
|
5013
|
+
onPause = _this$props.onPause,
|
|
5014
|
+
onSeek = _this$props.onSeek,
|
|
5015
|
+
onEnded = _this$props.onEnded,
|
|
5016
|
+
config = _this$props.config,
|
|
5017
|
+
onError = _this$props.onError;
|
|
5025
5018
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5026
5019
|
window._wq = window._wq || [];
|
|
5027
5020
|
|
|
@@ -5038,28 +5031,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5038
5031
|
|
|
5039
5032
|
_this2.unbind();
|
|
5040
5033
|
|
|
5041
|
-
_this2.player.bind('play',
|
|
5034
|
+
_this2.player.bind('play', onPlay);
|
|
5042
5035
|
|
|
5043
|
-
_this2.player.bind('pause',
|
|
5036
|
+
_this2.player.bind('pause', onPause);
|
|
5044
5037
|
|
|
5045
|
-
_this2.player.bind('seek',
|
|
5038
|
+
_this2.player.bind('seek', onSeek);
|
|
5046
5039
|
|
|
5047
|
-
_this2.player.bind('end',
|
|
5040
|
+
_this2.player.bind('end', onEnded);
|
|
5048
5041
|
|
|
5049
5042
|
_onReady();
|
|
5050
5043
|
}
|
|
5051
5044
|
});
|
|
5052
5045
|
}, onError);
|
|
5053
5046
|
}
|
|
5054
|
-
}, {
|
|
5055
|
-
key: "unbind",
|
|
5056
|
-
value: function unbind() {
|
|
5057
|
-
this.player.unbind('play', this.onPlay);
|
|
5058
|
-
this.player.unbind('pause', this.onPause);
|
|
5059
|
-
this.player.unbind('seek', this.onSeek);
|
|
5060
|
-
this.player.unbind('end', this.onEnded);
|
|
5061
|
-
} // Proxy methods to prevent listener leaks
|
|
5062
|
-
|
|
5063
5047
|
}, {
|
|
5064
5048
|
key: "play",
|
|
5065
5049
|
value: function play() {
|
|
@@ -5070,6 +5054,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5070
5054
|
value: function pause() {
|
|
5071
5055
|
this.callPlayer('pause');
|
|
5072
5056
|
}
|
|
5057
|
+
}, {
|
|
5058
|
+
key: "unbind",
|
|
5059
|
+
value: function unbind() {
|
|
5060
|
+
var _this$props2 = this.props,
|
|
5061
|
+
onPlay = _this$props2.onPlay,
|
|
5062
|
+
onPause = _this$props2.onPause,
|
|
5063
|
+
onSeek = _this$props2.onSeek,
|
|
5064
|
+
onEnded = _this$props2.onEnded;
|
|
5065
|
+
this.player.unbind('play', onPlay);
|
|
5066
|
+
this.player.unbind('pause', onPause);
|
|
5067
|
+
this.player.unbind('seek', onSeek);
|
|
5068
|
+
this.player.unbind('end', onEnded);
|
|
5069
|
+
}
|
|
5073
5070
|
}, {
|
|
5074
5071
|
key: "stop",
|
|
5075
5072
|
value: function stop() {
|
|
@@ -5115,7 +5112,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5115
5112
|
width: '100%',
|
|
5116
5113
|
height: '100%'
|
|
5117
5114
|
};
|
|
5118
|
-
return
|
|
5115
|
+
return _react["default"].createElement("div", {
|
|
5119
5116
|
key: id,
|
|
5120
5117
|
className: className,
|
|
5121
5118
|
style: style
|
|
@@ -5142,7 +5139,7 @@ exports["default"] = _default;
|
|
|
5142
5139
|
});
|
|
5143
5140
|
|
|
5144
5141
|
unwrapExports(Wistia_1);
|
|
5145
|
-
Wistia_1.Wistia;
|
|
5142
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5146
5143
|
|
|
5147
5144
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5148
5145
|
|
|
@@ -5151,7 +5148,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5151
5148
|
});
|
|
5152
5149
|
exports["default"] = exports.Twitch = void 0;
|
|
5153
5150
|
|
|
5154
|
-
var _react = _interopRequireWildcard(
|
|
5151
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5155
5152
|
|
|
5156
5153
|
|
|
5157
5154
|
|
|
@@ -5175,16 +5172,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5175
5172
|
|
|
5176
5173
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5177
5174
|
|
|
5178
|
-
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); }; }
|
|
5179
|
-
|
|
5180
5175
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5181
5176
|
|
|
5182
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5183
|
-
|
|
5184
|
-
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; } }
|
|
5185
|
-
|
|
5186
5177
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5187
5178
|
|
|
5179
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5180
|
+
|
|
5188
5181
|
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); }
|
|
5189
5182
|
|
|
5190
5183
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5197,12 +5190,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5197
5190
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5198
5191
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5199
5192
|
|
|
5200
|
-
var Twitch =
|
|
5193
|
+
var Twitch =
|
|
5194
|
+
/*#__PURE__*/
|
|
5195
|
+
function (_Component) {
|
|
5201
5196
|
_inherits(Twitch, _Component);
|
|
5202
5197
|
|
|
5203
|
-
var _super = _createSuper(Twitch);
|
|
5204
|
-
|
|
5205
5198
|
function Twitch() {
|
|
5199
|
+
var _getPrototypeOf2;
|
|
5200
|
+
|
|
5206
5201
|
var _this;
|
|
5207
5202
|
|
|
5208
5203
|
_classCallCheck(this, Twitch);
|
|
@@ -5211,7 +5206,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5211
5206
|
args[_key] = arguments[_key];
|
|
5212
5207
|
}
|
|
5213
5208
|
|
|
5214
|
-
_this =
|
|
5209
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5215
5210
|
|
|
5216
5211
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5217
5212
|
|
|
@@ -5332,7 +5327,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5332
5327
|
width: '100%',
|
|
5333
5328
|
height: '100%'
|
|
5334
5329
|
};
|
|
5335
|
-
return
|
|
5330
|
+
return _react["default"].createElement("div", {
|
|
5336
5331
|
style: style,
|
|
5337
5332
|
id: this.playerID
|
|
5338
5333
|
});
|
|
@@ -5358,7 +5353,7 @@ exports["default"] = _default;
|
|
|
5358
5353
|
});
|
|
5359
5354
|
|
|
5360
5355
|
unwrapExports(Twitch_1);
|
|
5361
|
-
Twitch_1.Twitch;
|
|
5356
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5362
5357
|
|
|
5363
5358
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5364
5359
|
|
|
@@ -5367,7 +5362,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5367
5362
|
});
|
|
5368
5363
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5369
5364
|
|
|
5370
|
-
var _react = _interopRequireWildcard(
|
|
5365
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5371
5366
|
|
|
5372
5367
|
|
|
5373
5368
|
|
|
@@ -5385,15 +5380,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5385
5380
|
|
|
5386
5381
|
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; }
|
|
5387
5382
|
|
|
5388
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5389
|
-
|
|
5390
|
-
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."); }
|
|
5383
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5391
5384
|
|
|
5392
|
-
function
|
|
5385
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5393
5386
|
|
|
5394
|
-
function
|
|
5395
|
-
|
|
5396
|
-
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; }
|
|
5387
|
+
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; }
|
|
5397
5388
|
|
|
5398
5389
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5399
5390
|
|
|
@@ -5403,16 +5394,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5403
5394
|
|
|
5404
5395
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5405
5396
|
|
|
5406
|
-
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); }; }
|
|
5407
|
-
|
|
5408
5397
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5409
5398
|
|
|
5410
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5411
|
-
|
|
5412
|
-
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; } }
|
|
5413
|
-
|
|
5414
5399
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5415
5400
|
|
|
5401
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5402
|
+
|
|
5416
5403
|
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); }
|
|
5417
5404
|
|
|
5418
5405
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5424,12 +5411,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5424
5411
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5425
5412
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5426
5413
|
|
|
5427
|
-
var DailyMotion =
|
|
5414
|
+
var DailyMotion =
|
|
5415
|
+
/*#__PURE__*/
|
|
5416
|
+
function (_Component) {
|
|
5428
5417
|
_inherits(DailyMotion, _Component);
|
|
5429
5418
|
|
|
5430
|
-
var _super = _createSuper(DailyMotion);
|
|
5431
|
-
|
|
5432
5419
|
function DailyMotion() {
|
|
5420
|
+
var _getPrototypeOf2;
|
|
5421
|
+
|
|
5433
5422
|
var _this;
|
|
5434
5423
|
|
|
5435
5424
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5438,7 +5427,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5438
5427
|
args[_key] = arguments[_key];
|
|
5439
5428
|
}
|
|
5440
5429
|
|
|
5441
|
-
_this =
|
|
5430
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5442
5431
|
|
|
5443
5432
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5444
5433
|
|
|
@@ -5567,9 +5556,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5567
5556
|
height: '100%',
|
|
5568
5557
|
display: display
|
|
5569
5558
|
};
|
|
5570
|
-
return
|
|
5559
|
+
return _react["default"].createElement("div", {
|
|
5571
5560
|
style: style
|
|
5572
|
-
},
|
|
5561
|
+
}, _react["default"].createElement("div", {
|
|
5573
5562
|
ref: this.ref
|
|
5574
5563
|
}));
|
|
5575
5564
|
}
|
|
@@ -5594,7 +5583,7 @@ exports["default"] = _default;
|
|
|
5594
5583
|
});
|
|
5595
5584
|
|
|
5596
5585
|
unwrapExports(DailyMotion_1);
|
|
5597
|
-
DailyMotion_1.DailyMotion;
|
|
5586
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5598
5587
|
|
|
5599
5588
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5600
5589
|
|
|
@@ -5603,7 +5592,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5603
5592
|
});
|
|
5604
5593
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5605
5594
|
|
|
5606
|
-
var _react = _interopRequireWildcard(
|
|
5595
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5607
5596
|
|
|
5608
5597
|
|
|
5609
5598
|
|
|
@@ -5627,16 +5616,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5627
5616
|
|
|
5628
5617
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5629
5618
|
|
|
5630
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5631
|
-
|
|
5632
5619
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5633
5620
|
|
|
5634
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5635
|
-
|
|
5636
|
-
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; } }
|
|
5637
|
-
|
|
5638
5621
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5639
5622
|
|
|
5623
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5624
|
+
|
|
5640
5625
|
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); }
|
|
5641
5626
|
|
|
5642
5627
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5647,12 +5632,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5647
5632
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5648
5633
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5649
5634
|
|
|
5650
|
-
var Mixcloud =
|
|
5635
|
+
var Mixcloud =
|
|
5636
|
+
/*#__PURE__*/
|
|
5637
|
+
function (_Component) {
|
|
5651
5638
|
_inherits(Mixcloud, _Component);
|
|
5652
5639
|
|
|
5653
|
-
var _super = _createSuper(Mixcloud);
|
|
5654
|
-
|
|
5655
5640
|
function Mixcloud() {
|
|
5641
|
+
var _getPrototypeOf2;
|
|
5642
|
+
|
|
5656
5643
|
var _this;
|
|
5657
5644
|
|
|
5658
5645
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5661,7 +5648,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5661
5648
|
args[_key] = arguments[_key];
|
|
5662
5649
|
}
|
|
5663
5650
|
|
|
5664
|
-
_this =
|
|
5651
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5665
5652
|
|
|
5666
5653
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5667
5654
|
|
|
@@ -5764,7 +5751,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5764
5751
|
})); // We have to give the iframe a key here to prevent a
|
|
5765
5752
|
// weird dialog appearing when loading a new track
|
|
5766
5753
|
|
|
5767
|
-
return
|
|
5754
|
+
return _react["default"].createElement("iframe", {
|
|
5768
5755
|
key: id,
|
|
5769
5756
|
ref: this.ref,
|
|
5770
5757
|
style: style,
|
|
@@ -5793,7 +5780,7 @@ exports["default"] = _default;
|
|
|
5793
5780
|
});
|
|
5794
5781
|
|
|
5795
5782
|
unwrapExports(Mixcloud_1);
|
|
5796
|
-
Mixcloud_1.Mixcloud;
|
|
5783
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5797
5784
|
|
|
5798
5785
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5799
5786
|
|
|
@@ -5802,7 +5789,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5802
5789
|
});
|
|
5803
5790
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5804
5791
|
|
|
5805
|
-
var _react = _interopRequireWildcard(
|
|
5792
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5806
5793
|
|
|
5807
5794
|
|
|
5808
5795
|
|
|
@@ -5824,33 +5811,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5824
5811
|
|
|
5825
5812
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5826
5813
|
|
|
5827
|
-
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); }; }
|
|
5828
|
-
|
|
5829
5814
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5830
5815
|
|
|
5831
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5832
|
-
|
|
5833
|
-
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; } }
|
|
5834
|
-
|
|
5835
5816
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5836
5817
|
|
|
5818
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5819
|
+
|
|
5837
5820
|
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); }
|
|
5838
5821
|
|
|
5839
5822
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5840
5823
|
|
|
5841
5824
|
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; }
|
|
5842
5825
|
|
|
5843
|
-
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; } } }; }
|
|
5844
|
-
|
|
5845
|
-
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); }
|
|
5846
|
-
|
|
5847
|
-
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; }
|
|
5848
|
-
|
|
5849
5826
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5850
5827
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5851
5828
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5852
5829
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5853
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5830
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5854
5831
|
var HLS_GLOBAL = 'Hls';
|
|
5855
5832
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5856
5833
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5859,11 +5836,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5859
5836
|
|
|
5860
5837
|
function canPlay(url) {
|
|
5861
5838
|
if (url instanceof Array) {
|
|
5862
|
-
var
|
|
5863
|
-
|
|
5839
|
+
var _iteratorNormalCompletion = true;
|
|
5840
|
+
var _didIteratorError = false;
|
|
5841
|
+
var _iteratorError = undefined;
|
|
5864
5842
|
|
|
5865
5843
|
try {
|
|
5866
|
-
for (_iterator.
|
|
5844
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5867
5845
|
var item = _step.value;
|
|
5868
5846
|
|
|
5869
5847
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5875,9 +5853,18 @@ function canPlay(url) {
|
|
|
5875
5853
|
}
|
|
5876
5854
|
}
|
|
5877
5855
|
} catch (err) {
|
|
5878
|
-
|
|
5856
|
+
_didIteratorError = true;
|
|
5857
|
+
_iteratorError = err;
|
|
5879
5858
|
} finally {
|
|
5880
|
-
|
|
5859
|
+
try {
|
|
5860
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5861
|
+
_iterator["return"]();
|
|
5862
|
+
}
|
|
5863
|
+
} finally {
|
|
5864
|
+
if (_didIteratorError) {
|
|
5865
|
+
throw _iteratorError;
|
|
5866
|
+
}
|
|
5867
|
+
}
|
|
5881
5868
|
}
|
|
5882
5869
|
|
|
5883
5870
|
return false;
|
|
@@ -5901,12 +5888,14 @@ function canEnablePIP(url) {
|
|
|
5901
5888
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5902
5889
|
}
|
|
5903
5890
|
|
|
5904
|
-
var FilePlayer =
|
|
5891
|
+
var FilePlayer =
|
|
5892
|
+
/*#__PURE__*/
|
|
5893
|
+
function (_Component) {
|
|
5905
5894
|
_inherits(FilePlayer, _Component);
|
|
5906
5895
|
|
|
5907
|
-
var _super = _createSuper(FilePlayer);
|
|
5908
|
-
|
|
5909
5896
|
function FilePlayer() {
|
|
5897
|
+
var _getPrototypeOf2;
|
|
5898
|
+
|
|
5910
5899
|
var _this;
|
|
5911
5900
|
|
|
5912
5901
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5915,7 +5904,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5915
5904
|
_args[_key] = arguments[_key];
|
|
5916
5905
|
}
|
|
5917
5906
|
|
|
5918
|
-
_this =
|
|
5907
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5919
5908
|
|
|
5920
5909
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5921
5910
|
var _this$props;
|
|
@@ -6002,19 +5991,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6002
5991
|
|
|
6003
5992
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6004
5993
|
if (typeof source === 'string') {
|
|
6005
|
-
return
|
|
5994
|
+
return _react["default"].createElement("source", {
|
|
6006
5995
|
key: index,
|
|
6007
5996
|
src: source
|
|
6008
5997
|
});
|
|
6009
5998
|
}
|
|
6010
5999
|
|
|
6011
|
-
return
|
|
6000
|
+
return _react["default"].createElement("source", _extends({
|
|
6012
6001
|
key: index
|
|
6013
6002
|
}, source));
|
|
6014
6003
|
});
|
|
6015
6004
|
|
|
6016
6005
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6017
|
-
return
|
|
6006
|
+
return _react["default"].createElement("track", _extends({
|
|
6018
6007
|
key: index
|
|
6019
6008
|
}, track));
|
|
6020
6009
|
});
|
|
@@ -6052,10 +6041,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6052
6041
|
key: "componentWillUnmount",
|
|
6053
6042
|
value: function componentWillUnmount() {
|
|
6054
6043
|
this.removeListeners(this.player);
|
|
6055
|
-
|
|
6056
|
-
if (this.hls) {
|
|
6057
|
-
this.hls.destroy();
|
|
6058
|
-
}
|
|
6059
6044
|
}
|
|
6060
6045
|
}, {
|
|
6061
6046
|
key: "addListeners",
|
|
@@ -6186,6 +6171,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6186
6171
|
value: function stop() {
|
|
6187
6172
|
this.player.removeAttribute('src');
|
|
6188
6173
|
|
|
6174
|
+
if (this.hls) {
|
|
6175
|
+
this.hls.destroy();
|
|
6176
|
+
}
|
|
6177
|
+
|
|
6189
6178
|
if (this.dash) {
|
|
6190
6179
|
this.dash.reset();
|
|
6191
6180
|
}
|
|
@@ -6297,7 +6286,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6297
6286
|
width: width === 'auto' ? width : '100%',
|
|
6298
6287
|
height: height === 'auto' ? height : '100%'
|
|
6299
6288
|
};
|
|
6300
|
-
return
|
|
6289
|
+
return _react["default"].createElement(Element, _extends({
|
|
6301
6290
|
ref: this.ref,
|
|
6302
6291
|
src: this.getSource(url),
|
|
6303
6292
|
style: style,
|
|
@@ -6327,7 +6316,7 @@ exports["default"] = _default;
|
|
|
6327
6316
|
});
|
|
6328
6317
|
|
|
6329
6318
|
unwrapExports(FilePlayer_1);
|
|
6330
|
-
FilePlayer_1.FilePlayer;
|
|
6319
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6331
6320
|
|
|
6332
6321
|
var players = createCommonjsModule(function (module, exports) {
|
|
6333
6322
|
|
|
@@ -6369,7 +6358,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6369
6358
|
});
|
|
6370
6359
|
exports["default"] = void 0;
|
|
6371
6360
|
|
|
6372
|
-
var _react = _interopRequireWildcard(
|
|
6361
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6373
6362
|
|
|
6374
6363
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6375
6364
|
|
|
@@ -6387,16 +6376,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6387
6376
|
|
|
6388
6377
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6389
6378
|
|
|
6390
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6391
|
-
|
|
6392
6379
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6393
6380
|
|
|
6394
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6395
|
-
|
|
6396
|
-
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; } }
|
|
6397
|
-
|
|
6398
6381
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6399
6382
|
|
|
6383
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6384
|
+
|
|
6400
6385
|
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); }
|
|
6401
6386
|
|
|
6402
6387
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6405,12 +6390,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6405
6390
|
|
|
6406
6391
|
var ICON_SIZE = '64px';
|
|
6407
6392
|
|
|
6408
|
-
var Preview =
|
|
6393
|
+
var Preview =
|
|
6394
|
+
/*#__PURE__*/
|
|
6395
|
+
function (_Component) {
|
|
6409
6396
|
_inherits(Preview, _Component);
|
|
6410
6397
|
|
|
6411
|
-
var _super = _createSuper(Preview);
|
|
6412
|
-
|
|
6413
6398
|
function Preview() {
|
|
6399
|
+
var _getPrototypeOf2;
|
|
6400
|
+
|
|
6414
6401
|
var _this;
|
|
6415
6402
|
|
|
6416
6403
|
_classCallCheck(this, Preview);
|
|
@@ -6419,7 +6406,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6419
6406
|
args[_key] = arguments[_key];
|
|
6420
6407
|
}
|
|
6421
6408
|
|
|
6422
|
-
_this =
|
|
6409
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6423
6410
|
|
|
6424
6411
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6425
6412
|
|
|
@@ -6517,15 +6504,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6517
6504
|
}
|
|
6518
6505
|
};
|
|
6519
6506
|
|
|
6520
|
-
var defaultPlayIcon =
|
|
6507
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6521
6508
|
style: styles.shadow,
|
|
6522
6509
|
className: "react-player__shadow"
|
|
6523
|
-
},
|
|
6510
|
+
}, _react["default"].createElement("div", {
|
|
6524
6511
|
style: styles.playIcon,
|
|
6525
6512
|
className: "react-player__play-icon"
|
|
6526
6513
|
}));
|
|
6527
6514
|
|
|
6528
|
-
return
|
|
6515
|
+
return _react["default"].createElement("div", {
|
|
6529
6516
|
style: styles.preview,
|
|
6530
6517
|
className: "react-player__preview",
|
|
6531
6518
|
onClick: onClick
|
|
@@ -6548,7 +6535,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6548
6535
|
});
|
|
6549
6536
|
exports["default"] = renderPreloadPlayers;
|
|
6550
6537
|
|
|
6551
|
-
var _react = _interopRequireDefault(
|
|
6538
|
+
var _react = _interopRequireDefault(React__default);
|
|
6552
6539
|
|
|
6553
6540
|
var _Player = _interopRequireDefault(Player_1);
|
|
6554
6541
|
|
|
@@ -6562,12 +6549,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6562
6549
|
|
|
6563
6550
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6564
6551
|
|
|
6565
|
-
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; } } }; }
|
|
6566
|
-
|
|
6567
|
-
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); }
|
|
6568
|
-
|
|
6569
|
-
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; }
|
|
6570
|
-
|
|
6571
6552
|
var PRELOAD_PLAYERS = [{
|
|
6572
6553
|
Player: YouTube_1.YouTube,
|
|
6573
6554
|
configKey: 'youtube',
|
|
@@ -6588,16 +6569,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6588
6569
|
|
|
6589
6570
|
function renderPreloadPlayers(url, controls, config) {
|
|
6590
6571
|
var players = [];
|
|
6591
|
-
|
|
6592
|
-
var
|
|
6593
|
-
|
|
6572
|
+
var _iteratorNormalCompletion = true;
|
|
6573
|
+
var _didIteratorError = false;
|
|
6574
|
+
var _iteratorError = undefined;
|
|
6594
6575
|
|
|
6595
6576
|
try {
|
|
6596
|
-
for (_iterator.
|
|
6577
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6597
6578
|
var player = _step.value;
|
|
6598
6579
|
|
|
6599
6580
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6600
|
-
players.push(
|
|
6581
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6601
6582
|
key: player.Player.displayName,
|
|
6602
6583
|
activePlayer: player.Player,
|
|
6603
6584
|
url: player.url,
|
|
@@ -6609,9 +6590,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6609
6590
|
}
|
|
6610
6591
|
}
|
|
6611
6592
|
} catch (err) {
|
|
6612
|
-
|
|
6593
|
+
_didIteratorError = true;
|
|
6594
|
+
_iteratorError = err;
|
|
6613
6595
|
} finally {
|
|
6614
|
-
|
|
6596
|
+
try {
|
|
6597
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6598
|
+
_iterator["return"]();
|
|
6599
|
+
}
|
|
6600
|
+
} finally {
|
|
6601
|
+
if (_didIteratorError) {
|
|
6602
|
+
throw _iteratorError;
|
|
6603
|
+
}
|
|
6604
|
+
}
|
|
6615
6605
|
}
|
|
6616
6606
|
|
|
6617
6607
|
return players;
|
|
@@ -6687,7 +6677,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6687
6677
|
});
|
|
6688
6678
|
exports["default"] = void 0;
|
|
6689
6679
|
|
|
6690
|
-
var _react = _interopRequireWildcard(
|
|
6680
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6691
6681
|
|
|
6692
6682
|
|
|
6693
6683
|
|
|
@@ -6735,17 +6725,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6735
6725
|
|
|
6736
6726
|
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); }
|
|
6737
6727
|
|
|
6738
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6739
|
-
|
|
6740
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6741
|
-
|
|
6742
|
-
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); }
|
|
6728
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6743
6729
|
|
|
6744
|
-
function
|
|
6730
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6745
6731
|
|
|
6746
|
-
function
|
|
6732
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6747
6733
|
|
|
6748
|
-
function
|
|
6734
|
+
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; } }
|
|
6749
6735
|
|
|
6750
6736
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6751
6737
|
|
|
@@ -6753,16 +6739,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6753
6739
|
|
|
6754
6740
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6755
6741
|
|
|
6756
|
-
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); }; }
|
|
6757
|
-
|
|
6758
6742
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6759
6743
|
|
|
6760
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6761
|
-
|
|
6762
|
-
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; } }
|
|
6763
|
-
|
|
6764
6744
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6765
6745
|
|
|
6746
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6747
|
+
|
|
6766
6748
|
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); }
|
|
6767
6749
|
|
|
6768
6750
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6772,12 +6754,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6772
6754
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6773
6755
|
var customPlayers = [];
|
|
6774
6756
|
|
|
6775
|
-
var ReactPlayer =
|
|
6757
|
+
var ReactPlayer =
|
|
6758
|
+
/*#__PURE__*/
|
|
6759
|
+
function (_Component) {
|
|
6776
6760
|
_inherits(ReactPlayer, _Component);
|
|
6777
6761
|
|
|
6778
|
-
var _super = _createSuper(ReactPlayer);
|
|
6779
|
-
|
|
6780
6762
|
function ReactPlayer() {
|
|
6763
|
+
var _getPrototypeOf2;
|
|
6764
|
+
|
|
6781
6765
|
var _this;
|
|
6782
6766
|
|
|
6783
6767
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6786,7 +6770,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6786
6770
|
args[_key] = arguments[_key];
|
|
6787
6771
|
}
|
|
6788
6772
|
|
|
6789
|
-
_this =
|
|
6773
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6790
6774
|
|
|
6791
6775
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6792
6776
|
|
|
@@ -6897,7 +6881,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6897
6881
|
key: "renderActivePlayer",
|
|
6898
6882
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6899
6883
|
if (!url) return null;
|
|
6900
|
-
return
|
|
6884
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6901
6885
|
key: activePlayer.displayName,
|
|
6902
6886
|
ref: this.activePlayerRef,
|
|
6903
6887
|
config: this.config,
|
|
@@ -6934,14 +6918,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6934
6918
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6935
6919
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6936
6920
|
|
|
6937
|
-
var preview =
|
|
6921
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6938
6922
|
url: url,
|
|
6939
6923
|
light: light,
|
|
6940
6924
|
playIcon: playIcon,
|
|
6941
6925
|
onClick: this.handleClickPreview
|
|
6942
6926
|
});
|
|
6943
6927
|
|
|
6944
|
-
return
|
|
6928
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6945
6929
|
ref: this.wrapperRef,
|
|
6946
6930
|
style: _objectSpread({}, style, {
|
|
6947
6931
|
width: width,
|
|
@@ -7001,20 +6985,20 @@ var Audio = function Audio(_ref) {
|
|
|
7001
6985
|
var node = _ref.node;
|
|
7002
6986
|
|
|
7003
6987
|
if (node.uploadAudio) {
|
|
7004
|
-
return
|
|
6988
|
+
return React__default.createElement(
|
|
7005
6989
|
'div',
|
|
7006
6990
|
{ className: 'audio d-block text-center mb-3' },
|
|
7007
|
-
|
|
6991
|
+
React__default.createElement(
|
|
7008
6992
|
'audio',
|
|
7009
6993
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7010
|
-
|
|
7011
|
-
|
|
6994
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
6995
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7012
6996
|
'Your browser does not support the audio element.'
|
|
7013
6997
|
),
|
|
7014
|
-
node.caption &&
|
|
6998
|
+
node.caption && React__default.createElement(
|
|
7015
6999
|
'p',
|
|
7016
7000
|
{ style: { fontSize: '.9rem' } },
|
|
7017
|
-
|
|
7001
|
+
React__default.createElement(
|
|
7018
7002
|
'em',
|
|
7019
7003
|
null,
|
|
7020
7004
|
node.caption
|
|
@@ -7024,15 +7008,15 @@ var Audio = function Audio(_ref) {
|
|
|
7024
7008
|
} else if (node.audioFilePth) {
|
|
7025
7009
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7026
7010
|
if (hostname === 'embeds.audioboom.com') {
|
|
7027
|
-
return
|
|
7011
|
+
return React__default.createElement(
|
|
7028
7012
|
'div',
|
|
7029
7013
|
null,
|
|
7030
|
-
|
|
7014
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7031
7015
|
' ',
|
|
7032
|
-
node.caption &&
|
|
7016
|
+
node.caption && React__default.createElement(
|
|
7033
7017
|
'p',
|
|
7034
7018
|
{ style: { fontSize: '.9rem' } },
|
|
7035
|
-
|
|
7019
|
+
React__default.createElement(
|
|
7036
7020
|
'em',
|
|
7037
7021
|
null,
|
|
7038
7022
|
node.caption
|
|
@@ -7040,14 +7024,14 @@ var Audio = function Audio(_ref) {
|
|
|
7040
7024
|
)
|
|
7041
7025
|
);
|
|
7042
7026
|
}
|
|
7043
|
-
return
|
|
7027
|
+
return React__default.createElement(
|
|
7044
7028
|
'div',
|
|
7045
7029
|
{ className: 'audio' },
|
|
7046
|
-
|
|
7047
|
-
node.caption &&
|
|
7030
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7031
|
+
node.caption && React__default.createElement(
|
|
7048
7032
|
'p',
|
|
7049
7033
|
{ style: { fontSize: '.9rem' } },
|
|
7050
|
-
|
|
7034
|
+
React__default.createElement(
|
|
7051
7035
|
'em',
|
|
7052
7036
|
null,
|
|
7053
7037
|
node.caption
|
|
@@ -7065,34 +7049,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7065
7049
|
var profileImage = arguments[6];
|
|
7066
7050
|
|
|
7067
7051
|
if (authorName && authorURL) {
|
|
7068
|
-
return
|
|
7052
|
+
return React__default.createElement(
|
|
7069
7053
|
'span',
|
|
7070
7054
|
null,
|
|
7071
|
-
|
|
7055
|
+
React__default.createElement(
|
|
7072
7056
|
'a',
|
|
7073
7057
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7074
7058
|
authorName
|
|
7075
7059
|
),
|
|
7076
|
-
|
|
7060
|
+
React__default.createElement(
|
|
7077
7061
|
Card,
|
|
7078
7062
|
{ className: 'author-details-card-' + index },
|
|
7079
|
-
|
|
7063
|
+
React__default.createElement(
|
|
7080
7064
|
Row,
|
|
7081
7065
|
null,
|
|
7082
|
-
profileImage &&
|
|
7066
|
+
profileImage && React__default.createElement(
|
|
7083
7067
|
Col,
|
|
7084
7068
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7085
|
-
|
|
7069
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7086
7070
|
),
|
|
7087
|
-
|
|
7071
|
+
React__default.createElement(
|
|
7088
7072
|
Col,
|
|
7089
7073
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7090
|
-
|
|
7074
|
+
React__default.createElement(
|
|
7091
7075
|
'div',
|
|
7092
7076
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7093
7077
|
authorName
|
|
7094
7078
|
),
|
|
7095
|
-
|
|
7079
|
+
React__default.createElement(
|
|
7096
7080
|
'p',
|
|
7097
7081
|
null,
|
|
7098
7082
|
biography
|
|
@@ -7100,7 +7084,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7100
7084
|
)
|
|
7101
7085
|
)
|
|
7102
7086
|
),
|
|
7103
|
-
|
|
7087
|
+
React__default.createElement(
|
|
7104
7088
|
'style',
|
|
7105
7089
|
{ jsx: 'true' },
|
|
7106
7090
|
'\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 '
|
|
@@ -7108,7 +7092,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7108
7092
|
length !== index + 1 && ' , '
|
|
7109
7093
|
);
|
|
7110
7094
|
} else if (authorName) {
|
|
7111
|
-
return
|
|
7095
|
+
return React__default.createElement(
|
|
7112
7096
|
'span',
|
|
7113
7097
|
{ key: index },
|
|
7114
7098
|
authorName,
|
|
@@ -7263,8 +7247,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7263
7247
|
var duration = player.getDuration();
|
|
7264
7248
|
var queue = Math.floor(duration / 10);
|
|
7265
7249
|
var segment = Math.floor(current / queue);
|
|
7266
|
-
Beam.report_beam_video('Ready',
|
|
7267
|
-
Segment.report_video_event('Video Ready',
|
|
7250
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
7251
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
7268
7252
|
//autoplay
|
|
7269
7253
|
|
|
7270
7254
|
//Small pause before starting next video
|
|
@@ -7284,8 +7268,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7284
7268
|
var queue = Math.floor(duration / 10);
|
|
7285
7269
|
var segment = Math.floor(current / queue);
|
|
7286
7270
|
|
|
7287
|
-
Beam.report_beam_video('End',
|
|
7288
|
-
Segment.report_video_event('Video End',
|
|
7271
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
7272
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
7289
7273
|
setEndReported(true);
|
|
7290
7274
|
clearInterval(intervalID);
|
|
7291
7275
|
}
|
|
@@ -7335,8 +7319,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7335
7319
|
var queue = Math.floor(duration / 10);
|
|
7336
7320
|
var segment = Math.floor(current / queue);
|
|
7337
7321
|
if (!queueProgress.includes(segment)) {
|
|
7338
|
-
Beam.report_beam_video('Segment',
|
|
7339
|
-
Segment.report_video_event('Video Segment',
|
|
7322
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
7323
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
7340
7324
|
queueProgress.push(segment);
|
|
7341
7325
|
}
|
|
7342
7326
|
};
|
|
@@ -7349,8 +7333,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7349
7333
|
var queue = Math.floor(duration / 10);
|
|
7350
7334
|
var segment = Math.floor(current / queue);
|
|
7351
7335
|
|
|
7352
|
-
Beam.report_beam_video('Play',
|
|
7353
|
-
Segment.report_video_event('Video Play',
|
|
7336
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
7337
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
7354
7338
|
|
|
7355
7339
|
if (!playReported) {
|
|
7356
7340
|
setPlayReported(true);
|
|
@@ -7368,8 +7352,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7368
7352
|
var queue = Math.floor(duration / 10);
|
|
7369
7353
|
var segment = Math.floor(current / queue);
|
|
7370
7354
|
|
|
7371
|
-
Beam.report_beam_video('Pause',
|
|
7372
|
-
Segment.report_video_event('Video Pause',
|
|
7355
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
7356
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
7373
7357
|
};
|
|
7374
7358
|
|
|
7375
7359
|
// Youtube Options
|
|
@@ -7380,44 +7364,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7380
7364
|
}
|
|
7381
7365
|
};
|
|
7382
7366
|
|
|
7383
|
-
return
|
|
7367
|
+
return React__default.createElement(
|
|
7384
7368
|
'div',
|
|
7385
7369
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7386
|
-
|
|
7370
|
+
React__default.createElement(
|
|
7387
7371
|
'div',
|
|
7388
7372
|
{ className: 'mt-2 mb-5' },
|
|
7389
|
-
series &&
|
|
7373
|
+
series && React__default.createElement(
|
|
7390
7374
|
'div',
|
|
7391
7375
|
{ style: { fontSize: '0.9rem' } },
|
|
7392
7376
|
article.title,
|
|
7393
7377
|
' - Episode ',
|
|
7394
7378
|
series
|
|
7395
7379
|
),
|
|
7396
|
-
Videos[series - 1] &&
|
|
7380
|
+
Videos[series - 1] && React__default.createElement(
|
|
7397
7381
|
'h1',
|
|
7398
7382
|
{ className: 'mb-3' },
|
|
7399
7383
|
Videos[series - 1].title
|
|
7400
7384
|
),
|
|
7401
|
-
|
|
7385
|
+
React__default.createElement(
|
|
7402
7386
|
'div',
|
|
7403
7387
|
null,
|
|
7404
7388
|
moment(article.published).format('LL')
|
|
7405
7389
|
),
|
|
7406
|
-
|
|
7390
|
+
React__default.createElement(
|
|
7407
7391
|
'div',
|
|
7408
7392
|
{ className: 'mb-3' },
|
|
7409
7393
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7410
|
-
return
|
|
7394
|
+
return React__default.createElement(
|
|
7411
7395
|
'span',
|
|
7412
7396
|
{ key: index },
|
|
7413
7397
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7414
7398
|
);
|
|
7415
7399
|
})
|
|
7416
7400
|
),
|
|
7417
|
-
|
|
7401
|
+
React__default.createElement(
|
|
7418
7402
|
'p',
|
|
7419
7403
|
null,
|
|
7420
|
-
|
|
7404
|
+
React__default.createElement(SocialShare, {
|
|
7421
7405
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7422
7406
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7423
7407
|
shareVia: meta.shareVia,
|
|
@@ -7432,20 +7416,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7432
7416
|
hideFacebook: meta.hideFBShare
|
|
7433
7417
|
})
|
|
7434
7418
|
),
|
|
7435
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7419
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7436
7420
|
'p',
|
|
7437
7421
|
{ className: 'mb-3' },
|
|
7438
|
-
|
|
7422
|
+
React__default.createElement(
|
|
7439
7423
|
'em',
|
|
7440
7424
|
null,
|
|
7441
7425
|
Videos[series - 1].intro
|
|
7442
7426
|
)
|
|
7443
7427
|
)
|
|
7444
7428
|
),
|
|
7445
|
-
|
|
7429
|
+
React__default.createElement(
|
|
7446
7430
|
'div',
|
|
7447
7431
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7448
|
-
vidUrl && vidType == 'youtube' &&
|
|
7432
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7449
7433
|
className: 'fluid-iframe',
|
|
7450
7434
|
videoId: getYoutubeId(vidUrl),
|
|
7451
7435
|
opts: opts,
|
|
@@ -7456,10 +7440,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7456
7440
|
return handleOnEnd(e);
|
|
7457
7441
|
}
|
|
7458
7442
|
}),
|
|
7459
|
-
vidUrl && vidType == 'mp4' &&
|
|
7460
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7461
|
-
|
|
7462
|
-
series &&
|
|
7443
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7444
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7445
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7446
|
+
series && React__default.createElement(
|
|
7463
7447
|
'div',
|
|
7464
7448
|
{
|
|
7465
7449
|
className: 'vid-series',
|
|
@@ -7469,10 +7453,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7469
7453
|
maxHeight: '100%',
|
|
7470
7454
|
paddingBottom: '0'
|
|
7471
7455
|
} },
|
|
7472
|
-
|
|
7456
|
+
React__default.createElement(
|
|
7473
7457
|
'p',
|
|
7474
7458
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7475
|
-
|
|
7459
|
+
React__default.createElement(
|
|
7476
7460
|
'b',
|
|
7477
7461
|
{ style: { fontSize: '1.25em' } },
|
|
7478
7462
|
'Now Playing:'
|
|
@@ -7480,16 +7464,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7480
7464
|
' ',
|
|
7481
7465
|
seriesData[series ? series - 1 : 0].title
|
|
7482
7466
|
),
|
|
7483
|
-
vidUrl &&
|
|
7467
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7484
7468
|
)
|
|
7485
7469
|
),
|
|
7486
|
-
|
|
7487
|
-
|
|
7470
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7471
|
+
React__default.createElement(
|
|
7488
7472
|
'div',
|
|
7489
7473
|
{ className: 'vid-text' },
|
|
7490
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7474
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7491
7475
|
),
|
|
7492
|
-
|
|
7476
|
+
React__default.createElement(
|
|
7493
7477
|
'style',
|
|
7494
7478
|
{ jsx: 'true' },
|
|
7495
7479
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7497,14 +7481,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7497
7481
|
);
|
|
7498
7482
|
};
|
|
7499
7483
|
|
|
7500
|
-
var Poll
|
|
7501
|
-
var node = _ref.node
|
|
7502
|
-
_ref.client
|
|
7503
|
-
_ref.pageview
|
|
7504
|
-
_ref.videoAccountIDs
|
|
7505
|
-
|
|
7506
|
-
_ref.showVotes
|
|
7507
|
-
|
|
7484
|
+
var Poll = function Poll(_ref) {
|
|
7485
|
+
var node = _ref.node,
|
|
7486
|
+
client = _ref.client,
|
|
7487
|
+
pageview = _ref.pageview,
|
|
7488
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7489
|
+
onVote = _ref.onVote,
|
|
7490
|
+
_ref$showVotes = _ref.showVotes,
|
|
7491
|
+
getSerializers = _ref.getSerializers;
|
|
7508
7492
|
|
|
7509
7493
|
var _useState = useState(null),
|
|
7510
7494
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7542,67 +7526,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7542
7526
|
return acc;
|
|
7543
7527
|
}
|
|
7544
7528
|
}, 0);
|
|
7545
|
-
return
|
|
7546
|
-
|
|
7529
|
+
return React__default.createElement(
|
|
7530
|
+
React__default.Fragment,
|
|
7547
7531
|
null,
|
|
7548
|
-
question &&
|
|
7532
|
+
question && React__default.createElement(
|
|
7549
7533
|
'p',
|
|
7550
7534
|
{ className: 'font-weight-bold' },
|
|
7551
7535
|
question
|
|
7552
7536
|
),
|
|
7553
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7537
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7554
7538
|
'form',
|
|
7555
7539
|
{ onSubmit: function onSubmit(e) {
|
|
7556
7540
|
return onSubmitPoll(e);
|
|
7557
7541
|
} },
|
|
7558
7542
|
choices && choices.map(function (choice) {
|
|
7559
|
-
return
|
|
7543
|
+
return React__default.createElement(
|
|
7560
7544
|
'div',
|
|
7561
7545
|
{ key: choice._key },
|
|
7562
|
-
|
|
7546
|
+
React__default.createElement(
|
|
7563
7547
|
'label',
|
|
7564
7548
|
{ className: 'pl-2' },
|
|
7565
|
-
|
|
7549
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7566
7550
|
return setSelectedChoice(e.target.value);
|
|
7567
7551
|
} }),
|
|
7568
7552
|
' ' + choice.choiceText
|
|
7569
7553
|
)
|
|
7570
7554
|
);
|
|
7571
7555
|
}),
|
|
7572
|
-
|
|
7556
|
+
React__default.createElement(
|
|
7573
7557
|
Button,
|
|
7574
7558
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7575
7559
|
'Vote'
|
|
7576
7560
|
)
|
|
7577
7561
|
),
|
|
7578
|
-
|
|
7562
|
+
React__default.createElement(
|
|
7579
7563
|
'div',
|
|
7580
7564
|
{ className: 'progress-container' },
|
|
7581
7565
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7582
7566
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7583
|
-
return
|
|
7567
|
+
return React__default.createElement(
|
|
7584
7568
|
'div',
|
|
7585
7569
|
{ key: choice._key, className: 'mb-3' },
|
|
7586
|
-
|
|
7570
|
+
React__default.createElement(
|
|
7587
7571
|
'div',
|
|
7588
7572
|
{ className: 'correct-answer' },
|
|
7589
|
-
|
|
7573
|
+
React__default.createElement(
|
|
7590
7574
|
'div',
|
|
7591
7575
|
null,
|
|
7592
7576
|
choice.choiceText
|
|
7593
7577
|
),
|
|
7594
|
-
choice.choiceAnswer === true &&
|
|
7578
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7595
7579
|
'div',
|
|
7596
7580
|
null,
|
|
7597
|
-
|
|
7581
|
+
React__default.createElement(
|
|
7598
7582
|
'span',
|
|
7599
7583
|
{ style: { color: 'limegreen' } },
|
|
7600
7584
|
'Correct!'
|
|
7601
7585
|
)
|
|
7602
7586
|
)
|
|
7603
7587
|
),
|
|
7604
|
-
|
|
7605
|
-
|
|
7588
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7589
|
+
React__default.createElement(
|
|
7606
7590
|
'span',
|
|
7607
7591
|
{ className: 'float-right' },
|
|
7608
7592
|
percentage,
|
|
@@ -7613,14 +7597,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7613
7597
|
);
|
|
7614
7598
|
})
|
|
7615
7599
|
),
|
|
7616
|
-
showAnswer &&
|
|
7600
|
+
showAnswer && React__default.createElement(
|
|
7617
7601
|
'h4',
|
|
7618
7602
|
{ className: 'text-center small p-3' },
|
|
7619
7603
|
'Total Votes: ',
|
|
7620
7604
|
choicesTotalCount
|
|
7621
7605
|
),
|
|
7622
|
-
showAnswer && response &&
|
|
7623
|
-
|
|
7606
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7607
|
+
React__default.createElement(
|
|
7624
7608
|
'style',
|
|
7625
7609
|
{ jsx: 'true' },
|
|
7626
7610
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7638,22 +7622,22 @@ _export(_export.S, 'Object', {
|
|
|
7638
7622
|
}
|
|
7639
7623
|
});
|
|
7640
7624
|
|
|
7641
|
-
var values
|
|
7625
|
+
var values = _core.Object.values;
|
|
7642
7626
|
|
|
7643
|
-
var values = createCommonjsModule(function (module) {
|
|
7644
|
-
module.exports = { "default": values
|
|
7627
|
+
var values$1 = createCommonjsModule(function (module) {
|
|
7628
|
+
module.exports = { "default": values, __esModule: true };
|
|
7645
7629
|
});
|
|
7646
7630
|
|
|
7647
|
-
var _Object$values = unwrapExports(values);
|
|
7631
|
+
var _Object$values = unwrapExports(values$1);
|
|
7648
7632
|
|
|
7649
|
-
var Poll = function Poll(_ref) {
|
|
7650
|
-
var node = _ref.node
|
|
7651
|
-
_ref.client
|
|
7652
|
-
_ref.pageview
|
|
7653
|
-
_ref.videoAccountIDs
|
|
7654
|
-
|
|
7655
|
-
_ref.showVotes
|
|
7656
|
-
|
|
7633
|
+
var Poll$1 = function Poll(_ref) {
|
|
7634
|
+
var node = _ref.node,
|
|
7635
|
+
client = _ref.client,
|
|
7636
|
+
pageview = _ref.pageview,
|
|
7637
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7638
|
+
onVote = _ref.onVote,
|
|
7639
|
+
_ref$showVotes = _ref.showVotes,
|
|
7640
|
+
getSerializers = _ref.getSerializers;
|
|
7657
7641
|
|
|
7658
7642
|
var _useState = useState(null),
|
|
7659
7643
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7719,67 +7703,67 @@ var Poll = function Poll(_ref) {
|
|
|
7719
7703
|
return acc;
|
|
7720
7704
|
}
|
|
7721
7705
|
}, 0);
|
|
7722
|
-
return
|
|
7723
|
-
|
|
7706
|
+
return React__default.createElement(
|
|
7707
|
+
React__default.Fragment,
|
|
7724
7708
|
null,
|
|
7725
|
-
question &&
|
|
7709
|
+
question && React__default.createElement(
|
|
7726
7710
|
'p',
|
|
7727
7711
|
{ className: 'font-weight-bold' },
|
|
7728
7712
|
question
|
|
7729
7713
|
),
|
|
7730
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7714
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7731
7715
|
'form',
|
|
7732
7716
|
{ onSubmit: function onSubmit(e) {
|
|
7733
7717
|
return onSubmitPoll(e);
|
|
7734
7718
|
} },
|
|
7735
7719
|
choices && choices.map(function (choice) {
|
|
7736
|
-
return
|
|
7720
|
+
return React__default.createElement(
|
|
7737
7721
|
'div',
|
|
7738
7722
|
{ key: choice._key },
|
|
7739
|
-
|
|
7723
|
+
React__default.createElement(
|
|
7740
7724
|
'label',
|
|
7741
7725
|
{ className: 'pl-2' },
|
|
7742
|
-
|
|
7726
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7743
7727
|
return setSelectedChoice(e.target.value);
|
|
7744
7728
|
} }),
|
|
7745
7729
|
' ' + choice.choiceText
|
|
7746
7730
|
)
|
|
7747
7731
|
);
|
|
7748
7732
|
}),
|
|
7749
|
-
|
|
7733
|
+
React__default.createElement(
|
|
7750
7734
|
Button,
|
|
7751
7735
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7752
7736
|
'Vote'
|
|
7753
7737
|
)
|
|
7754
7738
|
),
|
|
7755
|
-
|
|
7739
|
+
React__default.createElement(
|
|
7756
7740
|
'div',
|
|
7757
7741
|
{ className: 'progress-container' },
|
|
7758
7742
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7759
7743
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7760
|
-
return
|
|
7744
|
+
return React__default.createElement(
|
|
7761
7745
|
'div',
|
|
7762
7746
|
{ key: choice._key, className: 'mb-3' },
|
|
7763
|
-
|
|
7747
|
+
React__default.createElement(
|
|
7764
7748
|
'div',
|
|
7765
7749
|
{ className: 'correct-answer' },
|
|
7766
|
-
|
|
7750
|
+
React__default.createElement(
|
|
7767
7751
|
'div',
|
|
7768
7752
|
null,
|
|
7769
7753
|
choice.choiceText
|
|
7770
7754
|
),
|
|
7771
|
-
choice.choiceAnswer === true &&
|
|
7755
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7772
7756
|
'div',
|
|
7773
7757
|
null,
|
|
7774
|
-
|
|
7758
|
+
React__default.createElement(
|
|
7775
7759
|
'span',
|
|
7776
7760
|
{ style: { color: 'limegreen' } },
|
|
7777
7761
|
'Correct!'
|
|
7778
7762
|
)
|
|
7779
7763
|
)
|
|
7780
7764
|
),
|
|
7781
|
-
|
|
7782
|
-
|
|
7765
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7766
|
+
React__default.createElement(
|
|
7783
7767
|
'span',
|
|
7784
7768
|
{ className: 'float-right' },
|
|
7785
7769
|
percentage,
|
|
@@ -7790,14 +7774,14 @@ var Poll = function Poll(_ref) {
|
|
|
7790
7774
|
);
|
|
7791
7775
|
})
|
|
7792
7776
|
),
|
|
7793
|
-
showAnswer &&
|
|
7777
|
+
showAnswer && React__default.createElement(
|
|
7794
7778
|
'h4',
|
|
7795
7779
|
{ className: 'text-center small p-3' },
|
|
7796
7780
|
'Total Votes: ',
|
|
7797
7781
|
choicesTotalCount
|
|
7798
7782
|
),
|
|
7799
|
-
showAnswer && response &&
|
|
7800
|
-
|
|
7783
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7784
|
+
React__default.createElement(
|
|
7801
7785
|
'style',
|
|
7802
7786
|
{ jsx: 'true' },
|
|
7803
7787
|
'\n .correct-answer {\n width: 100%;\n display: flex;\n justify-content: space-between;\n padding: 0 0.5rem;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7805,7 +7789,7 @@ var Poll = function Poll(_ref) {
|
|
|
7805
7789
|
);
|
|
7806
7790
|
};
|
|
7807
7791
|
|
|
7808
|
-
var numberOfPaginations =
|
|
7792
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7809
7793
|
|
|
7810
7794
|
var Quiz = function Quiz(_ref) {
|
|
7811
7795
|
var quizzes = _ref.quizzes,
|
|
@@ -7923,34 +7907,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7923
7907
|
};
|
|
7924
7908
|
|
|
7925
7909
|
var renderPagination = function renderPagination() {
|
|
7926
|
-
return
|
|
7927
|
-
Pagination,
|
|
7928
|
-
{ className: 'p-0 m-0', size:
|
|
7929
|
-
|
|
7910
|
+
return React__default.createElement(
|
|
7911
|
+
Pagination$1,
|
|
7912
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7913
|
+
React__default.createElement(Pagination$1.First, { onClick: function onClick() {
|
|
7930
7914
|
return changePage('first');
|
|
7931
7915
|
}, disabled: currentPage === 1 }),
|
|
7932
|
-
|
|
7916
|
+
React__default.createElement(Pagination$1.Prev, { onClick: function onClick() {
|
|
7933
7917
|
return changePage('prev');
|
|
7934
7918
|
}, disabled: currentPage === 1 }),
|
|
7935
|
-
|
|
7919
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7936
7920
|
return renderNewPages('prev');
|
|
7937
7921
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7938
7922
|
pages.map(function (page) {
|
|
7939
|
-
return
|
|
7940
|
-
Pagination.Item,
|
|
7923
|
+
return React__default.createElement(
|
|
7924
|
+
Pagination$1.Item,
|
|
7941
7925
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7942
7926
|
return changePage(page);
|
|
7943
7927
|
} },
|
|
7944
7928
|
page
|
|
7945
7929
|
);
|
|
7946
7930
|
}),
|
|
7947
|
-
|
|
7931
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7948
7932
|
return renderNewPages('next');
|
|
7949
7933
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7950
|
-
|
|
7934
|
+
React__default.createElement(Pagination$1.Next, { onClick: function onClick() {
|
|
7951
7935
|
return changePage('next');
|
|
7952
7936
|
}, disabled: currentPage === pageCount }),
|
|
7953
|
-
|
|
7937
|
+
React__default.createElement(Pagination$1.Last, { onClick: function onClick() {
|
|
7954
7938
|
return changePage('last');
|
|
7955
7939
|
}, disabled: currentPage === pageCount })
|
|
7956
7940
|
);
|
|
@@ -8033,51 +8017,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8033
8017
|
}
|
|
8034
8018
|
};
|
|
8035
8019
|
|
|
8036
|
-
return
|
|
8037
|
-
|
|
8020
|
+
return React__default.createElement(
|
|
8021
|
+
React__default.Fragment,
|
|
8038
8022
|
null,
|
|
8039
|
-
quizzes[currentPage - 1] &&
|
|
8040
|
-
|
|
8023
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8024
|
+
React__default.Fragment,
|
|
8041
8025
|
null,
|
|
8042
|
-
|
|
8043
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8026
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8027
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8044
8028
|
'form',
|
|
8045
8029
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8046
8030
|
return e.preventDefault();
|
|
8047
8031
|
} },
|
|
8048
8032
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8049
|
-
return
|
|
8033
|
+
return React__default.createElement(
|
|
8050
8034
|
'div',
|
|
8051
8035
|
{ key: answer._key },
|
|
8052
|
-
|
|
8036
|
+
React__default.createElement(
|
|
8053
8037
|
'label',
|
|
8054
8038
|
{ className: 'pl-2' },
|
|
8055
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8039
|
+
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 }),
|
|
8056
8040
|
' ' + answer.answerText
|
|
8057
8041
|
)
|
|
8058
8042
|
);
|
|
8059
8043
|
})
|
|
8060
8044
|
)
|
|
8061
8045
|
),
|
|
8062
|
-
!showAnswer &&
|
|
8046
|
+
!showAnswer && React__default.createElement(
|
|
8063
8047
|
Button$1,
|
|
8064
8048
|
{ onClick: function onClick() {
|
|
8065
8049
|
return checkAnswers();
|
|
8066
8050
|
}, variant: 'info', block: true },
|
|
8067
8051
|
'Please click here for answer'
|
|
8068
8052
|
),
|
|
8069
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8070
|
-
|
|
8053
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8054
|
+
React__default.Fragment,
|
|
8071
8055
|
null,
|
|
8072
|
-
|
|
8056
|
+
React__default.createElement(
|
|
8073
8057
|
'h4',
|
|
8074
8058
|
null,
|
|
8075
8059
|
'Answer:'
|
|
8076
8060
|
),
|
|
8077
|
-
quizzes[currentPage - 1].answer &&
|
|
8061
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8078
8062
|
),
|
|
8079
|
-
|
|
8080
|
-
pageCount > 1 &&
|
|
8063
|
+
React__default.createElement('br', null),
|
|
8064
|
+
pageCount > 1 && React__default.createElement(
|
|
8081
8065
|
'div',
|
|
8082
8066
|
{ className: 'd-flex justify-content-center' },
|
|
8083
8067
|
renderPagination()
|
|
@@ -8088,14 +8072,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
8088
8072
|
var Leads = function Leads(_ref) {
|
|
8089
8073
|
var url = _ref.url;
|
|
8090
8074
|
|
|
8091
|
-
return
|
|
8075
|
+
return React__default.createElement(
|
|
8092
8076
|
'div',
|
|
8093
8077
|
{ className: 'd-block text-center mb-3' },
|
|
8094
|
-
url &&
|
|
8078
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8095
8079
|
);
|
|
8096
8080
|
};
|
|
8097
8081
|
|
|
8098
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8082
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8099
8083
|
var slides = _ref.node.slides,
|
|
8100
8084
|
client = _ref.client,
|
|
8101
8085
|
pageview = _ref.pageview,
|
|
@@ -8107,8 +8091,8 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8107
8091
|
|
|
8108
8092
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8109
8093
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8110
|
-
carouselIndex = _useState2[0]
|
|
8111
|
-
_useState2[1];
|
|
8094
|
+
carouselIndex = _useState2[0],
|
|
8095
|
+
setCarouselIndex = _useState2[1];
|
|
8112
8096
|
|
|
8113
8097
|
// useEffect(() => {
|
|
8114
8098
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8134,42 +8118,42 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8134
8118
|
}
|
|
8135
8119
|
};
|
|
8136
8120
|
|
|
8137
|
-
return
|
|
8121
|
+
return React__default.createElement(
|
|
8138
8122
|
'div',
|
|
8139
8123
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8140
|
-
|
|
8124
|
+
React__default.createElement(
|
|
8141
8125
|
Carousel,
|
|
8142
8126
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8143
8127
|
slides && slides.map(function (slide) {
|
|
8144
8128
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8145
|
-
return
|
|
8129
|
+
return React__default.createElement(
|
|
8146
8130
|
Carousel.Item,
|
|
8147
8131
|
{ key: slide._key },
|
|
8148
|
-
|
|
8132
|
+
React__default.createElement(
|
|
8149
8133
|
'a',
|
|
8150
8134
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8151
|
-
|
|
8135
|
+
React__default.createElement(
|
|
8152
8136
|
LazyLoad,
|
|
8153
8137
|
null,
|
|
8154
|
-
|
|
8138
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8155
8139
|
)
|
|
8156
8140
|
),
|
|
8157
|
-
|
|
8141
|
+
React__default.createElement(
|
|
8158
8142
|
'div',
|
|
8159
8143
|
{ className: 'p-2' },
|
|
8160
|
-
slide.slideshowImage.caption &&
|
|
8144
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8161
8145
|
'h3',
|
|
8162
8146
|
{ style: { padding: '0px' } },
|
|
8163
8147
|
slide.slideshowImage.caption
|
|
8164
8148
|
),
|
|
8165
|
-
slide.description &&
|
|
8149
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8166
8150
|
)
|
|
8167
8151
|
);
|
|
8168
8152
|
}
|
|
8169
8153
|
return null;
|
|
8170
8154
|
})
|
|
8171
8155
|
),
|
|
8172
|
-
|
|
8156
|
+
React__default.createElement(
|
|
8173
8157
|
'style',
|
|
8174
8158
|
{ jsx: 'true' },
|
|
8175
8159
|
'\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 '
|
|
@@ -8188,10 +8172,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8188
8172
|
sizes = _props$node.sizes,
|
|
8189
8173
|
sizeMapping = _props$node.sizeMapping;
|
|
8190
8174
|
|
|
8191
|
-
return
|
|
8175
|
+
return React__default.createElement(
|
|
8192
8176
|
'div',
|
|
8193
8177
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8194
|
-
|
|
8178
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8195
8179
|
);
|
|
8196
8180
|
};
|
|
8197
8181
|
|
|
@@ -8202,15 +8186,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8202
8186
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8203
8187
|
|
|
8204
8188
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8205
|
-
return
|
|
8189
|
+
return React__default.createElement(
|
|
8206
8190
|
'section',
|
|
8207
8191
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8208
|
-
Caption &&
|
|
8192
|
+
Caption && React__default.createElement(
|
|
8209
8193
|
'h4',
|
|
8210
8194
|
{ className: 'formstack-caption' },
|
|
8211
8195
|
Caption
|
|
8212
8196
|
),
|
|
8213
|
-
|
|
8197
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8214
8198
|
);
|
|
8215
8199
|
};
|
|
8216
8200
|
|
|
@@ -8226,29 +8210,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8226
8210
|
}
|
|
8227
8211
|
});
|
|
8228
8212
|
if (medias && medias.length > 0) {
|
|
8229
|
-
return
|
|
8213
|
+
return React__default.createElement(
|
|
8230
8214
|
'div',
|
|
8231
8215
|
{ className: 'multi-media-container' },
|
|
8232
|
-
|
|
8216
|
+
React__default.createElement(
|
|
8233
8217
|
Row$1,
|
|
8234
8218
|
{ noGutters: true },
|
|
8235
8219
|
medias.map(function (media) {
|
|
8236
|
-
return
|
|
8220
|
+
return React__default.createElement(
|
|
8237
8221
|
Col$1,
|
|
8238
8222
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8239
|
-
|
|
8223
|
+
React__default.createElement(
|
|
8240
8224
|
'a',
|
|
8241
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8225
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8242
8226
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8243
|
-
|
|
8227
|
+
React__default.createElement(
|
|
8244
8228
|
'div',
|
|
8245
8229
|
{ className: 'multi-media-image-container' },
|
|
8246
|
-
imageBox &&
|
|
8230
|
+
imageBox && React__default.createElement(
|
|
8247
8231
|
LazyLoad,
|
|
8248
8232
|
{ once: true },
|
|
8249
|
-
|
|
8233
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt })
|
|
8250
8234
|
),
|
|
8251
|
-
media.caption &&
|
|
8235
|
+
media.caption && React__default.createElement(
|
|
8252
8236
|
'span',
|
|
8253
8237
|
{ className: 'multi-media-caption' },
|
|
8254
8238
|
media.caption
|
|
@@ -8258,7 +8242,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8258
8242
|
);
|
|
8259
8243
|
})
|
|
8260
8244
|
),
|
|
8261
|
-
|
|
8245
|
+
React__default.createElement(
|
|
8262
8246
|
'style',
|
|
8263
8247
|
{ jsx: 'true' },
|
|
8264
8248
|
'\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 '
|
|
@@ -8305,7 +8289,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8305
8289
|
}
|
|
8306
8290
|
};
|
|
8307
8291
|
|
|
8308
|
-
_this.wraperRef =
|
|
8292
|
+
_this.wraperRef = React__default.createRef();
|
|
8309
8293
|
_this.visible = false;
|
|
8310
8294
|
return _this;
|
|
8311
8295
|
}
|
|
@@ -8333,7 +8317,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8333
8317
|
_props$id = _props.id,
|
|
8334
8318
|
id = _props$id === undefined ? '' : _props$id;
|
|
8335
8319
|
|
|
8336
|
-
return
|
|
8320
|
+
return React__default.createElement(
|
|
8337
8321
|
'div',
|
|
8338
8322
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8339
8323
|
this.props.children
|
|
@@ -8342,7 +8326,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8342
8326
|
}]);
|
|
8343
8327
|
|
|
8344
8328
|
return InscreenSensor;
|
|
8345
|
-
}(
|
|
8329
|
+
}(React__default.Component);
|
|
8346
8330
|
|
|
8347
8331
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8348
8332
|
var nodes = _ref.nodes,
|
|
@@ -8451,33 +8435,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8451
8435
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8452
8436
|
var showReading = show ? 'showReading' : '';
|
|
8453
8437
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8454
|
-
return
|
|
8438
|
+
return React__default.createElement(
|
|
8455
8439
|
'div',
|
|
8456
8440
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8457
|
-
|
|
8441
|
+
React__default.createElement(
|
|
8458
8442
|
'a',
|
|
8459
8443
|
{ onClick: function onClick(e) {
|
|
8460
8444
|
return articleCardClickHandler(e);
|
|
8461
8445
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8462
|
-
|
|
8446
|
+
React__default.createElement(
|
|
8463
8447
|
'div',
|
|
8464
8448
|
{ className: 'prevNext-thumbnail' },
|
|
8465
|
-
|
|
8466
|
-
|
|
8449
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8450
|
+
React__default.createElement(
|
|
8467
8451
|
'div',
|
|
8468
8452
|
{ className: 'prevNext-reading ' + showReading },
|
|
8469
8453
|
articleLabel
|
|
8470
8454
|
)
|
|
8471
8455
|
),
|
|
8472
|
-
|
|
8456
|
+
React__default.createElement(
|
|
8473
8457
|
'div',
|
|
8474
8458
|
{ className: 'prevNext-summary' },
|
|
8475
|
-
|
|
8459
|
+
React__default.createElement(
|
|
8476
8460
|
'div',
|
|
8477
8461
|
{ className: 'prevNext-publishDate' },
|
|
8478
8462
|
moment(article.published).format('LL')
|
|
8479
8463
|
),
|
|
8480
|
-
|
|
8464
|
+
React__default.createElement(
|
|
8481
8465
|
'h2',
|
|
8482
8466
|
{ className: 'prevNext-title' },
|
|
8483
8467
|
article.title
|
|
@@ -8526,7 +8510,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8526
8510
|
|
|
8527
8511
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8528
8512
|
if (biography) {
|
|
8529
|
-
return
|
|
8513
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8530
8514
|
}
|
|
8531
8515
|
};
|
|
8532
8516
|
|
|
@@ -8612,7 +8596,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8612
8596
|
//console.log('useLayoutEffect')
|
|
8613
8597
|
if (!firstLoad) {
|
|
8614
8598
|
setUpArrowClicked(false);
|
|
8615
|
-
if (
|
|
8599
|
+
if (main_36) {
|
|
8616
8600
|
grabLoadedAds();
|
|
8617
8601
|
} else {
|
|
8618
8602
|
scrollToArticle();
|
|
@@ -8636,7 +8620,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8636
8620
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8637
8621
|
if (pageview) pageview(path);
|
|
8638
8622
|
|
|
8639
|
-
if (!
|
|
8623
|
+
if (!main_36) {
|
|
8640
8624
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8641
8625
|
if (window.googletag && googletag.pubadsReady) {
|
|
8642
8626
|
lib_3.refresh();
|
|
@@ -8644,7 +8628,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8644
8628
|
});
|
|
8645
8629
|
}
|
|
8646
8630
|
//Refresh leaderboard ad on mobile
|
|
8647
|
-
if (
|
|
8631
|
+
if (main_36) {
|
|
8648
8632
|
var leaderboardSlotId = '';
|
|
8649
8633
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8650
8634
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8684,38 +8668,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8684
8668
|
setSensorVisible(false);
|
|
8685
8669
|
};
|
|
8686
8670
|
|
|
8687
|
-
return
|
|
8688
|
-
|
|
8671
|
+
return React__default.createElement(
|
|
8672
|
+
React__default.Fragment,
|
|
8689
8673
|
null,
|
|
8690
|
-
|
|
8674
|
+
React__default.createElement(
|
|
8691
8675
|
'div',
|
|
8692
8676
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8693
|
-
|
|
8677
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8694
8678
|
return handleArrowClick();
|
|
8695
8679
|
} })
|
|
8696
8680
|
),
|
|
8697
|
-
|
|
8698
|
-
|
|
8681
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8682
|
+
React__default.createElement(
|
|
8699
8683
|
'div',
|
|
8700
8684
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8701
|
-
|
|
8685
|
+
React__default.createElement(
|
|
8702
8686
|
'h5',
|
|
8703
8687
|
{ className: 'objective-title' },
|
|
8704
8688
|
nodes.seriesTitle
|
|
8705
8689
|
),
|
|
8706
|
-
|
|
8690
|
+
React__default.createElement(
|
|
8707
8691
|
'div',
|
|
8708
8692
|
{ className: 'prevNextWrapper' },
|
|
8709
8693
|
PrevNextCards(false, -1)
|
|
8710
8694
|
)
|
|
8711
8695
|
),
|
|
8712
|
-
|
|
8713
|
-
|
|
8696
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8697
|
+
React__default.createElement(
|
|
8714
8698
|
'div',
|
|
8715
8699
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8716
|
-
|
|
8700
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8717
8701
|
if (index === 0) {
|
|
8718
|
-
return
|
|
8702
|
+
return React__default.createElement(
|
|
8719
8703
|
'div',
|
|
8720
8704
|
{
|
|
8721
8705
|
key: 'addid-1',
|
|
@@ -8735,14 +8719,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8735
8719
|
}
|
|
8736
8720
|
})
|
|
8737
8721
|
),
|
|
8738
|
-
|
|
8722
|
+
React__default.createElement(
|
|
8739
8723
|
'div',
|
|
8740
8724
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8741
8725
|
Articles.map(function (article, index) {
|
|
8742
|
-
return
|
|
8726
|
+
return React__default.createElement(
|
|
8743
8727
|
'div',
|
|
8744
8728
|
{ key: article.title },
|
|
8745
|
-
|
|
8729
|
+
React__default.createElement(
|
|
8746
8730
|
InscreenSensor,
|
|
8747
8731
|
{
|
|
8748
8732
|
visible: sensorVisible,
|
|
@@ -8760,84 +8744,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8760
8744
|
}
|
|
8761
8745
|
}
|
|
8762
8746
|
} },
|
|
8763
|
-
|
|
8747
|
+
React__default.createElement(
|
|
8764
8748
|
Head,
|
|
8765
8749
|
null,
|
|
8766
|
-
currentTitle !== null &&
|
|
8750
|
+
currentTitle !== null && React__default.createElement(
|
|
8767
8751
|
'title',
|
|
8768
8752
|
{ key: 'title' },
|
|
8769
8753
|
currentTitle
|
|
8770
8754
|
),
|
|
8771
|
-
currentSummary !== null &&
|
|
8772
|
-
currentURL !== null &&
|
|
8773
|
-
currentTitle !== null &&
|
|
8774
|
-
currentThumbnail !== null &&
|
|
8775
|
-
currentSummary !== null &&
|
|
8776
|
-
currentTitle !== null &&
|
|
8777
|
-
currentThumbnail !== null &&
|
|
8778
|
-
currentSummary !== null &&
|
|
8755
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8756
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8757
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8758
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8759
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8760
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8761
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8762
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8779
8763
|
),
|
|
8780
|
-
|
|
8764
|
+
React__default.createElement(
|
|
8781
8765
|
'article',
|
|
8782
8766
|
{ className: 'article-wrapper' },
|
|
8783
|
-
|
|
8767
|
+
React__default.createElement(
|
|
8784
8768
|
'div',
|
|
8785
8769
|
{ className: 'article-publishDate' },
|
|
8786
8770
|
moment(article.published).format('LL')
|
|
8787
8771
|
),
|
|
8788
|
-
|
|
8772
|
+
React__default.createElement(
|
|
8789
8773
|
'div',
|
|
8790
8774
|
{ className: 'author-details-wrapper' },
|
|
8791
8775
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8792
|
-
return
|
|
8776
|
+
return React__default.createElement(
|
|
8793
8777
|
'span',
|
|
8794
8778
|
{ key: index },
|
|
8795
8779
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8796
8780
|
);
|
|
8797
8781
|
})
|
|
8798
8782
|
),
|
|
8799
|
-
|
|
8783
|
+
React__default.createElement(
|
|
8800
8784
|
'h2',
|
|
8801
8785
|
{ className: 'article-title' },
|
|
8802
8786
|
article.title
|
|
8803
8787
|
),
|
|
8804
|
-
|
|
8788
|
+
React__default.createElement(
|
|
8805
8789
|
'div',
|
|
8806
8790
|
{ className: 'mt-2 mb-2' },
|
|
8807
|
-
|
|
8791
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8808
8792
|
serializers: getSerializers,
|
|
8809
8793
|
videoAccountIDs: accountIDs,
|
|
8810
8794
|
blocks: article.text,
|
|
8811
8795
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8812
8796
|
}, client.config())),
|
|
8813
|
-
|
|
8797
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8814
8798
|
),
|
|
8815
|
-
Articles.length > 1 &&
|
|
8816
|
-
|
|
8799
|
+
Articles.length > 1 && React__default.createElement(
|
|
8800
|
+
React__default.Fragment,
|
|
8817
8801
|
null,
|
|
8818
|
-
|
|
8802
|
+
React__default.createElement(
|
|
8819
8803
|
'div',
|
|
8820
8804
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8821
|
-
|
|
8805
|
+
React__default.createElement(
|
|
8822
8806
|
'h5',
|
|
8823
8807
|
{ className: 'objective-title' },
|
|
8824
8808
|
nodes.seriesTitle
|
|
8825
8809
|
),
|
|
8826
|
-
|
|
8810
|
+
React__default.createElement(
|
|
8827
8811
|
'div',
|
|
8828
8812
|
{ className: 'prevNextWrapper' },
|
|
8829
8813
|
PrevNextCards(true, index)
|
|
8830
8814
|
)
|
|
8831
8815
|
),
|
|
8832
|
-
|
|
8816
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8833
8817
|
)
|
|
8834
8818
|
),
|
|
8835
|
-
|
|
8819
|
+
React__default.createElement(
|
|
8836
8820
|
'div',
|
|
8837
8821
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8838
|
-
|
|
8822
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8839
8823
|
if (innerIndex === 0) {
|
|
8840
|
-
return
|
|
8824
|
+
return React__default.createElement(
|
|
8841
8825
|
'div',
|
|
8842
8826
|
{
|
|
8843
8827
|
key: 'addid-' + (index + 2),
|
|
@@ -8860,7 +8844,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8860
8844
|
)
|
|
8861
8845
|
);
|
|
8862
8846
|
}),
|
|
8863
|
-
|
|
8847
|
+
React__default.createElement(
|
|
8864
8848
|
'style',
|
|
8865
8849
|
{ jsx: 'true' },
|
|
8866
8850
|
'\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 '
|
|
@@ -8890,11 +8874,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8890
8874
|
};
|
|
8891
8875
|
}, [handleClickOutside]);
|
|
8892
8876
|
|
|
8893
|
-
return
|
|
8877
|
+
return React__default.createElement(
|
|
8894
8878
|
'div',
|
|
8895
8879
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8896
|
-
|
|
8897
|
-
|
|
8880
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8881
|
+
React__default.createElement(
|
|
8898
8882
|
'style',
|
|
8899
8883
|
{ jsx: 'true' },
|
|
8900
8884
|
'\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 '
|
|
@@ -8908,7 +8892,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8908
8892
|
}
|
|
8909
8893
|
};
|
|
8910
8894
|
|
|
8911
|
-
var FigureImage =
|
|
8895
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8912
8896
|
var node = _ref2.node,
|
|
8913
8897
|
client = _ref2.client,
|
|
8914
8898
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8916,13 +8900,13 @@ var FigureImage = React.memo(function (_ref2) {
|
|
|
8916
8900
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8917
8901
|
|
|
8918
8902
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8919
|
-
return
|
|
8903
|
+
return React__default.createElement(
|
|
8920
8904
|
'picture',
|
|
8921
8905
|
null,
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8906
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8907
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8908
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8909
|
+
React__default.createElement('img', _extends$1({
|
|
8926
8910
|
style: figureImageStyle,
|
|
8927
8911
|
className: 'figure-image',
|
|
8928
8912
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9010,13 +8994,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9010
8994
|
|
|
9011
8995
|
var FigureCaption = useCallback(function () {
|
|
9012
8996
|
if (imgcaption && imgcaption.length > 0) {
|
|
9013
|
-
return
|
|
8997
|
+
return React__default.createElement(
|
|
9014
8998
|
'div',
|
|
9015
8999
|
{ className: 'figure-caption' },
|
|
9016
|
-
|
|
9000
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9017
9001
|
);
|
|
9018
9002
|
} else if (caption) {
|
|
9019
|
-
return
|
|
9003
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9020
9004
|
} else return null;
|
|
9021
9005
|
}, [caption, imgcaption]);
|
|
9022
9006
|
|
|
@@ -9033,24 +9017,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9033
9017
|
setShowLightbox(true);
|
|
9034
9018
|
}, [node, client]);
|
|
9035
9019
|
|
|
9036
|
-
return
|
|
9037
|
-
|
|
9020
|
+
return React__default.createElement(
|
|
9021
|
+
React__default.Fragment,
|
|
9038
9022
|
null,
|
|
9039
|
-
|
|
9040
|
-
Figure$
|
|
9023
|
+
React__default.createElement(
|
|
9024
|
+
Figure$1$1,
|
|
9041
9025
|
{ className: '' + class_name, style: figureStyle },
|
|
9042
|
-
link ?
|
|
9026
|
+
link ? React__default.createElement(
|
|
9043
9027
|
'a',
|
|
9044
9028
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
) :
|
|
9048
|
-
|
|
9029
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9030
|
+
React__default.createElement(FigureCaption, null)
|
|
9031
|
+
) : React__default.createElement(
|
|
9032
|
+
React__default.Fragment,
|
|
9049
9033
|
null,
|
|
9050
|
-
|
|
9051
|
-
|
|
9034
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9035
|
+
React__default.createElement(FigureCaption, null)
|
|
9052
9036
|
),
|
|
9053
|
-
|
|
9037
|
+
React__default.createElement(LightBox, {
|
|
9054
9038
|
showLightbox: showLightbox,
|
|
9055
9039
|
lightboxImgSrc: lightboxImgSrc,
|
|
9056
9040
|
closeLightbox: function closeLightbox() {
|
|
@@ -9059,7 +9043,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9059
9043
|
}
|
|
9060
9044
|
})
|
|
9061
9045
|
),
|
|
9062
|
-
|
|
9046
|
+
React__default.createElement(
|
|
9063
9047
|
'style',
|
|
9064
9048
|
{ jsx: 'true' },
|
|
9065
9049
|
'\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 '
|
|
@@ -9067,7 +9051,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9067
9051
|
);
|
|
9068
9052
|
};
|
|
9069
9053
|
|
|
9070
|
-
var Figure =
|
|
9054
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9071
9055
|
|
|
9072
9056
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9073
9057
|
useEffect(function () {
|
|
@@ -9108,47 +9092,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9108
9092
|
imgcaption = _ref.imgcaption;
|
|
9109
9093
|
|
|
9110
9094
|
if (imgcaption && imgcaption.length > 0) {
|
|
9111
|
-
return
|
|
9095
|
+
return React__default.createElement(
|
|
9112
9096
|
'div',
|
|
9113
9097
|
{ className: 'multi-figure-caption' },
|
|
9114
|
-
|
|
9098
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9115
9099
|
);
|
|
9116
9100
|
} else if (caption) {
|
|
9117
|
-
return
|
|
9101
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9118
9102
|
} else return null;
|
|
9119
9103
|
};
|
|
9120
9104
|
|
|
9121
9105
|
if (images && images.length > 0) {
|
|
9122
|
-
return
|
|
9106
|
+
return React__default.createElement(
|
|
9123
9107
|
'div',
|
|
9124
9108
|
{ className: 'multi-figure-container' },
|
|
9125
|
-
|
|
9109
|
+
React__default.createElement(
|
|
9126
9110
|
Row$1,
|
|
9127
9111
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9128
9112
|
images.map(function (image, index) {
|
|
9129
|
-
return
|
|
9113
|
+
return React__default.createElement(
|
|
9130
9114
|
Col$1,
|
|
9131
9115
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9132
|
-
image.link ?
|
|
9116
|
+
image.link ? React__default.createElement(
|
|
9133
9117
|
'a',
|
|
9134
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9135
|
-
|
|
9118
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9119
|
+
React__default.createElement(
|
|
9136
9120
|
'div',
|
|
9137
9121
|
{ className: 'multi-figure-image-container' },
|
|
9138
|
-
|
|
9122
|
+
React__default.createElement(
|
|
9139
9123
|
LazyLoad,
|
|
9140
9124
|
{ once: true },
|
|
9141
|
-
|
|
9125
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor({ source: image.asset, client: client }), alt: image.alt })
|
|
9142
9126
|
),
|
|
9143
|
-
|
|
9127
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9144
9128
|
)
|
|
9145
|
-
) :
|
|
9129
|
+
) : React__default.createElement(
|
|
9146
9130
|
'div',
|
|
9147
9131
|
{ className: 'multi-figure-image-container' },
|
|
9148
|
-
|
|
9132
|
+
React__default.createElement(
|
|
9149
9133
|
LazyLoad,
|
|
9150
9134
|
{ once: true },
|
|
9151
|
-
|
|
9135
|
+
React__default.createElement('img', {
|
|
9152
9136
|
'images-count': images.length,
|
|
9153
9137
|
className: 'multi-figure-image',
|
|
9154
9138
|
src: urlFor({ source: image.asset, client: client }),
|
|
@@ -9159,17 +9143,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9159
9143
|
}
|
|
9160
9144
|
})
|
|
9161
9145
|
),
|
|
9162
|
-
|
|
9146
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9163
9147
|
)
|
|
9164
9148
|
);
|
|
9165
9149
|
})
|
|
9166
9150
|
),
|
|
9167
|
-
|
|
9151
|
+
React__default.createElement(
|
|
9168
9152
|
'div',
|
|
9169
9153
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9170
|
-
|
|
9154
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9171
9155
|
),
|
|
9172
|
-
|
|
9156
|
+
React__default.createElement(
|
|
9173
9157
|
'style',
|
|
9174
9158
|
{ jsx: 'true' },
|
|
9175
9159
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9191,10 +9175,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9191
9175
|
|
|
9192
9176
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9193
9177
|
|
|
9194
|
-
return
|
|
9178
|
+
return React__default.createElement(
|
|
9195
9179
|
'div',
|
|
9196
9180
|
{ id: elementId },
|
|
9197
|
-
|
|
9181
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9198
9182
|
);
|
|
9199
9183
|
};
|
|
9200
9184
|
|
|
@@ -9223,7 +9207,7 @@ exports.__esModule = true;
|
|
|
9223
9207
|
|
|
9224
9208
|
|
|
9225
9209
|
|
|
9226
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9210
|
+
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9227
9211
|
|
|
9228
9212
|
|
|
9229
9213
|
|
|
@@ -9243,7 +9227,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9243
9227
|
|
|
9244
9228
|
|
|
9245
9229
|
|
|
9246
|
-
var _react2 = _interopRequireDefault(
|
|
9230
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9247
9231
|
|
|
9248
9232
|
|
|
9249
9233
|
|
|
@@ -9392,9 +9376,9 @@ var ScriptTag = function (_Component) {
|
|
|
9392
9376
|
|
|
9393
9377
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9394
9378
|
// eslint-disable-next-line no-unused-vars
|
|
9395
|
-
var _props3 = this.props
|
|
9396
|
-
_props3.isHydrating
|
|
9397
|
-
|
|
9379
|
+
var _props3 = this.props,
|
|
9380
|
+
isHydrating = _props3.isHydrating,
|
|
9381
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9398
9382
|
|
|
9399
9383
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9400
9384
|
return _this2.domRef = tag;
|
|
@@ -9402,7 +9386,7 @@ var ScriptTag = function (_Component) {
|
|
|
9402
9386
|
};
|
|
9403
9387
|
|
|
9404
9388
|
return ScriptTag;
|
|
9405
|
-
}(
|
|
9389
|
+
}(React__default.Component);
|
|
9406
9390
|
|
|
9407
9391
|
ScriptTag.propTypes = {
|
|
9408
9392
|
/**
|
|
@@ -9481,11 +9465,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9481
9465
|
}, []);
|
|
9482
9466
|
|
|
9483
9467
|
if (iframeSrc) {
|
|
9484
|
-
return
|
|
9468
|
+
return React__default.createElement(
|
|
9485
9469
|
'section',
|
|
9486
9470
|
{ className: 'form-assembly' },
|
|
9487
|
-
|
|
9488
|
-
|
|
9471
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9472
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9489
9473
|
);
|
|
9490
9474
|
}
|
|
9491
9475
|
|
|
@@ -9522,27 +9506,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9522
9506
|
return window.removeEventListener('resize', handleResize);
|
|
9523
9507
|
};
|
|
9524
9508
|
}, []);
|
|
9525
|
-
return
|
|
9509
|
+
return React__default.createElement(
|
|
9526
9510
|
'div',
|
|
9527
9511
|
{ className: 'blockTableHolder', ref: holder },
|
|
9528
|
-
|
|
9512
|
+
React__default.createElement(
|
|
9529
9513
|
'div',
|
|
9530
9514
|
{ className: 'blockTable' },
|
|
9531
9515
|
rows && rows.map(function (row) {
|
|
9532
|
-
return
|
|
9516
|
+
return React__default.createElement(
|
|
9533
9517
|
'div',
|
|
9534
9518
|
{ className: 'blockTableRow' },
|
|
9535
9519
|
row.cells && row.cells.map(function (cell) {
|
|
9536
|
-
return
|
|
9520
|
+
return React__default.createElement(
|
|
9537
9521
|
'div',
|
|
9538
9522
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9539
|
-
|
|
9523
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9540
9524
|
);
|
|
9541
9525
|
})
|
|
9542
9526
|
);
|
|
9543
9527
|
})
|
|
9544
9528
|
),
|
|
9545
|
-
|
|
9529
|
+
React__default.createElement(
|
|
9546
9530
|
'style',
|
|
9547
9531
|
{ jsx: true },
|
|
9548
9532
|
'\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 '
|
|
@@ -9621,12 +9605,12 @@ var getSerializers = function getSerializers() {
|
|
|
9621
9605
|
var node = _ref.node;
|
|
9622
9606
|
var url = node.url;
|
|
9623
9607
|
|
|
9624
|
-
return
|
|
9608
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9625
9609
|
},
|
|
9626
9610
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9627
9611
|
var node = _ref2.node;
|
|
9628
9612
|
|
|
9629
|
-
return
|
|
9613
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9630
9614
|
nodes: node,
|
|
9631
9615
|
article: article,
|
|
9632
9616
|
meta: meta,
|
|
@@ -9640,7 +9624,7 @@ var getSerializers = function getSerializers() {
|
|
|
9640
9624
|
articleSeries: function articleSeries(_ref3) {
|
|
9641
9625
|
var node = _ref3.node;
|
|
9642
9626
|
|
|
9643
|
-
return
|
|
9627
|
+
return React__default.createElement(ArticleSeries, {
|
|
9644
9628
|
nodes: node,
|
|
9645
9629
|
accountIDs: videoAccountIDs || {},
|
|
9646
9630
|
pageview: pageview,
|
|
@@ -9653,61 +9637,61 @@ var getSerializers = function getSerializers() {
|
|
|
9653
9637
|
figure: function figure(_ref4) {
|
|
9654
9638
|
var node = _ref4.node;
|
|
9655
9639
|
|
|
9656
|
-
return
|
|
9640
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9657
9641
|
},
|
|
9658
9642
|
multifigure: function multifigure(_ref5) {
|
|
9659
9643
|
var node = _ref5.node;
|
|
9660
9644
|
|
|
9661
|
-
return
|
|
9645
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9662
9646
|
},
|
|
9663
9647
|
slideshow: function slideshow(_ref6) {
|
|
9664
9648
|
var node = _ref6.node;
|
|
9665
9649
|
var slides = node.slides;
|
|
9666
9650
|
|
|
9667
|
-
return
|
|
9651
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9668
9652
|
},
|
|
9669
9653
|
sidebar: function sidebar(_ref7) {
|
|
9670
9654
|
var node = _ref7.node;
|
|
9671
9655
|
var caption = node.caption,
|
|
9672
9656
|
content = node.content;
|
|
9673
9657
|
|
|
9674
|
-
return
|
|
9658
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9675
9659
|
},
|
|
9676
9660
|
datatable: function datatable(_ref8) {
|
|
9677
9661
|
var node = _ref8.node;
|
|
9678
9662
|
var table = node.table;
|
|
9679
9663
|
|
|
9680
|
-
return
|
|
9664
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9681
9665
|
},
|
|
9682
9666
|
media: function media(_ref9) {
|
|
9683
9667
|
var node = _ref9.node;
|
|
9684
9668
|
|
|
9685
|
-
return
|
|
9669
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9686
9670
|
},
|
|
9687
9671
|
iframe: function iframe(_ref10) {
|
|
9688
9672
|
var node = _ref10.node;
|
|
9689
9673
|
|
|
9690
|
-
return
|
|
9674
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9691
9675
|
},
|
|
9692
9676
|
video: function video(_ref11) {
|
|
9693
9677
|
var node = _ref11.node;
|
|
9694
9678
|
|
|
9695
|
-
return
|
|
9679
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9696
9680
|
},
|
|
9697
9681
|
audio: function audio(_ref12) {
|
|
9698
9682
|
var node = _ref12.node;
|
|
9699
9683
|
|
|
9700
|
-
return
|
|
9684
|
+
return React__default.createElement(Audio, { node: node });
|
|
9701
9685
|
},
|
|
9702
9686
|
poll: function poll(_ref13) {
|
|
9703
9687
|
var node = _ref13.node;
|
|
9704
9688
|
|
|
9705
|
-
return
|
|
9689
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9706
9690
|
},
|
|
9707
9691
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9708
9692
|
var node = _ref14.node;
|
|
9709
9693
|
|
|
9710
|
-
return
|
|
9694
|
+
return React__default.createElement(Poll$1, {
|
|
9711
9695
|
node: node,
|
|
9712
9696
|
client: client,
|
|
9713
9697
|
pageview: pageview,
|
|
@@ -9721,35 +9705,35 @@ var getSerializers = function getSerializers() {
|
|
|
9721
9705
|
var node = _ref15.node;
|
|
9722
9706
|
var quizzes = node.quizzes;
|
|
9723
9707
|
|
|
9724
|
-
return
|
|
9708
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9725
9709
|
},
|
|
9726
9710
|
leads: function leads(_ref16) {
|
|
9727
9711
|
var node = _ref16.node;
|
|
9728
9712
|
var leadID = node.leadID;
|
|
9729
9713
|
|
|
9730
9714
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9731
|
-
return
|
|
9715
|
+
return React__default.createElement(Leads, { url: url });
|
|
9732
9716
|
},
|
|
9733
9717
|
slideshows: function slideshows(_ref17) {
|
|
9734
9718
|
var node = _ref17.node;
|
|
9735
9719
|
|
|
9736
|
-
return
|
|
9720
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9737
9721
|
},
|
|
9738
9722
|
nativeAd: function nativeAd(_ref18) {
|
|
9739
9723
|
var node = _ref18.node;
|
|
9740
9724
|
|
|
9741
|
-
return
|
|
9725
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9742
9726
|
},
|
|
9743
9727
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9744
9728
|
var node = _ref19.node;
|
|
9745
9729
|
|
|
9746
|
-
return
|
|
9730
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9747
9731
|
},
|
|
9748
9732
|
hrtag: function hrtag() {
|
|
9749
|
-
return
|
|
9733
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9750
9734
|
},
|
|
9751
9735
|
brtag: function brtag() {
|
|
9752
|
-
return
|
|
9736
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9753
9737
|
},
|
|
9754
9738
|
formstack: function formstack(_ref20) {
|
|
9755
9739
|
var node = _ref20.node;
|
|
@@ -9757,29 +9741,29 @@ var getSerializers = function getSerializers() {
|
|
|
9757
9741
|
Caption = node.Caption,
|
|
9758
9742
|
needSegmentSupport = node.needSegmentSupport;
|
|
9759
9743
|
|
|
9760
|
-
return
|
|
9744
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9761
9745
|
},
|
|
9762
9746
|
formassembly: FormAssembly,
|
|
9763
9747
|
multimedia: function multimedia(_ref21) {
|
|
9764
9748
|
var node = _ref21.node;
|
|
9765
9749
|
|
|
9766
|
-
return
|
|
9750
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9767
9751
|
},
|
|
9768
9752
|
blockTable: function blockTable(_ref22) {
|
|
9769
9753
|
var node = _ref22.node;
|
|
9770
|
-
return
|
|
9754
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9771
9755
|
}
|
|
9772
9756
|
},
|
|
9773
9757
|
marks: {
|
|
9774
9758
|
superscript: function superscript(props) {
|
|
9775
|
-
return
|
|
9759
|
+
return React__default.createElement(
|
|
9776
9760
|
'sup',
|
|
9777
9761
|
null,
|
|
9778
9762
|
props.children
|
|
9779
9763
|
);
|
|
9780
9764
|
},
|
|
9781
9765
|
subscript: function subscript(props) {
|
|
9782
|
-
return
|
|
9766
|
+
return React__default.createElement(
|
|
9783
9767
|
'sub',
|
|
9784
9768
|
null,
|
|
9785
9769
|
props.children
|
|
@@ -9795,7 +9779,7 @@ var getSerializers = function getSerializers() {
|
|
|
9795
9779
|
if (href && href.charAt(0) === '#') {
|
|
9796
9780
|
var elementId = href.slice(1);
|
|
9797
9781
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9798
|
-
return
|
|
9782
|
+
return React__default.createElement(
|
|
9799
9783
|
'a',
|
|
9800
9784
|
{ onClick: function onClick() {
|
|
9801
9785
|
return ScrollToElement(elementId);
|
|
@@ -9805,7 +9789,7 @@ var getSerializers = function getSerializers() {
|
|
|
9805
9789
|
}
|
|
9806
9790
|
|
|
9807
9791
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9808
|
-
return
|
|
9792
|
+
return React__default.createElement(
|
|
9809
9793
|
'a',
|
|
9810
9794
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9811
9795
|
children
|
|
@@ -9813,7 +9797,7 @@ var getSerializers = function getSerializers() {
|
|
|
9813
9797
|
},
|
|
9814
9798
|
alignleft: function alignleft(_ref23) {
|
|
9815
9799
|
var children = _ref23.children;
|
|
9816
|
-
return
|
|
9800
|
+
return React__default.createElement(
|
|
9817
9801
|
'div',
|
|
9818
9802
|
{ style: { textAlign: 'left' } },
|
|
9819
9803
|
children
|
|
@@ -9821,7 +9805,7 @@ var getSerializers = function getSerializers() {
|
|
|
9821
9805
|
},
|
|
9822
9806
|
alignright: function alignright(_ref24) {
|
|
9823
9807
|
var children = _ref24.children;
|
|
9824
|
-
return
|
|
9808
|
+
return React__default.createElement(
|
|
9825
9809
|
'div',
|
|
9826
9810
|
{ style: { textAlign: 'right' } },
|
|
9827
9811
|
children
|
|
@@ -9829,7 +9813,7 @@ var getSerializers = function getSerializers() {
|
|
|
9829
9813
|
},
|
|
9830
9814
|
aligncenter: function aligncenter(_ref25) {
|
|
9831
9815
|
var children = _ref25.children;
|
|
9832
|
-
return
|
|
9816
|
+
return React__default.createElement(
|
|
9833
9817
|
'div',
|
|
9834
9818
|
{ style: { textAlign: 'center' } },
|
|
9835
9819
|
children
|
|
@@ -9837,7 +9821,7 @@ var getSerializers = function getSerializers() {
|
|
|
9837
9821
|
},
|
|
9838
9822
|
alignjustify: function alignjustify(_ref26) {
|
|
9839
9823
|
var children = _ref26.children;
|
|
9840
|
-
return
|
|
9824
|
+
return React__default.createElement(
|
|
9841
9825
|
'div',
|
|
9842
9826
|
{ style: { textAlign: 'justify' } },
|
|
9843
9827
|
children
|
|
@@ -9847,7 +9831,7 @@ var getSerializers = function getSerializers() {
|
|
|
9847
9831
|
var children = props.children,
|
|
9848
9832
|
color = props.mark.color;
|
|
9849
9833
|
|
|
9850
|
-
return
|
|
9834
|
+
return React__default.createElement(
|
|
9851
9835
|
'span',
|
|
9852
9836
|
{ style: { color: color ? color.hex : null } },
|
|
9853
9837
|
children
|