@mjhls/mjh-framework 1.0.866-beta.0 → 1.0.866-d4d665
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 -16
- package/dist/cjs/AD300x250x600.js +19 -16
- package/dist/cjs/AD728x90.js +20 -17
- package/dist/cjs/ADFloatingFooter.js +21 -18
- package/dist/cjs/ADFooter.js +14 -11
- package/dist/cjs/ADGutter.js +21 -18
- package/dist/cjs/{ADInfeed-7c09edba.js → ADInfeed-799275aa.js} +12 -10
- package/dist/cjs/ADSkyscraper.js +21 -18
- package/dist/cjs/ADSponsoredResources.js +21 -18
- package/dist/cjs/ADWebcast.js +21 -18
- package/dist/cjs/ADWelcome.js +25 -22
- package/dist/cjs/{ADlgInfeed-2e7effc7.js → ADlgInfeed-591d014e.js} +8 -7
- package/dist/cjs/AccordionPanel.js +29 -25
- package/dist/cjs/AdSlot.js +23 -20
- package/dist/cjs/AdSlotsProvider.js +18 -907
- package/dist/cjs/AlgoliaSearch.js +978 -850
- package/dist/cjs/AlphabeticList.js +24 -21
- package/dist/cjs/ArticleCarousel.js +16 -13
- package/dist/cjs/ArticleProgramLandingPage.js +40 -37
- package/dist/cjs/ArticleSeriesLandingPage.js +35 -32
- package/dist/cjs/ArticleSeriesListing.js +49 -46
- package/dist/cjs/Auth.js +205 -1198
- package/dist/cjs/AuthWrapper.js +306 -262
- 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 -71
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +30 -25
- package/dist/cjs/Column3.js +46 -41
- package/dist/cjs/ConferenceArticleCard.js +33 -35
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +97 -91
- package/dist/cjs/DeckQueue.js +82 -77
- package/dist/cjs/{Dfp-14d2455c.js → Dfp-391fd124.js} +28 -25
- package/dist/cjs/EventsDeck.js +153 -144
- package/dist/cjs/ExternalResources.js +61 -58
- package/dist/cjs/Feature.js +25 -26
- package/dist/cjs/ForbesHero.js +40 -37
- package/dist/cjs/GridContent.js +221 -214
- 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 +51 -48
- 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 +72 -69
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +31 -27
- package/dist/cjs/MasterDeck.js +71 -68
- package/dist/cjs/MediaSeriesLanding.js +855 -862
- 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 +259 -1329
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +20 -16
- package/dist/cjs/PubSection.js +30 -27
- 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 +296 -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 -31
- package/dist/cjs/{SeriesSlider-49b81b0b.js → SeriesSlider-d38767ae.js} +39 -38
- package/dist/cjs/SideFooter.js +33 -30
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-650f6101.js → SocialSearchComponent-9a9d6f8c.js} +39 -35
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +61 -58
- package/dist/cjs/TaxonomyDescription.js +36 -33
- package/dist/cjs/TemplateNormal.js +46 -43
- 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 +59 -53
- package/dist/cjs/VideoSeriesCard.js +28 -27
- package/dist/cjs/VideoSeriesFilter.js +16 -14
- package/dist/cjs/VideoSeriesLandingPage.js +40 -37
- package/dist/cjs/VideoSeriesListing.js +66 -63
- package/dist/cjs/View.js +220 -214
- package/dist/cjs/YahooHero.js +36 -33
- package/dist/cjs/YoutubeGroup.js +59 -56
- 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-4ba0d3d5.js} +6 -5
- 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-0a918631.js} +8 -8
- package/dist/cjs/faundadb.js +21 -19
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +12 -10
- package/dist/cjs/getRootDocGroup.js +8 -6
- package/dist/cjs/getSerializers.js +25 -23
- package/dist/cjs/{getTargeting-8874437b.js → getTargeting-21103688.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-2cf30c83.js} +9 -8
- package/dist/cjs/{index-59af05c4.js → index-4990e6c9.js} +970 -965
- package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
- 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-e2e62963.js → index-f0677b9d.js} +10 -0
- package/dist/cjs/{index.es-9110add6.js → index.es-13533f24.js} +11 -8
- 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 -73
- package/dist/cjs/{inherits-cba9c846.js → inherits-0c7830c5.js} +15 -14
- 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-11ec04d2.js} +85 -53
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
- 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 -14
- package/dist/esm/AD300x250x600.js +16 -14
- package/dist/esm/AD728x90.js +17 -15
- package/dist/esm/ADFloatingFooter.js +18 -16
- package/dist/esm/ADFooter.js +11 -9
- package/dist/esm/ADGutter.js +18 -16
- package/dist/esm/{ADInfeed-bfd129d9.js → ADInfeed-4b8902ae.js} +8 -8
- package/dist/esm/ADSkyscraper.js +18 -16
- package/dist/esm/ADSponsoredResources.js +18 -16
- package/dist/esm/ADWebcast.js +18 -16
- package/dist/esm/ADWelcome.js +22 -20
- package/dist/esm/{ADlgInfeed-0489335b.js → ADlgInfeed-5193b48f.js} +5 -5
- package/dist/esm/AccordionPanel.js +22 -20
- package/dist/esm/AdSlot.js +14 -12
- package/dist/esm/AdSlotsProvider.js +16 -906
- package/dist/esm/AlgoliaSearch.js +376 -249
- package/dist/esm/AlphabeticList.js +21 -19
- package/dist/esm/ArticleCarousel.js +13 -11
- package/dist/esm/ArticleProgramLandingPage.js +34 -32
- package/dist/esm/ArticleSeriesLandingPage.js +30 -28
- package/dist/esm/ArticleSeriesListing.js +45 -43
- package/dist/esm/Auth.js +184 -1181
- package/dist/esm/AuthWrapper.js +303 -260
- 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 -68
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +25 -23
- package/dist/esm/Column3.js +41 -39
- package/dist/esm/ConferenceArticleCard.js +30 -33
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +89 -87
- package/dist/esm/DeckQueue.js +74 -73
- package/dist/esm/{Dfp-f867d061.js → Dfp-2f9796e1.js} +15 -13
- package/dist/esm/EventsDeck.js +121 -119
- package/dist/esm/ExternalResources.js +55 -53
- package/dist/esm/Feature.js +17 -20
- package/dist/esm/ForbesHero.js +33 -31
- package/dist/esm/GridContent.js +185 -183
- 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 +48 -46
- 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 +69 -67
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +25 -23
- package/dist/esm/MasterDeck.js +67 -65
- package/dist/esm/MediaSeriesLanding.js +574 -584
- 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 +256 -1327
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +13 -11
- package/dist/esm/PubSection.js +27 -25
- 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 +262 -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 -26
- package/dist/esm/{SeriesSlider-d555a1d2.js → SeriesSlider-b8cc1baa.js} +29 -29
- package/dist/esm/SideFooter.js +29 -27
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-d7dec0c2.js → SocialSearchComponent-c54d43cb.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +52 -54
- package/dist/esm/TaxonomyDescription.js +30 -28
- package/dist/esm/TemplateNormal.js +42 -40
- 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 +46 -44
- package/dist/esm/VideoSeriesCard.js +22 -22
- package/dist/esm/VideoSeriesFilter.js +13 -11
- package/dist/esm/VideoSeriesLandingPage.js +30 -28
- package/dist/esm/VideoSeriesListing.js +62 -60
- package/dist/esm/View.js +198 -196
- package/dist/esm/YahooHero.js +30 -28
- package/dist/esm/YoutubeGroup.js +43 -41
- 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-e1c6b0f2.js} +3 -3
- 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-6f2fcc99.js} +1 -1
- package/dist/esm/faundadb.js +7 -5
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +6 -4
- package/dist/esm/getRootDocGroup.js +6 -4
- package/dist/esm/getSerializers.js +25 -23
- package/dist/esm/{getTargeting-277c801e.js → getTargeting-88d69971.js} +11 -11
- package/dist/esm/getTargeting.js +7 -5
- 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-aaa2dae0.js → index-b68072f5.js} +10 -1
- package/dist/esm/{index-efc23b2b.js → index-bec35c6c.js} +911 -916
- package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index-41a678ea.js → index-f7fb1e25.js} +3 -3
- package/dist/esm/{index.es-29c1cef5.js → index.es-7dda2f0a.js} +8 -6
- 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 -65
- package/dist/esm/{inherits-2409637d.js → inherits-75d45541.js} +5 -4
- 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-aef58dbc.js} +81 -50
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
- 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 +111 -111
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/_object-sap-171b9ea5.js +0 -16
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/esm/inherits-77d5e4fc.js +0 -101
|
@@ -1,40 +1,40 @@
|
|
|
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, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-
|
|
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, b as _extends$1 } from './extends-6f2fcc99.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-75d45541.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-f7fb1e25.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-12415288.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_38, m as main_39 } from './main-aef58dbc.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-e1c6b0f2.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
38
|
|
|
39
39
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
40
40
|
var pageNumber = selectedIndex + 1;
|
|
@@ -69,27 +69,27 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
69
69
|
if (pageview) pageview(router.asPath);
|
|
70
70
|
}, [router]);
|
|
71
71
|
|
|
72
|
-
return
|
|
72
|
+
return React.createElement(
|
|
73
73
|
'div',
|
|
74
74
|
{ className: 'mt-3 mb-3' },
|
|
75
|
-
|
|
75
|
+
React.createElement(
|
|
76
76
|
Carousel,
|
|
77
77
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
78
78
|
return onChangeSlide(selectedIndex, router);
|
|
79
79
|
}, interval: null },
|
|
80
80
|
slides && slides.map(function (slide) {
|
|
81
|
-
return
|
|
81
|
+
return React.createElement(
|
|
82
82
|
Carousel.Item,
|
|
83
83
|
{ key: slide._key },
|
|
84
|
-
|
|
84
|
+
React.createElement(
|
|
85
85
|
'picture',
|
|
86
86
|
null,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
88
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
89
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
90
|
+
React.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
91
91
|
),
|
|
92
|
-
slide.caption &&
|
|
92
|
+
slide.caption && React.createElement(
|
|
93
93
|
'p',
|
|
94
94
|
{ className: 'p-2' },
|
|
95
95
|
slide.caption
|
|
@@ -100,21 +100,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
100
100
|
);
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
// do not edit .js files directly - edit src/index.jst
|
|
104
|
+
|
|
105
|
+
|
|
106
106
|
|
|
107
107
|
var fastDeepEqual = function equal(a, b) {
|
|
108
108
|
if (a === b) return true;
|
|
109
109
|
|
|
110
110
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
111
|
-
|
|
112
|
-
, arrB = isArray(b)
|
|
113
|
-
, i
|
|
114
|
-
, length
|
|
115
|
-
, key;
|
|
111
|
+
if (a.constructor !== b.constructor) return false;
|
|
116
112
|
|
|
117
|
-
|
|
113
|
+
var length, i, keys;
|
|
114
|
+
if (Array.isArray(a)) {
|
|
118
115
|
length = a.length;
|
|
119
116
|
if (length != b.length) return false;
|
|
120
117
|
for (i = length; i-- !== 0;)
|
|
@@ -122,35 +119,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
122
119
|
return true;
|
|
123
120
|
}
|
|
124
121
|
|
|
125
|
-
if (arrA != arrB) return false;
|
|
126
122
|
|
|
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
123
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
if (
|
|
135
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
124
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
125
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
126
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
136
127
|
|
|
137
|
-
|
|
128
|
+
keys = Object.keys(a);
|
|
138
129
|
length = keys.length;
|
|
139
|
-
|
|
140
|
-
if (length !== keyList(b).length)
|
|
141
|
-
return false;
|
|
130
|
+
if (length !== Object.keys(b).length) return false;
|
|
142
131
|
|
|
143
132
|
for (i = length; i-- !== 0;)
|
|
144
|
-
if (!
|
|
133
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
145
134
|
|
|
146
135
|
for (i = length; i-- !== 0;) {
|
|
147
|
-
key = keys[i];
|
|
136
|
+
var key = keys[i];
|
|
137
|
+
|
|
148
138
|
if (!equal(a[key], b[key])) return false;
|
|
149
139
|
}
|
|
150
140
|
|
|
151
141
|
return true;
|
|
152
142
|
}
|
|
153
143
|
|
|
144
|
+
// true if both NaN, false otherwise
|
|
154
145
|
return a!==a && b!==b;
|
|
155
146
|
};
|
|
156
147
|
|
|
@@ -1573,199 +1564,239 @@ module.exports = exports['default'];
|
|
|
1573
1564
|
|
|
1574
1565
|
var youTubePlayer = unwrapExports(dist);
|
|
1575
1566
|
|
|
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; };
|
|
1567
|
+
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
1568
|
|
|
1580
1569
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1581
1570
|
|
|
1582
|
-
function
|
|
1571
|
+
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); } }
|
|
1572
|
+
|
|
1573
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1574
|
+
|
|
1575
|
+
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); }
|
|
1576
|
+
|
|
1577
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1578
|
+
|
|
1579
|
+
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); }; }
|
|
1580
|
+
|
|
1581
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1582
|
+
|
|
1583
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1584
|
+
|
|
1585
|
+
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; } }
|
|
1586
|
+
|
|
1587
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1588
|
+
|
|
1589
|
+
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; }
|
|
1583
1590
|
|
|
1584
|
-
function
|
|
1591
|
+
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; }
|
|
1585
1592
|
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
*
|
|
1589
|
-
*
|
|
1590
|
-
* @param {Object}
|
|
1593
|
+
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; }
|
|
1594
|
+
/**
|
|
1595
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1596
|
+
*
|
|
1597
|
+
* @param {Object} prevProps
|
|
1598
|
+
* @param {Object} props
|
|
1591
1599
|
*/
|
|
1600
|
+
|
|
1592
1601
|
function shouldUpdateVideo(prevProps, props) {
|
|
1593
1602
|
// A changing video should always trigger an update
|
|
1594
1603
|
if (prevProps.videoId !== props.videoId) {
|
|
1595
1604
|
return true;
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1605
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1599
1606
|
// update.
|
|
1607
|
+
|
|
1608
|
+
|
|
1600
1609
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1601
1610
|
var vars = props.opts.playerVars || {};
|
|
1602
|
-
|
|
1603
1611
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1604
1612
|
}
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
*
|
|
1608
|
-
*
|
|
1609
|
-
*
|
|
1610
|
-
*
|
|
1611
|
-
* @param {Object} opts
|
|
1613
|
+
/**
|
|
1614
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1615
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1616
|
+
* player reset is necessary.
|
|
1617
|
+
*
|
|
1618
|
+
* @param {Object} opts
|
|
1612
1619
|
*/
|
|
1620
|
+
|
|
1621
|
+
|
|
1613
1622
|
function filterResetOptions(opts) {
|
|
1614
|
-
return
|
|
1615
|
-
playerVars:
|
|
1623
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1624
|
+
playerVars: _objectSpread(_objectSpread({}, opts.playerVars), {}, {
|
|
1616
1625
|
autoplay: 0,
|
|
1617
1626
|
start: 0,
|
|
1618
1627
|
end: 0
|
|
1619
1628
|
})
|
|
1620
1629
|
});
|
|
1621
1630
|
}
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
*
|
|
1627
|
-
*
|
|
1628
|
-
*
|
|
1629
|
-
* @param {Object}
|
|
1630
|
-
* @param {Object} props
|
|
1631
|
+
/**
|
|
1632
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1633
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1634
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1635
|
+
* those.
|
|
1636
|
+
*
|
|
1637
|
+
* @param {Object} prevProps
|
|
1638
|
+
* @param {Object} props
|
|
1631
1639
|
*/
|
|
1640
|
+
|
|
1641
|
+
|
|
1632
1642
|
function shouldResetPlayer(prevProps, props) {
|
|
1633
1643
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1634
1644
|
}
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
*
|
|
1638
|
-
*
|
|
1639
|
-
* @param {Object}
|
|
1640
|
-
* @param {Object} props
|
|
1645
|
+
/**
|
|
1646
|
+
* Check whether a props change should result in an id or className update.
|
|
1647
|
+
*
|
|
1648
|
+
* @param {Object} prevProps
|
|
1649
|
+
* @param {Object} props
|
|
1641
1650
|
*/
|
|
1651
|
+
|
|
1652
|
+
|
|
1642
1653
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1643
1654
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1644
1655
|
}
|
|
1645
1656
|
|
|
1646
|
-
var YouTube = function (_React$Component) {
|
|
1657
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1647
1658
|
_inherits(YouTube, _React$Component);
|
|
1648
1659
|
|
|
1660
|
+
var _super = _createSuper(YouTube);
|
|
1661
|
+
|
|
1662
|
+
/**
|
|
1663
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1664
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1665
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1666
|
+
*/
|
|
1649
1667
|
function YouTube(props) {
|
|
1668
|
+
var _this;
|
|
1669
|
+
|
|
1650
1670
|
_classCallCheck(this, YouTube);
|
|
1651
1671
|
|
|
1652
|
-
|
|
1672
|
+
_this = _super.call(this, props);
|
|
1653
1673
|
|
|
1654
|
-
_this
|
|
1674
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1655
1675
|
return _this.props.onReady(event);
|
|
1656
|
-
};
|
|
1676
|
+
});
|
|
1657
1677
|
|
|
1658
|
-
_this
|
|
1678
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1659
1679
|
return _this.props.onError(event);
|
|
1660
|
-
};
|
|
1680
|
+
});
|
|
1661
1681
|
|
|
1662
|
-
_this
|
|
1682
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1663
1683
|
_this.props.onStateChange(event);
|
|
1664
|
-
switch (event.data) {
|
|
1665
1684
|
|
|
1685
|
+
switch (event.data) {
|
|
1666
1686
|
case YouTube.PlayerState.ENDED:
|
|
1667
1687
|
_this.props.onEnd(event);
|
|
1688
|
+
|
|
1668
1689
|
break;
|
|
1669
1690
|
|
|
1670
1691
|
case YouTube.PlayerState.PLAYING:
|
|
1671
1692
|
_this.props.onPlay(event);
|
|
1693
|
+
|
|
1672
1694
|
break;
|
|
1673
1695
|
|
|
1674
1696
|
case YouTube.PlayerState.PAUSED:
|
|
1675
1697
|
_this.props.onPause(event);
|
|
1698
|
+
|
|
1676
1699
|
break;
|
|
1677
1700
|
}
|
|
1678
|
-
};
|
|
1701
|
+
});
|
|
1679
1702
|
|
|
1680
|
-
_this
|
|
1703
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1681
1704
|
return _this.props.onPlaybackRateChange(event);
|
|
1682
|
-
};
|
|
1705
|
+
});
|
|
1683
1706
|
|
|
1684
|
-
_this
|
|
1707
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1685
1708
|
return _this.props.onPlaybackQualityChange(event);
|
|
1686
|
-
};
|
|
1709
|
+
});
|
|
1687
1710
|
|
|
1688
|
-
_this
|
|
1711
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1689
1712
|
// do not attempt to create a player server-side, it won't work
|
|
1690
|
-
if (typeof document === 'undefined') return;
|
|
1691
|
-
|
|
1692
|
-
var playerOpts =
|
|
1713
|
+
if (typeof document === 'undefined') return; // create player
|
|
1714
|
+
|
|
1715
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1693
1716
|
// preload the `videoId` video if one is already given
|
|
1694
1717
|
videoId: _this.props.videoId
|
|
1695
1718
|
});
|
|
1696
|
-
|
|
1697
|
-
// attach event handlers
|
|
1719
|
+
|
|
1720
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1721
|
+
|
|
1698
1722
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1723
|
+
|
|
1699
1724
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1725
|
+
|
|
1700
1726
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1727
|
+
|
|
1701
1728
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1729
|
+
|
|
1702
1730
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1703
|
-
};
|
|
1731
|
+
});
|
|
1704
1732
|
|
|
1705
|
-
_this
|
|
1733
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1706
1734
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1707
|
-
};
|
|
1735
|
+
});
|
|
1708
1736
|
|
|
1709
|
-
_this
|
|
1737
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1710
1738
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1711
1739
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1712
1740
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1713
1741
|
});
|
|
1714
|
-
};
|
|
1742
|
+
});
|
|
1743
|
+
|
|
1744
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1745
|
+
return _this.internalPlayer;
|
|
1746
|
+
});
|
|
1715
1747
|
|
|
1716
|
-
_this
|
|
1748
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1717
1749
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1718
1750
|
_this.internalPlayer.stopVideo();
|
|
1751
|
+
|
|
1719
1752
|
return;
|
|
1720
|
-
}
|
|
1753
|
+
} // set queueing options
|
|
1754
|
+
|
|
1721
1755
|
|
|
1722
|
-
// set queueing options
|
|
1723
1756
|
var autoplay = false;
|
|
1724
1757
|
var opts = {
|
|
1725
1758
|
videoId: _this.props.videoId
|
|
1726
1759
|
};
|
|
1760
|
+
|
|
1727
1761
|
if ('playerVars' in _this.props.opts) {
|
|
1728
1762
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1763
|
+
|
|
1729
1764
|
if ('start' in _this.props.opts.playerVars) {
|
|
1730
1765
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1731
1766
|
}
|
|
1767
|
+
|
|
1732
1768
|
if ('end' in _this.props.opts.playerVars) {
|
|
1733
1769
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1734
1770
|
}
|
|
1735
|
-
}
|
|
1771
|
+
} // if autoplay is enabled loadVideoById
|
|
1772
|
+
|
|
1736
1773
|
|
|
1737
|
-
// if autoplay is enabled loadVideoById
|
|
1738
1774
|
if (autoplay) {
|
|
1739
1775
|
_this.internalPlayer.loadVideoById(opts);
|
|
1776
|
+
|
|
1740
1777
|
return;
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1778
|
+
} // default behaviour just cues the video
|
|
1779
|
+
|
|
1780
|
+
|
|
1743
1781
|
_this.internalPlayer.cueVideoById(opts);
|
|
1744
|
-
};
|
|
1782
|
+
});
|
|
1745
1783
|
|
|
1746
|
-
_this
|
|
1784
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1747
1785
|
_this.container = container;
|
|
1748
|
-
};
|
|
1786
|
+
});
|
|
1749
1787
|
|
|
1750
1788
|
_this.container = null;
|
|
1751
1789
|
_this.internalPlayer = null;
|
|
1752
1790
|
return _this;
|
|
1753
1791
|
}
|
|
1754
1792
|
|
|
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
1793
|
_createClass(YouTube, [{
|
|
1763
|
-
key:
|
|
1794
|
+
key: "componentDidMount",
|
|
1764
1795
|
value: function componentDidMount() {
|
|
1765
1796
|
this.createPlayer();
|
|
1766
1797
|
}
|
|
1767
1798
|
}, {
|
|
1768
|
-
key:
|
|
1799
|
+
key: "componentDidUpdate",
|
|
1769
1800
|
value: function componentDidUpdate(prevProps) {
|
|
1770
1801
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1771
1802
|
this.updatePlayer();
|
|
@@ -1780,112 +1811,58 @@ var YouTube = function (_React$Component) {
|
|
|
1780
1811
|
}
|
|
1781
1812
|
}
|
|
1782
1813
|
}, {
|
|
1783
|
-
key:
|
|
1814
|
+
key: "componentWillUnmount",
|
|
1784
1815
|
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.
|
|
1816
|
+
/**
|
|
1817
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1818
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1819
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1820
|
+
* this method isn't quick enough to reset the container element.
|
|
1790
1821
|
*/
|
|
1791
1822
|
this.internalPlayer.destroy();
|
|
1792
1823
|
}
|
|
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.
|
|
1824
|
+
/**
|
|
1825
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1826
|
+
*
|
|
1827
|
+
* @param {Object} event
|
|
1828
|
+
* @param {Object} target - player object
|
|
1859
1829
|
*/
|
|
1860
1830
|
|
|
1861
1831
|
}, {
|
|
1862
|
-
key:
|
|
1832
|
+
key: "render",
|
|
1863
1833
|
value: function render() {
|
|
1864
|
-
return
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1834
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1835
|
+
className: this.props.containerClassName
|
|
1836
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1837
|
+
id: this.props.id,
|
|
1838
|
+
className: this.props.className,
|
|
1839
|
+
ref: this.refContainer
|
|
1840
|
+
}));
|
|
1869
1841
|
}
|
|
1870
1842
|
}]);
|
|
1871
1843
|
|
|
1872
1844
|
return YouTube;
|
|
1873
|
-
}(
|
|
1845
|
+
}(React.Component);
|
|
1846
|
+
|
|
1847
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1848
|
+
UNSTARTED: -1,
|
|
1849
|
+
ENDED: 0,
|
|
1850
|
+
PLAYING: 1,
|
|
1851
|
+
PAUSED: 2,
|
|
1852
|
+
BUFFERING: 3,
|
|
1853
|
+
CUED: 5
|
|
1854
|
+
});
|
|
1874
1855
|
|
|
1875
1856
|
YouTube.propTypes = {
|
|
1876
1857
|
videoId: PropTypes.string,
|
|
1877
|
-
|
|
1878
1858
|
// custom ID for player element
|
|
1879
1859
|
id: PropTypes.string,
|
|
1880
|
-
|
|
1881
1860
|
// custom class name for player element
|
|
1882
1861
|
className: PropTypes.string,
|
|
1883
1862
|
// custom class name for player container element
|
|
1884
1863
|
containerClassName: PropTypes.string,
|
|
1885
|
-
|
|
1886
1864
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1887
1865
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1888
|
-
|
|
1889
1866
|
// event subscriptions
|
|
1890
1867
|
onReady: PropTypes.func,
|
|
1891
1868
|
onError: PropTypes.func,
|
|
@@ -1897,6 +1874,7 @@ YouTube.propTypes = {
|
|
|
1897
1874
|
onPlaybackQualityChange: PropTypes.func
|
|
1898
1875
|
};
|
|
1899
1876
|
YouTube.defaultProps = {
|
|
1877
|
+
videoId: null,
|
|
1900
1878
|
id: null,
|
|
1901
1879
|
className: null,
|
|
1902
1880
|
opts: {},
|
|
@@ -1910,14 +1888,6 @@ YouTube.defaultProps = {
|
|
|
1910
1888
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1911
1889
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1912
1890
|
};
|
|
1913
|
-
YouTube.PlayerState = {
|
|
1914
|
-
UNSTARTED: -1,
|
|
1915
|
-
ENDED: 0,
|
|
1916
|
-
PLAYING: 1,
|
|
1917
|
-
PAUSED: 2,
|
|
1918
|
-
BUFFERING: 3,
|
|
1919
|
-
CUED: 5
|
|
1920
|
-
};
|
|
1921
1891
|
|
|
1922
1892
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1923
1893
|
var url = _ref.url,
|
|
@@ -2019,11 +1989,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2019
1989
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
2020
1990
|
};
|
|
2021
1991
|
|
|
2022
|
-
return
|
|
1992
|
+
return React.createElement(
|
|
2023
1993
|
'div',
|
|
2024
1994
|
{ id: 'fluid-video-container' },
|
|
2025
|
-
|
|
2026
|
-
|
|
1995
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1996
|
+
React.createElement(
|
|
2027
1997
|
'style',
|
|
2028
1998
|
{ jsx: 'true' },
|
|
2029
1999
|
'\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 +2006,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2036
2006
|
content = _ref.content,
|
|
2037
2007
|
getSerializers = _ref.getSerializers;
|
|
2038
2008
|
|
|
2039
|
-
return
|
|
2009
|
+
return React.createElement(
|
|
2040
2010
|
'article',
|
|
2041
2011
|
{ className: 'sidebar' },
|
|
2042
|
-
|
|
2012
|
+
React.createElement(
|
|
2043
2013
|
'div',
|
|
2044
2014
|
null,
|
|
2045
|
-
|
|
2015
|
+
React.createElement(
|
|
2046
2016
|
'h3',
|
|
2047
2017
|
null,
|
|
2048
2018
|
caption
|
|
2049
2019
|
),
|
|
2050
|
-
|
|
2020
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2051
2021
|
),
|
|
2052
|
-
|
|
2022
|
+
React.createElement(
|
|
2053
2023
|
'style',
|
|
2054
2024
|
{ jsx: 'true' },
|
|
2055
2025
|
'\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 +2030,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2060
2030
|
var TableShow = function TableShow(_ref) {
|
|
2061
2031
|
var rows = _ref.rows;
|
|
2062
2032
|
|
|
2063
|
-
return
|
|
2033
|
+
return React.createElement(
|
|
2064
2034
|
Table,
|
|
2065
2035
|
{ bordered: true, hover: true, responsive: true },
|
|
2066
|
-
|
|
2036
|
+
React.createElement(
|
|
2067
2037
|
'tbody',
|
|
2068
2038
|
null,
|
|
2069
2039
|
rows && rows.map(function (row) {
|
|
2070
|
-
return
|
|
2040
|
+
return React.createElement(
|
|
2071
2041
|
'tr',
|
|
2072
2042
|
{ key: row._key },
|
|
2073
2043
|
row.cells && row.cells.map(function (cell, index) {
|
|
2074
|
-
return cell &&
|
|
2044
|
+
return cell && React.createElement(
|
|
2075
2045
|
'td',
|
|
2076
2046
|
{ key: index },
|
|
2077
2047
|
cell
|
|
@@ -2083,27 +2053,6 @@ var TableShow = function TableShow(_ref) {
|
|
|
2083
2053
|
);
|
|
2084
2054
|
};
|
|
2085
2055
|
|
|
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
2056
|
var Media = function Media(_ref) {
|
|
2108
2057
|
var node = _ref.node,
|
|
2109
2058
|
client = _ref.client;
|
|
@@ -2190,25 +2139,25 @@ var Media = function Media(_ref) {
|
|
|
2190
2139
|
margin: imageMargin
|
|
2191
2140
|
};
|
|
2192
2141
|
|
|
2193
|
-
return
|
|
2142
|
+
return React.createElement(
|
|
2194
2143
|
Figure$1,
|
|
2195
2144
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2196
|
-
|
|
2145
|
+
React.createElement(
|
|
2197
2146
|
'a',
|
|
2198
|
-
{ href:
|
|
2199
|
-
|
|
2147
|
+
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2148
|
+
React.createElement(
|
|
2200
2149
|
LazyLoad,
|
|
2201
2150
|
{ once: true },
|
|
2202
|
-
|
|
2151
|
+
React.createElement(
|
|
2203
2152
|
'picture',
|
|
2204
2153
|
null,
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2154
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2155
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2156
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2157
|
+
React.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2209
2158
|
)
|
|
2210
2159
|
),
|
|
2211
|
-
caption &&
|
|
2160
|
+
caption && React.createElement(
|
|
2212
2161
|
Figure$1.Caption,
|
|
2213
2162
|
{ className: 'media-caption' },
|
|
2214
2163
|
caption
|
|
@@ -2216,11 +2165,11 @@ var Media = function Media(_ref) {
|
|
|
2216
2165
|
)
|
|
2217
2166
|
);
|
|
2218
2167
|
} else if (caption && caption !== '') {
|
|
2219
|
-
return
|
|
2168
|
+
return React.createElement(
|
|
2220
2169
|
'a',
|
|
2221
|
-
_extends
|
|
2222
|
-
href:
|
|
2223
|
-
} : { href:
|
|
2170
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2171
|
+
href: uploadDoc.asset.url + '?dl='
|
|
2172
|
+
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2224
2173
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
2225
2174
|
className: 'media-link' }),
|
|
2226
2175
|
caption
|
|
@@ -2236,10 +2185,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2236
2185
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2237
2186
|
|
|
2238
2187
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2239
|
-
return
|
|
2188
|
+
return React.createElement(
|
|
2240
2189
|
'div',
|
|
2241
2190
|
{ className: 'd-block text-center mb-3' },
|
|
2242
|
-
|
|
2191
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2243
2192
|
);
|
|
2244
2193
|
};
|
|
2245
2194
|
|
|
@@ -2334,10 +2283,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2334
2283
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2335
2284
|
};
|
|
2336
2285
|
|
|
2337
|
-
return
|
|
2286
|
+
return React.createElement(
|
|
2338
2287
|
'div',
|
|
2339
2288
|
null,
|
|
2340
|
-
vidLoaded &&
|
|
2289
|
+
vidLoaded && React.createElement(
|
|
2341
2290
|
'video',
|
|
2342
2291
|
{
|
|
2343
2292
|
poster: thumbnail || '',
|
|
@@ -2355,7 +2304,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2355
2304
|
onPlay: function onPlay(e) {
|
|
2356
2305
|
return handleOnPlay(e);
|
|
2357
2306
|
} },
|
|
2358
|
-
|
|
2307
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2359
2308
|
'Your browser does not support the video tag.'
|
|
2360
2309
|
)
|
|
2361
2310
|
);
|
|
@@ -2392,7 +2341,7 @@ var Video = function Video(_ref) {
|
|
|
2392
2341
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2393
2342
|
//console.log('success:', success.ref)
|
|
2394
2343
|
var player = success.ref;
|
|
2395
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2344
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2396
2345
|
player.ima3.settings.debug = true;
|
|
2397
2346
|
if (targeting.content_placement && targeting.document_url) {
|
|
2398
2347
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2490,53 +2439,53 @@ var Video = function Video(_ref) {
|
|
|
2490
2439
|
|
|
2491
2440
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2492
2441
|
if (videoID) {
|
|
2493
|
-
return
|
|
2442
|
+
return React.createElement(
|
|
2494
2443
|
'div',
|
|
2495
2444
|
null,
|
|
2496
|
-
|
|
2445
|
+
React.createElement(ReactPlayerLoader, {
|
|
2497
2446
|
onSuccess: onVideoSuccess,
|
|
2498
2447
|
accountId: accountIDs.brightcove.accountId,
|
|
2499
2448
|
videoId: videoID,
|
|
2500
2449
|
playerId: accountIDs.brightcove.playerId,
|
|
2501
2450
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2502
2451
|
}),
|
|
2503
|
-
|
|
2452
|
+
React.createElement(
|
|
2504
2453
|
'style',
|
|
2505
2454
|
{ jsx: 'true' },
|
|
2506
2455
|
'\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
2456
|
)
|
|
2508
2457
|
);
|
|
2509
2458
|
} else if (playlistID) {
|
|
2510
|
-
return
|
|
2459
|
+
return React.createElement(
|
|
2511
2460
|
'div',
|
|
2512
2461
|
null,
|
|
2513
|
-
|
|
2462
|
+
React.createElement(ReactPlayerLoader, {
|
|
2514
2463
|
accountId: accountIDs.brightcove.accountId,
|
|
2515
2464
|
playlistId: playlistID,
|
|
2516
2465
|
playerId: accountIDs.brightcove.playerId,
|
|
2517
2466
|
onSuccess: onVideoSuccess,
|
|
2518
2467
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2519
2468
|
}),
|
|
2520
|
-
|
|
2469
|
+
React.createElement(
|
|
2521
2470
|
'style',
|
|
2522
2471
|
{ jsx: 'true' },
|
|
2523
2472
|
'\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
2473
|
)
|
|
2525
2474
|
);
|
|
2526
2475
|
} else if (experienceID) {
|
|
2527
|
-
return
|
|
2476
|
+
return React.createElement(
|
|
2528
2477
|
'div',
|
|
2529
2478
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2530
|
-
videoLoaded &&
|
|
2479
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2531
2480
|
);
|
|
2532
2481
|
}
|
|
2533
2482
|
return null;
|
|
2534
2483
|
}
|
|
2535
2484
|
if (source === 'mp4') {
|
|
2536
|
-
return
|
|
2485
|
+
return React.createElement(
|
|
2537
2486
|
'div',
|
|
2538
2487
|
null,
|
|
2539
|
-
|
|
2488
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2540
2489
|
);
|
|
2541
2490
|
}
|
|
2542
2491
|
|
|
@@ -2914,11 +2863,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2914
2863
|
|
|
2915
2864
|
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
2865
|
|
|
2917
|
-
function
|
|
2866
|
+
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; } } }; }
|
|
2867
|
+
|
|
2868
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2869
|
+
|
|
2870
|
+
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."); }
|
|
2871
|
+
|
|
2872
|
+
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
2873
|
|
|
2919
|
-
function
|
|
2874
|
+
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
2875
|
|
|
2921
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
2876
|
+
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
2877
|
|
|
2923
2878
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2924
2879
|
|
|
@@ -3048,12 +3003,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3048
3003
|
|
|
3049
3004
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3050
3005
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3051
|
-
|
|
3052
|
-
var
|
|
3053
|
-
|
|
3006
|
+
|
|
3007
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3008
|
+
_step;
|
|
3054
3009
|
|
|
3055
3010
|
try {
|
|
3056
|
-
for (
|
|
3011
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3057
3012
|
var p = _step.value;
|
|
3058
3013
|
|
|
3059
3014
|
if (props$1[p]) {
|
|
@@ -3068,18 +3023,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3068
3023
|
}
|
|
3069
3024
|
}
|
|
3070
3025
|
} catch (err) {
|
|
3071
|
-
|
|
3072
|
-
_iteratorError = err;
|
|
3026
|
+
_iterator.e(err);
|
|
3073
3027
|
} finally {
|
|
3074
|
-
|
|
3075
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3076
|
-
_iterator["return"]();
|
|
3077
|
-
}
|
|
3078
|
-
} finally {
|
|
3079
|
-
if (_didIteratorError) {
|
|
3080
|
-
throw _iteratorError;
|
|
3081
|
-
}
|
|
3082
|
-
}
|
|
3028
|
+
_iterator.f();
|
|
3083
3029
|
}
|
|
3084
3030
|
|
|
3085
3031
|
return config;
|
|
@@ -3144,7 +3090,7 @@ function isEqual(a, b) {
|
|
|
3144
3090
|
return true;
|
|
3145
3091
|
}
|
|
3146
3092
|
|
|
3147
|
-
if ((0,
|
|
3093
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3148
3094
|
return true;
|
|
3149
3095
|
}
|
|
3150
3096
|
|
|
@@ -3206,7 +3152,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3206
3152
|
});
|
|
3207
3153
|
exports["default"] = void 0;
|
|
3208
3154
|
|
|
3209
|
-
var _react = _interopRequireWildcard(
|
|
3155
|
+
var _react = _interopRequireWildcard(React);
|
|
3210
3156
|
|
|
3211
3157
|
|
|
3212
3158
|
|
|
@@ -3226,12 +3172,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3226
3172
|
|
|
3227
3173
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3228
3174
|
|
|
3229
|
-
function
|
|
3175
|
+
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
3176
|
|
|
3231
|
-
function
|
|
3177
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3232
3178
|
|
|
3233
3179
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3234
3180
|
|
|
3181
|
+
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; } }
|
|
3182
|
+
|
|
3183
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3184
|
+
|
|
3235
3185
|
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
3186
|
|
|
3237
3187
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3240,14 +3190,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3240
3190
|
|
|
3241
3191
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3242
3192
|
|
|
3243
|
-
var Player =
|
|
3244
|
-
/*#__PURE__*/
|
|
3245
|
-
function (_Component) {
|
|
3193
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3246
3194
|
_inherits(Player, _Component);
|
|
3247
3195
|
|
|
3248
|
-
|
|
3249
|
-
var _getPrototypeOf2;
|
|
3196
|
+
var _super = _createSuper(Player);
|
|
3250
3197
|
|
|
3198
|
+
function Player() {
|
|
3251
3199
|
var _this;
|
|
3252
3200
|
|
|
3253
3201
|
_classCallCheck(this, Player);
|
|
@@ -3256,7 +3204,7 @@ function (_Component) {
|
|
|
3256
3204
|
_args[_key] = arguments[_key];
|
|
3257
3205
|
}
|
|
3258
3206
|
|
|
3259
|
-
_this =
|
|
3207
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3260
3208
|
|
|
3261
3209
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3262
3210
|
|
|
@@ -3581,7 +3529,7 @@ function (_Component) {
|
|
|
3581
3529
|
return null;
|
|
3582
3530
|
}
|
|
3583
3531
|
|
|
3584
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3532
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3585
3533
|
ref: this.ref,
|
|
3586
3534
|
onReady: this.handleReady,
|
|
3587
3535
|
onPlay: this.handlePlay,
|
|
@@ -3614,7 +3562,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3614
3562
|
});
|
|
3615
3563
|
exports["default"] = createSinglePlayer;
|
|
3616
3564
|
|
|
3617
|
-
var _react = _interopRequireWildcard(
|
|
3565
|
+
var _react = _interopRequireWildcard(React);
|
|
3618
3566
|
|
|
3619
3567
|
|
|
3620
3568
|
|
|
@@ -3642,12 +3590,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3642
3590
|
|
|
3643
3591
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3644
3592
|
|
|
3645
|
-
function
|
|
3593
|
+
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
3594
|
|
|
3647
|
-
function
|
|
3595
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3648
3596
|
|
|
3649
3597
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3650
3598
|
|
|
3599
|
+
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; } }
|
|
3600
|
+
|
|
3601
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3602
|
+
|
|
3651
3603
|
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
3604
|
|
|
3653
3605
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3659,14 +3611,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3659
3611
|
function createSinglePlayer(activePlayer) {
|
|
3660
3612
|
var _class, _temp;
|
|
3661
3613
|
|
|
3662
|
-
return _temp = _class =
|
|
3663
|
-
/*#__PURE__*/
|
|
3664
|
-
function (_Component) {
|
|
3614
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3665
3615
|
_inherits(SinglePlayer, _Component);
|
|
3666
3616
|
|
|
3667
|
-
|
|
3668
|
-
var _getPrototypeOf2;
|
|
3617
|
+
var _super = _createSuper(SinglePlayer);
|
|
3669
3618
|
|
|
3619
|
+
function SinglePlayer() {
|
|
3670
3620
|
var _this;
|
|
3671
3621
|
|
|
3672
3622
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3675,7 +3625,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3675
3625
|
args[_key] = arguments[_key];
|
|
3676
3626
|
}
|
|
3677
3627
|
|
|
3678
|
-
_this =
|
|
3628
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3679
3629
|
|
|
3680
3630
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3681
3631
|
|
|
@@ -3743,12 +3693,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3743
3693
|
height = _this$props.height,
|
|
3744
3694
|
Wrapper = _this$props.wrapper;
|
|
3745
3695
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3746
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3696
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3747
3697
|
style: _objectSpread({}, style, {
|
|
3748
3698
|
width: width,
|
|
3749
3699
|
height: height
|
|
3750
3700
|
})
|
|
3751
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3701
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3752
3702
|
ref: this.ref,
|
|
3753
3703
|
activePlayer: activePlayer,
|
|
3754
3704
|
config: this.config
|
|
@@ -3770,7 +3720,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3770
3720
|
});
|
|
3771
3721
|
exports["default"] = exports.YouTube = void 0;
|
|
3772
3722
|
|
|
3773
|
-
var _react = _interopRequireWildcard(
|
|
3723
|
+
var _react = _interopRequireWildcard(React);
|
|
3774
3724
|
|
|
3775
3725
|
|
|
3776
3726
|
|
|
@@ -3794,23 +3744,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3794
3744
|
|
|
3795
3745
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3796
3746
|
|
|
3797
|
-
function
|
|
3747
|
+
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
3748
|
|
|
3799
|
-
function
|
|
3749
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3800
3750
|
|
|
3801
3751
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3802
3752
|
|
|
3753
|
+
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; } }
|
|
3754
|
+
|
|
3755
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3756
|
+
|
|
3803
3757
|
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
3758
|
|
|
3805
3759
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3806
3760
|
|
|
3807
3761
|
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
3762
|
|
|
3809
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3763
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3810
3764
|
|
|
3811
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3765
|
+
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
3766
|
|
|
3813
|
-
function
|
|
3767
|
+
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); }
|
|
3768
|
+
|
|
3769
|
+
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; }
|
|
3770
|
+
|
|
3771
|
+
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
3772
|
|
|
3815
3773
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3816
3774
|
|
|
@@ -3835,14 +3793,12 @@ function parsePlaylist(url) {
|
|
|
3835
3793
|
return {};
|
|
3836
3794
|
}
|
|
3837
3795
|
|
|
3838
|
-
var YouTube =
|
|
3839
|
-
/*#__PURE__*/
|
|
3840
|
-
function (_Component) {
|
|
3796
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3841
3797
|
_inherits(YouTube, _Component);
|
|
3842
3798
|
|
|
3843
|
-
|
|
3844
|
-
var _getPrototypeOf2;
|
|
3799
|
+
var _super = _createSuper(YouTube);
|
|
3845
3800
|
|
|
3801
|
+
function YouTube() {
|
|
3846
3802
|
var _this;
|
|
3847
3803
|
|
|
3848
3804
|
_classCallCheck(this, YouTube);
|
|
@@ -3851,7 +3807,7 @@ function (_Component) {
|
|
|
3851
3807
|
args[_key] = arguments[_key];
|
|
3852
3808
|
}
|
|
3853
3809
|
|
|
3854
|
-
_this =
|
|
3810
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3855
3811
|
|
|
3856
3812
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3857
3813
|
|
|
@@ -4039,9 +3995,9 @@ function (_Component) {
|
|
|
4039
3995
|
height: '100%',
|
|
4040
3996
|
display: display
|
|
4041
3997
|
};
|
|
4042
|
-
return _react["default"].createElement("div", {
|
|
3998
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4043
3999
|
style: style
|
|
4044
|
-
}, _react["default"].createElement("div", {
|
|
4000
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4045
4001
|
ref: this.ref
|
|
4046
4002
|
}));
|
|
4047
4003
|
}
|
|
@@ -4073,7 +4029,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4073
4029
|
});
|
|
4074
4030
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4075
4031
|
|
|
4076
|
-
var _react = _interopRequireWildcard(
|
|
4032
|
+
var _react = _interopRequireWildcard(React);
|
|
4077
4033
|
|
|
4078
4034
|
|
|
4079
4035
|
|
|
@@ -4097,12 +4053,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4097
4053
|
|
|
4098
4054
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4099
4055
|
|
|
4100
|
-
function
|
|
4056
|
+
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
4057
|
|
|
4102
|
-
function
|
|
4058
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4103
4059
|
|
|
4104
4060
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4105
4061
|
|
|
4062
|
+
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; } }
|
|
4063
|
+
|
|
4064
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4065
|
+
|
|
4106
4066
|
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
4067
|
|
|
4108
4068
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4111,16 +4071,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4111
4071
|
|
|
4112
4072
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4113
4073
|
var SDK_GLOBAL = 'SC';
|
|
4114
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4074
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4115
4075
|
|
|
4116
|
-
var SoundCloud =
|
|
4117
|
-
/*#__PURE__*/
|
|
4118
|
-
function (_Component) {
|
|
4076
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4119
4077
|
_inherits(SoundCloud, _Component);
|
|
4120
4078
|
|
|
4121
|
-
|
|
4122
|
-
var _getPrototypeOf2;
|
|
4079
|
+
var _super = _createSuper(SoundCloud);
|
|
4123
4080
|
|
|
4081
|
+
function SoundCloud() {
|
|
4124
4082
|
var _this;
|
|
4125
4083
|
|
|
4126
4084
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4129,7 +4087,7 @@ function (_Component) {
|
|
|
4129
4087
|
args[_key] = arguments[_key];
|
|
4130
4088
|
}
|
|
4131
4089
|
|
|
4132
|
-
_this =
|
|
4090
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4133
4091
|
|
|
4134
4092
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4135
4093
|
|
|
@@ -4250,7 +4208,7 @@ function (_Component) {
|
|
|
4250
4208
|
height: '100%',
|
|
4251
4209
|
display: display
|
|
4252
4210
|
};
|
|
4253
|
-
return _react["default"].createElement("iframe", {
|
|
4211
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4254
4212
|
ref: this.ref,
|
|
4255
4213
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4256
4214
|
style: style,
|
|
@@ -4288,7 +4246,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4288
4246
|
});
|
|
4289
4247
|
exports["default"] = exports.Vimeo = void 0;
|
|
4290
4248
|
|
|
4291
|
-
var _react = _interopRequireWildcard(
|
|
4249
|
+
var _react = _interopRequireWildcard(React);
|
|
4292
4250
|
|
|
4293
4251
|
|
|
4294
4252
|
|
|
@@ -4312,12 +4270,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4312
4270
|
|
|
4313
4271
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4314
4272
|
|
|
4315
|
-
function
|
|
4273
|
+
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
4274
|
|
|
4317
|
-
function
|
|
4275
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4318
4276
|
|
|
4319
4277
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4320
4278
|
|
|
4279
|
+
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; } }
|
|
4280
|
+
|
|
4281
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4282
|
+
|
|
4321
4283
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4322
4284
|
|
|
4323
4285
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4329,14 +4291,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4329
4291
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4330
4292
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4331
4293
|
|
|
4332
|
-
var Vimeo =
|
|
4333
|
-
/*#__PURE__*/
|
|
4334
|
-
function (_Component) {
|
|
4294
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4335
4295
|
_inherits(Vimeo, _Component);
|
|
4336
4296
|
|
|
4337
|
-
|
|
4338
|
-
var _getPrototypeOf2;
|
|
4297
|
+
var _super = _createSuper(Vimeo);
|
|
4339
4298
|
|
|
4299
|
+
function Vimeo() {
|
|
4340
4300
|
var _this;
|
|
4341
4301
|
|
|
4342
4302
|
_classCallCheck(this, Vimeo);
|
|
@@ -4345,7 +4305,7 @@ function (_Component) {
|
|
|
4345
4305
|
args[_key] = arguments[_key];
|
|
4346
4306
|
}
|
|
4347
4307
|
|
|
4348
|
-
_this =
|
|
4308
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4349
4309
|
|
|
4350
4310
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4351
4311
|
|
|
@@ -4502,7 +4462,7 @@ function (_Component) {
|
|
|
4502
4462
|
overflow: 'hidden',
|
|
4503
4463
|
display: display
|
|
4504
4464
|
};
|
|
4505
|
-
return _react["default"].createElement("div", {
|
|
4465
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4506
4466
|
key: this.props.url,
|
|
4507
4467
|
ref: this.ref,
|
|
4508
4468
|
style: style
|
|
@@ -4542,7 +4502,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4542
4502
|
});
|
|
4543
4503
|
exports["default"] = exports.Facebook = void 0;
|
|
4544
4504
|
|
|
4545
|
-
var _react = _interopRequireWildcard(
|
|
4505
|
+
var _react = _interopRequireWildcard(React);
|
|
4546
4506
|
|
|
4547
4507
|
|
|
4548
4508
|
|
|
@@ -4562,12 +4522,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4562
4522
|
|
|
4563
4523
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4564
4524
|
|
|
4565
|
-
function
|
|
4525
|
+
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
4526
|
|
|
4567
|
-
function
|
|
4527
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4568
4528
|
|
|
4569
4529
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4570
4530
|
|
|
4531
|
+
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; } }
|
|
4532
|
+
|
|
4533
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4534
|
+
|
|
4571
4535
|
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
4536
|
|
|
4573
4537
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4580,14 +4544,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4580
4544
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4581
4545
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4582
4546
|
|
|
4583
|
-
var Facebook =
|
|
4584
|
-
/*#__PURE__*/
|
|
4585
|
-
function (_Component) {
|
|
4547
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4586
4548
|
_inherits(Facebook, _Component);
|
|
4587
4549
|
|
|
4588
|
-
|
|
4589
|
-
var _getPrototypeOf2;
|
|
4550
|
+
var _super = _createSuper(Facebook);
|
|
4590
4551
|
|
|
4552
|
+
function Facebook() {
|
|
4591
4553
|
var _this;
|
|
4592
4554
|
|
|
4593
4555
|
_classCallCheck(this, Facebook);
|
|
@@ -4596,7 +4558,7 @@ function (_Component) {
|
|
|
4596
4558
|
args[_key] = arguments[_key];
|
|
4597
4559
|
}
|
|
4598
4560
|
|
|
4599
|
-
_this =
|
|
4561
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4600
4562
|
|
|
4601
4563
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4602
4564
|
|
|
@@ -4712,7 +4674,7 @@ function (_Component) {
|
|
|
4712
4674
|
width: '100%',
|
|
4713
4675
|
height: '100%'
|
|
4714
4676
|
};
|
|
4715
|
-
return _react["default"].createElement("div", {
|
|
4677
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4716
4678
|
style: style,
|
|
4717
4679
|
id: this.playerID,
|
|
4718
4680
|
className: "fb-video",
|
|
@@ -4752,7 +4714,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4752
4714
|
});
|
|
4753
4715
|
exports["default"] = exports.Streamable = void 0;
|
|
4754
4716
|
|
|
4755
|
-
var _react = _interopRequireWildcard(
|
|
4717
|
+
var _react = _interopRequireWildcard(React);
|
|
4756
4718
|
|
|
4757
4719
|
|
|
4758
4720
|
|
|
@@ -4772,12 +4734,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4772
4734
|
|
|
4773
4735
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4774
4736
|
|
|
4775
|
-
function
|
|
4737
|
+
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
4738
|
|
|
4777
|
-
function
|
|
4739
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4778
4740
|
|
|
4779
4741
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4780
4742
|
|
|
4743
|
+
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; } }
|
|
4744
|
+
|
|
4745
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4746
|
+
|
|
4781
4747
|
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
4748
|
|
|
4783
4749
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4788,14 +4754,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4788
4754
|
var SDK_GLOBAL = 'playerjs';
|
|
4789
4755
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4790
4756
|
|
|
4791
|
-
var Streamable =
|
|
4792
|
-
/*#__PURE__*/
|
|
4793
|
-
function (_Component) {
|
|
4757
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4794
4758
|
_inherits(Streamable, _Component);
|
|
4795
4759
|
|
|
4796
|
-
|
|
4797
|
-
var _getPrototypeOf2;
|
|
4760
|
+
var _super = _createSuper(Streamable);
|
|
4798
4761
|
|
|
4762
|
+
function Streamable() {
|
|
4799
4763
|
var _this;
|
|
4800
4764
|
|
|
4801
4765
|
_classCallCheck(this, Streamable);
|
|
@@ -4804,7 +4768,7 @@ function (_Component) {
|
|
|
4804
4768
|
args[_key] = arguments[_key];
|
|
4805
4769
|
}
|
|
4806
4770
|
|
|
4807
|
-
_this =
|
|
4771
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4808
4772
|
|
|
4809
4773
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4810
4774
|
|
|
@@ -4924,7 +4888,7 @@ function (_Component) {
|
|
|
4924
4888
|
width: '100%',
|
|
4925
4889
|
height: '100%'
|
|
4926
4890
|
};
|
|
4927
|
-
return _react["default"].createElement("iframe", {
|
|
4891
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4928
4892
|
ref: this.ref,
|
|
4929
4893
|
src: "https://streamable.com/o/".concat(id),
|
|
4930
4894
|
frameBorder: "0",
|
|
@@ -4961,7 +4925,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4961
4925
|
});
|
|
4962
4926
|
exports["default"] = exports.Wistia = void 0;
|
|
4963
4927
|
|
|
4964
|
-
var _react = _interopRequireWildcard(
|
|
4928
|
+
var _react = _interopRequireWildcard(React);
|
|
4965
4929
|
|
|
4966
4930
|
|
|
4967
4931
|
|
|
@@ -4985,12 +4949,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4985
4949
|
|
|
4986
4950
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4987
4951
|
|
|
4988
|
-
function
|
|
4952
|
+
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
4953
|
|
|
4990
|
-
function
|
|
4954
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4991
4955
|
|
|
4992
4956
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4993
4957
|
|
|
4958
|
+
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; } }
|
|
4959
|
+
|
|
4960
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4961
|
+
|
|
4994
4962
|
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
4963
|
|
|
4996
4964
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5001,26 +4969,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
5001
4969
|
var SDK_GLOBAL = 'Wistia';
|
|
5002
4970
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
5003
4971
|
|
|
5004
|
-
var Wistia =
|
|
5005
|
-
/*#__PURE__*/
|
|
5006
|
-
function (_Component) {
|
|
4972
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
5007
4973
|
_inherits(Wistia, _Component);
|
|
5008
4974
|
|
|
5009
|
-
|
|
5010
|
-
var _getPrototypeOf2;
|
|
4975
|
+
var _super = _createSuper(Wistia);
|
|
5011
4976
|
|
|
4977
|
+
function Wistia() {
|
|
5012
4978
|
var _this;
|
|
5013
4979
|
|
|
5014
4980
|
_classCallCheck(this, Wistia);
|
|
5015
4981
|
|
|
5016
|
-
for (var _len = arguments.length,
|
|
5017
|
-
|
|
4982
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4983
|
+
_args[_key] = arguments[_key];
|
|
5018
4984
|
}
|
|
5019
4985
|
|
|
5020
|
-
_this =
|
|
4986
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5021
4987
|
|
|
5022
4988
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5023
4989
|
|
|
4990
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4991
|
+
var _this$props;
|
|
4992
|
+
|
|
4993
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4994
|
+
});
|
|
4995
|
+
|
|
4996
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4997
|
+
var _this$props2;
|
|
4998
|
+
|
|
4999
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5000
|
+
});
|
|
5001
|
+
|
|
5002
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5003
|
+
var _this$props3;
|
|
5004
|
+
|
|
5005
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5006
|
+
});
|
|
5007
|
+
|
|
5008
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5009
|
+
var _this$props4;
|
|
5010
|
+
|
|
5011
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5012
|
+
});
|
|
5013
|
+
|
|
5024
5014
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5025
5015
|
_this.callPlayer('mute');
|
|
5026
5016
|
});
|
|
@@ -5042,17 +5032,13 @@ function (_Component) {
|
|
|
5042
5032
|
value: function load(url) {
|
|
5043
5033
|
var _this2 = this;
|
|
5044
5034
|
|
|
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;
|
|
5035
|
+
var _this$props5 = this.props,
|
|
5036
|
+
playing = _this$props5.playing,
|
|
5037
|
+
muted = _this$props5.muted,
|
|
5038
|
+
controls = _this$props5.controls,
|
|
5039
|
+
_onReady = _this$props5.onReady,
|
|
5040
|
+
config = _this$props5.config,
|
|
5041
|
+
onError = _this$props5.onError;
|
|
5056
5042
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5057
5043
|
window._wq = window._wq || [];
|
|
5058
5044
|
|
|
@@ -5069,19 +5055,28 @@ function (_Component) {
|
|
|
5069
5055
|
|
|
5070
5056
|
_this2.unbind();
|
|
5071
5057
|
|
|
5072
|
-
_this2.player.bind('play', onPlay);
|
|
5058
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5073
5059
|
|
|
5074
|
-
_this2.player.bind('pause', onPause);
|
|
5060
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5075
5061
|
|
|
5076
|
-
_this2.player.bind('seek', onSeek);
|
|
5062
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5077
5063
|
|
|
5078
|
-
_this2.player.bind('end', onEnded);
|
|
5064
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5079
5065
|
|
|
5080
5066
|
_onReady();
|
|
5081
5067
|
}
|
|
5082
5068
|
});
|
|
5083
5069
|
}, onError);
|
|
5084
5070
|
}
|
|
5071
|
+
}, {
|
|
5072
|
+
key: "unbind",
|
|
5073
|
+
value: function unbind() {
|
|
5074
|
+
this.player.unbind('play', this.onPlay);
|
|
5075
|
+
this.player.unbind('pause', this.onPause);
|
|
5076
|
+
this.player.unbind('seek', this.onSeek);
|
|
5077
|
+
this.player.unbind('end', this.onEnded);
|
|
5078
|
+
} // Proxy methods to prevent listener leaks
|
|
5079
|
+
|
|
5085
5080
|
}, {
|
|
5086
5081
|
key: "play",
|
|
5087
5082
|
value: function play() {
|
|
@@ -5092,19 +5087,6 @@ function (_Component) {
|
|
|
5092
5087
|
value: function pause() {
|
|
5093
5088
|
this.callPlayer('pause');
|
|
5094
5089
|
}
|
|
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
5090
|
}, {
|
|
5109
5091
|
key: "stop",
|
|
5110
5092
|
value: function stop() {
|
|
@@ -5150,7 +5132,7 @@ function (_Component) {
|
|
|
5150
5132
|
width: '100%',
|
|
5151
5133
|
height: '100%'
|
|
5152
5134
|
};
|
|
5153
|
-
return _react["default"].createElement("div", {
|
|
5135
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5154
5136
|
key: id,
|
|
5155
5137
|
className: className,
|
|
5156
5138
|
style: style
|
|
@@ -5186,7 +5168,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5186
5168
|
});
|
|
5187
5169
|
exports["default"] = exports.Twitch = void 0;
|
|
5188
5170
|
|
|
5189
|
-
var _react = _interopRequireWildcard(
|
|
5171
|
+
var _react = _interopRequireWildcard(React);
|
|
5190
5172
|
|
|
5191
5173
|
|
|
5192
5174
|
|
|
@@ -5210,12 +5192,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5210
5192
|
|
|
5211
5193
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5212
5194
|
|
|
5213
|
-
function
|
|
5195
|
+
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
5196
|
|
|
5215
|
-
function
|
|
5197
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5216
5198
|
|
|
5217
5199
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5218
5200
|
|
|
5201
|
+
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; } }
|
|
5202
|
+
|
|
5203
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5204
|
+
|
|
5219
5205
|
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
5206
|
|
|
5221
5207
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5228,14 +5214,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5228
5214
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5229
5215
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5230
5216
|
|
|
5231
|
-
var Twitch =
|
|
5232
|
-
/*#__PURE__*/
|
|
5233
|
-
function (_Component) {
|
|
5217
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5234
5218
|
_inherits(Twitch, _Component);
|
|
5235
5219
|
|
|
5236
|
-
|
|
5237
|
-
var _getPrototypeOf2;
|
|
5220
|
+
var _super = _createSuper(Twitch);
|
|
5238
5221
|
|
|
5222
|
+
function Twitch() {
|
|
5239
5223
|
var _this;
|
|
5240
5224
|
|
|
5241
5225
|
_classCallCheck(this, Twitch);
|
|
@@ -5244,7 +5228,7 @@ function (_Component) {
|
|
|
5244
5228
|
args[_key] = arguments[_key];
|
|
5245
5229
|
}
|
|
5246
5230
|
|
|
5247
|
-
_this =
|
|
5231
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5248
5232
|
|
|
5249
5233
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5250
5234
|
|
|
@@ -5365,7 +5349,7 @@ function (_Component) {
|
|
|
5365
5349
|
width: '100%',
|
|
5366
5350
|
height: '100%'
|
|
5367
5351
|
};
|
|
5368
|
-
return _react["default"].createElement("div", {
|
|
5352
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5369
5353
|
style: style,
|
|
5370
5354
|
id: this.playerID
|
|
5371
5355
|
});
|
|
@@ -5400,7 +5384,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5400
5384
|
});
|
|
5401
5385
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5402
5386
|
|
|
5403
|
-
var _react = _interopRequireWildcard(
|
|
5387
|
+
var _react = _interopRequireWildcard(React);
|
|
5404
5388
|
|
|
5405
5389
|
|
|
5406
5390
|
|
|
@@ -5418,11 +5402,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5418
5402
|
|
|
5419
5403
|
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
5404
|
|
|
5421
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5405
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5422
5406
|
|
|
5423
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5407
|
+
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."); }
|
|
5424
5408
|
|
|
5425
|
-
function
|
|
5409
|
+
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); }
|
|
5410
|
+
|
|
5411
|
+
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; }
|
|
5412
|
+
|
|
5413
|
+
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
5414
|
|
|
5427
5415
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5428
5416
|
|
|
@@ -5432,12 +5420,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5432
5420
|
|
|
5433
5421
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5434
5422
|
|
|
5435
|
-
function
|
|
5423
|
+
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
5424
|
|
|
5437
|
-
function
|
|
5425
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5438
5426
|
|
|
5439
5427
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5440
5428
|
|
|
5429
|
+
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; } }
|
|
5430
|
+
|
|
5431
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5432
|
+
|
|
5441
5433
|
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
5434
|
|
|
5443
5435
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5449,14 +5441,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5449
5441
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5450
5442
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5451
5443
|
|
|
5452
|
-
var DailyMotion =
|
|
5453
|
-
/*#__PURE__*/
|
|
5454
|
-
function (_Component) {
|
|
5444
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5455
5445
|
_inherits(DailyMotion, _Component);
|
|
5456
5446
|
|
|
5457
|
-
|
|
5458
|
-
var _getPrototypeOf2;
|
|
5447
|
+
var _super = _createSuper(DailyMotion);
|
|
5459
5448
|
|
|
5449
|
+
function DailyMotion() {
|
|
5460
5450
|
var _this;
|
|
5461
5451
|
|
|
5462
5452
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5465,7 +5455,7 @@ function (_Component) {
|
|
|
5465
5455
|
args[_key] = arguments[_key];
|
|
5466
5456
|
}
|
|
5467
5457
|
|
|
5468
|
-
_this =
|
|
5458
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5469
5459
|
|
|
5470
5460
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5471
5461
|
|
|
@@ -5594,9 +5584,9 @@ function (_Component) {
|
|
|
5594
5584
|
height: '100%',
|
|
5595
5585
|
display: display
|
|
5596
5586
|
};
|
|
5597
|
-
return _react["default"].createElement("div", {
|
|
5587
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5598
5588
|
style: style
|
|
5599
|
-
}, _react["default"].createElement("div", {
|
|
5589
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5600
5590
|
ref: this.ref
|
|
5601
5591
|
}));
|
|
5602
5592
|
}
|
|
@@ -5630,7 +5620,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5630
5620
|
});
|
|
5631
5621
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5632
5622
|
|
|
5633
|
-
var _react = _interopRequireWildcard(
|
|
5623
|
+
var _react = _interopRequireWildcard(React);
|
|
5634
5624
|
|
|
5635
5625
|
|
|
5636
5626
|
|
|
@@ -5654,12 +5644,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5654
5644
|
|
|
5655
5645
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5656
5646
|
|
|
5657
|
-
function
|
|
5647
|
+
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
5648
|
|
|
5659
|
-
function
|
|
5649
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5660
5650
|
|
|
5661
5651
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5662
5652
|
|
|
5653
|
+
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; } }
|
|
5654
|
+
|
|
5655
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5656
|
+
|
|
5663
5657
|
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
5658
|
|
|
5665
5659
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5670,14 +5664,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5670
5664
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5671
5665
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5672
5666
|
|
|
5673
|
-
var Mixcloud =
|
|
5674
|
-
/*#__PURE__*/
|
|
5675
|
-
function (_Component) {
|
|
5667
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5676
5668
|
_inherits(Mixcloud, _Component);
|
|
5677
5669
|
|
|
5678
|
-
|
|
5679
|
-
var _getPrototypeOf2;
|
|
5670
|
+
var _super = _createSuper(Mixcloud);
|
|
5680
5671
|
|
|
5672
|
+
function Mixcloud() {
|
|
5681
5673
|
var _this;
|
|
5682
5674
|
|
|
5683
5675
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5686,7 +5678,7 @@ function (_Component) {
|
|
|
5686
5678
|
args[_key] = arguments[_key];
|
|
5687
5679
|
}
|
|
5688
5680
|
|
|
5689
|
-
_this =
|
|
5681
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5690
5682
|
|
|
5691
5683
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5692
5684
|
|
|
@@ -5789,7 +5781,7 @@ function (_Component) {
|
|
|
5789
5781
|
})); // We have to give the iframe a key here to prevent a
|
|
5790
5782
|
// weird dialog appearing when loading a new track
|
|
5791
5783
|
|
|
5792
|
-
return _react["default"].createElement("iframe", {
|
|
5784
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5793
5785
|
key: id,
|
|
5794
5786
|
ref: this.ref,
|
|
5795
5787
|
style: style,
|
|
@@ -5827,7 +5819,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5827
5819
|
});
|
|
5828
5820
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5829
5821
|
|
|
5830
|
-
var _react = _interopRequireWildcard(
|
|
5822
|
+
var _react = _interopRequireWildcard(React);
|
|
5831
5823
|
|
|
5832
5824
|
|
|
5833
5825
|
|
|
@@ -5849,23 +5841,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5849
5841
|
|
|
5850
5842
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5851
5843
|
|
|
5852
|
-
function
|
|
5844
|
+
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
5845
|
|
|
5854
|
-
function
|
|
5846
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5855
5847
|
|
|
5856
5848
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5857
5849
|
|
|
5850
|
+
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; } }
|
|
5851
|
+
|
|
5852
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5853
|
+
|
|
5858
5854
|
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
5855
|
|
|
5860
5856
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5861
5857
|
|
|
5862
5858
|
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
5859
|
|
|
5860
|
+
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; } } }; }
|
|
5861
|
+
|
|
5862
|
+
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); }
|
|
5863
|
+
|
|
5864
|
+
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; }
|
|
5865
|
+
|
|
5864
5866
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5865
5867
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5866
5868
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5867
5869
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5868
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5870
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5869
5871
|
var HLS_GLOBAL = 'Hls';
|
|
5870
5872
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5871
5873
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5874,12 +5876,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5874
5876
|
|
|
5875
5877
|
function canPlay(url) {
|
|
5876
5878
|
if (url instanceof Array) {
|
|
5877
|
-
var
|
|
5878
|
-
|
|
5879
|
-
var _iteratorError = undefined;
|
|
5879
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5880
|
+
_step;
|
|
5880
5881
|
|
|
5881
5882
|
try {
|
|
5882
|
-
for (
|
|
5883
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5883
5884
|
var item = _step.value;
|
|
5884
5885
|
|
|
5885
5886
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5891,18 +5892,9 @@ function canPlay(url) {
|
|
|
5891
5892
|
}
|
|
5892
5893
|
}
|
|
5893
5894
|
} catch (err) {
|
|
5894
|
-
|
|
5895
|
-
_iteratorError = err;
|
|
5895
|
+
_iterator.e(err);
|
|
5896
5896
|
} finally {
|
|
5897
|
-
|
|
5898
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5899
|
-
_iterator["return"]();
|
|
5900
|
-
}
|
|
5901
|
-
} finally {
|
|
5902
|
-
if (_didIteratorError) {
|
|
5903
|
-
throw _iteratorError;
|
|
5904
|
-
}
|
|
5905
|
-
}
|
|
5897
|
+
_iterator.f();
|
|
5906
5898
|
}
|
|
5907
5899
|
|
|
5908
5900
|
return false;
|
|
@@ -5926,14 +5918,12 @@ function canEnablePIP(url) {
|
|
|
5926
5918
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5927
5919
|
}
|
|
5928
5920
|
|
|
5929
|
-
var FilePlayer =
|
|
5930
|
-
/*#__PURE__*/
|
|
5931
|
-
function (_Component) {
|
|
5921
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5932
5922
|
_inherits(FilePlayer, _Component);
|
|
5933
5923
|
|
|
5934
|
-
|
|
5935
|
-
var _getPrototypeOf2;
|
|
5924
|
+
var _super = _createSuper(FilePlayer);
|
|
5936
5925
|
|
|
5926
|
+
function FilePlayer() {
|
|
5937
5927
|
var _this;
|
|
5938
5928
|
|
|
5939
5929
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5942,7 +5932,7 @@ function (_Component) {
|
|
|
5942
5932
|
_args[_key] = arguments[_key];
|
|
5943
5933
|
}
|
|
5944
5934
|
|
|
5945
|
-
_this =
|
|
5935
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5946
5936
|
|
|
5947
5937
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5948
5938
|
var _this$props;
|
|
@@ -6029,19 +6019,19 @@ function (_Component) {
|
|
|
6029
6019
|
|
|
6030
6020
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6031
6021
|
if (typeof source === 'string') {
|
|
6032
|
-
return _react["default"].createElement("source", {
|
|
6022
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6033
6023
|
key: index,
|
|
6034
6024
|
src: source
|
|
6035
6025
|
});
|
|
6036
6026
|
}
|
|
6037
6027
|
|
|
6038
|
-
return _react["default"].createElement("source", _extends({
|
|
6028
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6039
6029
|
key: index
|
|
6040
6030
|
}, source));
|
|
6041
6031
|
});
|
|
6042
6032
|
|
|
6043
6033
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6044
|
-
return _react["default"].createElement("track", _extends({
|
|
6034
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6045
6035
|
key: index
|
|
6046
6036
|
}, track));
|
|
6047
6037
|
});
|
|
@@ -6079,6 +6069,10 @@ function (_Component) {
|
|
|
6079
6069
|
key: "componentWillUnmount",
|
|
6080
6070
|
value: function componentWillUnmount() {
|
|
6081
6071
|
this.removeListeners(this.player);
|
|
6072
|
+
|
|
6073
|
+
if (this.hls) {
|
|
6074
|
+
this.hls.destroy();
|
|
6075
|
+
}
|
|
6082
6076
|
}
|
|
6083
6077
|
}, {
|
|
6084
6078
|
key: "addListeners",
|
|
@@ -6209,10 +6203,6 @@ function (_Component) {
|
|
|
6209
6203
|
value: function stop() {
|
|
6210
6204
|
this.player.removeAttribute('src');
|
|
6211
6205
|
|
|
6212
|
-
if (this.hls) {
|
|
6213
|
-
this.hls.destroy();
|
|
6214
|
-
}
|
|
6215
|
-
|
|
6216
6206
|
if (this.dash) {
|
|
6217
6207
|
this.dash.reset();
|
|
6218
6208
|
}
|
|
@@ -6324,7 +6314,7 @@ function (_Component) {
|
|
|
6324
6314
|
width: width === 'auto' ? width : '100%',
|
|
6325
6315
|
height: height === 'auto' ? height : '100%'
|
|
6326
6316
|
};
|
|
6327
|
-
return _react["default"].createElement(Element, _extends({
|
|
6317
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6328
6318
|
ref: this.ref,
|
|
6329
6319
|
src: this.getSource(url),
|
|
6330
6320
|
style: style,
|
|
@@ -6396,7 +6386,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6396
6386
|
});
|
|
6397
6387
|
exports["default"] = void 0;
|
|
6398
6388
|
|
|
6399
|
-
var _react = _interopRequireWildcard(
|
|
6389
|
+
var _react = _interopRequireWildcard(React);
|
|
6400
6390
|
|
|
6401
6391
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6402
6392
|
|
|
@@ -6414,12 +6404,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6414
6404
|
|
|
6415
6405
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6416
6406
|
|
|
6417
|
-
function
|
|
6407
|
+
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
6408
|
|
|
6419
|
-
function
|
|
6409
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6420
6410
|
|
|
6421
6411
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6422
6412
|
|
|
6413
|
+
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; } }
|
|
6414
|
+
|
|
6415
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6416
|
+
|
|
6423
6417
|
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
6418
|
|
|
6425
6419
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6428,14 +6422,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6428
6422
|
|
|
6429
6423
|
var ICON_SIZE = '64px';
|
|
6430
6424
|
|
|
6431
|
-
var Preview =
|
|
6432
|
-
/*#__PURE__*/
|
|
6433
|
-
function (_Component) {
|
|
6425
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6434
6426
|
_inherits(Preview, _Component);
|
|
6435
6427
|
|
|
6436
|
-
|
|
6437
|
-
var _getPrototypeOf2;
|
|
6428
|
+
var _super = _createSuper(Preview);
|
|
6438
6429
|
|
|
6430
|
+
function Preview() {
|
|
6439
6431
|
var _this;
|
|
6440
6432
|
|
|
6441
6433
|
_classCallCheck(this, Preview);
|
|
@@ -6444,7 +6436,7 @@ function (_Component) {
|
|
|
6444
6436
|
args[_key] = arguments[_key];
|
|
6445
6437
|
}
|
|
6446
6438
|
|
|
6447
|
-
_this =
|
|
6439
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6448
6440
|
|
|
6449
6441
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6450
6442
|
|
|
@@ -6542,15 +6534,15 @@ function (_Component) {
|
|
|
6542
6534
|
}
|
|
6543
6535
|
};
|
|
6544
6536
|
|
|
6545
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6537
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6546
6538
|
style: styles.shadow,
|
|
6547
6539
|
className: "react-player__shadow"
|
|
6548
|
-
}, _react["default"].createElement("div", {
|
|
6540
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6549
6541
|
style: styles.playIcon,
|
|
6550
6542
|
className: "react-player__play-icon"
|
|
6551
6543
|
}));
|
|
6552
6544
|
|
|
6553
|
-
return _react["default"].createElement("div", {
|
|
6545
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6554
6546
|
style: styles.preview,
|
|
6555
6547
|
className: "react-player__preview",
|
|
6556
6548
|
onClick: onClick
|
|
@@ -6573,7 +6565,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6573
6565
|
});
|
|
6574
6566
|
exports["default"] = renderPreloadPlayers;
|
|
6575
6567
|
|
|
6576
|
-
var _react = _interopRequireDefault(
|
|
6568
|
+
var _react = _interopRequireDefault(React);
|
|
6577
6569
|
|
|
6578
6570
|
var _Player = _interopRequireDefault(Player_1);
|
|
6579
6571
|
|
|
@@ -6587,6 +6579,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6587
6579
|
|
|
6588
6580
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6589
6581
|
|
|
6582
|
+
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; } } }; }
|
|
6583
|
+
|
|
6584
|
+
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); }
|
|
6585
|
+
|
|
6586
|
+
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; }
|
|
6587
|
+
|
|
6590
6588
|
var PRELOAD_PLAYERS = [{
|
|
6591
6589
|
Player: YouTube_1.YouTube,
|
|
6592
6590
|
configKey: 'youtube',
|
|
@@ -6607,16 +6605,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6607
6605
|
|
|
6608
6606
|
function renderPreloadPlayers(url, controls, config) {
|
|
6609
6607
|
var players = [];
|
|
6610
|
-
|
|
6611
|
-
var
|
|
6612
|
-
|
|
6608
|
+
|
|
6609
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6610
|
+
_step;
|
|
6613
6611
|
|
|
6614
6612
|
try {
|
|
6615
|
-
for (
|
|
6613
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6616
6614
|
var player = _step.value;
|
|
6617
6615
|
|
|
6618
6616
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6619
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6617
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6620
6618
|
key: player.Player.displayName,
|
|
6621
6619
|
activePlayer: player.Player,
|
|
6622
6620
|
url: player.url,
|
|
@@ -6628,18 +6626,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6628
6626
|
}
|
|
6629
6627
|
}
|
|
6630
6628
|
} catch (err) {
|
|
6631
|
-
|
|
6632
|
-
_iteratorError = err;
|
|
6629
|
+
_iterator.e(err);
|
|
6633
6630
|
} finally {
|
|
6634
|
-
|
|
6635
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6636
|
-
_iterator["return"]();
|
|
6637
|
-
}
|
|
6638
|
-
} finally {
|
|
6639
|
-
if (_didIteratorError) {
|
|
6640
|
-
throw _iteratorError;
|
|
6641
|
-
}
|
|
6642
|
-
}
|
|
6631
|
+
_iterator.f();
|
|
6643
6632
|
}
|
|
6644
6633
|
|
|
6645
6634
|
return players;
|
|
@@ -6715,7 +6704,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6715
6704
|
});
|
|
6716
6705
|
exports["default"] = void 0;
|
|
6717
6706
|
|
|
6718
|
-
var _react = _interopRequireWildcard(
|
|
6707
|
+
var _react = _interopRequireWildcard(React);
|
|
6719
6708
|
|
|
6720
6709
|
|
|
6721
6710
|
|
|
@@ -6763,13 +6752,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6763
6752
|
|
|
6764
6753
|
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
6754
|
|
|
6766
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6755
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6756
|
+
|
|
6757
|
+
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."); }
|
|
6758
|
+
|
|
6759
|
+
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
6760
|
|
|
6768
|
-
function
|
|
6761
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6769
6762
|
|
|
6770
|
-
function
|
|
6763
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6771
6764
|
|
|
6772
|
-
function
|
|
6765
|
+
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
6766
|
|
|
6774
6767
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6775
6768
|
|
|
@@ -6777,12 +6770,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6777
6770
|
|
|
6778
6771
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6779
6772
|
|
|
6780
|
-
function
|
|
6773
|
+
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
6774
|
|
|
6782
|
-
function
|
|
6775
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6783
6776
|
|
|
6784
6777
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6785
6778
|
|
|
6779
|
+
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; } }
|
|
6780
|
+
|
|
6781
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6782
|
+
|
|
6786
6783
|
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
6784
|
|
|
6788
6785
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6792,14 +6789,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6792
6789
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6793
6790
|
var customPlayers = [];
|
|
6794
6791
|
|
|
6795
|
-
var ReactPlayer =
|
|
6796
|
-
/*#__PURE__*/
|
|
6797
|
-
function (_Component) {
|
|
6792
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6798
6793
|
_inherits(ReactPlayer, _Component);
|
|
6799
6794
|
|
|
6800
|
-
|
|
6801
|
-
var _getPrototypeOf2;
|
|
6795
|
+
var _super = _createSuper(ReactPlayer);
|
|
6802
6796
|
|
|
6797
|
+
function ReactPlayer() {
|
|
6803
6798
|
var _this;
|
|
6804
6799
|
|
|
6805
6800
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6808,7 +6803,7 @@ function (_Component) {
|
|
|
6808
6803
|
args[_key] = arguments[_key];
|
|
6809
6804
|
}
|
|
6810
6805
|
|
|
6811
|
-
_this =
|
|
6806
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6812
6807
|
|
|
6813
6808
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6814
6809
|
|
|
@@ -6919,7 +6914,7 @@ function (_Component) {
|
|
|
6919
6914
|
key: "renderActivePlayer",
|
|
6920
6915
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6921
6916
|
if (!url) return null;
|
|
6922
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6917
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6923
6918
|
key: activePlayer.displayName,
|
|
6924
6919
|
ref: this.activePlayerRef,
|
|
6925
6920
|
config: this.config,
|
|
@@ -6956,14 +6951,14 @@ function (_Component) {
|
|
|
6956
6951
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6957
6952
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6958
6953
|
|
|
6959
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6954
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6960
6955
|
url: url,
|
|
6961
6956
|
light: light,
|
|
6962
6957
|
playIcon: playIcon,
|
|
6963
6958
|
onClick: this.handleClickPreview
|
|
6964
6959
|
});
|
|
6965
6960
|
|
|
6966
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6961
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6967
6962
|
ref: this.wrapperRef,
|
|
6968
6963
|
style: _objectSpread({}, style, {
|
|
6969
6964
|
width: width,
|
|
@@ -7023,20 +7018,20 @@ var Audio = function Audio(_ref) {
|
|
|
7023
7018
|
var node = _ref.node;
|
|
7024
7019
|
|
|
7025
7020
|
if (node.uploadAudio) {
|
|
7026
|
-
return
|
|
7021
|
+
return React.createElement(
|
|
7027
7022
|
'div',
|
|
7028
7023
|
{ className: 'audio d-block text-center mb-3' },
|
|
7029
|
-
|
|
7024
|
+
React.createElement(
|
|
7030
7025
|
'audio',
|
|
7031
7026
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7032
|
-
|
|
7033
|
-
|
|
7027
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7028
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7034
7029
|
'Your browser does not support the audio element.'
|
|
7035
7030
|
),
|
|
7036
|
-
node.caption &&
|
|
7031
|
+
node.caption && React.createElement(
|
|
7037
7032
|
'p',
|
|
7038
7033
|
{ style: { fontSize: '.9rem' } },
|
|
7039
|
-
|
|
7034
|
+
React.createElement(
|
|
7040
7035
|
'em',
|
|
7041
7036
|
null,
|
|
7042
7037
|
node.caption
|
|
@@ -7046,15 +7041,15 @@ var Audio = function Audio(_ref) {
|
|
|
7046
7041
|
} else if (node.audioFilePth) {
|
|
7047
7042
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7048
7043
|
if (hostname === 'embeds.audioboom.com') {
|
|
7049
|
-
return
|
|
7044
|
+
return React.createElement(
|
|
7050
7045
|
'div',
|
|
7051
7046
|
null,
|
|
7052
|
-
|
|
7047
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7053
7048
|
' ',
|
|
7054
|
-
node.caption &&
|
|
7049
|
+
node.caption && React.createElement(
|
|
7055
7050
|
'p',
|
|
7056
7051
|
{ style: { fontSize: '.9rem' } },
|
|
7057
|
-
|
|
7052
|
+
React.createElement(
|
|
7058
7053
|
'em',
|
|
7059
7054
|
null,
|
|
7060
7055
|
node.caption
|
|
@@ -7062,14 +7057,14 @@ var Audio = function Audio(_ref) {
|
|
|
7062
7057
|
)
|
|
7063
7058
|
);
|
|
7064
7059
|
}
|
|
7065
|
-
return
|
|
7060
|
+
return React.createElement(
|
|
7066
7061
|
'div',
|
|
7067
7062
|
{ className: 'audio' },
|
|
7068
|
-
|
|
7069
|
-
node.caption &&
|
|
7063
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7064
|
+
node.caption && React.createElement(
|
|
7070
7065
|
'p',
|
|
7071
7066
|
{ style: { fontSize: '.9rem' } },
|
|
7072
|
-
|
|
7067
|
+
React.createElement(
|
|
7073
7068
|
'em',
|
|
7074
7069
|
null,
|
|
7075
7070
|
node.caption
|
|
@@ -7087,34 +7082,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7087
7082
|
var profileImage = arguments[6];
|
|
7088
7083
|
|
|
7089
7084
|
if (authorName && authorURL) {
|
|
7090
|
-
return
|
|
7085
|
+
return React.createElement(
|
|
7091
7086
|
'span',
|
|
7092
7087
|
null,
|
|
7093
|
-
|
|
7088
|
+
React.createElement(
|
|
7094
7089
|
'a',
|
|
7095
7090
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7096
7091
|
authorName
|
|
7097
7092
|
),
|
|
7098
|
-
|
|
7093
|
+
React.createElement(
|
|
7099
7094
|
Card,
|
|
7100
7095
|
{ className: 'author-details-card-' + index },
|
|
7101
|
-
|
|
7096
|
+
React.createElement(
|
|
7102
7097
|
Row,
|
|
7103
7098
|
null,
|
|
7104
|
-
profileImage &&
|
|
7099
|
+
profileImage && React.createElement(
|
|
7105
7100
|
Col,
|
|
7106
7101
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7107
|
-
|
|
7102
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7108
7103
|
),
|
|
7109
|
-
|
|
7104
|
+
React.createElement(
|
|
7110
7105
|
Col,
|
|
7111
7106
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7112
|
-
|
|
7107
|
+
React.createElement(
|
|
7113
7108
|
'div',
|
|
7114
7109
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7115
7110
|
authorName
|
|
7116
7111
|
),
|
|
7117
|
-
|
|
7112
|
+
React.createElement(
|
|
7118
7113
|
'p',
|
|
7119
7114
|
null,
|
|
7120
7115
|
biography
|
|
@@ -7122,7 +7117,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7122
7117
|
)
|
|
7123
7118
|
)
|
|
7124
7119
|
),
|
|
7125
|
-
|
|
7120
|
+
React.createElement(
|
|
7126
7121
|
'style',
|
|
7127
7122
|
{ jsx: 'true' },
|
|
7128
7123
|
'\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 +7125,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7130
7125
|
length !== index + 1 && ', '
|
|
7131
7126
|
);
|
|
7132
7127
|
} else if (authorName) {
|
|
7133
|
-
return
|
|
7128
|
+
return React.createElement(
|
|
7134
7129
|
'span',
|
|
7135
7130
|
{ key: index },
|
|
7136
7131
|
authorName,
|
|
@@ -7402,44 +7397,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7402
7397
|
}
|
|
7403
7398
|
};
|
|
7404
7399
|
|
|
7405
|
-
return
|
|
7400
|
+
return React.createElement(
|
|
7406
7401
|
'div',
|
|
7407
7402
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7408
|
-
|
|
7403
|
+
React.createElement(
|
|
7409
7404
|
'div',
|
|
7410
7405
|
{ className: 'mt-2 mb-5' },
|
|
7411
|
-
series &&
|
|
7406
|
+
series && React.createElement(
|
|
7412
7407
|
'div',
|
|
7413
7408
|
{ style: { fontSize: '0.9rem' } },
|
|
7414
7409
|
article.title,
|
|
7415
7410
|
' - Episode ',
|
|
7416
7411
|
series
|
|
7417
7412
|
),
|
|
7418
|
-
Videos[series - 1] &&
|
|
7413
|
+
Videos[series - 1] && React.createElement(
|
|
7419
7414
|
'h1',
|
|
7420
7415
|
{ className: 'mb-3' },
|
|
7421
7416
|
Videos[series - 1].title
|
|
7422
7417
|
),
|
|
7423
|
-
|
|
7418
|
+
React.createElement(
|
|
7424
7419
|
'div',
|
|
7425
7420
|
null,
|
|
7426
7421
|
moment(article.published).format('LL')
|
|
7427
7422
|
),
|
|
7428
|
-
|
|
7423
|
+
React.createElement(
|
|
7429
7424
|
'div',
|
|
7430
7425
|
{ className: 'mb-3' },
|
|
7431
7426
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7432
|
-
return
|
|
7427
|
+
return React.createElement(
|
|
7433
7428
|
'span',
|
|
7434
7429
|
{ key: index },
|
|
7435
7430
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7436
7431
|
);
|
|
7437
7432
|
})
|
|
7438
7433
|
),
|
|
7439
|
-
|
|
7434
|
+
React.createElement(
|
|
7440
7435
|
'p',
|
|
7441
7436
|
null,
|
|
7442
|
-
|
|
7437
|
+
React.createElement(SocialShare, {
|
|
7443
7438
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7444
7439
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7445
7440
|
shareVia: meta.shareVia,
|
|
@@ -7454,20 +7449,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7454
7449
|
hideFacebook: meta.hideFBShare
|
|
7455
7450
|
})
|
|
7456
7451
|
),
|
|
7457
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7452
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7458
7453
|
'p',
|
|
7459
7454
|
{ className: 'mb-3' },
|
|
7460
|
-
|
|
7455
|
+
React.createElement(
|
|
7461
7456
|
'em',
|
|
7462
7457
|
null,
|
|
7463
7458
|
Videos[series - 1].intro
|
|
7464
7459
|
)
|
|
7465
7460
|
)
|
|
7466
7461
|
),
|
|
7467
|
-
|
|
7462
|
+
React.createElement(
|
|
7468
7463
|
'div',
|
|
7469
7464
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7470
|
-
vidUrl && vidType == 'youtube' &&
|
|
7465
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7471
7466
|
className: 'fluid-iframe',
|
|
7472
7467
|
videoId: getYoutubeId(vidUrl),
|
|
7473
7468
|
opts: opts,
|
|
@@ -7478,10 +7473,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7478
7473
|
return handleOnEnd(e);
|
|
7479
7474
|
}
|
|
7480
7475
|
}),
|
|
7481
|
-
vidUrl && vidType == 'mp4' &&
|
|
7482
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7483
|
-
|
|
7484
|
-
series &&
|
|
7476
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7477
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7478
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7479
|
+
series && React.createElement(
|
|
7485
7480
|
'div',
|
|
7486
7481
|
{
|
|
7487
7482
|
className: 'vid-series',
|
|
@@ -7491,10 +7486,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7491
7486
|
maxHeight: '100%',
|
|
7492
7487
|
paddingBottom: '0'
|
|
7493
7488
|
} },
|
|
7494
|
-
|
|
7489
|
+
React.createElement(
|
|
7495
7490
|
'p',
|
|
7496
7491
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7497
|
-
|
|
7492
|
+
React.createElement(
|
|
7498
7493
|
'b',
|
|
7499
7494
|
{ style: { fontSize: '1.25em' } },
|
|
7500
7495
|
'Now Playing:'
|
|
@@ -7502,16 +7497,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7502
7497
|
' ',
|
|
7503
7498
|
seriesData[series ? series - 1 : 0].title
|
|
7504
7499
|
),
|
|
7505
|
-
vidUrl &&
|
|
7500
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7506
7501
|
)
|
|
7507
7502
|
),
|
|
7508
|
-
|
|
7509
|
-
|
|
7503
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7504
|
+
React.createElement(
|
|
7510
7505
|
'div',
|
|
7511
7506
|
{ className: 'vid-text' },
|
|
7512
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7507
|
+
Videos[series - 1] && Videos[series - 1].text && React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7513
7508
|
),
|
|
7514
|
-
|
|
7509
|
+
React.createElement(
|
|
7515
7510
|
'style',
|
|
7516
7511
|
{ jsx: 'true' },
|
|
7517
7512
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7564,67 +7559,67 @@ var Poll = function Poll(_ref) {
|
|
|
7564
7559
|
return acc;
|
|
7565
7560
|
}
|
|
7566
7561
|
}, 0);
|
|
7567
|
-
return
|
|
7568
|
-
|
|
7562
|
+
return React.createElement(
|
|
7563
|
+
React.Fragment,
|
|
7569
7564
|
null,
|
|
7570
|
-
question &&
|
|
7565
|
+
question && React.createElement(
|
|
7571
7566
|
'p',
|
|
7572
7567
|
{ className: 'font-weight-bold' },
|
|
7573
7568
|
question
|
|
7574
7569
|
),
|
|
7575
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7570
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7576
7571
|
'form',
|
|
7577
7572
|
{ onSubmit: function onSubmit(e) {
|
|
7578
7573
|
return onSubmitPoll(e);
|
|
7579
7574
|
} },
|
|
7580
7575
|
choices && choices.map(function (choice) {
|
|
7581
|
-
return
|
|
7576
|
+
return React.createElement(
|
|
7582
7577
|
'div',
|
|
7583
7578
|
{ key: choice._key },
|
|
7584
|
-
|
|
7579
|
+
React.createElement(
|
|
7585
7580
|
'label',
|
|
7586
7581
|
{ className: 'pl-2' },
|
|
7587
|
-
|
|
7582
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7588
7583
|
return setSelectedChoice(e.target.value);
|
|
7589
7584
|
} }),
|
|
7590
7585
|
' ' + choice.choiceText
|
|
7591
7586
|
)
|
|
7592
7587
|
);
|
|
7593
7588
|
}),
|
|
7594
|
-
|
|
7589
|
+
React.createElement(
|
|
7595
7590
|
Button,
|
|
7596
7591
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7597
7592
|
'Vote'
|
|
7598
7593
|
)
|
|
7599
7594
|
),
|
|
7600
|
-
|
|
7595
|
+
React.createElement(
|
|
7601
7596
|
'div',
|
|
7602
7597
|
{ className: 'progress-container' },
|
|
7603
7598
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7604
7599
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7605
|
-
return
|
|
7600
|
+
return React.createElement(
|
|
7606
7601
|
'div',
|
|
7607
7602
|
{ key: choice._key, className: 'mb-3' },
|
|
7608
|
-
|
|
7603
|
+
React.createElement(
|
|
7609
7604
|
'div',
|
|
7610
7605
|
{ className: 'correct-answer' },
|
|
7611
|
-
|
|
7606
|
+
React.createElement(
|
|
7612
7607
|
'div',
|
|
7613
7608
|
null,
|
|
7614
7609
|
choice.choiceText
|
|
7615
7610
|
),
|
|
7616
|
-
choice.choiceAnswer === true &&
|
|
7611
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7617
7612
|
'div',
|
|
7618
7613
|
null,
|
|
7619
|
-
|
|
7614
|
+
React.createElement(
|
|
7620
7615
|
'span',
|
|
7621
7616
|
{ style: { color: 'limegreen' } },
|
|
7622
7617
|
'Correct!'
|
|
7623
7618
|
)
|
|
7624
7619
|
)
|
|
7625
7620
|
),
|
|
7626
|
-
|
|
7627
|
-
|
|
7621
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7622
|
+
React.createElement(
|
|
7628
7623
|
'span',
|
|
7629
7624
|
{ className: 'float-right' },
|
|
7630
7625
|
percentage,
|
|
@@ -7635,14 +7630,14 @@ var Poll = function Poll(_ref) {
|
|
|
7635
7630
|
);
|
|
7636
7631
|
})
|
|
7637
7632
|
),
|
|
7638
|
-
showAnswer &&
|
|
7633
|
+
showAnswer && React.createElement(
|
|
7639
7634
|
'h4',
|
|
7640
7635
|
{ className: 'text-center small p-3' },
|
|
7641
7636
|
'Total Votes: ',
|
|
7642
7637
|
choicesTotalCount
|
|
7643
7638
|
),
|
|
7644
|
-
showAnswer && response &&
|
|
7645
|
-
|
|
7639
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7640
|
+
React.createElement(
|
|
7646
7641
|
'style',
|
|
7647
7642
|
{ jsx: 'true' },
|
|
7648
7643
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7741,67 +7736,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7741
7736
|
return acc;
|
|
7742
7737
|
}
|
|
7743
7738
|
}, 0);
|
|
7744
|
-
return
|
|
7745
|
-
|
|
7739
|
+
return React.createElement(
|
|
7740
|
+
React.Fragment,
|
|
7746
7741
|
null,
|
|
7747
|
-
question &&
|
|
7742
|
+
question && React.createElement(
|
|
7748
7743
|
'p',
|
|
7749
7744
|
{ className: 'font-weight-bold' },
|
|
7750
7745
|
question
|
|
7751
7746
|
),
|
|
7752
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7747
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7753
7748
|
'form',
|
|
7754
7749
|
{ onSubmit: function onSubmit(e) {
|
|
7755
7750
|
return onSubmitPoll(e);
|
|
7756
7751
|
} },
|
|
7757
7752
|
choices && choices.map(function (choice) {
|
|
7758
|
-
return
|
|
7753
|
+
return React.createElement(
|
|
7759
7754
|
'div',
|
|
7760
7755
|
{ key: choice._key },
|
|
7761
|
-
|
|
7756
|
+
React.createElement(
|
|
7762
7757
|
'label',
|
|
7763
7758
|
{ className: 'pl-2' },
|
|
7764
|
-
|
|
7759
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7765
7760
|
return setSelectedChoice(e.target.value);
|
|
7766
7761
|
} }),
|
|
7767
7762
|
' ' + choice.choiceText
|
|
7768
7763
|
)
|
|
7769
7764
|
);
|
|
7770
7765
|
}),
|
|
7771
|
-
|
|
7766
|
+
React.createElement(
|
|
7772
7767
|
Button,
|
|
7773
7768
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7774
7769
|
'Vote'
|
|
7775
7770
|
)
|
|
7776
7771
|
),
|
|
7777
|
-
|
|
7772
|
+
React.createElement(
|
|
7778
7773
|
'div',
|
|
7779
7774
|
{ className: 'progress-container' },
|
|
7780
7775
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7781
7776
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7782
|
-
return
|
|
7777
|
+
return React.createElement(
|
|
7783
7778
|
'div',
|
|
7784
7779
|
{ key: choice._key, className: 'mb-3' },
|
|
7785
|
-
|
|
7780
|
+
React.createElement(
|
|
7786
7781
|
'div',
|
|
7787
7782
|
{ className: 'correct-answer' },
|
|
7788
|
-
|
|
7783
|
+
React.createElement(
|
|
7789
7784
|
'div',
|
|
7790
7785
|
null,
|
|
7791
7786
|
choice.choiceText
|
|
7792
7787
|
),
|
|
7793
|
-
choice.choiceAnswer === true &&
|
|
7788
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7794
7789
|
'div',
|
|
7795
7790
|
null,
|
|
7796
|
-
|
|
7791
|
+
React.createElement(
|
|
7797
7792
|
'span',
|
|
7798
7793
|
{ style: { color: 'limegreen' } },
|
|
7799
7794
|
'Correct!'
|
|
7800
7795
|
)
|
|
7801
7796
|
)
|
|
7802
7797
|
),
|
|
7803
|
-
|
|
7804
|
-
|
|
7798
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7799
|
+
React.createElement(
|
|
7805
7800
|
'span',
|
|
7806
7801
|
{ className: 'float-right' },
|
|
7807
7802
|
percentage,
|
|
@@ -7812,14 +7807,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7812
7807
|
);
|
|
7813
7808
|
})
|
|
7814
7809
|
),
|
|
7815
|
-
showAnswer &&
|
|
7810
|
+
showAnswer && React.createElement(
|
|
7816
7811
|
'h4',
|
|
7817
7812
|
{ className: 'text-center small p-3' },
|
|
7818
7813
|
'Total Votes: ',
|
|
7819
7814
|
choicesTotalCount
|
|
7820
7815
|
),
|
|
7821
|
-
showAnswer && response &&
|
|
7822
|
-
|
|
7816
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7817
|
+
React.createElement(
|
|
7823
7818
|
'style',
|
|
7824
7819
|
{ jsx: 'true' },
|
|
7825
7820
|
'\n .correct-answer {\n width: 100%;\n display: flex;\n justify-content: space-between;\n padding: 0 0.5rem;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7827,7 +7822,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7827
7822
|
);
|
|
7828
7823
|
};
|
|
7829
7824
|
|
|
7830
|
-
var numberOfPaginations =
|
|
7825
|
+
var numberOfPaginations = main_38 ? 4 : 10;
|
|
7831
7826
|
|
|
7832
7827
|
var Quiz = function Quiz(_ref) {
|
|
7833
7828
|
var quizzes = _ref.quizzes,
|
|
@@ -7945,34 +7940,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7945
7940
|
};
|
|
7946
7941
|
|
|
7947
7942
|
var renderPagination = function renderPagination() {
|
|
7948
|
-
return
|
|
7949
|
-
Pagination
|
|
7950
|
-
{ className: 'p-0 m-0', size:
|
|
7951
|
-
|
|
7943
|
+
return React.createElement(
|
|
7944
|
+
Pagination,
|
|
7945
|
+
{ className: 'p-0 m-0', size: main_38 && 'sm' },
|
|
7946
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7952
7947
|
return changePage('first');
|
|
7953
7948
|
}, disabled: currentPage === 1 }),
|
|
7954
|
-
|
|
7949
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7955
7950
|
return changePage('prev');
|
|
7956
7951
|
}, disabled: currentPage === 1 }),
|
|
7957
|
-
|
|
7952
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7958
7953
|
return renderNewPages('prev');
|
|
7959
7954
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7960
7955
|
pages.map(function (page) {
|
|
7961
|
-
return
|
|
7962
|
-
Pagination
|
|
7956
|
+
return React.createElement(
|
|
7957
|
+
Pagination.Item,
|
|
7963
7958
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7964
7959
|
return changePage(page);
|
|
7965
7960
|
} },
|
|
7966
7961
|
page
|
|
7967
7962
|
);
|
|
7968
7963
|
}),
|
|
7969
|
-
|
|
7964
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7970
7965
|
return renderNewPages('next');
|
|
7971
7966
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7972
|
-
|
|
7967
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7973
7968
|
return changePage('next');
|
|
7974
7969
|
}, disabled: currentPage === pageCount }),
|
|
7975
|
-
|
|
7970
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7976
7971
|
return changePage('last');
|
|
7977
7972
|
}, disabled: currentPage === pageCount })
|
|
7978
7973
|
);
|
|
@@ -8055,51 +8050,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8055
8050
|
}
|
|
8056
8051
|
};
|
|
8057
8052
|
|
|
8058
|
-
return
|
|
8059
|
-
|
|
8053
|
+
return React.createElement(
|
|
8054
|
+
React.Fragment,
|
|
8060
8055
|
null,
|
|
8061
|
-
quizzes[currentPage - 1] &&
|
|
8062
|
-
|
|
8056
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8057
|
+
React.Fragment,
|
|
8063
8058
|
null,
|
|
8064
|
-
|
|
8065
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8059
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8060
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8066
8061
|
'form',
|
|
8067
8062
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8068
8063
|
return e.preventDefault();
|
|
8069
8064
|
} },
|
|
8070
8065
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8071
|
-
return
|
|
8066
|
+
return React.createElement(
|
|
8072
8067
|
'div',
|
|
8073
8068
|
{ key: answer._key },
|
|
8074
|
-
|
|
8069
|
+
React.createElement(
|
|
8075
8070
|
'label',
|
|
8076
8071
|
{ className: 'pl-2' },
|
|
8077
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8072
|
+
quizzes[currentPage - 1].multiAnswer ? React.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8078
8073
|
' ' + answer.answerText
|
|
8079
8074
|
)
|
|
8080
8075
|
);
|
|
8081
8076
|
})
|
|
8082
8077
|
)
|
|
8083
8078
|
),
|
|
8084
|
-
!showAnswer &&
|
|
8079
|
+
!showAnswer && React.createElement(
|
|
8085
8080
|
Button$1,
|
|
8086
8081
|
{ onClick: function onClick() {
|
|
8087
8082
|
return checkAnswers();
|
|
8088
8083
|
}, variant: 'info', block: true },
|
|
8089
8084
|
'Please click here for answer'
|
|
8090
8085
|
),
|
|
8091
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8092
|
-
|
|
8086
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8087
|
+
React.Fragment,
|
|
8093
8088
|
null,
|
|
8094
|
-
|
|
8089
|
+
React.createElement(
|
|
8095
8090
|
'h4',
|
|
8096
8091
|
null,
|
|
8097
8092
|
'Answer:'
|
|
8098
8093
|
),
|
|
8099
|
-
quizzes[currentPage - 1].answer &&
|
|
8094
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8100
8095
|
),
|
|
8101
|
-
|
|
8102
|
-
pageCount > 1 &&
|
|
8096
|
+
React.createElement('br', null),
|
|
8097
|
+
pageCount > 1 && React.createElement(
|
|
8103
8098
|
'div',
|
|
8104
8099
|
{ className: 'd-flex justify-content-center' },
|
|
8105
8100
|
renderPagination()
|
|
@@ -8110,15 +8105,15 @@ var Quiz = function Quiz(_ref) {
|
|
|
8110
8105
|
var Leads = function Leads(_ref) {
|
|
8111
8106
|
var url = _ref.url;
|
|
8112
8107
|
|
|
8113
|
-
return
|
|
8108
|
+
return React.createElement(
|
|
8114
8109
|
'div',
|
|
8115
8110
|
{ className: 'd-block text-center mb-3' },
|
|
8116
|
-
|
|
8111
|
+
React.createElement(
|
|
8117
8112
|
'style',
|
|
8118
8113
|
{ jsx: 'true' },
|
|
8119
8114
|
'\n @media screen and (max-width: 1190px) {\n .leads-block {\n min-height: 2000px;\n }\n }\n @media screen and (min-width: 1191px) {\n .leads-block {\n min-height: 1500px;\n }\n }\n '
|
|
8120
8115
|
),
|
|
8121
|
-
url &&
|
|
8116
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8122
8117
|
);
|
|
8123
8118
|
};
|
|
8124
8119
|
|
|
@@ -8158,53 +8153,53 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8158
8153
|
setCarouselIndex(selectedIndex);
|
|
8159
8154
|
};
|
|
8160
8155
|
|
|
8161
|
-
return
|
|
8156
|
+
return React.createElement(
|
|
8162
8157
|
'div',
|
|
8163
8158
|
{ className: 'mt-3 mb-4' },
|
|
8164
|
-
|
|
8159
|
+
React.createElement(
|
|
8165
8160
|
Carousel,
|
|
8166
8161
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8167
8162
|
slides && slides.map(function (slide) {
|
|
8168
8163
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8169
|
-
return
|
|
8164
|
+
return React.createElement(
|
|
8170
8165
|
Carousel.Item,
|
|
8171
8166
|
{ key: slide._key },
|
|
8172
|
-
|
|
8167
|
+
React.createElement(
|
|
8173
8168
|
'a',
|
|
8174
8169
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8175
|
-
|
|
8170
|
+
React.createElement(
|
|
8176
8171
|
'div',
|
|
8177
8172
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8178
|
-
|
|
8173
|
+
React.createElement(
|
|
8179
8174
|
LazyLoad,
|
|
8180
8175
|
null,
|
|
8181
|
-
|
|
8176
|
+
React.createElement(
|
|
8182
8177
|
'picture',
|
|
8183
8178
|
null,
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8179
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8180
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8181
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8182
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8188
8183
|
)
|
|
8189
8184
|
)
|
|
8190
8185
|
)
|
|
8191
8186
|
),
|
|
8192
|
-
|
|
8187
|
+
React.createElement(
|
|
8193
8188
|
'div',
|
|
8194
8189
|
{ className: 'p-2' },
|
|
8195
|
-
slide.slideshowImage.caption &&
|
|
8190
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8196
8191
|
'h3',
|
|
8197
8192
|
{ style: { padding: '0px' } },
|
|
8198
8193
|
slide.slideshowImage.caption
|
|
8199
8194
|
),
|
|
8200
|
-
slide.description &&
|
|
8195
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8201
8196
|
)
|
|
8202
8197
|
);
|
|
8203
8198
|
}
|
|
8204
8199
|
return null;
|
|
8205
8200
|
})
|
|
8206
8201
|
),
|
|
8207
|
-
|
|
8202
|
+
React.createElement(
|
|
8208
8203
|
'style',
|
|
8209
8204
|
{ jsx: 'true' },
|
|
8210
8205
|
'\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 '
|
|
@@ -8223,10 +8218,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8223
8218
|
sizes = _props$node.sizes,
|
|
8224
8219
|
sizeMapping = _props$node.sizeMapping;
|
|
8225
8220
|
|
|
8226
|
-
return
|
|
8221
|
+
return React.createElement(
|
|
8227
8222
|
'div',
|
|
8228
8223
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8229
|
-
|
|
8224
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8230
8225
|
);
|
|
8231
8226
|
};
|
|
8232
8227
|
|
|
@@ -8237,15 +8232,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8237
8232
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8238
8233
|
|
|
8239
8234
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8240
|
-
return
|
|
8235
|
+
return React.createElement(
|
|
8241
8236
|
'section',
|
|
8242
8237
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8243
|
-
Caption &&
|
|
8238
|
+
Caption && React.createElement(
|
|
8244
8239
|
'h4',
|
|
8245
8240
|
{ className: 'formstack-caption' },
|
|
8246
8241
|
Caption
|
|
8247
8242
|
),
|
|
8248
|
-
|
|
8243
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8249
8244
|
);
|
|
8250
8245
|
};
|
|
8251
8246
|
|
|
@@ -8261,36 +8256,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8261
8256
|
}
|
|
8262
8257
|
});
|
|
8263
8258
|
if (medias && medias.length > 0) {
|
|
8264
|
-
return
|
|
8259
|
+
return React.createElement(
|
|
8265
8260
|
'div',
|
|
8266
8261
|
{ className: 'multi-media-container' },
|
|
8267
|
-
|
|
8262
|
+
React.createElement(
|
|
8268
8263
|
Row$1,
|
|
8269
8264
|
{ noGutters: true },
|
|
8270
8265
|
medias.map(function (media) {
|
|
8271
|
-
return
|
|
8266
|
+
return React.createElement(
|
|
8272
8267
|
Col$1,
|
|
8273
8268
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8274
|
-
|
|
8269
|
+
React.createElement(
|
|
8275
8270
|
'a',
|
|
8276
|
-
_extends
|
|
8271
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8277
8272
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8278
|
-
|
|
8273
|
+
React.createElement(
|
|
8279
8274
|
'div',
|
|
8280
8275
|
{ className: 'multi-media-image-container' },
|
|
8281
|
-
imageBox &&
|
|
8276
|
+
imageBox && React.createElement(
|
|
8282
8277
|
LazyLoad,
|
|
8283
8278
|
{ once: true },
|
|
8284
|
-
|
|
8279
|
+
React.createElement(
|
|
8285
8280
|
'picture',
|
|
8286
8281
|
null,
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8282
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8283
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8284
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8285
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8291
8286
|
)
|
|
8292
8287
|
),
|
|
8293
|
-
media.caption &&
|
|
8288
|
+
media.caption && React.createElement(
|
|
8294
8289
|
'span',
|
|
8295
8290
|
{ className: 'multi-media-caption' },
|
|
8296
8291
|
media.caption
|
|
@@ -8300,7 +8295,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8300
8295
|
);
|
|
8301
8296
|
})
|
|
8302
8297
|
),
|
|
8303
|
-
|
|
8298
|
+
React.createElement(
|
|
8304
8299
|
'style',
|
|
8305
8300
|
{ jsx: 'true' },
|
|
8306
8301
|
'\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 '
|
|
@@ -8347,7 +8342,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8347
8342
|
}
|
|
8348
8343
|
};
|
|
8349
8344
|
|
|
8350
|
-
_this.wraperRef =
|
|
8345
|
+
_this.wraperRef = React.createRef();
|
|
8351
8346
|
_this.visible = false;
|
|
8352
8347
|
return _this;
|
|
8353
8348
|
}
|
|
@@ -8375,7 +8370,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8375
8370
|
_props$id = _props.id,
|
|
8376
8371
|
id = _props$id === undefined ? '' : _props$id;
|
|
8377
8372
|
|
|
8378
|
-
return
|
|
8373
|
+
return React.createElement(
|
|
8379
8374
|
'div',
|
|
8380
8375
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8381
8376
|
this.props.children
|
|
@@ -8384,7 +8379,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8384
8379
|
}]);
|
|
8385
8380
|
|
|
8386
8381
|
return InscreenSensor;
|
|
8387
|
-
}(
|
|
8382
|
+
}(React.Component);
|
|
8388
8383
|
|
|
8389
8384
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8390
8385
|
var nodes = _ref.nodes,
|
|
@@ -8493,33 +8488,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8493
8488
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8494
8489
|
var showReading = show ? 'showReading' : '';
|
|
8495
8490
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8496
|
-
return
|
|
8491
|
+
return React.createElement(
|
|
8497
8492
|
'div',
|
|
8498
8493
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8499
|
-
|
|
8494
|
+
React.createElement(
|
|
8500
8495
|
'a',
|
|
8501
8496
|
{ onClick: function onClick(e) {
|
|
8502
8497
|
return articleCardClickHandler(e);
|
|
8503
8498
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8504
|
-
|
|
8499
|
+
React.createElement(
|
|
8505
8500
|
'div',
|
|
8506
8501
|
{ className: 'prevNext-thumbnail' },
|
|
8507
|
-
|
|
8508
|
-
|
|
8502
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8503
|
+
React.createElement(
|
|
8509
8504
|
'div',
|
|
8510
8505
|
{ className: 'prevNext-reading ' + showReading },
|
|
8511
8506
|
articleLabel
|
|
8512
8507
|
)
|
|
8513
8508
|
),
|
|
8514
|
-
|
|
8509
|
+
React.createElement(
|
|
8515
8510
|
'div',
|
|
8516
8511
|
{ className: 'prevNext-summary' },
|
|
8517
|
-
|
|
8512
|
+
React.createElement(
|
|
8518
8513
|
'div',
|
|
8519
8514
|
{ className: 'prevNext-publishDate' },
|
|
8520
8515
|
moment(article.published).format('LL')
|
|
8521
8516
|
),
|
|
8522
|
-
|
|
8517
|
+
React.createElement(
|
|
8523
8518
|
'h2',
|
|
8524
8519
|
{ className: 'prevNext-title' },
|
|
8525
8520
|
article.title
|
|
@@ -8568,7 +8563,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8568
8563
|
|
|
8569
8564
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8570
8565
|
if (biography) {
|
|
8571
|
-
return
|
|
8566
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8572
8567
|
}
|
|
8573
8568
|
};
|
|
8574
8569
|
|
|
@@ -8654,7 +8649,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8654
8649
|
//console.log('useLayoutEffect')
|
|
8655
8650
|
if (!firstLoad) {
|
|
8656
8651
|
setUpArrowClicked(false);
|
|
8657
|
-
if (
|
|
8652
|
+
if (main_39) {
|
|
8658
8653
|
grabLoadedAds();
|
|
8659
8654
|
} else {
|
|
8660
8655
|
scrollToArticle();
|
|
@@ -8678,7 +8673,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8678
8673
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8679
8674
|
if (pageview) pageview(path);
|
|
8680
8675
|
|
|
8681
|
-
if (!
|
|
8676
|
+
if (!main_39) {
|
|
8682
8677
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8683
8678
|
if (window.googletag && googletag.pubadsReady) {
|
|
8684
8679
|
lib_3.refresh();
|
|
@@ -8686,7 +8681,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8686
8681
|
});
|
|
8687
8682
|
}
|
|
8688
8683
|
//Refresh leaderboard ad on mobile
|
|
8689
|
-
if (
|
|
8684
|
+
if (main_39) {
|
|
8690
8685
|
var leaderboardSlotId = '';
|
|
8691
8686
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8692
8687
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8726,38 +8721,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8726
8721
|
setSensorVisible(false);
|
|
8727
8722
|
};
|
|
8728
8723
|
|
|
8729
|
-
return
|
|
8730
|
-
|
|
8724
|
+
return React.createElement(
|
|
8725
|
+
React.Fragment,
|
|
8731
8726
|
null,
|
|
8732
|
-
|
|
8727
|
+
React.createElement(
|
|
8733
8728
|
'div',
|
|
8734
8729
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8735
|
-
|
|
8730
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8736
8731
|
return handleArrowClick();
|
|
8737
8732
|
} })
|
|
8738
8733
|
),
|
|
8739
|
-
|
|
8740
|
-
|
|
8734
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8735
|
+
React.createElement(
|
|
8741
8736
|
'div',
|
|
8742
8737
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8743
|
-
|
|
8738
|
+
React.createElement(
|
|
8744
8739
|
'h5',
|
|
8745
8740
|
{ className: 'objective-title' },
|
|
8746
8741
|
nodes.seriesTitle
|
|
8747
8742
|
),
|
|
8748
|
-
|
|
8743
|
+
React.createElement(
|
|
8749
8744
|
'div',
|
|
8750
8745
|
{ className: 'prevNextWrapper' },
|
|
8751
8746
|
PrevNextCards(false, -1)
|
|
8752
8747
|
)
|
|
8753
8748
|
),
|
|
8754
|
-
|
|
8755
|
-
|
|
8749
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8750
|
+
React.createElement(
|
|
8756
8751
|
'div',
|
|
8757
8752
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8758
|
-
|
|
8753
|
+
main_39 && Ads.map(function (ad, index) {
|
|
8759
8754
|
if (index === 0) {
|
|
8760
|
-
return
|
|
8755
|
+
return React.createElement(
|
|
8761
8756
|
'div',
|
|
8762
8757
|
{
|
|
8763
8758
|
key: 'addid-1',
|
|
@@ -8777,14 +8772,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8777
8772
|
}
|
|
8778
8773
|
})
|
|
8779
8774
|
),
|
|
8780
|
-
|
|
8775
|
+
React.createElement(
|
|
8781
8776
|
'div',
|
|
8782
8777
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8783
8778
|
Articles.map(function (article, index) {
|
|
8784
|
-
return
|
|
8779
|
+
return React.createElement(
|
|
8785
8780
|
'div',
|
|
8786
8781
|
{ key: article.title },
|
|
8787
|
-
|
|
8782
|
+
React.createElement(
|
|
8788
8783
|
InscreenSensor,
|
|
8789
8784
|
{
|
|
8790
8785
|
visible: sensorVisible,
|
|
@@ -8802,84 +8797,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8802
8797
|
}
|
|
8803
8798
|
}
|
|
8804
8799
|
} },
|
|
8805
|
-
|
|
8800
|
+
React.createElement(
|
|
8806
8801
|
Head,
|
|
8807
8802
|
null,
|
|
8808
|
-
currentTitle !== null &&
|
|
8803
|
+
currentTitle !== null && React.createElement(
|
|
8809
8804
|
'title',
|
|
8810
8805
|
{ key: 'title' },
|
|
8811
8806
|
currentTitle
|
|
8812
8807
|
),
|
|
8813
|
-
currentSummary !== null &&
|
|
8814
|
-
currentURL !== null &&
|
|
8815
|
-
currentTitle !== null &&
|
|
8816
|
-
currentThumbnail !== null &&
|
|
8817
|
-
currentSummary !== null &&
|
|
8818
|
-
currentTitle !== null &&
|
|
8819
|
-
currentThumbnail !== null &&
|
|
8820
|
-
currentSummary !== null &&
|
|
8808
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8809
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8810
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8811
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8812
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8813
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8814
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8815
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8821
8816
|
),
|
|
8822
|
-
|
|
8817
|
+
React.createElement(
|
|
8823
8818
|
'article',
|
|
8824
8819
|
{ className: 'article-wrapper' },
|
|
8825
|
-
|
|
8820
|
+
React.createElement(
|
|
8826
8821
|
'div',
|
|
8827
8822
|
{ className: 'article-publishDate' },
|
|
8828
8823
|
moment(article.published).format('LL')
|
|
8829
8824
|
),
|
|
8830
|
-
|
|
8825
|
+
React.createElement(
|
|
8831
8826
|
'div',
|
|
8832
8827
|
{ className: 'author-details-wrapper' },
|
|
8833
8828
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8834
|
-
return
|
|
8829
|
+
return React.createElement(
|
|
8835
8830
|
'span',
|
|
8836
8831
|
{ key: index },
|
|
8837
8832
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8838
8833
|
);
|
|
8839
8834
|
})
|
|
8840
8835
|
),
|
|
8841
|
-
|
|
8836
|
+
React.createElement(
|
|
8842
8837
|
'h2',
|
|
8843
8838
|
{ className: 'article-title' },
|
|
8844
8839
|
article.title
|
|
8845
8840
|
),
|
|
8846
|
-
|
|
8841
|
+
React.createElement(
|
|
8847
8842
|
'div',
|
|
8848
8843
|
{ className: 'mt-2 mb-2' },
|
|
8849
|
-
|
|
8844
|
+
React.createElement(BlockContent, _extends({
|
|
8850
8845
|
serializers: getSerializers,
|
|
8851
8846
|
videoAccountIDs: accountIDs,
|
|
8852
8847
|
blocks: article.text,
|
|
8853
8848
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8854
8849
|
}, client.config())),
|
|
8855
|
-
|
|
8850
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8856
8851
|
),
|
|
8857
|
-
Articles.length > 1 &&
|
|
8858
|
-
|
|
8852
|
+
Articles.length > 1 && React.createElement(
|
|
8853
|
+
React.Fragment,
|
|
8859
8854
|
null,
|
|
8860
|
-
|
|
8855
|
+
React.createElement(
|
|
8861
8856
|
'div',
|
|
8862
8857
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8863
|
-
|
|
8858
|
+
React.createElement(
|
|
8864
8859
|
'h5',
|
|
8865
8860
|
{ className: 'objective-title' },
|
|
8866
8861
|
nodes.seriesTitle
|
|
8867
8862
|
),
|
|
8868
|
-
|
|
8863
|
+
React.createElement(
|
|
8869
8864
|
'div',
|
|
8870
8865
|
{ className: 'prevNextWrapper' },
|
|
8871
8866
|
PrevNextCards(true, index)
|
|
8872
8867
|
)
|
|
8873
8868
|
),
|
|
8874
|
-
|
|
8869
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8875
8870
|
)
|
|
8876
8871
|
),
|
|
8877
|
-
|
|
8872
|
+
React.createElement(
|
|
8878
8873
|
'div',
|
|
8879
8874
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8880
|
-
|
|
8875
|
+
main_39 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8881
8876
|
if (innerIndex === 0) {
|
|
8882
|
-
return
|
|
8877
|
+
return React.createElement(
|
|
8883
8878
|
'div',
|
|
8884
8879
|
{
|
|
8885
8880
|
key: 'addid-' + (index + 2),
|
|
@@ -8902,7 +8897,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8902
8897
|
)
|
|
8903
8898
|
);
|
|
8904
8899
|
}),
|
|
8905
|
-
|
|
8900
|
+
React.createElement(
|
|
8906
8901
|
'style',
|
|
8907
8902
|
{ jsx: 'true' },
|
|
8908
8903
|
'\n .scrollToTopArrow {\n position: fixed;\n top: 150px;\n display: flex;\n justify-content: center;\n width: ' + contentWidth + 'px;\n opacity: 1;\n z-index: 99999999999;\n visibility: hidden;\n }\n .scrollToTopArrow > svg {\n min-height: 50px;\n min-width: 50px;\n max-height: 50px;\n max-width: 50px;\n }\n .block-content > div p {\n padding: 0;\n }\n\n h2.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.prevNext-title {\n padding: 0;\n font-size: 1rem;\n font-weight: 500;\n }\n .article-wrapper {\n border: 1px solid #252525;\n border-radius: 5px;\n padding: 1rem 1rem 0 1rem;\n margin-bottom: 1rem;\n }\n .prevNext-reading {\n margin-top: -10px;\n width: 75%;\n text-align: center;\n background: white;\n border: 1px solid #252525;\n align-self: center;\n display: none;\n }\n .showReading {\n display: block;\n }\n .author-details-wrapper a {\n color: #252525;\n }\n .objective-prevNext-Wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .objective-title {\n padding: 0 !important;\n }\n .prevNext-thumbnail {\n display: flex;\n flex-direction: column;\n min-width: 225px;\n max-width: 225px;\n overflow: hidden;\n align-items: center;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-thumbnail img {\n height: 125px;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-summary {\n text-align: center;\n }\n .prevNext-publishDate {\n font-size: 0.75rem;\n margin-top: 0.5rem;\n }\n .prevNext-title {\n padding: 0 !important;\n line-height: 1 !important;\n font-weight: 500;\n }\n .prevNextWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n flex-wrap: wrap;\n }\n .prevNextWrapper a {\n display: flex;\n flex-direction: column;\n color: #252525;\n align-items: center;\n }\n .prevNextCards {\n max-width: 250px;\n margin-bottom: 1rem;\n }\n @media only screen and (max-width: 568px) {\n .prevNextWrapper {\n flex-direction: column;\n align-items: center;\n }\n .prevNextCards {\n margin-bottom: 2rem;\n }\n }\n @media only screen and (max-width: 568px) {\n }\n '
|
|
@@ -8932,11 +8927,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8932
8927
|
};
|
|
8933
8928
|
}, [handleClickOutside]);
|
|
8934
8929
|
|
|
8935
|
-
return
|
|
8930
|
+
return React.createElement(
|
|
8936
8931
|
'div',
|
|
8937
8932
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8938
|
-
|
|
8939
|
-
|
|
8933
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8934
|
+
React.createElement(
|
|
8940
8935
|
'style',
|
|
8941
8936
|
{ jsx: 'true' },
|
|
8942
8937
|
'\n /*Eliminates padding, centers the thumbnail */\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -8950,7 +8945,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8950
8945
|
}
|
|
8951
8946
|
};
|
|
8952
8947
|
|
|
8953
|
-
var FigureImage =
|
|
8948
|
+
var FigureImage = React.memo(function (_ref2) {
|
|
8954
8949
|
var node = _ref2.node,
|
|
8955
8950
|
client = _ref2.client,
|
|
8956
8951
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8958,13 +8953,13 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8958
8953
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8959
8954
|
|
|
8960
8955
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8961
|
-
return
|
|
8956
|
+
return React.createElement(
|
|
8962
8957
|
'picture',
|
|
8963
8958
|
null,
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8959
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8960
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8961
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8962
|
+
React.createElement('img', _extends({
|
|
8968
8963
|
style: figureImageStyle,
|
|
8969
8964
|
className: 'figure-image',
|
|
8970
8965
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9015,30 +9010,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9015
9010
|
|
|
9016
9011
|
var renderTooltip = function renderTooltip(props) {
|
|
9017
9012
|
if (infoBox[0].title) {
|
|
9018
|
-
return
|
|
9019
|
-
Popover
|
|
9013
|
+
return React.createElement(
|
|
9014
|
+
Popover,
|
|
9020
9015
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9021
|
-
|
|
9022
|
-
Popover
|
|
9016
|
+
React.createElement(
|
|
9017
|
+
Popover.Title,
|
|
9023
9018
|
{ as: 'h3' },
|
|
9024
9019
|
infoBox[0].title
|
|
9025
9020
|
),
|
|
9026
|
-
|
|
9027
|
-
Popover
|
|
9021
|
+
React.createElement(
|
|
9022
|
+
Popover.Content,
|
|
9028
9023
|
null,
|
|
9029
|
-
|
|
9024
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9030
9025
|
)
|
|
9031
9026
|
);
|
|
9032
9027
|
} else {
|
|
9033
|
-
return
|
|
9034
|
-
Tooltip
|
|
9035
|
-
_extends
|
|
9036
|
-
|
|
9028
|
+
return React.createElement(
|
|
9029
|
+
Tooltip,
|
|
9030
|
+
_extends({ id: 'button-tooltip' }, props),
|
|
9031
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9037
9032
|
);
|
|
9038
9033
|
}
|
|
9039
9034
|
};
|
|
9040
9035
|
|
|
9041
|
-
var FigureImageWOverLay =
|
|
9036
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9042
9037
|
var node = _ref3.node,
|
|
9043
9038
|
client = _ref3.client,
|
|
9044
9039
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9046,32 +9041,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9046
9041
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9047
9042
|
|
|
9048
9043
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9049
|
-
var triggerAction =
|
|
9050
|
-
var placementLocation =
|
|
9051
|
-
return
|
|
9044
|
+
var triggerAction = main_38 ? 'click' : 'hover';
|
|
9045
|
+
var placementLocation = main_38 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9046
|
+
return React.createElement(
|
|
9052
9047
|
'picture',
|
|
9053
9048
|
null,
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9049
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9050
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9051
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9052
|
+
main_38 && link ? React.createElement('img', _extends({
|
|
9058
9053
|
style: figureImageStyle,
|
|
9059
9054
|
className: 'figure-image',
|
|
9060
9055
|
src: urlFor({ source: node, client: client }),
|
|
9061
9056
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9062
|
-
}, !link && !
|
|
9057
|
+
}, !link && !main_38 && {
|
|
9063
9058
|
onClick: function onClick() {
|
|
9064
9059
|
return handleClickFigure(node, client);
|
|
9065
9060
|
}
|
|
9066
|
-
})) :
|
|
9061
|
+
})) : React.createElement(
|
|
9067
9062
|
OverlayTrigger,
|
|
9068
9063
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9069
|
-
|
|
9064
|
+
React.createElement('img', _extends({
|
|
9070
9065
|
style: figureImageStyle,
|
|
9071
9066
|
className: 'figure-image',
|
|
9072
9067
|
src: urlFor({ source: node, client: client }),
|
|
9073
9068
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9074
|
-
}, !link && !
|
|
9069
|
+
}, !link && !main_38 && {
|
|
9075
9070
|
onClick: function onClick() {
|
|
9076
9071
|
return handleClickFigure(node, client);
|
|
9077
9072
|
}
|
|
@@ -9120,13 +9115,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9120
9115
|
|
|
9121
9116
|
var FigureCaption = useCallback(function () {
|
|
9122
9117
|
if (imgcaption && imgcaption.length > 0) {
|
|
9123
|
-
return
|
|
9118
|
+
return React.createElement(
|
|
9124
9119
|
'div',
|
|
9125
9120
|
{ className: 'figure-caption' },
|
|
9126
|
-
|
|
9121
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9127
9122
|
);
|
|
9128
9123
|
} else if (caption) {
|
|
9129
|
-
return
|
|
9124
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9130
9125
|
} else return null;
|
|
9131
9126
|
}, [caption, imgcaption]);
|
|
9132
9127
|
|
|
@@ -9143,24 +9138,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9143
9138
|
setShowLightbox(true);
|
|
9144
9139
|
}, [node, client]);
|
|
9145
9140
|
|
|
9146
|
-
return
|
|
9147
|
-
|
|
9141
|
+
return React.createElement(
|
|
9142
|
+
React.Fragment,
|
|
9148
9143
|
null,
|
|
9149
|
-
infoBox.length >= 1 ?
|
|
9150
|
-
Figure$
|
|
9144
|
+
infoBox.length >= 1 ? React.createElement(
|
|
9145
|
+
Figure$2,
|
|
9151
9146
|
{ className: '' + class_name, style: figureStyle },
|
|
9152
|
-
link ?
|
|
9147
|
+
link ? React.createElement(
|
|
9153
9148
|
'a',
|
|
9154
9149
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
) :
|
|
9158
|
-
|
|
9150
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9151
|
+
React.createElement(FigureCaption, null)
|
|
9152
|
+
) : React.createElement(
|
|
9153
|
+
React.Fragment,
|
|
9159
9154
|
null,
|
|
9160
|
-
|
|
9161
|
-
|
|
9155
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9156
|
+
React.createElement(FigureCaption, null)
|
|
9162
9157
|
),
|
|
9163
|
-
|
|
9158
|
+
React.createElement(LightBox, {
|
|
9164
9159
|
showLightbox: showLightbox,
|
|
9165
9160
|
lightboxImgSrc: lightboxImgSrc,
|
|
9166
9161
|
closeLightbox: function closeLightbox() {
|
|
@@ -9168,21 +9163,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9168
9163
|
setShowLightbox(false);
|
|
9169
9164
|
}
|
|
9170
9165
|
})
|
|
9171
|
-
) :
|
|
9172
|
-
Figure$
|
|
9166
|
+
) : React.createElement(
|
|
9167
|
+
Figure$2,
|
|
9173
9168
|
{ className: '' + class_name, style: figureStyle },
|
|
9174
|
-
link ?
|
|
9169
|
+
link ? React.createElement(
|
|
9175
9170
|
'a',
|
|
9176
9171
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
) :
|
|
9180
|
-
|
|
9172
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9173
|
+
React.createElement(FigureCaption, null)
|
|
9174
|
+
) : React.createElement(
|
|
9175
|
+
React.Fragment,
|
|
9181
9176
|
null,
|
|
9182
|
-
|
|
9183
|
-
|
|
9177
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9178
|
+
React.createElement(FigureCaption, null)
|
|
9184
9179
|
),
|
|
9185
|
-
|
|
9180
|
+
React.createElement(LightBox, {
|
|
9186
9181
|
showLightbox: showLightbox,
|
|
9187
9182
|
lightboxImgSrc: lightboxImgSrc,
|
|
9188
9183
|
closeLightbox: function closeLightbox() {
|
|
@@ -9191,7 +9186,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9191
9186
|
}
|
|
9192
9187
|
})
|
|
9193
9188
|
),
|
|
9194
|
-
|
|
9189
|
+
React.createElement(
|
|
9195
9190
|
'style',
|
|
9196
9191
|
{ jsx: 'true' },
|
|
9197
9192
|
'\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 '
|
|
@@ -9199,7 +9194,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9199
9194
|
);
|
|
9200
9195
|
};
|
|
9201
9196
|
|
|
9202
|
-
var Figure =
|
|
9197
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9203
9198
|
|
|
9204
9199
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9205
9200
|
useEffect(function () {
|
|
@@ -9216,7 +9211,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9216
9211
|
}, [ref]);
|
|
9217
9212
|
}
|
|
9218
9213
|
|
|
9219
|
-
var FigureImage$1 =
|
|
9214
|
+
var FigureImage$1 = React.memo(function (_ref) {
|
|
9220
9215
|
var imagesCount = _ref.imagesCount,
|
|
9221
9216
|
image = _ref.image,
|
|
9222
9217
|
client = _ref.client,
|
|
@@ -9224,13 +9219,13 @@ var FigureImage$1 = React__default.memo(function (_ref) {
|
|
|
9224
9219
|
link = _ref.link,
|
|
9225
9220
|
handleClickFigure = _ref.handleClickFigure;
|
|
9226
9221
|
|
|
9227
|
-
return
|
|
9222
|
+
return React.createElement(
|
|
9228
9223
|
'picture',
|
|
9229
9224
|
null,
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
|
|
9225
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9226
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9227
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9228
|
+
React.createElement('img', _extends({
|
|
9234
9229
|
'images-count': imagesCount,
|
|
9235
9230
|
className: 'multi-figure-image',
|
|
9236
9231
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9267,13 +9262,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9267
9262
|
imgcaption = _ref2.imgcaption;
|
|
9268
9263
|
|
|
9269
9264
|
if (imgcaption && imgcaption.length > 0) {
|
|
9270
|
-
return
|
|
9265
|
+
return React.createElement(
|
|
9271
9266
|
'div',
|
|
9272
9267
|
{ className: 'multi-figure-caption' },
|
|
9273
|
-
|
|
9268
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9274
9269
|
);
|
|
9275
9270
|
} else if (caption) {
|
|
9276
|
-
return
|
|
9271
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9277
9272
|
} else return null;
|
|
9278
9273
|
};
|
|
9279
9274
|
|
|
@@ -9282,7 +9277,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9282
9277
|
setOpenImg(true);
|
|
9283
9278
|
}, [client]);
|
|
9284
9279
|
|
|
9285
|
-
var FigureImageWOverLay =
|
|
9280
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9286
9281
|
var imagesCount = _ref3.imagesCount,
|
|
9287
9282
|
image = _ref3.image,
|
|
9288
9283
|
client = _ref3.client,
|
|
@@ -9290,32 +9285,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9290
9285
|
link = _ref3.link,
|
|
9291
9286
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9292
9287
|
|
|
9293
|
-
var triggerAction =
|
|
9294
|
-
var placementLocation =
|
|
9295
|
-
return
|
|
9288
|
+
var triggerAction = main_38 ? 'click' : 'hover';
|
|
9289
|
+
var placementLocation = main_38 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9290
|
+
return React.createElement(
|
|
9296
9291
|
'picture',
|
|
9297
9292
|
null,
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9293
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9294
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9295
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9296
|
+
main_38 && link ? React.createElement('img', _extends({
|
|
9302
9297
|
'images-count': imagesCount,
|
|
9303
9298
|
className: 'multi-figure-image',
|
|
9304
9299
|
src: urlFor({ source: image, client: client }),
|
|
9305
9300
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9306
|
-
}, !link && !
|
|
9301
|
+
}, !link && !main_38 && {
|
|
9307
9302
|
onClick: function onClick() {
|
|
9308
9303
|
return handleClickFigure(image, client);
|
|
9309
9304
|
}
|
|
9310
|
-
})) :
|
|
9305
|
+
})) : React.createElement(
|
|
9311
9306
|
OverlayTrigger,
|
|
9312
9307
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9313
|
-
|
|
9308
|
+
React.createElement('img', _extends({
|
|
9314
9309
|
'images-count': imagesCount,
|
|
9315
9310
|
className: 'multi-figure-image',
|
|
9316
9311
|
src: urlFor({ source: image, client: client }),
|
|
9317
9312
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9318
|
-
}, !link && !
|
|
9313
|
+
}, !link && !main_38 && {
|
|
9319
9314
|
onClick: function onClick() {
|
|
9320
9315
|
return handleClickFigure(image, client);
|
|
9321
9316
|
}
|
|
@@ -9326,102 +9321,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9326
9321
|
|
|
9327
9322
|
var renderTooltip = function renderTooltip(image) {
|
|
9328
9323
|
if (image.infoBox[0].title) {
|
|
9329
|
-
return
|
|
9330
|
-
Popover
|
|
9324
|
+
return React.createElement(
|
|
9325
|
+
Popover,
|
|
9331
9326
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9332
|
-
|
|
9333
|
-
Popover
|
|
9327
|
+
React.createElement(
|
|
9328
|
+
Popover.Title,
|
|
9334
9329
|
{ as: 'h3' },
|
|
9335
9330
|
image.infoBox[0].title
|
|
9336
9331
|
),
|
|
9337
|
-
|
|
9338
|
-
Popover
|
|
9332
|
+
React.createElement(
|
|
9333
|
+
Popover.Content,
|
|
9339
9334
|
null,
|
|
9340
|
-
|
|
9335
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9341
9336
|
)
|
|
9342
9337
|
);
|
|
9343
9338
|
} else {
|
|
9344
|
-
return
|
|
9345
|
-
Tooltip
|
|
9346
|
-
_extends
|
|
9347
|
-
|
|
9339
|
+
return React.createElement(
|
|
9340
|
+
Tooltip,
|
|
9341
|
+
_extends({ id: 'button-tooltip' }, props),
|
|
9342
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9348
9343
|
);
|
|
9349
9344
|
}
|
|
9350
9345
|
};
|
|
9351
9346
|
|
|
9352
9347
|
if (images && images.length > 0) {
|
|
9353
|
-
return
|
|
9348
|
+
return React.createElement(
|
|
9354
9349
|
'div',
|
|
9355
9350
|
{ className: 'multi-figure-container' },
|
|
9356
|
-
|
|
9351
|
+
React.createElement(
|
|
9357
9352
|
Row$1,
|
|
9358
9353
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9359
9354
|
images.map(function (image, index) {
|
|
9360
9355
|
if (image.infoBox) {
|
|
9361
|
-
return
|
|
9356
|
+
return React.createElement(
|
|
9362
9357
|
Col$1,
|
|
9363
9358
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9364
|
-
image.link ?
|
|
9359
|
+
image.link ? React.createElement(
|
|
9365
9360
|
'a',
|
|
9366
|
-
_extends
|
|
9367
|
-
|
|
9361
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9362
|
+
React.createElement(
|
|
9368
9363
|
'div',
|
|
9369
9364
|
{ className: 'multi-figure-image-container' },
|
|
9370
|
-
|
|
9365
|
+
React.createElement(
|
|
9371
9366
|
LazyLoad,
|
|
9372
9367
|
{ once: true },
|
|
9373
|
-
|
|
9368
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9374
9369
|
),
|
|
9375
|
-
|
|
9370
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9376
9371
|
)
|
|
9377
|
-
) :
|
|
9372
|
+
) : React.createElement(
|
|
9378
9373
|
'div',
|
|
9379
9374
|
{ className: 'multi-figure-image-container' },
|
|
9380
|
-
|
|
9375
|
+
React.createElement(
|
|
9381
9376
|
LazyLoad,
|
|
9382
9377
|
{ once: true },
|
|
9383
|
-
|
|
9378
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9384
9379
|
),
|
|
9385
|
-
|
|
9380
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9386
9381
|
)
|
|
9387
9382
|
);
|
|
9388
9383
|
} else {
|
|
9389
|
-
return
|
|
9384
|
+
return React.createElement(
|
|
9390
9385
|
Col$1,
|
|
9391
9386
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9392
|
-
image.link ?
|
|
9387
|
+
image.link ? React.createElement(
|
|
9393
9388
|
'a',
|
|
9394
|
-
_extends
|
|
9395
|
-
|
|
9389
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9390
|
+
React.createElement(
|
|
9396
9391
|
'div',
|
|
9397
9392
|
{ className: 'multi-figure-image-container' },
|
|
9398
|
-
|
|
9393
|
+
React.createElement(
|
|
9399
9394
|
LazyLoad,
|
|
9400
9395
|
{ once: true },
|
|
9401
|
-
|
|
9396
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9402
9397
|
),
|
|
9403
|
-
|
|
9398
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9404
9399
|
)
|
|
9405
|
-
) :
|
|
9400
|
+
) : React.createElement(
|
|
9406
9401
|
'div',
|
|
9407
9402
|
{ className: 'multi-figure-image-container' },
|
|
9408
|
-
|
|
9403
|
+
React.createElement(
|
|
9409
9404
|
LazyLoad,
|
|
9410
9405
|
{ once: true },
|
|
9411
|
-
|
|
9406
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9412
9407
|
),
|
|
9413
|
-
|
|
9408
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9414
9409
|
)
|
|
9415
9410
|
);
|
|
9416
9411
|
}
|
|
9417
9412
|
})
|
|
9418
9413
|
),
|
|
9419
|
-
|
|
9414
|
+
React.createElement(
|
|
9420
9415
|
'div',
|
|
9421
9416
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9422
|
-
|
|
9417
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9423
9418
|
),
|
|
9424
|
-
|
|
9419
|
+
React.createElement(
|
|
9425
9420
|
'style',
|
|
9426
9421
|
{ jsx: 'true' },
|
|
9427
9422
|
'\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 '
|
|
@@ -9470,23 +9465,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9470
9465
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9471
9466
|
}, []);
|
|
9472
9467
|
|
|
9473
|
-
return
|
|
9474
|
-
|
|
9468
|
+
return React.createElement(
|
|
9469
|
+
React.Fragment,
|
|
9475
9470
|
null,
|
|
9476
|
-
|
|
9471
|
+
React.createElement(
|
|
9477
9472
|
Head,
|
|
9478
9473
|
null,
|
|
9479
|
-
|
|
9474
|
+
React.createElement('script', {
|
|
9480
9475
|
dangerouslySetInnerHTML: {
|
|
9481
9476
|
__html: 'history.scrollRestoration = "manual"'
|
|
9482
9477
|
}
|
|
9483
9478
|
})
|
|
9484
9479
|
),
|
|
9485
|
-
|
|
9480
|
+
React.createElement(
|
|
9486
9481
|
'div',
|
|
9487
9482
|
{ id: elementId },
|
|
9488
|
-
|
|
9489
|
-
|
|
9483
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9484
|
+
React.createElement(
|
|
9490
9485
|
'style',
|
|
9491
9486
|
{ jsx: 'true' },
|
|
9492
9487
|
'\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 '
|
|
@@ -9520,7 +9515,7 @@ exports.__esModule = true;
|
|
|
9520
9515
|
|
|
9521
9516
|
|
|
9522
9517
|
|
|
9523
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9518
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9524
9519
|
|
|
9525
9520
|
|
|
9526
9521
|
|
|
@@ -9540,7 +9535,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9540
9535
|
|
|
9541
9536
|
|
|
9542
9537
|
|
|
9543
|
-
var _react2 = _interopRequireDefault(
|
|
9538
|
+
var _react2 = _interopRequireDefault(React);
|
|
9544
9539
|
|
|
9545
9540
|
|
|
9546
9541
|
|
|
@@ -9699,7 +9694,7 @@ var ScriptTag = function (_Component) {
|
|
|
9699
9694
|
};
|
|
9700
9695
|
|
|
9701
9696
|
return ScriptTag;
|
|
9702
|
-
}(
|
|
9697
|
+
}(React.Component);
|
|
9703
9698
|
|
|
9704
9699
|
ScriptTag.propTypes = {
|
|
9705
9700
|
/**
|
|
@@ -9778,11 +9773,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9778
9773
|
}, []);
|
|
9779
9774
|
|
|
9780
9775
|
if (iframeSrc) {
|
|
9781
|
-
return
|
|
9776
|
+
return React.createElement(
|
|
9782
9777
|
'section',
|
|
9783
9778
|
{ className: 'form-assembly' },
|
|
9784
|
-
|
|
9785
|
-
|
|
9779
|
+
React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9780
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9786
9781
|
);
|
|
9787
9782
|
}
|
|
9788
9783
|
|
|
@@ -9819,27 +9814,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9819
9814
|
return window.removeEventListener('resize', handleResize);
|
|
9820
9815
|
};
|
|
9821
9816
|
}, []);
|
|
9822
|
-
return
|
|
9817
|
+
return React.createElement(
|
|
9823
9818
|
'div',
|
|
9824
9819
|
{ className: 'blockTableHolder', ref: holder },
|
|
9825
|
-
|
|
9820
|
+
React.createElement(
|
|
9826
9821
|
'div',
|
|
9827
9822
|
{ className: 'blockTable' },
|
|
9828
9823
|
rows && rows.map(function (row) {
|
|
9829
|
-
return
|
|
9824
|
+
return React.createElement(
|
|
9830
9825
|
'div',
|
|
9831
9826
|
{ className: 'blockTableRow' },
|
|
9832
9827
|
row.cells && row.cells.map(function (cell) {
|
|
9833
|
-
return
|
|
9828
|
+
return React.createElement(
|
|
9834
9829
|
'div',
|
|
9835
9830
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9836
|
-
|
|
9831
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9837
9832
|
);
|
|
9838
9833
|
})
|
|
9839
9834
|
);
|
|
9840
9835
|
})
|
|
9841
9836
|
),
|
|
9842
|
-
|
|
9837
|
+
React.createElement(
|
|
9843
9838
|
'style',
|
|
9844
9839
|
{ jsx: true },
|
|
9845
9840
|
'\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 '
|
|
@@ -9918,12 +9913,12 @@ var getSerializers = function getSerializers() {
|
|
|
9918
9913
|
var node = _ref.node;
|
|
9919
9914
|
var url = node.url;
|
|
9920
9915
|
|
|
9921
|
-
return
|
|
9916
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9922
9917
|
},
|
|
9923
9918
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9924
9919
|
var node = _ref2.node;
|
|
9925
9920
|
|
|
9926
|
-
return
|
|
9921
|
+
return React.createElement(YouTubeGallery, {
|
|
9927
9922
|
nodes: node,
|
|
9928
9923
|
article: article,
|
|
9929
9924
|
meta: meta,
|
|
@@ -9937,7 +9932,7 @@ var getSerializers = function getSerializers() {
|
|
|
9937
9932
|
articleSeries: function articleSeries(_ref3) {
|
|
9938
9933
|
var node = _ref3.node;
|
|
9939
9934
|
|
|
9940
|
-
return
|
|
9935
|
+
return React.createElement(ArticleSeries, {
|
|
9941
9936
|
nodes: node,
|
|
9942
9937
|
accountIDs: videoAccountIDs || {},
|
|
9943
9938
|
pageview: pageview,
|
|
@@ -9950,103 +9945,103 @@ var getSerializers = function getSerializers() {
|
|
|
9950
9945
|
figure: function figure(_ref4) {
|
|
9951
9946
|
var node = _ref4.node;
|
|
9952
9947
|
|
|
9953
|
-
return
|
|
9948
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9954
9949
|
},
|
|
9955
9950
|
multifigure: function multifigure(_ref5) {
|
|
9956
9951
|
var node = _ref5.node;
|
|
9957
9952
|
|
|
9958
|
-
return
|
|
9953
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9959
9954
|
},
|
|
9960
9955
|
slideshow: function slideshow(_ref6) {
|
|
9961
9956
|
var node = _ref6.node;
|
|
9962
9957
|
var slides = node.slides;
|
|
9963
9958
|
|
|
9964
|
-
return
|
|
9959
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9965
9960
|
},
|
|
9966
9961
|
sidebar: function sidebar(_ref7) {
|
|
9967
9962
|
var node = _ref7.node;
|
|
9968
9963
|
var caption = node.caption,
|
|
9969
9964
|
content = node.content;
|
|
9970
9965
|
|
|
9971
|
-
return
|
|
9966
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9972
9967
|
},
|
|
9973
9968
|
datatable: function datatable(_ref8) {
|
|
9974
9969
|
var node = _ref8.node;
|
|
9975
9970
|
var table = node.table;
|
|
9976
9971
|
|
|
9977
|
-
return
|
|
9972
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9978
9973
|
},
|
|
9979
9974
|
media: function media(_ref9) {
|
|
9980
9975
|
var node = _ref9.node;
|
|
9981
9976
|
|
|
9982
|
-
return
|
|
9977
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9983
9978
|
},
|
|
9984
9979
|
iframe: function iframe(_ref10) {
|
|
9985
9980
|
var node = _ref10.node;
|
|
9986
9981
|
|
|
9987
|
-
return
|
|
9982
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9988
9983
|
},
|
|
9989
9984
|
video: function video(_ref11) {
|
|
9990
9985
|
var node = _ref11.node;
|
|
9991
9986
|
|
|
9992
|
-
return
|
|
9987
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9993
9988
|
},
|
|
9994
9989
|
audio: function audio(_ref12) {
|
|
9995
9990
|
var node = _ref12.node;
|
|
9996
9991
|
|
|
9997
|
-
return
|
|
9992
|
+
return React.createElement(Audio, { node: node });
|
|
9998
9993
|
},
|
|
9999
9994
|
poll: function poll(_ref13) {
|
|
10000
9995
|
var node = _ref13.node;
|
|
10001
9996
|
|
|
10002
|
-
return
|
|
9997
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
10003
9998
|
},
|
|
10004
9999
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10005
10000
|
var node = _ref14.node;
|
|
10006
10001
|
|
|
10007
|
-
return
|
|
10002
|
+
return React.createElement(Poll$1, {
|
|
10008
10003
|
node: node,
|
|
10009
10004
|
client: client,
|
|
10010
10005
|
pageview: pageview,
|
|
10011
10006
|
videoAccountIDs: videoAccountIDs,
|
|
10012
10007
|
showVotes: showVotes,
|
|
10013
10008
|
onVote: onVote,
|
|
10014
|
-
getSerializers: getSerializers
|
|
10009
|
+
getSerializers: getSerializers(props)
|
|
10015
10010
|
});
|
|
10016
10011
|
},
|
|
10017
10012
|
quiz: function quiz(_ref15) {
|
|
10018
10013
|
var node = _ref15.node;
|
|
10019
10014
|
var quizzes = node.quizzes;
|
|
10020
10015
|
|
|
10021
|
-
return
|
|
10016
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
10022
10017
|
},
|
|
10023
10018
|
leads: function leads(_ref16) {
|
|
10024
10019
|
var node = _ref16.node;
|
|
10025
10020
|
var leadID = node.leadID;
|
|
10026
10021
|
|
|
10027
10022
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10028
|
-
return
|
|
10023
|
+
return React.createElement(Leads, { url: url });
|
|
10029
10024
|
},
|
|
10030
10025
|
slideshows: function slideshows(_ref17) {
|
|
10031
10026
|
var node = _ref17.node;
|
|
10032
10027
|
|
|
10033
|
-
return
|
|
10028
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
10034
10029
|
},
|
|
10035
10030
|
nativeAd: function nativeAd(_ref18) {
|
|
10036
10031
|
var node = _ref18.node;
|
|
10037
10032
|
|
|
10038
|
-
return
|
|
10033
|
+
return React.createElement(NativeAd, { node: node });
|
|
10039
10034
|
},
|
|
10040
10035
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10041
10036
|
var node = _ref19.node;
|
|
10042
10037
|
|
|
10043
|
-
return
|
|
10038
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10044
10039
|
},
|
|
10045
10040
|
hrtag: function hrtag() {
|
|
10046
|
-
return
|
|
10041
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10047
10042
|
},
|
|
10048
10043
|
brtag: function brtag() {
|
|
10049
|
-
return
|
|
10044
|
+
return React.createElement('br', { className: 'line-break' });
|
|
10050
10045
|
},
|
|
10051
10046
|
formstack: function formstack(_ref20) {
|
|
10052
10047
|
var node = _ref20.node;
|
|
@@ -10054,29 +10049,29 @@ var getSerializers = function getSerializers() {
|
|
|
10054
10049
|
Caption = node.Caption,
|
|
10055
10050
|
needSegmentSupport = node.needSegmentSupport;
|
|
10056
10051
|
|
|
10057
|
-
return
|
|
10052
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10058
10053
|
},
|
|
10059
10054
|
formassembly: FormAssembly,
|
|
10060
10055
|
multimedia: function multimedia(_ref21) {
|
|
10061
10056
|
var node = _ref21.node;
|
|
10062
10057
|
|
|
10063
|
-
return
|
|
10058
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
10064
10059
|
},
|
|
10065
10060
|
blockTable: function blockTable(_ref22) {
|
|
10066
10061
|
var node = _ref22.node;
|
|
10067
|
-
return
|
|
10062
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10068
10063
|
}
|
|
10069
10064
|
},
|
|
10070
10065
|
marks: {
|
|
10071
10066
|
superscript: function superscript(props) {
|
|
10072
|
-
return
|
|
10067
|
+
return React.createElement(
|
|
10073
10068
|
'sup',
|
|
10074
10069
|
null,
|
|
10075
10070
|
props.children
|
|
10076
10071
|
);
|
|
10077
10072
|
},
|
|
10078
10073
|
subscript: function subscript(props) {
|
|
10079
|
-
return
|
|
10074
|
+
return React.createElement(
|
|
10080
10075
|
'sub',
|
|
10081
10076
|
null,
|
|
10082
10077
|
props.children
|
|
@@ -10093,7 +10088,7 @@ var getSerializers = function getSerializers() {
|
|
|
10093
10088
|
if (href && href.charAt(0) === '#') {
|
|
10094
10089
|
var elementId = href.slice(1);
|
|
10095
10090
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10096
|
-
return
|
|
10091
|
+
return React.createElement(
|
|
10097
10092
|
'a',
|
|
10098
10093
|
{ onClick: function onClick() {
|
|
10099
10094
|
return ScrollToElement(elementId);
|
|
@@ -10103,15 +10098,15 @@ var getSerializers = function getSerializers() {
|
|
|
10103
10098
|
}
|
|
10104
10099
|
|
|
10105
10100
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10106
|
-
return href ?
|
|
10101
|
+
return href ? React.createElement(
|
|
10107
10102
|
'a',
|
|
10108
|
-
_extends
|
|
10103
|
+
_extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10109
10104
|
children
|
|
10110
10105
|
) : children;
|
|
10111
10106
|
},
|
|
10112
10107
|
alignleft: function alignleft(_ref23) {
|
|
10113
10108
|
var children = _ref23.children;
|
|
10114
|
-
return
|
|
10109
|
+
return React.createElement(
|
|
10115
10110
|
'div',
|
|
10116
10111
|
{ style: { textAlign: 'left' } },
|
|
10117
10112
|
children
|
|
@@ -10119,7 +10114,7 @@ var getSerializers = function getSerializers() {
|
|
|
10119
10114
|
},
|
|
10120
10115
|
alignright: function alignright(_ref24) {
|
|
10121
10116
|
var children = _ref24.children;
|
|
10122
|
-
return
|
|
10117
|
+
return React.createElement(
|
|
10123
10118
|
'div',
|
|
10124
10119
|
{ style: { textAlign: 'right' } },
|
|
10125
10120
|
children
|
|
@@ -10127,7 +10122,7 @@ var getSerializers = function getSerializers() {
|
|
|
10127
10122
|
},
|
|
10128
10123
|
aligncenter: function aligncenter(_ref25) {
|
|
10129
10124
|
var children = _ref25.children;
|
|
10130
|
-
return
|
|
10125
|
+
return React.createElement(
|
|
10131
10126
|
'div',
|
|
10132
10127
|
{ style: { textAlign: 'center' } },
|
|
10133
10128
|
children
|
|
@@ -10135,7 +10130,7 @@ var getSerializers = function getSerializers() {
|
|
|
10135
10130
|
},
|
|
10136
10131
|
alignjustify: function alignjustify(_ref26) {
|
|
10137
10132
|
var children = _ref26.children;
|
|
10138
|
-
return
|
|
10133
|
+
return React.createElement(
|
|
10139
10134
|
'div',
|
|
10140
10135
|
{ style: { textAlign: 'justify' } },
|
|
10141
10136
|
children
|
|
@@ -10145,7 +10140,7 @@ var getSerializers = function getSerializers() {
|
|
|
10145
10140
|
var children = props.children,
|
|
10146
10141
|
color = props.mark.color;
|
|
10147
10142
|
|
|
10148
|
-
return
|
|
10143
|
+
return React.createElement(
|
|
10149
10144
|
'span',
|
|
10150
10145
|
{ style: { color: color ? color.hex : null } },
|
|
10151
10146
|
children
|