@mjhls/mjh-framework 1.0.835 → 1.0.836-deck-pagination-v1
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 +1 -1
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +24 -23
- package/dist/cjs/AD300x250x600.js +24 -23
- package/dist/cjs/AD728x90.js +27 -26
- package/dist/cjs/ADFloatingFooter.js +23 -22
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +23 -22
- package/dist/cjs/{ADInfeed-eb4ce360.js → ADInfeed-0158bee3.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +23 -22
- package/dist/cjs/ADSponsoredResources.js +23 -22
- package/dist/cjs/ADWebcast.js +23 -22
- package/dist/cjs/ADWelcome.js +20 -19
- package/dist/cjs/{ADlgInfeed-8a05b63f.js → ADlgInfeed-3583144f.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +24 -23
- package/dist/cjs/AdSlotsProvider.js +14 -13
- package/dist/cjs/AlgoliaSearch.js +14103 -30
- package/dist/cjs/AlphabeticList.js +10 -10
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +50 -49
- package/dist/cjs/ArticleSeriesLandingPage.js +32 -31
- package/dist/cjs/ArticleSeriesListing.js +33 -32
- package/dist/cjs/Auth.js +348 -484
- package/dist/cjs/AuthWrapper.js +239 -200
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-ac8972ce.js} +1 -1
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-8b494587.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +8 -8
- package/dist/cjs/CMEDeck.js +25 -24
- package/dist/cjs/Column2.js +16 -16
- package/dist/cjs/Column3.js +33 -32
- package/dist/cjs/ConferenceArticleCard.js +7 -7
- package/dist/cjs/DeckContent.js +34 -33
- package/dist/cjs/DeckQueue.js +33 -32
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-391fd124.js} +15 -14
- package/dist/cjs/EventsDeck.js +28 -28
- package/dist/cjs/ExternalResources.js +47 -46
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +12 -12
- package/dist/cjs/GridContent.js +203 -83
- package/dist/cjs/GridHero.js +13 -13
- package/dist/cjs/GroupDeck.js +14 -14
- package/dist/cjs/HamMagazine.js +28 -28
- package/dist/cjs/Hero.js +4 -4
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +47 -46
- package/dist/cjs/HorizontalHero.js +5 -5
- package/dist/cjs/IssueContentDeck.js +13 -13
- package/dist/cjs/IssueDeck.js +16 -16
- package/dist/cjs/IssueLanding.js +56 -55
- package/dist/cjs/LeftNav.js +22 -21
- package/dist/cjs/MasterDeck.js +33 -32
- package/dist/cjs/MediaSeriesLanding.js +738 -882
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +31 -31
- package/dist/cjs/NavNative.js +32 -32
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +13 -13
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +58 -57
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +35 -34
- package/dist/cjs/PubToc.js +8 -8
- package/dist/cjs/PublicationDeck.js +8 -8
- package/dist/cjs/PublicationLanding.js +28 -28
- package/dist/cjs/QueueDeckExpanded.js +38 -37
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +7 -7
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +20 -19
- package/dist/cjs/{SeriesSlider-e3e8ead7.js → SeriesSlider-0d3bf265.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +15 -15
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-19548e2a.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +10 -10
- package/dist/cjs/TaxonomyDescription.js +46 -45
- package/dist/cjs/TemplateNormal.js +48 -47
- package/dist/cjs/ThumbnailCard.js +7 -7
- package/dist/cjs/Ustream.js +14 -14
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoProgramLandingPage.js +52 -51
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +38 -37
- package/dist/cjs/VideoSeriesListing.js +37 -34
- package/dist/cjs/View.js +91 -89
- package/dist/cjs/YahooHero.js +15 -15
- package/dist/cjs/YoutubeGroup.js +22 -22
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-29bdbc6d.js → extends-0a918631.js} +7 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +71 -135
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +46 -45
- package/dist/cjs/{getTargeting-a100d6e5.js → getTargeting-15ad167c.js} +2 -2
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-4e883ea0.js → index-1a3ac358.js} +159 -159
- package/dist/cjs/{index-0e4427c8.js → index-2cf30c83.js} +5 -470
- package/dist/cjs/{index-f86bb269.js → index-6367b7bf.js} +35 -35
- package/dist/cjs/{index-eadd5035.js → index-9d365128.js} +7 -7
- package/dist/cjs/{index-efca863c.js → index-b5eb3ff8.js} +11 -16
- package/dist/cjs/index-e2e62963.js +89 -0
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-05850a2f.js} +1 -1
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-3ffa049c.js} +2 -2
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-44f3e2d0.js} +1 -1
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-974f47d9.js} +1 -1
- package/dist/cjs/index.js +137 -136
- package/dist/cjs/{inherits-c2065b95.js → inherits-0c7830c5.js} +19 -19
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-7fd85bcf.js} +10 -58
- package/dist/cjs/main-7b5e57b0.js +898 -0
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-9d7f610f.js} +35 -35
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +27 -26
- package/dist/esm/AD300x250x600.js +27 -26
- package/dist/esm/AD728x90.js +30 -29
- package/dist/esm/ADFloatingFooter.js +29 -28
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -28
- package/dist/esm/{ADInfeed-4a09242b.js → ADInfeed-427022e9.js} +9 -9
- package/dist/esm/ADSkyscraper.js +29 -28
- package/dist/esm/ADSponsoredResources.js +29 -28
- package/dist/esm/ADWebcast.js +29 -28
- package/dist/esm/ADWelcome.js +30 -29
- package/dist/esm/{ADlgInfeed-0bff9a62.js → ADlgInfeed-28d3f944.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +27 -26
- package/dist/esm/AdSlotsProvider.js +15 -14
- package/dist/esm/AlgoliaSearch.js +14123 -50
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +56 -55
- package/dist/esm/ArticleSeriesLandingPage.js +38 -37
- package/dist/esm/ArticleSeriesListing.js +57 -56
- package/dist/esm/Auth.js +418 -554
- package/dist/esm/AuthWrapper.js +259 -220
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-8ffd4679.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-d05b5b23.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +80 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +27 -27
- package/dist/esm/Column3.js +52 -51
- package/dist/esm/ConferenceArticleCard.js +20 -20
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +79 -78
- package/dist/esm/DeckQueue.js +71 -70
- package/dist/esm/{Dfp-be030f2a.js → Dfp-2f9796e1.js} +23 -22
- package/dist/esm/EventsDeck.js +88 -88
- package/dist/esm/ExternalResources.js +73 -72
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +262 -143
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +105 -105
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +69 -68
- package/dist/esm/HorizontalHero.js +23 -23
- package/dist/esm/IssueContentDeck.js +50 -50
- package/dist/esm/IssueDeck.js +47 -47
- package/dist/esm/IssueLanding.js +64 -63
- package/dist/esm/LeftNav.js +35 -34
- package/dist/esm/MasterDeck.js +66 -65
- package/dist/esm/MediaSeriesLanding.js +751 -895
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -113
- package/dist/esm/NavNative.js +103 -103
- package/dist/esm/OncliveHero.js +16 -16
- package/dist/esm/OncliveLargeHero.js +60 -60
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +106 -105
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +40 -39
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +39 -39
- package/dist/esm/PublicationLanding.js +75 -75
- package/dist/esm/QueueDeckExpanded.js +276 -275
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +20 -20
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +33 -32
- package/dist/esm/{SeriesSlider-ae17159f.js → SeriesSlider-7d89f4d9.js} +27 -27
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-47815365.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +42 -42
- package/dist/esm/TaxonomyDescription.js +50 -49
- package/dist/esm/TemplateNormal.js +68 -67
- package/dist/esm/ThumbnailCard.js +14 -14
- package/dist/esm/Ustream.js +27 -27
- package/dist/esm/VerticalHero.js +14 -14
- package/dist/esm/VideoProgramLandingPage.js +64 -63
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +43 -42
- package/dist/esm/VideoSeriesListing.js +77 -74
- package/dist/esm/View.js +244 -242
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +47 -47
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-fc1c2e29.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-4abff0b1.js} +3 -3
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-60e0e1c6.js → extends-6f2fcc99.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +71 -135
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +46 -45
- package/dist/esm/{getTargeting-05c216d6.js → getTargeting-82e86707.js} +2 -2
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-0dbff1d1.js → index-51a80699.js} +11 -16
- package/dist/esm/{index-755f2cc2.js → index-6c12bdd5.js} +10 -10
- package/dist/esm/{index-b909354c.js → index-9ae17e46.js} +489 -489
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-79cfd25c.js → index-c00b0bbb.js} +35 -35
- package/dist/esm/{index-5cc7b406.js → index-f7fb1e25.js} +7 -472
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-f6156a57.js → index.esm-3fdda599.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8ee5ff72.js} +16 -16
- package/dist/esm/{index.esm-d4932dea.js → index.esm-a8ff922c.js} +1 -1
- package/dist/esm/{index.esm-9b042655.js → index.esm-c6715e80.js} +1 -1
- package/dist/esm/index.js +133 -132
- package/dist/esm/{inherits-a41fe93f.js → inherits-75d45541.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-ec8c6b48.js} +10 -58
- package/dist/esm/main-747e7d25.js +886 -0
- package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-3822f1ce.js} +20 -20
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-af9c50d8.js} +35 -35
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/main-d4165069.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-5c98aec7.js} +1 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
2
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-be2f7a22.js';
|
|
3
|
-
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
4
|
-
import urlFor from './urlFor.js';
|
|
5
|
-
import { l as lib_3 } from './index-5cc7b406.js';
|
|
6
|
-
import Router, { useRouter } from 'next/router';
|
|
7
|
-
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
2
|
+
import { _ as _export, a as _core } from './_to-object-a4107da3.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
4
|
+
import { _ as _extends, 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
|
+
import PropTypes from 'prop-types';
|
|
10
|
+
import Row$1 from 'react-bootstrap/Row';
|
|
11
|
+
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
13
|
+
import Router, { useRouter } from 'next/router';
|
|
14
|
+
import urlFor from './urlFor.js';
|
|
15
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
16
|
+
import { d as main_16, b as main_39, m as main_40 } from './main-747e7d25.js';
|
|
17
|
+
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
12
19
|
import Segment from './Segment.js';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
|
|
20
|
+
import Beam from './Beam.js';
|
|
21
|
+
import DFPAdSlot from './AdSlot.js';
|
|
22
|
+
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
24
|
+
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
19
25
|
import GroupDeck from './GroupDeck.js';
|
|
20
|
-
import {
|
|
26
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
27
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
28
|
+
import { u as util } from './util-7700fc59.js';
|
|
29
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
|
|
30
|
+
import Head from 'next/head';
|
|
21
31
|
import SocialShare from './SocialShare.js';
|
|
22
|
-
import { _ as
|
|
23
|
-
import { _ as _objectToArray } from './_object-to-array-0f197f89.js';
|
|
24
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
32
|
+
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
25
33
|
import Pagination from 'react-bootstrap/Pagination';
|
|
26
|
-
import Button$1 from 'react-bootstrap/Button';
|
|
27
|
-
import { h as html_decode_1 } from './entities-932b50cf.js';
|
|
28
|
-
import DFPAdSlot from './AdSlot.js';
|
|
29
|
-
import Row$1 from 'react-bootstrap/Row';
|
|
30
|
-
import Col$1 from 'react-bootstrap/Col';
|
|
31
|
-
import Head from 'next/head';
|
|
32
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-a41fe93f.js';
|
|
33
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-f6156a57.js';
|
|
34
34
|
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
35
|
|
|
36
36
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
@@ -39,7 +39,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
39
39
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
var Slideshow
|
|
42
|
+
var Slideshow = function Slideshow(_ref) {
|
|
43
43
|
var slides = _ref.slides,
|
|
44
44
|
client = _ref.client,
|
|
45
45
|
pageview = _ref.pageview;
|
|
@@ -66,20 +66,20 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
66
66
|
if (pageview) pageview(router.asPath);
|
|
67
67
|
}, [router]);
|
|
68
68
|
|
|
69
|
-
return
|
|
69
|
+
return React.createElement(
|
|
70
70
|
'div',
|
|
71
71
|
{ className: 'mt-3 mb-3' },
|
|
72
|
-
|
|
72
|
+
React.createElement(
|
|
73
73
|
Carousel,
|
|
74
74
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
75
75
|
return onChangeSlide(selectedIndex, router);
|
|
76
76
|
}, interval: null },
|
|
77
77
|
slides && slides.map(function (slide) {
|
|
78
|
-
return
|
|
78
|
+
return React.createElement(
|
|
79
79
|
Carousel.Item,
|
|
80
80
|
{ key: slide._key },
|
|
81
|
-
|
|
82
|
-
slide.caption &&
|
|
81
|
+
React.createElement('img', { src: slide.asset && urlFor({ source: slide.asset, client: client }), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
82
|
+
slide.caption && React.createElement(
|
|
83
83
|
'p',
|
|
84
84
|
{ className: 'p-2' },
|
|
85
85
|
slide.caption
|
|
@@ -669,14 +669,14 @@ function coerce(val) {
|
|
|
669
669
|
return val;
|
|
670
670
|
}
|
|
671
671
|
});
|
|
672
|
-
debug.coerce;
|
|
673
|
-
debug.disable;
|
|
674
|
-
debug.enable;
|
|
675
|
-
debug.enabled;
|
|
676
|
-
debug.humanize;
|
|
677
|
-
debug.names;
|
|
678
|
-
debug.skips;
|
|
679
|
-
debug.formatters;
|
|
672
|
+
var debug_1 = debug.coerce;
|
|
673
|
+
var debug_2 = debug.disable;
|
|
674
|
+
var debug_3 = debug.enable;
|
|
675
|
+
var debug_4 = debug.enabled;
|
|
676
|
+
var debug_5 = debug.humanize;
|
|
677
|
+
var debug_6 = debug.names;
|
|
678
|
+
var debug_7 = debug.skips;
|
|
679
|
+
var debug_8 = debug.formatters;
|
|
680
680
|
|
|
681
681
|
var browser = createCommonjsModule(function (module, exports) {
|
|
682
682
|
/**
|
|
@@ -865,13 +865,13 @@ function localstorage() {
|
|
|
865
865
|
} catch (e) {}
|
|
866
866
|
}
|
|
867
867
|
});
|
|
868
|
-
browser.log;
|
|
869
|
-
browser.formatArgs;
|
|
870
|
-
browser.save;
|
|
871
|
-
browser.load;
|
|
872
|
-
browser.useColors;
|
|
873
|
-
browser.storage;
|
|
874
|
-
browser.colors;
|
|
868
|
+
var browser_1 = browser.log;
|
|
869
|
+
var browser_2 = browser.formatArgs;
|
|
870
|
+
var browser_3 = browser.save;
|
|
871
|
+
var browser_4 = browser.load;
|
|
872
|
+
var browser_5 = browser.useColors;
|
|
873
|
+
var browser_6 = browser.storage;
|
|
874
|
+
var browser_7 = browser.colors;
|
|
875
875
|
|
|
876
876
|
// MIT lisence
|
|
877
877
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1146,14 +1146,14 @@ function init (debug) {
|
|
|
1146
1146
|
|
|
1147
1147
|
exports.enable(load());
|
|
1148
1148
|
});
|
|
1149
|
-
node.init;
|
|
1150
|
-
node.log;
|
|
1151
|
-
node.formatArgs;
|
|
1152
|
-
node.save;
|
|
1153
|
-
node.load;
|
|
1154
|
-
node.useColors;
|
|
1155
|
-
node.colors;
|
|
1156
|
-
node.inspectOpts;
|
|
1149
|
+
var node_1 = node.init;
|
|
1150
|
+
var node_2 = node.log;
|
|
1151
|
+
var node_3 = node.formatArgs;
|
|
1152
|
+
var node_4 = node.save;
|
|
1153
|
+
var node_5 = node.load;
|
|
1154
|
+
var node_6 = node.useColors;
|
|
1155
|
+
var node_7 = node.colors;
|
|
1156
|
+
var node_8 = node.inspectOpts;
|
|
1157
1157
|
|
|
1158
1158
|
var src = createCommonjsModule(function (module) {
|
|
1159
1159
|
/**
|
|
@@ -1821,9 +1821,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1821
1821
|
}, {
|
|
1822
1822
|
key: "render",
|
|
1823
1823
|
value: function render() {
|
|
1824
|
-
return /*#__PURE__*/
|
|
1824
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1825
1825
|
className: this.props.containerClassName
|
|
1826
|
-
}, /*#__PURE__*/
|
|
1826
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1827
1827
|
id: this.props.id,
|
|
1828
1828
|
className: this.props.className,
|
|
1829
1829
|
ref: this.refContainer
|
|
@@ -1832,7 +1832,7 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1832
1832
|
}]);
|
|
1833
1833
|
|
|
1834
1834
|
return YouTube;
|
|
1835
|
-
}(
|
|
1835
|
+
}(React.Component);
|
|
1836
1836
|
|
|
1837
1837
|
_defineProperty(YouTube, "PlayerState", {
|
|
1838
1838
|
UNSTARTED: -1,
|
|
@@ -1916,8 +1916,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1916
1916
|
var duration = player.getDuration();
|
|
1917
1917
|
var queue = Math.floor(duration / 10);
|
|
1918
1918
|
var segment = Math.floor(current / queue);
|
|
1919
|
-
Beam.report_beam_video('Ready',
|
|
1920
|
-
Segment.report_video_event('Video Ready',
|
|
1919
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
1920
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1921
1921
|
};
|
|
1922
1922
|
|
|
1923
1923
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1927,8 +1927,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1927
1927
|
var segment = Math.floor(current / queue);
|
|
1928
1928
|
|
|
1929
1929
|
if (!queueProgress.includes(segment)) {
|
|
1930
|
-
Beam.report_beam_video('Segment',
|
|
1931
|
-
Segment.report_video_event('Video Segment',
|
|
1930
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
1931
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1932
1932
|
queueProgress.push(segment);
|
|
1933
1933
|
}
|
|
1934
1934
|
};
|
|
@@ -1941,8 +1941,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1941
1941
|
var queue = Math.floor(duration / 10);
|
|
1942
1942
|
var segment = Math.floor(current / queue);
|
|
1943
1943
|
|
|
1944
|
-
Beam.report_beam_video('Play',
|
|
1945
|
-
Segment.report_video_event('Video Play',
|
|
1944
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
1945
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1946
1946
|
|
|
1947
1947
|
if (!playReported) {
|
|
1948
1948
|
setPlayReported(true);
|
|
@@ -1961,8 +1961,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1961
1961
|
var queue = Math.floor(duration / 10);
|
|
1962
1962
|
var segment = Math.floor(current / queue);
|
|
1963
1963
|
|
|
1964
|
-
Beam.report_beam_video('End',
|
|
1965
|
-
Segment.report_video_event('Video End',
|
|
1964
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
1965
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1966
1966
|
setEndReported(true);
|
|
1967
1967
|
clearInterval(intervalID);
|
|
1968
1968
|
}
|
|
@@ -1975,15 +1975,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1975
1975
|
var queue = Math.floor(duration / 10);
|
|
1976
1976
|
var segment = Math.floor(current / queue);
|
|
1977
1977
|
|
|
1978
|
-
Beam.report_beam_video('Pause',
|
|
1979
|
-
Segment.report_video_event('Video Pause',
|
|
1978
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
1979
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1980
1980
|
};
|
|
1981
1981
|
|
|
1982
|
-
return
|
|
1982
|
+
return React.createElement(
|
|
1983
1983
|
'div',
|
|
1984
1984
|
{ id: 'fluid-video-container' },
|
|
1985
|
-
|
|
1986
|
-
|
|
1985
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1986
|
+
React.createElement(
|
|
1987
1987
|
'style',
|
|
1988
1988
|
{ jsx: 'true' },
|
|
1989
1989
|
'\n #fluid-video-container {\n margin-bottom: 2rem;\n }\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n '
|
|
@@ -1996,20 +1996,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
1996
1996
|
content = _ref.content,
|
|
1997
1997
|
getSerializers = _ref.getSerializers;
|
|
1998
1998
|
|
|
1999
|
-
return
|
|
1999
|
+
return React.createElement(
|
|
2000
2000
|
'article',
|
|
2001
2001
|
{ className: 'sidebar' },
|
|
2002
|
-
|
|
2002
|
+
React.createElement(
|
|
2003
2003
|
'div',
|
|
2004
2004
|
null,
|
|
2005
|
-
|
|
2005
|
+
React.createElement(
|
|
2006
2006
|
'h3',
|
|
2007
2007
|
null,
|
|
2008
2008
|
caption
|
|
2009
2009
|
),
|
|
2010
|
-
|
|
2010
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2011
2011
|
),
|
|
2012
|
-
|
|
2012
|
+
React.createElement(
|
|
2013
2013
|
'style',
|
|
2014
2014
|
{ jsx: 'true' },
|
|
2015
2015
|
'\n .sidebar {\n clear: both;\n float: right;\n background-color: #eee;\n width: 40%;\n padding: 1rem;\n margin: 0 0 1rem 1rem;\n }\n /* resolving list items inside sidebar being shifted to center because of unusual margin */\n .sidebar ul {\n margin-left: 0;\n padding-left: 1rem;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n float: none;\n width: auto;\n margin: 1rem 0;\n }\n }\n '
|
|
@@ -2020,18 +2020,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2020
2020
|
var TableShow = function TableShow(_ref) {
|
|
2021
2021
|
var rows = _ref.rows;
|
|
2022
2022
|
|
|
2023
|
-
return
|
|
2023
|
+
return React.createElement(
|
|
2024
2024
|
Table,
|
|
2025
2025
|
{ bordered: true, hover: true, responsive: true },
|
|
2026
|
-
|
|
2026
|
+
React.createElement(
|
|
2027
2027
|
'tbody',
|
|
2028
2028
|
null,
|
|
2029
2029
|
rows && rows.map(function (row) {
|
|
2030
|
-
return
|
|
2030
|
+
return React.createElement(
|
|
2031
2031
|
'tr',
|
|
2032
2032
|
{ key: row._key },
|
|
2033
2033
|
row.cells && row.cells.map(function (cell, index) {
|
|
2034
|
-
return cell &&
|
|
2034
|
+
return cell && React.createElement(
|
|
2035
2035
|
'td',
|
|
2036
2036
|
{ key: index },
|
|
2037
2037
|
cell
|
|
@@ -2129,18 +2129,18 @@ var Media = function Media(_ref) {
|
|
|
2129
2129
|
margin: imageMargin
|
|
2130
2130
|
};
|
|
2131
2131
|
|
|
2132
|
-
return
|
|
2132
|
+
return React.createElement(
|
|
2133
2133
|
Figure$1,
|
|
2134
2134
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2135
|
-
|
|
2135
|
+
React.createElement(
|
|
2136
2136
|
'a',
|
|
2137
2137
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2138
|
-
|
|
2138
|
+
React.createElement(
|
|
2139
2139
|
LazyLoad,
|
|
2140
2140
|
{ once: true },
|
|
2141
|
-
|
|
2141
|
+
React.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2142
2142
|
),
|
|
2143
|
-
caption &&
|
|
2143
|
+
caption && React.createElement(
|
|
2144
2144
|
Figure$1.Caption,
|
|
2145
2145
|
{ className: 'media-caption' },
|
|
2146
2146
|
caption
|
|
@@ -2148,7 +2148,7 @@ var Media = function Media(_ref) {
|
|
|
2148
2148
|
)
|
|
2149
2149
|
);
|
|
2150
2150
|
} else if (caption && caption !== '') {
|
|
2151
|
-
return
|
|
2151
|
+
return React.createElement(
|
|
2152
2152
|
'a',
|
|
2153
2153
|
_extends({}, uploadDoc.downloadMedia ? {
|
|
2154
2154
|
href: uploadDoc.asset.url + '?dl='
|
|
@@ -2168,10 +2168,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2168
2168
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2169
2169
|
|
|
2170
2170
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2171
|
-
return
|
|
2171
|
+
return React.createElement(
|
|
2172
2172
|
'div',
|
|
2173
2173
|
{ className: 'd-block text-center mb-3' },
|
|
2174
|
-
|
|
2174
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2175
2175
|
);
|
|
2176
2176
|
};
|
|
2177
2177
|
|
|
@@ -2205,8 +2205,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2205
2205
|
var duration = player.duration;
|
|
2206
2206
|
var queue = Math.floor(duration / 10);
|
|
2207
2207
|
var segment = Math.floor(current / queue);
|
|
2208
|
-
Beam.report_beam_video('Ready',
|
|
2209
|
-
Segment.report_video_event('Video Ready',
|
|
2208
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
|
|
2209
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
2210
2210
|
};
|
|
2211
2211
|
|
|
2212
2212
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2215,8 +2215,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2215
2215
|
var queue = Math.floor(duration / 10);
|
|
2216
2216
|
var segment = Math.floor(current / queue);
|
|
2217
2217
|
if (!queueProgress.includes(segment)) {
|
|
2218
|
-
Beam.report_beam_video('Segment',
|
|
2219
|
-
Segment.report_video_event('Video Segment',
|
|
2218
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
|
|
2219
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
2220
2220
|
queueProgress.push(segment);
|
|
2221
2221
|
}
|
|
2222
2222
|
};
|
|
@@ -2228,8 +2228,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2228
2228
|
var duration = player.duration;
|
|
2229
2229
|
var queue = Math.floor(duration / 10);
|
|
2230
2230
|
var segment = Math.floor(current / queue);
|
|
2231
|
-
Beam.report_beam_video('Play',
|
|
2232
|
-
Segment.report_video_event('Video Play',
|
|
2231
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
|
|
2232
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
2233
2233
|
|
|
2234
2234
|
if (!playReported) {
|
|
2235
2235
|
event.persist();
|
|
@@ -2249,8 +2249,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2249
2249
|
var queue = Math.floor(duration / 10);
|
|
2250
2250
|
var segment = Math.floor(current / queue);
|
|
2251
2251
|
|
|
2252
|
-
Beam.report_beam_video('End',
|
|
2253
|
-
Segment.report_video_event('Video End',
|
|
2252
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
|
|
2253
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
2254
2254
|
setEndReported(true);
|
|
2255
2255
|
clearInterval(intervalID);
|
|
2256
2256
|
}
|
|
@@ -2262,14 +2262,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2262
2262
|
var duration = player.duration - current;
|
|
2263
2263
|
var queue = Math.floor(duration / 10);
|
|
2264
2264
|
var segment = Math.floor(current / queue);
|
|
2265
|
-
Beam.report_beam_video('Pause',
|
|
2266
|
-
Segment.report_video_event('Video Pause',
|
|
2265
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
|
|
2266
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2267
2267
|
};
|
|
2268
2268
|
|
|
2269
|
-
return
|
|
2269
|
+
return React.createElement(
|
|
2270
2270
|
'div',
|
|
2271
2271
|
null,
|
|
2272
|
-
vidLoaded &&
|
|
2272
|
+
vidLoaded && React.createElement(
|
|
2273
2273
|
'video',
|
|
2274
2274
|
{
|
|
2275
2275
|
poster: thumbnail || '',
|
|
@@ -2287,7 +2287,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2287
2287
|
onPlay: function onPlay(e) {
|
|
2288
2288
|
return handleOnPlay(e);
|
|
2289
2289
|
} },
|
|
2290
|
-
|
|
2290
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2291
2291
|
'Your browser does not support the video tag.'
|
|
2292
2292
|
)
|
|
2293
2293
|
);
|
|
@@ -2352,8 +2352,8 @@ var Video = function Video(_ref) {
|
|
|
2352
2352
|
player.pause();
|
|
2353
2353
|
}
|
|
2354
2354
|
|
|
2355
|
-
Beam.report_beam_video('Ready',
|
|
2356
|
-
Segment.report_video_event('Video Ready',
|
|
2355
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2356
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2357
2357
|
});
|
|
2358
2358
|
|
|
2359
2359
|
// play
|
|
@@ -2362,8 +2362,8 @@ var Video = function Video(_ref) {
|
|
|
2362
2362
|
var current = player.currentTime();
|
|
2363
2363
|
var queue = Math.floor(duration / 10);
|
|
2364
2364
|
var segment = Math.floor(current / queue);
|
|
2365
|
-
Beam.report_beam_video('Play',
|
|
2366
|
-
Segment.report_video_event('Video Play',
|
|
2365
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2366
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2367
2367
|
});
|
|
2368
2368
|
|
|
2369
2369
|
// pause
|
|
@@ -2372,8 +2372,8 @@ var Video = function Video(_ref) {
|
|
|
2372
2372
|
var current = player.currentTime();
|
|
2373
2373
|
var queue = Math.floor(duration / 10);
|
|
2374
2374
|
var segment = Math.floor(current / queue);
|
|
2375
|
-
Beam.report_beam_video('Pause',
|
|
2376
|
-
Segment.report_video_event('Video Pause',
|
|
2375
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2376
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2377
2377
|
});
|
|
2378
2378
|
|
|
2379
2379
|
// end
|
|
@@ -2382,8 +2382,8 @@ var Video = function Video(_ref) {
|
|
|
2382
2382
|
var current = player.currentTime();
|
|
2383
2383
|
var queue = Math.floor(duration / 10);
|
|
2384
2384
|
var segment = Math.floor(current / queue);
|
|
2385
|
-
Beam.report_beam_video('End',
|
|
2386
|
-
Segment.report_video_event('Video End',
|
|
2385
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2386
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2387
2387
|
autoplayNextVideo(evt);
|
|
2388
2388
|
});
|
|
2389
2389
|
|
|
@@ -2394,8 +2394,8 @@ var Video = function Video(_ref) {
|
|
|
2394
2394
|
var queue = Math.floor(duration / 10);
|
|
2395
2395
|
var segment = Math.floor(current / queue);
|
|
2396
2396
|
if (!queueProgress.includes(segment)) {
|
|
2397
|
-
Beam.report_beam_video('Segment',
|
|
2398
|
-
Segment.report_video_event('Video Segment',
|
|
2397
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2398
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2399
2399
|
queueProgress.push(segment);
|
|
2400
2400
|
}
|
|
2401
2401
|
});
|
|
@@ -2406,8 +2406,8 @@ var Video = function Video(_ref) {
|
|
|
2406
2406
|
var id = player.ads.ad.id;
|
|
2407
2407
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2408
2408
|
|
|
2409
|
-
Beam.report_beam_ad('AD Started',
|
|
2410
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2409
|
+
Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
|
|
2410
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2411
2411
|
});
|
|
2412
2412
|
|
|
2413
2413
|
// ad ended
|
|
@@ -2415,60 +2415,60 @@ var Video = function Video(_ref) {
|
|
|
2415
2415
|
var duration = player.ads.ad.duration;
|
|
2416
2416
|
var id = player.ads.ad.id;
|
|
2417
2417
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2418
|
-
Beam.report_beam_ad('AD Ended',
|
|
2419
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2418
|
+
Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
|
|
2419
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2420
2420
|
});
|
|
2421
2421
|
};
|
|
2422
2422
|
|
|
2423
2423
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2424
2424
|
if (videoID) {
|
|
2425
|
-
return
|
|
2425
|
+
return React.createElement(
|
|
2426
2426
|
'div',
|
|
2427
2427
|
null,
|
|
2428
|
-
|
|
2428
|
+
React.createElement(ReactPlayerLoader, {
|
|
2429
2429
|
onSuccess: onVideoSuccess,
|
|
2430
2430
|
accountId: accountIDs.brightcove.accountId,
|
|
2431
2431
|
videoId: videoID,
|
|
2432
2432
|
playerId: accountIDs.brightcove.playerId,
|
|
2433
2433
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2434
2434
|
}),
|
|
2435
|
-
|
|
2435
|
+
React.createElement(
|
|
2436
2436
|
'style',
|
|
2437
2437
|
{ jsx: 'true' },
|
|
2438
2438
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2439
2439
|
)
|
|
2440
2440
|
);
|
|
2441
2441
|
} else if (playlistID) {
|
|
2442
|
-
return
|
|
2442
|
+
return React.createElement(
|
|
2443
2443
|
'div',
|
|
2444
2444
|
null,
|
|
2445
|
-
|
|
2445
|
+
React.createElement(ReactPlayerLoader, {
|
|
2446
2446
|
accountId: accountIDs.brightcove.accountId,
|
|
2447
2447
|
playlistId: playlistID,
|
|
2448
2448
|
playerId: accountIDs.brightcove.playerId,
|
|
2449
2449
|
onSuccess: onVideoSuccess,
|
|
2450
2450
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2451
2451
|
}),
|
|
2452
|
-
|
|
2452
|
+
React.createElement(
|
|
2453
2453
|
'style',
|
|
2454
2454
|
{ jsx: 'true' },
|
|
2455
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 '
|
|
2456
2456
|
)
|
|
2457
2457
|
);
|
|
2458
2458
|
} else if (experienceID) {
|
|
2459
|
-
return
|
|
2459
|
+
return React.createElement(
|
|
2460
2460
|
'div',
|
|
2461
2461
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2462
|
-
videoLoaded &&
|
|
2462
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2463
2463
|
);
|
|
2464
2464
|
}
|
|
2465
2465
|
return null;
|
|
2466
2466
|
}
|
|
2467
2467
|
if (source === 'mp4') {
|
|
2468
|
-
return
|
|
2468
|
+
return React.createElement(
|
|
2469
2469
|
'div',
|
|
2470
2470
|
null,
|
|
2471
|
-
|
|
2471
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2472
2472
|
);
|
|
2473
2473
|
}
|
|
2474
2474
|
|
|
@@ -2679,9 +2679,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2679
2679
|
});
|
|
2680
2680
|
|
|
2681
2681
|
unwrapExports(props);
|
|
2682
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2683
|
-
props.defaultProps;
|
|
2684
|
-
props.propTypes;
|
|
2682
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2683
|
+
var props_2 = props.defaultProps;
|
|
2684
|
+
var props_3 = props.propTypes;
|
|
2685
2685
|
|
|
2686
2686
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2687
2687
|
return isNonNullObject(value)
|
|
@@ -3073,7 +3073,7 @@ function isEqual(a, b) {
|
|
|
3073
3073
|
return true;
|
|
3074
3074
|
}
|
|
3075
3075
|
|
|
3076
|
-
if ((0,
|
|
3076
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3077
3077
|
return true;
|
|
3078
3078
|
}
|
|
3079
3079
|
|
|
@@ -3116,17 +3116,17 @@ function isMediaStream(url) {
|
|
|
3116
3116
|
});
|
|
3117
3117
|
|
|
3118
3118
|
unwrapExports(utils);
|
|
3119
|
-
utils.parseStartTime;
|
|
3120
|
-
utils.parseEndTime;
|
|
3121
|
-
utils.randomString;
|
|
3122
|
-
utils.queryString;
|
|
3123
|
-
utils.getSDK;
|
|
3124
|
-
utils.getConfig;
|
|
3125
|
-
utils.omit;
|
|
3126
|
-
utils.callPlayer;
|
|
3127
|
-
utils.isObject;
|
|
3128
|
-
utils.isEqual;
|
|
3129
|
-
utils.isMediaStream;
|
|
3119
|
+
var utils_1 = utils.parseStartTime;
|
|
3120
|
+
var utils_2 = utils.parseEndTime;
|
|
3121
|
+
var utils_3 = utils.randomString;
|
|
3122
|
+
var utils_4 = utils.queryString;
|
|
3123
|
+
var utils_5 = utils.getSDK;
|
|
3124
|
+
var utils_6 = utils.getConfig;
|
|
3125
|
+
var utils_7 = utils.omit;
|
|
3126
|
+
var utils_8 = utils.callPlayer;
|
|
3127
|
+
var utils_9 = utils.isObject;
|
|
3128
|
+
var utils_10 = utils.isEqual;
|
|
3129
|
+
var utils_11 = utils.isMediaStream;
|
|
3130
3130
|
|
|
3131
3131
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3132
3132
|
|
|
@@ -3135,7 +3135,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3135
3135
|
});
|
|
3136
3136
|
exports["default"] = void 0;
|
|
3137
3137
|
|
|
3138
|
-
var _react = _interopRequireWildcard(
|
|
3138
|
+
var _react = _interopRequireWildcard(React);
|
|
3139
3139
|
|
|
3140
3140
|
|
|
3141
3141
|
|
|
@@ -3545,7 +3545,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3545
3545
|
});
|
|
3546
3546
|
exports["default"] = createSinglePlayer;
|
|
3547
3547
|
|
|
3548
|
-
var _react = _interopRequireWildcard(
|
|
3548
|
+
var _react = _interopRequireWildcard(React);
|
|
3549
3549
|
|
|
3550
3550
|
|
|
3551
3551
|
|
|
@@ -3703,7 +3703,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3703
3703
|
});
|
|
3704
3704
|
exports["default"] = exports.YouTube = void 0;
|
|
3705
3705
|
|
|
3706
|
-
var _react = _interopRequireWildcard(
|
|
3706
|
+
var _react = _interopRequireWildcard(React);
|
|
3707
3707
|
|
|
3708
3708
|
|
|
3709
3709
|
|
|
@@ -4003,7 +4003,7 @@ exports["default"] = _default;
|
|
|
4003
4003
|
});
|
|
4004
4004
|
|
|
4005
4005
|
unwrapExports(YouTube_1);
|
|
4006
|
-
YouTube_1.YouTube;
|
|
4006
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4007
4007
|
|
|
4008
4008
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4009
4009
|
|
|
@@ -4012,7 +4012,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4012
4012
|
});
|
|
4013
4013
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4014
4014
|
|
|
4015
|
-
var _react = _interopRequireWildcard(
|
|
4015
|
+
var _react = _interopRequireWildcard(React);
|
|
4016
4016
|
|
|
4017
4017
|
|
|
4018
4018
|
|
|
@@ -4220,7 +4220,7 @@ exports["default"] = _default;
|
|
|
4220
4220
|
});
|
|
4221
4221
|
|
|
4222
4222
|
unwrapExports(SoundCloud_1);
|
|
4223
|
-
SoundCloud_1.SoundCloud;
|
|
4223
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4224
4224
|
|
|
4225
4225
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4226
4226
|
|
|
@@ -4229,7 +4229,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4229
4229
|
});
|
|
4230
4230
|
exports["default"] = exports.Vimeo = void 0;
|
|
4231
4231
|
|
|
4232
|
-
var _react = _interopRequireWildcard(
|
|
4232
|
+
var _react = _interopRequireWildcard(React);
|
|
4233
4233
|
|
|
4234
4234
|
|
|
4235
4235
|
|
|
@@ -4476,7 +4476,7 @@ exports["default"] = _default;
|
|
|
4476
4476
|
});
|
|
4477
4477
|
|
|
4478
4478
|
unwrapExports(Vimeo_1);
|
|
4479
|
-
Vimeo_1.Vimeo;
|
|
4479
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4480
4480
|
|
|
4481
4481
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4482
4482
|
|
|
@@ -4485,7 +4485,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4485
4485
|
});
|
|
4486
4486
|
exports["default"] = exports.Facebook = void 0;
|
|
4487
4487
|
|
|
4488
|
-
var _react = _interopRequireWildcard(
|
|
4488
|
+
var _react = _interopRequireWildcard(React);
|
|
4489
4489
|
|
|
4490
4490
|
|
|
4491
4491
|
|
|
@@ -4688,7 +4688,7 @@ exports["default"] = _default;
|
|
|
4688
4688
|
});
|
|
4689
4689
|
|
|
4690
4690
|
unwrapExports(Facebook_1);
|
|
4691
|
-
Facebook_1.Facebook;
|
|
4691
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4692
4692
|
|
|
4693
4693
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4694
4694
|
|
|
@@ -4697,7 +4697,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4697
4697
|
});
|
|
4698
4698
|
exports["default"] = exports.Streamable = void 0;
|
|
4699
4699
|
|
|
4700
|
-
var _react = _interopRequireWildcard(
|
|
4700
|
+
var _react = _interopRequireWildcard(React);
|
|
4701
4701
|
|
|
4702
4702
|
|
|
4703
4703
|
|
|
@@ -4899,7 +4899,7 @@ exports["default"] = _default;
|
|
|
4899
4899
|
});
|
|
4900
4900
|
|
|
4901
4901
|
unwrapExports(Streamable_1);
|
|
4902
|
-
Streamable_1.Streamable;
|
|
4902
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4903
4903
|
|
|
4904
4904
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4905
4905
|
|
|
@@ -4908,7 +4908,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4908
4908
|
});
|
|
4909
4909
|
exports["default"] = exports.Wistia = void 0;
|
|
4910
4910
|
|
|
4911
|
-
var _react = _interopRequireWildcard(
|
|
4911
|
+
var _react = _interopRequireWildcard(React);
|
|
4912
4912
|
|
|
4913
4913
|
|
|
4914
4914
|
|
|
@@ -5142,7 +5142,7 @@ exports["default"] = _default;
|
|
|
5142
5142
|
});
|
|
5143
5143
|
|
|
5144
5144
|
unwrapExports(Wistia_1);
|
|
5145
|
-
Wistia_1.Wistia;
|
|
5145
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5146
5146
|
|
|
5147
5147
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5148
5148
|
|
|
@@ -5151,7 +5151,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5151
5151
|
});
|
|
5152
5152
|
exports["default"] = exports.Twitch = void 0;
|
|
5153
5153
|
|
|
5154
|
-
var _react = _interopRequireWildcard(
|
|
5154
|
+
var _react = _interopRequireWildcard(React);
|
|
5155
5155
|
|
|
5156
5156
|
|
|
5157
5157
|
|
|
@@ -5358,7 +5358,7 @@ exports["default"] = _default;
|
|
|
5358
5358
|
});
|
|
5359
5359
|
|
|
5360
5360
|
unwrapExports(Twitch_1);
|
|
5361
|
-
Twitch_1.Twitch;
|
|
5361
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5362
5362
|
|
|
5363
5363
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5364
5364
|
|
|
@@ -5367,7 +5367,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5367
5367
|
});
|
|
5368
5368
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5369
5369
|
|
|
5370
|
-
var _react = _interopRequireWildcard(
|
|
5370
|
+
var _react = _interopRequireWildcard(React);
|
|
5371
5371
|
|
|
5372
5372
|
|
|
5373
5373
|
|
|
@@ -5594,7 +5594,7 @@ exports["default"] = _default;
|
|
|
5594
5594
|
});
|
|
5595
5595
|
|
|
5596
5596
|
unwrapExports(DailyMotion_1);
|
|
5597
|
-
DailyMotion_1.DailyMotion;
|
|
5597
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5598
5598
|
|
|
5599
5599
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5600
5600
|
|
|
@@ -5603,7 +5603,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5603
5603
|
});
|
|
5604
5604
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5605
5605
|
|
|
5606
|
-
var _react = _interopRequireWildcard(
|
|
5606
|
+
var _react = _interopRequireWildcard(React);
|
|
5607
5607
|
|
|
5608
5608
|
|
|
5609
5609
|
|
|
@@ -5793,7 +5793,7 @@ exports["default"] = _default;
|
|
|
5793
5793
|
});
|
|
5794
5794
|
|
|
5795
5795
|
unwrapExports(Mixcloud_1);
|
|
5796
|
-
Mixcloud_1.Mixcloud;
|
|
5796
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5797
5797
|
|
|
5798
5798
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5799
5799
|
|
|
@@ -5802,7 +5802,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5802
5802
|
});
|
|
5803
5803
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5804
5804
|
|
|
5805
|
-
var _react = _interopRequireWildcard(
|
|
5805
|
+
var _react = _interopRequireWildcard(React);
|
|
5806
5806
|
|
|
5807
5807
|
|
|
5808
5808
|
|
|
@@ -6327,7 +6327,7 @@ exports["default"] = _default;
|
|
|
6327
6327
|
});
|
|
6328
6328
|
|
|
6329
6329
|
unwrapExports(FilePlayer_1);
|
|
6330
|
-
FilePlayer_1.FilePlayer;
|
|
6330
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6331
6331
|
|
|
6332
6332
|
var players = createCommonjsModule(function (module, exports) {
|
|
6333
6333
|
|
|
@@ -6369,7 +6369,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6369
6369
|
});
|
|
6370
6370
|
exports["default"] = void 0;
|
|
6371
6371
|
|
|
6372
|
-
var _react = _interopRequireWildcard(
|
|
6372
|
+
var _react = _interopRequireWildcard(React);
|
|
6373
6373
|
|
|
6374
6374
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6375
6375
|
|
|
@@ -6548,7 +6548,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6548
6548
|
});
|
|
6549
6549
|
exports["default"] = renderPreloadPlayers;
|
|
6550
6550
|
|
|
6551
|
-
var _react = _interopRequireDefault(
|
|
6551
|
+
var _react = _interopRequireDefault(React);
|
|
6552
6552
|
|
|
6553
6553
|
var _Player = _interopRequireDefault(Player_1);
|
|
6554
6554
|
|
|
@@ -6687,7 +6687,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6687
6687
|
});
|
|
6688
6688
|
exports["default"] = void 0;
|
|
6689
6689
|
|
|
6690
|
-
var _react = _interopRequireWildcard(
|
|
6690
|
+
var _react = _interopRequireWildcard(React);
|
|
6691
6691
|
|
|
6692
6692
|
|
|
6693
6693
|
|
|
@@ -7001,20 +7001,20 @@ var Audio = function Audio(_ref) {
|
|
|
7001
7001
|
var node = _ref.node;
|
|
7002
7002
|
|
|
7003
7003
|
if (node.uploadAudio) {
|
|
7004
|
-
return
|
|
7004
|
+
return React.createElement(
|
|
7005
7005
|
'div',
|
|
7006
7006
|
{ className: 'audio d-block text-center mb-3' },
|
|
7007
|
-
|
|
7007
|
+
React.createElement(
|
|
7008
7008
|
'audio',
|
|
7009
7009
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7010
|
-
|
|
7011
|
-
|
|
7010
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7011
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7012
7012
|
'Your browser does not support the audio element.'
|
|
7013
7013
|
),
|
|
7014
|
-
node.caption &&
|
|
7014
|
+
node.caption && React.createElement(
|
|
7015
7015
|
'p',
|
|
7016
7016
|
{ style: { fontSize: '.9rem' } },
|
|
7017
|
-
|
|
7017
|
+
React.createElement(
|
|
7018
7018
|
'em',
|
|
7019
7019
|
null,
|
|
7020
7020
|
node.caption
|
|
@@ -7024,15 +7024,15 @@ var Audio = function Audio(_ref) {
|
|
|
7024
7024
|
} else if (node.audioFilePth) {
|
|
7025
7025
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7026
7026
|
if (hostname === 'embeds.audioboom.com') {
|
|
7027
|
-
return
|
|
7027
|
+
return React.createElement(
|
|
7028
7028
|
'div',
|
|
7029
7029
|
null,
|
|
7030
|
-
|
|
7030
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7031
7031
|
' ',
|
|
7032
|
-
node.caption &&
|
|
7032
|
+
node.caption && React.createElement(
|
|
7033
7033
|
'p',
|
|
7034
7034
|
{ style: { fontSize: '.9rem' } },
|
|
7035
|
-
|
|
7035
|
+
React.createElement(
|
|
7036
7036
|
'em',
|
|
7037
7037
|
null,
|
|
7038
7038
|
node.caption
|
|
@@ -7040,14 +7040,14 @@ var Audio = function Audio(_ref) {
|
|
|
7040
7040
|
)
|
|
7041
7041
|
);
|
|
7042
7042
|
}
|
|
7043
|
-
return
|
|
7043
|
+
return React.createElement(
|
|
7044
7044
|
'div',
|
|
7045
7045
|
{ className: 'audio' },
|
|
7046
|
-
|
|
7047
|
-
node.caption &&
|
|
7046
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7047
|
+
node.caption && React.createElement(
|
|
7048
7048
|
'p',
|
|
7049
7049
|
{ style: { fontSize: '.9rem' } },
|
|
7050
|
-
|
|
7050
|
+
React.createElement(
|
|
7051
7051
|
'em',
|
|
7052
7052
|
null,
|
|
7053
7053
|
node.caption
|
|
@@ -7065,34 +7065,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7065
7065
|
var profileImage = arguments[6];
|
|
7066
7066
|
|
|
7067
7067
|
if (authorName && authorURL) {
|
|
7068
|
-
return
|
|
7068
|
+
return React.createElement(
|
|
7069
7069
|
'span',
|
|
7070
7070
|
null,
|
|
7071
|
-
|
|
7071
|
+
React.createElement(
|
|
7072
7072
|
'a',
|
|
7073
7073
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7074
7074
|
authorName
|
|
7075
7075
|
),
|
|
7076
|
-
|
|
7076
|
+
React.createElement(
|
|
7077
7077
|
Card,
|
|
7078
7078
|
{ className: 'author-details-card-' + index },
|
|
7079
|
-
|
|
7079
|
+
React.createElement(
|
|
7080
7080
|
Row,
|
|
7081
7081
|
null,
|
|
7082
|
-
profileImage &&
|
|
7082
|
+
profileImage && React.createElement(
|
|
7083
7083
|
Col,
|
|
7084
7084
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7085
|
-
|
|
7085
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7086
7086
|
),
|
|
7087
|
-
|
|
7087
|
+
React.createElement(
|
|
7088
7088
|
Col,
|
|
7089
7089
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7090
|
-
|
|
7090
|
+
React.createElement(
|
|
7091
7091
|
'div',
|
|
7092
7092
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7093
7093
|
authorName
|
|
7094
7094
|
),
|
|
7095
|
-
|
|
7095
|
+
React.createElement(
|
|
7096
7096
|
'p',
|
|
7097
7097
|
null,
|
|
7098
7098
|
biography
|
|
@@ -7100,7 +7100,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7100
7100
|
)
|
|
7101
7101
|
)
|
|
7102
7102
|
),
|
|
7103
|
-
|
|
7103
|
+
React.createElement(
|
|
7104
7104
|
'style',
|
|
7105
7105
|
{ jsx: 'true' },
|
|
7106
7106
|
'\n .author-details-card-' + index + ' {\n display: none;\n position: absolute;\n width: 90%;\n max-width: 450px;\n z-index: 9999;\n }\n .author-details-card-' + index + ' h5 {\n font-weight: 500;\n }\n .author-details-link-' + index + ':hover + .author-details-card-' + index + ', .author-details-card-' + index + ':hover {\n display: block;\n box-shadow: 0px 0px 5px #aaa;\n padding: 15px;\n border-radius: 5px;\n }\n '
|
|
@@ -7108,7 +7108,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7108
7108
|
length !== index + 1 && ' , '
|
|
7109
7109
|
);
|
|
7110
7110
|
} else if (authorName) {
|
|
7111
|
-
return
|
|
7111
|
+
return React.createElement(
|
|
7112
7112
|
'span',
|
|
7113
7113
|
{ key: index },
|
|
7114
7114
|
authorName,
|
|
@@ -7263,8 +7263,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7263
7263
|
var duration = player.getDuration();
|
|
7264
7264
|
var queue = Math.floor(duration / 10);
|
|
7265
7265
|
var segment = Math.floor(current / queue);
|
|
7266
|
-
Beam.report_beam_video('Ready',
|
|
7267
|
-
Segment.report_video_event('Video Ready',
|
|
7266
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
7267
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
7268
7268
|
//autoplay
|
|
7269
7269
|
|
|
7270
7270
|
//Small pause before starting next video
|
|
@@ -7284,8 +7284,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7284
7284
|
var queue = Math.floor(duration / 10);
|
|
7285
7285
|
var segment = Math.floor(current / queue);
|
|
7286
7286
|
|
|
7287
|
-
Beam.report_beam_video('End',
|
|
7288
|
-
Segment.report_video_event('Video End',
|
|
7287
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
7288
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
7289
7289
|
setEndReported(true);
|
|
7290
7290
|
clearInterval(intervalID);
|
|
7291
7291
|
}
|
|
@@ -7335,8 +7335,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7335
7335
|
var queue = Math.floor(duration / 10);
|
|
7336
7336
|
var segment = Math.floor(current / queue);
|
|
7337
7337
|
if (!queueProgress.includes(segment)) {
|
|
7338
|
-
Beam.report_beam_video('Segment',
|
|
7339
|
-
Segment.report_video_event('Video Segment',
|
|
7338
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
7339
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
7340
7340
|
queueProgress.push(segment);
|
|
7341
7341
|
}
|
|
7342
7342
|
};
|
|
@@ -7349,8 +7349,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7349
7349
|
var queue = Math.floor(duration / 10);
|
|
7350
7350
|
var segment = Math.floor(current / queue);
|
|
7351
7351
|
|
|
7352
|
-
Beam.report_beam_video('Play',
|
|
7353
|
-
Segment.report_video_event('Video Play',
|
|
7352
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
7353
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
7354
7354
|
|
|
7355
7355
|
if (!playReported) {
|
|
7356
7356
|
setPlayReported(true);
|
|
@@ -7368,8 +7368,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7368
7368
|
var queue = Math.floor(duration / 10);
|
|
7369
7369
|
var segment = Math.floor(current / queue);
|
|
7370
7370
|
|
|
7371
|
-
Beam.report_beam_video('Pause',
|
|
7372
|
-
Segment.report_video_event('Video Pause',
|
|
7371
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
7372
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
7373
7373
|
};
|
|
7374
7374
|
|
|
7375
7375
|
// Youtube Options
|
|
@@ -7380,44 +7380,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7380
7380
|
}
|
|
7381
7381
|
};
|
|
7382
7382
|
|
|
7383
|
-
return
|
|
7383
|
+
return React.createElement(
|
|
7384
7384
|
'div',
|
|
7385
7385
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7386
|
-
|
|
7386
|
+
React.createElement(
|
|
7387
7387
|
'div',
|
|
7388
7388
|
{ className: 'mt-2 mb-5' },
|
|
7389
|
-
series &&
|
|
7389
|
+
series && React.createElement(
|
|
7390
7390
|
'div',
|
|
7391
7391
|
{ style: { fontSize: '0.9rem' } },
|
|
7392
7392
|
article.title,
|
|
7393
7393
|
' - Episode ',
|
|
7394
7394
|
series
|
|
7395
7395
|
),
|
|
7396
|
-
Videos[series - 1] &&
|
|
7396
|
+
Videos[series - 1] && React.createElement(
|
|
7397
7397
|
'h1',
|
|
7398
7398
|
{ className: 'mb-3' },
|
|
7399
7399
|
Videos[series - 1].title
|
|
7400
7400
|
),
|
|
7401
|
-
|
|
7401
|
+
React.createElement(
|
|
7402
7402
|
'div',
|
|
7403
7403
|
null,
|
|
7404
7404
|
moment(article.published).format('LL')
|
|
7405
7405
|
),
|
|
7406
|
-
|
|
7406
|
+
React.createElement(
|
|
7407
7407
|
'div',
|
|
7408
7408
|
{ className: 'mb-3' },
|
|
7409
7409
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7410
|
-
return
|
|
7410
|
+
return React.createElement(
|
|
7411
7411
|
'span',
|
|
7412
7412
|
{ key: index },
|
|
7413
7413
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7414
7414
|
);
|
|
7415
7415
|
})
|
|
7416
7416
|
),
|
|
7417
|
-
|
|
7417
|
+
React.createElement(
|
|
7418
7418
|
'p',
|
|
7419
7419
|
null,
|
|
7420
|
-
|
|
7420
|
+
React.createElement(SocialShare, {
|
|
7421
7421
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7422
7422
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7423
7423
|
shareVia: meta.shareVia,
|
|
@@ -7432,20 +7432,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7432
7432
|
hideFacebook: meta.hideFBShare
|
|
7433
7433
|
})
|
|
7434
7434
|
),
|
|
7435
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7435
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7436
7436
|
'p',
|
|
7437
7437
|
{ className: 'mb-3' },
|
|
7438
|
-
|
|
7438
|
+
React.createElement(
|
|
7439
7439
|
'em',
|
|
7440
7440
|
null,
|
|
7441
7441
|
Videos[series - 1].intro
|
|
7442
7442
|
)
|
|
7443
7443
|
)
|
|
7444
7444
|
),
|
|
7445
|
-
|
|
7445
|
+
React.createElement(
|
|
7446
7446
|
'div',
|
|
7447
7447
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7448
|
-
vidUrl && vidType == 'youtube' &&
|
|
7448
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7449
7449
|
className: 'fluid-iframe',
|
|
7450
7450
|
videoId: getYoutubeId(vidUrl),
|
|
7451
7451
|
opts: opts,
|
|
@@ -7456,10 +7456,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7456
7456
|
return handleOnEnd(e);
|
|
7457
7457
|
}
|
|
7458
7458
|
}),
|
|
7459
|
-
vidUrl && vidType == 'mp4' &&
|
|
7460
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7461
|
-
|
|
7462
|
-
series &&
|
|
7459
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7460
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7461
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7462
|
+
series && React.createElement(
|
|
7463
7463
|
'div',
|
|
7464
7464
|
{
|
|
7465
7465
|
className: 'vid-series',
|
|
@@ -7469,10 +7469,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7469
7469
|
maxHeight: '100%',
|
|
7470
7470
|
paddingBottom: '0'
|
|
7471
7471
|
} },
|
|
7472
|
-
|
|
7472
|
+
React.createElement(
|
|
7473
7473
|
'p',
|
|
7474
7474
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7475
|
-
|
|
7475
|
+
React.createElement(
|
|
7476
7476
|
'b',
|
|
7477
7477
|
{ style: { fontSize: '1.25em' } },
|
|
7478
7478
|
'Now Playing:'
|
|
@@ -7480,16 +7480,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7480
7480
|
' ',
|
|
7481
7481
|
seriesData[series ? series - 1 : 0].title
|
|
7482
7482
|
),
|
|
7483
|
-
vidUrl &&
|
|
7483
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7484
7484
|
)
|
|
7485
7485
|
),
|
|
7486
|
-
|
|
7487
|
-
|
|
7486
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7487
|
+
React.createElement(
|
|
7488
7488
|
'div',
|
|
7489
7489
|
{ className: 'vid-text' },
|
|
7490
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7490
|
+
Videos[series - 1] && Videos[series - 1].text && React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7491
7491
|
),
|
|
7492
|
-
|
|
7492
|
+
React.createElement(
|
|
7493
7493
|
'style',
|
|
7494
7494
|
{ jsx: 'true' },
|
|
7495
7495
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7497,14 +7497,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7497
7497
|
);
|
|
7498
7498
|
};
|
|
7499
7499
|
|
|
7500
|
-
var Poll
|
|
7501
|
-
var node = _ref.node
|
|
7502
|
-
_ref.client
|
|
7503
|
-
_ref.pageview
|
|
7504
|
-
_ref.videoAccountIDs
|
|
7505
|
-
|
|
7506
|
-
_ref.showVotes
|
|
7507
|
-
|
|
7500
|
+
var Poll = function Poll(_ref) {
|
|
7501
|
+
var node = _ref.node,
|
|
7502
|
+
client = _ref.client,
|
|
7503
|
+
pageview = _ref.pageview,
|
|
7504
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7505
|
+
onVote = _ref.onVote,
|
|
7506
|
+
_ref$showVotes = _ref.showVotes,
|
|
7507
|
+
getSerializers = _ref.getSerializers;
|
|
7508
7508
|
|
|
7509
7509
|
var _useState = useState(null),
|
|
7510
7510
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7542,67 +7542,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7542
7542
|
return acc;
|
|
7543
7543
|
}
|
|
7544
7544
|
}, 0);
|
|
7545
|
-
return
|
|
7546
|
-
|
|
7545
|
+
return React.createElement(
|
|
7546
|
+
React.Fragment,
|
|
7547
7547
|
null,
|
|
7548
|
-
question &&
|
|
7548
|
+
question && React.createElement(
|
|
7549
7549
|
'p',
|
|
7550
7550
|
{ className: 'font-weight-bold' },
|
|
7551
7551
|
question
|
|
7552
7552
|
),
|
|
7553
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7553
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7554
7554
|
'form',
|
|
7555
7555
|
{ onSubmit: function onSubmit(e) {
|
|
7556
7556
|
return onSubmitPoll(e);
|
|
7557
7557
|
} },
|
|
7558
7558
|
choices && choices.map(function (choice) {
|
|
7559
|
-
return
|
|
7559
|
+
return React.createElement(
|
|
7560
7560
|
'div',
|
|
7561
7561
|
{ key: choice._key },
|
|
7562
|
-
|
|
7562
|
+
React.createElement(
|
|
7563
7563
|
'label',
|
|
7564
7564
|
{ className: 'pl-2' },
|
|
7565
|
-
|
|
7565
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7566
7566
|
return setSelectedChoice(e.target.value);
|
|
7567
7567
|
} }),
|
|
7568
7568
|
' ' + choice.choiceText
|
|
7569
7569
|
)
|
|
7570
7570
|
);
|
|
7571
7571
|
}),
|
|
7572
|
-
|
|
7572
|
+
React.createElement(
|
|
7573
7573
|
Button,
|
|
7574
7574
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7575
7575
|
'Vote'
|
|
7576
7576
|
)
|
|
7577
7577
|
),
|
|
7578
|
-
|
|
7578
|
+
React.createElement(
|
|
7579
7579
|
'div',
|
|
7580
7580
|
{ className: 'progress-container' },
|
|
7581
7581
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7582
7582
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7583
|
-
return
|
|
7583
|
+
return React.createElement(
|
|
7584
7584
|
'div',
|
|
7585
7585
|
{ key: choice._key, className: 'mb-3' },
|
|
7586
|
-
|
|
7586
|
+
React.createElement(
|
|
7587
7587
|
'div',
|
|
7588
7588
|
{ className: 'correct-answer' },
|
|
7589
|
-
|
|
7589
|
+
React.createElement(
|
|
7590
7590
|
'div',
|
|
7591
7591
|
null,
|
|
7592
7592
|
choice.choiceText
|
|
7593
7593
|
),
|
|
7594
|
-
choice.choiceAnswer === true &&
|
|
7594
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7595
7595
|
'div',
|
|
7596
7596
|
null,
|
|
7597
|
-
|
|
7597
|
+
React.createElement(
|
|
7598
7598
|
'span',
|
|
7599
7599
|
{ style: { color: 'limegreen' } },
|
|
7600
7600
|
'Correct!'
|
|
7601
7601
|
)
|
|
7602
7602
|
)
|
|
7603
7603
|
),
|
|
7604
|
-
|
|
7605
|
-
|
|
7604
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7605
|
+
React.createElement(
|
|
7606
7606
|
'span',
|
|
7607
7607
|
{ className: 'float-right' },
|
|
7608
7608
|
percentage,
|
|
@@ -7613,14 +7613,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7613
7613
|
);
|
|
7614
7614
|
})
|
|
7615
7615
|
),
|
|
7616
|
-
showAnswer &&
|
|
7616
|
+
showAnswer && React.createElement(
|
|
7617
7617
|
'h4',
|
|
7618
7618
|
{ className: 'text-center small p-3' },
|
|
7619
7619
|
'Total Votes: ',
|
|
7620
7620
|
choicesTotalCount
|
|
7621
7621
|
),
|
|
7622
|
-
showAnswer && response &&
|
|
7623
|
-
|
|
7622
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7623
|
+
React.createElement(
|
|
7624
7624
|
'style',
|
|
7625
7625
|
{ jsx: 'true' },
|
|
7626
7626
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7638,22 +7638,22 @@ _export(_export.S, 'Object', {
|
|
|
7638
7638
|
}
|
|
7639
7639
|
});
|
|
7640
7640
|
|
|
7641
|
-
var values
|
|
7641
|
+
var values = _core.Object.values;
|
|
7642
7642
|
|
|
7643
|
-
var values = createCommonjsModule(function (module) {
|
|
7644
|
-
module.exports = { "default": values
|
|
7643
|
+
var values$1 = createCommonjsModule(function (module) {
|
|
7644
|
+
module.exports = { "default": values, __esModule: true };
|
|
7645
7645
|
});
|
|
7646
7646
|
|
|
7647
|
-
var _Object$values = unwrapExports(values);
|
|
7647
|
+
var _Object$values = unwrapExports(values$1);
|
|
7648
7648
|
|
|
7649
|
-
var Poll = function Poll(_ref) {
|
|
7650
|
-
var node = _ref.node
|
|
7651
|
-
_ref.client
|
|
7652
|
-
_ref.pageview
|
|
7653
|
-
_ref.videoAccountIDs
|
|
7654
|
-
|
|
7655
|
-
_ref.showVotes
|
|
7656
|
-
|
|
7649
|
+
var Poll$1 = function Poll(_ref) {
|
|
7650
|
+
var node = _ref.node,
|
|
7651
|
+
client = _ref.client,
|
|
7652
|
+
pageview = _ref.pageview,
|
|
7653
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7654
|
+
onVote = _ref.onVote,
|
|
7655
|
+
_ref$showVotes = _ref.showVotes,
|
|
7656
|
+
getSerializers = _ref.getSerializers;
|
|
7657
7657
|
|
|
7658
7658
|
var _useState = useState(null),
|
|
7659
7659
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7719,67 +7719,67 @@ var Poll = function Poll(_ref) {
|
|
|
7719
7719
|
return acc;
|
|
7720
7720
|
}
|
|
7721
7721
|
}, 0);
|
|
7722
|
-
return
|
|
7723
|
-
|
|
7722
|
+
return React.createElement(
|
|
7723
|
+
React.Fragment,
|
|
7724
7724
|
null,
|
|
7725
|
-
question &&
|
|
7725
|
+
question && React.createElement(
|
|
7726
7726
|
'p',
|
|
7727
7727
|
{ className: 'font-weight-bold' },
|
|
7728
7728
|
question
|
|
7729
7729
|
),
|
|
7730
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7730
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7731
7731
|
'form',
|
|
7732
7732
|
{ onSubmit: function onSubmit(e) {
|
|
7733
7733
|
return onSubmitPoll(e);
|
|
7734
7734
|
} },
|
|
7735
7735
|
choices && choices.map(function (choice) {
|
|
7736
|
-
return
|
|
7736
|
+
return React.createElement(
|
|
7737
7737
|
'div',
|
|
7738
7738
|
{ key: choice._key },
|
|
7739
|
-
|
|
7739
|
+
React.createElement(
|
|
7740
7740
|
'label',
|
|
7741
7741
|
{ className: 'pl-2' },
|
|
7742
|
-
|
|
7742
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7743
7743
|
return setSelectedChoice(e.target.value);
|
|
7744
7744
|
} }),
|
|
7745
7745
|
' ' + choice.choiceText
|
|
7746
7746
|
)
|
|
7747
7747
|
);
|
|
7748
7748
|
}),
|
|
7749
|
-
|
|
7749
|
+
React.createElement(
|
|
7750
7750
|
Button,
|
|
7751
7751
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7752
7752
|
'Vote'
|
|
7753
7753
|
)
|
|
7754
7754
|
),
|
|
7755
|
-
|
|
7755
|
+
React.createElement(
|
|
7756
7756
|
'div',
|
|
7757
7757
|
{ className: 'progress-container' },
|
|
7758
7758
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7759
7759
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7760
|
-
return
|
|
7760
|
+
return React.createElement(
|
|
7761
7761
|
'div',
|
|
7762
7762
|
{ key: choice._key, className: 'mb-3' },
|
|
7763
|
-
|
|
7763
|
+
React.createElement(
|
|
7764
7764
|
'div',
|
|
7765
7765
|
{ className: 'correct-answer' },
|
|
7766
|
-
|
|
7766
|
+
React.createElement(
|
|
7767
7767
|
'div',
|
|
7768
7768
|
null,
|
|
7769
7769
|
choice.choiceText
|
|
7770
7770
|
),
|
|
7771
|
-
choice.choiceAnswer === true &&
|
|
7771
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7772
7772
|
'div',
|
|
7773
7773
|
null,
|
|
7774
|
-
|
|
7774
|
+
React.createElement(
|
|
7775
7775
|
'span',
|
|
7776
7776
|
{ style: { color: 'limegreen' } },
|
|
7777
7777
|
'Correct!'
|
|
7778
7778
|
)
|
|
7779
7779
|
)
|
|
7780
7780
|
),
|
|
7781
|
-
|
|
7782
|
-
|
|
7781
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7782
|
+
React.createElement(
|
|
7783
7783
|
'span',
|
|
7784
7784
|
{ className: 'float-right' },
|
|
7785
7785
|
percentage,
|
|
@@ -7790,14 +7790,14 @@ var Poll = function Poll(_ref) {
|
|
|
7790
7790
|
);
|
|
7791
7791
|
})
|
|
7792
7792
|
),
|
|
7793
|
-
showAnswer &&
|
|
7793
|
+
showAnswer && React.createElement(
|
|
7794
7794
|
'h4',
|
|
7795
7795
|
{ className: 'text-center small p-3' },
|
|
7796
7796
|
'Total Votes: ',
|
|
7797
7797
|
choicesTotalCount
|
|
7798
7798
|
),
|
|
7799
|
-
showAnswer && response &&
|
|
7800
|
-
|
|
7799
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7800
|
+
React.createElement(
|
|
7801
7801
|
'style',
|
|
7802
7802
|
{ jsx: 'true' },
|
|
7803
7803
|
'\n .correct-answer {\n width: 100%;\n display: flex;\n justify-content: space-between;\n padding: 0 0.5rem;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7805,7 +7805,7 @@ var Poll = function Poll(_ref) {
|
|
|
7805
7805
|
);
|
|
7806
7806
|
};
|
|
7807
7807
|
|
|
7808
|
-
var numberOfPaginations =
|
|
7808
|
+
var numberOfPaginations = main_39 ? 4 : 10;
|
|
7809
7809
|
|
|
7810
7810
|
var Quiz = function Quiz(_ref) {
|
|
7811
7811
|
var quizzes = _ref.quizzes,
|
|
@@ -7923,20 +7923,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7923
7923
|
};
|
|
7924
7924
|
|
|
7925
7925
|
var renderPagination = function renderPagination() {
|
|
7926
|
-
return
|
|
7926
|
+
return React.createElement(
|
|
7927
7927
|
Pagination,
|
|
7928
|
-
{ className: 'p-0 m-0', size:
|
|
7929
|
-
|
|
7928
|
+
{ className: 'p-0 m-0', size: main_39 && 'sm' },
|
|
7929
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7930
7930
|
return changePage('first');
|
|
7931
7931
|
}, disabled: currentPage === 1 }),
|
|
7932
|
-
|
|
7932
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7933
7933
|
return changePage('prev');
|
|
7934
7934
|
}, disabled: currentPage === 1 }),
|
|
7935
|
-
|
|
7935
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7936
7936
|
return renderNewPages('prev');
|
|
7937
7937
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7938
7938
|
pages.map(function (page) {
|
|
7939
|
-
return
|
|
7939
|
+
return React.createElement(
|
|
7940
7940
|
Pagination.Item,
|
|
7941
7941
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7942
7942
|
return changePage(page);
|
|
@@ -7944,13 +7944,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
7944
7944
|
page
|
|
7945
7945
|
);
|
|
7946
7946
|
}),
|
|
7947
|
-
|
|
7947
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7948
7948
|
return renderNewPages('next');
|
|
7949
7949
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7950
|
-
|
|
7950
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7951
7951
|
return changePage('next');
|
|
7952
7952
|
}, disabled: currentPage === pageCount }),
|
|
7953
|
-
|
|
7953
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7954
7954
|
return changePage('last');
|
|
7955
7955
|
}, disabled: currentPage === pageCount })
|
|
7956
7956
|
);
|
|
@@ -8033,51 +8033,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8033
8033
|
}
|
|
8034
8034
|
};
|
|
8035
8035
|
|
|
8036
|
-
return
|
|
8037
|
-
|
|
8036
|
+
return React.createElement(
|
|
8037
|
+
React.Fragment,
|
|
8038
8038
|
null,
|
|
8039
|
-
quizzes[currentPage - 1] &&
|
|
8040
|
-
|
|
8039
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8040
|
+
React.Fragment,
|
|
8041
8041
|
null,
|
|
8042
|
-
|
|
8043
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8042
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8043
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8044
8044
|
'form',
|
|
8045
8045
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8046
8046
|
return e.preventDefault();
|
|
8047
8047
|
} },
|
|
8048
8048
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8049
|
-
return
|
|
8049
|
+
return React.createElement(
|
|
8050
8050
|
'div',
|
|
8051
8051
|
{ key: answer._key },
|
|
8052
|
-
|
|
8052
|
+
React.createElement(
|
|
8053
8053
|
'label',
|
|
8054
8054
|
{ className: 'pl-2' },
|
|
8055
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8055
|
+
quizzes[currentPage - 1].multiAnswer ? React.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8056
8056
|
' ' + answer.answerText
|
|
8057
8057
|
)
|
|
8058
8058
|
);
|
|
8059
8059
|
})
|
|
8060
8060
|
)
|
|
8061
8061
|
),
|
|
8062
|
-
!showAnswer &&
|
|
8062
|
+
!showAnswer && React.createElement(
|
|
8063
8063
|
Button$1,
|
|
8064
8064
|
{ onClick: function onClick() {
|
|
8065
8065
|
return checkAnswers();
|
|
8066
8066
|
}, variant: 'info', block: true },
|
|
8067
8067
|
'Please click here for answer'
|
|
8068
8068
|
),
|
|
8069
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8070
|
-
|
|
8069
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8070
|
+
React.Fragment,
|
|
8071
8071
|
null,
|
|
8072
|
-
|
|
8072
|
+
React.createElement(
|
|
8073
8073
|
'h4',
|
|
8074
8074
|
null,
|
|
8075
8075
|
'Answer:'
|
|
8076
8076
|
),
|
|
8077
|
-
quizzes[currentPage - 1].answer &&
|
|
8077
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8078
8078
|
),
|
|
8079
|
-
|
|
8080
|
-
pageCount > 1 &&
|
|
8079
|
+
React.createElement('br', null),
|
|
8080
|
+
pageCount > 1 && React.createElement(
|
|
8081
8081
|
'div',
|
|
8082
8082
|
{ className: 'd-flex justify-content-center' },
|
|
8083
8083
|
renderPagination()
|
|
@@ -8088,14 +8088,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
8088
8088
|
var Leads = function Leads(_ref) {
|
|
8089
8089
|
var url = _ref.url;
|
|
8090
8090
|
|
|
8091
|
-
return
|
|
8091
|
+
return React.createElement(
|
|
8092
8092
|
'div',
|
|
8093
8093
|
{ className: 'd-block text-center mb-3' },
|
|
8094
|
-
url &&
|
|
8094
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8095
8095
|
);
|
|
8096
8096
|
};
|
|
8097
8097
|
|
|
8098
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8098
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8099
8099
|
var slides = _ref.node.slides,
|
|
8100
8100
|
client = _ref.client,
|
|
8101
8101
|
pageview = _ref.pageview,
|
|
@@ -8107,8 +8107,8 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8107
8107
|
|
|
8108
8108
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8109
8109
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8110
|
-
carouselIndex = _useState2[0]
|
|
8111
|
-
_useState2[1];
|
|
8110
|
+
carouselIndex = _useState2[0],
|
|
8111
|
+
setCarouselIndex = _useState2[1];
|
|
8112
8112
|
|
|
8113
8113
|
// useEffect(() => {
|
|
8114
8114
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8134,42 +8134,42 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8134
8134
|
}
|
|
8135
8135
|
};
|
|
8136
8136
|
|
|
8137
|
-
return
|
|
8137
|
+
return React.createElement(
|
|
8138
8138
|
'div',
|
|
8139
8139
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8140
|
-
|
|
8140
|
+
React.createElement(
|
|
8141
8141
|
Carousel,
|
|
8142
8142
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8143
8143
|
slides && slides.map(function (slide) {
|
|
8144
8144
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8145
|
-
return
|
|
8145
|
+
return React.createElement(
|
|
8146
8146
|
Carousel.Item,
|
|
8147
8147
|
{ key: slide._key },
|
|
8148
|
-
|
|
8148
|
+
React.createElement(
|
|
8149
8149
|
'a',
|
|
8150
8150
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8151
|
-
|
|
8151
|
+
React.createElement(
|
|
8152
8152
|
LazyLoad,
|
|
8153
8153
|
null,
|
|
8154
|
-
|
|
8154
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8155
8155
|
)
|
|
8156
8156
|
),
|
|
8157
|
-
|
|
8157
|
+
React.createElement(
|
|
8158
8158
|
'div',
|
|
8159
8159
|
{ className: 'p-2' },
|
|
8160
|
-
slide.slideshowImage.caption &&
|
|
8160
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8161
8161
|
'h3',
|
|
8162
8162
|
{ style: { padding: '0px' } },
|
|
8163
8163
|
slide.slideshowImage.caption
|
|
8164
8164
|
),
|
|
8165
|
-
slide.description &&
|
|
8165
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8166
8166
|
)
|
|
8167
8167
|
);
|
|
8168
8168
|
}
|
|
8169
8169
|
return null;
|
|
8170
8170
|
})
|
|
8171
8171
|
),
|
|
8172
|
-
|
|
8172
|
+
React.createElement(
|
|
8173
8173
|
'style',
|
|
8174
8174
|
{ jsx: 'true' },
|
|
8175
8175
|
'\n .carousel-indicators {\n bottom: -2.5rem !important;\n }\n .carousel-indicators li {\n width: 20px;\n height: 20px;\n border-radius: 50% !important;\n background-color: var(--secondary);\n }\n .carousel-control-prev {\n justify-content: flex-start;\n }\n .carousel-control-next {\n justify-content: flex-end;\n }\n '
|
|
@@ -8188,10 +8188,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8188
8188
|
sizes = _props$node.sizes,
|
|
8189
8189
|
sizeMapping = _props$node.sizeMapping;
|
|
8190
8190
|
|
|
8191
|
-
return
|
|
8191
|
+
return React.createElement(
|
|
8192
8192
|
'div',
|
|
8193
8193
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8194
|
-
|
|
8194
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8195
8195
|
);
|
|
8196
8196
|
};
|
|
8197
8197
|
|
|
@@ -8202,15 +8202,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8202
8202
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8203
8203
|
|
|
8204
8204
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8205
|
-
return
|
|
8205
|
+
return React.createElement(
|
|
8206
8206
|
'section',
|
|
8207
8207
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8208
|
-
Caption &&
|
|
8208
|
+
Caption && React.createElement(
|
|
8209
8209
|
'h4',
|
|
8210
8210
|
{ className: 'formstack-caption' },
|
|
8211
8211
|
Caption
|
|
8212
8212
|
),
|
|
8213
|
-
|
|
8213
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8214
8214
|
);
|
|
8215
8215
|
};
|
|
8216
8216
|
|
|
@@ -8226,29 +8226,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8226
8226
|
}
|
|
8227
8227
|
});
|
|
8228
8228
|
if (medias && medias.length > 0) {
|
|
8229
|
-
return
|
|
8229
|
+
return React.createElement(
|
|
8230
8230
|
'div',
|
|
8231
8231
|
{ className: 'multi-media-container' },
|
|
8232
|
-
|
|
8232
|
+
React.createElement(
|
|
8233
8233
|
Row$1,
|
|
8234
8234
|
{ noGutters: true },
|
|
8235
8235
|
medias.map(function (media) {
|
|
8236
|
-
return
|
|
8236
|
+
return React.createElement(
|
|
8237
8237
|
Col$1,
|
|
8238
8238
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8239
|
-
|
|
8239
|
+
React.createElement(
|
|
8240
8240
|
'a',
|
|
8241
8241
|
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8242
8242
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8243
|
-
|
|
8243
|
+
React.createElement(
|
|
8244
8244
|
'div',
|
|
8245
8245
|
{ className: 'multi-media-image-container' },
|
|
8246
|
-
imageBox &&
|
|
8246
|
+
imageBox && React.createElement(
|
|
8247
8247
|
LazyLoad,
|
|
8248
8248
|
{ once: true },
|
|
8249
|
-
|
|
8249
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt })
|
|
8250
8250
|
),
|
|
8251
|
-
media.caption &&
|
|
8251
|
+
media.caption && React.createElement(
|
|
8252
8252
|
'span',
|
|
8253
8253
|
{ className: 'multi-media-caption' },
|
|
8254
8254
|
media.caption
|
|
@@ -8258,7 +8258,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8258
8258
|
);
|
|
8259
8259
|
})
|
|
8260
8260
|
),
|
|
8261
|
-
|
|
8261
|
+
React.createElement(
|
|
8262
8262
|
'style',
|
|
8263
8263
|
{ jsx: 'true' },
|
|
8264
8264
|
'\n .multi-media-container {\n margin-bottom: 1rem;\n }\n .multi-media-image {\n width: 100%;\n height: auto;\n object-fit: cover;\n }\n\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-media-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-media-image[images-count=\'4\'] {\n height: 100px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 200px;\n }\n .multi-media-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-media-image[images-count=\'4\'] {\n height: 150px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 300px;\n }\n }\n\n .multi-media-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
|
|
@@ -8305,7 +8305,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8305
8305
|
}
|
|
8306
8306
|
};
|
|
8307
8307
|
|
|
8308
|
-
_this.wraperRef =
|
|
8308
|
+
_this.wraperRef = React.createRef();
|
|
8309
8309
|
_this.visible = false;
|
|
8310
8310
|
return _this;
|
|
8311
8311
|
}
|
|
@@ -8333,7 +8333,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8333
8333
|
_props$id = _props.id,
|
|
8334
8334
|
id = _props$id === undefined ? '' : _props$id;
|
|
8335
8335
|
|
|
8336
|
-
return
|
|
8336
|
+
return React.createElement(
|
|
8337
8337
|
'div',
|
|
8338
8338
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8339
8339
|
this.props.children
|
|
@@ -8342,7 +8342,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8342
8342
|
}]);
|
|
8343
8343
|
|
|
8344
8344
|
return InscreenSensor;
|
|
8345
|
-
}(
|
|
8345
|
+
}(React.Component);
|
|
8346
8346
|
|
|
8347
8347
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8348
8348
|
var nodes = _ref.nodes,
|
|
@@ -8451,33 +8451,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8451
8451
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8452
8452
|
var showReading = show ? 'showReading' : '';
|
|
8453
8453
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8454
|
-
return
|
|
8454
|
+
return React.createElement(
|
|
8455
8455
|
'div',
|
|
8456
8456
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8457
|
-
|
|
8457
|
+
React.createElement(
|
|
8458
8458
|
'a',
|
|
8459
8459
|
{ onClick: function onClick(e) {
|
|
8460
8460
|
return articleCardClickHandler(e);
|
|
8461
8461
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8462
|
-
|
|
8462
|
+
React.createElement(
|
|
8463
8463
|
'div',
|
|
8464
8464
|
{ className: 'prevNext-thumbnail' },
|
|
8465
|
-
|
|
8466
|
-
|
|
8465
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8466
|
+
React.createElement(
|
|
8467
8467
|
'div',
|
|
8468
8468
|
{ className: 'prevNext-reading ' + showReading },
|
|
8469
8469
|
articleLabel
|
|
8470
8470
|
)
|
|
8471
8471
|
),
|
|
8472
|
-
|
|
8472
|
+
React.createElement(
|
|
8473
8473
|
'div',
|
|
8474
8474
|
{ className: 'prevNext-summary' },
|
|
8475
|
-
|
|
8475
|
+
React.createElement(
|
|
8476
8476
|
'div',
|
|
8477
8477
|
{ className: 'prevNext-publishDate' },
|
|
8478
8478
|
moment(article.published).format('LL')
|
|
8479
8479
|
),
|
|
8480
|
-
|
|
8480
|
+
React.createElement(
|
|
8481
8481
|
'h2',
|
|
8482
8482
|
{ className: 'prevNext-title' },
|
|
8483
8483
|
article.title
|
|
@@ -8526,7 +8526,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8526
8526
|
|
|
8527
8527
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8528
8528
|
if (biography) {
|
|
8529
|
-
return
|
|
8529
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8530
8530
|
}
|
|
8531
8531
|
};
|
|
8532
8532
|
|
|
@@ -8612,7 +8612,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8612
8612
|
//console.log('useLayoutEffect')
|
|
8613
8613
|
if (!firstLoad) {
|
|
8614
8614
|
setUpArrowClicked(false);
|
|
8615
|
-
if (
|
|
8615
|
+
if (main_40) {
|
|
8616
8616
|
grabLoadedAds();
|
|
8617
8617
|
} else {
|
|
8618
8618
|
scrollToArticle();
|
|
@@ -8636,7 +8636,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8636
8636
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8637
8637
|
if (pageview) pageview(path);
|
|
8638
8638
|
|
|
8639
|
-
if (!
|
|
8639
|
+
if (!main_40) {
|
|
8640
8640
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8641
8641
|
if (window.googletag && googletag.pubadsReady) {
|
|
8642
8642
|
lib_3.refresh();
|
|
@@ -8644,7 +8644,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8644
8644
|
});
|
|
8645
8645
|
}
|
|
8646
8646
|
//Refresh leaderboard ad on mobile
|
|
8647
|
-
if (
|
|
8647
|
+
if (main_40) {
|
|
8648
8648
|
var leaderboardSlotId = '';
|
|
8649
8649
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8650
8650
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8684,38 +8684,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8684
8684
|
setSensorVisible(false);
|
|
8685
8685
|
};
|
|
8686
8686
|
|
|
8687
|
-
return
|
|
8688
|
-
|
|
8687
|
+
return React.createElement(
|
|
8688
|
+
React.Fragment,
|
|
8689
8689
|
null,
|
|
8690
|
-
|
|
8690
|
+
React.createElement(
|
|
8691
8691
|
'div',
|
|
8692
8692
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8693
|
-
|
|
8693
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8694
8694
|
return handleArrowClick();
|
|
8695
8695
|
} })
|
|
8696
8696
|
),
|
|
8697
|
-
|
|
8698
|
-
|
|
8697
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8698
|
+
React.createElement(
|
|
8699
8699
|
'div',
|
|
8700
8700
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8701
|
-
|
|
8701
|
+
React.createElement(
|
|
8702
8702
|
'h5',
|
|
8703
8703
|
{ className: 'objective-title' },
|
|
8704
8704
|
nodes.seriesTitle
|
|
8705
8705
|
),
|
|
8706
|
-
|
|
8706
|
+
React.createElement(
|
|
8707
8707
|
'div',
|
|
8708
8708
|
{ className: 'prevNextWrapper' },
|
|
8709
8709
|
PrevNextCards(false, -1)
|
|
8710
8710
|
)
|
|
8711
8711
|
),
|
|
8712
|
-
|
|
8713
|
-
|
|
8712
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8713
|
+
React.createElement(
|
|
8714
8714
|
'div',
|
|
8715
8715
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8716
|
-
|
|
8716
|
+
main_40 && Ads.map(function (ad, index) {
|
|
8717
8717
|
if (index === 0) {
|
|
8718
|
-
return
|
|
8718
|
+
return React.createElement(
|
|
8719
8719
|
'div',
|
|
8720
8720
|
{
|
|
8721
8721
|
key: 'addid-1',
|
|
@@ -8735,14 +8735,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8735
8735
|
}
|
|
8736
8736
|
})
|
|
8737
8737
|
),
|
|
8738
|
-
|
|
8738
|
+
React.createElement(
|
|
8739
8739
|
'div',
|
|
8740
8740
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8741
8741
|
Articles.map(function (article, index) {
|
|
8742
|
-
return
|
|
8742
|
+
return React.createElement(
|
|
8743
8743
|
'div',
|
|
8744
8744
|
{ key: article.title },
|
|
8745
|
-
|
|
8745
|
+
React.createElement(
|
|
8746
8746
|
InscreenSensor,
|
|
8747
8747
|
{
|
|
8748
8748
|
visible: sensorVisible,
|
|
@@ -8760,84 +8760,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8760
8760
|
}
|
|
8761
8761
|
}
|
|
8762
8762
|
} },
|
|
8763
|
-
|
|
8763
|
+
React.createElement(
|
|
8764
8764
|
Head,
|
|
8765
8765
|
null,
|
|
8766
|
-
currentTitle !== null &&
|
|
8766
|
+
currentTitle !== null && React.createElement(
|
|
8767
8767
|
'title',
|
|
8768
8768
|
{ key: 'title' },
|
|
8769
8769
|
currentTitle
|
|
8770
8770
|
),
|
|
8771
|
-
currentSummary !== null &&
|
|
8772
|
-
currentURL !== null &&
|
|
8773
|
-
currentTitle !== null &&
|
|
8774
|
-
currentThumbnail !== null &&
|
|
8775
|
-
currentSummary !== null &&
|
|
8776
|
-
currentTitle !== null &&
|
|
8777
|
-
currentThumbnail !== null &&
|
|
8778
|
-
currentSummary !== null &&
|
|
8771
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8772
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8773
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8774
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8775
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8776
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8777
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8778
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8779
8779
|
),
|
|
8780
|
-
|
|
8780
|
+
React.createElement(
|
|
8781
8781
|
'article',
|
|
8782
8782
|
{ className: 'article-wrapper' },
|
|
8783
|
-
|
|
8783
|
+
React.createElement(
|
|
8784
8784
|
'div',
|
|
8785
8785
|
{ className: 'article-publishDate' },
|
|
8786
8786
|
moment(article.published).format('LL')
|
|
8787
8787
|
),
|
|
8788
|
-
|
|
8788
|
+
React.createElement(
|
|
8789
8789
|
'div',
|
|
8790
8790
|
{ className: 'author-details-wrapper' },
|
|
8791
8791
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8792
|
-
return
|
|
8792
|
+
return React.createElement(
|
|
8793
8793
|
'span',
|
|
8794
8794
|
{ key: index },
|
|
8795
8795
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8796
8796
|
);
|
|
8797
8797
|
})
|
|
8798
8798
|
),
|
|
8799
|
-
|
|
8799
|
+
React.createElement(
|
|
8800
8800
|
'h2',
|
|
8801
8801
|
{ className: 'article-title' },
|
|
8802
8802
|
article.title
|
|
8803
8803
|
),
|
|
8804
|
-
|
|
8804
|
+
React.createElement(
|
|
8805
8805
|
'div',
|
|
8806
8806
|
{ className: 'mt-2 mb-2' },
|
|
8807
|
-
|
|
8807
|
+
React.createElement(BlockContent, _extends({
|
|
8808
8808
|
serializers: getSerializers,
|
|
8809
8809
|
videoAccountIDs: accountIDs,
|
|
8810
8810
|
blocks: article.text,
|
|
8811
8811
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8812
8812
|
}, client.config())),
|
|
8813
|
-
|
|
8813
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8814
8814
|
),
|
|
8815
|
-
Articles.length > 1 &&
|
|
8816
|
-
|
|
8815
|
+
Articles.length > 1 && React.createElement(
|
|
8816
|
+
React.Fragment,
|
|
8817
8817
|
null,
|
|
8818
|
-
|
|
8818
|
+
React.createElement(
|
|
8819
8819
|
'div',
|
|
8820
8820
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8821
|
-
|
|
8821
|
+
React.createElement(
|
|
8822
8822
|
'h5',
|
|
8823
8823
|
{ className: 'objective-title' },
|
|
8824
8824
|
nodes.seriesTitle
|
|
8825
8825
|
),
|
|
8826
|
-
|
|
8826
|
+
React.createElement(
|
|
8827
8827
|
'div',
|
|
8828
8828
|
{ className: 'prevNextWrapper' },
|
|
8829
8829
|
PrevNextCards(true, index)
|
|
8830
8830
|
)
|
|
8831
8831
|
),
|
|
8832
|
-
|
|
8832
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8833
8833
|
)
|
|
8834
8834
|
),
|
|
8835
|
-
|
|
8835
|
+
React.createElement(
|
|
8836
8836
|
'div',
|
|
8837
8837
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8838
|
-
|
|
8838
|
+
main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8839
8839
|
if (innerIndex === 0) {
|
|
8840
|
-
return
|
|
8840
|
+
return React.createElement(
|
|
8841
8841
|
'div',
|
|
8842
8842
|
{
|
|
8843
8843
|
key: 'addid-' + (index + 2),
|
|
@@ -8860,7 +8860,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8860
8860
|
)
|
|
8861
8861
|
);
|
|
8862
8862
|
}),
|
|
8863
|
-
|
|
8863
|
+
React.createElement(
|
|
8864
8864
|
'style',
|
|
8865
8865
|
{ jsx: 'true' },
|
|
8866
8866
|
'\n .scrollToTopArrow {\n position: fixed;\n top: 150px;\n display: flex;\n justify-content: center;\n width: ' + contentWidth + 'px;\n opacity: 1;\n z-index: 99999999999;\n visibility: hidden;\n }\n .scrollToTopArrow > svg {\n min-height: 50px;\n min-width: 50px;\n max-height: 50px;\n max-width: 50px;\n }\n .block-content > div p {\n padding: 0;\n }\n\n h2.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.prevNext-title {\n padding: 0;\n font-size: 1rem;\n font-weight: 500;\n }\n .article-wrapper {\n border: 1px solid #252525;\n border-radius: 5px;\n padding: 1rem 1rem 0 1rem;\n margin-bottom: 1rem;\n }\n .prevNext-reading {\n margin-top: -10px;\n width: 75%;\n text-align: center;\n background: white;\n border: 1px solid #252525;\n align-self: center;\n display: none;\n }\n .showReading {\n display: block;\n }\n .author-details-wrapper a {\n color: #252525;\n }\n .objective-prevNext-Wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .objective-title {\n padding: 0 !important;\n }\n .prevNext-thumbnail {\n display: flex;\n flex-direction: column;\n min-width: 225px;\n max-width: 225px;\n overflow: hidden;\n align-items: center;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-thumbnail img {\n height: 125px;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-summary {\n text-align: center;\n }\n .prevNext-publishDate {\n font-size: 0.75rem;\n margin-top: 0.5rem;\n }\n .prevNext-title {\n padding: 0 !important;\n line-height: 1 !important;\n font-weight: 500;\n }\n .prevNextWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n flex-wrap: wrap;\n }\n .prevNextWrapper a {\n display: flex;\n flex-direction: column;\n color: #252525;\n align-items: center;\n }\n .prevNextCards {\n max-width: 250px;\n margin-bottom: 1rem;\n }\n @media only screen and (max-width: 568px) {\n .prevNextWrapper {\n flex-direction: column;\n align-items: center;\n }\n .prevNextCards {\n margin-bottom: 2rem;\n }\n }\n @media only screen and (max-width: 568px) {\n }\n '
|
|
@@ -8890,11 +8890,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8890
8890
|
};
|
|
8891
8891
|
}, [handleClickOutside]);
|
|
8892
8892
|
|
|
8893
|
-
return
|
|
8893
|
+
return React.createElement(
|
|
8894
8894
|
'div',
|
|
8895
8895
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8896
|
-
|
|
8897
|
-
|
|
8896
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8897
|
+
React.createElement(
|
|
8898
8898
|
'style',
|
|
8899
8899
|
{ jsx: 'true' },
|
|
8900
8900
|
'\n /*Eliminates padding, centers the thumbnail */\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -8908,7 +8908,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8908
8908
|
}
|
|
8909
8909
|
};
|
|
8910
8910
|
|
|
8911
|
-
var FigureImage =
|
|
8911
|
+
var FigureImage = React.memo(function (_ref2) {
|
|
8912
8912
|
var node = _ref2.node,
|
|
8913
8913
|
client = _ref2.client,
|
|
8914
8914
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8916,13 +8916,13 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8916
8916
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8917
8917
|
|
|
8918
8918
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8919
|
-
return
|
|
8919
|
+
return React.createElement(
|
|
8920
8920
|
'picture',
|
|
8921
8921
|
null,
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8922
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8923
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8924
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8925
|
+
React.createElement('img', _extends({
|
|
8926
8926
|
style: figureImageStyle,
|
|
8927
8927
|
className: 'figure-image',
|
|
8928
8928
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9010,13 +9010,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9010
9010
|
|
|
9011
9011
|
var FigureCaption = useCallback(function () {
|
|
9012
9012
|
if (imgcaption && imgcaption.length > 0) {
|
|
9013
|
-
return
|
|
9013
|
+
return React.createElement(
|
|
9014
9014
|
'div',
|
|
9015
9015
|
{ className: 'figure-caption' },
|
|
9016
|
-
|
|
9016
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9017
9017
|
);
|
|
9018
9018
|
} else if (caption) {
|
|
9019
|
-
return
|
|
9019
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9020
9020
|
} else return null;
|
|
9021
9021
|
}, [caption, imgcaption]);
|
|
9022
9022
|
|
|
@@ -9033,24 +9033,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9033
9033
|
setShowLightbox(true);
|
|
9034
9034
|
}, [node, client]);
|
|
9035
9035
|
|
|
9036
|
-
return
|
|
9037
|
-
|
|
9036
|
+
return React.createElement(
|
|
9037
|
+
React.Fragment,
|
|
9038
9038
|
null,
|
|
9039
|
-
|
|
9039
|
+
React.createElement(
|
|
9040
9040
|
Figure$2,
|
|
9041
9041
|
{ className: '' + class_name, style: figureStyle },
|
|
9042
|
-
link ?
|
|
9042
|
+
link ? React.createElement(
|
|
9043
9043
|
'a',
|
|
9044
9044
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
) :
|
|
9048
|
-
|
|
9045
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9046
|
+
React.createElement(FigureCaption, null)
|
|
9047
|
+
) : React.createElement(
|
|
9048
|
+
React.Fragment,
|
|
9049
9049
|
null,
|
|
9050
|
-
|
|
9051
|
-
|
|
9050
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9051
|
+
React.createElement(FigureCaption, null)
|
|
9052
9052
|
),
|
|
9053
|
-
|
|
9053
|
+
React.createElement(LightBox, {
|
|
9054
9054
|
showLightbox: showLightbox,
|
|
9055
9055
|
lightboxImgSrc: lightboxImgSrc,
|
|
9056
9056
|
closeLightbox: function closeLightbox() {
|
|
@@ -9059,7 +9059,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9059
9059
|
}
|
|
9060
9060
|
})
|
|
9061
9061
|
),
|
|
9062
|
-
|
|
9062
|
+
React.createElement(
|
|
9063
9063
|
'style',
|
|
9064
9064
|
{ jsx: 'true' },
|
|
9065
9065
|
'\n .figure-caption,\n .figure-caption h1,\n .figure-caption h2,\n .figure-caption h3,\n .figure-caption h4,\n .figure-caption h5,\n .figure-caption h6,\n .figure-caption p,\n .figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n '
|
|
@@ -9067,7 +9067,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9067
9067
|
);
|
|
9068
9068
|
};
|
|
9069
9069
|
|
|
9070
|
-
var Figure =
|
|
9070
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9071
9071
|
|
|
9072
9072
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9073
9073
|
useEffect(function () {
|
|
@@ -9108,47 +9108,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9108
9108
|
imgcaption = _ref.imgcaption;
|
|
9109
9109
|
|
|
9110
9110
|
if (imgcaption && imgcaption.length > 0) {
|
|
9111
|
-
return
|
|
9111
|
+
return React.createElement(
|
|
9112
9112
|
'div',
|
|
9113
9113
|
{ className: 'multi-figure-caption' },
|
|
9114
|
-
|
|
9114
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9115
9115
|
);
|
|
9116
9116
|
} else if (caption) {
|
|
9117
|
-
return
|
|
9117
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9118
9118
|
} else return null;
|
|
9119
9119
|
};
|
|
9120
9120
|
|
|
9121
9121
|
if (images && images.length > 0) {
|
|
9122
|
-
return
|
|
9122
|
+
return React.createElement(
|
|
9123
9123
|
'div',
|
|
9124
9124
|
{ className: 'multi-figure-container' },
|
|
9125
|
-
|
|
9125
|
+
React.createElement(
|
|
9126
9126
|
Row$1,
|
|
9127
9127
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9128
9128
|
images.map(function (image, index) {
|
|
9129
|
-
return
|
|
9129
|
+
return React.createElement(
|
|
9130
9130
|
Col$1,
|
|
9131
9131
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9132
|
-
image.link ?
|
|
9132
|
+
image.link ? React.createElement(
|
|
9133
9133
|
'a',
|
|
9134
9134
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9135
|
-
|
|
9135
|
+
React.createElement(
|
|
9136
9136
|
'div',
|
|
9137
9137
|
{ className: 'multi-figure-image-container' },
|
|
9138
|
-
|
|
9138
|
+
React.createElement(
|
|
9139
9139
|
LazyLoad,
|
|
9140
9140
|
{ once: true },
|
|
9141
|
-
|
|
9141
|
+
React.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor({ source: image.asset, client: client }), alt: image.alt })
|
|
9142
9142
|
),
|
|
9143
|
-
|
|
9143
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9144
9144
|
)
|
|
9145
|
-
) :
|
|
9145
|
+
) : React.createElement(
|
|
9146
9146
|
'div',
|
|
9147
9147
|
{ className: 'multi-figure-image-container' },
|
|
9148
|
-
|
|
9148
|
+
React.createElement(
|
|
9149
9149
|
LazyLoad,
|
|
9150
9150
|
{ once: true },
|
|
9151
|
-
|
|
9151
|
+
React.createElement('img', {
|
|
9152
9152
|
'images-count': images.length,
|
|
9153
9153
|
className: 'multi-figure-image',
|
|
9154
9154
|
src: urlFor({ source: image.asset, client: client }),
|
|
@@ -9159,17 +9159,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9159
9159
|
}
|
|
9160
9160
|
})
|
|
9161
9161
|
),
|
|
9162
|
-
|
|
9162
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9163
9163
|
)
|
|
9164
9164
|
);
|
|
9165
9165
|
})
|
|
9166
9166
|
),
|
|
9167
|
-
|
|
9167
|
+
React.createElement(
|
|
9168
9168
|
'div',
|
|
9169
9169
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9170
|
-
|
|
9170
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9171
9171
|
),
|
|
9172
|
-
|
|
9172
|
+
React.createElement(
|
|
9173
9173
|
'style',
|
|
9174
9174
|
{ jsx: 'true' },
|
|
9175
9175
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9191,10 +9191,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9191
9191
|
|
|
9192
9192
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9193
9193
|
|
|
9194
|
-
return
|
|
9194
|
+
return React.createElement(
|
|
9195
9195
|
'div',
|
|
9196
9196
|
{ id: elementId },
|
|
9197
|
-
|
|
9197
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9198
9198
|
);
|
|
9199
9199
|
};
|
|
9200
9200
|
|
|
@@ -9243,7 +9243,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9243
9243
|
|
|
9244
9244
|
|
|
9245
9245
|
|
|
9246
|
-
var _react2 = _interopRequireDefault(
|
|
9246
|
+
var _react2 = _interopRequireDefault(React);
|
|
9247
9247
|
|
|
9248
9248
|
|
|
9249
9249
|
|
|
@@ -9392,9 +9392,9 @@ var ScriptTag = function (_Component) {
|
|
|
9392
9392
|
|
|
9393
9393
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9394
9394
|
// eslint-disable-next-line no-unused-vars
|
|
9395
|
-
var _props3 = this.props
|
|
9396
|
-
_props3.isHydrating
|
|
9397
|
-
|
|
9395
|
+
var _props3 = this.props,
|
|
9396
|
+
isHydrating = _props3.isHydrating,
|
|
9397
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9398
9398
|
|
|
9399
9399
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9400
9400
|
return _this2.domRef = tag;
|
|
@@ -9402,7 +9402,7 @@ var ScriptTag = function (_Component) {
|
|
|
9402
9402
|
};
|
|
9403
9403
|
|
|
9404
9404
|
return ScriptTag;
|
|
9405
|
-
}(
|
|
9405
|
+
}(React.Component);
|
|
9406
9406
|
|
|
9407
9407
|
ScriptTag.propTypes = {
|
|
9408
9408
|
/**
|
|
@@ -9481,11 +9481,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9481
9481
|
}, []);
|
|
9482
9482
|
|
|
9483
9483
|
if (iframeSrc) {
|
|
9484
|
-
return
|
|
9484
|
+
return React.createElement(
|
|
9485
9485
|
'section',
|
|
9486
9486
|
{ className: 'form-assembly' },
|
|
9487
|
-
|
|
9488
|
-
|
|
9487
|
+
React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9488
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9489
9489
|
);
|
|
9490
9490
|
}
|
|
9491
9491
|
|
|
@@ -9522,27 +9522,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9522
9522
|
return window.removeEventListener('resize', handleResize);
|
|
9523
9523
|
};
|
|
9524
9524
|
}, []);
|
|
9525
|
-
return
|
|
9525
|
+
return React.createElement(
|
|
9526
9526
|
'div',
|
|
9527
9527
|
{ className: 'blockTableHolder', ref: holder },
|
|
9528
|
-
|
|
9528
|
+
React.createElement(
|
|
9529
9529
|
'div',
|
|
9530
9530
|
{ className: 'blockTable' },
|
|
9531
9531
|
rows && rows.map(function (row) {
|
|
9532
|
-
return
|
|
9532
|
+
return React.createElement(
|
|
9533
9533
|
'div',
|
|
9534
9534
|
{ className: 'blockTableRow' },
|
|
9535
9535
|
row.cells && row.cells.map(function (cell) {
|
|
9536
|
-
return
|
|
9536
|
+
return React.createElement(
|
|
9537
9537
|
'div',
|
|
9538
9538
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9539
|
-
|
|
9539
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9540
9540
|
);
|
|
9541
9541
|
})
|
|
9542
9542
|
);
|
|
9543
9543
|
})
|
|
9544
9544
|
),
|
|
9545
|
-
|
|
9545
|
+
React.createElement(
|
|
9546
9546
|
'style',
|
|
9547
9547
|
{ jsx: true },
|
|
9548
9548
|
'\n .blockTableRow {\n display: flex;\n ' + (showBorders && 'border-top: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTable {\n min-width: ' + minTableWidth + 'px;\n }\n .blockTableRow:last-of-type {\n ' + (showBorders && 'border-bottom: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell {\n padding: 0.5rem;\n ' + (showBorders && 'border-left: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell > div {\n width: 100%;\n }\n .blockTableCell > div p {\n margin: 0;\n }\n .blockTableCell > div figure {\n margin: 0 !important;\n }\n .blockTableCell > div figure img {\n margin: 0 !important;\n }\n .blockTableCell:last-of-type {\n ' + (showBorders && 'border-right: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n @media only screen and (max-width: 800px) {\n .blockTableCell {\n padding: 0.25rem;\n }\n }\n '
|
|
@@ -9621,12 +9621,12 @@ var getSerializers = function getSerializers() {
|
|
|
9621
9621
|
var node = _ref.node;
|
|
9622
9622
|
var url = node.url;
|
|
9623
9623
|
|
|
9624
|
-
return
|
|
9624
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9625
9625
|
},
|
|
9626
9626
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9627
9627
|
var node = _ref2.node;
|
|
9628
9628
|
|
|
9629
|
-
return
|
|
9629
|
+
return React.createElement(YouTubeGallery, {
|
|
9630
9630
|
nodes: node,
|
|
9631
9631
|
article: article,
|
|
9632
9632
|
meta: meta,
|
|
@@ -9640,7 +9640,7 @@ var getSerializers = function getSerializers() {
|
|
|
9640
9640
|
articleSeries: function articleSeries(_ref3) {
|
|
9641
9641
|
var node = _ref3.node;
|
|
9642
9642
|
|
|
9643
|
-
return
|
|
9643
|
+
return React.createElement(ArticleSeries, {
|
|
9644
9644
|
nodes: node,
|
|
9645
9645
|
accountIDs: videoAccountIDs || {},
|
|
9646
9646
|
pageview: pageview,
|
|
@@ -9653,61 +9653,61 @@ var getSerializers = function getSerializers() {
|
|
|
9653
9653
|
figure: function figure(_ref4) {
|
|
9654
9654
|
var node = _ref4.node;
|
|
9655
9655
|
|
|
9656
|
-
return
|
|
9656
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9657
9657
|
},
|
|
9658
9658
|
multifigure: function multifigure(_ref5) {
|
|
9659
9659
|
var node = _ref5.node;
|
|
9660
9660
|
|
|
9661
|
-
return
|
|
9661
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9662
9662
|
},
|
|
9663
9663
|
slideshow: function slideshow(_ref6) {
|
|
9664
9664
|
var node = _ref6.node;
|
|
9665
9665
|
var slides = node.slides;
|
|
9666
9666
|
|
|
9667
|
-
return
|
|
9667
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9668
9668
|
},
|
|
9669
9669
|
sidebar: function sidebar(_ref7) {
|
|
9670
9670
|
var node = _ref7.node;
|
|
9671
9671
|
var caption = node.caption,
|
|
9672
9672
|
content = node.content;
|
|
9673
9673
|
|
|
9674
|
-
return
|
|
9674
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9675
9675
|
},
|
|
9676
9676
|
datatable: function datatable(_ref8) {
|
|
9677
9677
|
var node = _ref8.node;
|
|
9678
9678
|
var table = node.table;
|
|
9679
9679
|
|
|
9680
|
-
return
|
|
9680
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9681
9681
|
},
|
|
9682
9682
|
media: function media(_ref9) {
|
|
9683
9683
|
var node = _ref9.node;
|
|
9684
9684
|
|
|
9685
|
-
return
|
|
9685
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9686
9686
|
},
|
|
9687
9687
|
iframe: function iframe(_ref10) {
|
|
9688
9688
|
var node = _ref10.node;
|
|
9689
9689
|
|
|
9690
|
-
return
|
|
9690
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9691
9691
|
},
|
|
9692
9692
|
video: function video(_ref11) {
|
|
9693
9693
|
var node = _ref11.node;
|
|
9694
9694
|
|
|
9695
|
-
return
|
|
9695
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9696
9696
|
},
|
|
9697
9697
|
audio: function audio(_ref12) {
|
|
9698
9698
|
var node = _ref12.node;
|
|
9699
9699
|
|
|
9700
|
-
return
|
|
9700
|
+
return React.createElement(Audio, { node: node });
|
|
9701
9701
|
},
|
|
9702
9702
|
poll: function poll(_ref13) {
|
|
9703
9703
|
var node = _ref13.node;
|
|
9704
9704
|
|
|
9705
|
-
return
|
|
9705
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9706
9706
|
},
|
|
9707
9707
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9708
9708
|
var node = _ref14.node;
|
|
9709
9709
|
|
|
9710
|
-
return
|
|
9710
|
+
return React.createElement(Poll$1, {
|
|
9711
9711
|
node: node,
|
|
9712
9712
|
client: client,
|
|
9713
9713
|
pageview: pageview,
|
|
@@ -9721,35 +9721,35 @@ var getSerializers = function getSerializers() {
|
|
|
9721
9721
|
var node = _ref15.node;
|
|
9722
9722
|
var quizzes = node.quizzes;
|
|
9723
9723
|
|
|
9724
|
-
return
|
|
9724
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9725
9725
|
},
|
|
9726
9726
|
leads: function leads(_ref16) {
|
|
9727
9727
|
var node = _ref16.node;
|
|
9728
9728
|
var leadID = node.leadID;
|
|
9729
9729
|
|
|
9730
9730
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9731
|
-
return
|
|
9731
|
+
return React.createElement(Leads, { url: url });
|
|
9732
9732
|
},
|
|
9733
9733
|
slideshows: function slideshows(_ref17) {
|
|
9734
9734
|
var node = _ref17.node;
|
|
9735
9735
|
|
|
9736
|
-
return
|
|
9736
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9737
9737
|
},
|
|
9738
9738
|
nativeAd: function nativeAd(_ref18) {
|
|
9739
9739
|
var node = _ref18.node;
|
|
9740
9740
|
|
|
9741
|
-
return
|
|
9741
|
+
return React.createElement(NativeAd, { node: node });
|
|
9742
9742
|
},
|
|
9743
9743
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9744
9744
|
var node = _ref19.node;
|
|
9745
9745
|
|
|
9746
|
-
return
|
|
9746
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9747
9747
|
},
|
|
9748
9748
|
hrtag: function hrtag() {
|
|
9749
|
-
return
|
|
9749
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9750
9750
|
},
|
|
9751
9751
|
brtag: function brtag() {
|
|
9752
|
-
return
|
|
9752
|
+
return React.createElement('br', { className: 'line-break' });
|
|
9753
9753
|
},
|
|
9754
9754
|
formstack: function formstack(_ref20) {
|
|
9755
9755
|
var node = _ref20.node;
|
|
@@ -9757,29 +9757,29 @@ var getSerializers = function getSerializers() {
|
|
|
9757
9757
|
Caption = node.Caption,
|
|
9758
9758
|
needSegmentSupport = node.needSegmentSupport;
|
|
9759
9759
|
|
|
9760
|
-
return
|
|
9760
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9761
9761
|
},
|
|
9762
9762
|
formassembly: FormAssembly,
|
|
9763
9763
|
multimedia: function multimedia(_ref21) {
|
|
9764
9764
|
var node = _ref21.node;
|
|
9765
9765
|
|
|
9766
|
-
return
|
|
9766
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
9767
9767
|
},
|
|
9768
9768
|
blockTable: function blockTable(_ref22) {
|
|
9769
9769
|
var node = _ref22.node;
|
|
9770
|
-
return
|
|
9770
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9771
9771
|
}
|
|
9772
9772
|
},
|
|
9773
9773
|
marks: {
|
|
9774
9774
|
superscript: function superscript(props) {
|
|
9775
|
-
return
|
|
9775
|
+
return React.createElement(
|
|
9776
9776
|
'sup',
|
|
9777
9777
|
null,
|
|
9778
9778
|
props.children
|
|
9779
9779
|
);
|
|
9780
9780
|
},
|
|
9781
9781
|
subscript: function subscript(props) {
|
|
9782
|
-
return
|
|
9782
|
+
return React.createElement(
|
|
9783
9783
|
'sub',
|
|
9784
9784
|
null,
|
|
9785
9785
|
props.children
|
|
@@ -9795,7 +9795,7 @@ var getSerializers = function getSerializers() {
|
|
|
9795
9795
|
if (href && href.charAt(0) === '#') {
|
|
9796
9796
|
var elementId = href.slice(1);
|
|
9797
9797
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9798
|
-
return
|
|
9798
|
+
return React.createElement(
|
|
9799
9799
|
'a',
|
|
9800
9800
|
{ onClick: function onClick() {
|
|
9801
9801
|
return ScrollToElement(elementId);
|
|
@@ -9805,7 +9805,7 @@ var getSerializers = function getSerializers() {
|
|
|
9805
9805
|
}
|
|
9806
9806
|
|
|
9807
9807
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9808
|
-
return
|
|
9808
|
+
return React.createElement(
|
|
9809
9809
|
'a',
|
|
9810
9810
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9811
9811
|
children
|
|
@@ -9813,7 +9813,7 @@ var getSerializers = function getSerializers() {
|
|
|
9813
9813
|
},
|
|
9814
9814
|
alignleft: function alignleft(_ref23) {
|
|
9815
9815
|
var children = _ref23.children;
|
|
9816
|
-
return
|
|
9816
|
+
return React.createElement(
|
|
9817
9817
|
'div',
|
|
9818
9818
|
{ style: { textAlign: 'left' } },
|
|
9819
9819
|
children
|
|
@@ -9821,7 +9821,7 @@ var getSerializers = function getSerializers() {
|
|
|
9821
9821
|
},
|
|
9822
9822
|
alignright: function alignright(_ref24) {
|
|
9823
9823
|
var children = _ref24.children;
|
|
9824
|
-
return
|
|
9824
|
+
return React.createElement(
|
|
9825
9825
|
'div',
|
|
9826
9826
|
{ style: { textAlign: 'right' } },
|
|
9827
9827
|
children
|
|
@@ -9829,7 +9829,7 @@ var getSerializers = function getSerializers() {
|
|
|
9829
9829
|
},
|
|
9830
9830
|
aligncenter: function aligncenter(_ref25) {
|
|
9831
9831
|
var children = _ref25.children;
|
|
9832
|
-
return
|
|
9832
|
+
return React.createElement(
|
|
9833
9833
|
'div',
|
|
9834
9834
|
{ style: { textAlign: 'center' } },
|
|
9835
9835
|
children
|
|
@@ -9837,7 +9837,7 @@ var getSerializers = function getSerializers() {
|
|
|
9837
9837
|
},
|
|
9838
9838
|
alignjustify: function alignjustify(_ref26) {
|
|
9839
9839
|
var children = _ref26.children;
|
|
9840
|
-
return
|
|
9840
|
+
return React.createElement(
|
|
9841
9841
|
'div',
|
|
9842
9842
|
{ style: { textAlign: 'justify' } },
|
|
9843
9843
|
children
|
|
@@ -9847,7 +9847,7 @@ var getSerializers = function getSerializers() {
|
|
|
9847
9847
|
var children = props.children,
|
|
9848
9848
|
color = props.mark.color;
|
|
9849
9849
|
|
|
9850
|
-
return
|
|
9850
|
+
return React.createElement(
|
|
9851
9851
|
'span',
|
|
9852
9852
|
{ style: { color: color ? color.hex : null } },
|
|
9853
9853
|
children
|