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