@mjhls/mjh-framework 1.0.810-disable-social-test → 1.0.811-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 +170 -170
- 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-77f334bb.js → ADInfeed-7c4b33b3.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-0664c67f.js → ADlgInfeed-563e0168.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 +1066 -1085
- package/dist/cjs/AlphabeticList.js +25 -26
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +57 -58
- package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
- package/dist/cjs/ArticleSeriesListing.js +60 -61
- package/dist/cjs/Auth.js +462 -686
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +33 -36
- package/dist/cjs/Column3.js +59 -62
- package/dist/cjs/ConferenceArticleCard.js +38 -39
- 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 +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +178 -182
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +58 -59
- package/dist/cjs/HamMagazine.js +139 -144
- 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 +70 -71
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +71 -76
- package/dist/cjs/IssueLanding.js +71 -72
- 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 +1123 -1114
- 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/NavNormal.js +47 -52
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +108 -109
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +41 -42
- package/dist/cjs/PubToc.js +15 -16
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +138 -142
- package/dist/cjs/QueueDeckExpanded.js +294 -294
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +52 -53
- 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-c022ce04.js → SeriesSlider-4abb21b4.js} +41 -42
- 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 +61 -65
- package/dist/cjs/TaxonomyDescription.js +54 -55
- package/dist/cjs/TemplateNormal.js +76 -77
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +29 -30
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoProgramLandingPage.js +73 -77
- package/dist/cjs/VideoSeriesCard.js +33 -34
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +49 -50
- package/dist/cjs/VideoSeriesListing.js +77 -78
- package/dist/cjs/View.js +262 -265
- package/dist/cjs/YahooHero.js +39 -40
- 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-9d158713.js → extends-0a918631.js} +8 -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 +43 -43
- package/dist/cjs/{getTargeting-c8081c76.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-667c091e.js → index-7340b76d.js} +1261 -1059
- 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-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-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +162 -166
- package/dist/cjs/{inherits-3ff1b657.js → inherits-9953db94.js} +25 -22
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{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-6ed88032.js → ADInfeed-31055afd.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-e02d1d98.js → ADlgInfeed-dcb27a6c.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 +717 -735
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +54 -54
- package/dist/esm/ArticleSeriesLandingPage.js +37 -37
- package/dist/esm/ArticleSeriesListing.js +56 -56
- package/dist/esm/Auth.js +445 -665
- 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 +34 -34
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +97 -97
- package/dist/esm/DeckQueue.js +82 -82
- 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 +34 -34
- package/dist/esm/GridContent.js +170 -170
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +115 -115
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +67 -67
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +60 -60
- package/dist/esm/IssueDeck.js +64 -64
- package/dist/esm/IssueLanding.js +68 -68
- 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 +850 -838
- 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/NavNormal.js +38 -38
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +59 -59
- 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 +38 -38
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +52 -52
- package/dist/esm/PublicationLanding.js +125 -125
- package/dist/esm/QueueDeckExpanded.js +274 -274
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +47 -47
- 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-8414085b.js → SeriesSlider-36be7223.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 +56 -55
- package/dist/esm/TaxonomyDescription.js +49 -49
- package/dist/esm/TemplateNormal.js +72 -72
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +26 -26
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +66 -66
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +41 -41
- package/dist/esm/VideoSeriesListing.js +73 -73
- package/dist/esm/View.js +246 -245
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +50 -50
- 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-f076879e.js → extends-6f2fcc99.js} +8 -8
- 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 +43 -43
- package/dist/esm/{getTargeting-2302c1b4.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-d2fb744b.js → index-73a91c0b.js} +1201 -992
- package/dist/esm/{index-67e1773f.js → index-aaa2dae0.js} +2 -11
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +134 -135
- package/dist/esm/{inherits-f71787cf.js → inherits-cf8dde54.js} +20 -20
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-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 +109 -109
- 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,40 +1,39 @@
|
|
|
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 { i as imageUrlBuilder } from './index-0dbff1d1.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 { i as imageUrlBuilder } from './index-73819142.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 } from './inherits-f71787cf.js';
|
|
33
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
34
|
-
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
34
|
+
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
36
35
|
|
|
37
|
-
var urlFor
|
|
36
|
+
var urlFor = function urlFor(source, builder) {
|
|
38
37
|
return builder.image(source).auto('format');
|
|
39
38
|
};
|
|
40
39
|
|
|
@@ -44,7 +43,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
44
43
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
45
44
|
};
|
|
46
45
|
|
|
47
|
-
var Slideshow
|
|
46
|
+
var Slideshow = function Slideshow(_ref) {
|
|
48
47
|
var slides = _ref.slides,
|
|
49
48
|
client = _ref.client,
|
|
50
49
|
pageview = _ref.pageview;
|
|
@@ -73,20 +72,20 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
73
72
|
if (pageview) pageview(router.asPath);
|
|
74
73
|
}, [router]);
|
|
75
74
|
|
|
76
|
-
return
|
|
75
|
+
return React__default.createElement(
|
|
77
76
|
'div',
|
|
78
77
|
{ className: 'mt-3 mb-3' },
|
|
79
|
-
|
|
78
|
+
React__default.createElement(
|
|
80
79
|
Carousel,
|
|
81
80
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
82
81
|
return onChangeSlide(selectedIndex, router);
|
|
83
82
|
}, interval: null },
|
|
84
83
|
slides && slides.map(function (slide) {
|
|
85
|
-
return
|
|
84
|
+
return React__default.createElement(
|
|
86
85
|
Carousel.Item,
|
|
87
86
|
{ key: slide._key },
|
|
88
|
-
|
|
89
|
-
slide.caption &&
|
|
87
|
+
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
88
|
+
slide.caption && React__default.createElement(
|
|
90
89
|
'p',
|
|
91
90
|
{ className: 'p-2' },
|
|
92
91
|
slide.caption
|
|
@@ -97,18 +96,21 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
97
96
|
);
|
|
98
97
|
};
|
|
99
98
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
var isArray = Array.isArray;
|
|
100
|
+
var keyList = Object.keys;
|
|
101
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
103
102
|
|
|
104
103
|
var fastDeepEqual = function equal(a, b) {
|
|
105
104
|
if (a === b) return true;
|
|
106
105
|
|
|
107
106
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
108
|
-
|
|
107
|
+
var arrA = isArray(a)
|
|
108
|
+
, arrB = isArray(b)
|
|
109
|
+
, i
|
|
110
|
+
, length
|
|
111
|
+
, key;
|
|
109
112
|
|
|
110
|
-
|
|
111
|
-
if (Array.isArray(a)) {
|
|
113
|
+
if (arrA && arrB) {
|
|
112
114
|
length = a.length;
|
|
113
115
|
if (length != b.length) return false;
|
|
114
116
|
for (i = length; i-- !== 0;)
|
|
@@ -116,29 +118,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
116
118
|
return true;
|
|
117
119
|
}
|
|
118
120
|
|
|
121
|
+
if (arrA != arrB) return false;
|
|
119
122
|
|
|
123
|
+
var dateA = a instanceof Date
|
|
124
|
+
, dateB = b instanceof Date;
|
|
125
|
+
if (dateA != dateB) return false;
|
|
126
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
120
127
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
if (
|
|
128
|
+
var regexpA = a instanceof RegExp
|
|
129
|
+
, regexpB = b instanceof RegExp;
|
|
130
|
+
if (regexpA != regexpB) return false;
|
|
131
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
124
132
|
|
|
125
|
-
keys =
|
|
133
|
+
var keys = keyList(a);
|
|
126
134
|
length = keys.length;
|
|
127
|
-
|
|
135
|
+
|
|
136
|
+
if (length !== keyList(b).length)
|
|
137
|
+
return false;
|
|
128
138
|
|
|
129
139
|
for (i = length; i-- !== 0;)
|
|
130
|
-
if (!
|
|
140
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
131
141
|
|
|
132
142
|
for (i = length; i-- !== 0;) {
|
|
133
|
-
|
|
134
|
-
|
|
143
|
+
key = keys[i];
|
|
135
144
|
if (!equal(a[key], b[key])) return false;
|
|
136
145
|
}
|
|
137
146
|
|
|
138
147
|
return true;
|
|
139
148
|
}
|
|
140
149
|
|
|
141
|
-
// true if both NaN, false otherwise
|
|
142
150
|
return a!==a && b!==b;
|
|
143
151
|
};
|
|
144
152
|
|
|
@@ -676,14 +684,14 @@ function coerce(val) {
|
|
|
676
684
|
return val;
|
|
677
685
|
}
|
|
678
686
|
});
|
|
679
|
-
debug.coerce;
|
|
680
|
-
debug.disable;
|
|
681
|
-
debug.enable;
|
|
682
|
-
debug.enabled;
|
|
683
|
-
debug.humanize;
|
|
684
|
-
debug.names;
|
|
685
|
-
debug.skips;
|
|
686
|
-
debug.formatters;
|
|
687
|
+
var debug_1 = debug.coerce;
|
|
688
|
+
var debug_2 = debug.disable;
|
|
689
|
+
var debug_3 = debug.enable;
|
|
690
|
+
var debug_4 = debug.enabled;
|
|
691
|
+
var debug_5 = debug.humanize;
|
|
692
|
+
var debug_6 = debug.names;
|
|
693
|
+
var debug_7 = debug.skips;
|
|
694
|
+
var debug_8 = debug.formatters;
|
|
687
695
|
|
|
688
696
|
var browser = createCommonjsModule(function (module, exports) {
|
|
689
697
|
/**
|
|
@@ -872,13 +880,13 @@ function localstorage() {
|
|
|
872
880
|
} catch (e) {}
|
|
873
881
|
}
|
|
874
882
|
});
|
|
875
|
-
browser.log;
|
|
876
|
-
browser.formatArgs;
|
|
877
|
-
browser.save;
|
|
878
|
-
browser.load;
|
|
879
|
-
browser.useColors;
|
|
880
|
-
browser.storage;
|
|
881
|
-
browser.colors;
|
|
883
|
+
var browser_1 = browser.log;
|
|
884
|
+
var browser_2 = browser.formatArgs;
|
|
885
|
+
var browser_3 = browser.save;
|
|
886
|
+
var browser_4 = browser.load;
|
|
887
|
+
var browser_5 = browser.useColors;
|
|
888
|
+
var browser_6 = browser.storage;
|
|
889
|
+
var browser_7 = browser.colors;
|
|
882
890
|
|
|
883
891
|
// MIT lisence
|
|
884
892
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1153,14 +1161,14 @@ function init (debug) {
|
|
|
1153
1161
|
|
|
1154
1162
|
exports.enable(load());
|
|
1155
1163
|
});
|
|
1156
|
-
node.init;
|
|
1157
|
-
node.log;
|
|
1158
|
-
node.formatArgs;
|
|
1159
|
-
node.save;
|
|
1160
|
-
node.load;
|
|
1161
|
-
node.useColors;
|
|
1162
|
-
node.colors;
|
|
1163
|
-
node.inspectOpts;
|
|
1164
|
+
var node_1 = node.init;
|
|
1165
|
+
var node_2 = node.log;
|
|
1166
|
+
var node_3 = node.formatArgs;
|
|
1167
|
+
var node_4 = node.save;
|
|
1168
|
+
var node_5 = node.load;
|
|
1169
|
+
var node_6 = node.useColors;
|
|
1170
|
+
var node_7 = node.colors;
|
|
1171
|
+
var node_8 = node.inspectOpts;
|
|
1164
1172
|
|
|
1165
1173
|
var src = createCommonjsModule(function (module) {
|
|
1166
1174
|
/**
|
|
@@ -1561,239 +1569,199 @@ module.exports = exports['default'];
|
|
|
1561
1569
|
|
|
1562
1570
|
var youTubePlayer = unwrapExports(dist);
|
|
1563
1571
|
|
|
1564
|
-
function
|
|
1565
|
-
|
|
1566
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1567
|
-
|
|
1568
|
-
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); } }
|
|
1569
|
-
|
|
1570
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1571
|
-
|
|
1572
|
-
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); }
|
|
1573
|
-
|
|
1574
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1575
|
-
|
|
1576
|
-
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); }; }
|
|
1577
|
-
|
|
1578
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1579
|
-
|
|
1580
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1572
|
+
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; }; }();
|
|
1581
1573
|
|
|
1582
|
-
function
|
|
1574
|
+
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; };
|
|
1583
1575
|
|
|
1584
|
-
function
|
|
1576
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1585
1577
|
|
|
1586
|
-
function
|
|
1578
|
+
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; }
|
|
1587
1579
|
|
|
1588
|
-
function
|
|
1580
|
+
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; }
|
|
1589
1581
|
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
*
|
|
1593
|
-
*
|
|
1594
|
-
* @param {Object}
|
|
1595
|
-
* @param {Object} props
|
|
1582
|
+
/**
|
|
1583
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1584
|
+
*
|
|
1585
|
+
* @param {Object} prevProps
|
|
1586
|
+
* @param {Object} props
|
|
1596
1587
|
*/
|
|
1597
|
-
|
|
1598
1588
|
function shouldUpdateVideo(prevProps, props) {
|
|
1599
1589
|
// A changing video should always trigger an update
|
|
1600
1590
|
if (prevProps.videoId !== props.videoId) {
|
|
1601
1591
|
return true;
|
|
1602
|
-
}
|
|
1603
|
-
// update.
|
|
1604
|
-
|
|
1592
|
+
}
|
|
1605
1593
|
|
|
1594
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1595
|
+
// update.
|
|
1606
1596
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1607
1597
|
var vars = props.opts.playerVars || {};
|
|
1598
|
+
|
|
1608
1599
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1609
1600
|
}
|
|
1610
|
-
/**
|
|
1611
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1612
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1613
|
-
* player reset is necessary.
|
|
1614
|
-
*
|
|
1615
|
-
* @param {Object} opts
|
|
1616
|
-
*/
|
|
1617
|
-
|
|
1618
1601
|
|
|
1602
|
+
/**
|
|
1603
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1604
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1605
|
+
* player reset is necessary.
|
|
1606
|
+
*
|
|
1607
|
+
* @param {Object} opts
|
|
1608
|
+
*/
|
|
1619
1609
|
function filterResetOptions(opts) {
|
|
1620
|
-
return
|
|
1621
|
-
playerVars:
|
|
1610
|
+
return _extends({}, opts, {
|
|
1611
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1622
1612
|
autoplay: 0,
|
|
1623
1613
|
start: 0,
|
|
1624
1614
|
end: 0
|
|
1625
|
-
}
|
|
1615
|
+
})
|
|
1626
1616
|
});
|
|
1627
1617
|
}
|
|
1628
|
-
/**
|
|
1629
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1630
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1631
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1632
|
-
* those.
|
|
1633
|
-
*
|
|
1634
|
-
* @param {Object} prevProps
|
|
1635
|
-
* @param {Object} props
|
|
1636
|
-
*/
|
|
1637
|
-
|
|
1638
1618
|
|
|
1619
|
+
/**
|
|
1620
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1621
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1622
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1623
|
+
* those.
|
|
1624
|
+
*
|
|
1625
|
+
* @param {Object} prevProps
|
|
1626
|
+
* @param {Object} props
|
|
1627
|
+
*/
|
|
1639
1628
|
function shouldResetPlayer(prevProps, props) {
|
|
1640
1629
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1641
1630
|
}
|
|
1642
|
-
/**
|
|
1643
|
-
* Check whether a props change should result in an id or className update.
|
|
1644
|
-
*
|
|
1645
|
-
* @param {Object} prevProps
|
|
1646
|
-
* @param {Object} props
|
|
1647
|
-
*/
|
|
1648
|
-
|
|
1649
1631
|
|
|
1632
|
+
/**
|
|
1633
|
+
* Check whether a props change should result in an id or className update.
|
|
1634
|
+
*
|
|
1635
|
+
* @param {Object} prevProps
|
|
1636
|
+
* @param {Object} props
|
|
1637
|
+
*/
|
|
1650
1638
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1651
1639
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1652
1640
|
}
|
|
1653
1641
|
|
|
1654
|
-
var YouTube =
|
|
1642
|
+
var YouTube = function (_React$Component) {
|
|
1655
1643
|
_inherits(YouTube, _React$Component);
|
|
1656
1644
|
|
|
1657
|
-
var _super = _createSuper(YouTube);
|
|
1658
|
-
|
|
1659
|
-
/**
|
|
1660
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1661
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1662
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1663
|
-
*/
|
|
1664
1645
|
function YouTube(props) {
|
|
1665
|
-
var _this;
|
|
1666
|
-
|
|
1667
1646
|
_classCallCheck(this, YouTube);
|
|
1668
1647
|
|
|
1669
|
-
_this =
|
|
1648
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1670
1649
|
|
|
1671
|
-
|
|
1650
|
+
_this.onPlayerReady = function (event) {
|
|
1672
1651
|
return _this.props.onReady(event);
|
|
1673
|
-
}
|
|
1652
|
+
};
|
|
1674
1653
|
|
|
1675
|
-
|
|
1654
|
+
_this.onPlayerError = function (event) {
|
|
1676
1655
|
return _this.props.onError(event);
|
|
1677
|
-
}
|
|
1656
|
+
};
|
|
1678
1657
|
|
|
1679
|
-
|
|
1658
|
+
_this.onPlayerStateChange = function (event) {
|
|
1680
1659
|
_this.props.onStateChange(event);
|
|
1681
|
-
|
|
1682
1660
|
switch (event.data) {
|
|
1661
|
+
|
|
1683
1662
|
case YouTube.PlayerState.ENDED:
|
|
1684
1663
|
_this.props.onEnd(event);
|
|
1685
|
-
|
|
1686
1664
|
break;
|
|
1687
1665
|
|
|
1688
1666
|
case YouTube.PlayerState.PLAYING:
|
|
1689
1667
|
_this.props.onPlay(event);
|
|
1690
|
-
|
|
1691
1668
|
break;
|
|
1692
1669
|
|
|
1693
1670
|
case YouTube.PlayerState.PAUSED:
|
|
1694
1671
|
_this.props.onPause(event);
|
|
1695
|
-
|
|
1696
1672
|
break;
|
|
1697
1673
|
}
|
|
1698
|
-
}
|
|
1674
|
+
};
|
|
1699
1675
|
|
|
1700
|
-
|
|
1676
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1701
1677
|
return _this.props.onPlaybackRateChange(event);
|
|
1702
|
-
}
|
|
1678
|
+
};
|
|
1703
1679
|
|
|
1704
|
-
|
|
1680
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1705
1681
|
return _this.props.onPlaybackQualityChange(event);
|
|
1706
|
-
}
|
|
1682
|
+
};
|
|
1707
1683
|
|
|
1708
|
-
|
|
1684
|
+
_this.createPlayer = function () {
|
|
1709
1685
|
// do not attempt to create a player server-side, it won't work
|
|
1710
|
-
if (typeof document === 'undefined') return;
|
|
1711
|
-
|
|
1712
|
-
var playerOpts =
|
|
1686
|
+
if (typeof document === 'undefined') return;
|
|
1687
|
+
// create player
|
|
1688
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1713
1689
|
// preload the `videoId` video if one is already given
|
|
1714
1690
|
videoId: _this.props.videoId
|
|
1715
1691
|
});
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1692
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1693
|
+
// attach event handlers
|
|
1719
1694
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1720
|
-
|
|
1721
1695
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1722
|
-
|
|
1723
1696
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1724
|
-
|
|
1725
1697
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1726
|
-
|
|
1727
1698
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1728
|
-
}
|
|
1699
|
+
};
|
|
1729
1700
|
|
|
1730
|
-
|
|
1701
|
+
_this.resetPlayer = function () {
|
|
1731
1702
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1732
|
-
}
|
|
1703
|
+
};
|
|
1733
1704
|
|
|
1734
|
-
|
|
1705
|
+
_this.updatePlayer = function () {
|
|
1735
1706
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1736
1707
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1737
1708
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1738
1709
|
});
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1742
|
-
return _this.internalPlayer;
|
|
1743
|
-
});
|
|
1710
|
+
};
|
|
1744
1711
|
|
|
1745
|
-
|
|
1712
|
+
_this.updateVideo = function () {
|
|
1746
1713
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1747
1714
|
_this.internalPlayer.stopVideo();
|
|
1748
|
-
|
|
1749
1715
|
return;
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1716
|
+
}
|
|
1752
1717
|
|
|
1718
|
+
// set queueing options
|
|
1753
1719
|
var autoplay = false;
|
|
1754
1720
|
var opts = {
|
|
1755
1721
|
videoId: _this.props.videoId
|
|
1756
1722
|
};
|
|
1757
|
-
|
|
1758
1723
|
if ('playerVars' in _this.props.opts) {
|
|
1759
1724
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1760
|
-
|
|
1761
1725
|
if ('start' in _this.props.opts.playerVars) {
|
|
1762
1726
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1763
1727
|
}
|
|
1764
|
-
|
|
1765
1728
|
if ('end' in _this.props.opts.playerVars) {
|
|
1766
1729
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1767
1730
|
}
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1731
|
+
}
|
|
1770
1732
|
|
|
1733
|
+
// if autoplay is enabled loadVideoById
|
|
1771
1734
|
if (autoplay) {
|
|
1772
1735
|
_this.internalPlayer.loadVideoById(opts);
|
|
1773
|
-
|
|
1774
1736
|
return;
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
|
|
1737
|
+
}
|
|
1738
|
+
// default behaviour just cues the video
|
|
1778
1739
|
_this.internalPlayer.cueVideoById(opts);
|
|
1779
|
-
}
|
|
1740
|
+
};
|
|
1780
1741
|
|
|
1781
|
-
|
|
1742
|
+
_this.refContainer = function (container) {
|
|
1782
1743
|
_this.container = container;
|
|
1783
|
-
}
|
|
1744
|
+
};
|
|
1784
1745
|
|
|
1785
1746
|
_this.container = null;
|
|
1786
1747
|
_this.internalPlayer = null;
|
|
1787
1748
|
return _this;
|
|
1788
1749
|
}
|
|
1789
1750
|
|
|
1751
|
+
/**
|
|
1752
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1753
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1754
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1755
|
+
*/
|
|
1756
|
+
|
|
1757
|
+
|
|
1790
1758
|
_createClass(YouTube, [{
|
|
1791
|
-
key:
|
|
1759
|
+
key: 'componentDidMount',
|
|
1792
1760
|
value: function componentDidMount() {
|
|
1793
1761
|
this.createPlayer();
|
|
1794
1762
|
}
|
|
1795
1763
|
}, {
|
|
1796
|
-
key:
|
|
1764
|
+
key: 'componentDidUpdate',
|
|
1797
1765
|
value: function componentDidUpdate(prevProps) {
|
|
1798
1766
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1799
1767
|
this.updatePlayer();
|
|
@@ -1808,58 +1776,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1808
1776
|
}
|
|
1809
1777
|
}
|
|
1810
1778
|
}, {
|
|
1811
|
-
key:
|
|
1779
|
+
key: 'componentWillUnmount',
|
|
1812
1780
|
value: function componentWillUnmount() {
|
|
1813
|
-
/**
|
|
1814
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1815
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1816
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1817
|
-
* this method isn't quick enough to reset the container element.
|
|
1781
|
+
/**
|
|
1782
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1783
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1784
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1785
|
+
* this method isn't quick enough to reset the container element.
|
|
1818
1786
|
*/
|
|
1819
1787
|
this.internalPlayer.destroy();
|
|
1820
1788
|
}
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
*
|
|
1824
|
-
*
|
|
1825
|
-
*
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1792
|
+
*
|
|
1793
|
+
* @param {Object} event
|
|
1794
|
+
* @param {Object} target - player object
|
|
1795
|
+
*/
|
|
1796
|
+
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1800
|
+
*
|
|
1801
|
+
* @param {Object} event
|
|
1802
|
+
* @param {Integer} data - error type
|
|
1803
|
+
* @param {Object} target - player object
|
|
1804
|
+
*/
|
|
1805
|
+
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1809
|
+
*
|
|
1810
|
+
* @param {Object} event
|
|
1811
|
+
* @param {Integer} data - status change type
|
|
1812
|
+
* @param {Object} target - actual YT player
|
|
1813
|
+
*/
|
|
1814
|
+
|
|
1815
|
+
|
|
1816
|
+
/**
|
|
1817
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1818
|
+
*
|
|
1819
|
+
* @param {Object} event
|
|
1820
|
+
* @param {Float} data - playback rate
|
|
1821
|
+
* @param {Object} target - actual YT player
|
|
1822
|
+
*/
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
/**
|
|
1826
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1827
|
+
*
|
|
1828
|
+
* @param {Object} event
|
|
1829
|
+
* @param {String} data - playback quality
|
|
1830
|
+
* @param {Object} target - actual YT player
|
|
1831
|
+
*/
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1836
|
+
*/
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1841
|
+
*/
|
|
1842
|
+
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1846
|
+
* React should update this automatically but since the Youtube Player API
|
|
1847
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1848
|
+
*/
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1853
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1854
|
+
* Youtube Player API methods to update the video.
|
|
1826
1855
|
*/
|
|
1827
1856
|
|
|
1828
1857
|
}, {
|
|
1829
|
-
key:
|
|
1858
|
+
key: 'render',
|
|
1830
1859
|
value: function render() {
|
|
1831
|
-
return
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
id: this.props.id,
|
|
1835
|
-
|
|
1836
|
-
ref: this.refContainer
|
|
1837
|
-
}));
|
|
1860
|
+
return React__default.createElement(
|
|
1861
|
+
'div',
|
|
1862
|
+
{ className: this.props.containerClassName },
|
|
1863
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1864
|
+
);
|
|
1838
1865
|
}
|
|
1839
1866
|
}]);
|
|
1840
1867
|
|
|
1841
1868
|
return YouTube;
|
|
1842
|
-
}(
|
|
1843
|
-
|
|
1844
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1845
|
-
UNSTARTED: -1,
|
|
1846
|
-
ENDED: 0,
|
|
1847
|
-
PLAYING: 1,
|
|
1848
|
-
PAUSED: 2,
|
|
1849
|
-
BUFFERING: 3,
|
|
1850
|
-
CUED: 5
|
|
1851
|
-
});
|
|
1869
|
+
}(React__default.Component);
|
|
1852
1870
|
|
|
1853
1871
|
YouTube.propTypes = {
|
|
1854
1872
|
videoId: PropTypes.string,
|
|
1873
|
+
|
|
1855
1874
|
// custom ID for player element
|
|
1856
1875
|
id: PropTypes.string,
|
|
1876
|
+
|
|
1857
1877
|
// custom class name for player element
|
|
1858
1878
|
className: PropTypes.string,
|
|
1859
1879
|
// custom class name for player container element
|
|
1860
1880
|
containerClassName: PropTypes.string,
|
|
1881
|
+
|
|
1861
1882
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1862
1883
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1884
|
+
|
|
1863
1885
|
// event subscriptions
|
|
1864
1886
|
onReady: PropTypes.func,
|
|
1865
1887
|
onError: PropTypes.func,
|
|
@@ -1871,7 +1893,6 @@ YouTube.propTypes = {
|
|
|
1871
1893
|
onPlaybackQualityChange: PropTypes.func
|
|
1872
1894
|
};
|
|
1873
1895
|
YouTube.defaultProps = {
|
|
1874
|
-
videoId: null,
|
|
1875
1896
|
id: null,
|
|
1876
1897
|
className: null,
|
|
1877
1898
|
opts: {},
|
|
@@ -1885,6 +1906,14 @@ YouTube.defaultProps = {
|
|
|
1885
1906
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1886
1907
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1887
1908
|
};
|
|
1909
|
+
YouTube.PlayerState = {
|
|
1910
|
+
UNSTARTED: -1,
|
|
1911
|
+
ENDED: 0,
|
|
1912
|
+
PLAYING: 1,
|
|
1913
|
+
PAUSED: 2,
|
|
1914
|
+
BUFFERING: 3,
|
|
1915
|
+
CUED: 5
|
|
1916
|
+
};
|
|
1888
1917
|
|
|
1889
1918
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1890
1919
|
var url = _ref.url,
|
|
@@ -1923,8 +1952,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1923
1952
|
var duration = player.getDuration();
|
|
1924
1953
|
var queue = Math.floor(duration / 10);
|
|
1925
1954
|
var segment = Math.floor(current / queue);
|
|
1926
|
-
Beam.report_beam_video('Ready',
|
|
1927
|
-
Segment.report_video_event('Video Ready',
|
|
1955
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
1956
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1928
1957
|
};
|
|
1929
1958
|
|
|
1930
1959
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1934,8 +1963,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1934
1963
|
var segment = Math.floor(current / queue);
|
|
1935
1964
|
|
|
1936
1965
|
if (!queueProgress.includes(segment)) {
|
|
1937
|
-
Beam.report_beam_video('Segment',
|
|
1938
|
-
Segment.report_video_event('Video Segment',
|
|
1966
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
1967
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1939
1968
|
queueProgress.push(segment);
|
|
1940
1969
|
}
|
|
1941
1970
|
};
|
|
@@ -1948,8 +1977,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1948
1977
|
var queue = Math.floor(duration / 10);
|
|
1949
1978
|
var segment = Math.floor(current / queue);
|
|
1950
1979
|
|
|
1951
|
-
Beam.report_beam_video('Play',
|
|
1952
|
-
Segment.report_video_event('Video Play',
|
|
1980
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
1981
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1953
1982
|
|
|
1954
1983
|
if (!playReported) {
|
|
1955
1984
|
setPlayReported(true);
|
|
@@ -1968,8 +1997,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1968
1997
|
var queue = Math.floor(duration / 10);
|
|
1969
1998
|
var segment = Math.floor(current / queue);
|
|
1970
1999
|
|
|
1971
|
-
Beam.report_beam_video('End',
|
|
1972
|
-
Segment.report_video_event('Video End',
|
|
2000
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
2001
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1973
2002
|
setEndReported(true);
|
|
1974
2003
|
clearInterval(intervalID);
|
|
1975
2004
|
}
|
|
@@ -1982,15 +2011,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1982
2011
|
var queue = Math.floor(duration / 10);
|
|
1983
2012
|
var segment = Math.floor(current / queue);
|
|
1984
2013
|
|
|
1985
|
-
Beam.report_beam_video('Pause',
|
|
1986
|
-
Segment.report_video_event('Video Pause',
|
|
2014
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
2015
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1987
2016
|
};
|
|
1988
2017
|
|
|
1989
|
-
return
|
|
2018
|
+
return React__default.createElement(
|
|
1990
2019
|
'div',
|
|
1991
2020
|
{ id: 'fluid-video-container' },
|
|
1992
|
-
|
|
1993
|
-
|
|
2021
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2022
|
+
React__default.createElement(
|
|
1994
2023
|
'style',
|
|
1995
2024
|
{ jsx: 'true' },
|
|
1996
2025
|
'\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 '
|
|
@@ -2003,20 +2032,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2003
2032
|
content = _ref.content,
|
|
2004
2033
|
getSerializers = _ref.getSerializers;
|
|
2005
2034
|
|
|
2006
|
-
return
|
|
2035
|
+
return React__default.createElement(
|
|
2007
2036
|
'article',
|
|
2008
2037
|
{ className: 'sidebar' },
|
|
2009
|
-
|
|
2038
|
+
React__default.createElement(
|
|
2010
2039
|
'div',
|
|
2011
2040
|
null,
|
|
2012
|
-
|
|
2041
|
+
React__default.createElement(
|
|
2013
2042
|
'h3',
|
|
2014
2043
|
null,
|
|
2015
2044
|
caption
|
|
2016
2045
|
),
|
|
2017
|
-
|
|
2046
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2018
2047
|
),
|
|
2019
|
-
|
|
2048
|
+
React__default.createElement(
|
|
2020
2049
|
'style',
|
|
2021
2050
|
{ jsx: 'true' },
|
|
2022
2051
|
'\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 '
|
|
@@ -2027,18 +2056,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2027
2056
|
var TableShow = function TableShow(_ref) {
|
|
2028
2057
|
var rows = _ref.rows;
|
|
2029
2058
|
|
|
2030
|
-
return
|
|
2059
|
+
return React__default.createElement(
|
|
2031
2060
|
Table,
|
|
2032
2061
|
{ bordered: true, hover: true, responsive: true },
|
|
2033
|
-
|
|
2062
|
+
React__default.createElement(
|
|
2034
2063
|
'tbody',
|
|
2035
2064
|
null,
|
|
2036
2065
|
rows && rows.map(function (row) {
|
|
2037
|
-
return
|
|
2066
|
+
return React__default.createElement(
|
|
2038
2067
|
'tr',
|
|
2039
2068
|
{ key: row._key },
|
|
2040
2069
|
row.cells && row.cells.map(function (cell, index) {
|
|
2041
|
-
return cell &&
|
|
2070
|
+
return cell && React__default.createElement(
|
|
2042
2071
|
'td',
|
|
2043
2072
|
{ key: index },
|
|
2044
2073
|
cell
|
|
@@ -2141,18 +2170,18 @@ var Media = function Media(_ref) {
|
|
|
2141
2170
|
margin: imageMargin
|
|
2142
2171
|
};
|
|
2143
2172
|
|
|
2144
|
-
return
|
|
2173
|
+
return React__default.createElement(
|
|
2145
2174
|
Figure$1,
|
|
2146
2175
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2147
|
-
|
|
2176
|
+
React__default.createElement(
|
|
2148
2177
|
'a',
|
|
2149
2178
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2150
|
-
|
|
2179
|
+
React__default.createElement(
|
|
2151
2180
|
LazyLoad,
|
|
2152
2181
|
{ once: true },
|
|
2153
|
-
|
|
2182
|
+
React__default.createElement(Figure$1.Image, _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2154
2183
|
),
|
|
2155
|
-
caption &&
|
|
2184
|
+
caption && React__default.createElement(
|
|
2156
2185
|
Figure$1.Caption,
|
|
2157
2186
|
{ className: 'media-caption' },
|
|
2158
2187
|
caption
|
|
@@ -2160,9 +2189,9 @@ var Media = function Media(_ref) {
|
|
|
2160
2189
|
)
|
|
2161
2190
|
);
|
|
2162
2191
|
} else if (caption && caption !== '') {
|
|
2163
|
-
return
|
|
2192
|
+
return React__default.createElement(
|
|
2164
2193
|
'a',
|
|
2165
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2194
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2166
2195
|
href: uploadDoc.asset.url + '?dl='
|
|
2167
2196
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2168
2197
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2180,10 +2209,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2180
2209
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2181
2210
|
|
|
2182
2211
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2183
|
-
return
|
|
2212
|
+
return React__default.createElement(
|
|
2184
2213
|
'div',
|
|
2185
2214
|
{ className: 'd-block text-center mb-3' },
|
|
2186
|
-
|
|
2215
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2187
2216
|
);
|
|
2188
2217
|
};
|
|
2189
2218
|
|
|
@@ -2217,8 +2246,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2217
2246
|
var duration = player.duration;
|
|
2218
2247
|
var queue = Math.floor(duration / 10);
|
|
2219
2248
|
var segment = Math.floor(current / queue);
|
|
2220
|
-
Beam.report_beam_video('Ready',
|
|
2221
|
-
Segment.report_video_event('Video Ready',
|
|
2249
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
|
|
2250
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
2222
2251
|
};
|
|
2223
2252
|
|
|
2224
2253
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2227,8 +2256,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2227
2256
|
var queue = Math.floor(duration / 10);
|
|
2228
2257
|
var segment = Math.floor(current / queue);
|
|
2229
2258
|
if (!queueProgress.includes(segment)) {
|
|
2230
|
-
Beam.report_beam_video('Segment',
|
|
2231
|
-
Segment.report_video_event('Video Segment',
|
|
2259
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
|
|
2260
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
2232
2261
|
queueProgress.push(segment);
|
|
2233
2262
|
}
|
|
2234
2263
|
};
|
|
@@ -2240,8 +2269,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2240
2269
|
var duration = player.duration;
|
|
2241
2270
|
var queue = Math.floor(duration / 10);
|
|
2242
2271
|
var segment = Math.floor(current / queue);
|
|
2243
|
-
Beam.report_beam_video('Play',
|
|
2244
|
-
Segment.report_video_event('Video Play',
|
|
2272
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
|
|
2273
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
2245
2274
|
|
|
2246
2275
|
if (!playReported) {
|
|
2247
2276
|
event.persist();
|
|
@@ -2261,8 +2290,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2261
2290
|
var queue = Math.floor(duration / 10);
|
|
2262
2291
|
var segment = Math.floor(current / queue);
|
|
2263
2292
|
|
|
2264
|
-
Beam.report_beam_video('End',
|
|
2265
|
-
Segment.report_video_event('Video End',
|
|
2293
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
|
|
2294
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
2266
2295
|
setEndReported(true);
|
|
2267
2296
|
clearInterval(intervalID);
|
|
2268
2297
|
}
|
|
@@ -2274,14 +2303,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2274
2303
|
var duration = player.duration - current;
|
|
2275
2304
|
var queue = Math.floor(duration / 10);
|
|
2276
2305
|
var segment = Math.floor(current / queue);
|
|
2277
|
-
Beam.report_beam_video('Pause',
|
|
2278
|
-
Segment.report_video_event('Video Pause',
|
|
2306
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
|
|
2307
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2279
2308
|
};
|
|
2280
2309
|
|
|
2281
|
-
return
|
|
2310
|
+
return React__default.createElement(
|
|
2282
2311
|
'div',
|
|
2283
2312
|
null,
|
|
2284
|
-
vidLoaded &&
|
|
2313
|
+
vidLoaded && React__default.createElement(
|
|
2285
2314
|
'video',
|
|
2286
2315
|
{
|
|
2287
2316
|
poster: thumbnail || '',
|
|
@@ -2299,7 +2328,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2299
2328
|
onPlay: function onPlay(e) {
|
|
2300
2329
|
return handleOnPlay(e);
|
|
2301
2330
|
} },
|
|
2302
|
-
|
|
2331
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2303
2332
|
'Your browser does not support the video tag.'
|
|
2304
2333
|
)
|
|
2305
2334
|
);
|
|
@@ -2336,7 +2365,7 @@ var Video = function Video(_ref) {
|
|
|
2336
2365
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2337
2366
|
//console.log('success:', success.ref)
|
|
2338
2367
|
var player = success.ref;
|
|
2339
|
-
if (_typeof
|
|
2368
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2340
2369
|
player.ima3.settings.debug = true;
|
|
2341
2370
|
if (targeting.content_placement && targeting.document_url) {
|
|
2342
2371
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2364,8 +2393,8 @@ var Video = function Video(_ref) {
|
|
|
2364
2393
|
player.pause();
|
|
2365
2394
|
}
|
|
2366
2395
|
|
|
2367
|
-
Beam.report_beam_video('Ready',
|
|
2368
|
-
Segment.report_video_event('Video Ready',
|
|
2396
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2397
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2369
2398
|
});
|
|
2370
2399
|
|
|
2371
2400
|
// play
|
|
@@ -2374,8 +2403,8 @@ var Video = function Video(_ref) {
|
|
|
2374
2403
|
var current = player.currentTime();
|
|
2375
2404
|
var queue = Math.floor(duration / 10);
|
|
2376
2405
|
var segment = Math.floor(current / queue);
|
|
2377
|
-
Beam.report_beam_video('Play',
|
|
2378
|
-
Segment.report_video_event('Video Play',
|
|
2406
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2407
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2379
2408
|
});
|
|
2380
2409
|
|
|
2381
2410
|
// pause
|
|
@@ -2384,8 +2413,8 @@ var Video = function Video(_ref) {
|
|
|
2384
2413
|
var current = player.currentTime();
|
|
2385
2414
|
var queue = Math.floor(duration / 10);
|
|
2386
2415
|
var segment = Math.floor(current / queue);
|
|
2387
|
-
Beam.report_beam_video('Pause',
|
|
2388
|
-
Segment.report_video_event('Video Pause',
|
|
2416
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2417
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2389
2418
|
});
|
|
2390
2419
|
|
|
2391
2420
|
// end
|
|
@@ -2394,8 +2423,8 @@ var Video = function Video(_ref) {
|
|
|
2394
2423
|
var current = player.currentTime();
|
|
2395
2424
|
var queue = Math.floor(duration / 10);
|
|
2396
2425
|
var segment = Math.floor(current / queue);
|
|
2397
|
-
Beam.report_beam_video('End',
|
|
2398
|
-
Segment.report_video_event('Video End',
|
|
2426
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2427
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2399
2428
|
autoplayNextVideo(evt);
|
|
2400
2429
|
});
|
|
2401
2430
|
|
|
@@ -2406,8 +2435,8 @@ var Video = function Video(_ref) {
|
|
|
2406
2435
|
var queue = Math.floor(duration / 10);
|
|
2407
2436
|
var segment = Math.floor(current / queue);
|
|
2408
2437
|
if (!queueProgress.includes(segment)) {
|
|
2409
|
-
Beam.report_beam_video('Segment',
|
|
2410
|
-
Segment.report_video_event('Video Segment',
|
|
2438
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2439
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2411
2440
|
queueProgress.push(segment);
|
|
2412
2441
|
}
|
|
2413
2442
|
});
|
|
@@ -2418,8 +2447,8 @@ var Video = function Video(_ref) {
|
|
|
2418
2447
|
var id = player.ads.ad.id;
|
|
2419
2448
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2420
2449
|
|
|
2421
|
-
Beam.report_beam_ad('AD Started',
|
|
2422
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2450
|
+
Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
|
|
2451
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2423
2452
|
});
|
|
2424
2453
|
|
|
2425
2454
|
// ad ended
|
|
@@ -2427,60 +2456,60 @@ var Video = function Video(_ref) {
|
|
|
2427
2456
|
var duration = player.ads.ad.duration;
|
|
2428
2457
|
var id = player.ads.ad.id;
|
|
2429
2458
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2430
|
-
Beam.report_beam_ad('AD Ended',
|
|
2431
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2459
|
+
Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
|
|
2460
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2432
2461
|
});
|
|
2433
2462
|
};
|
|
2434
2463
|
|
|
2435
2464
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2436
2465
|
if (videoID) {
|
|
2437
|
-
return
|
|
2466
|
+
return React__default.createElement(
|
|
2438
2467
|
'div',
|
|
2439
2468
|
null,
|
|
2440
|
-
|
|
2469
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2441
2470
|
onSuccess: onVideoSuccess,
|
|
2442
2471
|
accountId: accountIDs.brightcove.accountId,
|
|
2443
2472
|
videoId: videoID,
|
|
2444
2473
|
playerId: accountIDs.brightcove.playerId,
|
|
2445
2474
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2446
2475
|
}),
|
|
2447
|
-
|
|
2476
|
+
React__default.createElement(
|
|
2448
2477
|
'style',
|
|
2449
2478
|
{ jsx: 'true' },
|
|
2450
2479
|
'\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 '
|
|
2451
2480
|
)
|
|
2452
2481
|
);
|
|
2453
2482
|
} else if (playlistID) {
|
|
2454
|
-
return
|
|
2483
|
+
return React__default.createElement(
|
|
2455
2484
|
'div',
|
|
2456
2485
|
null,
|
|
2457
|
-
|
|
2486
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2458
2487
|
accountId: accountIDs.brightcove.accountId,
|
|
2459
2488
|
playlistId: playlistID,
|
|
2460
2489
|
playerId: accountIDs.brightcove.playerId,
|
|
2461
2490
|
onSuccess: onVideoSuccess,
|
|
2462
2491
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2463
2492
|
}),
|
|
2464
|
-
|
|
2493
|
+
React__default.createElement(
|
|
2465
2494
|
'style',
|
|
2466
2495
|
{ jsx: 'true' },
|
|
2467
2496
|
'\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 '
|
|
2468
2497
|
)
|
|
2469
2498
|
);
|
|
2470
2499
|
} else if (experienceID) {
|
|
2471
|
-
return
|
|
2500
|
+
return React__default.createElement(
|
|
2472
2501
|
'div',
|
|
2473
2502
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2474
|
-
videoLoaded &&
|
|
2503
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2475
2504
|
);
|
|
2476
2505
|
}
|
|
2477
2506
|
return null;
|
|
2478
2507
|
}
|
|
2479
2508
|
if (source === 'mp4') {
|
|
2480
|
-
return
|
|
2509
|
+
return React__default.createElement(
|
|
2481
2510
|
'div',
|
|
2482
2511
|
null,
|
|
2483
|
-
|
|
2512
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2484
2513
|
);
|
|
2485
2514
|
}
|
|
2486
2515
|
|
|
@@ -2691,9 +2720,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2691
2720
|
});
|
|
2692
2721
|
|
|
2693
2722
|
unwrapExports(props);
|
|
2694
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2695
|
-
props.defaultProps;
|
|
2696
|
-
props.propTypes;
|
|
2723
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2724
|
+
var props_2 = props.defaultProps;
|
|
2725
|
+
var props_3 = props.propTypes;
|
|
2697
2726
|
|
|
2698
2727
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2699
2728
|
return isNonNullObject(value)
|
|
@@ -2858,17 +2887,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2858
2887
|
|
|
2859
2888
|
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; }
|
|
2860
2889
|
|
|
2861
|
-
function
|
|
2862
|
-
|
|
2863
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2890
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2864
2891
|
|
|
2865
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
2892
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2866
2893
|
|
|
2867
|
-
function
|
|
2868
|
-
|
|
2869
|
-
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; }
|
|
2870
|
-
|
|
2871
|
-
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; }
|
|
2894
|
+
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; }
|
|
2872
2895
|
|
|
2873
2896
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2874
2897
|
|
|
@@ -2998,12 +3021,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2998
3021
|
|
|
2999
3022
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3000
3023
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3001
|
-
|
|
3002
|
-
var
|
|
3003
|
-
|
|
3024
|
+
var _iteratorNormalCompletion = true;
|
|
3025
|
+
var _didIteratorError = false;
|
|
3026
|
+
var _iteratorError = undefined;
|
|
3004
3027
|
|
|
3005
3028
|
try {
|
|
3006
|
-
for (_iterator.
|
|
3029
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3007
3030
|
var p = _step.value;
|
|
3008
3031
|
|
|
3009
3032
|
if (props$1[p]) {
|
|
@@ -3018,9 +3041,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3018
3041
|
}
|
|
3019
3042
|
}
|
|
3020
3043
|
} catch (err) {
|
|
3021
|
-
|
|
3044
|
+
_didIteratorError = true;
|
|
3045
|
+
_iteratorError = err;
|
|
3022
3046
|
} finally {
|
|
3023
|
-
|
|
3047
|
+
try {
|
|
3048
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3049
|
+
_iterator["return"]();
|
|
3050
|
+
}
|
|
3051
|
+
} finally {
|
|
3052
|
+
if (_didIteratorError) {
|
|
3053
|
+
throw _iteratorError;
|
|
3054
|
+
}
|
|
3055
|
+
}
|
|
3024
3056
|
}
|
|
3025
3057
|
|
|
3026
3058
|
return config;
|
|
@@ -3085,7 +3117,7 @@ function isEqual(a, b) {
|
|
|
3085
3117
|
return true;
|
|
3086
3118
|
}
|
|
3087
3119
|
|
|
3088
|
-
if ((0,
|
|
3120
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3089
3121
|
return true;
|
|
3090
3122
|
}
|
|
3091
3123
|
|
|
@@ -3128,17 +3160,17 @@ function isMediaStream(url) {
|
|
|
3128
3160
|
});
|
|
3129
3161
|
|
|
3130
3162
|
unwrapExports(utils);
|
|
3131
|
-
utils.parseStartTime;
|
|
3132
|
-
utils.parseEndTime;
|
|
3133
|
-
utils.randomString;
|
|
3134
|
-
utils.queryString;
|
|
3135
|
-
utils.getSDK;
|
|
3136
|
-
utils.getConfig;
|
|
3137
|
-
utils.omit;
|
|
3138
|
-
utils.callPlayer;
|
|
3139
|
-
utils.isObject;
|
|
3140
|
-
utils.isEqual;
|
|
3141
|
-
utils.isMediaStream;
|
|
3163
|
+
var utils_1 = utils.parseStartTime;
|
|
3164
|
+
var utils_2 = utils.parseEndTime;
|
|
3165
|
+
var utils_3 = utils.randomString;
|
|
3166
|
+
var utils_4 = utils.queryString;
|
|
3167
|
+
var utils_5 = utils.getSDK;
|
|
3168
|
+
var utils_6 = utils.getConfig;
|
|
3169
|
+
var utils_7 = utils.omit;
|
|
3170
|
+
var utils_8 = utils.callPlayer;
|
|
3171
|
+
var utils_9 = utils.isObject;
|
|
3172
|
+
var utils_10 = utils.isEqual;
|
|
3173
|
+
var utils_11 = utils.isMediaStream;
|
|
3142
3174
|
|
|
3143
3175
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3144
3176
|
|
|
@@ -3147,7 +3179,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3147
3179
|
});
|
|
3148
3180
|
exports["default"] = void 0;
|
|
3149
3181
|
|
|
3150
|
-
var _react = _interopRequireWildcard(
|
|
3182
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3151
3183
|
|
|
3152
3184
|
|
|
3153
3185
|
|
|
@@ -3167,16 +3199,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3167
3199
|
|
|
3168
3200
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3169
3201
|
|
|
3170
|
-
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); }; }
|
|
3171
|
-
|
|
3172
3202
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3173
3203
|
|
|
3174
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3175
|
-
|
|
3176
|
-
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; } }
|
|
3177
|
-
|
|
3178
3204
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3179
3205
|
|
|
3206
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3207
|
+
|
|
3180
3208
|
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); }
|
|
3181
3209
|
|
|
3182
3210
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3185,12 +3213,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3185
3213
|
|
|
3186
3214
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3187
3215
|
|
|
3188
|
-
var Player =
|
|
3216
|
+
var Player =
|
|
3217
|
+
/*#__PURE__*/
|
|
3218
|
+
function (_Component) {
|
|
3189
3219
|
_inherits(Player, _Component);
|
|
3190
3220
|
|
|
3191
|
-
var _super = _createSuper(Player);
|
|
3192
|
-
|
|
3193
3221
|
function Player() {
|
|
3222
|
+
var _getPrototypeOf2;
|
|
3223
|
+
|
|
3194
3224
|
var _this;
|
|
3195
3225
|
|
|
3196
3226
|
_classCallCheck(this, Player);
|
|
@@ -3199,7 +3229,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3199
3229
|
_args[_key] = arguments[_key];
|
|
3200
3230
|
}
|
|
3201
3231
|
|
|
3202
|
-
_this =
|
|
3232
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3203
3233
|
|
|
3204
3234
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3205
3235
|
|
|
@@ -3524,7 +3554,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3524
3554
|
return null;
|
|
3525
3555
|
}
|
|
3526
3556
|
|
|
3527
|
-
return
|
|
3557
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3528
3558
|
ref: this.ref,
|
|
3529
3559
|
onReady: this.handleReady,
|
|
3530
3560
|
onPlay: this.handlePlay,
|
|
@@ -3557,7 +3587,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3557
3587
|
});
|
|
3558
3588
|
exports["default"] = createSinglePlayer;
|
|
3559
3589
|
|
|
3560
|
-
var _react = _interopRequireWildcard(
|
|
3590
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3561
3591
|
|
|
3562
3592
|
|
|
3563
3593
|
|
|
@@ -3585,16 +3615,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3585
3615
|
|
|
3586
3616
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3587
3617
|
|
|
3588
|
-
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); }; }
|
|
3589
|
-
|
|
3590
3618
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3591
3619
|
|
|
3592
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3593
|
-
|
|
3594
|
-
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; } }
|
|
3595
|
-
|
|
3596
3620
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3597
3621
|
|
|
3622
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3623
|
+
|
|
3598
3624
|
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); }
|
|
3599
3625
|
|
|
3600
3626
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3606,12 +3632,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3606
3632
|
function createSinglePlayer(activePlayer) {
|
|
3607
3633
|
var _class, _temp;
|
|
3608
3634
|
|
|
3609
|
-
return _temp = _class =
|
|
3635
|
+
return _temp = _class =
|
|
3636
|
+
/*#__PURE__*/
|
|
3637
|
+
function (_Component) {
|
|
3610
3638
|
_inherits(SinglePlayer, _Component);
|
|
3611
3639
|
|
|
3612
|
-
var _super = _createSuper(SinglePlayer);
|
|
3613
|
-
|
|
3614
3640
|
function SinglePlayer() {
|
|
3641
|
+
var _getPrototypeOf2;
|
|
3642
|
+
|
|
3615
3643
|
var _this;
|
|
3616
3644
|
|
|
3617
3645
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3620,7 +3648,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3620
3648
|
args[_key] = arguments[_key];
|
|
3621
3649
|
}
|
|
3622
3650
|
|
|
3623
|
-
_this =
|
|
3651
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3624
3652
|
|
|
3625
3653
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3626
3654
|
|
|
@@ -3688,12 +3716,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3688
3716
|
height = _this$props.height,
|
|
3689
3717
|
Wrapper = _this$props.wrapper;
|
|
3690
3718
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3691
|
-
return
|
|
3719
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3692
3720
|
style: _objectSpread({}, style, {
|
|
3693
3721
|
width: width,
|
|
3694
3722
|
height: height
|
|
3695
3723
|
})
|
|
3696
|
-
}, otherProps),
|
|
3724
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3697
3725
|
ref: this.ref,
|
|
3698
3726
|
activePlayer: activePlayer,
|
|
3699
3727
|
config: this.config
|
|
@@ -3715,7 +3743,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3715
3743
|
});
|
|
3716
3744
|
exports["default"] = exports.YouTube = void 0;
|
|
3717
3745
|
|
|
3718
|
-
var _react = _interopRequireWildcard(
|
|
3746
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3719
3747
|
|
|
3720
3748
|
|
|
3721
3749
|
|
|
@@ -3739,31 +3767,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3739
3767
|
|
|
3740
3768
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3741
3769
|
|
|
3742
|
-
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); }; }
|
|
3743
|
-
|
|
3744
3770
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3745
3771
|
|
|
3746
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3747
|
-
|
|
3748
|
-
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; } }
|
|
3749
|
-
|
|
3750
3772
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3751
3773
|
|
|
3774
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3775
|
+
|
|
3752
3776
|
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); }
|
|
3753
3777
|
|
|
3754
3778
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3755
3779
|
|
|
3756
3780
|
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; }
|
|
3757
3781
|
|
|
3758
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3759
|
-
|
|
3760
|
-
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."); }
|
|
3782
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3761
3783
|
|
|
3762
|
-
function
|
|
3784
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3763
3785
|
|
|
3764
|
-
function
|
|
3765
|
-
|
|
3766
|
-
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; }
|
|
3786
|
+
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; }
|
|
3767
3787
|
|
|
3768
3788
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3769
3789
|
|
|
@@ -3788,12 +3808,14 @@ function parsePlaylist(url) {
|
|
|
3788
3808
|
return {};
|
|
3789
3809
|
}
|
|
3790
3810
|
|
|
3791
|
-
var YouTube =
|
|
3811
|
+
var YouTube =
|
|
3812
|
+
/*#__PURE__*/
|
|
3813
|
+
function (_Component) {
|
|
3792
3814
|
_inherits(YouTube, _Component);
|
|
3793
3815
|
|
|
3794
|
-
var _super = _createSuper(YouTube);
|
|
3795
|
-
|
|
3796
3816
|
function YouTube() {
|
|
3817
|
+
var _getPrototypeOf2;
|
|
3818
|
+
|
|
3797
3819
|
var _this;
|
|
3798
3820
|
|
|
3799
3821
|
_classCallCheck(this, YouTube);
|
|
@@ -3802,7 +3824,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3802
3824
|
args[_key] = arguments[_key];
|
|
3803
3825
|
}
|
|
3804
3826
|
|
|
3805
|
-
_this =
|
|
3827
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3806
3828
|
|
|
3807
3829
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3808
3830
|
|
|
@@ -3990,9 +4012,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3990
4012
|
height: '100%',
|
|
3991
4013
|
display: display
|
|
3992
4014
|
};
|
|
3993
|
-
return
|
|
4015
|
+
return _react["default"].createElement("div", {
|
|
3994
4016
|
style: style
|
|
3995
|
-
},
|
|
4017
|
+
}, _react["default"].createElement("div", {
|
|
3996
4018
|
ref: this.ref
|
|
3997
4019
|
}));
|
|
3998
4020
|
}
|
|
@@ -4015,7 +4037,7 @@ exports["default"] = _default;
|
|
|
4015
4037
|
});
|
|
4016
4038
|
|
|
4017
4039
|
unwrapExports(YouTube_1);
|
|
4018
|
-
YouTube_1.YouTube;
|
|
4040
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4019
4041
|
|
|
4020
4042
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4021
4043
|
|
|
@@ -4024,7 +4046,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4024
4046
|
});
|
|
4025
4047
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4026
4048
|
|
|
4027
|
-
var _react = _interopRequireWildcard(
|
|
4049
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4028
4050
|
|
|
4029
4051
|
|
|
4030
4052
|
|
|
@@ -4048,16 +4070,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4048
4070
|
|
|
4049
4071
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4050
4072
|
|
|
4051
|
-
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); }; }
|
|
4052
|
-
|
|
4053
4073
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4054
4074
|
|
|
4055
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4056
|
-
|
|
4057
|
-
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; } }
|
|
4058
|
-
|
|
4059
4075
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4060
4076
|
|
|
4077
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4078
|
+
|
|
4061
4079
|
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); }
|
|
4062
4080
|
|
|
4063
4081
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4066,14 +4084,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4066
4084
|
|
|
4067
4085
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4068
4086
|
var SDK_GLOBAL = 'SC';
|
|
4069
|
-
var MATCH_URL = /(
|
|
4087
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4070
4088
|
|
|
4071
|
-
var SoundCloud =
|
|
4089
|
+
var SoundCloud =
|
|
4090
|
+
/*#__PURE__*/
|
|
4091
|
+
function (_Component) {
|
|
4072
4092
|
_inherits(SoundCloud, _Component);
|
|
4073
4093
|
|
|
4074
|
-
var _super = _createSuper(SoundCloud);
|
|
4075
|
-
|
|
4076
4094
|
function SoundCloud() {
|
|
4095
|
+
var _getPrototypeOf2;
|
|
4096
|
+
|
|
4077
4097
|
var _this;
|
|
4078
4098
|
|
|
4079
4099
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4082,7 +4102,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4082
4102
|
args[_key] = arguments[_key];
|
|
4083
4103
|
}
|
|
4084
4104
|
|
|
4085
|
-
_this =
|
|
4105
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4086
4106
|
|
|
4087
4107
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4088
4108
|
|
|
@@ -4203,7 +4223,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4203
4223
|
height: '100%',
|
|
4204
4224
|
display: display
|
|
4205
4225
|
};
|
|
4206
|
-
return
|
|
4226
|
+
return _react["default"].createElement("iframe", {
|
|
4207
4227
|
ref: this.ref,
|
|
4208
4228
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4209
4229
|
style: style,
|
|
@@ -4232,7 +4252,7 @@ exports["default"] = _default;
|
|
|
4232
4252
|
});
|
|
4233
4253
|
|
|
4234
4254
|
unwrapExports(SoundCloud_1);
|
|
4235
|
-
SoundCloud_1.SoundCloud;
|
|
4255
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4236
4256
|
|
|
4237
4257
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4238
4258
|
|
|
@@ -4241,7 +4261,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4241
4261
|
});
|
|
4242
4262
|
exports["default"] = exports.Vimeo = void 0;
|
|
4243
4263
|
|
|
4244
|
-
var _react = _interopRequireWildcard(
|
|
4264
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4245
4265
|
|
|
4246
4266
|
|
|
4247
4267
|
|
|
@@ -4265,16 +4285,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4265
4285
|
|
|
4266
4286
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4267
4287
|
|
|
4268
|
-
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); }; }
|
|
4269
|
-
|
|
4270
4288
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4271
4289
|
|
|
4272
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4273
|
-
|
|
4274
|
-
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; } }
|
|
4275
|
-
|
|
4276
4290
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4277
4291
|
|
|
4292
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4293
|
+
|
|
4278
4294
|
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); }
|
|
4279
4295
|
|
|
4280
4296
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4286,12 +4302,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4286
4302
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4287
4303
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4288
4304
|
|
|
4289
|
-
var Vimeo =
|
|
4305
|
+
var Vimeo =
|
|
4306
|
+
/*#__PURE__*/
|
|
4307
|
+
function (_Component) {
|
|
4290
4308
|
_inherits(Vimeo, _Component);
|
|
4291
4309
|
|
|
4292
|
-
var _super = _createSuper(Vimeo);
|
|
4293
|
-
|
|
4294
4310
|
function Vimeo() {
|
|
4311
|
+
var _getPrototypeOf2;
|
|
4312
|
+
|
|
4295
4313
|
var _this;
|
|
4296
4314
|
|
|
4297
4315
|
_classCallCheck(this, Vimeo);
|
|
@@ -4300,7 +4318,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4300
4318
|
args[_key] = arguments[_key];
|
|
4301
4319
|
}
|
|
4302
4320
|
|
|
4303
|
-
_this =
|
|
4321
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4304
4322
|
|
|
4305
4323
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4306
4324
|
|
|
@@ -4457,7 +4475,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4457
4475
|
overflow: 'hidden',
|
|
4458
4476
|
display: display
|
|
4459
4477
|
};
|
|
4460
|
-
return
|
|
4478
|
+
return _react["default"].createElement("div", {
|
|
4461
4479
|
key: this.props.url,
|
|
4462
4480
|
ref: this.ref,
|
|
4463
4481
|
style: style
|
|
@@ -4488,7 +4506,7 @@ exports["default"] = _default;
|
|
|
4488
4506
|
});
|
|
4489
4507
|
|
|
4490
4508
|
unwrapExports(Vimeo_1);
|
|
4491
|
-
Vimeo_1.Vimeo;
|
|
4509
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4492
4510
|
|
|
4493
4511
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4494
4512
|
|
|
@@ -4497,7 +4515,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4497
4515
|
});
|
|
4498
4516
|
exports["default"] = exports.Facebook = void 0;
|
|
4499
4517
|
|
|
4500
|
-
var _react = _interopRequireWildcard(
|
|
4518
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4501
4519
|
|
|
4502
4520
|
|
|
4503
4521
|
|
|
@@ -4517,16 +4535,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4517
4535
|
|
|
4518
4536
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4519
4537
|
|
|
4520
|
-
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); }; }
|
|
4521
|
-
|
|
4522
4538
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4523
4539
|
|
|
4524
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4525
|
-
|
|
4526
|
-
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; } }
|
|
4527
|
-
|
|
4528
4540
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4529
4541
|
|
|
4542
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4543
|
+
|
|
4530
4544
|
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); }
|
|
4531
4545
|
|
|
4532
4546
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4539,12 +4553,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4539
4553
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4540
4554
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4541
4555
|
|
|
4542
|
-
var Facebook =
|
|
4556
|
+
var Facebook =
|
|
4557
|
+
/*#__PURE__*/
|
|
4558
|
+
function (_Component) {
|
|
4543
4559
|
_inherits(Facebook, _Component);
|
|
4544
4560
|
|
|
4545
|
-
var _super = _createSuper(Facebook);
|
|
4546
|
-
|
|
4547
4561
|
function Facebook() {
|
|
4562
|
+
var _getPrototypeOf2;
|
|
4563
|
+
|
|
4548
4564
|
var _this;
|
|
4549
4565
|
|
|
4550
4566
|
_classCallCheck(this, Facebook);
|
|
@@ -4553,7 +4569,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4553
4569
|
args[_key] = arguments[_key];
|
|
4554
4570
|
}
|
|
4555
4571
|
|
|
4556
|
-
_this =
|
|
4572
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4557
4573
|
|
|
4558
4574
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4559
4575
|
|
|
@@ -4669,7 +4685,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4669
4685
|
width: '100%',
|
|
4670
4686
|
height: '100%'
|
|
4671
4687
|
};
|
|
4672
|
-
return
|
|
4688
|
+
return _react["default"].createElement("div", {
|
|
4673
4689
|
style: style,
|
|
4674
4690
|
id: this.playerID,
|
|
4675
4691
|
className: "fb-video",
|
|
@@ -4700,7 +4716,7 @@ exports["default"] = _default;
|
|
|
4700
4716
|
});
|
|
4701
4717
|
|
|
4702
4718
|
unwrapExports(Facebook_1);
|
|
4703
|
-
Facebook_1.Facebook;
|
|
4719
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4704
4720
|
|
|
4705
4721
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4706
4722
|
|
|
@@ -4709,7 +4725,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4709
4725
|
});
|
|
4710
4726
|
exports["default"] = exports.Streamable = void 0;
|
|
4711
4727
|
|
|
4712
|
-
var _react = _interopRequireWildcard(
|
|
4728
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4713
4729
|
|
|
4714
4730
|
|
|
4715
4731
|
|
|
@@ -4729,16 +4745,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4729
4745
|
|
|
4730
4746
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4731
4747
|
|
|
4732
|
-
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); }; }
|
|
4733
|
-
|
|
4734
4748
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4735
4749
|
|
|
4736
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4737
|
-
|
|
4738
|
-
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; } }
|
|
4739
|
-
|
|
4740
4750
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4741
4751
|
|
|
4752
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4753
|
+
|
|
4742
4754
|
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); }
|
|
4743
4755
|
|
|
4744
4756
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4749,12 +4761,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4749
4761
|
var SDK_GLOBAL = 'playerjs';
|
|
4750
4762
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4751
4763
|
|
|
4752
|
-
var Streamable =
|
|
4764
|
+
var Streamable =
|
|
4765
|
+
/*#__PURE__*/
|
|
4766
|
+
function (_Component) {
|
|
4753
4767
|
_inherits(Streamable, _Component);
|
|
4754
4768
|
|
|
4755
|
-
var _super = _createSuper(Streamable);
|
|
4756
|
-
|
|
4757
4769
|
function Streamable() {
|
|
4770
|
+
var _getPrototypeOf2;
|
|
4771
|
+
|
|
4758
4772
|
var _this;
|
|
4759
4773
|
|
|
4760
4774
|
_classCallCheck(this, Streamable);
|
|
@@ -4763,7 +4777,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4763
4777
|
args[_key] = arguments[_key];
|
|
4764
4778
|
}
|
|
4765
4779
|
|
|
4766
|
-
_this =
|
|
4780
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4767
4781
|
|
|
4768
4782
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4769
4783
|
|
|
@@ -4883,7 +4897,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4883
4897
|
width: '100%',
|
|
4884
4898
|
height: '100%'
|
|
4885
4899
|
};
|
|
4886
|
-
return
|
|
4900
|
+
return _react["default"].createElement("iframe", {
|
|
4887
4901
|
ref: this.ref,
|
|
4888
4902
|
src: "https://streamable.com/o/".concat(id),
|
|
4889
4903
|
frameBorder: "0",
|
|
@@ -4911,7 +4925,7 @@ exports["default"] = _default;
|
|
|
4911
4925
|
});
|
|
4912
4926
|
|
|
4913
4927
|
unwrapExports(Streamable_1);
|
|
4914
|
-
Streamable_1.Streamable;
|
|
4928
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4915
4929
|
|
|
4916
4930
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4917
4931
|
|
|
@@ -4920,7 +4934,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4920
4934
|
});
|
|
4921
4935
|
exports["default"] = exports.Wistia = void 0;
|
|
4922
4936
|
|
|
4923
|
-
var _react = _interopRequireWildcard(
|
|
4937
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4924
4938
|
|
|
4925
4939
|
|
|
4926
4940
|
|
|
@@ -4944,16 +4958,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4944
4958
|
|
|
4945
4959
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4946
4960
|
|
|
4947
|
-
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); }; }
|
|
4948
|
-
|
|
4949
4961
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4950
4962
|
|
|
4963
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4964
|
+
|
|
4951
4965
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4952
4966
|
|
|
4953
|
-
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; } }
|
|
4954
|
-
|
|
4955
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4956
|
-
|
|
4957
4967
|
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); }
|
|
4958
4968
|
|
|
4959
4969
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4964,48 +4974,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4964
4974
|
var SDK_GLOBAL = 'Wistia';
|
|
4965
4975
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4966
4976
|
|
|
4967
|
-
var Wistia =
|
|
4977
|
+
var Wistia =
|
|
4978
|
+
/*#__PURE__*/
|
|
4979
|
+
function (_Component) {
|
|
4968
4980
|
_inherits(Wistia, _Component);
|
|
4969
4981
|
|
|
4970
|
-
var _super = _createSuper(Wistia);
|
|
4971
|
-
|
|
4972
4982
|
function Wistia() {
|
|
4983
|
+
var _getPrototypeOf2;
|
|
4984
|
+
|
|
4973
4985
|
var _this;
|
|
4974
4986
|
|
|
4975
4987
|
_classCallCheck(this, Wistia);
|
|
4976
4988
|
|
|
4977
|
-
for (var _len = arguments.length,
|
|
4978
|
-
|
|
4989
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4990
|
+
args[_key] = arguments[_key];
|
|
4979
4991
|
}
|
|
4980
4992
|
|
|
4981
|
-
_this =
|
|
4993
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4982
4994
|
|
|
4983
4995
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4984
4996
|
|
|
4985
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4986
|
-
var _this$props;
|
|
4987
|
-
|
|
4988
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4989
|
-
});
|
|
4990
|
-
|
|
4991
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4992
|
-
var _this$props2;
|
|
4993
|
-
|
|
4994
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4995
|
-
});
|
|
4996
|
-
|
|
4997
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4998
|
-
var _this$props3;
|
|
4999
|
-
|
|
5000
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5001
|
-
});
|
|
5002
|
-
|
|
5003
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5004
|
-
var _this$props4;
|
|
5005
|
-
|
|
5006
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5007
|
-
});
|
|
5008
|
-
|
|
5009
4997
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5010
4998
|
_this.callPlayer('mute');
|
|
5011
4999
|
});
|
|
@@ -5027,13 +5015,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5027
5015
|
value: function load(url) {
|
|
5028
5016
|
var _this2 = this;
|
|
5029
5017
|
|
|
5030
|
-
var _this$
|
|
5031
|
-
playing = _this$
|
|
5032
|
-
muted = _this$
|
|
5033
|
-
controls = _this$
|
|
5034
|
-
_onReady = _this$
|
|
5035
|
-
|
|
5036
|
-
|
|
5018
|
+
var _this$props = this.props,
|
|
5019
|
+
playing = _this$props.playing,
|
|
5020
|
+
muted = _this$props.muted,
|
|
5021
|
+
controls = _this$props.controls,
|
|
5022
|
+
_onReady = _this$props.onReady,
|
|
5023
|
+
onPlay = _this$props.onPlay,
|
|
5024
|
+
onPause = _this$props.onPause,
|
|
5025
|
+
onSeek = _this$props.onSeek,
|
|
5026
|
+
onEnded = _this$props.onEnded,
|
|
5027
|
+
config = _this$props.config,
|
|
5028
|
+
onError = _this$props.onError;
|
|
5037
5029
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5038
5030
|
window._wq = window._wq || [];
|
|
5039
5031
|
|
|
@@ -5050,28 +5042,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5050
5042
|
|
|
5051
5043
|
_this2.unbind();
|
|
5052
5044
|
|
|
5053
|
-
_this2.player.bind('play',
|
|
5045
|
+
_this2.player.bind('play', onPlay);
|
|
5054
5046
|
|
|
5055
|
-
_this2.player.bind('pause',
|
|
5047
|
+
_this2.player.bind('pause', onPause);
|
|
5056
5048
|
|
|
5057
|
-
_this2.player.bind('seek',
|
|
5049
|
+
_this2.player.bind('seek', onSeek);
|
|
5058
5050
|
|
|
5059
|
-
_this2.player.bind('end',
|
|
5051
|
+
_this2.player.bind('end', onEnded);
|
|
5060
5052
|
|
|
5061
5053
|
_onReady();
|
|
5062
5054
|
}
|
|
5063
5055
|
});
|
|
5064
5056
|
}, onError);
|
|
5065
5057
|
}
|
|
5066
|
-
}, {
|
|
5067
|
-
key: "unbind",
|
|
5068
|
-
value: function unbind() {
|
|
5069
|
-
this.player.unbind('play', this.onPlay);
|
|
5070
|
-
this.player.unbind('pause', this.onPause);
|
|
5071
|
-
this.player.unbind('seek', this.onSeek);
|
|
5072
|
-
this.player.unbind('end', this.onEnded);
|
|
5073
|
-
} // Proxy methods to prevent listener leaks
|
|
5074
|
-
|
|
5075
5058
|
}, {
|
|
5076
5059
|
key: "play",
|
|
5077
5060
|
value: function play() {
|
|
@@ -5082,6 +5065,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5082
5065
|
value: function pause() {
|
|
5083
5066
|
this.callPlayer('pause');
|
|
5084
5067
|
}
|
|
5068
|
+
}, {
|
|
5069
|
+
key: "unbind",
|
|
5070
|
+
value: function unbind() {
|
|
5071
|
+
var _this$props2 = this.props,
|
|
5072
|
+
onPlay = _this$props2.onPlay,
|
|
5073
|
+
onPause = _this$props2.onPause,
|
|
5074
|
+
onSeek = _this$props2.onSeek,
|
|
5075
|
+
onEnded = _this$props2.onEnded;
|
|
5076
|
+
this.player.unbind('play', onPlay);
|
|
5077
|
+
this.player.unbind('pause', onPause);
|
|
5078
|
+
this.player.unbind('seek', onSeek);
|
|
5079
|
+
this.player.unbind('end', onEnded);
|
|
5080
|
+
}
|
|
5085
5081
|
}, {
|
|
5086
5082
|
key: "stop",
|
|
5087
5083
|
value: function stop() {
|
|
@@ -5127,7 +5123,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5127
5123
|
width: '100%',
|
|
5128
5124
|
height: '100%'
|
|
5129
5125
|
};
|
|
5130
|
-
return
|
|
5126
|
+
return _react["default"].createElement("div", {
|
|
5131
5127
|
key: id,
|
|
5132
5128
|
className: className,
|
|
5133
5129
|
style: style
|
|
@@ -5154,7 +5150,7 @@ exports["default"] = _default;
|
|
|
5154
5150
|
});
|
|
5155
5151
|
|
|
5156
5152
|
unwrapExports(Wistia_1);
|
|
5157
|
-
Wistia_1.Wistia;
|
|
5153
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5158
5154
|
|
|
5159
5155
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5160
5156
|
|
|
@@ -5163,7 +5159,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5163
5159
|
});
|
|
5164
5160
|
exports["default"] = exports.Twitch = void 0;
|
|
5165
5161
|
|
|
5166
|
-
var _react = _interopRequireWildcard(
|
|
5162
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5167
5163
|
|
|
5168
5164
|
|
|
5169
5165
|
|
|
@@ -5187,16 +5183,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5187
5183
|
|
|
5188
5184
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5189
5185
|
|
|
5190
|
-
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); }; }
|
|
5191
|
-
|
|
5192
5186
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5193
5187
|
|
|
5194
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5195
|
-
|
|
5196
|
-
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; } }
|
|
5197
|
-
|
|
5198
5188
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5199
5189
|
|
|
5190
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5191
|
+
|
|
5200
5192
|
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); }
|
|
5201
5193
|
|
|
5202
5194
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5209,12 +5201,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5209
5201
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5210
5202
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5211
5203
|
|
|
5212
|
-
var Twitch =
|
|
5204
|
+
var Twitch =
|
|
5205
|
+
/*#__PURE__*/
|
|
5206
|
+
function (_Component) {
|
|
5213
5207
|
_inherits(Twitch, _Component);
|
|
5214
5208
|
|
|
5215
|
-
var _super = _createSuper(Twitch);
|
|
5216
|
-
|
|
5217
5209
|
function Twitch() {
|
|
5210
|
+
var _getPrototypeOf2;
|
|
5211
|
+
|
|
5218
5212
|
var _this;
|
|
5219
5213
|
|
|
5220
5214
|
_classCallCheck(this, Twitch);
|
|
@@ -5223,7 +5217,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5223
5217
|
args[_key] = arguments[_key];
|
|
5224
5218
|
}
|
|
5225
5219
|
|
|
5226
|
-
_this =
|
|
5220
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5227
5221
|
|
|
5228
5222
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5229
5223
|
|
|
@@ -5344,7 +5338,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5344
5338
|
width: '100%',
|
|
5345
5339
|
height: '100%'
|
|
5346
5340
|
};
|
|
5347
|
-
return
|
|
5341
|
+
return _react["default"].createElement("div", {
|
|
5348
5342
|
style: style,
|
|
5349
5343
|
id: this.playerID
|
|
5350
5344
|
});
|
|
@@ -5370,7 +5364,7 @@ exports["default"] = _default;
|
|
|
5370
5364
|
});
|
|
5371
5365
|
|
|
5372
5366
|
unwrapExports(Twitch_1);
|
|
5373
|
-
Twitch_1.Twitch;
|
|
5367
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5374
5368
|
|
|
5375
5369
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5376
5370
|
|
|
@@ -5379,7 +5373,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5379
5373
|
});
|
|
5380
5374
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5381
5375
|
|
|
5382
|
-
var _react = _interopRequireWildcard(
|
|
5376
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5383
5377
|
|
|
5384
5378
|
|
|
5385
5379
|
|
|
@@ -5397,15 +5391,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5397
5391
|
|
|
5398
5392
|
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; }
|
|
5399
5393
|
|
|
5400
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5401
|
-
|
|
5402
|
-
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."); }
|
|
5394
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5403
5395
|
|
|
5404
|
-
function
|
|
5396
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5405
5397
|
|
|
5406
|
-
function
|
|
5407
|
-
|
|
5408
|
-
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; }
|
|
5398
|
+
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; }
|
|
5409
5399
|
|
|
5410
5400
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5411
5401
|
|
|
@@ -5415,16 +5405,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5415
5405
|
|
|
5416
5406
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5417
5407
|
|
|
5418
|
-
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); }; }
|
|
5419
|
-
|
|
5420
5408
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5421
5409
|
|
|
5422
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5423
|
-
|
|
5424
|
-
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; } }
|
|
5425
|
-
|
|
5426
5410
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5427
5411
|
|
|
5412
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5413
|
+
|
|
5428
5414
|
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); }
|
|
5429
5415
|
|
|
5430
5416
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5436,12 +5422,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5436
5422
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5437
5423
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5438
5424
|
|
|
5439
|
-
var DailyMotion =
|
|
5425
|
+
var DailyMotion =
|
|
5426
|
+
/*#__PURE__*/
|
|
5427
|
+
function (_Component) {
|
|
5440
5428
|
_inherits(DailyMotion, _Component);
|
|
5441
5429
|
|
|
5442
|
-
var _super = _createSuper(DailyMotion);
|
|
5443
|
-
|
|
5444
5430
|
function DailyMotion() {
|
|
5431
|
+
var _getPrototypeOf2;
|
|
5432
|
+
|
|
5445
5433
|
var _this;
|
|
5446
5434
|
|
|
5447
5435
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5450,7 +5438,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5450
5438
|
args[_key] = arguments[_key];
|
|
5451
5439
|
}
|
|
5452
5440
|
|
|
5453
|
-
_this =
|
|
5441
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5454
5442
|
|
|
5455
5443
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5456
5444
|
|
|
@@ -5579,9 +5567,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5579
5567
|
height: '100%',
|
|
5580
5568
|
display: display
|
|
5581
5569
|
};
|
|
5582
|
-
return
|
|
5570
|
+
return _react["default"].createElement("div", {
|
|
5583
5571
|
style: style
|
|
5584
|
-
},
|
|
5572
|
+
}, _react["default"].createElement("div", {
|
|
5585
5573
|
ref: this.ref
|
|
5586
5574
|
}));
|
|
5587
5575
|
}
|
|
@@ -5606,7 +5594,7 @@ exports["default"] = _default;
|
|
|
5606
5594
|
});
|
|
5607
5595
|
|
|
5608
5596
|
unwrapExports(DailyMotion_1);
|
|
5609
|
-
DailyMotion_1.DailyMotion;
|
|
5597
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5610
5598
|
|
|
5611
5599
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5612
5600
|
|
|
@@ -5615,7 +5603,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5615
5603
|
});
|
|
5616
5604
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5617
5605
|
|
|
5618
|
-
var _react = _interopRequireWildcard(
|
|
5606
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5619
5607
|
|
|
5620
5608
|
|
|
5621
5609
|
|
|
@@ -5639,16 +5627,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5639
5627
|
|
|
5640
5628
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5641
5629
|
|
|
5642
|
-
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); }; }
|
|
5643
|
-
|
|
5644
5630
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5645
5631
|
|
|
5646
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5647
|
-
|
|
5648
|
-
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; } }
|
|
5649
|
-
|
|
5650
5632
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5651
5633
|
|
|
5634
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5635
|
+
|
|
5652
5636
|
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); }
|
|
5653
5637
|
|
|
5654
5638
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5659,12 +5643,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5659
5643
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5660
5644
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5661
5645
|
|
|
5662
|
-
var Mixcloud =
|
|
5646
|
+
var Mixcloud =
|
|
5647
|
+
/*#__PURE__*/
|
|
5648
|
+
function (_Component) {
|
|
5663
5649
|
_inherits(Mixcloud, _Component);
|
|
5664
5650
|
|
|
5665
|
-
var _super = _createSuper(Mixcloud);
|
|
5666
|
-
|
|
5667
5651
|
function Mixcloud() {
|
|
5652
|
+
var _getPrototypeOf2;
|
|
5653
|
+
|
|
5668
5654
|
var _this;
|
|
5669
5655
|
|
|
5670
5656
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5673,7 +5659,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5673
5659
|
args[_key] = arguments[_key];
|
|
5674
5660
|
}
|
|
5675
5661
|
|
|
5676
|
-
_this =
|
|
5662
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5677
5663
|
|
|
5678
5664
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5679
5665
|
|
|
@@ -5776,7 +5762,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5776
5762
|
})); // We have to give the iframe a key here to prevent a
|
|
5777
5763
|
// weird dialog appearing when loading a new track
|
|
5778
5764
|
|
|
5779
|
-
return
|
|
5765
|
+
return _react["default"].createElement("iframe", {
|
|
5780
5766
|
key: id,
|
|
5781
5767
|
ref: this.ref,
|
|
5782
5768
|
style: style,
|
|
@@ -5805,7 +5791,7 @@ exports["default"] = _default;
|
|
|
5805
5791
|
});
|
|
5806
5792
|
|
|
5807
5793
|
unwrapExports(Mixcloud_1);
|
|
5808
|
-
Mixcloud_1.Mixcloud;
|
|
5794
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5809
5795
|
|
|
5810
5796
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5811
5797
|
|
|
@@ -5814,7 +5800,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5814
5800
|
});
|
|
5815
5801
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5816
5802
|
|
|
5817
|
-
var _react = _interopRequireWildcard(
|
|
5803
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5818
5804
|
|
|
5819
5805
|
|
|
5820
5806
|
|
|
@@ -5836,33 +5822,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5836
5822
|
|
|
5837
5823
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5838
5824
|
|
|
5839
|
-
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); }; }
|
|
5840
|
-
|
|
5841
5825
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5842
5826
|
|
|
5843
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5844
|
-
|
|
5845
|
-
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; } }
|
|
5846
|
-
|
|
5847
5827
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5848
5828
|
|
|
5829
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5830
|
+
|
|
5849
5831
|
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); }
|
|
5850
5832
|
|
|
5851
5833
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5852
5834
|
|
|
5853
5835
|
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; }
|
|
5854
5836
|
|
|
5855
|
-
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; } } }; }
|
|
5856
|
-
|
|
5857
|
-
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); }
|
|
5858
|
-
|
|
5859
|
-
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; }
|
|
5860
|
-
|
|
5861
5837
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5862
5838
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5863
5839
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5864
5840
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5865
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5841
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5866
5842
|
var HLS_GLOBAL = 'Hls';
|
|
5867
5843
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5868
5844
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5871,11 +5847,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5871
5847
|
|
|
5872
5848
|
function canPlay(url) {
|
|
5873
5849
|
if (url instanceof Array) {
|
|
5874
|
-
var
|
|
5875
|
-
|
|
5850
|
+
var _iteratorNormalCompletion = true;
|
|
5851
|
+
var _didIteratorError = false;
|
|
5852
|
+
var _iteratorError = undefined;
|
|
5876
5853
|
|
|
5877
5854
|
try {
|
|
5878
|
-
for (_iterator.
|
|
5855
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5879
5856
|
var item = _step.value;
|
|
5880
5857
|
|
|
5881
5858
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5887,9 +5864,18 @@ function canPlay(url) {
|
|
|
5887
5864
|
}
|
|
5888
5865
|
}
|
|
5889
5866
|
} catch (err) {
|
|
5890
|
-
|
|
5867
|
+
_didIteratorError = true;
|
|
5868
|
+
_iteratorError = err;
|
|
5891
5869
|
} finally {
|
|
5892
|
-
|
|
5870
|
+
try {
|
|
5871
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5872
|
+
_iterator["return"]();
|
|
5873
|
+
}
|
|
5874
|
+
} finally {
|
|
5875
|
+
if (_didIteratorError) {
|
|
5876
|
+
throw _iteratorError;
|
|
5877
|
+
}
|
|
5878
|
+
}
|
|
5893
5879
|
}
|
|
5894
5880
|
|
|
5895
5881
|
return false;
|
|
@@ -5913,12 +5899,14 @@ function canEnablePIP(url) {
|
|
|
5913
5899
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5914
5900
|
}
|
|
5915
5901
|
|
|
5916
|
-
var FilePlayer =
|
|
5902
|
+
var FilePlayer =
|
|
5903
|
+
/*#__PURE__*/
|
|
5904
|
+
function (_Component) {
|
|
5917
5905
|
_inherits(FilePlayer, _Component);
|
|
5918
5906
|
|
|
5919
|
-
var _super = _createSuper(FilePlayer);
|
|
5920
|
-
|
|
5921
5907
|
function FilePlayer() {
|
|
5908
|
+
var _getPrototypeOf2;
|
|
5909
|
+
|
|
5922
5910
|
var _this;
|
|
5923
5911
|
|
|
5924
5912
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5927,7 +5915,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5927
5915
|
_args[_key] = arguments[_key];
|
|
5928
5916
|
}
|
|
5929
5917
|
|
|
5930
|
-
_this =
|
|
5918
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5931
5919
|
|
|
5932
5920
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5933
5921
|
var _this$props;
|
|
@@ -6014,19 +6002,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6014
6002
|
|
|
6015
6003
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6016
6004
|
if (typeof source === 'string') {
|
|
6017
|
-
return
|
|
6005
|
+
return _react["default"].createElement("source", {
|
|
6018
6006
|
key: index,
|
|
6019
6007
|
src: source
|
|
6020
6008
|
});
|
|
6021
6009
|
}
|
|
6022
6010
|
|
|
6023
|
-
return
|
|
6011
|
+
return _react["default"].createElement("source", _extends({
|
|
6024
6012
|
key: index
|
|
6025
6013
|
}, source));
|
|
6026
6014
|
});
|
|
6027
6015
|
|
|
6028
6016
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6029
|
-
return
|
|
6017
|
+
return _react["default"].createElement("track", _extends({
|
|
6030
6018
|
key: index
|
|
6031
6019
|
}, track));
|
|
6032
6020
|
});
|
|
@@ -6064,10 +6052,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6064
6052
|
key: "componentWillUnmount",
|
|
6065
6053
|
value: function componentWillUnmount() {
|
|
6066
6054
|
this.removeListeners(this.player);
|
|
6067
|
-
|
|
6068
|
-
if (this.hls) {
|
|
6069
|
-
this.hls.destroy();
|
|
6070
|
-
}
|
|
6071
6055
|
}
|
|
6072
6056
|
}, {
|
|
6073
6057
|
key: "addListeners",
|
|
@@ -6198,6 +6182,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6198
6182
|
value: function stop() {
|
|
6199
6183
|
this.player.removeAttribute('src');
|
|
6200
6184
|
|
|
6185
|
+
if (this.hls) {
|
|
6186
|
+
this.hls.destroy();
|
|
6187
|
+
}
|
|
6188
|
+
|
|
6201
6189
|
if (this.dash) {
|
|
6202
6190
|
this.dash.reset();
|
|
6203
6191
|
}
|
|
@@ -6309,7 +6297,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6309
6297
|
width: width === 'auto' ? width : '100%',
|
|
6310
6298
|
height: height === 'auto' ? height : '100%'
|
|
6311
6299
|
};
|
|
6312
|
-
return
|
|
6300
|
+
return _react["default"].createElement(Element, _extends({
|
|
6313
6301
|
ref: this.ref,
|
|
6314
6302
|
src: this.getSource(url),
|
|
6315
6303
|
style: style,
|
|
@@ -6339,7 +6327,7 @@ exports["default"] = _default;
|
|
|
6339
6327
|
});
|
|
6340
6328
|
|
|
6341
6329
|
unwrapExports(FilePlayer_1);
|
|
6342
|
-
FilePlayer_1.FilePlayer;
|
|
6330
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6343
6331
|
|
|
6344
6332
|
var players = createCommonjsModule(function (module, exports) {
|
|
6345
6333
|
|
|
@@ -6381,7 +6369,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6381
6369
|
});
|
|
6382
6370
|
exports["default"] = void 0;
|
|
6383
6371
|
|
|
6384
|
-
var _react = _interopRequireWildcard(
|
|
6372
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6385
6373
|
|
|
6386
6374
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6387
6375
|
|
|
@@ -6399,16 +6387,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6399
6387
|
|
|
6400
6388
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6401
6389
|
|
|
6402
|
-
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); }; }
|
|
6403
|
-
|
|
6404
6390
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6405
6391
|
|
|
6406
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6407
|
-
|
|
6408
|
-
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; } }
|
|
6409
|
-
|
|
6410
6392
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6411
6393
|
|
|
6394
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6395
|
+
|
|
6412
6396
|
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); }
|
|
6413
6397
|
|
|
6414
6398
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6417,12 +6401,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6417
6401
|
|
|
6418
6402
|
var ICON_SIZE = '64px';
|
|
6419
6403
|
|
|
6420
|
-
var Preview =
|
|
6404
|
+
var Preview =
|
|
6405
|
+
/*#__PURE__*/
|
|
6406
|
+
function (_Component) {
|
|
6421
6407
|
_inherits(Preview, _Component);
|
|
6422
6408
|
|
|
6423
|
-
var _super = _createSuper(Preview);
|
|
6424
|
-
|
|
6425
6409
|
function Preview() {
|
|
6410
|
+
var _getPrototypeOf2;
|
|
6411
|
+
|
|
6426
6412
|
var _this;
|
|
6427
6413
|
|
|
6428
6414
|
_classCallCheck(this, Preview);
|
|
@@ -6431,7 +6417,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6431
6417
|
args[_key] = arguments[_key];
|
|
6432
6418
|
}
|
|
6433
6419
|
|
|
6434
|
-
_this =
|
|
6420
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6435
6421
|
|
|
6436
6422
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6437
6423
|
|
|
@@ -6529,15 +6515,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6529
6515
|
}
|
|
6530
6516
|
};
|
|
6531
6517
|
|
|
6532
|
-
var defaultPlayIcon =
|
|
6518
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6533
6519
|
style: styles.shadow,
|
|
6534
6520
|
className: "react-player__shadow"
|
|
6535
|
-
},
|
|
6521
|
+
}, _react["default"].createElement("div", {
|
|
6536
6522
|
style: styles.playIcon,
|
|
6537
6523
|
className: "react-player__play-icon"
|
|
6538
6524
|
}));
|
|
6539
6525
|
|
|
6540
|
-
return
|
|
6526
|
+
return _react["default"].createElement("div", {
|
|
6541
6527
|
style: styles.preview,
|
|
6542
6528
|
className: "react-player__preview",
|
|
6543
6529
|
onClick: onClick
|
|
@@ -6560,7 +6546,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6560
6546
|
});
|
|
6561
6547
|
exports["default"] = renderPreloadPlayers;
|
|
6562
6548
|
|
|
6563
|
-
var _react = _interopRequireDefault(
|
|
6549
|
+
var _react = _interopRequireDefault(React__default);
|
|
6564
6550
|
|
|
6565
6551
|
var _Player = _interopRequireDefault(Player_1);
|
|
6566
6552
|
|
|
@@ -6574,12 +6560,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6574
6560
|
|
|
6575
6561
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6576
6562
|
|
|
6577
|
-
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; } } }; }
|
|
6578
|
-
|
|
6579
|
-
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); }
|
|
6580
|
-
|
|
6581
|
-
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; }
|
|
6582
|
-
|
|
6583
6563
|
var PRELOAD_PLAYERS = [{
|
|
6584
6564
|
Player: YouTube_1.YouTube,
|
|
6585
6565
|
configKey: 'youtube',
|
|
@@ -6600,16 +6580,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6600
6580
|
|
|
6601
6581
|
function renderPreloadPlayers(url, controls, config) {
|
|
6602
6582
|
var players = [];
|
|
6603
|
-
|
|
6604
|
-
var
|
|
6605
|
-
|
|
6583
|
+
var _iteratorNormalCompletion = true;
|
|
6584
|
+
var _didIteratorError = false;
|
|
6585
|
+
var _iteratorError = undefined;
|
|
6606
6586
|
|
|
6607
6587
|
try {
|
|
6608
|
-
for (_iterator.
|
|
6588
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6609
6589
|
var player = _step.value;
|
|
6610
6590
|
|
|
6611
6591
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6612
|
-
players.push(
|
|
6592
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6613
6593
|
key: player.Player.displayName,
|
|
6614
6594
|
activePlayer: player.Player,
|
|
6615
6595
|
url: player.url,
|
|
@@ -6621,9 +6601,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6621
6601
|
}
|
|
6622
6602
|
}
|
|
6623
6603
|
} catch (err) {
|
|
6624
|
-
|
|
6604
|
+
_didIteratorError = true;
|
|
6605
|
+
_iteratorError = err;
|
|
6625
6606
|
} finally {
|
|
6626
|
-
|
|
6607
|
+
try {
|
|
6608
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6609
|
+
_iterator["return"]();
|
|
6610
|
+
}
|
|
6611
|
+
} finally {
|
|
6612
|
+
if (_didIteratorError) {
|
|
6613
|
+
throw _iteratorError;
|
|
6614
|
+
}
|
|
6615
|
+
}
|
|
6627
6616
|
}
|
|
6628
6617
|
|
|
6629
6618
|
return players;
|
|
@@ -6699,7 +6688,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6699
6688
|
});
|
|
6700
6689
|
exports["default"] = void 0;
|
|
6701
6690
|
|
|
6702
|
-
var _react = _interopRequireWildcard(
|
|
6691
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6703
6692
|
|
|
6704
6693
|
|
|
6705
6694
|
|
|
@@ -6747,17 +6736,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6747
6736
|
|
|
6748
6737
|
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); }
|
|
6749
6738
|
|
|
6750
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6751
|
-
|
|
6752
|
-
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."); }
|
|
6753
|
-
|
|
6754
|
-
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); }
|
|
6739
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6755
6740
|
|
|
6756
|
-
function
|
|
6741
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6757
6742
|
|
|
6758
|
-
function
|
|
6743
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6759
6744
|
|
|
6760
|
-
function
|
|
6745
|
+
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; } }
|
|
6761
6746
|
|
|
6762
6747
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6763
6748
|
|
|
@@ -6765,16 +6750,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6765
6750
|
|
|
6766
6751
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6767
6752
|
|
|
6768
|
-
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); }; }
|
|
6769
|
-
|
|
6770
6753
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6771
6754
|
|
|
6772
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6773
|
-
|
|
6774
|
-
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; } }
|
|
6775
|
-
|
|
6776
6755
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6777
6756
|
|
|
6757
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6758
|
+
|
|
6778
6759
|
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); }
|
|
6779
6760
|
|
|
6780
6761
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6784,12 +6765,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6784
6765
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6785
6766
|
var customPlayers = [];
|
|
6786
6767
|
|
|
6787
|
-
var ReactPlayer =
|
|
6768
|
+
var ReactPlayer =
|
|
6769
|
+
/*#__PURE__*/
|
|
6770
|
+
function (_Component) {
|
|
6788
6771
|
_inherits(ReactPlayer, _Component);
|
|
6789
6772
|
|
|
6790
|
-
var _super = _createSuper(ReactPlayer);
|
|
6791
|
-
|
|
6792
6773
|
function ReactPlayer() {
|
|
6774
|
+
var _getPrototypeOf2;
|
|
6775
|
+
|
|
6793
6776
|
var _this;
|
|
6794
6777
|
|
|
6795
6778
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6798,7 +6781,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6798
6781
|
args[_key] = arguments[_key];
|
|
6799
6782
|
}
|
|
6800
6783
|
|
|
6801
|
-
_this =
|
|
6784
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6802
6785
|
|
|
6803
6786
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6804
6787
|
|
|
@@ -6909,7 +6892,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6909
6892
|
key: "renderActivePlayer",
|
|
6910
6893
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6911
6894
|
if (!url) return null;
|
|
6912
|
-
return
|
|
6895
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6913
6896
|
key: activePlayer.displayName,
|
|
6914
6897
|
ref: this.activePlayerRef,
|
|
6915
6898
|
config: this.config,
|
|
@@ -6946,14 +6929,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6946
6929
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6947
6930
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6948
6931
|
|
|
6949
|
-
var preview =
|
|
6932
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6950
6933
|
url: url,
|
|
6951
6934
|
light: light,
|
|
6952
6935
|
playIcon: playIcon,
|
|
6953
6936
|
onClick: this.handleClickPreview
|
|
6954
6937
|
});
|
|
6955
6938
|
|
|
6956
|
-
return
|
|
6939
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6957
6940
|
ref: this.wrapperRef,
|
|
6958
6941
|
style: _objectSpread({}, style, {
|
|
6959
6942
|
width: width,
|
|
@@ -7013,20 +6996,20 @@ var Audio = function Audio(_ref) {
|
|
|
7013
6996
|
var node = _ref.node;
|
|
7014
6997
|
|
|
7015
6998
|
if (node.uploadAudio) {
|
|
7016
|
-
return
|
|
6999
|
+
return React__default.createElement(
|
|
7017
7000
|
'div',
|
|
7018
7001
|
{ className: 'audio d-block text-center mb-3' },
|
|
7019
|
-
|
|
7002
|
+
React__default.createElement(
|
|
7020
7003
|
'audio',
|
|
7021
7004
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7022
|
-
|
|
7023
|
-
|
|
7005
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7006
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7024
7007
|
'Your browser does not support the audio element.'
|
|
7025
7008
|
),
|
|
7026
|
-
node.caption &&
|
|
7009
|
+
node.caption && React__default.createElement(
|
|
7027
7010
|
'p',
|
|
7028
7011
|
{ style: { fontSize: '.9rem' } },
|
|
7029
|
-
|
|
7012
|
+
React__default.createElement(
|
|
7030
7013
|
'em',
|
|
7031
7014
|
null,
|
|
7032
7015
|
node.caption
|
|
@@ -7036,15 +7019,15 @@ var Audio = function Audio(_ref) {
|
|
|
7036
7019
|
} else if (node.audioFilePth) {
|
|
7037
7020
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7038
7021
|
if (hostname === 'embeds.audioboom.com') {
|
|
7039
|
-
return
|
|
7022
|
+
return React__default.createElement(
|
|
7040
7023
|
'div',
|
|
7041
7024
|
null,
|
|
7042
|
-
|
|
7025
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7043
7026
|
' ',
|
|
7044
|
-
node.caption &&
|
|
7027
|
+
node.caption && React__default.createElement(
|
|
7045
7028
|
'p',
|
|
7046
7029
|
{ style: { fontSize: '.9rem' } },
|
|
7047
|
-
|
|
7030
|
+
React__default.createElement(
|
|
7048
7031
|
'em',
|
|
7049
7032
|
null,
|
|
7050
7033
|
node.caption
|
|
@@ -7052,14 +7035,14 @@ var Audio = function Audio(_ref) {
|
|
|
7052
7035
|
)
|
|
7053
7036
|
);
|
|
7054
7037
|
}
|
|
7055
|
-
return
|
|
7038
|
+
return React__default.createElement(
|
|
7056
7039
|
'div',
|
|
7057
7040
|
{ className: 'audio' },
|
|
7058
|
-
|
|
7059
|
-
node.caption &&
|
|
7041
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7042
|
+
node.caption && React__default.createElement(
|
|
7060
7043
|
'p',
|
|
7061
7044
|
{ style: { fontSize: '.9rem' } },
|
|
7062
|
-
|
|
7045
|
+
React__default.createElement(
|
|
7063
7046
|
'em',
|
|
7064
7047
|
null,
|
|
7065
7048
|
node.caption
|
|
@@ -7077,34 +7060,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7077
7060
|
var profileImage = arguments[6];
|
|
7078
7061
|
|
|
7079
7062
|
if (authorName && authorURL) {
|
|
7080
|
-
return
|
|
7063
|
+
return React__default.createElement(
|
|
7081
7064
|
'span',
|
|
7082
7065
|
null,
|
|
7083
|
-
|
|
7066
|
+
React__default.createElement(
|
|
7084
7067
|
'a',
|
|
7085
7068
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7086
7069
|
authorName
|
|
7087
7070
|
),
|
|
7088
|
-
|
|
7071
|
+
React__default.createElement(
|
|
7089
7072
|
Card,
|
|
7090
7073
|
{ className: 'author-details-card-' + index },
|
|
7091
|
-
|
|
7074
|
+
React__default.createElement(
|
|
7092
7075
|
Row,
|
|
7093
7076
|
null,
|
|
7094
|
-
profileImage &&
|
|
7077
|
+
profileImage && React__default.createElement(
|
|
7095
7078
|
Col,
|
|
7096
7079
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7097
|
-
|
|
7080
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7098
7081
|
),
|
|
7099
|
-
|
|
7082
|
+
React__default.createElement(
|
|
7100
7083
|
Col,
|
|
7101
7084
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7102
|
-
|
|
7085
|
+
React__default.createElement(
|
|
7103
7086
|
'div',
|
|
7104
7087
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7105
7088
|
authorName
|
|
7106
7089
|
),
|
|
7107
|
-
|
|
7090
|
+
React__default.createElement(
|
|
7108
7091
|
'p',
|
|
7109
7092
|
null,
|
|
7110
7093
|
biography
|
|
@@ -7112,7 +7095,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7112
7095
|
)
|
|
7113
7096
|
)
|
|
7114
7097
|
),
|
|
7115
|
-
|
|
7098
|
+
React__default.createElement(
|
|
7116
7099
|
'style',
|
|
7117
7100
|
{ jsx: 'true' },
|
|
7118
7101
|
'\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 '
|
|
@@ -7120,7 +7103,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7120
7103
|
length !== index + 1 && ' , '
|
|
7121
7104
|
);
|
|
7122
7105
|
} else if (authorName) {
|
|
7123
|
-
return
|
|
7106
|
+
return React__default.createElement(
|
|
7124
7107
|
'span',
|
|
7125
7108
|
{ key: index },
|
|
7126
7109
|
authorName,
|
|
@@ -7280,8 +7263,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7280
7263
|
var duration = player.getDuration();
|
|
7281
7264
|
var queue = Math.floor(duration / 10);
|
|
7282
7265
|
var segment = Math.floor(current / queue);
|
|
7283
|
-
Beam.report_beam_video('Ready',
|
|
7284
|
-
Segment.report_video_event('Video Ready',
|
|
7266
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
7267
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
7285
7268
|
//autoplay
|
|
7286
7269
|
|
|
7287
7270
|
//Small pause before starting next video
|
|
@@ -7301,8 +7284,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7301
7284
|
var queue = Math.floor(duration / 10);
|
|
7302
7285
|
var segment = Math.floor(current / queue);
|
|
7303
7286
|
|
|
7304
|
-
Beam.report_beam_video('End',
|
|
7305
|
-
Segment.report_video_event('Video End',
|
|
7287
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
7288
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
7306
7289
|
setEndReported(true);
|
|
7307
7290
|
clearInterval(intervalID);
|
|
7308
7291
|
}
|
|
@@ -7352,8 +7335,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7352
7335
|
var queue = Math.floor(duration / 10);
|
|
7353
7336
|
var segment = Math.floor(current / queue);
|
|
7354
7337
|
if (!queueProgress.includes(segment)) {
|
|
7355
|
-
Beam.report_beam_video('Segment',
|
|
7356
|
-
Segment.report_video_event('Video Segment',
|
|
7338
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
7339
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
7357
7340
|
queueProgress.push(segment);
|
|
7358
7341
|
}
|
|
7359
7342
|
};
|
|
@@ -7366,8 +7349,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7366
7349
|
var queue = Math.floor(duration / 10);
|
|
7367
7350
|
var segment = Math.floor(current / queue);
|
|
7368
7351
|
|
|
7369
|
-
Beam.report_beam_video('Play',
|
|
7370
|
-
Segment.report_video_event('Video Play',
|
|
7352
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
7353
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
7371
7354
|
|
|
7372
7355
|
if (!playReported) {
|
|
7373
7356
|
setPlayReported(true);
|
|
@@ -7385,8 +7368,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7385
7368
|
var queue = Math.floor(duration / 10);
|
|
7386
7369
|
var segment = Math.floor(current / queue);
|
|
7387
7370
|
|
|
7388
|
-
Beam.report_beam_video('Pause',
|
|
7389
|
-
Segment.report_video_event('Video Pause',
|
|
7371
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
7372
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
7390
7373
|
};
|
|
7391
7374
|
|
|
7392
7375
|
// Youtube Options
|
|
@@ -7397,44 +7380,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7397
7380
|
}
|
|
7398
7381
|
};
|
|
7399
7382
|
|
|
7400
|
-
return
|
|
7383
|
+
return React__default.createElement(
|
|
7401
7384
|
'div',
|
|
7402
7385
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7403
|
-
|
|
7386
|
+
React__default.createElement(
|
|
7404
7387
|
'div',
|
|
7405
7388
|
{ className: 'mt-2 mb-5' },
|
|
7406
|
-
series &&
|
|
7389
|
+
series && React__default.createElement(
|
|
7407
7390
|
'div',
|
|
7408
7391
|
{ style: { fontSize: '0.9rem' } },
|
|
7409
7392
|
article.title,
|
|
7410
7393
|
' - Episode ',
|
|
7411
7394
|
series
|
|
7412
7395
|
),
|
|
7413
|
-
Videos[series - 1] &&
|
|
7396
|
+
Videos[series - 1] && React__default.createElement(
|
|
7414
7397
|
'h1',
|
|
7415
7398
|
{ className: 'mb-3' },
|
|
7416
7399
|
Videos[series - 1].title
|
|
7417
7400
|
),
|
|
7418
|
-
|
|
7401
|
+
React__default.createElement(
|
|
7419
7402
|
'div',
|
|
7420
7403
|
null,
|
|
7421
7404
|
moment(article.published).format('LL')
|
|
7422
7405
|
),
|
|
7423
|
-
|
|
7406
|
+
React__default.createElement(
|
|
7424
7407
|
'div',
|
|
7425
7408
|
{ className: 'mb-3' },
|
|
7426
7409
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7427
|
-
return
|
|
7410
|
+
return React__default.createElement(
|
|
7428
7411
|
'span',
|
|
7429
7412
|
{ key: index },
|
|
7430
7413
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7431
7414
|
);
|
|
7432
7415
|
})
|
|
7433
7416
|
),
|
|
7434
|
-
|
|
7417
|
+
React__default.createElement(
|
|
7435
7418
|
'p',
|
|
7436
7419
|
null,
|
|
7437
|
-
|
|
7420
|
+
React__default.createElement(SocialShare, {
|
|
7438
7421
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7439
7422
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7440
7423
|
shareVia: meta.shareVia,
|
|
@@ -7449,20 +7432,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7449
7432
|
hideFacebook: meta.hideFBShare
|
|
7450
7433
|
})
|
|
7451
7434
|
),
|
|
7452
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7435
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7453
7436
|
'p',
|
|
7454
7437
|
{ className: 'mb-3' },
|
|
7455
|
-
|
|
7438
|
+
React__default.createElement(
|
|
7456
7439
|
'em',
|
|
7457
7440
|
null,
|
|
7458
7441
|
Videos[series - 1].intro
|
|
7459
7442
|
)
|
|
7460
7443
|
)
|
|
7461
7444
|
),
|
|
7462
|
-
|
|
7445
|
+
React__default.createElement(
|
|
7463
7446
|
'div',
|
|
7464
7447
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7465
|
-
vidUrl && vidType == 'youtube' &&
|
|
7448
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7466
7449
|
className: 'fluid-iframe',
|
|
7467
7450
|
videoId: getYoutubeId(vidUrl),
|
|
7468
7451
|
opts: opts,
|
|
@@ -7473,10 +7456,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7473
7456
|
return handleOnEnd(e);
|
|
7474
7457
|
}
|
|
7475
7458
|
}),
|
|
7476
|
-
vidUrl && vidType == 'mp4' &&
|
|
7477
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7478
|
-
|
|
7479
|
-
series &&
|
|
7459
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7460
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7461
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7462
|
+
series && React__default.createElement(
|
|
7480
7463
|
'div',
|
|
7481
7464
|
{
|
|
7482
7465
|
className: 'vid-series',
|
|
@@ -7486,10 +7469,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7486
7469
|
maxHeight: '100%',
|
|
7487
7470
|
paddingBottom: '0'
|
|
7488
7471
|
} },
|
|
7489
|
-
|
|
7472
|
+
React__default.createElement(
|
|
7490
7473
|
'p',
|
|
7491
7474
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7492
|
-
|
|
7475
|
+
React__default.createElement(
|
|
7493
7476
|
'b',
|
|
7494
7477
|
{ style: { fontSize: '1.25em' } },
|
|
7495
7478
|
'Now Playing:'
|
|
@@ -7497,16 +7480,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7497
7480
|
' ',
|
|
7498
7481
|
seriesData[series ? series - 1 : 0].title
|
|
7499
7482
|
),
|
|
7500
|
-
vidUrl &&
|
|
7483
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7501
7484
|
)
|
|
7502
7485
|
),
|
|
7503
|
-
|
|
7504
|
-
|
|
7486
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7487
|
+
React__default.createElement(
|
|
7505
7488
|
'div',
|
|
7506
7489
|
{ className: 'vid-text' },
|
|
7507
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7490
|
+
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()))
|
|
7508
7491
|
),
|
|
7509
|
-
|
|
7492
|
+
React__default.createElement(
|
|
7510
7493
|
'style',
|
|
7511
7494
|
{ jsx: 'true' },
|
|
7512
7495
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7514,14 +7497,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7514
7497
|
);
|
|
7515
7498
|
};
|
|
7516
7499
|
|
|
7517
|
-
var Poll
|
|
7518
|
-
var node = _ref.node
|
|
7519
|
-
_ref.client
|
|
7520
|
-
_ref.pageview
|
|
7521
|
-
_ref.videoAccountIDs
|
|
7522
|
-
|
|
7523
|
-
_ref.showVotes
|
|
7524
|
-
|
|
7500
|
+
var Poll = function Poll(_ref) {
|
|
7501
|
+
var node = _ref.node,
|
|
7502
|
+
client = _ref.client,
|
|
7503
|
+
pageview = _ref.pageview,
|
|
7504
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7505
|
+
onVote = _ref.onVote,
|
|
7506
|
+
_ref$showVotes = _ref.showVotes,
|
|
7507
|
+
getSerializers = _ref.getSerializers;
|
|
7525
7508
|
|
|
7526
7509
|
var _useState = useState(null),
|
|
7527
7510
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7559,67 +7542,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7559
7542
|
return acc;
|
|
7560
7543
|
}
|
|
7561
7544
|
}, 0);
|
|
7562
|
-
return
|
|
7563
|
-
|
|
7545
|
+
return React__default.createElement(
|
|
7546
|
+
React__default.Fragment,
|
|
7564
7547
|
null,
|
|
7565
|
-
question &&
|
|
7548
|
+
question && React__default.createElement(
|
|
7566
7549
|
'p',
|
|
7567
7550
|
{ className: 'font-weight-bold' },
|
|
7568
7551
|
question
|
|
7569
7552
|
),
|
|
7570
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7553
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7571
7554
|
'form',
|
|
7572
7555
|
{ onSubmit: function onSubmit(e) {
|
|
7573
7556
|
return onSubmitPoll(e);
|
|
7574
7557
|
} },
|
|
7575
7558
|
choices && choices.map(function (choice) {
|
|
7576
|
-
return
|
|
7559
|
+
return React__default.createElement(
|
|
7577
7560
|
'div',
|
|
7578
7561
|
{ key: choice._key },
|
|
7579
|
-
|
|
7562
|
+
React__default.createElement(
|
|
7580
7563
|
'label',
|
|
7581
7564
|
{ className: 'pl-2' },
|
|
7582
|
-
|
|
7565
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7583
7566
|
return setSelectedChoice(e.target.value);
|
|
7584
7567
|
} }),
|
|
7585
7568
|
' ' + choice.choiceText
|
|
7586
7569
|
)
|
|
7587
7570
|
);
|
|
7588
7571
|
}),
|
|
7589
|
-
|
|
7572
|
+
React__default.createElement(
|
|
7590
7573
|
Button,
|
|
7591
7574
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7592
7575
|
'Vote'
|
|
7593
7576
|
)
|
|
7594
7577
|
),
|
|
7595
|
-
|
|
7578
|
+
React__default.createElement(
|
|
7596
7579
|
'div',
|
|
7597
7580
|
{ className: 'progress-container' },
|
|
7598
7581
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7599
7582
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7600
|
-
return
|
|
7583
|
+
return React__default.createElement(
|
|
7601
7584
|
'div',
|
|
7602
7585
|
{ key: choice._key, className: 'mb-3' },
|
|
7603
|
-
|
|
7586
|
+
React__default.createElement(
|
|
7604
7587
|
'div',
|
|
7605
7588
|
{ className: 'correct-answer' },
|
|
7606
|
-
|
|
7589
|
+
React__default.createElement(
|
|
7607
7590
|
'div',
|
|
7608
7591
|
null,
|
|
7609
7592
|
choice.choiceText
|
|
7610
7593
|
),
|
|
7611
|
-
choice.choiceAnswer === true &&
|
|
7594
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7612
7595
|
'div',
|
|
7613
7596
|
null,
|
|
7614
|
-
|
|
7597
|
+
React__default.createElement(
|
|
7615
7598
|
'span',
|
|
7616
7599
|
{ style: { color: 'limegreen' } },
|
|
7617
7600
|
'Correct!'
|
|
7618
7601
|
)
|
|
7619
7602
|
)
|
|
7620
7603
|
),
|
|
7621
|
-
|
|
7622
|
-
|
|
7604
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7605
|
+
React__default.createElement(
|
|
7623
7606
|
'span',
|
|
7624
7607
|
{ className: 'float-right' },
|
|
7625
7608
|
percentage,
|
|
@@ -7630,14 +7613,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7630
7613
|
);
|
|
7631
7614
|
})
|
|
7632
7615
|
),
|
|
7633
|
-
showAnswer &&
|
|
7616
|
+
showAnswer && React__default.createElement(
|
|
7634
7617
|
'h4',
|
|
7635
7618
|
{ className: 'text-center small p-3' },
|
|
7636
7619
|
'Total Votes: ',
|
|
7637
7620
|
choicesTotalCount
|
|
7638
7621
|
),
|
|
7639
|
-
showAnswer && response &&
|
|
7640
|
-
|
|
7622
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7623
|
+
React__default.createElement(
|
|
7641
7624
|
'style',
|
|
7642
7625
|
{ jsx: 'true' },
|
|
7643
7626
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7655,22 +7638,22 @@ _export(_export.S, 'Object', {
|
|
|
7655
7638
|
}
|
|
7656
7639
|
});
|
|
7657
7640
|
|
|
7658
|
-
var values
|
|
7641
|
+
var values = _core.Object.values;
|
|
7659
7642
|
|
|
7660
|
-
var values = createCommonjsModule(function (module) {
|
|
7661
|
-
module.exports = { "default": values
|
|
7643
|
+
var values$1 = createCommonjsModule(function (module) {
|
|
7644
|
+
module.exports = { "default": values, __esModule: true };
|
|
7662
7645
|
});
|
|
7663
7646
|
|
|
7664
|
-
var _Object$values = unwrapExports(values);
|
|
7647
|
+
var _Object$values = unwrapExports(values$1);
|
|
7665
7648
|
|
|
7666
|
-
var Poll = function Poll(_ref) {
|
|
7667
|
-
var node = _ref.node
|
|
7668
|
-
_ref.client
|
|
7669
|
-
_ref.pageview
|
|
7670
|
-
_ref.videoAccountIDs
|
|
7671
|
-
|
|
7672
|
-
_ref.showVotes
|
|
7673
|
-
|
|
7649
|
+
var Poll$1 = function Poll(_ref) {
|
|
7650
|
+
var node = _ref.node,
|
|
7651
|
+
client = _ref.client,
|
|
7652
|
+
pageview = _ref.pageview,
|
|
7653
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7654
|
+
onVote = _ref.onVote,
|
|
7655
|
+
_ref$showVotes = _ref.showVotes,
|
|
7656
|
+
getSerializers = _ref.getSerializers;
|
|
7674
7657
|
|
|
7675
7658
|
var _useState = useState(null),
|
|
7676
7659
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7736,67 +7719,67 @@ var Poll = function Poll(_ref) {
|
|
|
7736
7719
|
return acc;
|
|
7737
7720
|
}
|
|
7738
7721
|
}, 0);
|
|
7739
|
-
return
|
|
7740
|
-
|
|
7722
|
+
return React__default.createElement(
|
|
7723
|
+
React__default.Fragment,
|
|
7741
7724
|
null,
|
|
7742
|
-
question &&
|
|
7725
|
+
question && React__default.createElement(
|
|
7743
7726
|
'p',
|
|
7744
7727
|
{ className: 'font-weight-bold' },
|
|
7745
7728
|
question
|
|
7746
7729
|
),
|
|
7747
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7730
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7748
7731
|
'form',
|
|
7749
7732
|
{ onSubmit: function onSubmit(e) {
|
|
7750
7733
|
return onSubmitPoll(e);
|
|
7751
7734
|
} },
|
|
7752
7735
|
choices && choices.map(function (choice) {
|
|
7753
|
-
return
|
|
7736
|
+
return React__default.createElement(
|
|
7754
7737
|
'div',
|
|
7755
7738
|
{ key: choice._key },
|
|
7756
|
-
|
|
7739
|
+
React__default.createElement(
|
|
7757
7740
|
'label',
|
|
7758
7741
|
{ className: 'pl-2' },
|
|
7759
|
-
|
|
7742
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7760
7743
|
return setSelectedChoice(e.target.value);
|
|
7761
7744
|
} }),
|
|
7762
7745
|
' ' + choice.choiceText
|
|
7763
7746
|
)
|
|
7764
7747
|
);
|
|
7765
7748
|
}),
|
|
7766
|
-
|
|
7749
|
+
React__default.createElement(
|
|
7767
7750
|
Button,
|
|
7768
7751
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7769
7752
|
'Vote'
|
|
7770
7753
|
)
|
|
7771
7754
|
),
|
|
7772
|
-
|
|
7755
|
+
React__default.createElement(
|
|
7773
7756
|
'div',
|
|
7774
7757
|
{ className: 'progress-container' },
|
|
7775
7758
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7776
7759
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7777
|
-
return
|
|
7760
|
+
return React__default.createElement(
|
|
7778
7761
|
'div',
|
|
7779
7762
|
{ key: choice._key, className: 'mb-3' },
|
|
7780
|
-
|
|
7763
|
+
React__default.createElement(
|
|
7781
7764
|
'div',
|
|
7782
7765
|
{ className: 'correct-answer' },
|
|
7783
|
-
|
|
7766
|
+
React__default.createElement(
|
|
7784
7767
|
'div',
|
|
7785
7768
|
null,
|
|
7786
7769
|
choice.choiceText
|
|
7787
7770
|
),
|
|
7788
|
-
choice.choiceAnswer === true &&
|
|
7771
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7789
7772
|
'div',
|
|
7790
7773
|
null,
|
|
7791
|
-
|
|
7774
|
+
React__default.createElement(
|
|
7792
7775
|
'span',
|
|
7793
7776
|
{ style: { color: 'limegreen' } },
|
|
7794
7777
|
'Correct!'
|
|
7795
7778
|
)
|
|
7796
7779
|
)
|
|
7797
7780
|
),
|
|
7798
|
-
|
|
7799
|
-
|
|
7781
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7782
|
+
React__default.createElement(
|
|
7800
7783
|
'span',
|
|
7801
7784
|
{ className: 'float-right' },
|
|
7802
7785
|
percentage,
|
|
@@ -7807,14 +7790,14 @@ var Poll = function Poll(_ref) {
|
|
|
7807
7790
|
);
|
|
7808
7791
|
})
|
|
7809
7792
|
),
|
|
7810
|
-
showAnswer &&
|
|
7793
|
+
showAnswer && React__default.createElement(
|
|
7811
7794
|
'h4',
|
|
7812
7795
|
{ className: 'text-center small p-3' },
|
|
7813
7796
|
'Total Votes: ',
|
|
7814
7797
|
choicesTotalCount
|
|
7815
7798
|
),
|
|
7816
|
-
showAnswer && response &&
|
|
7817
|
-
|
|
7799
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7800
|
+
React__default.createElement(
|
|
7818
7801
|
'style',
|
|
7819
7802
|
{ jsx: 'true' },
|
|
7820
7803
|
'\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 '
|
|
@@ -7822,7 +7805,7 @@ var Poll = function Poll(_ref) {
|
|
|
7822
7805
|
);
|
|
7823
7806
|
};
|
|
7824
7807
|
|
|
7825
|
-
var numberOfPaginations =
|
|
7808
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7826
7809
|
|
|
7827
7810
|
var Quiz = function Quiz(_ref) {
|
|
7828
7811
|
var quizzes = _ref.quizzes,
|
|
@@ -7940,34 +7923,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7940
7923
|
};
|
|
7941
7924
|
|
|
7942
7925
|
var renderPagination = function renderPagination() {
|
|
7943
|
-
return
|
|
7944
|
-
Pagination,
|
|
7945
|
-
{ className: 'p-0 m-0', size:
|
|
7946
|
-
|
|
7926
|
+
return React__default.createElement(
|
|
7927
|
+
Pagination$1,
|
|
7928
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7929
|
+
React__default.createElement(Pagination$1.First, { onClick: function onClick() {
|
|
7947
7930
|
return changePage('first');
|
|
7948
7931
|
}, disabled: currentPage === 1 }),
|
|
7949
|
-
|
|
7932
|
+
React__default.createElement(Pagination$1.Prev, { onClick: function onClick() {
|
|
7950
7933
|
return changePage('prev');
|
|
7951
7934
|
}, disabled: currentPage === 1 }),
|
|
7952
|
-
|
|
7935
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7953
7936
|
return renderNewPages('prev');
|
|
7954
7937
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7955
7938
|
pages.map(function (page) {
|
|
7956
|
-
return
|
|
7957
|
-
Pagination.Item,
|
|
7939
|
+
return React__default.createElement(
|
|
7940
|
+
Pagination$1.Item,
|
|
7958
7941
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7959
7942
|
return changePage(page);
|
|
7960
7943
|
} },
|
|
7961
7944
|
page
|
|
7962
7945
|
);
|
|
7963
7946
|
}),
|
|
7964
|
-
|
|
7947
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7965
7948
|
return renderNewPages('next');
|
|
7966
7949
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7967
|
-
|
|
7950
|
+
React__default.createElement(Pagination$1.Next, { onClick: function onClick() {
|
|
7968
7951
|
return changePage('next');
|
|
7969
7952
|
}, disabled: currentPage === pageCount }),
|
|
7970
|
-
|
|
7953
|
+
React__default.createElement(Pagination$1.Last, { onClick: function onClick() {
|
|
7971
7954
|
return changePage('last');
|
|
7972
7955
|
}, disabled: currentPage === pageCount })
|
|
7973
7956
|
);
|
|
@@ -8050,51 +8033,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8050
8033
|
}
|
|
8051
8034
|
};
|
|
8052
8035
|
|
|
8053
|
-
return
|
|
8054
|
-
|
|
8036
|
+
return React__default.createElement(
|
|
8037
|
+
React__default.Fragment,
|
|
8055
8038
|
null,
|
|
8056
|
-
quizzes[currentPage - 1] &&
|
|
8057
|
-
|
|
8039
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8040
|
+
React__default.Fragment,
|
|
8058
8041
|
null,
|
|
8059
|
-
|
|
8060
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8042
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8043
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8061
8044
|
'form',
|
|
8062
8045
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8063
8046
|
return e.preventDefault();
|
|
8064
8047
|
} },
|
|
8065
8048
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8066
|
-
return
|
|
8049
|
+
return React__default.createElement(
|
|
8067
8050
|
'div',
|
|
8068
8051
|
{ key: answer._key },
|
|
8069
|
-
|
|
8052
|
+
React__default.createElement(
|
|
8070
8053
|
'label',
|
|
8071
8054
|
{ className: 'pl-2' },
|
|
8072
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8055
|
+
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 }),
|
|
8073
8056
|
' ' + answer.answerText
|
|
8074
8057
|
)
|
|
8075
8058
|
);
|
|
8076
8059
|
})
|
|
8077
8060
|
)
|
|
8078
8061
|
),
|
|
8079
|
-
!showAnswer &&
|
|
8062
|
+
!showAnswer && React__default.createElement(
|
|
8080
8063
|
Button$1,
|
|
8081
8064
|
{ onClick: function onClick() {
|
|
8082
8065
|
return checkAnswers();
|
|
8083
8066
|
}, variant: 'info', block: true },
|
|
8084
8067
|
'Please click here for answer'
|
|
8085
8068
|
),
|
|
8086
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8087
|
-
|
|
8069
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8070
|
+
React__default.Fragment,
|
|
8088
8071
|
null,
|
|
8089
|
-
|
|
8072
|
+
React__default.createElement(
|
|
8090
8073
|
'h4',
|
|
8091
8074
|
null,
|
|
8092
8075
|
'Answer:'
|
|
8093
8076
|
),
|
|
8094
|
-
quizzes[currentPage - 1].answer &&
|
|
8077
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8095
8078
|
),
|
|
8096
|
-
|
|
8097
|
-
pageCount > 1 &&
|
|
8079
|
+
React__default.createElement('br', null),
|
|
8080
|
+
pageCount > 1 && React__default.createElement(
|
|
8098
8081
|
'div',
|
|
8099
8082
|
{ className: 'd-flex justify-content-center' },
|
|
8100
8083
|
renderPagination()
|
|
@@ -8105,19 +8088,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8105
8088
|
var Leads = function Leads(_ref) {
|
|
8106
8089
|
var url = _ref.url;
|
|
8107
8090
|
|
|
8108
|
-
return
|
|
8091
|
+
return React__default.createElement(
|
|
8109
8092
|
'div',
|
|
8110
8093
|
{ className: 'd-block text-center mb-3' },
|
|
8111
|
-
url &&
|
|
8094
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8112
8095
|
);
|
|
8113
8096
|
};
|
|
8114
8097
|
|
|
8115
|
-
var urlFor$
|
|
8098
|
+
var urlFor$1 = function urlFor(source, client) {
|
|
8116
8099
|
var builder = imageUrlBuilder(client);
|
|
8117
8100
|
return builder.image(source).auto('format');
|
|
8118
8101
|
};
|
|
8119
8102
|
|
|
8120
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8103
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8121
8104
|
var slides = _ref.node.slides,
|
|
8122
8105
|
client = _ref.client,
|
|
8123
8106
|
pageview = _ref.pageview,
|
|
@@ -8129,8 +8112,8 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8129
8112
|
|
|
8130
8113
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8131
8114
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8132
|
-
carouselIndex = _useState2[0]
|
|
8133
|
-
_useState2[1];
|
|
8115
|
+
carouselIndex = _useState2[0],
|
|
8116
|
+
setCarouselIndex = _useState2[1];
|
|
8134
8117
|
|
|
8135
8118
|
// useEffect(() => {
|
|
8136
8119
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8156,42 +8139,42 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8156
8139
|
}
|
|
8157
8140
|
};
|
|
8158
8141
|
|
|
8159
|
-
return
|
|
8142
|
+
return React__default.createElement(
|
|
8160
8143
|
'div',
|
|
8161
8144
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8162
|
-
|
|
8145
|
+
React__default.createElement(
|
|
8163
8146
|
Carousel,
|
|
8164
8147
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8165
8148
|
slides && slides.map(function (slide) {
|
|
8166
8149
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8167
|
-
return
|
|
8150
|
+
return React__default.createElement(
|
|
8168
8151
|
Carousel.Item,
|
|
8169
8152
|
{ key: slide._key },
|
|
8170
|
-
|
|
8153
|
+
React__default.createElement(
|
|
8171
8154
|
'a',
|
|
8172
8155
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8173
|
-
|
|
8156
|
+
React__default.createElement(
|
|
8174
8157
|
LazyLoad,
|
|
8175
8158
|
null,
|
|
8176
|
-
|
|
8159
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8177
8160
|
)
|
|
8178
8161
|
),
|
|
8179
|
-
|
|
8162
|
+
React__default.createElement(
|
|
8180
8163
|
'div',
|
|
8181
8164
|
{ className: 'p-2' },
|
|
8182
|
-
slide.slideshowImage.caption &&
|
|
8165
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8183
8166
|
'h3',
|
|
8184
8167
|
{ style: { padding: '0px' } },
|
|
8185
8168
|
slide.slideshowImage.caption
|
|
8186
8169
|
),
|
|
8187
|
-
slide.description &&
|
|
8170
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8188
8171
|
)
|
|
8189
8172
|
);
|
|
8190
8173
|
}
|
|
8191
8174
|
return null;
|
|
8192
8175
|
})
|
|
8193
8176
|
),
|
|
8194
|
-
|
|
8177
|
+
React__default.createElement(
|
|
8195
8178
|
'style',
|
|
8196
8179
|
{ jsx: 'true' },
|
|
8197
8180
|
'\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 '
|
|
@@ -8210,10 +8193,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8210
8193
|
sizes = _props$node.sizes,
|
|
8211
8194
|
sizeMapping = _props$node.sizeMapping;
|
|
8212
8195
|
|
|
8213
|
-
return
|
|
8196
|
+
return React__default.createElement(
|
|
8214
8197
|
'div',
|
|
8215
8198
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8216
|
-
|
|
8199
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8217
8200
|
);
|
|
8218
8201
|
};
|
|
8219
8202
|
|
|
@@ -8224,15 +8207,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8224
8207
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8225
8208
|
|
|
8226
8209
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8227
|
-
return
|
|
8210
|
+
return React__default.createElement(
|
|
8228
8211
|
'section',
|
|
8229
8212
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8230
|
-
Caption &&
|
|
8213
|
+
Caption && React__default.createElement(
|
|
8231
8214
|
'h4',
|
|
8232
8215
|
{ className: 'formstack-caption' },
|
|
8233
8216
|
Caption
|
|
8234
8217
|
),
|
|
8235
|
-
|
|
8218
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8236
8219
|
);
|
|
8237
8220
|
};
|
|
8238
8221
|
|
|
@@ -8252,29 +8235,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8252
8235
|
}
|
|
8253
8236
|
});
|
|
8254
8237
|
if (medias && medias.length > 0) {
|
|
8255
|
-
return
|
|
8238
|
+
return React__default.createElement(
|
|
8256
8239
|
'div',
|
|
8257
8240
|
{ className: 'multi-media-container' },
|
|
8258
|
-
|
|
8241
|
+
React__default.createElement(
|
|
8259
8242
|
Row$1,
|
|
8260
8243
|
{ noGutters: true },
|
|
8261
8244
|
medias.map(function (media) {
|
|
8262
|
-
return
|
|
8245
|
+
return React__default.createElement(
|
|
8263
8246
|
Col$1,
|
|
8264
8247
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8265
|
-
|
|
8248
|
+
React__default.createElement(
|
|
8266
8249
|
'a',
|
|
8267
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8250
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8268
8251
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8269
|
-
|
|
8252
|
+
React__default.createElement(
|
|
8270
8253
|
'div',
|
|
8271
8254
|
{ className: 'multi-media-image-container' },
|
|
8272
|
-
imageBox &&
|
|
8255
|
+
imageBox && React__default.createElement(
|
|
8273
8256
|
LazyLoad,
|
|
8274
8257
|
{ once: true },
|
|
8275
|
-
|
|
8258
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8276
8259
|
),
|
|
8277
|
-
media.caption &&
|
|
8260
|
+
media.caption && React__default.createElement(
|
|
8278
8261
|
'span',
|
|
8279
8262
|
{ className: 'multi-media-caption' },
|
|
8280
8263
|
media.caption
|
|
@@ -8284,7 +8267,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8284
8267
|
);
|
|
8285
8268
|
})
|
|
8286
8269
|
),
|
|
8287
|
-
|
|
8270
|
+
React__default.createElement(
|
|
8288
8271
|
'style',
|
|
8289
8272
|
{ jsx: 'true' },
|
|
8290
8273
|
'\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 '
|
|
@@ -8331,7 +8314,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8331
8314
|
}
|
|
8332
8315
|
};
|
|
8333
8316
|
|
|
8334
|
-
_this.wraperRef =
|
|
8317
|
+
_this.wraperRef = React__default.createRef();
|
|
8335
8318
|
_this.visible = false;
|
|
8336
8319
|
return _this;
|
|
8337
8320
|
}
|
|
@@ -8359,7 +8342,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8359
8342
|
_props$id = _props.id,
|
|
8360
8343
|
id = _props$id === undefined ? '' : _props$id;
|
|
8361
8344
|
|
|
8362
|
-
return
|
|
8345
|
+
return React__default.createElement(
|
|
8363
8346
|
'div',
|
|
8364
8347
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8365
8348
|
this.props.children
|
|
@@ -8368,7 +8351,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8368
8351
|
}]);
|
|
8369
8352
|
|
|
8370
8353
|
return InscreenSensor;
|
|
8371
|
-
}(
|
|
8354
|
+
}(React__default.Component);
|
|
8372
8355
|
|
|
8373
8356
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8374
8357
|
var nodes = _ref.nodes,
|
|
@@ -8481,33 +8464,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8481
8464
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8482
8465
|
var showReading = show ? 'showReading' : '';
|
|
8483
8466
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8484
|
-
return
|
|
8467
|
+
return React__default.createElement(
|
|
8485
8468
|
'div',
|
|
8486
8469
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8487
|
-
|
|
8470
|
+
React__default.createElement(
|
|
8488
8471
|
'a',
|
|
8489
8472
|
{ onClick: function onClick(e) {
|
|
8490
8473
|
return articleCardClickHandler(e);
|
|
8491
8474
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8492
|
-
|
|
8475
|
+
React__default.createElement(
|
|
8493
8476
|
'div',
|
|
8494
8477
|
{ className: 'prevNext-thumbnail' },
|
|
8495
|
-
|
|
8496
|
-
|
|
8478
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8479
|
+
React__default.createElement(
|
|
8497
8480
|
'div',
|
|
8498
8481
|
{ className: 'prevNext-reading ' + showReading },
|
|
8499
8482
|
articleLabel
|
|
8500
8483
|
)
|
|
8501
8484
|
),
|
|
8502
|
-
|
|
8485
|
+
React__default.createElement(
|
|
8503
8486
|
'div',
|
|
8504
8487
|
{ className: 'prevNext-summary' },
|
|
8505
|
-
|
|
8488
|
+
React__default.createElement(
|
|
8506
8489
|
'div',
|
|
8507
8490
|
{ className: 'prevNext-publishDate' },
|
|
8508
8491
|
moment(article.published).format('LL')
|
|
8509
8492
|
),
|
|
8510
|
-
|
|
8493
|
+
React__default.createElement(
|
|
8511
8494
|
'h2',
|
|
8512
8495
|
{ className: 'prevNext-title' },
|
|
8513
8496
|
article.title
|
|
@@ -8556,7 +8539,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8556
8539
|
|
|
8557
8540
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8558
8541
|
if (biography) {
|
|
8559
|
-
return
|
|
8542
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8560
8543
|
}
|
|
8561
8544
|
};
|
|
8562
8545
|
|
|
@@ -8642,7 +8625,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8642
8625
|
//console.log('useLayoutEffect')
|
|
8643
8626
|
if (!firstLoad) {
|
|
8644
8627
|
setUpArrowClicked(false);
|
|
8645
|
-
if (
|
|
8628
|
+
if (main_36) {
|
|
8646
8629
|
grabLoadedAds();
|
|
8647
8630
|
} else {
|
|
8648
8631
|
scrollToArticle();
|
|
@@ -8666,7 +8649,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8666
8649
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8667
8650
|
if (pageview) pageview(path);
|
|
8668
8651
|
|
|
8669
|
-
if (!
|
|
8652
|
+
if (!main_36) {
|
|
8670
8653
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8671
8654
|
if (window.googletag && googletag.pubadsReady) {
|
|
8672
8655
|
lib_3.refresh();
|
|
@@ -8674,7 +8657,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8674
8657
|
});
|
|
8675
8658
|
}
|
|
8676
8659
|
//Refresh leaderboard ad on mobile
|
|
8677
|
-
if (
|
|
8660
|
+
if (main_36) {
|
|
8678
8661
|
var leaderboardSlotId = '';
|
|
8679
8662
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8680
8663
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8714,38 +8697,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8714
8697
|
setSensorVisible(false);
|
|
8715
8698
|
};
|
|
8716
8699
|
|
|
8717
|
-
return
|
|
8718
|
-
|
|
8700
|
+
return React__default.createElement(
|
|
8701
|
+
React__default.Fragment,
|
|
8719
8702
|
null,
|
|
8720
|
-
|
|
8703
|
+
React__default.createElement(
|
|
8721
8704
|
'div',
|
|
8722
8705
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8723
|
-
|
|
8706
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8724
8707
|
return handleArrowClick();
|
|
8725
8708
|
} })
|
|
8726
8709
|
),
|
|
8727
|
-
|
|
8728
|
-
|
|
8710
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8711
|
+
React__default.createElement(
|
|
8729
8712
|
'div',
|
|
8730
8713
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8731
|
-
|
|
8714
|
+
React__default.createElement(
|
|
8732
8715
|
'h5',
|
|
8733
8716
|
{ className: 'objective-title' },
|
|
8734
8717
|
nodes.seriesTitle
|
|
8735
8718
|
),
|
|
8736
|
-
|
|
8719
|
+
React__default.createElement(
|
|
8737
8720
|
'div',
|
|
8738
8721
|
{ className: 'prevNextWrapper' },
|
|
8739
8722
|
PrevNextCards(false, -1)
|
|
8740
8723
|
)
|
|
8741
8724
|
),
|
|
8742
|
-
|
|
8743
|
-
|
|
8725
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8726
|
+
React__default.createElement(
|
|
8744
8727
|
'div',
|
|
8745
8728
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8746
|
-
|
|
8729
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8747
8730
|
if (index === 0) {
|
|
8748
|
-
return
|
|
8731
|
+
return React__default.createElement(
|
|
8749
8732
|
'div',
|
|
8750
8733
|
{
|
|
8751
8734
|
key: 'addid-1',
|
|
@@ -8765,14 +8748,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8765
8748
|
}
|
|
8766
8749
|
})
|
|
8767
8750
|
),
|
|
8768
|
-
|
|
8751
|
+
React__default.createElement(
|
|
8769
8752
|
'div',
|
|
8770
8753
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8771
8754
|
Articles.map(function (article, index) {
|
|
8772
|
-
return
|
|
8755
|
+
return React__default.createElement(
|
|
8773
8756
|
'div',
|
|
8774
8757
|
{ key: article.title },
|
|
8775
|
-
|
|
8758
|
+
React__default.createElement(
|
|
8776
8759
|
InscreenSensor,
|
|
8777
8760
|
{
|
|
8778
8761
|
visible: sensorVisible,
|
|
@@ -8790,84 +8773,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8790
8773
|
}
|
|
8791
8774
|
}
|
|
8792
8775
|
} },
|
|
8793
|
-
|
|
8776
|
+
React__default.createElement(
|
|
8794
8777
|
Head,
|
|
8795
8778
|
null,
|
|
8796
|
-
currentTitle !== null &&
|
|
8779
|
+
currentTitle !== null && React__default.createElement(
|
|
8797
8780
|
'title',
|
|
8798
8781
|
{ key: 'title' },
|
|
8799
8782
|
currentTitle
|
|
8800
8783
|
),
|
|
8801
|
-
currentSummary !== null &&
|
|
8802
|
-
currentURL !== null &&
|
|
8803
|
-
currentTitle !== null &&
|
|
8804
|
-
currentThumbnail !== null &&
|
|
8805
|
-
currentSummary !== null &&
|
|
8806
|
-
currentTitle !== null &&
|
|
8807
|
-
currentThumbnail !== null &&
|
|
8808
|
-
currentSummary !== null &&
|
|
8784
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8785
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8786
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8787
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8788
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8789
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8790
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8791
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8809
8792
|
),
|
|
8810
|
-
|
|
8793
|
+
React__default.createElement(
|
|
8811
8794
|
'article',
|
|
8812
8795
|
{ className: 'article-wrapper' },
|
|
8813
|
-
|
|
8796
|
+
React__default.createElement(
|
|
8814
8797
|
'div',
|
|
8815
8798
|
{ className: 'article-publishDate' },
|
|
8816
8799
|
moment(article.published).format('LL')
|
|
8817
8800
|
),
|
|
8818
|
-
|
|
8801
|
+
React__default.createElement(
|
|
8819
8802
|
'div',
|
|
8820
8803
|
{ className: 'author-details-wrapper' },
|
|
8821
8804
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8822
|
-
return
|
|
8805
|
+
return React__default.createElement(
|
|
8823
8806
|
'span',
|
|
8824
8807
|
{ key: index },
|
|
8825
8808
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8826
8809
|
);
|
|
8827
8810
|
})
|
|
8828
8811
|
),
|
|
8829
|
-
|
|
8812
|
+
React__default.createElement(
|
|
8830
8813
|
'h2',
|
|
8831
8814
|
{ className: 'article-title' },
|
|
8832
8815
|
article.title
|
|
8833
8816
|
),
|
|
8834
|
-
|
|
8817
|
+
React__default.createElement(
|
|
8835
8818
|
'div',
|
|
8836
8819
|
{ className: 'mt-2 mb-2' },
|
|
8837
|
-
|
|
8820
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8838
8821
|
serializers: getSerializers,
|
|
8839
8822
|
videoAccountIDs: accountIDs,
|
|
8840
8823
|
blocks: article.text,
|
|
8841
8824
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8842
8825
|
}, client.config())),
|
|
8843
|
-
|
|
8826
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8844
8827
|
),
|
|
8845
|
-
Articles.length > 1 &&
|
|
8846
|
-
|
|
8828
|
+
Articles.length > 1 && React__default.createElement(
|
|
8829
|
+
React__default.Fragment,
|
|
8847
8830
|
null,
|
|
8848
|
-
|
|
8831
|
+
React__default.createElement(
|
|
8849
8832
|
'div',
|
|
8850
8833
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8851
|
-
|
|
8834
|
+
React__default.createElement(
|
|
8852
8835
|
'h5',
|
|
8853
8836
|
{ className: 'objective-title' },
|
|
8854
8837
|
nodes.seriesTitle
|
|
8855
8838
|
),
|
|
8856
|
-
|
|
8839
|
+
React__default.createElement(
|
|
8857
8840
|
'div',
|
|
8858
8841
|
{ className: 'prevNextWrapper' },
|
|
8859
8842
|
PrevNextCards(true, index)
|
|
8860
8843
|
)
|
|
8861
8844
|
),
|
|
8862
|
-
|
|
8845
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8863
8846
|
)
|
|
8864
8847
|
),
|
|
8865
|
-
|
|
8848
|
+
React__default.createElement(
|
|
8866
8849
|
'div',
|
|
8867
8850
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8868
|
-
|
|
8851
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8869
8852
|
if (innerIndex === 0) {
|
|
8870
|
-
return
|
|
8853
|
+
return React__default.createElement(
|
|
8871
8854
|
'div',
|
|
8872
8855
|
{
|
|
8873
8856
|
key: 'addid-' + (index + 2),
|
|
@@ -8890,7 +8873,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8890
8873
|
)
|
|
8891
8874
|
);
|
|
8892
8875
|
}),
|
|
8893
|
-
|
|
8876
|
+
React__default.createElement(
|
|
8894
8877
|
'style',
|
|
8895
8878
|
{ jsx: 'true' },
|
|
8896
8879
|
'\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 '
|
|
@@ -8920,11 +8903,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8920
8903
|
};
|
|
8921
8904
|
}, [handleClickOutside]);
|
|
8922
8905
|
|
|
8923
|
-
return
|
|
8906
|
+
return React__default.createElement(
|
|
8924
8907
|
'div',
|
|
8925
8908
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8926
|
-
|
|
8927
|
-
|
|
8909
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8910
|
+
React__default.createElement(
|
|
8928
8911
|
'style',
|
|
8929
8912
|
{ jsx: 'true' },
|
|
8930
8913
|
'\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 '
|
|
@@ -8932,7 +8915,7 @@ var LightBox = function LightBox(_ref) {
|
|
|
8932
8915
|
);
|
|
8933
8916
|
};
|
|
8934
8917
|
|
|
8935
|
-
var urlFor$
|
|
8918
|
+
var urlFor$3 = function urlFor(source, client) {
|
|
8936
8919
|
var builder = imageUrlBuilder(client);
|
|
8937
8920
|
return builder.image(source).auto('format');
|
|
8938
8921
|
};
|
|
@@ -8948,7 +8931,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8948
8931
|
}
|
|
8949
8932
|
};
|
|
8950
8933
|
|
|
8951
|
-
var FigureImage =
|
|
8934
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8952
8935
|
var node = _ref2.node,
|
|
8953
8936
|
client = _ref2.client,
|
|
8954
8937
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8956,16 +8939,16 @@ var FigureImage = React.memo(function (_ref2) {
|
|
|
8956
8939
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8957
8940
|
|
|
8958
8941
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8959
|
-
return
|
|
8942
|
+
return React__default.createElement(
|
|
8960
8943
|
'picture',
|
|
8961
8944
|
null,
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8945
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: generateSrcSet(node, client, 1500) }),
|
|
8946
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: generateSrcSet(node, client, 1000) }),
|
|
8947
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: generateSrcSet(node, client, 500) }),
|
|
8948
|
+
React__default.createElement('img', _extends$1({
|
|
8966
8949
|
style: figureImageStyle,
|
|
8967
8950
|
className: 'figure-image',
|
|
8968
|
-
src: urlFor$
|
|
8951
|
+
src: urlFor$3(node, client).url(),
|
|
8969
8952
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
8970
8953
|
}, !link && {
|
|
8971
8954
|
onClick: function onClick() {
|
|
@@ -9050,13 +9033,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9050
9033
|
|
|
9051
9034
|
var FigureCaption = useCallback(function () {
|
|
9052
9035
|
if (imgcaption && imgcaption.length > 0) {
|
|
9053
|
-
return
|
|
9036
|
+
return React__default.createElement(
|
|
9054
9037
|
'div',
|
|
9055
9038
|
{ className: 'figure-caption' },
|
|
9056
|
-
|
|
9039
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9057
9040
|
);
|
|
9058
9041
|
} else if (caption) {
|
|
9059
|
-
return
|
|
9042
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9060
9043
|
} else return null;
|
|
9061
9044
|
}, [caption, imgcaption]);
|
|
9062
9045
|
|
|
@@ -9069,28 +9052,28 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9069
9052
|
};
|
|
9070
9053
|
|
|
9071
9054
|
var handleClickFigure = useCallback(function (node, client) {
|
|
9072
|
-
setLightboxImgSrc(urlFor$
|
|
9055
|
+
setLightboxImgSrc(urlFor$3(node, client).url());
|
|
9073
9056
|
setShowLightbox(true);
|
|
9074
9057
|
}, [node, client]);
|
|
9075
9058
|
|
|
9076
|
-
return
|
|
9077
|
-
|
|
9059
|
+
return React__default.createElement(
|
|
9060
|
+
React__default.Fragment,
|
|
9078
9061
|
null,
|
|
9079
|
-
|
|
9080
|
-
Figure$
|
|
9062
|
+
React__default.createElement(
|
|
9063
|
+
Figure$1$1,
|
|
9081
9064
|
{ className: '' + class_name, style: figureStyle },
|
|
9082
|
-
link ?
|
|
9065
|
+
link ? React__default.createElement(
|
|
9083
9066
|
'a',
|
|
9084
9067
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
) :
|
|
9088
|
-
|
|
9068
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9069
|
+
React__default.createElement(FigureCaption, null)
|
|
9070
|
+
) : React__default.createElement(
|
|
9071
|
+
React__default.Fragment,
|
|
9089
9072
|
null,
|
|
9090
|
-
|
|
9091
|
-
|
|
9073
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9074
|
+
React__default.createElement(FigureCaption, null)
|
|
9092
9075
|
),
|
|
9093
|
-
|
|
9076
|
+
React__default.createElement(LightBox, {
|
|
9094
9077
|
showLightbox: showLightbox,
|
|
9095
9078
|
lightboxImgSrc: lightboxImgSrc,
|
|
9096
9079
|
closeLightbox: function closeLightbox() {
|
|
@@ -9099,7 +9082,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9099
9082
|
}
|
|
9100
9083
|
})
|
|
9101
9084
|
),
|
|
9102
|
-
|
|
9085
|
+
React__default.createElement(
|
|
9103
9086
|
'style',
|
|
9104
9087
|
{ jsx: 'true' },
|
|
9105
9088
|
'\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 '
|
|
@@ -9107,9 +9090,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9107
9090
|
);
|
|
9108
9091
|
};
|
|
9109
9092
|
|
|
9110
|
-
var Figure =
|
|
9093
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9111
9094
|
|
|
9112
|
-
var urlFor = function urlFor(source, client) {
|
|
9095
|
+
var urlFor$4 = function urlFor(source, client) {
|
|
9113
9096
|
var builder = imageUrlBuilder(client);
|
|
9114
9097
|
return builder.image(source).auto('format');
|
|
9115
9098
|
};
|
|
@@ -9153,68 +9136,68 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9153
9136
|
imgcaption = _ref.imgcaption;
|
|
9154
9137
|
|
|
9155
9138
|
if (imgcaption && imgcaption.length > 0) {
|
|
9156
|
-
return
|
|
9139
|
+
return React__default.createElement(
|
|
9157
9140
|
'div',
|
|
9158
9141
|
{ className: 'multi-figure-caption' },
|
|
9159
|
-
|
|
9142
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9160
9143
|
);
|
|
9161
9144
|
} else if (caption) {
|
|
9162
|
-
return
|
|
9145
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9163
9146
|
} else return null;
|
|
9164
9147
|
};
|
|
9165
9148
|
|
|
9166
9149
|
if (images && images.length > 0) {
|
|
9167
|
-
return
|
|
9150
|
+
return React__default.createElement(
|
|
9168
9151
|
'div',
|
|
9169
9152
|
{ className: 'multi-figure-container' },
|
|
9170
|
-
|
|
9153
|
+
React__default.createElement(
|
|
9171
9154
|
Row$1,
|
|
9172
9155
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9173
9156
|
images.map(function (image, index) {
|
|
9174
|
-
return
|
|
9157
|
+
return React__default.createElement(
|
|
9175
9158
|
Col$1,
|
|
9176
9159
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9177
|
-
image.link ?
|
|
9160
|
+
image.link ? React__default.createElement(
|
|
9178
9161
|
'a',
|
|
9179
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9180
|
-
|
|
9162
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9163
|
+
React__default.createElement(
|
|
9181
9164
|
'div',
|
|
9182
9165
|
{ className: 'multi-figure-image-container' },
|
|
9183
|
-
|
|
9166
|
+
React__default.createElement(
|
|
9184
9167
|
LazyLoad,
|
|
9185
9168
|
{ once: true },
|
|
9186
|
-
|
|
9169
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9187
9170
|
),
|
|
9188
|
-
|
|
9171
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9189
9172
|
)
|
|
9190
|
-
) :
|
|
9173
|
+
) : React__default.createElement(
|
|
9191
9174
|
'div',
|
|
9192
9175
|
{ className: 'multi-figure-image-container' },
|
|
9193
|
-
|
|
9176
|
+
React__default.createElement(
|
|
9194
9177
|
LazyLoad,
|
|
9195
9178
|
{ once: true },
|
|
9196
|
-
|
|
9179
|
+
React__default.createElement('img', {
|
|
9197
9180
|
'images-count': images.length,
|
|
9198
9181
|
className: 'multi-figure-image',
|
|
9199
|
-
src: urlFor(image.asset, client).url(),
|
|
9182
|
+
src: urlFor$4(image.asset, client).url(),
|
|
9200
9183
|
alt: image.alt,
|
|
9201
9184
|
onClick: function onClick() {
|
|
9202
|
-
setOpenImgSrc(urlFor(image, client).url());
|
|
9185
|
+
setOpenImgSrc(urlFor$4(image, client).url());
|
|
9203
9186
|
setOpenImg(true);
|
|
9204
9187
|
}
|
|
9205
9188
|
})
|
|
9206
9189
|
),
|
|
9207
|
-
|
|
9190
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9208
9191
|
)
|
|
9209
9192
|
);
|
|
9210
9193
|
})
|
|
9211
9194
|
),
|
|
9212
|
-
|
|
9195
|
+
React__default.createElement(
|
|
9213
9196
|
'div',
|
|
9214
9197
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9215
|
-
|
|
9198
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9216
9199
|
),
|
|
9217
|
-
|
|
9200
|
+
React__default.createElement(
|
|
9218
9201
|
'style',
|
|
9219
9202
|
{ jsx: 'true' },
|
|
9220
9203
|
'\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 '
|
|
@@ -9236,13 +9219,267 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9236
9219
|
|
|
9237
9220
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9238
9221
|
|
|
9239
|
-
return
|
|
9222
|
+
return React__default.createElement(
|
|
9240
9223
|
'div',
|
|
9241
9224
|
{ id: elementId },
|
|
9242
|
-
|
|
9225
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9243
9226
|
);
|
|
9244
9227
|
};
|
|
9245
9228
|
|
|
9229
|
+
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9230
|
+
|
|
9231
|
+
exports.__esModule = true;
|
|
9232
|
+
|
|
9233
|
+
exports.default = function (obj, keys) {
|
|
9234
|
+
var target = {};
|
|
9235
|
+
|
|
9236
|
+
for (var i in obj) {
|
|
9237
|
+
if (keys.indexOf(i) >= 0) continue;
|
|
9238
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9239
|
+
target[i] = obj[i];
|
|
9240
|
+
}
|
|
9241
|
+
|
|
9242
|
+
return target;
|
|
9243
|
+
};
|
|
9244
|
+
});
|
|
9245
|
+
|
|
9246
|
+
unwrapExports(objectWithoutProperties);
|
|
9247
|
+
|
|
9248
|
+
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9249
|
+
|
|
9250
|
+
exports.__esModule = true;
|
|
9251
|
+
|
|
9252
|
+
|
|
9253
|
+
|
|
9254
|
+
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9255
|
+
|
|
9256
|
+
|
|
9257
|
+
|
|
9258
|
+
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9259
|
+
|
|
9260
|
+
|
|
9261
|
+
|
|
9262
|
+
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
9263
|
+
|
|
9264
|
+
|
|
9265
|
+
|
|
9266
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
9267
|
+
|
|
9268
|
+
|
|
9269
|
+
|
|
9270
|
+
var _inherits3 = _interopRequireDefault(inherits);
|
|
9271
|
+
|
|
9272
|
+
|
|
9273
|
+
|
|
9274
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9275
|
+
|
|
9276
|
+
|
|
9277
|
+
|
|
9278
|
+
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
9279
|
+
|
|
9280
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9281
|
+
var noop = function noop() {};
|
|
9282
|
+
|
|
9283
|
+
var ScriptTag = function (_Component) {
|
|
9284
|
+
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9285
|
+
|
|
9286
|
+
ScriptTag.removeNode = function removeNode(node) {
|
|
9287
|
+
if (node) {
|
|
9288
|
+
node.parentNode.removeChild(node);
|
|
9289
|
+
}
|
|
9290
|
+
};
|
|
9291
|
+
|
|
9292
|
+
function ScriptTag(props, context) {
|
|
9293
|
+
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9294
|
+
|
|
9295
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9296
|
+
|
|
9297
|
+
_this.domRef = null;
|
|
9298
|
+
_this.state = {
|
|
9299
|
+
isHydrated: props.isHydrating,
|
|
9300
|
+
additionalNode: null,
|
|
9301
|
+
removeAdditionalNode: null
|
|
9302
|
+
};
|
|
9303
|
+
return _this;
|
|
9304
|
+
}
|
|
9305
|
+
|
|
9306
|
+
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9307
|
+
var _props = this.props,
|
|
9308
|
+
onError = _props.onError,
|
|
9309
|
+
onLoad = _props.onLoad,
|
|
9310
|
+
nonce = _props.nonce;
|
|
9311
|
+
|
|
9312
|
+
// Create a new HTML script element
|
|
9313
|
+
|
|
9314
|
+
var newElement = document.createElement("script");
|
|
9315
|
+
|
|
9316
|
+
// Copy all attribute values
|
|
9317
|
+
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9318
|
+
var attr = this.domRef.attributes[i];
|
|
9319
|
+
if (attr.nodeName === 'nonce') {
|
|
9320
|
+
// The browser clears the nonce value - grab from props
|
|
9321
|
+
newElement.setAttribute(attr.nodeName, nonce);
|
|
9322
|
+
} else {
|
|
9323
|
+
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9324
|
+
}
|
|
9325
|
+
}
|
|
9326
|
+
|
|
9327
|
+
// Copy the inner script
|
|
9328
|
+
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9329
|
+
newElement.innerHTML = this.domRef.innerHTML;
|
|
9330
|
+
}
|
|
9331
|
+
|
|
9332
|
+
// Bind event listeners
|
|
9333
|
+
newElement.addEventListener('load', onLoad);
|
|
9334
|
+
newElement.addEventListener('error', onError);
|
|
9335
|
+
|
|
9336
|
+
// Append the new script tag
|
|
9337
|
+
this.domRef.parentNode.appendChild(newElement);
|
|
9338
|
+
return newElement;
|
|
9339
|
+
};
|
|
9340
|
+
|
|
9341
|
+
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9342
|
+
var isHydrated = this.state.isHydrated;
|
|
9343
|
+
|
|
9344
|
+
if (isHydrated) {
|
|
9345
|
+
// was rendered on server, don't replace elements when hydrating
|
|
9346
|
+
return;
|
|
9347
|
+
}
|
|
9348
|
+
|
|
9349
|
+
this.setState({
|
|
9350
|
+
additionalNode: this.appendAdditionalElement(),
|
|
9351
|
+
removeAdditionalNode: null
|
|
9352
|
+
});
|
|
9353
|
+
};
|
|
9354
|
+
|
|
9355
|
+
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9356
|
+
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9357
|
+
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9358
|
+
|
|
9359
|
+
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9360
|
+
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9361
|
+
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9362
|
+
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9363
|
+
// This really complicates the component - for now we'll leave it as is.
|
|
9364
|
+
var _props2 = this.props,
|
|
9365
|
+
src = _props2.src,
|
|
9366
|
+
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9367
|
+
|
|
9368
|
+
if (src && src === nextProps.src) {
|
|
9369
|
+
// The 'src' attribute has not changed
|
|
9370
|
+
return;
|
|
9371
|
+
}
|
|
9372
|
+
|
|
9373
|
+
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9374
|
+
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9375
|
+
return;
|
|
9376
|
+
}
|
|
9377
|
+
|
|
9378
|
+
this.setState({
|
|
9379
|
+
removeAdditionalNode: this.state.additionalNode,
|
|
9380
|
+
additionalNode: null
|
|
9381
|
+
});
|
|
9382
|
+
};
|
|
9383
|
+
|
|
9384
|
+
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9385
|
+
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9386
|
+
};
|
|
9387
|
+
|
|
9388
|
+
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9389
|
+
var _state = this.state,
|
|
9390
|
+
additionalNode = _state.additionalNode,
|
|
9391
|
+
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9392
|
+
|
|
9393
|
+
if (additionalNode === null) {
|
|
9394
|
+
this.setState({
|
|
9395
|
+
additionalNode: this.appendAdditionalElement()
|
|
9396
|
+
});
|
|
9397
|
+
}
|
|
9398
|
+
|
|
9399
|
+
if (removeAdditionalNode !== null) {
|
|
9400
|
+
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9401
|
+
this.setState({
|
|
9402
|
+
removeAdditionalNode: null
|
|
9403
|
+
});
|
|
9404
|
+
}
|
|
9405
|
+
};
|
|
9406
|
+
|
|
9407
|
+
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9408
|
+
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9409
|
+
ScriptTag.removeNode(this.state.additionalNode);
|
|
9410
|
+
};
|
|
9411
|
+
|
|
9412
|
+
ScriptTag.prototype.render = function render() {
|
|
9413
|
+
var _this2 = this;
|
|
9414
|
+
|
|
9415
|
+
var additionalNode = this.state.additionalNode;
|
|
9416
|
+
|
|
9417
|
+
if (additionalNode !== null) {
|
|
9418
|
+
return null;
|
|
9419
|
+
}
|
|
9420
|
+
|
|
9421
|
+
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9422
|
+
// eslint-disable-next-line no-unused-vars
|
|
9423
|
+
var _props3 = this.props,
|
|
9424
|
+
isHydrating = _props3.isHydrating,
|
|
9425
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9426
|
+
|
|
9427
|
+
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9428
|
+
return _this2.domRef = tag;
|
|
9429
|
+
} }));
|
|
9430
|
+
};
|
|
9431
|
+
|
|
9432
|
+
return ScriptTag;
|
|
9433
|
+
}(React__default.Component);
|
|
9434
|
+
|
|
9435
|
+
ScriptTag.propTypes = {
|
|
9436
|
+
/**
|
|
9437
|
+
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9438
|
+
*/
|
|
9439
|
+
isHydrating: _propTypes2.default.bool,
|
|
9440
|
+
|
|
9441
|
+
// Standard <script> tag props
|
|
9442
|
+
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9443
|
+
crossOrigin: _propTypes2.default.string,
|
|
9444
|
+
defer: _propTypes2.default.bool,
|
|
9445
|
+
integrity: _propTypes2.default.string,
|
|
9446
|
+
nonce: _propTypes2.default.string,
|
|
9447
|
+
src: _propTypes2.default.string,
|
|
9448
|
+
text: _propTypes2.default.string,
|
|
9449
|
+
type: _propTypes2.default.string,
|
|
9450
|
+
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9451
|
+
|
|
9452
|
+
// globals
|
|
9453
|
+
onError: _propTypes2.default.func,
|
|
9454
|
+
onLoad: _propTypes2.default.func
|
|
9455
|
+
};
|
|
9456
|
+
ScriptTag.defaultProps = {
|
|
9457
|
+
isHydrating: false,
|
|
9458
|
+
onError: noop,
|
|
9459
|
+
onLoad: noop
|
|
9460
|
+
};
|
|
9461
|
+
exports.default = ScriptTag;
|
|
9462
|
+
});
|
|
9463
|
+
|
|
9464
|
+
unwrapExports(ScriptTag_1);
|
|
9465
|
+
|
|
9466
|
+
var lib = createCommonjsModule(function (module, exports) {
|
|
9467
|
+
|
|
9468
|
+
exports.__esModule = true;
|
|
9469
|
+
|
|
9470
|
+
|
|
9471
|
+
|
|
9472
|
+
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
9473
|
+
|
|
9474
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9475
|
+
|
|
9476
|
+
exports.default = _ScriptTag2.default;
|
|
9477
|
+
});
|
|
9478
|
+
|
|
9479
|
+
var ScriptTag = unwrapExports(lib);
|
|
9480
|
+
|
|
9481
|
+
var enterpriseDomainName = 'mjhlifesciences';
|
|
9482
|
+
|
|
9246
9483
|
var FormAssembly = function FormAssembly(props) {
|
|
9247
9484
|
var _props$node = props.node,
|
|
9248
9485
|
FormID = _props$node.FormID,
|
|
@@ -9250,65 +9487,37 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9250
9487
|
_props$node$needSegme = _props$node.needSegmentSupport,
|
|
9251
9488
|
needSegmentSupport = _props$node$needSegme === undefined ? false : _props$node$needSegme;
|
|
9252
9489
|
|
|
9253
|
-
var formAssemblyRef = useRef(null);
|
|
9254
|
-
|
|
9255
9490
|
var _useState = useState(null),
|
|
9256
9491
|
_useState2 = _slicedToArray(_useState, 2),
|
|
9257
|
-
|
|
9258
|
-
|
|
9492
|
+
iframeSrc = _useState2[0],
|
|
9493
|
+
setIframeSrc = _useState2[1];
|
|
9259
9494
|
|
|
9260
9495
|
useEffect(function () {
|
|
9261
|
-
|
|
9262
|
-
var
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
return response.json();
|
|
9275
|
-
|
|
9276
|
-
case 6:
|
|
9277
|
-
result = _context.sent;
|
|
9278
|
-
|
|
9279
|
-
setHtmlSnippet(result.data);
|
|
9280
|
-
_context.next = 13;
|
|
9281
|
-
break;
|
|
9282
|
-
|
|
9283
|
-
case 10:
|
|
9284
|
-
_context.prev = 10;
|
|
9285
|
-
_context.t0 = _context['catch'](0);
|
|
9286
|
-
|
|
9287
|
-
console.error(_context.t0);
|
|
9288
|
-
|
|
9289
|
-
case 13:
|
|
9290
|
-
case 'end':
|
|
9291
|
-
return _context.stop();
|
|
9292
|
-
}
|
|
9293
|
-
}
|
|
9294
|
-
}, _callee, this, [[0, 10]]);
|
|
9295
|
-
}))();
|
|
9496
|
+
if (FormID) {
|
|
9497
|
+
var src = 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID;
|
|
9498
|
+
var anonymousID = analytics.user() && analytics.user().anonymousId();
|
|
9499
|
+
if (anonymousID && needSegmentSupport) {
|
|
9500
|
+
src = src + '?tfa_1=' + anonymousID;
|
|
9501
|
+
}
|
|
9502
|
+
if (Promocode) {
|
|
9503
|
+
var pattern = /\?.+=.*/g;
|
|
9504
|
+
var hasQueryString = pattern.test(src);
|
|
9505
|
+
src = hasQueryString ? src + '&tfa_2=' + Promocode : src + '?tfa_2=' + Promocode;
|
|
9506
|
+
}
|
|
9507
|
+
setIframeSrc(encodeURI(src));
|
|
9508
|
+
}
|
|
9296
9509
|
}, []);
|
|
9297
9510
|
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
}, 1000);
|
|
9309
|
-
}, [htmlSnippet]);
|
|
9310
|
-
|
|
9311
|
-
return htmlSnippet && React.createElement('div', { className: 'form-assembly', ref: formAssemblyRef, dangerouslySetInnerHTML: { __html: htmlSnippet } });
|
|
9511
|
+
if (iframeSrc) {
|
|
9512
|
+
return React__default.createElement(
|
|
9513
|
+
'section',
|
|
9514
|
+
{ className: 'form-assembly' },
|
|
9515
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9516
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9517
|
+
);
|
|
9518
|
+
}
|
|
9519
|
+
|
|
9520
|
+
return null;
|
|
9312
9521
|
};
|
|
9313
9522
|
|
|
9314
9523
|
var BlockTable = function BlockTable(props) {
|
|
@@ -9341,27 +9550,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9341
9550
|
return window.removeEventListener('resize', handleResize);
|
|
9342
9551
|
};
|
|
9343
9552
|
}, []);
|
|
9344
|
-
return
|
|
9553
|
+
return React__default.createElement(
|
|
9345
9554
|
'div',
|
|
9346
9555
|
{ className: 'blockTableHolder', ref: holder },
|
|
9347
|
-
|
|
9556
|
+
React__default.createElement(
|
|
9348
9557
|
'div',
|
|
9349
9558
|
{ className: 'blockTable' },
|
|
9350
9559
|
rows && rows.map(function (row) {
|
|
9351
|
-
return
|
|
9560
|
+
return React__default.createElement(
|
|
9352
9561
|
'div',
|
|
9353
9562
|
{ className: 'blockTableRow' },
|
|
9354
9563
|
row.cells && row.cells.map(function (cell) {
|
|
9355
|
-
return
|
|
9564
|
+
return React__default.createElement(
|
|
9356
9565
|
'div',
|
|
9357
9566
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9358
|
-
|
|
9567
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9359
9568
|
);
|
|
9360
9569
|
})
|
|
9361
9570
|
);
|
|
9362
9571
|
})
|
|
9363
9572
|
),
|
|
9364
|
-
|
|
9573
|
+
React__default.createElement(
|
|
9365
9574
|
'style',
|
|
9366
9575
|
{ jsx: true },
|
|
9367
9576
|
'\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 '
|
|
@@ -9440,12 +9649,12 @@ var getSerializers = function getSerializers() {
|
|
|
9440
9649
|
var node = _ref.node;
|
|
9441
9650
|
var url = node.url;
|
|
9442
9651
|
|
|
9443
|
-
return
|
|
9652
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9444
9653
|
},
|
|
9445
9654
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9446
9655
|
var node = _ref2.node;
|
|
9447
9656
|
|
|
9448
|
-
return
|
|
9657
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9449
9658
|
nodes: node,
|
|
9450
9659
|
article: article,
|
|
9451
9660
|
meta: meta,
|
|
@@ -9459,7 +9668,7 @@ var getSerializers = function getSerializers() {
|
|
|
9459
9668
|
articleSeries: function articleSeries(_ref3) {
|
|
9460
9669
|
var node = _ref3.node;
|
|
9461
9670
|
|
|
9462
|
-
return
|
|
9671
|
+
return React__default.createElement(ArticleSeries, {
|
|
9463
9672
|
nodes: node,
|
|
9464
9673
|
accountIDs: videoAccountIDs || {},
|
|
9465
9674
|
pageview: pageview,
|
|
@@ -9472,61 +9681,61 @@ var getSerializers = function getSerializers() {
|
|
|
9472
9681
|
figure: function figure(_ref4) {
|
|
9473
9682
|
var node = _ref4.node;
|
|
9474
9683
|
|
|
9475
|
-
return
|
|
9684
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9476
9685
|
},
|
|
9477
9686
|
multifigure: function multifigure(_ref5) {
|
|
9478
9687
|
var node = _ref5.node;
|
|
9479
9688
|
|
|
9480
|
-
return
|
|
9689
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9481
9690
|
},
|
|
9482
9691
|
slideshow: function slideshow(_ref6) {
|
|
9483
9692
|
var node = _ref6.node;
|
|
9484
9693
|
var slides = node.slides;
|
|
9485
9694
|
|
|
9486
|
-
return
|
|
9695
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9487
9696
|
},
|
|
9488
9697
|
sidebar: function sidebar(_ref7) {
|
|
9489
9698
|
var node = _ref7.node;
|
|
9490
9699
|
var caption = node.caption,
|
|
9491
9700
|
content = node.content;
|
|
9492
9701
|
|
|
9493
|
-
return
|
|
9702
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9494
9703
|
},
|
|
9495
9704
|
datatable: function datatable(_ref8) {
|
|
9496
9705
|
var node = _ref8.node;
|
|
9497
9706
|
var table = node.table;
|
|
9498
9707
|
|
|
9499
|
-
return
|
|
9708
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9500
9709
|
},
|
|
9501
9710
|
media: function media(_ref9) {
|
|
9502
9711
|
var node = _ref9.node;
|
|
9503
9712
|
|
|
9504
|
-
return
|
|
9713
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9505
9714
|
},
|
|
9506
9715
|
iframe: function iframe(_ref10) {
|
|
9507
9716
|
var node = _ref10.node;
|
|
9508
9717
|
|
|
9509
|
-
return
|
|
9718
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9510
9719
|
},
|
|
9511
9720
|
video: function video(_ref11) {
|
|
9512
9721
|
var node = _ref11.node;
|
|
9513
9722
|
|
|
9514
|
-
return
|
|
9723
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9515
9724
|
},
|
|
9516
9725
|
audio: function audio(_ref12) {
|
|
9517
9726
|
var node = _ref12.node;
|
|
9518
9727
|
|
|
9519
|
-
return
|
|
9728
|
+
return React__default.createElement(Audio, { node: node });
|
|
9520
9729
|
},
|
|
9521
9730
|
poll: function poll(_ref13) {
|
|
9522
9731
|
var node = _ref13.node;
|
|
9523
9732
|
|
|
9524
|
-
return
|
|
9733
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9525
9734
|
},
|
|
9526
9735
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9527
9736
|
var node = _ref14.node;
|
|
9528
9737
|
|
|
9529
|
-
return
|
|
9738
|
+
return React__default.createElement(Poll$1, {
|
|
9530
9739
|
node: node,
|
|
9531
9740
|
client: client,
|
|
9532
9741
|
pageview: pageview,
|
|
@@ -9540,35 +9749,35 @@ var getSerializers = function getSerializers() {
|
|
|
9540
9749
|
var node = _ref15.node;
|
|
9541
9750
|
var quizzes = node.quizzes;
|
|
9542
9751
|
|
|
9543
|
-
return
|
|
9752
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9544
9753
|
},
|
|
9545
9754
|
leads: function leads(_ref16) {
|
|
9546
9755
|
var node = _ref16.node;
|
|
9547
9756
|
var leadID = node.leadID;
|
|
9548
9757
|
|
|
9549
9758
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9550
|
-
return
|
|
9759
|
+
return React__default.createElement(Leads, { url: url });
|
|
9551
9760
|
},
|
|
9552
9761
|
slideshows: function slideshows(_ref17) {
|
|
9553
9762
|
var node = _ref17.node;
|
|
9554
9763
|
|
|
9555
|
-
return
|
|
9764
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9556
9765
|
},
|
|
9557
9766
|
nativeAd: function nativeAd(_ref18) {
|
|
9558
9767
|
var node = _ref18.node;
|
|
9559
9768
|
|
|
9560
|
-
return
|
|
9769
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9561
9770
|
},
|
|
9562
9771
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9563
9772
|
var node = _ref19.node;
|
|
9564
9773
|
|
|
9565
|
-
return
|
|
9774
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9566
9775
|
},
|
|
9567
9776
|
hrtag: function hrtag() {
|
|
9568
|
-
return
|
|
9777
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9569
9778
|
},
|
|
9570
9779
|
brtag: function brtag() {
|
|
9571
|
-
return
|
|
9780
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9572
9781
|
},
|
|
9573
9782
|
formstack: function formstack(_ref20) {
|
|
9574
9783
|
var node = _ref20.node;
|
|
@@ -9576,29 +9785,29 @@ var getSerializers = function getSerializers() {
|
|
|
9576
9785
|
Caption = node.Caption,
|
|
9577
9786
|
needSegmentSupport = node.needSegmentSupport;
|
|
9578
9787
|
|
|
9579
|
-
return
|
|
9788
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9580
9789
|
},
|
|
9581
9790
|
formassembly: FormAssembly,
|
|
9582
9791
|
multimedia: function multimedia(_ref21) {
|
|
9583
9792
|
var node = _ref21.node;
|
|
9584
9793
|
|
|
9585
|
-
return
|
|
9794
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9586
9795
|
},
|
|
9587
9796
|
blockTable: function blockTable(_ref22) {
|
|
9588
9797
|
var node = _ref22.node;
|
|
9589
|
-
return
|
|
9798
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9590
9799
|
}
|
|
9591
9800
|
},
|
|
9592
9801
|
marks: {
|
|
9593
9802
|
superscript: function superscript(props) {
|
|
9594
|
-
return
|
|
9803
|
+
return React__default.createElement(
|
|
9595
9804
|
'sup',
|
|
9596
9805
|
null,
|
|
9597
9806
|
props.children
|
|
9598
9807
|
);
|
|
9599
9808
|
},
|
|
9600
9809
|
subscript: function subscript(props) {
|
|
9601
|
-
return
|
|
9810
|
+
return React__default.createElement(
|
|
9602
9811
|
'sub',
|
|
9603
9812
|
null,
|
|
9604
9813
|
props.children
|
|
@@ -9614,7 +9823,7 @@ var getSerializers = function getSerializers() {
|
|
|
9614
9823
|
if (href && href.charAt(0) === '#') {
|
|
9615
9824
|
var elementId = href.slice(1);
|
|
9616
9825
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9617
|
-
return
|
|
9826
|
+
return React__default.createElement(
|
|
9618
9827
|
'a',
|
|
9619
9828
|
{ onClick: function onClick() {
|
|
9620
9829
|
return ScrollToElement(elementId);
|
|
@@ -9624,7 +9833,7 @@ var getSerializers = function getSerializers() {
|
|
|
9624
9833
|
}
|
|
9625
9834
|
|
|
9626
9835
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9627
|
-
return
|
|
9836
|
+
return React__default.createElement(
|
|
9628
9837
|
'a',
|
|
9629
9838
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9630
9839
|
children
|
|
@@ -9632,7 +9841,7 @@ var getSerializers = function getSerializers() {
|
|
|
9632
9841
|
},
|
|
9633
9842
|
alignleft: function alignleft(_ref23) {
|
|
9634
9843
|
var children = _ref23.children;
|
|
9635
|
-
return
|
|
9844
|
+
return React__default.createElement(
|
|
9636
9845
|
'div',
|
|
9637
9846
|
{ style: { textAlign: 'left' } },
|
|
9638
9847
|
children
|
|
@@ -9640,7 +9849,7 @@ var getSerializers = function getSerializers() {
|
|
|
9640
9849
|
},
|
|
9641
9850
|
alignright: function alignright(_ref24) {
|
|
9642
9851
|
var children = _ref24.children;
|
|
9643
|
-
return
|
|
9852
|
+
return React__default.createElement(
|
|
9644
9853
|
'div',
|
|
9645
9854
|
{ style: { textAlign: 'right' } },
|
|
9646
9855
|
children
|
|
@@ -9648,7 +9857,7 @@ var getSerializers = function getSerializers() {
|
|
|
9648
9857
|
},
|
|
9649
9858
|
aligncenter: function aligncenter(_ref25) {
|
|
9650
9859
|
var children = _ref25.children;
|
|
9651
|
-
return
|
|
9860
|
+
return React__default.createElement(
|
|
9652
9861
|
'div',
|
|
9653
9862
|
{ style: { textAlign: 'center' } },
|
|
9654
9863
|
children
|
|
@@ -9656,7 +9865,7 @@ var getSerializers = function getSerializers() {
|
|
|
9656
9865
|
},
|
|
9657
9866
|
alignjustify: function alignjustify(_ref26) {
|
|
9658
9867
|
var children = _ref26.children;
|
|
9659
|
-
return
|
|
9868
|
+
return React__default.createElement(
|
|
9660
9869
|
'div',
|
|
9661
9870
|
{ style: { textAlign: 'justify' } },
|
|
9662
9871
|
children
|
|
@@ -9666,7 +9875,7 @@ var getSerializers = function getSerializers() {
|
|
|
9666
9875
|
var children = props.children,
|
|
9667
9876
|
color = props.mark.color;
|
|
9668
9877
|
|
|
9669
|
-
return
|
|
9878
|
+
return React__default.createElement(
|
|
9670
9879
|
'span',
|
|
9671
9880
|
{ style: { color: color ? color.hex : null } },
|
|
9672
9881
|
children
|