@mjhls/mjh-framework 1.0.860-beta.0 → 1.0.860
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +19 -17
- package/dist/cjs/AD300x250x600.js +19 -17
- package/dist/cjs/AD728x90.js +20 -18
- package/dist/cjs/ADFloatingFooter.js +21 -19
- package/dist/cjs/ADFooter.js +14 -11
- package/dist/cjs/ADGutter.js +21 -19
- package/dist/cjs/{ADInfeed-7c09edba.js → ADInfeed-ff26342c.js} +12 -10
- package/dist/cjs/ADSkyscraper.js +21 -19
- package/dist/cjs/ADSponsoredResources.js +21 -19
- package/dist/cjs/ADWebcast.js +21 -19
- package/dist/cjs/ADWelcome.js +25 -23
- package/dist/cjs/{ADlgInfeed-2e7effc7.js → ADlgInfeed-ad4953d4.js} +8 -7
- package/dist/cjs/AccordionPanel.js +29 -25
- package/dist/cjs/AdSlot.js +23 -21
- package/dist/cjs/AdSlotsProvider.js +18 -908
- package/dist/cjs/AlgoliaSearch.js +55 -14018
- package/dist/cjs/AlphabeticList.js +24 -21
- package/dist/cjs/ArticleCarousel.js +18 -15
- package/dist/cjs/ArticleProgramLandingPage.js +38 -35
- package/dist/cjs/ArticleSeriesLandingPage.js +33 -31
- package/dist/cjs/ArticleSeriesListing.js +49 -47
- package/dist/cjs/Auth.js +245 -1203
- package/dist/cjs/AuthWrapper.js +31 -564
- package/dist/cjs/{AuthorComponent-02e827ae.js → AuthorComponent-ac8972ce.js} +14 -13
- package/dist/cjs/Beam.js +7 -5
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-8b494587.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +28 -24
- package/dist/cjs/CMEDeck.js +73 -72
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +30 -25
- package/dist/cjs/Column3.js +46 -42
- package/dist/cjs/ConferenceArticleCard.js +33 -35
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +97 -92
- package/dist/cjs/DeckQueue.js +82 -78
- package/dist/cjs/{Dfp-14d2455c.js → Dfp-0bf098b5.js} +28 -26
- package/dist/cjs/EventsDeck.js +153 -144
- package/dist/cjs/ExternalResources.js +62 -59
- package/dist/cjs/Feature.js +25 -26
- package/dist/cjs/ForbesHero.js +40 -37
- package/dist/cjs/GridContent.js +221 -215
- package/dist/cjs/GridHero.js +41 -38
- package/dist/cjs/GroupDeck.js +55 -52
- package/dist/cjs/HamMagazine.js +137 -130
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +10 -12
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalArticleListing.js +52 -49
- package/dist/cjs/HorizontalHero.js +24 -26
- package/dist/cjs/IssueContentDeck.js +75 -68
- package/dist/cjs/IssueDeck.js +73 -66
- package/dist/cjs/IssueLanding.js +73 -70
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +31 -28
- package/dist/cjs/MasterDeck.js +71 -69
- package/dist/cjs/MediaSeriesLanding.js +814 -920
- package/dist/cjs/NavDvm.js +75 -68
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +138 -131
- package/dist/cjs/NavNative.js +132 -122
- package/dist/cjs/OncliveHero.js +17 -20
- package/dist/cjs/OncliveLargeHero.js +69 -66
- package/dist/cjs/PageFilter.js +14 -11
- package/dist/cjs/PartnerDetailListing.js +301 -199
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +20 -16
- package/dist/cjs/PubSection.js +30 -28
- package/dist/cjs/PubToc.js +15 -12
- package/dist/cjs/PublicationDeck.js +64 -62
- package/dist/cjs/PublicationLanding.js +150 -144
- package/dist/cjs/QueueDeckExpanded.js +295 -294
- package/dist/cjs/RecentNews.js +20 -19
- package/dist/cjs/RelatedContent.js +51 -53
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +21 -15
- package/dist/cjs/Segment.js +6 -4
- package/dist/cjs/SeriesListingDeck.js +33 -32
- package/dist/cjs/{SeriesSlider-94af9fcb.js → SeriesSlider-60fa1342.js} +39 -38
- package/dist/cjs/SideFooter.js +33 -30
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-650f6101.js → SocialSearchComponent-19548e2a.js} +39 -35
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +61 -58
- package/dist/cjs/TaxonomyDescription.js +37 -34
- package/dist/cjs/TemplateNormal.js +46 -44
- package/dist/cjs/ThumbnailCard.js +19 -20
- package/dist/cjs/Ustream.js +29 -26
- package/dist/cjs/VerticalHero.js +16 -18
- package/dist/cjs/VideoProgramLandingPage.js +58 -52
- package/dist/cjs/VideoSeriesCard.js +28 -27
- package/dist/cjs/VideoSeriesFilter.js +16 -14
- package/dist/cjs/VideoSeriesLandingPage.js +38 -36
- package/dist/cjs/VideoSeriesListing.js +66 -64
- package/dist/cjs/View.js +220 -214
- package/dist/cjs/YahooHero.js +36 -33
- package/dist/cjs/YoutubeGroup.js +61 -58
- package/dist/cjs/{_is-array-aa52fa1e.js → _is-array-754e012d.js} +9 -9
- package/dist/cjs/{_iter-detect-05795553.js → _iter-detect-60b2f026.js} +7 -6
- package/dist/cjs/_object-sap-5e74ba08.js +16 -0
- package/dist/cjs/{_object-to-array-9bac8737.js → _object-to-array-5762f850.js} +4 -4
- package/dist/cjs/{core.get-iterator-method-f3c44602.js → _to-object-329a650b.js} +3 -239
- package/dist/cjs/{asyncToGenerator-df19209d.js → asyncToGenerator-140e5f89.js} +67 -65
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-5c98aec7.js} +10 -8
- package/dist/cjs/core.get-iterator-method-f62321d4.js +39 -0
- package/dist/cjs/{define-property-21887c62.js → define-property-f4d12f4e.js} +3 -3
- package/dist/cjs/{defineProperty-77a37684.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/es6.string.iterator-cc0bbaa4.js +210 -0
- package/dist/cjs/{extends-eed4f016.js → extends-60837c34.js} +8 -9
- package/dist/cjs/faundadb.js +7 -5
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +73 -135
- package/dist/cjs/getRootDocGroup.js +6 -4
- package/dist/cjs/getSerializers.js +26 -24
- package/dist/cjs/{getTargeting-8874437b.js → getTargeting-3e45e4d4.js} +12 -12
- package/dist/cjs/getTargeting.js +7 -5
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-98e01cb9.js → index-44481153.js} +494 -47
- package/dist/cjs/{index-3294d3bc.js → index-99edf08a.js} +1 -1
- package/dist/cjs/{index-cdcc0b5e.js → index-9ac40041.js} +961 -1206
- package/dist/cjs/{index-96b3db50.js → index-9d365128.js} +12 -10
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- 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-4d410430.js → index.esm-3ffa049c.js} +20 -20
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +80 -74
- package/dist/cjs/{inherits-12d44cca.js → inherits-87492b40.js} +14 -16
- package/dist/cjs/{keys-d207942e.js → keys-a586b7a0.js} +4 -4
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-02daeefe.js → main-7b5e57b0.js} +90 -54
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/{slicedToArray-f6d4eaa8.js → slicedToArray-8f385299.js} +9 -7
- package/dist/cjs/{stringify-bbc68047.js → stringify-7c5aff47.js} +2 -2
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-c9b8a0d0.js → toConsumableArray-9a3476fe.js} +10 -8
- package/dist/cjs/{typeof-5f52cf64.js → typeof-9d7f610f.js} +74 -73
- package/dist/cjs/urlFor.js +4 -21
- package/dist/cjs/{ustream-api-9ebe112f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-e34bf324.js → web.dom.iterable-a0e279c1.js} +9 -8
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +16 -15
- package/dist/esm/AD300x250x600.js +16 -15
- package/dist/esm/AD728x90.js +17 -16
- package/dist/esm/ADFloatingFooter.js +18 -17
- package/dist/esm/ADFooter.js +11 -9
- package/dist/esm/ADGutter.js +18 -17
- package/dist/esm/{ADInfeed-bfd129d9.js → ADInfeed-422ad6e6.js} +8 -8
- package/dist/esm/ADSkyscraper.js +18 -17
- package/dist/esm/ADSponsoredResources.js +18 -17
- package/dist/esm/ADWebcast.js +18 -17
- package/dist/esm/ADWelcome.js +22 -21
- package/dist/esm/{ADlgInfeed-0489335b.js → ADlgInfeed-f7468db8.js} +5 -5
- package/dist/esm/AccordionPanel.js +22 -20
- package/dist/esm/AdSlot.js +14 -13
- package/dist/esm/AdSlotsProvider.js +16 -907
- package/dist/esm/AlgoliaSearch.js +47 -14011
- package/dist/esm/AlphabeticList.js +21 -19
- package/dist/esm/ArticleCarousel.js +15 -13
- package/dist/esm/ArticleProgramLandingPage.js +35 -33
- package/dist/esm/ArticleSeriesLandingPage.js +30 -29
- package/dist/esm/ArticleSeriesListing.js +45 -44
- package/dist/esm/Auth.js +225 -1187
- package/dist/esm/AuthWrapper.js +29 -564
- package/dist/esm/{AuthorComponent-e6f95c2f.js → AuthorComponent-8ffd4679.js} +11 -11
- package/dist/esm/Beam.js +7 -5
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d05b5b23.js} +4 -4
- package/dist/esm/Breadcrumbs.js +16 -14
- package/dist/esm/CMEDeck.js +70 -69
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +25 -23
- package/dist/esm/Column3.js +41 -40
- package/dist/esm/ConferenceArticleCard.js +30 -33
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +89 -88
- package/dist/esm/DeckQueue.js +74 -74
- package/dist/esm/{Dfp-f867d061.js → Dfp-85c9513e.js} +15 -14
- package/dist/esm/EventsDeck.js +121 -119
- package/dist/esm/ExternalResources.js +56 -54
- package/dist/esm/Feature.js +17 -20
- package/dist/esm/ForbesHero.js +33 -31
- package/dist/esm/GridContent.js +185 -184
- package/dist/esm/GridHero.js +34 -32
- package/dist/esm/GroupDeck.js +42 -40
- package/dist/esm/HamMagazine.js +107 -105
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +49 -47
- package/dist/esm/HorizontalHero.js +21 -24
- package/dist/esm/IssueContentDeck.js +58 -56
- package/dist/esm/IssueDeck.js +62 -60
- package/dist/esm/IssueLanding.js +70 -68
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +25 -24
- package/dist/esm/MasterDeck.js +67 -66
- package/dist/esm/MediaSeriesLanding.js +575 -684
- package/dist/esm/NavDvm.js +53 -51
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +110 -108
- package/dist/esm/NavNative.js +99 -97
- package/dist/esm/OncliveHero.js +14 -18
- package/dist/esm/OncliveLargeHero.js +57 -55
- package/dist/esm/PageFilter.js +11 -9
- package/dist/esm/PartnerDetailListing.js +191 -90
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +13 -11
- package/dist/esm/PubSection.js +27 -26
- package/dist/esm/PubToc.js +12 -10
- package/dist/esm/PublicationDeck.js +51 -54
- package/dist/esm/PublicationLanding.js +105 -103
- package/dist/esm/QueueDeckExpanded.js +261 -260
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +45 -48
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +12 -10
- package/dist/esm/Segment.js +6 -4
- package/dist/esm/SeriesListingDeck.js +28 -27
- package/dist/esm/{SeriesSlider-0371fc11.js → SeriesSlider-05ecb544.js} +29 -29
- package/dist/esm/SideFooter.js +29 -27
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-d7dec0c2.js → SocialSearchComponent-47815365.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +52 -54
- package/dist/esm/TaxonomyDescription.js +31 -29
- package/dist/esm/TemplateNormal.js +42 -41
- package/dist/esm/ThumbnailCard.js +10 -13
- package/dist/esm/Ustream.js +26 -24
- package/dist/esm/VerticalHero.js +13 -16
- package/dist/esm/VideoProgramLandingPage.js +47 -45
- package/dist/esm/VideoSeriesCard.js +22 -22
- package/dist/esm/VideoSeriesFilter.js +13 -11
- package/dist/esm/VideoSeriesLandingPage.js +30 -29
- package/dist/esm/VideoSeriesListing.js +62 -61
- package/dist/esm/View.js +199 -197
- package/dist/esm/YahooHero.js +30 -28
- package/dist/esm/YoutubeGroup.js +45 -43
- package/dist/esm/{_is-array-4df618a6.js → _is-array-58e95429.js} +1 -1
- package/dist/esm/{_iter-detect-130ee549.js → _iter-detect-5d49a330.js} +2 -1
- package/dist/esm/{_object-sap-8b8ea5a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-c54dd835.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{core.get-iterator-method-86d4db69.js → _to-object-a4107da3.js} +1 -230
- package/dist/esm/{asyncToGenerator-7bf8bc4d.js → asyncToGenerator-fc1c2e29.js} +5 -3
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-4abff0b1.js} +7 -6
- package/dist/esm/core.get-iterator-method-e1de7503.js +36 -0
- package/dist/esm/{define-property-6d26cb48.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-d7d9b577.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/es6.string.iterator-c990c18c.js +201 -0
- package/dist/esm/{extends-5b1796d4.js → extends-eb69e8ac.js} +2 -2
- package/dist/esm/faundadb.js +7 -5
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +68 -130
- package/dist/esm/getRootDocGroup.js +6 -4
- package/dist/esm/getSerializers.js +26 -24
- package/dist/esm/{getTargeting-277c801e.js → getTargeting-9cb7e014.js} +11 -11
- package/dist/esm/getTargeting.js +7 -5
- package/dist/esm/{index-fe008ffe.js → index-110c875e.js} +905 -1161
- package/dist/esm/{index-41a678ea.js → index-1819118a.js} +487 -41
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-5f7e79e7.js → index-6c12bdd5.js} +4 -4
- package/dist/esm/{index-ef6d5dcf.js → index-fa2ffe86.js} +1 -1
- 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-8ee5ff72.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
- package/dist/esm/index.js +69 -66
- package/dist/esm/{inherits-2409637d.js → inherits-0d8cda6e.js} +6 -5
- package/dist/esm/{keys-69989821.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-e4a934b2.js → main-747e7d25.js} +87 -52
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/{slicedToArray-67a08c9c.js → slicedToArray-641f241f.js} +4 -2
- package/dist/esm/{stringify-70b72959.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-32282905.js → toConsumableArray-43aa614d.js} +4 -2
- package/dist/esm/{typeof-c05a82ba.js → typeof-af9c50d8.js} +5 -4
- package/dist/esm/urlFor.js +2 -19
- package/dist/esm/{ustream-api-4c4fe0ba.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-f8f967cd.js → web.dom.iterable-4439f05a.js} +2 -1
- package/package.json +110 -110
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/_object-sap-171b9ea5.js +0 -16
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-e2e62963.js +0 -89
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-aaa2dae0.js +0 -85
- package/dist/esm/inherits-77d5e4fc.js +0 -101
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { _ as _export, a as _core } from './
|
|
3
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-
|
|
4
|
-
import { _ as _extends
|
|
5
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1
|
|
6
|
-
import { _ as _typeof } from './typeof-
|
|
7
|
-
import
|
|
8
|
-
import { l as lib_3 } from './index-
|
|
2
|
+
import { _ as _export, a as _core } from './_to-object-a4107da3.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
4
|
+
import { _ as _extends } from './extends-eb69e8ac.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-0d8cda6e.js';
|
|
6
|
+
import { _ as _typeof$1 } from './typeof-af9c50d8.js';
|
|
7
|
+
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
+
import { l as lib_3 } from './index-1819118a.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import Row$1 from 'react-bootstrap/Row';
|
|
11
11
|
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
-
import { m as moment } from './moment-
|
|
12
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
13
13
|
import Router, { useRouter } from 'next/router';
|
|
14
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-67a08c9c.js';
|
|
15
14
|
import urlFor from './urlFor.js';
|
|
16
|
-
import { L as LazyLoad } from './index-
|
|
17
|
-
import { d as main_16, b as
|
|
15
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
16
|
+
import { d as main_16, b as main_39, m as main_40 } from './main-747e7d25.js';
|
|
18
17
|
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
19
|
import Segment from './Segment.js';
|
|
20
20
|
import Beam from './Beam.js';
|
|
21
21
|
import DFPAdSlot from './AdSlot.js';
|
|
22
22
|
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
-
import { B as BlockContent } from './BlockContent-
|
|
23
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
24
24
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
25
25
|
import GroupDeck from './GroupDeck.js';
|
|
26
26
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
27
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-
|
|
27
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
28
28
|
import { u as util } from './util-7700fc59.js';
|
|
29
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-
|
|
29
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
|
|
30
30
|
import Head from 'next/head';
|
|
31
31
|
import SocialShare from './SocialShare.js';
|
|
32
|
-
import { _ as _objectToArray } from './_object-to-array-
|
|
33
|
-
import Pagination
|
|
34
|
-
import Figure$
|
|
32
|
+
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
33
|
+
import Pagination from 'react-bootstrap/Pagination';
|
|
34
|
+
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
35
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
36
|
-
import Tooltip
|
|
37
|
-
import Popover
|
|
36
|
+
import Tooltip from 'react-bootstrap/Tooltip';
|
|
37
|
+
import Popover from 'react-bootstrap/Popover';
|
|
38
|
+
import ScriptTag from 'react-script-tag';
|
|
38
39
|
|
|
39
40
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
40
41
|
var pageNumber = selectedIndex + 1;
|
|
@@ -69,27 +70,27 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
69
70
|
if (pageview) pageview(router.asPath);
|
|
70
71
|
}, [router]);
|
|
71
72
|
|
|
72
|
-
return
|
|
73
|
+
return React.createElement(
|
|
73
74
|
'div',
|
|
74
75
|
{ className: 'mt-3 mb-3' },
|
|
75
|
-
|
|
76
|
+
React.createElement(
|
|
76
77
|
Carousel,
|
|
77
78
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
78
79
|
return onChangeSlide(selectedIndex, router);
|
|
79
80
|
}, interval: null },
|
|
80
81
|
slides && slides.map(function (slide) {
|
|
81
|
-
return
|
|
82
|
+
return React.createElement(
|
|
82
83
|
Carousel.Item,
|
|
83
84
|
{ key: slide._key },
|
|
84
|
-
|
|
85
|
+
React.createElement(
|
|
85
86
|
'picture',
|
|
86
87
|
null,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
89
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
90
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
91
|
+
React.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
91
92
|
),
|
|
92
|
-
slide.caption &&
|
|
93
|
+
slide.caption && React.createElement(
|
|
93
94
|
'p',
|
|
94
95
|
{ className: 'p-2' },
|
|
95
96
|
slide.caption
|
|
@@ -100,21 +101,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
100
101
|
);
|
|
101
102
|
};
|
|
102
103
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
// do not edit .js files directly - edit src/index.jst
|
|
105
|
+
|
|
106
|
+
|
|
106
107
|
|
|
107
108
|
var fastDeepEqual = function equal(a, b) {
|
|
108
109
|
if (a === b) return true;
|
|
109
110
|
|
|
110
111
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
111
|
-
|
|
112
|
-
, arrB = isArray(b)
|
|
113
|
-
, i
|
|
114
|
-
, length
|
|
115
|
-
, key;
|
|
112
|
+
if (a.constructor !== b.constructor) return false;
|
|
116
113
|
|
|
117
|
-
|
|
114
|
+
var length, i, keys;
|
|
115
|
+
if (Array.isArray(a)) {
|
|
118
116
|
length = a.length;
|
|
119
117
|
if (length != b.length) return false;
|
|
120
118
|
for (i = length; i-- !== 0;)
|
|
@@ -122,35 +120,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
122
120
|
return true;
|
|
123
121
|
}
|
|
124
122
|
|
|
125
|
-
if (arrA != arrB) return false;
|
|
126
123
|
|
|
127
|
-
var dateA = a instanceof Date
|
|
128
|
-
, dateB = b instanceof Date;
|
|
129
|
-
if (dateA != dateB) return false;
|
|
130
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
131
124
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
if (
|
|
135
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
125
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
126
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
127
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
136
128
|
|
|
137
|
-
|
|
129
|
+
keys = Object.keys(a);
|
|
138
130
|
length = keys.length;
|
|
139
|
-
|
|
140
|
-
if (length !== keyList(b).length)
|
|
141
|
-
return false;
|
|
131
|
+
if (length !== Object.keys(b).length) return false;
|
|
142
132
|
|
|
143
133
|
for (i = length; i-- !== 0;)
|
|
144
|
-
if (!
|
|
134
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
145
135
|
|
|
146
136
|
for (i = length; i-- !== 0;) {
|
|
147
|
-
key = keys[i];
|
|
137
|
+
var key = keys[i];
|
|
138
|
+
|
|
148
139
|
if (!equal(a[key], b[key])) return false;
|
|
149
140
|
}
|
|
150
141
|
|
|
151
142
|
return true;
|
|
152
143
|
}
|
|
153
144
|
|
|
145
|
+
// true if both NaN, false otherwise
|
|
154
146
|
return a!==a && b!==b;
|
|
155
147
|
};
|
|
156
148
|
|
|
@@ -1573,199 +1565,239 @@ module.exports = exports['default'];
|
|
|
1573
1565
|
|
|
1574
1566
|
var youTubePlayer = unwrapExports(dist);
|
|
1575
1567
|
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
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; };
|
|
1568
|
+
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); }
|
|
1579
1569
|
|
|
1580
1570
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1581
1571
|
|
|
1582
|
-
function
|
|
1572
|
+
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); } }
|
|
1573
|
+
|
|
1574
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1575
|
+
|
|
1576
|
+
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); }
|
|
1577
|
+
|
|
1578
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1579
|
+
|
|
1580
|
+
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); }; }
|
|
1583
1581
|
|
|
1584
|
-
function
|
|
1582
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1585
1583
|
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1584
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1585
|
+
|
|
1586
|
+
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; } }
|
|
1587
|
+
|
|
1588
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1589
|
+
|
|
1590
|
+
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; }
|
|
1591
|
+
|
|
1592
|
+
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; }
|
|
1593
|
+
|
|
1594
|
+
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; }
|
|
1595
|
+
/**
|
|
1596
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1597
|
+
*
|
|
1598
|
+
* @param {Object} prevProps
|
|
1599
|
+
* @param {Object} props
|
|
1591
1600
|
*/
|
|
1601
|
+
|
|
1592
1602
|
function shouldUpdateVideo(prevProps, props) {
|
|
1593
1603
|
// A changing video should always trigger an update
|
|
1594
1604
|
if (prevProps.videoId !== props.videoId) {
|
|
1595
1605
|
return true;
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1606
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1599
1607
|
// update.
|
|
1608
|
+
|
|
1609
|
+
|
|
1600
1610
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1601
1611
|
var vars = props.opts.playerVars || {};
|
|
1602
|
-
|
|
1603
1612
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1604
1613
|
}
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
*
|
|
1608
|
-
*
|
|
1609
|
-
*
|
|
1610
|
-
*
|
|
1611
|
-
* @param {Object} opts
|
|
1614
|
+
/**
|
|
1615
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1616
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1617
|
+
* player reset is necessary.
|
|
1618
|
+
*
|
|
1619
|
+
* @param {Object} opts
|
|
1612
1620
|
*/
|
|
1621
|
+
|
|
1622
|
+
|
|
1613
1623
|
function filterResetOptions(opts) {
|
|
1614
|
-
return
|
|
1615
|
-
playerVars:
|
|
1624
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1625
|
+
playerVars: _objectSpread(_objectSpread({}, opts.playerVars), {}, {
|
|
1616
1626
|
autoplay: 0,
|
|
1617
1627
|
start: 0,
|
|
1618
1628
|
end: 0
|
|
1619
1629
|
})
|
|
1620
1630
|
});
|
|
1621
1631
|
}
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
*
|
|
1627
|
-
*
|
|
1628
|
-
*
|
|
1629
|
-
* @param {Object}
|
|
1630
|
-
* @param {Object} props
|
|
1632
|
+
/**
|
|
1633
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1634
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1635
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1636
|
+
* those.
|
|
1637
|
+
*
|
|
1638
|
+
* @param {Object} prevProps
|
|
1639
|
+
* @param {Object} props
|
|
1631
1640
|
*/
|
|
1641
|
+
|
|
1642
|
+
|
|
1632
1643
|
function shouldResetPlayer(prevProps, props) {
|
|
1633
1644
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1634
1645
|
}
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
*
|
|
1638
|
-
*
|
|
1639
|
-
* @param {Object}
|
|
1640
|
-
* @param {Object} props
|
|
1646
|
+
/**
|
|
1647
|
+
* Check whether a props change should result in an id or className update.
|
|
1648
|
+
*
|
|
1649
|
+
* @param {Object} prevProps
|
|
1650
|
+
* @param {Object} props
|
|
1641
1651
|
*/
|
|
1652
|
+
|
|
1653
|
+
|
|
1642
1654
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1643
1655
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1644
1656
|
}
|
|
1645
1657
|
|
|
1646
|
-
var YouTube = function (_React$Component) {
|
|
1658
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1647
1659
|
_inherits(YouTube, _React$Component);
|
|
1648
1660
|
|
|
1661
|
+
var _super = _createSuper(YouTube);
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1665
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1666
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1667
|
+
*/
|
|
1649
1668
|
function YouTube(props) {
|
|
1669
|
+
var _this;
|
|
1670
|
+
|
|
1650
1671
|
_classCallCheck(this, YouTube);
|
|
1651
1672
|
|
|
1652
|
-
|
|
1673
|
+
_this = _super.call(this, props);
|
|
1653
1674
|
|
|
1654
|
-
_this
|
|
1675
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1655
1676
|
return _this.props.onReady(event);
|
|
1656
|
-
};
|
|
1677
|
+
});
|
|
1657
1678
|
|
|
1658
|
-
_this
|
|
1679
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1659
1680
|
return _this.props.onError(event);
|
|
1660
|
-
};
|
|
1681
|
+
});
|
|
1661
1682
|
|
|
1662
|
-
_this
|
|
1683
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1663
1684
|
_this.props.onStateChange(event);
|
|
1664
|
-
switch (event.data) {
|
|
1665
1685
|
|
|
1686
|
+
switch (event.data) {
|
|
1666
1687
|
case YouTube.PlayerState.ENDED:
|
|
1667
1688
|
_this.props.onEnd(event);
|
|
1689
|
+
|
|
1668
1690
|
break;
|
|
1669
1691
|
|
|
1670
1692
|
case YouTube.PlayerState.PLAYING:
|
|
1671
1693
|
_this.props.onPlay(event);
|
|
1694
|
+
|
|
1672
1695
|
break;
|
|
1673
1696
|
|
|
1674
1697
|
case YouTube.PlayerState.PAUSED:
|
|
1675
1698
|
_this.props.onPause(event);
|
|
1699
|
+
|
|
1676
1700
|
break;
|
|
1677
1701
|
}
|
|
1678
|
-
};
|
|
1702
|
+
});
|
|
1679
1703
|
|
|
1680
|
-
_this
|
|
1704
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1681
1705
|
return _this.props.onPlaybackRateChange(event);
|
|
1682
|
-
};
|
|
1706
|
+
});
|
|
1683
1707
|
|
|
1684
|
-
_this
|
|
1708
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1685
1709
|
return _this.props.onPlaybackQualityChange(event);
|
|
1686
|
-
};
|
|
1710
|
+
});
|
|
1687
1711
|
|
|
1688
|
-
_this
|
|
1712
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1689
1713
|
// do not attempt to create a player server-side, it won't work
|
|
1690
|
-
if (typeof document === 'undefined') return;
|
|
1691
|
-
|
|
1692
|
-
var playerOpts =
|
|
1714
|
+
if (typeof document === 'undefined') return; // create player
|
|
1715
|
+
|
|
1716
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1693
1717
|
// preload the `videoId` video if one is already given
|
|
1694
1718
|
videoId: _this.props.videoId
|
|
1695
1719
|
});
|
|
1696
|
-
|
|
1697
|
-
// attach event handlers
|
|
1720
|
+
|
|
1721
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1722
|
+
|
|
1698
1723
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1724
|
+
|
|
1699
1725
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1726
|
+
|
|
1700
1727
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1728
|
+
|
|
1701
1729
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1730
|
+
|
|
1702
1731
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1703
|
-
};
|
|
1732
|
+
});
|
|
1704
1733
|
|
|
1705
|
-
_this
|
|
1734
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1706
1735
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1707
|
-
};
|
|
1736
|
+
});
|
|
1708
1737
|
|
|
1709
|
-
_this
|
|
1738
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1710
1739
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1711
1740
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1712
1741
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1713
1742
|
});
|
|
1714
|
-
};
|
|
1743
|
+
});
|
|
1744
|
+
|
|
1745
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1746
|
+
return _this.internalPlayer;
|
|
1747
|
+
});
|
|
1715
1748
|
|
|
1716
|
-
_this
|
|
1749
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1717
1750
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1718
1751
|
_this.internalPlayer.stopVideo();
|
|
1752
|
+
|
|
1719
1753
|
return;
|
|
1720
|
-
}
|
|
1754
|
+
} // set queueing options
|
|
1755
|
+
|
|
1721
1756
|
|
|
1722
|
-
// set queueing options
|
|
1723
1757
|
var autoplay = false;
|
|
1724
1758
|
var opts = {
|
|
1725
1759
|
videoId: _this.props.videoId
|
|
1726
1760
|
};
|
|
1761
|
+
|
|
1727
1762
|
if ('playerVars' in _this.props.opts) {
|
|
1728
1763
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1764
|
+
|
|
1729
1765
|
if ('start' in _this.props.opts.playerVars) {
|
|
1730
1766
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1731
1767
|
}
|
|
1768
|
+
|
|
1732
1769
|
if ('end' in _this.props.opts.playerVars) {
|
|
1733
1770
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1734
1771
|
}
|
|
1735
|
-
}
|
|
1772
|
+
} // if autoplay is enabled loadVideoById
|
|
1773
|
+
|
|
1736
1774
|
|
|
1737
|
-
// if autoplay is enabled loadVideoById
|
|
1738
1775
|
if (autoplay) {
|
|
1739
1776
|
_this.internalPlayer.loadVideoById(opts);
|
|
1777
|
+
|
|
1740
1778
|
return;
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1779
|
+
} // default behaviour just cues the video
|
|
1780
|
+
|
|
1781
|
+
|
|
1743
1782
|
_this.internalPlayer.cueVideoById(opts);
|
|
1744
|
-
};
|
|
1783
|
+
});
|
|
1745
1784
|
|
|
1746
|
-
_this
|
|
1785
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1747
1786
|
_this.container = container;
|
|
1748
|
-
};
|
|
1787
|
+
});
|
|
1749
1788
|
|
|
1750
1789
|
_this.container = null;
|
|
1751
1790
|
_this.internalPlayer = null;
|
|
1752
1791
|
return _this;
|
|
1753
1792
|
}
|
|
1754
1793
|
|
|
1755
|
-
/**
|
|
1756
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1757
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1758
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1759
|
-
*/
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
1794
|
_createClass(YouTube, [{
|
|
1763
|
-
key:
|
|
1795
|
+
key: "componentDidMount",
|
|
1764
1796
|
value: function componentDidMount() {
|
|
1765
1797
|
this.createPlayer();
|
|
1766
1798
|
}
|
|
1767
1799
|
}, {
|
|
1768
|
-
key:
|
|
1800
|
+
key: "componentDidUpdate",
|
|
1769
1801
|
value: function componentDidUpdate(prevProps) {
|
|
1770
1802
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1771
1803
|
this.updatePlayer();
|
|
@@ -1780,112 +1812,58 @@ var YouTube = function (_React$Component) {
|
|
|
1780
1812
|
}
|
|
1781
1813
|
}
|
|
1782
1814
|
}, {
|
|
1783
|
-
key:
|
|
1815
|
+
key: "componentWillUnmount",
|
|
1784
1816
|
value: function componentWillUnmount() {
|
|
1785
|
-
/**
|
|
1786
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1787
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1788
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1789
|
-
* this method isn't quick enough to reset the container element.
|
|
1817
|
+
/**
|
|
1818
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1819
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1820
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1821
|
+
* this method isn't quick enough to reset the container element.
|
|
1790
1822
|
*/
|
|
1791
1823
|
this.internalPlayer.destroy();
|
|
1792
1824
|
}
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
*
|
|
1796
|
-
*
|
|
1797
|
-
*
|
|
1798
|
-
* @param {Object} target - player object
|
|
1799
|
-
*/
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
/**
|
|
1803
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1804
|
-
*
|
|
1805
|
-
* @param {Object} event
|
|
1806
|
-
* @param {Integer} data - error type
|
|
1807
|
-
* @param {Object} target - player object
|
|
1808
|
-
*/
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
/**
|
|
1812
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1813
|
-
*
|
|
1814
|
-
* @param {Object} event
|
|
1815
|
-
* @param {Integer} data - status change type
|
|
1816
|
-
* @param {Object} target - actual YT player
|
|
1817
|
-
*/
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
/**
|
|
1821
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1822
|
-
*
|
|
1823
|
-
* @param {Object} event
|
|
1824
|
-
* @param {Float} data - playback rate
|
|
1825
|
-
* @param {Object} target - actual YT player
|
|
1826
|
-
*/
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
/**
|
|
1830
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1831
|
-
*
|
|
1832
|
-
* @param {Object} event
|
|
1833
|
-
* @param {String} data - playback quality
|
|
1834
|
-
* @param {Object} target - actual YT player
|
|
1835
|
-
*/
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
/**
|
|
1839
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1840
|
-
*/
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
/**
|
|
1844
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1845
|
-
*/
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
/**
|
|
1849
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1850
|
-
* React should update this automatically but since the Youtube Player API
|
|
1851
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1852
|
-
*/
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
/**
|
|
1856
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1857
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1858
|
-
* Youtube Player API methods to update the video.
|
|
1825
|
+
/**
|
|
1826
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1827
|
+
*
|
|
1828
|
+
* @param {Object} event
|
|
1829
|
+
* @param {Object} target - player object
|
|
1859
1830
|
*/
|
|
1860
1831
|
|
|
1861
1832
|
}, {
|
|
1862
|
-
key:
|
|
1833
|
+
key: "render",
|
|
1863
1834
|
value: function render() {
|
|
1864
|
-
return
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1835
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1836
|
+
className: this.props.containerClassName
|
|
1837
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1838
|
+
id: this.props.id,
|
|
1839
|
+
className: this.props.className,
|
|
1840
|
+
ref: this.refContainer
|
|
1841
|
+
}));
|
|
1869
1842
|
}
|
|
1870
1843
|
}]);
|
|
1871
1844
|
|
|
1872
1845
|
return YouTube;
|
|
1873
|
-
}(
|
|
1846
|
+
}(React.Component);
|
|
1847
|
+
|
|
1848
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1849
|
+
UNSTARTED: -1,
|
|
1850
|
+
ENDED: 0,
|
|
1851
|
+
PLAYING: 1,
|
|
1852
|
+
PAUSED: 2,
|
|
1853
|
+
BUFFERING: 3,
|
|
1854
|
+
CUED: 5
|
|
1855
|
+
});
|
|
1874
1856
|
|
|
1875
1857
|
YouTube.propTypes = {
|
|
1876
1858
|
videoId: PropTypes.string,
|
|
1877
|
-
|
|
1878
1859
|
// custom ID for player element
|
|
1879
1860
|
id: PropTypes.string,
|
|
1880
|
-
|
|
1881
1861
|
// custom class name for player element
|
|
1882
1862
|
className: PropTypes.string,
|
|
1883
1863
|
// custom class name for player container element
|
|
1884
1864
|
containerClassName: PropTypes.string,
|
|
1885
|
-
|
|
1886
1865
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1887
1866
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1888
|
-
|
|
1889
1867
|
// event subscriptions
|
|
1890
1868
|
onReady: PropTypes.func,
|
|
1891
1869
|
onError: PropTypes.func,
|
|
@@ -1897,6 +1875,7 @@ YouTube.propTypes = {
|
|
|
1897
1875
|
onPlaybackQualityChange: PropTypes.func
|
|
1898
1876
|
};
|
|
1899
1877
|
YouTube.defaultProps = {
|
|
1878
|
+
videoId: null,
|
|
1900
1879
|
id: null,
|
|
1901
1880
|
className: null,
|
|
1902
1881
|
opts: {},
|
|
@@ -1910,14 +1889,6 @@ YouTube.defaultProps = {
|
|
|
1910
1889
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1911
1890
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1912
1891
|
};
|
|
1913
|
-
YouTube.PlayerState = {
|
|
1914
|
-
UNSTARTED: -1,
|
|
1915
|
-
ENDED: 0,
|
|
1916
|
-
PLAYING: 1,
|
|
1917
|
-
PAUSED: 2,
|
|
1918
|
-
BUFFERING: 3,
|
|
1919
|
-
CUED: 5
|
|
1920
|
-
};
|
|
1921
1892
|
|
|
1922
1893
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1923
1894
|
var url = _ref.url,
|
|
@@ -2019,11 +1990,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2019
1990
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
2020
1991
|
};
|
|
2021
1992
|
|
|
2022
|
-
return
|
|
1993
|
+
return React.createElement(
|
|
2023
1994
|
'div',
|
|
2024
1995
|
{ id: 'fluid-video-container' },
|
|
2025
|
-
|
|
2026
|
-
|
|
1996
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1997
|
+
React.createElement(
|
|
2027
1998
|
'style',
|
|
2028
1999
|
{ jsx: 'true' },
|
|
2029
2000
|
'\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 '
|
|
@@ -2036,20 +2007,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2036
2007
|
content = _ref.content,
|
|
2037
2008
|
getSerializers = _ref.getSerializers;
|
|
2038
2009
|
|
|
2039
|
-
return
|
|
2010
|
+
return React.createElement(
|
|
2040
2011
|
'article',
|
|
2041
2012
|
{ className: 'sidebar' },
|
|
2042
|
-
|
|
2013
|
+
React.createElement(
|
|
2043
2014
|
'div',
|
|
2044
2015
|
null,
|
|
2045
|
-
|
|
2016
|
+
React.createElement(
|
|
2046
2017
|
'h3',
|
|
2047
2018
|
null,
|
|
2048
2019
|
caption
|
|
2049
2020
|
),
|
|
2050
|
-
|
|
2021
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2051
2022
|
),
|
|
2052
|
-
|
|
2023
|
+
React.createElement(
|
|
2053
2024
|
'style',
|
|
2054
2025
|
{ jsx: 'true' },
|
|
2055
2026
|
'\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 '
|
|
@@ -2060,18 +2031,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2060
2031
|
var TableShow = function TableShow(_ref) {
|
|
2061
2032
|
var rows = _ref.rows;
|
|
2062
2033
|
|
|
2063
|
-
return
|
|
2034
|
+
return React.createElement(
|
|
2064
2035
|
Table,
|
|
2065
2036
|
{ bordered: true, hover: true, responsive: true },
|
|
2066
|
-
|
|
2037
|
+
React.createElement(
|
|
2067
2038
|
'tbody',
|
|
2068
2039
|
null,
|
|
2069
2040
|
rows && rows.map(function (row) {
|
|
2070
|
-
return
|
|
2041
|
+
return React.createElement(
|
|
2071
2042
|
'tr',
|
|
2072
2043
|
{ key: row._key },
|
|
2073
2044
|
row.cells && row.cells.map(function (cell, index) {
|
|
2074
|
-
return cell &&
|
|
2045
|
+
return cell && React.createElement(
|
|
2075
2046
|
'td',
|
|
2076
2047
|
{ key: index },
|
|
2077
2048
|
cell
|
|
@@ -2083,27 +2054,6 @@ var TableShow = function TableShow(_ref) {
|
|
|
2083
2054
|
);
|
|
2084
2055
|
};
|
|
2085
2056
|
|
|
2086
|
-
var urlForFile = function urlForFile(_ref) {
|
|
2087
|
-
var _ref$asset = _ref.asset,
|
|
2088
|
-
asset = _ref$asset === undefined ? {} : _ref$asset;
|
|
2089
|
-
var url = asset.url,
|
|
2090
|
-
originalFilename = asset.originalFilename;
|
|
2091
|
-
|
|
2092
|
-
// Appending file name in URL
|
|
2093
|
-
|
|
2094
|
-
if (url && originalFilename) {
|
|
2095
|
-
var _url$split = url.split('?'),
|
|
2096
|
-
_url$split2 = _slicedToArray(_url$split, 2),
|
|
2097
|
-
path = _url$split2[0],
|
|
2098
|
-
queryString = _url$split2[1];
|
|
2099
|
-
|
|
2100
|
-
originalFilename = encodeURIComponent(originalFilename);
|
|
2101
|
-
url = queryString ? path + '/' + originalFilename + '?' + queryString : path + '/' + originalFilename;
|
|
2102
|
-
}
|
|
2103
|
-
|
|
2104
|
-
return url;
|
|
2105
|
-
};
|
|
2106
|
-
|
|
2107
2057
|
var Media = function Media(_ref) {
|
|
2108
2058
|
var node = _ref.node,
|
|
2109
2059
|
client = _ref.client;
|
|
@@ -2190,25 +2140,25 @@ var Media = function Media(_ref) {
|
|
|
2190
2140
|
margin: imageMargin
|
|
2191
2141
|
};
|
|
2192
2142
|
|
|
2193
|
-
return
|
|
2143
|
+
return React.createElement(
|
|
2194
2144
|
Figure$1,
|
|
2195
2145
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2196
|
-
|
|
2146
|
+
React.createElement(
|
|
2197
2147
|
'a',
|
|
2198
|
-
{ href:
|
|
2199
|
-
|
|
2148
|
+
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2149
|
+
React.createElement(
|
|
2200
2150
|
LazyLoad,
|
|
2201
2151
|
{ once: true },
|
|
2202
|
-
|
|
2152
|
+
React.createElement(
|
|
2203
2153
|
'picture',
|
|
2204
2154
|
null,
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2155
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2156
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2157
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2158
|
+
React.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2209
2159
|
)
|
|
2210
2160
|
),
|
|
2211
|
-
caption &&
|
|
2161
|
+
caption && React.createElement(
|
|
2212
2162
|
Figure$1.Caption,
|
|
2213
2163
|
{ className: 'media-caption' },
|
|
2214
2164
|
caption
|
|
@@ -2216,9 +2166,9 @@ var Media = function Media(_ref) {
|
|
|
2216
2166
|
)
|
|
2217
2167
|
);
|
|
2218
2168
|
} else if (caption && caption !== '') {
|
|
2219
|
-
return
|
|
2169
|
+
return React.createElement(
|
|
2220
2170
|
'a',
|
|
2221
|
-
_extends
|
|
2171
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2222
2172
|
href: uploadDoc.asset.url + '?dl='
|
|
2223
2173
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2224
2174
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2236,10 +2186,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2236
2186
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2237
2187
|
|
|
2238
2188
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2239
|
-
return
|
|
2189
|
+
return React.createElement(
|
|
2240
2190
|
'div',
|
|
2241
2191
|
{ className: 'd-block text-center mb-3' },
|
|
2242
|
-
|
|
2192
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2243
2193
|
);
|
|
2244
2194
|
};
|
|
2245
2195
|
|
|
@@ -2334,10 +2284,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2334
2284
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2335
2285
|
};
|
|
2336
2286
|
|
|
2337
|
-
return
|
|
2287
|
+
return React.createElement(
|
|
2338
2288
|
'div',
|
|
2339
2289
|
null,
|
|
2340
|
-
vidLoaded &&
|
|
2290
|
+
vidLoaded && React.createElement(
|
|
2341
2291
|
'video',
|
|
2342
2292
|
{
|
|
2343
2293
|
poster: thumbnail || '',
|
|
@@ -2355,7 +2305,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2355
2305
|
onPlay: function onPlay(e) {
|
|
2356
2306
|
return handleOnPlay(e);
|
|
2357
2307
|
} },
|
|
2358
|
-
|
|
2308
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2359
2309
|
'Your browser does not support the video tag.'
|
|
2360
2310
|
)
|
|
2361
2311
|
);
|
|
@@ -2392,7 +2342,7 @@ var Video = function Video(_ref) {
|
|
|
2392
2342
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2393
2343
|
//console.log('success:', success.ref)
|
|
2394
2344
|
var player = success.ref;
|
|
2395
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2345
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2396
2346
|
player.ima3.settings.debug = true;
|
|
2397
2347
|
if (targeting.content_placement && targeting.document_url) {
|
|
2398
2348
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2490,53 +2440,53 @@ var Video = function Video(_ref) {
|
|
|
2490
2440
|
|
|
2491
2441
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2492
2442
|
if (videoID) {
|
|
2493
|
-
return
|
|
2443
|
+
return React.createElement(
|
|
2494
2444
|
'div',
|
|
2495
2445
|
null,
|
|
2496
|
-
|
|
2446
|
+
React.createElement(ReactPlayerLoader, {
|
|
2497
2447
|
onSuccess: onVideoSuccess,
|
|
2498
2448
|
accountId: accountIDs.brightcove.accountId,
|
|
2499
2449
|
videoId: videoID,
|
|
2500
2450
|
playerId: accountIDs.brightcove.playerId,
|
|
2501
2451
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2502
2452
|
}),
|
|
2503
|
-
|
|
2453
|
+
React.createElement(
|
|
2504
2454
|
'style',
|
|
2505
2455
|
{ jsx: 'true' },
|
|
2506
2456
|
'\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 '
|
|
2507
2457
|
)
|
|
2508
2458
|
);
|
|
2509
2459
|
} else if (playlistID) {
|
|
2510
|
-
return
|
|
2460
|
+
return React.createElement(
|
|
2511
2461
|
'div',
|
|
2512
2462
|
null,
|
|
2513
|
-
|
|
2463
|
+
React.createElement(ReactPlayerLoader, {
|
|
2514
2464
|
accountId: accountIDs.brightcove.accountId,
|
|
2515
2465
|
playlistId: playlistID,
|
|
2516
2466
|
playerId: accountIDs.brightcove.playerId,
|
|
2517
2467
|
onSuccess: onVideoSuccess,
|
|
2518
2468
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2519
2469
|
}),
|
|
2520
|
-
|
|
2470
|
+
React.createElement(
|
|
2521
2471
|
'style',
|
|
2522
2472
|
{ jsx: 'true' },
|
|
2523
2473
|
'\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 '
|
|
2524
2474
|
)
|
|
2525
2475
|
);
|
|
2526
2476
|
} else if (experienceID) {
|
|
2527
|
-
return
|
|
2477
|
+
return React.createElement(
|
|
2528
2478
|
'div',
|
|
2529
2479
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2530
|
-
videoLoaded &&
|
|
2480
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2531
2481
|
);
|
|
2532
2482
|
}
|
|
2533
2483
|
return null;
|
|
2534
2484
|
}
|
|
2535
2485
|
if (source === 'mp4') {
|
|
2536
|
-
return
|
|
2486
|
+
return React.createElement(
|
|
2537
2487
|
'div',
|
|
2538
2488
|
null,
|
|
2539
|
-
|
|
2489
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2540
2490
|
);
|
|
2541
2491
|
}
|
|
2542
2492
|
|
|
@@ -2914,11 +2864,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2914
2864
|
|
|
2915
2865
|
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; }
|
|
2916
2866
|
|
|
2917
|
-
function
|
|
2867
|
+
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; } } }; }
|
|
2868
|
+
|
|
2869
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2870
|
+
|
|
2871
|
+
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."); }
|
|
2872
|
+
|
|
2873
|
+
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); }
|
|
2918
2874
|
|
|
2919
|
-
function
|
|
2875
|
+
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; }
|
|
2920
2876
|
|
|
2921
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
2877
|
+
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; }
|
|
2922
2878
|
|
|
2923
2879
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2924
2880
|
|
|
@@ -3048,12 +3004,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3048
3004
|
|
|
3049
3005
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3050
3006
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3051
|
-
|
|
3052
|
-
var
|
|
3053
|
-
|
|
3007
|
+
|
|
3008
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3009
|
+
_step;
|
|
3054
3010
|
|
|
3055
3011
|
try {
|
|
3056
|
-
for (
|
|
3012
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3057
3013
|
var p = _step.value;
|
|
3058
3014
|
|
|
3059
3015
|
if (props$1[p]) {
|
|
@@ -3068,18 +3024,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3068
3024
|
}
|
|
3069
3025
|
}
|
|
3070
3026
|
} catch (err) {
|
|
3071
|
-
|
|
3072
|
-
_iteratorError = err;
|
|
3027
|
+
_iterator.e(err);
|
|
3073
3028
|
} finally {
|
|
3074
|
-
|
|
3075
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3076
|
-
_iterator["return"]();
|
|
3077
|
-
}
|
|
3078
|
-
} finally {
|
|
3079
|
-
if (_didIteratorError) {
|
|
3080
|
-
throw _iteratorError;
|
|
3081
|
-
}
|
|
3082
|
-
}
|
|
3029
|
+
_iterator.f();
|
|
3083
3030
|
}
|
|
3084
3031
|
|
|
3085
3032
|
return config;
|
|
@@ -3144,7 +3091,7 @@ function isEqual(a, b) {
|
|
|
3144
3091
|
return true;
|
|
3145
3092
|
}
|
|
3146
3093
|
|
|
3147
|
-
if ((0,
|
|
3094
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3148
3095
|
return true;
|
|
3149
3096
|
}
|
|
3150
3097
|
|
|
@@ -3206,7 +3153,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3206
3153
|
});
|
|
3207
3154
|
exports["default"] = void 0;
|
|
3208
3155
|
|
|
3209
|
-
var _react = _interopRequireWildcard(
|
|
3156
|
+
var _react = _interopRequireWildcard(React);
|
|
3210
3157
|
|
|
3211
3158
|
|
|
3212
3159
|
|
|
@@ -3226,12 +3173,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3226
3173
|
|
|
3227
3174
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3228
3175
|
|
|
3229
|
-
function
|
|
3176
|
+
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); }; }
|
|
3230
3177
|
|
|
3231
|
-
function
|
|
3178
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3232
3179
|
|
|
3233
3180
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3234
3181
|
|
|
3182
|
+
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; } }
|
|
3183
|
+
|
|
3184
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3185
|
+
|
|
3235
3186
|
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); }
|
|
3236
3187
|
|
|
3237
3188
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3240,14 +3191,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3240
3191
|
|
|
3241
3192
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3242
3193
|
|
|
3243
|
-
var Player =
|
|
3244
|
-
/*#__PURE__*/
|
|
3245
|
-
function (_Component) {
|
|
3194
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3246
3195
|
_inherits(Player, _Component);
|
|
3247
3196
|
|
|
3248
|
-
|
|
3249
|
-
var _getPrototypeOf2;
|
|
3197
|
+
var _super = _createSuper(Player);
|
|
3250
3198
|
|
|
3199
|
+
function Player() {
|
|
3251
3200
|
var _this;
|
|
3252
3201
|
|
|
3253
3202
|
_classCallCheck(this, Player);
|
|
@@ -3256,7 +3205,7 @@ function (_Component) {
|
|
|
3256
3205
|
_args[_key] = arguments[_key];
|
|
3257
3206
|
}
|
|
3258
3207
|
|
|
3259
|
-
_this =
|
|
3208
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3260
3209
|
|
|
3261
3210
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3262
3211
|
|
|
@@ -3581,7 +3530,7 @@ function (_Component) {
|
|
|
3581
3530
|
return null;
|
|
3582
3531
|
}
|
|
3583
3532
|
|
|
3584
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3533
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3585
3534
|
ref: this.ref,
|
|
3586
3535
|
onReady: this.handleReady,
|
|
3587
3536
|
onPlay: this.handlePlay,
|
|
@@ -3614,7 +3563,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3614
3563
|
});
|
|
3615
3564
|
exports["default"] = createSinglePlayer;
|
|
3616
3565
|
|
|
3617
|
-
var _react = _interopRequireWildcard(
|
|
3566
|
+
var _react = _interopRequireWildcard(React);
|
|
3618
3567
|
|
|
3619
3568
|
|
|
3620
3569
|
|
|
@@ -3642,12 +3591,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3642
3591
|
|
|
3643
3592
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3644
3593
|
|
|
3645
|
-
function
|
|
3594
|
+
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); }; }
|
|
3646
3595
|
|
|
3647
|
-
function
|
|
3596
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3648
3597
|
|
|
3649
3598
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3650
3599
|
|
|
3600
|
+
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; } }
|
|
3601
|
+
|
|
3602
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3603
|
+
|
|
3651
3604
|
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); }
|
|
3652
3605
|
|
|
3653
3606
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3659,14 +3612,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3659
3612
|
function createSinglePlayer(activePlayer) {
|
|
3660
3613
|
var _class, _temp;
|
|
3661
3614
|
|
|
3662
|
-
return _temp = _class =
|
|
3663
|
-
/*#__PURE__*/
|
|
3664
|
-
function (_Component) {
|
|
3615
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3665
3616
|
_inherits(SinglePlayer, _Component);
|
|
3666
3617
|
|
|
3667
|
-
|
|
3668
|
-
var _getPrototypeOf2;
|
|
3618
|
+
var _super = _createSuper(SinglePlayer);
|
|
3669
3619
|
|
|
3620
|
+
function SinglePlayer() {
|
|
3670
3621
|
var _this;
|
|
3671
3622
|
|
|
3672
3623
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3675,7 +3626,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3675
3626
|
args[_key] = arguments[_key];
|
|
3676
3627
|
}
|
|
3677
3628
|
|
|
3678
|
-
_this =
|
|
3629
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3679
3630
|
|
|
3680
3631
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3681
3632
|
|
|
@@ -3743,12 +3694,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3743
3694
|
height = _this$props.height,
|
|
3744
3695
|
Wrapper = _this$props.wrapper;
|
|
3745
3696
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3746
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3697
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3747
3698
|
style: _objectSpread({}, style, {
|
|
3748
3699
|
width: width,
|
|
3749
3700
|
height: height
|
|
3750
3701
|
})
|
|
3751
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3702
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3752
3703
|
ref: this.ref,
|
|
3753
3704
|
activePlayer: activePlayer,
|
|
3754
3705
|
config: this.config
|
|
@@ -3770,7 +3721,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3770
3721
|
});
|
|
3771
3722
|
exports["default"] = exports.YouTube = void 0;
|
|
3772
3723
|
|
|
3773
|
-
var _react = _interopRequireWildcard(
|
|
3724
|
+
var _react = _interopRequireWildcard(React);
|
|
3774
3725
|
|
|
3775
3726
|
|
|
3776
3727
|
|
|
@@ -3794,23 +3745,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3794
3745
|
|
|
3795
3746
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3796
3747
|
|
|
3797
|
-
function
|
|
3748
|
+
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); }; }
|
|
3798
3749
|
|
|
3799
|
-
function
|
|
3750
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3800
3751
|
|
|
3801
3752
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3802
3753
|
|
|
3754
|
+
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; } }
|
|
3755
|
+
|
|
3756
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3757
|
+
|
|
3803
3758
|
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); }
|
|
3804
3759
|
|
|
3805
3760
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3806
3761
|
|
|
3807
3762
|
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; }
|
|
3808
3763
|
|
|
3809
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3764
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3810
3765
|
|
|
3811
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3766
|
+
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."); }
|
|
3812
3767
|
|
|
3813
|
-
function
|
|
3768
|
+
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); }
|
|
3769
|
+
|
|
3770
|
+
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; }
|
|
3771
|
+
|
|
3772
|
+
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; }
|
|
3814
3773
|
|
|
3815
3774
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3816
3775
|
|
|
@@ -3835,14 +3794,12 @@ function parsePlaylist(url) {
|
|
|
3835
3794
|
return {};
|
|
3836
3795
|
}
|
|
3837
3796
|
|
|
3838
|
-
var YouTube =
|
|
3839
|
-
/*#__PURE__*/
|
|
3840
|
-
function (_Component) {
|
|
3797
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3841
3798
|
_inherits(YouTube, _Component);
|
|
3842
3799
|
|
|
3843
|
-
|
|
3844
|
-
var _getPrototypeOf2;
|
|
3800
|
+
var _super = _createSuper(YouTube);
|
|
3845
3801
|
|
|
3802
|
+
function YouTube() {
|
|
3846
3803
|
var _this;
|
|
3847
3804
|
|
|
3848
3805
|
_classCallCheck(this, YouTube);
|
|
@@ -3851,7 +3808,7 @@ function (_Component) {
|
|
|
3851
3808
|
args[_key] = arguments[_key];
|
|
3852
3809
|
}
|
|
3853
3810
|
|
|
3854
|
-
_this =
|
|
3811
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3855
3812
|
|
|
3856
3813
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3857
3814
|
|
|
@@ -4039,9 +3996,9 @@ function (_Component) {
|
|
|
4039
3996
|
height: '100%',
|
|
4040
3997
|
display: display
|
|
4041
3998
|
};
|
|
4042
|
-
return _react["default"].createElement("div", {
|
|
3999
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4043
4000
|
style: style
|
|
4044
|
-
}, _react["default"].createElement("div", {
|
|
4001
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4045
4002
|
ref: this.ref
|
|
4046
4003
|
}));
|
|
4047
4004
|
}
|
|
@@ -4073,7 +4030,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4073
4030
|
});
|
|
4074
4031
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4075
4032
|
|
|
4076
|
-
var _react = _interopRequireWildcard(
|
|
4033
|
+
var _react = _interopRequireWildcard(React);
|
|
4077
4034
|
|
|
4078
4035
|
|
|
4079
4036
|
|
|
@@ -4097,12 +4054,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4097
4054
|
|
|
4098
4055
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4099
4056
|
|
|
4100
|
-
function
|
|
4057
|
+
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); }; }
|
|
4101
4058
|
|
|
4102
|
-
function
|
|
4059
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4103
4060
|
|
|
4104
4061
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4105
4062
|
|
|
4063
|
+
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; } }
|
|
4064
|
+
|
|
4065
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4066
|
+
|
|
4106
4067
|
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); }
|
|
4107
4068
|
|
|
4108
4069
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4111,16 +4072,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4111
4072
|
|
|
4112
4073
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4113
4074
|
var SDK_GLOBAL = 'SC';
|
|
4114
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4075
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4115
4076
|
|
|
4116
|
-
var SoundCloud =
|
|
4117
|
-
/*#__PURE__*/
|
|
4118
|
-
function (_Component) {
|
|
4077
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4119
4078
|
_inherits(SoundCloud, _Component);
|
|
4120
4079
|
|
|
4121
|
-
|
|
4122
|
-
var _getPrototypeOf2;
|
|
4080
|
+
var _super = _createSuper(SoundCloud);
|
|
4123
4081
|
|
|
4082
|
+
function SoundCloud() {
|
|
4124
4083
|
var _this;
|
|
4125
4084
|
|
|
4126
4085
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4129,7 +4088,7 @@ function (_Component) {
|
|
|
4129
4088
|
args[_key] = arguments[_key];
|
|
4130
4089
|
}
|
|
4131
4090
|
|
|
4132
|
-
_this =
|
|
4091
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4133
4092
|
|
|
4134
4093
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4135
4094
|
|
|
@@ -4250,7 +4209,7 @@ function (_Component) {
|
|
|
4250
4209
|
height: '100%',
|
|
4251
4210
|
display: display
|
|
4252
4211
|
};
|
|
4253
|
-
return _react["default"].createElement("iframe", {
|
|
4212
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4254
4213
|
ref: this.ref,
|
|
4255
4214
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4256
4215
|
style: style,
|
|
@@ -4288,7 +4247,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4288
4247
|
});
|
|
4289
4248
|
exports["default"] = exports.Vimeo = void 0;
|
|
4290
4249
|
|
|
4291
|
-
var _react = _interopRequireWildcard(
|
|
4250
|
+
var _react = _interopRequireWildcard(React);
|
|
4292
4251
|
|
|
4293
4252
|
|
|
4294
4253
|
|
|
@@ -4312,12 +4271,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4312
4271
|
|
|
4313
4272
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4314
4273
|
|
|
4315
|
-
function
|
|
4274
|
+
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); }; }
|
|
4316
4275
|
|
|
4317
|
-
function
|
|
4276
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4318
4277
|
|
|
4319
4278
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4320
4279
|
|
|
4280
|
+
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; } }
|
|
4281
|
+
|
|
4282
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4283
|
+
|
|
4321
4284
|
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); }
|
|
4322
4285
|
|
|
4323
4286
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4329,14 +4292,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4329
4292
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4330
4293
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4331
4294
|
|
|
4332
|
-
var Vimeo =
|
|
4333
|
-
/*#__PURE__*/
|
|
4334
|
-
function (_Component) {
|
|
4295
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4335
4296
|
_inherits(Vimeo, _Component);
|
|
4336
4297
|
|
|
4337
|
-
|
|
4338
|
-
var _getPrototypeOf2;
|
|
4298
|
+
var _super = _createSuper(Vimeo);
|
|
4339
4299
|
|
|
4300
|
+
function Vimeo() {
|
|
4340
4301
|
var _this;
|
|
4341
4302
|
|
|
4342
4303
|
_classCallCheck(this, Vimeo);
|
|
@@ -4345,7 +4306,7 @@ function (_Component) {
|
|
|
4345
4306
|
args[_key] = arguments[_key];
|
|
4346
4307
|
}
|
|
4347
4308
|
|
|
4348
|
-
_this =
|
|
4309
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4349
4310
|
|
|
4350
4311
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4351
4312
|
|
|
@@ -4502,7 +4463,7 @@ function (_Component) {
|
|
|
4502
4463
|
overflow: 'hidden',
|
|
4503
4464
|
display: display
|
|
4504
4465
|
};
|
|
4505
|
-
return _react["default"].createElement("div", {
|
|
4466
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4506
4467
|
key: this.props.url,
|
|
4507
4468
|
ref: this.ref,
|
|
4508
4469
|
style: style
|
|
@@ -4542,7 +4503,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4542
4503
|
});
|
|
4543
4504
|
exports["default"] = exports.Facebook = void 0;
|
|
4544
4505
|
|
|
4545
|
-
var _react = _interopRequireWildcard(
|
|
4506
|
+
var _react = _interopRequireWildcard(React);
|
|
4546
4507
|
|
|
4547
4508
|
|
|
4548
4509
|
|
|
@@ -4562,12 +4523,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4562
4523
|
|
|
4563
4524
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4564
4525
|
|
|
4565
|
-
function
|
|
4526
|
+
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); }; }
|
|
4566
4527
|
|
|
4567
|
-
function
|
|
4528
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4568
4529
|
|
|
4569
4530
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4570
4531
|
|
|
4532
|
+
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; } }
|
|
4533
|
+
|
|
4534
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4535
|
+
|
|
4571
4536
|
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); }
|
|
4572
4537
|
|
|
4573
4538
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4580,14 +4545,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4580
4545
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4581
4546
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4582
4547
|
|
|
4583
|
-
var Facebook =
|
|
4584
|
-
/*#__PURE__*/
|
|
4585
|
-
function (_Component) {
|
|
4548
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4586
4549
|
_inherits(Facebook, _Component);
|
|
4587
4550
|
|
|
4588
|
-
|
|
4589
|
-
var _getPrototypeOf2;
|
|
4551
|
+
var _super = _createSuper(Facebook);
|
|
4590
4552
|
|
|
4553
|
+
function Facebook() {
|
|
4591
4554
|
var _this;
|
|
4592
4555
|
|
|
4593
4556
|
_classCallCheck(this, Facebook);
|
|
@@ -4596,7 +4559,7 @@ function (_Component) {
|
|
|
4596
4559
|
args[_key] = arguments[_key];
|
|
4597
4560
|
}
|
|
4598
4561
|
|
|
4599
|
-
_this =
|
|
4562
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4600
4563
|
|
|
4601
4564
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4602
4565
|
|
|
@@ -4712,7 +4675,7 @@ function (_Component) {
|
|
|
4712
4675
|
width: '100%',
|
|
4713
4676
|
height: '100%'
|
|
4714
4677
|
};
|
|
4715
|
-
return _react["default"].createElement("div", {
|
|
4678
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4716
4679
|
style: style,
|
|
4717
4680
|
id: this.playerID,
|
|
4718
4681
|
className: "fb-video",
|
|
@@ -4752,7 +4715,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4752
4715
|
});
|
|
4753
4716
|
exports["default"] = exports.Streamable = void 0;
|
|
4754
4717
|
|
|
4755
|
-
var _react = _interopRequireWildcard(
|
|
4718
|
+
var _react = _interopRequireWildcard(React);
|
|
4756
4719
|
|
|
4757
4720
|
|
|
4758
4721
|
|
|
@@ -4772,12 +4735,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4772
4735
|
|
|
4773
4736
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4774
4737
|
|
|
4775
|
-
function
|
|
4738
|
+
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); }; }
|
|
4776
4739
|
|
|
4777
|
-
function
|
|
4740
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4778
4741
|
|
|
4779
4742
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4780
4743
|
|
|
4744
|
+
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; } }
|
|
4745
|
+
|
|
4746
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4747
|
+
|
|
4781
4748
|
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); }
|
|
4782
4749
|
|
|
4783
4750
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4788,14 +4755,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4788
4755
|
var SDK_GLOBAL = 'playerjs';
|
|
4789
4756
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4790
4757
|
|
|
4791
|
-
var Streamable =
|
|
4792
|
-
/*#__PURE__*/
|
|
4793
|
-
function (_Component) {
|
|
4758
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4794
4759
|
_inherits(Streamable, _Component);
|
|
4795
4760
|
|
|
4796
|
-
|
|
4797
|
-
var _getPrototypeOf2;
|
|
4761
|
+
var _super = _createSuper(Streamable);
|
|
4798
4762
|
|
|
4763
|
+
function Streamable() {
|
|
4799
4764
|
var _this;
|
|
4800
4765
|
|
|
4801
4766
|
_classCallCheck(this, Streamable);
|
|
@@ -4804,7 +4769,7 @@ function (_Component) {
|
|
|
4804
4769
|
args[_key] = arguments[_key];
|
|
4805
4770
|
}
|
|
4806
4771
|
|
|
4807
|
-
_this =
|
|
4772
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4808
4773
|
|
|
4809
4774
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4810
4775
|
|
|
@@ -4924,7 +4889,7 @@ function (_Component) {
|
|
|
4924
4889
|
width: '100%',
|
|
4925
4890
|
height: '100%'
|
|
4926
4891
|
};
|
|
4927
|
-
return _react["default"].createElement("iframe", {
|
|
4892
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4928
4893
|
ref: this.ref,
|
|
4929
4894
|
src: "https://streamable.com/o/".concat(id),
|
|
4930
4895
|
frameBorder: "0",
|
|
@@ -4961,7 +4926,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4961
4926
|
});
|
|
4962
4927
|
exports["default"] = exports.Wistia = void 0;
|
|
4963
4928
|
|
|
4964
|
-
var _react = _interopRequireWildcard(
|
|
4929
|
+
var _react = _interopRequireWildcard(React);
|
|
4965
4930
|
|
|
4966
4931
|
|
|
4967
4932
|
|
|
@@ -4985,12 +4950,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4985
4950
|
|
|
4986
4951
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4987
4952
|
|
|
4988
|
-
function
|
|
4953
|
+
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); }; }
|
|
4989
4954
|
|
|
4990
|
-
function
|
|
4955
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4991
4956
|
|
|
4992
4957
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4993
4958
|
|
|
4959
|
+
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; } }
|
|
4960
|
+
|
|
4961
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4962
|
+
|
|
4994
4963
|
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); }
|
|
4995
4964
|
|
|
4996
4965
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5001,26 +4970,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
5001
4970
|
var SDK_GLOBAL = 'Wistia';
|
|
5002
4971
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
5003
4972
|
|
|
5004
|
-
var Wistia =
|
|
5005
|
-
/*#__PURE__*/
|
|
5006
|
-
function (_Component) {
|
|
4973
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
5007
4974
|
_inherits(Wistia, _Component);
|
|
5008
4975
|
|
|
5009
|
-
|
|
5010
|
-
var _getPrototypeOf2;
|
|
4976
|
+
var _super = _createSuper(Wistia);
|
|
5011
4977
|
|
|
4978
|
+
function Wistia() {
|
|
5012
4979
|
var _this;
|
|
5013
4980
|
|
|
5014
4981
|
_classCallCheck(this, Wistia);
|
|
5015
4982
|
|
|
5016
|
-
for (var _len = arguments.length,
|
|
5017
|
-
|
|
4983
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4984
|
+
_args[_key] = arguments[_key];
|
|
5018
4985
|
}
|
|
5019
4986
|
|
|
5020
|
-
_this =
|
|
4987
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5021
4988
|
|
|
5022
4989
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5023
4990
|
|
|
4991
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4992
|
+
var _this$props;
|
|
4993
|
+
|
|
4994
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4995
|
+
});
|
|
4996
|
+
|
|
4997
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4998
|
+
var _this$props2;
|
|
4999
|
+
|
|
5000
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5001
|
+
});
|
|
5002
|
+
|
|
5003
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5004
|
+
var _this$props3;
|
|
5005
|
+
|
|
5006
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5007
|
+
});
|
|
5008
|
+
|
|
5009
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5010
|
+
var _this$props4;
|
|
5011
|
+
|
|
5012
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5013
|
+
});
|
|
5014
|
+
|
|
5024
5015
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5025
5016
|
_this.callPlayer('mute');
|
|
5026
5017
|
});
|
|
@@ -5042,17 +5033,13 @@ function (_Component) {
|
|
|
5042
5033
|
value: function load(url) {
|
|
5043
5034
|
var _this2 = this;
|
|
5044
5035
|
|
|
5045
|
-
var _this$
|
|
5046
|
-
playing = _this$
|
|
5047
|
-
muted = _this$
|
|
5048
|
-
controls = _this$
|
|
5049
|
-
_onReady = _this$
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
onSeek = _this$props.onSeek,
|
|
5053
|
-
onEnded = _this$props.onEnded,
|
|
5054
|
-
config = _this$props.config,
|
|
5055
|
-
onError = _this$props.onError;
|
|
5036
|
+
var _this$props5 = this.props,
|
|
5037
|
+
playing = _this$props5.playing,
|
|
5038
|
+
muted = _this$props5.muted,
|
|
5039
|
+
controls = _this$props5.controls,
|
|
5040
|
+
_onReady = _this$props5.onReady,
|
|
5041
|
+
config = _this$props5.config,
|
|
5042
|
+
onError = _this$props5.onError;
|
|
5056
5043
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5057
5044
|
window._wq = window._wq || [];
|
|
5058
5045
|
|
|
@@ -5069,19 +5056,28 @@ function (_Component) {
|
|
|
5069
5056
|
|
|
5070
5057
|
_this2.unbind();
|
|
5071
5058
|
|
|
5072
|
-
_this2.player.bind('play', onPlay);
|
|
5059
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5073
5060
|
|
|
5074
|
-
_this2.player.bind('pause', onPause);
|
|
5061
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5075
5062
|
|
|
5076
|
-
_this2.player.bind('seek', onSeek);
|
|
5063
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5077
5064
|
|
|
5078
|
-
_this2.player.bind('end', onEnded);
|
|
5065
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5079
5066
|
|
|
5080
5067
|
_onReady();
|
|
5081
5068
|
}
|
|
5082
5069
|
});
|
|
5083
5070
|
}, onError);
|
|
5084
5071
|
}
|
|
5072
|
+
}, {
|
|
5073
|
+
key: "unbind",
|
|
5074
|
+
value: function unbind() {
|
|
5075
|
+
this.player.unbind('play', this.onPlay);
|
|
5076
|
+
this.player.unbind('pause', this.onPause);
|
|
5077
|
+
this.player.unbind('seek', this.onSeek);
|
|
5078
|
+
this.player.unbind('end', this.onEnded);
|
|
5079
|
+
} // Proxy methods to prevent listener leaks
|
|
5080
|
+
|
|
5085
5081
|
}, {
|
|
5086
5082
|
key: "play",
|
|
5087
5083
|
value: function play() {
|
|
@@ -5092,19 +5088,6 @@ function (_Component) {
|
|
|
5092
5088
|
value: function pause() {
|
|
5093
5089
|
this.callPlayer('pause');
|
|
5094
5090
|
}
|
|
5095
|
-
}, {
|
|
5096
|
-
key: "unbind",
|
|
5097
|
-
value: function unbind() {
|
|
5098
|
-
var _this$props2 = this.props,
|
|
5099
|
-
onPlay = _this$props2.onPlay,
|
|
5100
|
-
onPause = _this$props2.onPause,
|
|
5101
|
-
onSeek = _this$props2.onSeek,
|
|
5102
|
-
onEnded = _this$props2.onEnded;
|
|
5103
|
-
this.player.unbind('play', onPlay);
|
|
5104
|
-
this.player.unbind('pause', onPause);
|
|
5105
|
-
this.player.unbind('seek', onSeek);
|
|
5106
|
-
this.player.unbind('end', onEnded);
|
|
5107
|
-
}
|
|
5108
5091
|
}, {
|
|
5109
5092
|
key: "stop",
|
|
5110
5093
|
value: function stop() {
|
|
@@ -5150,7 +5133,7 @@ function (_Component) {
|
|
|
5150
5133
|
width: '100%',
|
|
5151
5134
|
height: '100%'
|
|
5152
5135
|
};
|
|
5153
|
-
return _react["default"].createElement("div", {
|
|
5136
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5154
5137
|
key: id,
|
|
5155
5138
|
className: className,
|
|
5156
5139
|
style: style
|
|
@@ -5186,7 +5169,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5186
5169
|
});
|
|
5187
5170
|
exports["default"] = exports.Twitch = void 0;
|
|
5188
5171
|
|
|
5189
|
-
var _react = _interopRequireWildcard(
|
|
5172
|
+
var _react = _interopRequireWildcard(React);
|
|
5190
5173
|
|
|
5191
5174
|
|
|
5192
5175
|
|
|
@@ -5210,12 +5193,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5210
5193
|
|
|
5211
5194
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5212
5195
|
|
|
5213
|
-
function
|
|
5196
|
+
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); }; }
|
|
5214
5197
|
|
|
5215
|
-
function
|
|
5198
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5216
5199
|
|
|
5217
5200
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5218
5201
|
|
|
5202
|
+
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; } }
|
|
5203
|
+
|
|
5204
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5205
|
+
|
|
5219
5206
|
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); }
|
|
5220
5207
|
|
|
5221
5208
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5228,14 +5215,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5228
5215
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5229
5216
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5230
5217
|
|
|
5231
|
-
var Twitch =
|
|
5232
|
-
/*#__PURE__*/
|
|
5233
|
-
function (_Component) {
|
|
5218
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5234
5219
|
_inherits(Twitch, _Component);
|
|
5235
5220
|
|
|
5236
|
-
|
|
5237
|
-
var _getPrototypeOf2;
|
|
5221
|
+
var _super = _createSuper(Twitch);
|
|
5238
5222
|
|
|
5223
|
+
function Twitch() {
|
|
5239
5224
|
var _this;
|
|
5240
5225
|
|
|
5241
5226
|
_classCallCheck(this, Twitch);
|
|
@@ -5244,7 +5229,7 @@ function (_Component) {
|
|
|
5244
5229
|
args[_key] = arguments[_key];
|
|
5245
5230
|
}
|
|
5246
5231
|
|
|
5247
|
-
_this =
|
|
5232
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5248
5233
|
|
|
5249
5234
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5250
5235
|
|
|
@@ -5365,7 +5350,7 @@ function (_Component) {
|
|
|
5365
5350
|
width: '100%',
|
|
5366
5351
|
height: '100%'
|
|
5367
5352
|
};
|
|
5368
|
-
return _react["default"].createElement("div", {
|
|
5353
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5369
5354
|
style: style,
|
|
5370
5355
|
id: this.playerID
|
|
5371
5356
|
});
|
|
@@ -5400,7 +5385,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5400
5385
|
});
|
|
5401
5386
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5402
5387
|
|
|
5403
|
-
var _react = _interopRequireWildcard(
|
|
5388
|
+
var _react = _interopRequireWildcard(React);
|
|
5404
5389
|
|
|
5405
5390
|
|
|
5406
5391
|
|
|
@@ -5418,11 +5403,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5418
5403
|
|
|
5419
5404
|
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; }
|
|
5420
5405
|
|
|
5421
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5406
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5407
|
+
|
|
5408
|
+
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."); }
|
|
5422
5409
|
|
|
5423
|
-
function
|
|
5410
|
+
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); }
|
|
5424
5411
|
|
|
5425
|
-
function
|
|
5412
|
+
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; }
|
|
5413
|
+
|
|
5414
|
+
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; }
|
|
5426
5415
|
|
|
5427
5416
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5428
5417
|
|
|
@@ -5432,12 +5421,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5432
5421
|
|
|
5433
5422
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5434
5423
|
|
|
5435
|
-
function
|
|
5424
|
+
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); }; }
|
|
5436
5425
|
|
|
5437
|
-
function
|
|
5426
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5438
5427
|
|
|
5439
5428
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5440
5429
|
|
|
5430
|
+
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; } }
|
|
5431
|
+
|
|
5432
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5433
|
+
|
|
5441
5434
|
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); }
|
|
5442
5435
|
|
|
5443
5436
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5449,14 +5442,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5449
5442
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5450
5443
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5451
5444
|
|
|
5452
|
-
var DailyMotion =
|
|
5453
|
-
/*#__PURE__*/
|
|
5454
|
-
function (_Component) {
|
|
5445
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5455
5446
|
_inherits(DailyMotion, _Component);
|
|
5456
5447
|
|
|
5457
|
-
|
|
5458
|
-
var _getPrototypeOf2;
|
|
5448
|
+
var _super = _createSuper(DailyMotion);
|
|
5459
5449
|
|
|
5450
|
+
function DailyMotion() {
|
|
5460
5451
|
var _this;
|
|
5461
5452
|
|
|
5462
5453
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5465,7 +5456,7 @@ function (_Component) {
|
|
|
5465
5456
|
args[_key] = arguments[_key];
|
|
5466
5457
|
}
|
|
5467
5458
|
|
|
5468
|
-
_this =
|
|
5459
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5469
5460
|
|
|
5470
5461
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5471
5462
|
|
|
@@ -5594,9 +5585,9 @@ function (_Component) {
|
|
|
5594
5585
|
height: '100%',
|
|
5595
5586
|
display: display
|
|
5596
5587
|
};
|
|
5597
|
-
return _react["default"].createElement("div", {
|
|
5588
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5598
5589
|
style: style
|
|
5599
|
-
}, _react["default"].createElement("div", {
|
|
5590
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5600
5591
|
ref: this.ref
|
|
5601
5592
|
}));
|
|
5602
5593
|
}
|
|
@@ -5630,7 +5621,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5630
5621
|
});
|
|
5631
5622
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5632
5623
|
|
|
5633
|
-
var _react = _interopRequireWildcard(
|
|
5624
|
+
var _react = _interopRequireWildcard(React);
|
|
5634
5625
|
|
|
5635
5626
|
|
|
5636
5627
|
|
|
@@ -5654,12 +5645,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5654
5645
|
|
|
5655
5646
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5656
5647
|
|
|
5657
|
-
function
|
|
5648
|
+
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); }; }
|
|
5658
5649
|
|
|
5659
|
-
function
|
|
5650
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5660
5651
|
|
|
5661
5652
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5662
5653
|
|
|
5654
|
+
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; } }
|
|
5655
|
+
|
|
5656
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5657
|
+
|
|
5663
5658
|
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); }
|
|
5664
5659
|
|
|
5665
5660
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5670,14 +5665,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5670
5665
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5671
5666
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5672
5667
|
|
|
5673
|
-
var Mixcloud =
|
|
5674
|
-
/*#__PURE__*/
|
|
5675
|
-
function (_Component) {
|
|
5668
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5676
5669
|
_inherits(Mixcloud, _Component);
|
|
5677
5670
|
|
|
5678
|
-
|
|
5679
|
-
var _getPrototypeOf2;
|
|
5671
|
+
var _super = _createSuper(Mixcloud);
|
|
5680
5672
|
|
|
5673
|
+
function Mixcloud() {
|
|
5681
5674
|
var _this;
|
|
5682
5675
|
|
|
5683
5676
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5686,7 +5679,7 @@ function (_Component) {
|
|
|
5686
5679
|
args[_key] = arguments[_key];
|
|
5687
5680
|
}
|
|
5688
5681
|
|
|
5689
|
-
_this =
|
|
5682
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5690
5683
|
|
|
5691
5684
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5692
5685
|
|
|
@@ -5789,7 +5782,7 @@ function (_Component) {
|
|
|
5789
5782
|
})); // We have to give the iframe a key here to prevent a
|
|
5790
5783
|
// weird dialog appearing when loading a new track
|
|
5791
5784
|
|
|
5792
|
-
return _react["default"].createElement("iframe", {
|
|
5785
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5793
5786
|
key: id,
|
|
5794
5787
|
ref: this.ref,
|
|
5795
5788
|
style: style,
|
|
@@ -5827,7 +5820,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5827
5820
|
});
|
|
5828
5821
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5829
5822
|
|
|
5830
|
-
var _react = _interopRequireWildcard(
|
|
5823
|
+
var _react = _interopRequireWildcard(React);
|
|
5831
5824
|
|
|
5832
5825
|
|
|
5833
5826
|
|
|
@@ -5849,23 +5842,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5849
5842
|
|
|
5850
5843
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5851
5844
|
|
|
5852
|
-
function
|
|
5845
|
+
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); }; }
|
|
5853
5846
|
|
|
5854
|
-
function
|
|
5847
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5855
5848
|
|
|
5856
5849
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5857
5850
|
|
|
5851
|
+
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; } }
|
|
5852
|
+
|
|
5853
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5854
|
+
|
|
5858
5855
|
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); }
|
|
5859
5856
|
|
|
5860
5857
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5861
5858
|
|
|
5862
5859
|
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; }
|
|
5863
5860
|
|
|
5861
|
+
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; } } }; }
|
|
5862
|
+
|
|
5863
|
+
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); }
|
|
5864
|
+
|
|
5865
|
+
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; }
|
|
5866
|
+
|
|
5864
5867
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5865
5868
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5866
5869
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5867
5870
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5868
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5871
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5869
5872
|
var HLS_GLOBAL = 'Hls';
|
|
5870
5873
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5871
5874
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5874,12 +5877,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5874
5877
|
|
|
5875
5878
|
function canPlay(url) {
|
|
5876
5879
|
if (url instanceof Array) {
|
|
5877
|
-
var
|
|
5878
|
-
|
|
5879
|
-
var _iteratorError = undefined;
|
|
5880
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5881
|
+
_step;
|
|
5880
5882
|
|
|
5881
5883
|
try {
|
|
5882
|
-
for (
|
|
5884
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5883
5885
|
var item = _step.value;
|
|
5884
5886
|
|
|
5885
5887
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5891,18 +5893,9 @@ function canPlay(url) {
|
|
|
5891
5893
|
}
|
|
5892
5894
|
}
|
|
5893
5895
|
} catch (err) {
|
|
5894
|
-
|
|
5895
|
-
_iteratorError = err;
|
|
5896
|
+
_iterator.e(err);
|
|
5896
5897
|
} finally {
|
|
5897
|
-
|
|
5898
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5899
|
-
_iterator["return"]();
|
|
5900
|
-
}
|
|
5901
|
-
} finally {
|
|
5902
|
-
if (_didIteratorError) {
|
|
5903
|
-
throw _iteratorError;
|
|
5904
|
-
}
|
|
5905
|
-
}
|
|
5898
|
+
_iterator.f();
|
|
5906
5899
|
}
|
|
5907
5900
|
|
|
5908
5901
|
return false;
|
|
@@ -5926,14 +5919,12 @@ function canEnablePIP(url) {
|
|
|
5926
5919
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5927
5920
|
}
|
|
5928
5921
|
|
|
5929
|
-
var FilePlayer =
|
|
5930
|
-
/*#__PURE__*/
|
|
5931
|
-
function (_Component) {
|
|
5922
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5932
5923
|
_inherits(FilePlayer, _Component);
|
|
5933
5924
|
|
|
5934
|
-
|
|
5935
|
-
var _getPrototypeOf2;
|
|
5925
|
+
var _super = _createSuper(FilePlayer);
|
|
5936
5926
|
|
|
5927
|
+
function FilePlayer() {
|
|
5937
5928
|
var _this;
|
|
5938
5929
|
|
|
5939
5930
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5942,7 +5933,7 @@ function (_Component) {
|
|
|
5942
5933
|
_args[_key] = arguments[_key];
|
|
5943
5934
|
}
|
|
5944
5935
|
|
|
5945
|
-
_this =
|
|
5936
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5946
5937
|
|
|
5947
5938
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5948
5939
|
var _this$props;
|
|
@@ -6029,19 +6020,19 @@ function (_Component) {
|
|
|
6029
6020
|
|
|
6030
6021
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6031
6022
|
if (typeof source === 'string') {
|
|
6032
|
-
return _react["default"].createElement("source", {
|
|
6023
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6033
6024
|
key: index,
|
|
6034
6025
|
src: source
|
|
6035
6026
|
});
|
|
6036
6027
|
}
|
|
6037
6028
|
|
|
6038
|
-
return _react["default"].createElement("source", _extends({
|
|
6029
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6039
6030
|
key: index
|
|
6040
6031
|
}, source));
|
|
6041
6032
|
});
|
|
6042
6033
|
|
|
6043
6034
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6044
|
-
return _react["default"].createElement("track", _extends({
|
|
6035
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6045
6036
|
key: index
|
|
6046
6037
|
}, track));
|
|
6047
6038
|
});
|
|
@@ -6079,6 +6070,10 @@ function (_Component) {
|
|
|
6079
6070
|
key: "componentWillUnmount",
|
|
6080
6071
|
value: function componentWillUnmount() {
|
|
6081
6072
|
this.removeListeners(this.player);
|
|
6073
|
+
|
|
6074
|
+
if (this.hls) {
|
|
6075
|
+
this.hls.destroy();
|
|
6076
|
+
}
|
|
6082
6077
|
}
|
|
6083
6078
|
}, {
|
|
6084
6079
|
key: "addListeners",
|
|
@@ -6209,10 +6204,6 @@ function (_Component) {
|
|
|
6209
6204
|
value: function stop() {
|
|
6210
6205
|
this.player.removeAttribute('src');
|
|
6211
6206
|
|
|
6212
|
-
if (this.hls) {
|
|
6213
|
-
this.hls.destroy();
|
|
6214
|
-
}
|
|
6215
|
-
|
|
6216
6207
|
if (this.dash) {
|
|
6217
6208
|
this.dash.reset();
|
|
6218
6209
|
}
|
|
@@ -6324,7 +6315,7 @@ function (_Component) {
|
|
|
6324
6315
|
width: width === 'auto' ? width : '100%',
|
|
6325
6316
|
height: height === 'auto' ? height : '100%'
|
|
6326
6317
|
};
|
|
6327
|
-
return _react["default"].createElement(Element, _extends({
|
|
6318
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6328
6319
|
ref: this.ref,
|
|
6329
6320
|
src: this.getSource(url),
|
|
6330
6321
|
style: style,
|
|
@@ -6396,7 +6387,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6396
6387
|
});
|
|
6397
6388
|
exports["default"] = void 0;
|
|
6398
6389
|
|
|
6399
|
-
var _react = _interopRequireWildcard(
|
|
6390
|
+
var _react = _interopRequireWildcard(React);
|
|
6400
6391
|
|
|
6401
6392
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6402
6393
|
|
|
@@ -6414,12 +6405,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6414
6405
|
|
|
6415
6406
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6416
6407
|
|
|
6417
|
-
function
|
|
6408
|
+
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); }; }
|
|
6418
6409
|
|
|
6419
|
-
function
|
|
6410
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6420
6411
|
|
|
6421
6412
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6422
6413
|
|
|
6414
|
+
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; } }
|
|
6415
|
+
|
|
6416
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6417
|
+
|
|
6423
6418
|
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); }
|
|
6424
6419
|
|
|
6425
6420
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6428,14 +6423,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6428
6423
|
|
|
6429
6424
|
var ICON_SIZE = '64px';
|
|
6430
6425
|
|
|
6431
|
-
var Preview =
|
|
6432
|
-
/*#__PURE__*/
|
|
6433
|
-
function (_Component) {
|
|
6426
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6434
6427
|
_inherits(Preview, _Component);
|
|
6435
6428
|
|
|
6436
|
-
|
|
6437
|
-
var _getPrototypeOf2;
|
|
6429
|
+
var _super = _createSuper(Preview);
|
|
6438
6430
|
|
|
6431
|
+
function Preview() {
|
|
6439
6432
|
var _this;
|
|
6440
6433
|
|
|
6441
6434
|
_classCallCheck(this, Preview);
|
|
@@ -6444,7 +6437,7 @@ function (_Component) {
|
|
|
6444
6437
|
args[_key] = arguments[_key];
|
|
6445
6438
|
}
|
|
6446
6439
|
|
|
6447
|
-
_this =
|
|
6440
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6448
6441
|
|
|
6449
6442
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6450
6443
|
|
|
@@ -6542,15 +6535,15 @@ function (_Component) {
|
|
|
6542
6535
|
}
|
|
6543
6536
|
};
|
|
6544
6537
|
|
|
6545
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6538
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6546
6539
|
style: styles.shadow,
|
|
6547
6540
|
className: "react-player__shadow"
|
|
6548
|
-
}, _react["default"].createElement("div", {
|
|
6541
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6549
6542
|
style: styles.playIcon,
|
|
6550
6543
|
className: "react-player__play-icon"
|
|
6551
6544
|
}));
|
|
6552
6545
|
|
|
6553
|
-
return _react["default"].createElement("div", {
|
|
6546
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6554
6547
|
style: styles.preview,
|
|
6555
6548
|
className: "react-player__preview",
|
|
6556
6549
|
onClick: onClick
|
|
@@ -6573,7 +6566,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6573
6566
|
});
|
|
6574
6567
|
exports["default"] = renderPreloadPlayers;
|
|
6575
6568
|
|
|
6576
|
-
var _react = _interopRequireDefault(
|
|
6569
|
+
var _react = _interopRequireDefault(React);
|
|
6577
6570
|
|
|
6578
6571
|
var _Player = _interopRequireDefault(Player_1);
|
|
6579
6572
|
|
|
@@ -6587,6 +6580,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6587
6580
|
|
|
6588
6581
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6589
6582
|
|
|
6583
|
+
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; } } }; }
|
|
6584
|
+
|
|
6585
|
+
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); }
|
|
6586
|
+
|
|
6587
|
+
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; }
|
|
6588
|
+
|
|
6590
6589
|
var PRELOAD_PLAYERS = [{
|
|
6591
6590
|
Player: YouTube_1.YouTube,
|
|
6592
6591
|
configKey: 'youtube',
|
|
@@ -6607,16 +6606,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6607
6606
|
|
|
6608
6607
|
function renderPreloadPlayers(url, controls, config) {
|
|
6609
6608
|
var players = [];
|
|
6610
|
-
|
|
6611
|
-
var
|
|
6612
|
-
|
|
6609
|
+
|
|
6610
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6611
|
+
_step;
|
|
6613
6612
|
|
|
6614
6613
|
try {
|
|
6615
|
-
for (
|
|
6614
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6616
6615
|
var player = _step.value;
|
|
6617
6616
|
|
|
6618
6617
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6619
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6618
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6620
6619
|
key: player.Player.displayName,
|
|
6621
6620
|
activePlayer: player.Player,
|
|
6622
6621
|
url: player.url,
|
|
@@ -6628,18 +6627,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6628
6627
|
}
|
|
6629
6628
|
}
|
|
6630
6629
|
} catch (err) {
|
|
6631
|
-
|
|
6632
|
-
_iteratorError = err;
|
|
6630
|
+
_iterator.e(err);
|
|
6633
6631
|
} finally {
|
|
6634
|
-
|
|
6635
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6636
|
-
_iterator["return"]();
|
|
6637
|
-
}
|
|
6638
|
-
} finally {
|
|
6639
|
-
if (_didIteratorError) {
|
|
6640
|
-
throw _iteratorError;
|
|
6641
|
-
}
|
|
6642
|
-
}
|
|
6632
|
+
_iterator.f();
|
|
6643
6633
|
}
|
|
6644
6634
|
|
|
6645
6635
|
return players;
|
|
@@ -6715,7 +6705,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6715
6705
|
});
|
|
6716
6706
|
exports["default"] = void 0;
|
|
6717
6707
|
|
|
6718
|
-
var _react = _interopRequireWildcard(
|
|
6708
|
+
var _react = _interopRequireWildcard(React);
|
|
6719
6709
|
|
|
6720
6710
|
|
|
6721
6711
|
|
|
@@ -6763,13 +6753,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6763
6753
|
|
|
6764
6754
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6765
6755
|
|
|
6766
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6756
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6757
|
+
|
|
6758
|
+
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."); }
|
|
6759
|
+
|
|
6760
|
+
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); }
|
|
6767
6761
|
|
|
6768
|
-
function
|
|
6762
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6769
6763
|
|
|
6770
|
-
function
|
|
6764
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6771
6765
|
|
|
6772
|
-
function
|
|
6766
|
+
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; }
|
|
6773
6767
|
|
|
6774
6768
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6775
6769
|
|
|
@@ -6777,12 +6771,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6777
6771
|
|
|
6778
6772
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6779
6773
|
|
|
6780
|
-
function
|
|
6774
|
+
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); }; }
|
|
6781
6775
|
|
|
6782
|
-
function
|
|
6776
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6783
6777
|
|
|
6784
6778
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6785
6779
|
|
|
6780
|
+
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; } }
|
|
6781
|
+
|
|
6782
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6783
|
+
|
|
6786
6784
|
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); }
|
|
6787
6785
|
|
|
6788
6786
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6792,14 +6790,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6792
6790
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6793
6791
|
var customPlayers = [];
|
|
6794
6792
|
|
|
6795
|
-
var ReactPlayer =
|
|
6796
|
-
/*#__PURE__*/
|
|
6797
|
-
function (_Component) {
|
|
6793
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6798
6794
|
_inherits(ReactPlayer, _Component);
|
|
6799
6795
|
|
|
6800
|
-
|
|
6801
|
-
var _getPrototypeOf2;
|
|
6796
|
+
var _super = _createSuper(ReactPlayer);
|
|
6802
6797
|
|
|
6798
|
+
function ReactPlayer() {
|
|
6803
6799
|
var _this;
|
|
6804
6800
|
|
|
6805
6801
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6808,7 +6804,7 @@ function (_Component) {
|
|
|
6808
6804
|
args[_key] = arguments[_key];
|
|
6809
6805
|
}
|
|
6810
6806
|
|
|
6811
|
-
_this =
|
|
6807
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6812
6808
|
|
|
6813
6809
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6814
6810
|
|
|
@@ -6919,7 +6915,7 @@ function (_Component) {
|
|
|
6919
6915
|
key: "renderActivePlayer",
|
|
6920
6916
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6921
6917
|
if (!url) return null;
|
|
6922
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6918
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6923
6919
|
key: activePlayer.displayName,
|
|
6924
6920
|
ref: this.activePlayerRef,
|
|
6925
6921
|
config: this.config,
|
|
@@ -6956,14 +6952,14 @@ function (_Component) {
|
|
|
6956
6952
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6957
6953
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6958
6954
|
|
|
6959
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6955
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6960
6956
|
url: url,
|
|
6961
6957
|
light: light,
|
|
6962
6958
|
playIcon: playIcon,
|
|
6963
6959
|
onClick: this.handleClickPreview
|
|
6964
6960
|
});
|
|
6965
6961
|
|
|
6966
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6962
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6967
6963
|
ref: this.wrapperRef,
|
|
6968
6964
|
style: _objectSpread({}, style, {
|
|
6969
6965
|
width: width,
|
|
@@ -7023,20 +7019,20 @@ var Audio = function Audio(_ref) {
|
|
|
7023
7019
|
var node = _ref.node;
|
|
7024
7020
|
|
|
7025
7021
|
if (node.uploadAudio) {
|
|
7026
|
-
return
|
|
7022
|
+
return React.createElement(
|
|
7027
7023
|
'div',
|
|
7028
7024
|
{ className: 'audio d-block text-center mb-3' },
|
|
7029
|
-
|
|
7025
|
+
React.createElement(
|
|
7030
7026
|
'audio',
|
|
7031
7027
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7032
|
-
|
|
7033
|
-
|
|
7028
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7029
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7034
7030
|
'Your browser does not support the audio element.'
|
|
7035
7031
|
),
|
|
7036
|
-
node.caption &&
|
|
7032
|
+
node.caption && React.createElement(
|
|
7037
7033
|
'p',
|
|
7038
7034
|
{ style: { fontSize: '.9rem' } },
|
|
7039
|
-
|
|
7035
|
+
React.createElement(
|
|
7040
7036
|
'em',
|
|
7041
7037
|
null,
|
|
7042
7038
|
node.caption
|
|
@@ -7046,15 +7042,15 @@ var Audio = function Audio(_ref) {
|
|
|
7046
7042
|
} else if (node.audioFilePth) {
|
|
7047
7043
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7048
7044
|
if (hostname === 'embeds.audioboom.com') {
|
|
7049
|
-
return
|
|
7045
|
+
return React.createElement(
|
|
7050
7046
|
'div',
|
|
7051
7047
|
null,
|
|
7052
|
-
|
|
7048
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7053
7049
|
' ',
|
|
7054
|
-
node.caption &&
|
|
7050
|
+
node.caption && React.createElement(
|
|
7055
7051
|
'p',
|
|
7056
7052
|
{ style: { fontSize: '.9rem' } },
|
|
7057
|
-
|
|
7053
|
+
React.createElement(
|
|
7058
7054
|
'em',
|
|
7059
7055
|
null,
|
|
7060
7056
|
node.caption
|
|
@@ -7062,14 +7058,14 @@ var Audio = function Audio(_ref) {
|
|
|
7062
7058
|
)
|
|
7063
7059
|
);
|
|
7064
7060
|
}
|
|
7065
|
-
return
|
|
7061
|
+
return React.createElement(
|
|
7066
7062
|
'div',
|
|
7067
7063
|
{ className: 'audio' },
|
|
7068
|
-
|
|
7069
|
-
node.caption &&
|
|
7064
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7065
|
+
node.caption && React.createElement(
|
|
7070
7066
|
'p',
|
|
7071
7067
|
{ style: { fontSize: '.9rem' } },
|
|
7072
|
-
|
|
7068
|
+
React.createElement(
|
|
7073
7069
|
'em',
|
|
7074
7070
|
null,
|
|
7075
7071
|
node.caption
|
|
@@ -7087,34 +7083,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7087
7083
|
var profileImage = arguments[6];
|
|
7088
7084
|
|
|
7089
7085
|
if (authorName && authorURL) {
|
|
7090
|
-
return
|
|
7086
|
+
return React.createElement(
|
|
7091
7087
|
'span',
|
|
7092
7088
|
null,
|
|
7093
|
-
|
|
7089
|
+
React.createElement(
|
|
7094
7090
|
'a',
|
|
7095
7091
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7096
7092
|
authorName
|
|
7097
7093
|
),
|
|
7098
|
-
|
|
7094
|
+
React.createElement(
|
|
7099
7095
|
Card,
|
|
7100
7096
|
{ className: 'author-details-card-' + index },
|
|
7101
|
-
|
|
7097
|
+
React.createElement(
|
|
7102
7098
|
Row,
|
|
7103
7099
|
null,
|
|
7104
|
-
profileImage &&
|
|
7100
|
+
profileImage && React.createElement(
|
|
7105
7101
|
Col,
|
|
7106
7102
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7107
|
-
|
|
7103
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7108
7104
|
),
|
|
7109
|
-
|
|
7105
|
+
React.createElement(
|
|
7110
7106
|
Col,
|
|
7111
7107
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7112
|
-
|
|
7108
|
+
React.createElement(
|
|
7113
7109
|
'div',
|
|
7114
7110
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7115
7111
|
authorName
|
|
7116
7112
|
),
|
|
7117
|
-
|
|
7113
|
+
React.createElement(
|
|
7118
7114
|
'p',
|
|
7119
7115
|
null,
|
|
7120
7116
|
biography
|
|
@@ -7122,7 +7118,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7122
7118
|
)
|
|
7123
7119
|
)
|
|
7124
7120
|
),
|
|
7125
|
-
|
|
7121
|
+
React.createElement(
|
|
7126
7122
|
'style',
|
|
7127
7123
|
{ jsx: 'true' },
|
|
7128
7124
|
'\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 '
|
|
@@ -7130,7 +7126,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7130
7126
|
length !== index + 1 && ' , '
|
|
7131
7127
|
);
|
|
7132
7128
|
} else if (authorName) {
|
|
7133
|
-
return
|
|
7129
|
+
return React.createElement(
|
|
7134
7130
|
'span',
|
|
7135
7131
|
{ key: index },
|
|
7136
7132
|
authorName,
|
|
@@ -7402,44 +7398,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7402
7398
|
}
|
|
7403
7399
|
};
|
|
7404
7400
|
|
|
7405
|
-
return
|
|
7401
|
+
return React.createElement(
|
|
7406
7402
|
'div',
|
|
7407
7403
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7408
|
-
|
|
7404
|
+
React.createElement(
|
|
7409
7405
|
'div',
|
|
7410
7406
|
{ className: 'mt-2 mb-5' },
|
|
7411
|
-
series &&
|
|
7407
|
+
series && React.createElement(
|
|
7412
7408
|
'div',
|
|
7413
7409
|
{ style: { fontSize: '0.9rem' } },
|
|
7414
7410
|
article.title,
|
|
7415
7411
|
' - Episode ',
|
|
7416
7412
|
series
|
|
7417
7413
|
),
|
|
7418
|
-
Videos[series - 1] &&
|
|
7414
|
+
Videos[series - 1] && React.createElement(
|
|
7419
7415
|
'h1',
|
|
7420
7416
|
{ className: 'mb-3' },
|
|
7421
7417
|
Videos[series - 1].title
|
|
7422
7418
|
),
|
|
7423
|
-
|
|
7419
|
+
React.createElement(
|
|
7424
7420
|
'div',
|
|
7425
7421
|
null,
|
|
7426
7422
|
moment(article.published).format('LL')
|
|
7427
7423
|
),
|
|
7428
|
-
|
|
7424
|
+
React.createElement(
|
|
7429
7425
|
'div',
|
|
7430
7426
|
{ className: 'mb-3' },
|
|
7431
7427
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7432
|
-
return
|
|
7428
|
+
return React.createElement(
|
|
7433
7429
|
'span',
|
|
7434
7430
|
{ key: index },
|
|
7435
7431
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7436
7432
|
);
|
|
7437
7433
|
})
|
|
7438
7434
|
),
|
|
7439
|
-
|
|
7435
|
+
React.createElement(
|
|
7440
7436
|
'p',
|
|
7441
7437
|
null,
|
|
7442
|
-
|
|
7438
|
+
React.createElement(SocialShare, {
|
|
7443
7439
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7444
7440
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7445
7441
|
shareVia: meta.shareVia,
|
|
@@ -7454,20 +7450,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7454
7450
|
hideFacebook: meta.hideFBShare
|
|
7455
7451
|
})
|
|
7456
7452
|
),
|
|
7457
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7453
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7458
7454
|
'p',
|
|
7459
7455
|
{ className: 'mb-3' },
|
|
7460
|
-
|
|
7456
|
+
React.createElement(
|
|
7461
7457
|
'em',
|
|
7462
7458
|
null,
|
|
7463
7459
|
Videos[series - 1].intro
|
|
7464
7460
|
)
|
|
7465
7461
|
)
|
|
7466
7462
|
),
|
|
7467
|
-
|
|
7463
|
+
React.createElement(
|
|
7468
7464
|
'div',
|
|
7469
7465
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7470
|
-
vidUrl && vidType == 'youtube' &&
|
|
7466
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7471
7467
|
className: 'fluid-iframe',
|
|
7472
7468
|
videoId: getYoutubeId(vidUrl),
|
|
7473
7469
|
opts: opts,
|
|
@@ -7478,10 +7474,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7478
7474
|
return handleOnEnd(e);
|
|
7479
7475
|
}
|
|
7480
7476
|
}),
|
|
7481
|
-
vidUrl && vidType == 'mp4' &&
|
|
7482
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7483
|
-
|
|
7484
|
-
series &&
|
|
7477
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7478
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7479
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7480
|
+
series && React.createElement(
|
|
7485
7481
|
'div',
|
|
7486
7482
|
{
|
|
7487
7483
|
className: 'vid-series',
|
|
@@ -7491,10 +7487,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7491
7487
|
maxHeight: '100%',
|
|
7492
7488
|
paddingBottom: '0'
|
|
7493
7489
|
} },
|
|
7494
|
-
|
|
7490
|
+
React.createElement(
|
|
7495
7491
|
'p',
|
|
7496
7492
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7497
|
-
|
|
7493
|
+
React.createElement(
|
|
7498
7494
|
'b',
|
|
7499
7495
|
{ style: { fontSize: '1.25em' } },
|
|
7500
7496
|
'Now Playing:'
|
|
@@ -7502,16 +7498,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7502
7498
|
' ',
|
|
7503
7499
|
seriesData[series ? series - 1 : 0].title
|
|
7504
7500
|
),
|
|
7505
|
-
vidUrl &&
|
|
7501
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7506
7502
|
)
|
|
7507
7503
|
),
|
|
7508
|
-
|
|
7509
|
-
|
|
7504
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7505
|
+
React.createElement(
|
|
7510
7506
|
'div',
|
|
7511
7507
|
{ className: 'vid-text' },
|
|
7512
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7508
|
+
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()))
|
|
7513
7509
|
),
|
|
7514
|
-
|
|
7510
|
+
React.createElement(
|
|
7515
7511
|
'style',
|
|
7516
7512
|
{ jsx: 'true' },
|
|
7517
7513
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7564,67 +7560,67 @@ var Poll = function Poll(_ref) {
|
|
|
7564
7560
|
return acc;
|
|
7565
7561
|
}
|
|
7566
7562
|
}, 0);
|
|
7567
|
-
return
|
|
7568
|
-
|
|
7563
|
+
return React.createElement(
|
|
7564
|
+
React.Fragment,
|
|
7569
7565
|
null,
|
|
7570
|
-
question &&
|
|
7566
|
+
question && React.createElement(
|
|
7571
7567
|
'p',
|
|
7572
7568
|
{ className: 'font-weight-bold' },
|
|
7573
7569
|
question
|
|
7574
7570
|
),
|
|
7575
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7571
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7576
7572
|
'form',
|
|
7577
7573
|
{ onSubmit: function onSubmit(e) {
|
|
7578
7574
|
return onSubmitPoll(e);
|
|
7579
7575
|
} },
|
|
7580
7576
|
choices && choices.map(function (choice) {
|
|
7581
|
-
return
|
|
7577
|
+
return React.createElement(
|
|
7582
7578
|
'div',
|
|
7583
7579
|
{ key: choice._key },
|
|
7584
|
-
|
|
7580
|
+
React.createElement(
|
|
7585
7581
|
'label',
|
|
7586
7582
|
{ className: 'pl-2' },
|
|
7587
|
-
|
|
7583
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7588
7584
|
return setSelectedChoice(e.target.value);
|
|
7589
7585
|
} }),
|
|
7590
7586
|
' ' + choice.choiceText
|
|
7591
7587
|
)
|
|
7592
7588
|
);
|
|
7593
7589
|
}),
|
|
7594
|
-
|
|
7590
|
+
React.createElement(
|
|
7595
7591
|
Button,
|
|
7596
7592
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7597
7593
|
'Vote'
|
|
7598
7594
|
)
|
|
7599
7595
|
),
|
|
7600
|
-
|
|
7596
|
+
React.createElement(
|
|
7601
7597
|
'div',
|
|
7602
7598
|
{ className: 'progress-container' },
|
|
7603
7599
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7604
7600
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7605
|
-
return
|
|
7601
|
+
return React.createElement(
|
|
7606
7602
|
'div',
|
|
7607
7603
|
{ key: choice._key, className: 'mb-3' },
|
|
7608
|
-
|
|
7604
|
+
React.createElement(
|
|
7609
7605
|
'div',
|
|
7610
7606
|
{ className: 'correct-answer' },
|
|
7611
|
-
|
|
7607
|
+
React.createElement(
|
|
7612
7608
|
'div',
|
|
7613
7609
|
null,
|
|
7614
7610
|
choice.choiceText
|
|
7615
7611
|
),
|
|
7616
|
-
choice.choiceAnswer === true &&
|
|
7612
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7617
7613
|
'div',
|
|
7618
7614
|
null,
|
|
7619
|
-
|
|
7615
|
+
React.createElement(
|
|
7620
7616
|
'span',
|
|
7621
7617
|
{ style: { color: 'limegreen' } },
|
|
7622
7618
|
'Correct!'
|
|
7623
7619
|
)
|
|
7624
7620
|
)
|
|
7625
7621
|
),
|
|
7626
|
-
|
|
7627
|
-
|
|
7622
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7623
|
+
React.createElement(
|
|
7628
7624
|
'span',
|
|
7629
7625
|
{ className: 'float-right' },
|
|
7630
7626
|
percentage,
|
|
@@ -7635,14 +7631,14 @@ var Poll = function Poll(_ref) {
|
|
|
7635
7631
|
);
|
|
7636
7632
|
})
|
|
7637
7633
|
),
|
|
7638
|
-
showAnswer &&
|
|
7634
|
+
showAnswer && React.createElement(
|
|
7639
7635
|
'h4',
|
|
7640
7636
|
{ className: 'text-center small p-3' },
|
|
7641
7637
|
'Total Votes: ',
|
|
7642
7638
|
choicesTotalCount
|
|
7643
7639
|
),
|
|
7644
|
-
showAnswer && response &&
|
|
7645
|
-
|
|
7640
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7641
|
+
React.createElement(
|
|
7646
7642
|
'style',
|
|
7647
7643
|
{ jsx: 'true' },
|
|
7648
7644
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7741,67 +7737,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7741
7737
|
return acc;
|
|
7742
7738
|
}
|
|
7743
7739
|
}, 0);
|
|
7744
|
-
return
|
|
7745
|
-
|
|
7740
|
+
return React.createElement(
|
|
7741
|
+
React.Fragment,
|
|
7746
7742
|
null,
|
|
7747
|
-
question &&
|
|
7743
|
+
question && React.createElement(
|
|
7748
7744
|
'p',
|
|
7749
7745
|
{ className: 'font-weight-bold' },
|
|
7750
7746
|
question
|
|
7751
7747
|
),
|
|
7752
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7748
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7753
7749
|
'form',
|
|
7754
7750
|
{ onSubmit: function onSubmit(e) {
|
|
7755
7751
|
return onSubmitPoll(e);
|
|
7756
7752
|
} },
|
|
7757
7753
|
choices && choices.map(function (choice) {
|
|
7758
|
-
return
|
|
7754
|
+
return React.createElement(
|
|
7759
7755
|
'div',
|
|
7760
7756
|
{ key: choice._key },
|
|
7761
|
-
|
|
7757
|
+
React.createElement(
|
|
7762
7758
|
'label',
|
|
7763
7759
|
{ className: 'pl-2' },
|
|
7764
|
-
|
|
7760
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7765
7761
|
return setSelectedChoice(e.target.value);
|
|
7766
7762
|
} }),
|
|
7767
7763
|
' ' + choice.choiceText
|
|
7768
7764
|
)
|
|
7769
7765
|
);
|
|
7770
7766
|
}),
|
|
7771
|
-
|
|
7767
|
+
React.createElement(
|
|
7772
7768
|
Button,
|
|
7773
7769
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7774
7770
|
'Vote'
|
|
7775
7771
|
)
|
|
7776
7772
|
),
|
|
7777
|
-
|
|
7773
|
+
React.createElement(
|
|
7778
7774
|
'div',
|
|
7779
7775
|
{ className: 'progress-container' },
|
|
7780
7776
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7781
7777
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7782
|
-
return
|
|
7778
|
+
return React.createElement(
|
|
7783
7779
|
'div',
|
|
7784
7780
|
{ key: choice._key, className: 'mb-3' },
|
|
7785
|
-
|
|
7781
|
+
React.createElement(
|
|
7786
7782
|
'div',
|
|
7787
7783
|
{ className: 'correct-answer' },
|
|
7788
|
-
|
|
7784
|
+
React.createElement(
|
|
7789
7785
|
'div',
|
|
7790
7786
|
null,
|
|
7791
7787
|
choice.choiceText
|
|
7792
7788
|
),
|
|
7793
|
-
choice.choiceAnswer === true &&
|
|
7789
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7794
7790
|
'div',
|
|
7795
7791
|
null,
|
|
7796
|
-
|
|
7792
|
+
React.createElement(
|
|
7797
7793
|
'span',
|
|
7798
7794
|
{ style: { color: 'limegreen' } },
|
|
7799
7795
|
'Correct!'
|
|
7800
7796
|
)
|
|
7801
7797
|
)
|
|
7802
7798
|
),
|
|
7803
|
-
|
|
7804
|
-
|
|
7799
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7800
|
+
React.createElement(
|
|
7805
7801
|
'span',
|
|
7806
7802
|
{ className: 'float-right' },
|
|
7807
7803
|
percentage,
|
|
@@ -7812,14 +7808,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7812
7808
|
);
|
|
7813
7809
|
})
|
|
7814
7810
|
),
|
|
7815
|
-
showAnswer &&
|
|
7811
|
+
showAnswer && React.createElement(
|
|
7816
7812
|
'h4',
|
|
7817
7813
|
{ className: 'text-center small p-3' },
|
|
7818
7814
|
'Total Votes: ',
|
|
7819
7815
|
choicesTotalCount
|
|
7820
7816
|
),
|
|
7821
|
-
showAnswer && response &&
|
|
7822
|
-
|
|
7817
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7818
|
+
React.createElement(
|
|
7823
7819
|
'style',
|
|
7824
7820
|
{ jsx: 'true' },
|
|
7825
7821
|
'\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 '
|
|
@@ -7827,7 +7823,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7827
7823
|
);
|
|
7828
7824
|
};
|
|
7829
7825
|
|
|
7830
|
-
var numberOfPaginations =
|
|
7826
|
+
var numberOfPaginations = main_39 ? 4 : 10;
|
|
7831
7827
|
|
|
7832
7828
|
var Quiz = function Quiz(_ref) {
|
|
7833
7829
|
var quizzes = _ref.quizzes,
|
|
@@ -7945,34 +7941,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7945
7941
|
};
|
|
7946
7942
|
|
|
7947
7943
|
var renderPagination = function renderPagination() {
|
|
7948
|
-
return
|
|
7949
|
-
Pagination
|
|
7950
|
-
{ className: 'p-0 m-0', size:
|
|
7951
|
-
|
|
7944
|
+
return React.createElement(
|
|
7945
|
+
Pagination,
|
|
7946
|
+
{ className: 'p-0 m-0', size: main_39 && 'sm' },
|
|
7947
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7952
7948
|
return changePage('first');
|
|
7953
7949
|
}, disabled: currentPage === 1 }),
|
|
7954
|
-
|
|
7950
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7955
7951
|
return changePage('prev');
|
|
7956
7952
|
}, disabled: currentPage === 1 }),
|
|
7957
|
-
|
|
7953
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7958
7954
|
return renderNewPages('prev');
|
|
7959
7955
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7960
7956
|
pages.map(function (page) {
|
|
7961
|
-
return
|
|
7962
|
-
Pagination
|
|
7957
|
+
return React.createElement(
|
|
7958
|
+
Pagination.Item,
|
|
7963
7959
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7964
7960
|
return changePage(page);
|
|
7965
7961
|
} },
|
|
7966
7962
|
page
|
|
7967
7963
|
);
|
|
7968
7964
|
}),
|
|
7969
|
-
|
|
7965
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7970
7966
|
return renderNewPages('next');
|
|
7971
7967
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7972
|
-
|
|
7968
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7973
7969
|
return changePage('next');
|
|
7974
7970
|
}, disabled: currentPage === pageCount }),
|
|
7975
|
-
|
|
7971
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7976
7972
|
return changePage('last');
|
|
7977
7973
|
}, disabled: currentPage === pageCount })
|
|
7978
7974
|
);
|
|
@@ -8055,51 +8051,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8055
8051
|
}
|
|
8056
8052
|
};
|
|
8057
8053
|
|
|
8058
|
-
return
|
|
8059
|
-
|
|
8054
|
+
return React.createElement(
|
|
8055
|
+
React.Fragment,
|
|
8060
8056
|
null,
|
|
8061
|
-
quizzes[currentPage - 1] &&
|
|
8062
|
-
|
|
8057
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8058
|
+
React.Fragment,
|
|
8063
8059
|
null,
|
|
8064
|
-
|
|
8065
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8060
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8061
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8066
8062
|
'form',
|
|
8067
8063
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8068
8064
|
return e.preventDefault();
|
|
8069
8065
|
} },
|
|
8070
8066
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8071
|
-
return
|
|
8067
|
+
return React.createElement(
|
|
8072
8068
|
'div',
|
|
8073
8069
|
{ key: answer._key },
|
|
8074
|
-
|
|
8070
|
+
React.createElement(
|
|
8075
8071
|
'label',
|
|
8076
8072
|
{ className: 'pl-2' },
|
|
8077
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8073
|
+
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 }),
|
|
8078
8074
|
' ' + answer.answerText
|
|
8079
8075
|
)
|
|
8080
8076
|
);
|
|
8081
8077
|
})
|
|
8082
8078
|
)
|
|
8083
8079
|
),
|
|
8084
|
-
!showAnswer &&
|
|
8080
|
+
!showAnswer && React.createElement(
|
|
8085
8081
|
Button$1,
|
|
8086
8082
|
{ onClick: function onClick() {
|
|
8087
8083
|
return checkAnswers();
|
|
8088
8084
|
}, variant: 'info', block: true },
|
|
8089
8085
|
'Please click here for answer'
|
|
8090
8086
|
),
|
|
8091
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8092
|
-
|
|
8087
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8088
|
+
React.Fragment,
|
|
8093
8089
|
null,
|
|
8094
|
-
|
|
8090
|
+
React.createElement(
|
|
8095
8091
|
'h4',
|
|
8096
8092
|
null,
|
|
8097
8093
|
'Answer:'
|
|
8098
8094
|
),
|
|
8099
|
-
quizzes[currentPage - 1].answer &&
|
|
8095
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8100
8096
|
),
|
|
8101
|
-
|
|
8102
|
-
pageCount > 1 &&
|
|
8097
|
+
React.createElement('br', null),
|
|
8098
|
+
pageCount > 1 && React.createElement(
|
|
8103
8099
|
'div',
|
|
8104
8100
|
{ className: 'd-flex justify-content-center' },
|
|
8105
8101
|
renderPagination()
|
|
@@ -8110,10 +8106,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8110
8106
|
var Leads = function Leads(_ref) {
|
|
8111
8107
|
var url = _ref.url;
|
|
8112
8108
|
|
|
8113
|
-
return
|
|
8109
|
+
return React.createElement(
|
|
8114
8110
|
'div',
|
|
8115
8111
|
{ className: 'd-block text-center mb-3' },
|
|
8116
|
-
url &&
|
|
8112
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8117
8113
|
);
|
|
8118
8114
|
};
|
|
8119
8115
|
|
|
@@ -8153,53 +8149,53 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8153
8149
|
setCarouselIndex(selectedIndex);
|
|
8154
8150
|
};
|
|
8155
8151
|
|
|
8156
|
-
return
|
|
8152
|
+
return React.createElement(
|
|
8157
8153
|
'div',
|
|
8158
8154
|
{ className: 'mt-3 mb-4' },
|
|
8159
|
-
|
|
8155
|
+
React.createElement(
|
|
8160
8156
|
Carousel,
|
|
8161
8157
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8162
8158
|
slides && slides.map(function (slide) {
|
|
8163
8159
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8164
|
-
return
|
|
8160
|
+
return React.createElement(
|
|
8165
8161
|
Carousel.Item,
|
|
8166
8162
|
{ key: slide._key },
|
|
8167
|
-
|
|
8163
|
+
React.createElement(
|
|
8168
8164
|
'a',
|
|
8169
8165
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8170
|
-
|
|
8166
|
+
React.createElement(
|
|
8171
8167
|
'div',
|
|
8172
8168
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8173
|
-
|
|
8169
|
+
React.createElement(
|
|
8174
8170
|
LazyLoad,
|
|
8175
8171
|
null,
|
|
8176
|
-
|
|
8172
|
+
React.createElement(
|
|
8177
8173
|
'picture',
|
|
8178
8174
|
null,
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8175
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8176
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8177
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8178
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8183
8179
|
)
|
|
8184
8180
|
)
|
|
8185
8181
|
)
|
|
8186
8182
|
),
|
|
8187
|
-
|
|
8183
|
+
React.createElement(
|
|
8188
8184
|
'div',
|
|
8189
8185
|
{ className: 'p-2' },
|
|
8190
|
-
slide.slideshowImage.caption &&
|
|
8186
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8191
8187
|
'h3',
|
|
8192
8188
|
{ style: { padding: '0px' } },
|
|
8193
8189
|
slide.slideshowImage.caption
|
|
8194
8190
|
),
|
|
8195
|
-
slide.description &&
|
|
8191
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8196
8192
|
)
|
|
8197
8193
|
);
|
|
8198
8194
|
}
|
|
8199
8195
|
return null;
|
|
8200
8196
|
})
|
|
8201
8197
|
),
|
|
8202
|
-
|
|
8198
|
+
React.createElement(
|
|
8203
8199
|
'style',
|
|
8204
8200
|
{ jsx: 'true' },
|
|
8205
8201
|
'\n .embed-item-img {\n max-width: 100%;\n max-height: 750px;\n }\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 '
|
|
@@ -8218,10 +8214,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8218
8214
|
sizes = _props$node.sizes,
|
|
8219
8215
|
sizeMapping = _props$node.sizeMapping;
|
|
8220
8216
|
|
|
8221
|
-
return
|
|
8217
|
+
return React.createElement(
|
|
8222
8218
|
'div',
|
|
8223
8219
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8224
|
-
|
|
8220
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8225
8221
|
);
|
|
8226
8222
|
};
|
|
8227
8223
|
|
|
@@ -8232,15 +8228,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8232
8228
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8233
8229
|
|
|
8234
8230
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8235
|
-
return
|
|
8231
|
+
return React.createElement(
|
|
8236
8232
|
'section',
|
|
8237
8233
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8238
|
-
Caption &&
|
|
8234
|
+
Caption && React.createElement(
|
|
8239
8235
|
'h4',
|
|
8240
8236
|
{ className: 'formstack-caption' },
|
|
8241
8237
|
Caption
|
|
8242
8238
|
),
|
|
8243
|
-
|
|
8239
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8244
8240
|
);
|
|
8245
8241
|
};
|
|
8246
8242
|
|
|
@@ -8256,36 +8252,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8256
8252
|
}
|
|
8257
8253
|
});
|
|
8258
8254
|
if (medias && medias.length > 0) {
|
|
8259
|
-
return
|
|
8255
|
+
return React.createElement(
|
|
8260
8256
|
'div',
|
|
8261
8257
|
{ className: 'multi-media-container' },
|
|
8262
|
-
|
|
8258
|
+
React.createElement(
|
|
8263
8259
|
Row$1,
|
|
8264
8260
|
{ noGutters: true },
|
|
8265
8261
|
medias.map(function (media) {
|
|
8266
|
-
return
|
|
8262
|
+
return React.createElement(
|
|
8267
8263
|
Col$1,
|
|
8268
8264
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8269
|
-
|
|
8265
|
+
React.createElement(
|
|
8270
8266
|
'a',
|
|
8271
|
-
_extends
|
|
8267
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8272
8268
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8273
|
-
|
|
8269
|
+
React.createElement(
|
|
8274
8270
|
'div',
|
|
8275
8271
|
{ className: 'multi-media-image-container' },
|
|
8276
|
-
imageBox &&
|
|
8272
|
+
imageBox && React.createElement(
|
|
8277
8273
|
LazyLoad,
|
|
8278
8274
|
{ once: true },
|
|
8279
|
-
|
|
8275
|
+
React.createElement(
|
|
8280
8276
|
'picture',
|
|
8281
8277
|
null,
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8278
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8279
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8280
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8281
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8286
8282
|
)
|
|
8287
8283
|
),
|
|
8288
|
-
media.caption &&
|
|
8284
|
+
media.caption && React.createElement(
|
|
8289
8285
|
'span',
|
|
8290
8286
|
{ className: 'multi-media-caption' },
|
|
8291
8287
|
media.caption
|
|
@@ -8295,7 +8291,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8295
8291
|
);
|
|
8296
8292
|
})
|
|
8297
8293
|
),
|
|
8298
|
-
|
|
8294
|
+
React.createElement(
|
|
8299
8295
|
'style',
|
|
8300
8296
|
{ jsx: 'true' },
|
|
8301
8297
|
'\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 '
|
|
@@ -8342,7 +8338,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8342
8338
|
}
|
|
8343
8339
|
};
|
|
8344
8340
|
|
|
8345
|
-
_this.wraperRef =
|
|
8341
|
+
_this.wraperRef = React.createRef();
|
|
8346
8342
|
_this.visible = false;
|
|
8347
8343
|
return _this;
|
|
8348
8344
|
}
|
|
@@ -8370,7 +8366,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8370
8366
|
_props$id = _props.id,
|
|
8371
8367
|
id = _props$id === undefined ? '' : _props$id;
|
|
8372
8368
|
|
|
8373
|
-
return
|
|
8369
|
+
return React.createElement(
|
|
8374
8370
|
'div',
|
|
8375
8371
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8376
8372
|
this.props.children
|
|
@@ -8379,7 +8375,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8379
8375
|
}]);
|
|
8380
8376
|
|
|
8381
8377
|
return InscreenSensor;
|
|
8382
|
-
}(
|
|
8378
|
+
}(React.Component);
|
|
8383
8379
|
|
|
8384
8380
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8385
8381
|
var nodes = _ref.nodes,
|
|
@@ -8488,33 +8484,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8488
8484
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8489
8485
|
var showReading = show ? 'showReading' : '';
|
|
8490
8486
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8491
|
-
return
|
|
8487
|
+
return React.createElement(
|
|
8492
8488
|
'div',
|
|
8493
8489
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8494
|
-
|
|
8490
|
+
React.createElement(
|
|
8495
8491
|
'a',
|
|
8496
8492
|
{ onClick: function onClick(e) {
|
|
8497
8493
|
return articleCardClickHandler(e);
|
|
8498
8494
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8499
|
-
|
|
8495
|
+
React.createElement(
|
|
8500
8496
|
'div',
|
|
8501
8497
|
{ className: 'prevNext-thumbnail' },
|
|
8502
|
-
|
|
8503
|
-
|
|
8498
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8499
|
+
React.createElement(
|
|
8504
8500
|
'div',
|
|
8505
8501
|
{ className: 'prevNext-reading ' + showReading },
|
|
8506
8502
|
articleLabel
|
|
8507
8503
|
)
|
|
8508
8504
|
),
|
|
8509
|
-
|
|
8505
|
+
React.createElement(
|
|
8510
8506
|
'div',
|
|
8511
8507
|
{ className: 'prevNext-summary' },
|
|
8512
|
-
|
|
8508
|
+
React.createElement(
|
|
8513
8509
|
'div',
|
|
8514
8510
|
{ className: 'prevNext-publishDate' },
|
|
8515
8511
|
moment(article.published).format('LL')
|
|
8516
8512
|
),
|
|
8517
|
-
|
|
8513
|
+
React.createElement(
|
|
8518
8514
|
'h2',
|
|
8519
8515
|
{ className: 'prevNext-title' },
|
|
8520
8516
|
article.title
|
|
@@ -8563,7 +8559,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8563
8559
|
|
|
8564
8560
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8565
8561
|
if (biography) {
|
|
8566
|
-
return
|
|
8562
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8567
8563
|
}
|
|
8568
8564
|
};
|
|
8569
8565
|
|
|
@@ -8649,7 +8645,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8649
8645
|
//console.log('useLayoutEffect')
|
|
8650
8646
|
if (!firstLoad) {
|
|
8651
8647
|
setUpArrowClicked(false);
|
|
8652
|
-
if (
|
|
8648
|
+
if (main_40) {
|
|
8653
8649
|
grabLoadedAds();
|
|
8654
8650
|
} else {
|
|
8655
8651
|
scrollToArticle();
|
|
@@ -8673,7 +8669,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8673
8669
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8674
8670
|
if (pageview) pageview(path);
|
|
8675
8671
|
|
|
8676
|
-
if (!
|
|
8672
|
+
if (!main_40) {
|
|
8677
8673
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8678
8674
|
if (window.googletag && googletag.pubadsReady) {
|
|
8679
8675
|
lib_3.refresh();
|
|
@@ -8681,7 +8677,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8681
8677
|
});
|
|
8682
8678
|
}
|
|
8683
8679
|
//Refresh leaderboard ad on mobile
|
|
8684
|
-
if (
|
|
8680
|
+
if (main_40) {
|
|
8685
8681
|
var leaderboardSlotId = '';
|
|
8686
8682
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8687
8683
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8721,38 +8717,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8721
8717
|
setSensorVisible(false);
|
|
8722
8718
|
};
|
|
8723
8719
|
|
|
8724
|
-
return
|
|
8725
|
-
|
|
8720
|
+
return React.createElement(
|
|
8721
|
+
React.Fragment,
|
|
8726
8722
|
null,
|
|
8727
|
-
|
|
8723
|
+
React.createElement(
|
|
8728
8724
|
'div',
|
|
8729
8725
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8730
|
-
|
|
8726
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8731
8727
|
return handleArrowClick();
|
|
8732
8728
|
} })
|
|
8733
8729
|
),
|
|
8734
|
-
|
|
8735
|
-
|
|
8730
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8731
|
+
React.createElement(
|
|
8736
8732
|
'div',
|
|
8737
8733
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8738
|
-
|
|
8734
|
+
React.createElement(
|
|
8739
8735
|
'h5',
|
|
8740
8736
|
{ className: 'objective-title' },
|
|
8741
8737
|
nodes.seriesTitle
|
|
8742
8738
|
),
|
|
8743
|
-
|
|
8739
|
+
React.createElement(
|
|
8744
8740
|
'div',
|
|
8745
8741
|
{ className: 'prevNextWrapper' },
|
|
8746
8742
|
PrevNextCards(false, -1)
|
|
8747
8743
|
)
|
|
8748
8744
|
),
|
|
8749
|
-
|
|
8750
|
-
|
|
8745
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8746
|
+
React.createElement(
|
|
8751
8747
|
'div',
|
|
8752
8748
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8753
|
-
|
|
8749
|
+
main_40 && Ads.map(function (ad, index) {
|
|
8754
8750
|
if (index === 0) {
|
|
8755
|
-
return
|
|
8751
|
+
return React.createElement(
|
|
8756
8752
|
'div',
|
|
8757
8753
|
{
|
|
8758
8754
|
key: 'addid-1',
|
|
@@ -8772,14 +8768,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8772
8768
|
}
|
|
8773
8769
|
})
|
|
8774
8770
|
),
|
|
8775
|
-
|
|
8771
|
+
React.createElement(
|
|
8776
8772
|
'div',
|
|
8777
8773
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8778
8774
|
Articles.map(function (article, index) {
|
|
8779
|
-
return
|
|
8775
|
+
return React.createElement(
|
|
8780
8776
|
'div',
|
|
8781
8777
|
{ key: article.title },
|
|
8782
|
-
|
|
8778
|
+
React.createElement(
|
|
8783
8779
|
InscreenSensor,
|
|
8784
8780
|
{
|
|
8785
8781
|
visible: sensorVisible,
|
|
@@ -8797,84 +8793,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8797
8793
|
}
|
|
8798
8794
|
}
|
|
8799
8795
|
} },
|
|
8800
|
-
|
|
8796
|
+
React.createElement(
|
|
8801
8797
|
Head,
|
|
8802
8798
|
null,
|
|
8803
|
-
currentTitle !== null &&
|
|
8799
|
+
currentTitle !== null && React.createElement(
|
|
8804
8800
|
'title',
|
|
8805
8801
|
{ key: 'title' },
|
|
8806
8802
|
currentTitle
|
|
8807
8803
|
),
|
|
8808
|
-
currentSummary !== null &&
|
|
8809
|
-
currentURL !== null &&
|
|
8810
|
-
currentTitle !== null &&
|
|
8811
|
-
currentThumbnail !== null &&
|
|
8812
|
-
currentSummary !== null &&
|
|
8813
|
-
currentTitle !== null &&
|
|
8814
|
-
currentThumbnail !== null &&
|
|
8815
|
-
currentSummary !== null &&
|
|
8804
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8805
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8806
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8807
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8808
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8809
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8810
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8811
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8816
8812
|
),
|
|
8817
|
-
|
|
8813
|
+
React.createElement(
|
|
8818
8814
|
'article',
|
|
8819
8815
|
{ className: 'article-wrapper' },
|
|
8820
|
-
|
|
8816
|
+
React.createElement(
|
|
8821
8817
|
'div',
|
|
8822
8818
|
{ className: 'article-publishDate' },
|
|
8823
8819
|
moment(article.published).format('LL')
|
|
8824
8820
|
),
|
|
8825
|
-
|
|
8821
|
+
React.createElement(
|
|
8826
8822
|
'div',
|
|
8827
8823
|
{ className: 'author-details-wrapper' },
|
|
8828
8824
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8829
|
-
return
|
|
8825
|
+
return React.createElement(
|
|
8830
8826
|
'span',
|
|
8831
8827
|
{ key: index },
|
|
8832
8828
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8833
8829
|
);
|
|
8834
8830
|
})
|
|
8835
8831
|
),
|
|
8836
|
-
|
|
8832
|
+
React.createElement(
|
|
8837
8833
|
'h2',
|
|
8838
8834
|
{ className: 'article-title' },
|
|
8839
8835
|
article.title
|
|
8840
8836
|
),
|
|
8841
|
-
|
|
8837
|
+
React.createElement(
|
|
8842
8838
|
'div',
|
|
8843
8839
|
{ className: 'mt-2 mb-2' },
|
|
8844
|
-
|
|
8840
|
+
React.createElement(BlockContent, _extends({
|
|
8845
8841
|
serializers: getSerializers,
|
|
8846
8842
|
videoAccountIDs: accountIDs,
|
|
8847
8843
|
blocks: article.text,
|
|
8848
8844
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8849
8845
|
}, client.config())),
|
|
8850
|
-
|
|
8846
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8851
8847
|
),
|
|
8852
|
-
Articles.length > 1 &&
|
|
8853
|
-
|
|
8848
|
+
Articles.length > 1 && React.createElement(
|
|
8849
|
+
React.Fragment,
|
|
8854
8850
|
null,
|
|
8855
|
-
|
|
8851
|
+
React.createElement(
|
|
8856
8852
|
'div',
|
|
8857
8853
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8858
|
-
|
|
8854
|
+
React.createElement(
|
|
8859
8855
|
'h5',
|
|
8860
8856
|
{ className: 'objective-title' },
|
|
8861
8857
|
nodes.seriesTitle
|
|
8862
8858
|
),
|
|
8863
|
-
|
|
8859
|
+
React.createElement(
|
|
8864
8860
|
'div',
|
|
8865
8861
|
{ className: 'prevNextWrapper' },
|
|
8866
8862
|
PrevNextCards(true, index)
|
|
8867
8863
|
)
|
|
8868
8864
|
),
|
|
8869
|
-
|
|
8865
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8870
8866
|
)
|
|
8871
8867
|
),
|
|
8872
|
-
|
|
8868
|
+
React.createElement(
|
|
8873
8869
|
'div',
|
|
8874
8870
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8875
|
-
|
|
8871
|
+
main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8876
8872
|
if (innerIndex === 0) {
|
|
8877
|
-
return
|
|
8873
|
+
return React.createElement(
|
|
8878
8874
|
'div',
|
|
8879
8875
|
{
|
|
8880
8876
|
key: 'addid-' + (index + 2),
|
|
@@ -8897,7 +8893,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8897
8893
|
)
|
|
8898
8894
|
);
|
|
8899
8895
|
}),
|
|
8900
|
-
|
|
8896
|
+
React.createElement(
|
|
8901
8897
|
'style',
|
|
8902
8898
|
{ jsx: 'true' },
|
|
8903
8899
|
'\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 '
|
|
@@ -8927,11 +8923,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8927
8923
|
};
|
|
8928
8924
|
}, [handleClickOutside]);
|
|
8929
8925
|
|
|
8930
|
-
return
|
|
8926
|
+
return React.createElement(
|
|
8931
8927
|
'div',
|
|
8932
8928
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8933
|
-
|
|
8934
|
-
|
|
8929
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8930
|
+
React.createElement(
|
|
8935
8931
|
'style',
|
|
8936
8932
|
{ jsx: 'true' },
|
|
8937
8933
|
'\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 '
|
|
@@ -8945,7 +8941,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8945
8941
|
}
|
|
8946
8942
|
};
|
|
8947
8943
|
|
|
8948
|
-
var FigureImage =
|
|
8944
|
+
var FigureImage = React.memo(function (_ref2) {
|
|
8949
8945
|
var node = _ref2.node,
|
|
8950
8946
|
client = _ref2.client,
|
|
8951
8947
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8953,13 +8949,13 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8953
8949
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8954
8950
|
|
|
8955
8951
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8956
|
-
return
|
|
8952
|
+
return React.createElement(
|
|
8957
8953
|
'picture',
|
|
8958
8954
|
null,
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8955
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8956
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8957
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8958
|
+
React.createElement('img', _extends({
|
|
8963
8959
|
style: figureImageStyle,
|
|
8964
8960
|
className: 'figure-image',
|
|
8965
8961
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9010,30 +9006,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9010
9006
|
|
|
9011
9007
|
var renderTooltip = function renderTooltip(props) {
|
|
9012
9008
|
if (infoBox[0].title) {
|
|
9013
|
-
return
|
|
9014
|
-
Popover
|
|
9009
|
+
return React.createElement(
|
|
9010
|
+
Popover,
|
|
9015
9011
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9016
|
-
|
|
9017
|
-
Popover
|
|
9012
|
+
React.createElement(
|
|
9013
|
+
Popover.Title,
|
|
9018
9014
|
{ as: 'h3' },
|
|
9019
9015
|
infoBox[0].title
|
|
9020
9016
|
),
|
|
9021
|
-
|
|
9022
|
-
Popover
|
|
9017
|
+
React.createElement(
|
|
9018
|
+
Popover.Content,
|
|
9023
9019
|
null,
|
|
9024
|
-
|
|
9020
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9025
9021
|
)
|
|
9026
9022
|
);
|
|
9027
9023
|
} else {
|
|
9028
|
-
return
|
|
9029
|
-
Tooltip
|
|
9030
|
-
_extends
|
|
9031
|
-
|
|
9024
|
+
return React.createElement(
|
|
9025
|
+
Tooltip,
|
|
9026
|
+
_extends({ id: 'button-tooltip' }, props),
|
|
9027
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9032
9028
|
);
|
|
9033
9029
|
}
|
|
9034
9030
|
};
|
|
9035
9031
|
|
|
9036
|
-
var FigureImageWOverLay =
|
|
9032
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9037
9033
|
var node = _ref3.node,
|
|
9038
9034
|
client = _ref3.client,
|
|
9039
9035
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9041,32 +9037,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9041
9037
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9042
9038
|
|
|
9043
9039
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9044
|
-
var triggerAction =
|
|
9045
|
-
var placementLocation =
|
|
9046
|
-
return
|
|
9040
|
+
var triggerAction = main_39 ? 'click' : 'hover';
|
|
9041
|
+
var placementLocation = main_39 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9042
|
+
return React.createElement(
|
|
9047
9043
|
'picture',
|
|
9048
9044
|
null,
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9045
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9046
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9047
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9048
|
+
main_39 && link ? React.createElement('img', _extends({
|
|
9053
9049
|
style: figureImageStyle,
|
|
9054
9050
|
className: 'figure-image',
|
|
9055
9051
|
src: urlFor({ source: node, client: client }),
|
|
9056
9052
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9057
|
-
}, !link && !
|
|
9053
|
+
}, !link && !main_39 && {
|
|
9058
9054
|
onClick: function onClick() {
|
|
9059
9055
|
return handleClickFigure(node, client);
|
|
9060
9056
|
}
|
|
9061
|
-
})) :
|
|
9057
|
+
})) : React.createElement(
|
|
9062
9058
|
OverlayTrigger,
|
|
9063
9059
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9064
|
-
|
|
9060
|
+
React.createElement('img', _extends({
|
|
9065
9061
|
style: figureImageStyle,
|
|
9066
9062
|
className: 'figure-image',
|
|
9067
9063
|
src: urlFor({ source: node, client: client }),
|
|
9068
9064
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9069
|
-
}, !link && !
|
|
9065
|
+
}, !link && !main_39 && {
|
|
9070
9066
|
onClick: function onClick() {
|
|
9071
9067
|
return handleClickFigure(node, client);
|
|
9072
9068
|
}
|
|
@@ -9115,13 +9111,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9115
9111
|
|
|
9116
9112
|
var FigureCaption = useCallback(function () {
|
|
9117
9113
|
if (imgcaption && imgcaption.length > 0) {
|
|
9118
|
-
return
|
|
9114
|
+
return React.createElement(
|
|
9119
9115
|
'div',
|
|
9120
9116
|
{ className: 'figure-caption' },
|
|
9121
|
-
|
|
9117
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9122
9118
|
);
|
|
9123
9119
|
} else if (caption) {
|
|
9124
|
-
return
|
|
9120
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9125
9121
|
} else return null;
|
|
9126
9122
|
}, [caption, imgcaption]);
|
|
9127
9123
|
|
|
@@ -9138,24 +9134,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9138
9134
|
setShowLightbox(true);
|
|
9139
9135
|
}, [node, client]);
|
|
9140
9136
|
|
|
9141
|
-
return
|
|
9142
|
-
|
|
9137
|
+
return React.createElement(
|
|
9138
|
+
React.Fragment,
|
|
9143
9139
|
null,
|
|
9144
|
-
infoBox.length >= 1 ?
|
|
9145
|
-
Figure$
|
|
9140
|
+
infoBox.length >= 1 ? React.createElement(
|
|
9141
|
+
Figure$2,
|
|
9146
9142
|
{ className: '' + class_name, style: figureStyle },
|
|
9147
|
-
link ?
|
|
9143
|
+
link ? React.createElement(
|
|
9148
9144
|
'a',
|
|
9149
9145
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
) :
|
|
9153
|
-
|
|
9146
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9147
|
+
React.createElement(FigureCaption, null)
|
|
9148
|
+
) : React.createElement(
|
|
9149
|
+
React.Fragment,
|
|
9154
9150
|
null,
|
|
9155
|
-
|
|
9156
|
-
|
|
9151
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9152
|
+
React.createElement(FigureCaption, null)
|
|
9157
9153
|
),
|
|
9158
|
-
|
|
9154
|
+
React.createElement(LightBox, {
|
|
9159
9155
|
showLightbox: showLightbox,
|
|
9160
9156
|
lightboxImgSrc: lightboxImgSrc,
|
|
9161
9157
|
closeLightbox: function closeLightbox() {
|
|
@@ -9163,21 +9159,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9163
9159
|
setShowLightbox(false);
|
|
9164
9160
|
}
|
|
9165
9161
|
})
|
|
9166
|
-
) :
|
|
9167
|
-
Figure$
|
|
9162
|
+
) : React.createElement(
|
|
9163
|
+
Figure$2,
|
|
9168
9164
|
{ className: '' + class_name, style: figureStyle },
|
|
9169
|
-
link ?
|
|
9165
|
+
link ? React.createElement(
|
|
9170
9166
|
'a',
|
|
9171
9167
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
) :
|
|
9175
|
-
|
|
9168
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9169
|
+
React.createElement(FigureCaption, null)
|
|
9170
|
+
) : React.createElement(
|
|
9171
|
+
React.Fragment,
|
|
9176
9172
|
null,
|
|
9177
|
-
|
|
9178
|
-
|
|
9173
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9174
|
+
React.createElement(FigureCaption, null)
|
|
9179
9175
|
),
|
|
9180
|
-
|
|
9176
|
+
React.createElement(LightBox, {
|
|
9181
9177
|
showLightbox: showLightbox,
|
|
9182
9178
|
lightboxImgSrc: lightboxImgSrc,
|
|
9183
9179
|
closeLightbox: function closeLightbox() {
|
|
@@ -9186,7 +9182,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9186
9182
|
}
|
|
9187
9183
|
})
|
|
9188
9184
|
),
|
|
9189
|
-
|
|
9185
|
+
React.createElement(
|
|
9190
9186
|
'style',
|
|
9191
9187
|
{ jsx: 'true' },
|
|
9192
9188
|
'\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 '
|
|
@@ -9194,7 +9190,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9194
9190
|
);
|
|
9195
9191
|
};
|
|
9196
9192
|
|
|
9197
|
-
var Figure =
|
|
9193
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9198
9194
|
|
|
9199
9195
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9200
9196
|
useEffect(function () {
|
|
@@ -9211,7 +9207,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9211
9207
|
}, [ref]);
|
|
9212
9208
|
}
|
|
9213
9209
|
|
|
9214
|
-
var FigureImage$1 =
|
|
9210
|
+
var FigureImage$1 = React.memo(function (_ref) {
|
|
9215
9211
|
var imagesCount = _ref.imagesCount,
|
|
9216
9212
|
image = _ref.image,
|
|
9217
9213
|
client = _ref.client,
|
|
@@ -9219,13 +9215,13 @@ var FigureImage$1 = React__default.memo(function (_ref) {
|
|
|
9219
9215
|
link = _ref.link,
|
|
9220
9216
|
handleClickFigure = _ref.handleClickFigure;
|
|
9221
9217
|
|
|
9222
|
-
return
|
|
9218
|
+
return React.createElement(
|
|
9223
9219
|
'picture',
|
|
9224
9220
|
null,
|
|
9225
|
-
|
|
9226
|
-
|
|
9227
|
-
|
|
9228
|
-
|
|
9221
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9222
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9223
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9224
|
+
React.createElement('img', _extends({
|
|
9229
9225
|
'images-count': imagesCount,
|
|
9230
9226
|
className: 'multi-figure-image',
|
|
9231
9227
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9262,13 +9258,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9262
9258
|
imgcaption = _ref2.imgcaption;
|
|
9263
9259
|
|
|
9264
9260
|
if (imgcaption && imgcaption.length > 0) {
|
|
9265
|
-
return
|
|
9261
|
+
return React.createElement(
|
|
9266
9262
|
'div',
|
|
9267
9263
|
{ className: 'multi-figure-caption' },
|
|
9268
|
-
|
|
9264
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9269
9265
|
);
|
|
9270
9266
|
} else if (caption) {
|
|
9271
|
-
return
|
|
9267
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9272
9268
|
} else return null;
|
|
9273
9269
|
};
|
|
9274
9270
|
|
|
@@ -9277,7 +9273,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9277
9273
|
setOpenImg(true);
|
|
9278
9274
|
}, [client]);
|
|
9279
9275
|
|
|
9280
|
-
var FigureImageWOverLay =
|
|
9276
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9281
9277
|
var imagesCount = _ref3.imagesCount,
|
|
9282
9278
|
image = _ref3.image,
|
|
9283
9279
|
client = _ref3.client,
|
|
@@ -9285,32 +9281,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9285
9281
|
link = _ref3.link,
|
|
9286
9282
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9287
9283
|
|
|
9288
|
-
var triggerAction =
|
|
9289
|
-
var placementLocation =
|
|
9290
|
-
return
|
|
9284
|
+
var triggerAction = main_39 ? 'click' : 'hover';
|
|
9285
|
+
var placementLocation = main_39 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9286
|
+
return React.createElement(
|
|
9291
9287
|
'picture',
|
|
9292
9288
|
null,
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9289
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9290
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9291
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9292
|
+
main_39 && link ? React.createElement('img', _extends({
|
|
9297
9293
|
'images-count': imagesCount,
|
|
9298
9294
|
className: 'multi-figure-image',
|
|
9299
9295
|
src: urlFor({ source: image, client: client }),
|
|
9300
9296
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9301
|
-
}, !link && !
|
|
9297
|
+
}, !link && !main_39 && {
|
|
9302
9298
|
onClick: function onClick() {
|
|
9303
9299
|
return handleClickFigure(image, client);
|
|
9304
9300
|
}
|
|
9305
|
-
})) :
|
|
9301
|
+
})) : React.createElement(
|
|
9306
9302
|
OverlayTrigger,
|
|
9307
9303
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9308
|
-
|
|
9304
|
+
React.createElement('img', _extends({
|
|
9309
9305
|
'images-count': imagesCount,
|
|
9310
9306
|
className: 'multi-figure-image',
|
|
9311
9307
|
src: urlFor({ source: image, client: client }),
|
|
9312
9308
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9313
|
-
}, !link && !
|
|
9309
|
+
}, !link && !main_39 && {
|
|
9314
9310
|
onClick: function onClick() {
|
|
9315
9311
|
return handleClickFigure(image, client);
|
|
9316
9312
|
}
|
|
@@ -9321,102 +9317,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9321
9317
|
|
|
9322
9318
|
var renderTooltip = function renderTooltip(image) {
|
|
9323
9319
|
if (image.infoBox[0].title) {
|
|
9324
|
-
return
|
|
9325
|
-
Popover
|
|
9320
|
+
return React.createElement(
|
|
9321
|
+
Popover,
|
|
9326
9322
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9327
|
-
|
|
9328
|
-
Popover
|
|
9323
|
+
React.createElement(
|
|
9324
|
+
Popover.Title,
|
|
9329
9325
|
{ as: 'h3' },
|
|
9330
9326
|
image.infoBox[0].title
|
|
9331
9327
|
),
|
|
9332
|
-
|
|
9333
|
-
Popover
|
|
9328
|
+
React.createElement(
|
|
9329
|
+
Popover.Content,
|
|
9334
9330
|
null,
|
|
9335
|
-
|
|
9331
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9336
9332
|
)
|
|
9337
9333
|
);
|
|
9338
9334
|
} else {
|
|
9339
|
-
return
|
|
9340
|
-
Tooltip
|
|
9341
|
-
_extends
|
|
9342
|
-
|
|
9335
|
+
return React.createElement(
|
|
9336
|
+
Tooltip,
|
|
9337
|
+
_extends({ id: 'button-tooltip' }, props),
|
|
9338
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9343
9339
|
);
|
|
9344
9340
|
}
|
|
9345
9341
|
};
|
|
9346
9342
|
|
|
9347
9343
|
if (images && images.length > 0) {
|
|
9348
|
-
return
|
|
9344
|
+
return React.createElement(
|
|
9349
9345
|
'div',
|
|
9350
9346
|
{ className: 'multi-figure-container' },
|
|
9351
|
-
|
|
9347
|
+
React.createElement(
|
|
9352
9348
|
Row$1,
|
|
9353
9349
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9354
9350
|
images.map(function (image, index) {
|
|
9355
9351
|
if (image.infoBox) {
|
|
9356
|
-
return
|
|
9352
|
+
return React.createElement(
|
|
9357
9353
|
Col$1,
|
|
9358
9354
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9359
|
-
image.link ?
|
|
9355
|
+
image.link ? React.createElement(
|
|
9360
9356
|
'a',
|
|
9361
|
-
_extends
|
|
9362
|
-
|
|
9357
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9358
|
+
React.createElement(
|
|
9363
9359
|
'div',
|
|
9364
9360
|
{ className: 'multi-figure-image-container' },
|
|
9365
|
-
|
|
9361
|
+
React.createElement(
|
|
9366
9362
|
LazyLoad,
|
|
9367
9363
|
{ once: true },
|
|
9368
|
-
|
|
9364
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9369
9365
|
),
|
|
9370
|
-
|
|
9366
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9371
9367
|
)
|
|
9372
|
-
) :
|
|
9368
|
+
) : React.createElement(
|
|
9373
9369
|
'div',
|
|
9374
9370
|
{ className: 'multi-figure-image-container' },
|
|
9375
|
-
|
|
9371
|
+
React.createElement(
|
|
9376
9372
|
LazyLoad,
|
|
9377
9373
|
{ once: true },
|
|
9378
|
-
|
|
9374
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9379
9375
|
),
|
|
9380
|
-
|
|
9376
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9381
9377
|
)
|
|
9382
9378
|
);
|
|
9383
9379
|
} else {
|
|
9384
|
-
return
|
|
9380
|
+
return React.createElement(
|
|
9385
9381
|
Col$1,
|
|
9386
9382
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9387
|
-
image.link ?
|
|
9383
|
+
image.link ? React.createElement(
|
|
9388
9384
|
'a',
|
|
9389
|
-
_extends
|
|
9390
|
-
|
|
9385
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9386
|
+
React.createElement(
|
|
9391
9387
|
'div',
|
|
9392
9388
|
{ className: 'multi-figure-image-container' },
|
|
9393
|
-
|
|
9389
|
+
React.createElement(
|
|
9394
9390
|
LazyLoad,
|
|
9395
9391
|
{ once: true },
|
|
9396
|
-
|
|
9392
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9397
9393
|
),
|
|
9398
|
-
|
|
9394
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9399
9395
|
)
|
|
9400
|
-
) :
|
|
9396
|
+
) : React.createElement(
|
|
9401
9397
|
'div',
|
|
9402
9398
|
{ className: 'multi-figure-image-container' },
|
|
9403
|
-
|
|
9399
|
+
React.createElement(
|
|
9404
9400
|
LazyLoad,
|
|
9405
9401
|
{ once: true },
|
|
9406
|
-
|
|
9402
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9407
9403
|
),
|
|
9408
|
-
|
|
9404
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9409
9405
|
)
|
|
9410
9406
|
);
|
|
9411
9407
|
}
|
|
9412
9408
|
})
|
|
9413
9409
|
),
|
|
9414
|
-
|
|
9410
|
+
React.createElement(
|
|
9415
9411
|
'div',
|
|
9416
9412
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9417
|
-
|
|
9413
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9418
9414
|
),
|
|
9419
|
-
|
|
9415
|
+
React.createElement(
|
|
9420
9416
|
'style',
|
|
9421
9417
|
{ jsx: 'true' },
|
|
9422
9418
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n cursor: pointer;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9465,23 +9461,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9465
9461
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9466
9462
|
}, []);
|
|
9467
9463
|
|
|
9468
|
-
return
|
|
9469
|
-
|
|
9464
|
+
return React.createElement(
|
|
9465
|
+
React.Fragment,
|
|
9470
9466
|
null,
|
|
9471
|
-
|
|
9467
|
+
React.createElement(
|
|
9472
9468
|
Head,
|
|
9473
9469
|
null,
|
|
9474
|
-
|
|
9470
|
+
React.createElement('script', {
|
|
9475
9471
|
dangerouslySetInnerHTML: {
|
|
9476
9472
|
__html: 'history.scrollRestoration = "manual"'
|
|
9477
9473
|
}
|
|
9478
9474
|
})
|
|
9479
9475
|
),
|
|
9480
|
-
|
|
9476
|
+
React.createElement(
|
|
9481
9477
|
'div',
|
|
9482
9478
|
{ id: elementId },
|
|
9483
|
-
|
|
9484
|
-
|
|
9479
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9480
|
+
React.createElement(
|
|
9485
9481
|
'style',
|
|
9486
9482
|
{ jsx: 'true' },
|
|
9487
9483
|
'\n #' + elementId + '::before {\n display: block;\n content: \' \';\n margin-top: -' + (offsetHeight + offsetHeightBuffer) + 'px;\n height: ' + (offsetHeight + offsetHeightBuffer) + 'px;\n visibility: hidden;\n pointer-events: none;\n }\n '
|
|
@@ -9490,258 +9486,6 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9490
9486
|
);
|
|
9491
9487
|
};
|
|
9492
9488
|
|
|
9493
|
-
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9494
|
-
|
|
9495
|
-
exports.__esModule = true;
|
|
9496
|
-
|
|
9497
|
-
exports.default = function (obj, keys) {
|
|
9498
|
-
var target = {};
|
|
9499
|
-
|
|
9500
|
-
for (var i in obj) {
|
|
9501
|
-
if (keys.indexOf(i) >= 0) continue;
|
|
9502
|
-
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9503
|
-
target[i] = obj[i];
|
|
9504
|
-
}
|
|
9505
|
-
|
|
9506
|
-
return target;
|
|
9507
|
-
};
|
|
9508
|
-
});
|
|
9509
|
-
|
|
9510
|
-
unwrapExports(objectWithoutProperties);
|
|
9511
|
-
|
|
9512
|
-
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9513
|
-
|
|
9514
|
-
exports.__esModule = true;
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
var _inherits3 = _interopRequireDefault(inherits);
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
var _react2 = _interopRequireDefault(React__default);
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
9543
|
-
|
|
9544
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9545
|
-
var noop = function noop() {};
|
|
9546
|
-
|
|
9547
|
-
var ScriptTag = function (_Component) {
|
|
9548
|
-
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9549
|
-
|
|
9550
|
-
ScriptTag.removeNode = function removeNode(node) {
|
|
9551
|
-
if (node) {
|
|
9552
|
-
node.parentNode.removeChild(node);
|
|
9553
|
-
}
|
|
9554
|
-
};
|
|
9555
|
-
|
|
9556
|
-
function ScriptTag(props, context) {
|
|
9557
|
-
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9558
|
-
|
|
9559
|
-
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9560
|
-
|
|
9561
|
-
_this.domRef = null;
|
|
9562
|
-
_this.state = {
|
|
9563
|
-
isHydrated: props.isHydrating,
|
|
9564
|
-
additionalNode: null,
|
|
9565
|
-
removeAdditionalNode: null
|
|
9566
|
-
};
|
|
9567
|
-
return _this;
|
|
9568
|
-
}
|
|
9569
|
-
|
|
9570
|
-
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9571
|
-
var _props = this.props,
|
|
9572
|
-
onError = _props.onError,
|
|
9573
|
-
onLoad = _props.onLoad,
|
|
9574
|
-
nonce = _props.nonce;
|
|
9575
|
-
|
|
9576
|
-
// Create a new HTML script element
|
|
9577
|
-
|
|
9578
|
-
var newElement = document.createElement("script");
|
|
9579
|
-
|
|
9580
|
-
// Copy all attribute values
|
|
9581
|
-
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9582
|
-
var attr = this.domRef.attributes[i];
|
|
9583
|
-
if (attr.nodeName === 'nonce') {
|
|
9584
|
-
// The browser clears the nonce value - grab from props
|
|
9585
|
-
newElement.setAttribute(attr.nodeName, nonce);
|
|
9586
|
-
} else {
|
|
9587
|
-
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9588
|
-
}
|
|
9589
|
-
}
|
|
9590
|
-
|
|
9591
|
-
// Copy the inner script
|
|
9592
|
-
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9593
|
-
newElement.innerHTML = this.domRef.innerHTML;
|
|
9594
|
-
}
|
|
9595
|
-
|
|
9596
|
-
// Bind event listeners
|
|
9597
|
-
newElement.addEventListener('load', onLoad);
|
|
9598
|
-
newElement.addEventListener('error', onError);
|
|
9599
|
-
|
|
9600
|
-
// Append the new script tag
|
|
9601
|
-
this.domRef.parentNode.appendChild(newElement);
|
|
9602
|
-
return newElement;
|
|
9603
|
-
};
|
|
9604
|
-
|
|
9605
|
-
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9606
|
-
var isHydrated = this.state.isHydrated;
|
|
9607
|
-
|
|
9608
|
-
if (isHydrated) {
|
|
9609
|
-
// was rendered on server, don't replace elements when hydrating
|
|
9610
|
-
return;
|
|
9611
|
-
}
|
|
9612
|
-
|
|
9613
|
-
this.setState({
|
|
9614
|
-
additionalNode: this.appendAdditionalElement(),
|
|
9615
|
-
removeAdditionalNode: null
|
|
9616
|
-
});
|
|
9617
|
-
};
|
|
9618
|
-
|
|
9619
|
-
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9620
|
-
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9621
|
-
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9622
|
-
|
|
9623
|
-
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9624
|
-
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9625
|
-
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9626
|
-
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9627
|
-
// This really complicates the component - for now we'll leave it as is.
|
|
9628
|
-
var _props2 = this.props,
|
|
9629
|
-
src = _props2.src,
|
|
9630
|
-
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9631
|
-
|
|
9632
|
-
if (src && src === nextProps.src) {
|
|
9633
|
-
// The 'src' attribute has not changed
|
|
9634
|
-
return;
|
|
9635
|
-
}
|
|
9636
|
-
|
|
9637
|
-
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9638
|
-
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9639
|
-
return;
|
|
9640
|
-
}
|
|
9641
|
-
|
|
9642
|
-
this.setState({
|
|
9643
|
-
removeAdditionalNode: this.state.additionalNode,
|
|
9644
|
-
additionalNode: null
|
|
9645
|
-
});
|
|
9646
|
-
};
|
|
9647
|
-
|
|
9648
|
-
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9649
|
-
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9650
|
-
};
|
|
9651
|
-
|
|
9652
|
-
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9653
|
-
var _state = this.state,
|
|
9654
|
-
additionalNode = _state.additionalNode,
|
|
9655
|
-
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9656
|
-
|
|
9657
|
-
if (additionalNode === null) {
|
|
9658
|
-
this.setState({
|
|
9659
|
-
additionalNode: this.appendAdditionalElement()
|
|
9660
|
-
});
|
|
9661
|
-
}
|
|
9662
|
-
|
|
9663
|
-
if (removeAdditionalNode !== null) {
|
|
9664
|
-
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9665
|
-
this.setState({
|
|
9666
|
-
removeAdditionalNode: null
|
|
9667
|
-
});
|
|
9668
|
-
}
|
|
9669
|
-
};
|
|
9670
|
-
|
|
9671
|
-
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9672
|
-
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9673
|
-
ScriptTag.removeNode(this.state.additionalNode);
|
|
9674
|
-
};
|
|
9675
|
-
|
|
9676
|
-
ScriptTag.prototype.render = function render() {
|
|
9677
|
-
var _this2 = this;
|
|
9678
|
-
|
|
9679
|
-
var additionalNode = this.state.additionalNode;
|
|
9680
|
-
|
|
9681
|
-
if (additionalNode !== null) {
|
|
9682
|
-
return null;
|
|
9683
|
-
}
|
|
9684
|
-
|
|
9685
|
-
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9686
|
-
// eslint-disable-next-line no-unused-vars
|
|
9687
|
-
var _props3 = this.props,
|
|
9688
|
-
isHydrating = _props3.isHydrating,
|
|
9689
|
-
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9690
|
-
|
|
9691
|
-
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9692
|
-
return _this2.domRef = tag;
|
|
9693
|
-
} }));
|
|
9694
|
-
};
|
|
9695
|
-
|
|
9696
|
-
return ScriptTag;
|
|
9697
|
-
}(React__default.Component);
|
|
9698
|
-
|
|
9699
|
-
ScriptTag.propTypes = {
|
|
9700
|
-
/**
|
|
9701
|
-
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9702
|
-
*/
|
|
9703
|
-
isHydrating: _propTypes2.default.bool,
|
|
9704
|
-
|
|
9705
|
-
// Standard <script> tag props
|
|
9706
|
-
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9707
|
-
crossOrigin: _propTypes2.default.string,
|
|
9708
|
-
defer: _propTypes2.default.bool,
|
|
9709
|
-
integrity: _propTypes2.default.string,
|
|
9710
|
-
nonce: _propTypes2.default.string,
|
|
9711
|
-
src: _propTypes2.default.string,
|
|
9712
|
-
text: _propTypes2.default.string,
|
|
9713
|
-
type: _propTypes2.default.string,
|
|
9714
|
-
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9715
|
-
|
|
9716
|
-
// globals
|
|
9717
|
-
onError: _propTypes2.default.func,
|
|
9718
|
-
onLoad: _propTypes2.default.func
|
|
9719
|
-
};
|
|
9720
|
-
ScriptTag.defaultProps = {
|
|
9721
|
-
isHydrating: false,
|
|
9722
|
-
onError: noop,
|
|
9723
|
-
onLoad: noop
|
|
9724
|
-
};
|
|
9725
|
-
exports.default = ScriptTag;
|
|
9726
|
-
});
|
|
9727
|
-
|
|
9728
|
-
unwrapExports(ScriptTag_1);
|
|
9729
|
-
|
|
9730
|
-
var lib = createCommonjsModule(function (module, exports) {
|
|
9731
|
-
|
|
9732
|
-
exports.__esModule = true;
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
9737
|
-
|
|
9738
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9739
|
-
|
|
9740
|
-
exports.default = _ScriptTag2.default;
|
|
9741
|
-
});
|
|
9742
|
-
|
|
9743
|
-
var ScriptTag = unwrapExports(lib);
|
|
9744
|
-
|
|
9745
9489
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
9746
9490
|
|
|
9747
9491
|
var FormAssembly = function FormAssembly(props) {
|
|
@@ -9773,11 +9517,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9773
9517
|
}, []);
|
|
9774
9518
|
|
|
9775
9519
|
if (iframeSrc) {
|
|
9776
|
-
return
|
|
9520
|
+
return React.createElement(
|
|
9777
9521
|
'section',
|
|
9778
9522
|
{ className: 'form-assembly' },
|
|
9779
|
-
|
|
9780
|
-
|
|
9523
|
+
React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9524
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9781
9525
|
);
|
|
9782
9526
|
}
|
|
9783
9527
|
|
|
@@ -9814,27 +9558,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9814
9558
|
return window.removeEventListener('resize', handleResize);
|
|
9815
9559
|
};
|
|
9816
9560
|
}, []);
|
|
9817
|
-
return
|
|
9561
|
+
return React.createElement(
|
|
9818
9562
|
'div',
|
|
9819
9563
|
{ className: 'blockTableHolder', ref: holder },
|
|
9820
|
-
|
|
9564
|
+
React.createElement(
|
|
9821
9565
|
'div',
|
|
9822
9566
|
{ className: 'blockTable' },
|
|
9823
9567
|
rows && rows.map(function (row) {
|
|
9824
|
-
return
|
|
9568
|
+
return React.createElement(
|
|
9825
9569
|
'div',
|
|
9826
9570
|
{ className: 'blockTableRow' },
|
|
9827
9571
|
row.cells && row.cells.map(function (cell) {
|
|
9828
|
-
return
|
|
9572
|
+
return React.createElement(
|
|
9829
9573
|
'div',
|
|
9830
9574
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9831
|
-
|
|
9575
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9832
9576
|
);
|
|
9833
9577
|
})
|
|
9834
9578
|
);
|
|
9835
9579
|
})
|
|
9836
9580
|
),
|
|
9837
|
-
|
|
9581
|
+
React.createElement(
|
|
9838
9582
|
'style',
|
|
9839
9583
|
{ jsx: true },
|
|
9840
9584
|
'\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 '
|
|
@@ -9913,12 +9657,12 @@ var getSerializers = function getSerializers() {
|
|
|
9913
9657
|
var node = _ref.node;
|
|
9914
9658
|
var url = node.url;
|
|
9915
9659
|
|
|
9916
|
-
return
|
|
9660
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9917
9661
|
},
|
|
9918
9662
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9919
9663
|
var node = _ref2.node;
|
|
9920
9664
|
|
|
9921
|
-
return
|
|
9665
|
+
return React.createElement(YouTubeGallery, {
|
|
9922
9666
|
nodes: node,
|
|
9923
9667
|
article: article,
|
|
9924
9668
|
meta: meta,
|
|
@@ -9932,7 +9676,7 @@ var getSerializers = function getSerializers() {
|
|
|
9932
9676
|
articleSeries: function articleSeries(_ref3) {
|
|
9933
9677
|
var node = _ref3.node;
|
|
9934
9678
|
|
|
9935
|
-
return
|
|
9679
|
+
return React.createElement(ArticleSeries, {
|
|
9936
9680
|
nodes: node,
|
|
9937
9681
|
accountIDs: videoAccountIDs || {},
|
|
9938
9682
|
pageview: pageview,
|
|
@@ -9945,61 +9689,61 @@ var getSerializers = function getSerializers() {
|
|
|
9945
9689
|
figure: function figure(_ref4) {
|
|
9946
9690
|
var node = _ref4.node;
|
|
9947
9691
|
|
|
9948
|
-
return
|
|
9692
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9949
9693
|
},
|
|
9950
9694
|
multifigure: function multifigure(_ref5) {
|
|
9951
9695
|
var node = _ref5.node;
|
|
9952
9696
|
|
|
9953
|
-
return
|
|
9697
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9954
9698
|
},
|
|
9955
9699
|
slideshow: function slideshow(_ref6) {
|
|
9956
9700
|
var node = _ref6.node;
|
|
9957
9701
|
var slides = node.slides;
|
|
9958
9702
|
|
|
9959
|
-
return
|
|
9703
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9960
9704
|
},
|
|
9961
9705
|
sidebar: function sidebar(_ref7) {
|
|
9962
9706
|
var node = _ref7.node;
|
|
9963
9707
|
var caption = node.caption,
|
|
9964
9708
|
content = node.content;
|
|
9965
9709
|
|
|
9966
|
-
return
|
|
9710
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9967
9711
|
},
|
|
9968
9712
|
datatable: function datatable(_ref8) {
|
|
9969
9713
|
var node = _ref8.node;
|
|
9970
9714
|
var table = node.table;
|
|
9971
9715
|
|
|
9972
|
-
return
|
|
9716
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9973
9717
|
},
|
|
9974
9718
|
media: function media(_ref9) {
|
|
9975
9719
|
var node = _ref9.node;
|
|
9976
9720
|
|
|
9977
|
-
return
|
|
9721
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9978
9722
|
},
|
|
9979
9723
|
iframe: function iframe(_ref10) {
|
|
9980
9724
|
var node = _ref10.node;
|
|
9981
9725
|
|
|
9982
|
-
return
|
|
9726
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9983
9727
|
},
|
|
9984
9728
|
video: function video(_ref11) {
|
|
9985
9729
|
var node = _ref11.node;
|
|
9986
9730
|
|
|
9987
|
-
return
|
|
9731
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9988
9732
|
},
|
|
9989
9733
|
audio: function audio(_ref12) {
|
|
9990
9734
|
var node = _ref12.node;
|
|
9991
9735
|
|
|
9992
|
-
return
|
|
9736
|
+
return React.createElement(Audio, { node: node });
|
|
9993
9737
|
},
|
|
9994
9738
|
poll: function poll(_ref13) {
|
|
9995
9739
|
var node = _ref13.node;
|
|
9996
9740
|
|
|
9997
|
-
return
|
|
9741
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9998
9742
|
},
|
|
9999
9743
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10000
9744
|
var node = _ref14.node;
|
|
10001
9745
|
|
|
10002
|
-
return
|
|
9746
|
+
return React.createElement(Poll$1, {
|
|
10003
9747
|
node: node,
|
|
10004
9748
|
client: client,
|
|
10005
9749
|
pageview: pageview,
|
|
@@ -10013,35 +9757,35 @@ var getSerializers = function getSerializers() {
|
|
|
10013
9757
|
var node = _ref15.node;
|
|
10014
9758
|
var quizzes = node.quizzes;
|
|
10015
9759
|
|
|
10016
|
-
return
|
|
9760
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
10017
9761
|
},
|
|
10018
9762
|
leads: function leads(_ref16) {
|
|
10019
9763
|
var node = _ref16.node;
|
|
10020
9764
|
var leadID = node.leadID;
|
|
10021
9765
|
|
|
10022
9766
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10023
|
-
return
|
|
9767
|
+
return React.createElement(Leads, { url: url });
|
|
10024
9768
|
},
|
|
10025
9769
|
slideshows: function slideshows(_ref17) {
|
|
10026
9770
|
var node = _ref17.node;
|
|
10027
9771
|
|
|
10028
|
-
return
|
|
9772
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
10029
9773
|
},
|
|
10030
9774
|
nativeAd: function nativeAd(_ref18) {
|
|
10031
9775
|
var node = _ref18.node;
|
|
10032
9776
|
|
|
10033
|
-
return
|
|
9777
|
+
return React.createElement(NativeAd, { node: node });
|
|
10034
9778
|
},
|
|
10035
9779
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10036
9780
|
var node = _ref19.node;
|
|
10037
9781
|
|
|
10038
|
-
return
|
|
9782
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10039
9783
|
},
|
|
10040
9784
|
hrtag: function hrtag() {
|
|
10041
|
-
return
|
|
9785
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10042
9786
|
},
|
|
10043
9787
|
brtag: function brtag() {
|
|
10044
|
-
return
|
|
9788
|
+
return React.createElement('br', { className: 'line-break' });
|
|
10045
9789
|
},
|
|
10046
9790
|
formstack: function formstack(_ref20) {
|
|
10047
9791
|
var node = _ref20.node;
|
|
@@ -10049,29 +9793,29 @@ var getSerializers = function getSerializers() {
|
|
|
10049
9793
|
Caption = node.Caption,
|
|
10050
9794
|
needSegmentSupport = node.needSegmentSupport;
|
|
10051
9795
|
|
|
10052
|
-
return
|
|
9796
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10053
9797
|
},
|
|
10054
9798
|
formassembly: FormAssembly,
|
|
10055
9799
|
multimedia: function multimedia(_ref21) {
|
|
10056
9800
|
var node = _ref21.node;
|
|
10057
9801
|
|
|
10058
|
-
return
|
|
9802
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
10059
9803
|
},
|
|
10060
9804
|
blockTable: function blockTable(_ref22) {
|
|
10061
9805
|
var node = _ref22.node;
|
|
10062
|
-
return
|
|
9806
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10063
9807
|
}
|
|
10064
9808
|
},
|
|
10065
9809
|
marks: {
|
|
10066
9810
|
superscript: function superscript(props) {
|
|
10067
|
-
return
|
|
9811
|
+
return React.createElement(
|
|
10068
9812
|
'sup',
|
|
10069
9813
|
null,
|
|
10070
9814
|
props.children
|
|
10071
9815
|
);
|
|
10072
9816
|
},
|
|
10073
9817
|
subscript: function subscript(props) {
|
|
10074
|
-
return
|
|
9818
|
+
return React.createElement(
|
|
10075
9819
|
'sub',
|
|
10076
9820
|
null,
|
|
10077
9821
|
props.children
|
|
@@ -10088,7 +9832,7 @@ var getSerializers = function getSerializers() {
|
|
|
10088
9832
|
if (href && href.charAt(0) === '#') {
|
|
10089
9833
|
var elementId = href.slice(1);
|
|
10090
9834
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10091
|
-
return
|
|
9835
|
+
return React.createElement(
|
|
10092
9836
|
'a',
|
|
10093
9837
|
{ onClick: function onClick() {
|
|
10094
9838
|
return ScrollToElement(elementId);
|
|
@@ -10098,15 +9842,15 @@ var getSerializers = function getSerializers() {
|
|
|
10098
9842
|
}
|
|
10099
9843
|
|
|
10100
9844
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10101
|
-
return href ?
|
|
9845
|
+
return href ? React.createElement(
|
|
10102
9846
|
'a',
|
|
10103
|
-
_extends
|
|
9847
|
+
_extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10104
9848
|
children
|
|
10105
9849
|
) : children;
|
|
10106
9850
|
},
|
|
10107
9851
|
alignleft: function alignleft(_ref23) {
|
|
10108
9852
|
var children = _ref23.children;
|
|
10109
|
-
return
|
|
9853
|
+
return React.createElement(
|
|
10110
9854
|
'div',
|
|
10111
9855
|
{ style: { textAlign: 'left' } },
|
|
10112
9856
|
children
|
|
@@ -10114,7 +9858,7 @@ var getSerializers = function getSerializers() {
|
|
|
10114
9858
|
},
|
|
10115
9859
|
alignright: function alignright(_ref24) {
|
|
10116
9860
|
var children = _ref24.children;
|
|
10117
|
-
return
|
|
9861
|
+
return React.createElement(
|
|
10118
9862
|
'div',
|
|
10119
9863
|
{ style: { textAlign: 'right' } },
|
|
10120
9864
|
children
|
|
@@ -10122,7 +9866,7 @@ var getSerializers = function getSerializers() {
|
|
|
10122
9866
|
},
|
|
10123
9867
|
aligncenter: function aligncenter(_ref25) {
|
|
10124
9868
|
var children = _ref25.children;
|
|
10125
|
-
return
|
|
9869
|
+
return React.createElement(
|
|
10126
9870
|
'div',
|
|
10127
9871
|
{ style: { textAlign: 'center' } },
|
|
10128
9872
|
children
|
|
@@ -10130,7 +9874,7 @@ var getSerializers = function getSerializers() {
|
|
|
10130
9874
|
},
|
|
10131
9875
|
alignjustify: function alignjustify(_ref26) {
|
|
10132
9876
|
var children = _ref26.children;
|
|
10133
|
-
return
|
|
9877
|
+
return React.createElement(
|
|
10134
9878
|
'div',
|
|
10135
9879
|
{ style: { textAlign: 'justify' } },
|
|
10136
9880
|
children
|
|
@@ -10140,7 +9884,7 @@ var getSerializers = function getSerializers() {
|
|
|
10140
9884
|
var children = props.children,
|
|
10141
9885
|
color = props.mark.color;
|
|
10142
9886
|
|
|
10143
|
-
return
|
|
9887
|
+
return React.createElement(
|
|
10144
9888
|
'span',
|
|
10145
9889
|
{ style: { color: color ? color.hex : null } },
|
|
10146
9890
|
children
|