@mjhls/mjh-framework 1.0.840-seomanager-v1 → 1.0.841-dv
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 -24
- package/dist/cjs/AD300x250x600.js +24 -24
- package/dist/cjs/AD728x90.js +27 -27
- package/dist/cjs/ADFloatingFooter.js +23 -23
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +23 -23
- package/dist/cjs/{ADInfeed-859820d9.js → ADInfeed-ad02bfab.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +23 -23
- package/dist/cjs/ADSponsoredResources.js +23 -23
- package/dist/cjs/ADWebcast.js +23 -23
- package/dist/cjs/ADWelcome.js +20 -20
- package/dist/cjs/{ADlgInfeed-da3a36a6.js → ADlgInfeed-eb23fc9f.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +92 -24
- package/dist/cjs/AdSlotsProvider.js +27 -17
- package/dist/cjs/AlgoliaSearch.js +521 -488
- package/dist/cjs/AlphabeticList.js +10 -10
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +50 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +32 -32
- package/dist/cjs/ArticleSeriesListing.js +33 -33
- package/dist/cjs/Auth.js +348 -519
- package/dist/cjs/AuthWrapper.js +309 -1583
- 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 +24 -24
- package/dist/cjs/Column2.js +16 -16
- package/dist/cjs/Column3.js +33 -33
- package/dist/cjs/ConferenceArticleCard.js +7 -7
- package/dist/cjs/DeckContent.js +35 -35
- package/dist/cjs/DeckQueue.js +34 -34
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-391fd124.js} +15 -15
- package/dist/cjs/EventsDeck.js +28 -28
- package/dist/cjs/ExternalResources.js +47 -47
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +12 -12
- package/dist/cjs/GridContent.js +204 -85
- 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 -47
- package/dist/cjs/HorizontalHero.js +5 -5
- package/dist/cjs/IssueContentDeck.js +13 -13
- package/dist/cjs/IssueDeck.js +17 -17
- package/dist/cjs/IssueLanding.js +55 -55
- package/dist/cjs/LeftNav.js +22 -22
- package/dist/cjs/MasterDeck.js +34 -34
- package/dist/cjs/MediaSeriesLanding.js +340 -440
- 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 +57 -57
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +34 -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 -38
- 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 -20
- package/dist/cjs/{SeriesSlider-34c6cc2b.js → SeriesSlider-d38767ae.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +15 -15
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-9a9d6f8c.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +10 -10
- package/dist/cjs/TaxonomyDescription.js +46 -46
- package/dist/cjs/TemplateNormal.js +48 -48
- 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 -52
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +38 -38
- package/dist/cjs/VideoSeriesListing.js +37 -35
- package/dist/cjs/View.js +179 -140
- 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/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-4ba0d3d5.js} +4 -5
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/{extends-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 +14 -14
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +45 -45
- package/dist/cjs/{getTargeting-be6168ad.js → getTargeting-ea2ea5e7.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-fc2f1ca2.js → index-2cf30c83.js} +4 -4
- package/dist/cjs/{index-f86bb269.js → index-5be2866f.js} +45 -44
- 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-060c5d65.js → index-c1d8b5a1.js} +231 -180
- package/dist/cjs/{index-50be6759.js → index-f0677b9d.js} +10 -16
- package/dist/cjs/{index.es-f3e47207.js → index.es-13533f24.js} +4 -20
- 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 -138
- 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-11ec04d2.js +894 -0
- package/dist/cjs/{moment-aca40de1.js → moment-66a6a284.js} +9 -11
- 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 -27
- package/dist/esm/AD300x250x600.js +27 -27
- package/dist/esm/AD728x90.js +30 -30
- package/dist/esm/ADFloatingFooter.js +29 -29
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -29
- package/dist/esm/{ADInfeed-4bf3b2f9.js → ADInfeed-e8ab7008.js} +9 -9
- package/dist/esm/ADSkyscraper.js +29 -29
- package/dist/esm/ADSponsoredResources.js +29 -29
- package/dist/esm/ADWebcast.js +29 -29
- package/dist/esm/ADWelcome.js +30 -30
- package/dist/esm/{ADlgInfeed-a3377c4a.js → ADlgInfeed-882b23a8.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +95 -27
- package/dist/esm/AdSlotsProvider.js +28 -18
- package/dist/esm/AlgoliaSearch.js +721 -688
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +56 -56
- package/dist/esm/ArticleSeriesLandingPage.js +37 -37
- package/dist/esm/ArticleSeriesListing.js +56 -56
- package/dist/esm/Auth.js +418 -589
- package/dist/esm/AuthWrapper.js +326 -1600
- 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 +79 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +27 -27
- package/dist/esm/Column3.js +52 -52
- package/dist/esm/ConferenceArticleCard.js +20 -20
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +79 -79
- package/dist/esm/DeckQueue.js +71 -71
- package/dist/esm/{Dfp-2c43d2a0.js → Dfp-2f9796e1.js} +22 -22
- package/dist/esm/EventsDeck.js +88 -88
- package/dist/esm/ExternalResources.js +73 -73
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +262 -144
- 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 -69
- 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 +63 -63
- package/dist/esm/LeftNav.js +35 -35
- package/dist/esm/MasterDeck.js +66 -66
- package/dist/esm/MediaSeriesLanding.js +630 -730
- 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 +105 -105
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +39 -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 +275 -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 +32 -32
- package/dist/esm/{SeriesSlider-5d5c08f4.js → SeriesSlider-b8cc1baa.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-c54d43cb.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +42 -42
- package/dist/esm/TaxonomyDescription.js +50 -50
- package/dist/esm/TemplateNormal.js +68 -68
- 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 -64
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +42 -42
- package/dist/esm/VideoSeriesListing.js +76 -74
- package/dist/esm/View.js +328 -289
- 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-e1c6b0f2.js} +6 -7
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
- package/dist/esm/{extends-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 +14 -14
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -45
- package/dist/esm/{getTargeting-68291ce9.js → getTargeting-831bc794.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-01d53c17.js → index-1fd83450.js} +555 -504
- 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-98ca9cec.js → index-b68072f5.js} +10 -16
- package/dist/esm/{index-79cfd25c.js → index-d2f90501.js} +45 -44
- package/dist/esm/{index-f0fc23eb.js → index-f7fb1e25.js} +6 -6
- package/dist/esm/{index.es-a6137319.js → index.es-7dda2f0a.js} +9 -25
- 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 -134
- 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-aef58dbc.js +882 -0
- package/dist/esm/{moment-bc12cb97.js → moment-12415288.js} +9 -11
- 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/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/main-d4165069.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
|
@@ -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-f0fc23eb.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-12415288.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_38, m as main_39 } from './main-aef58dbc.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-e1c6b0f2.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,27 @@ 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
|
-
|
|
81
|
+
React.createElement(
|
|
82
|
+
'picture',
|
|
83
|
+
null,
|
|
84
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
85
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
86
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
87
|
+
React.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
88
|
+
),
|
|
89
|
+
slide.caption && React.createElement(
|
|
83
90
|
'p',
|
|
84
91
|
{ className: 'p-2' },
|
|
85
92
|
slide.caption
|
|
@@ -669,14 +676,14 @@ function coerce(val) {
|
|
|
669
676
|
return val;
|
|
670
677
|
}
|
|
671
678
|
});
|
|
672
|
-
debug.coerce;
|
|
673
|
-
debug.disable;
|
|
674
|
-
debug.enable;
|
|
675
|
-
debug.enabled;
|
|
676
|
-
debug.humanize;
|
|
677
|
-
debug.names;
|
|
678
|
-
debug.skips;
|
|
679
|
-
debug.formatters;
|
|
679
|
+
var debug_1 = debug.coerce;
|
|
680
|
+
var debug_2 = debug.disable;
|
|
681
|
+
var debug_3 = debug.enable;
|
|
682
|
+
var debug_4 = debug.enabled;
|
|
683
|
+
var debug_5 = debug.humanize;
|
|
684
|
+
var debug_6 = debug.names;
|
|
685
|
+
var debug_7 = debug.skips;
|
|
686
|
+
var debug_8 = debug.formatters;
|
|
680
687
|
|
|
681
688
|
var browser = createCommonjsModule(function (module, exports) {
|
|
682
689
|
/**
|
|
@@ -865,13 +872,13 @@ function localstorage() {
|
|
|
865
872
|
} catch (e) {}
|
|
866
873
|
}
|
|
867
874
|
});
|
|
868
|
-
browser.log;
|
|
869
|
-
browser.formatArgs;
|
|
870
|
-
browser.save;
|
|
871
|
-
browser.load;
|
|
872
|
-
browser.useColors;
|
|
873
|
-
browser.storage;
|
|
874
|
-
browser.colors;
|
|
875
|
+
var browser_1 = browser.log;
|
|
876
|
+
var browser_2 = browser.formatArgs;
|
|
877
|
+
var browser_3 = browser.save;
|
|
878
|
+
var browser_4 = browser.load;
|
|
879
|
+
var browser_5 = browser.useColors;
|
|
880
|
+
var browser_6 = browser.storage;
|
|
881
|
+
var browser_7 = browser.colors;
|
|
875
882
|
|
|
876
883
|
// MIT lisence
|
|
877
884
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1146,14 +1153,14 @@ function init (debug) {
|
|
|
1146
1153
|
|
|
1147
1154
|
exports.enable(load());
|
|
1148
1155
|
});
|
|
1149
|
-
node.init;
|
|
1150
|
-
node.log;
|
|
1151
|
-
node.formatArgs;
|
|
1152
|
-
node.save;
|
|
1153
|
-
node.load;
|
|
1154
|
-
node.useColors;
|
|
1155
|
-
node.colors;
|
|
1156
|
-
node.inspectOpts;
|
|
1156
|
+
var node_1 = node.init;
|
|
1157
|
+
var node_2 = node.log;
|
|
1158
|
+
var node_3 = node.formatArgs;
|
|
1159
|
+
var node_4 = node.save;
|
|
1160
|
+
var node_5 = node.load;
|
|
1161
|
+
var node_6 = node.useColors;
|
|
1162
|
+
var node_7 = node.colors;
|
|
1163
|
+
var node_8 = node.inspectOpts;
|
|
1157
1164
|
|
|
1158
1165
|
var src = createCommonjsModule(function (module) {
|
|
1159
1166
|
/**
|
|
@@ -1611,11 +1618,11 @@ function shouldUpdateVideo(prevProps, props) {
|
|
|
1611
1618
|
|
|
1612
1619
|
function filterResetOptions(opts) {
|
|
1613
1620
|
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1614
|
-
playerVars: _objectSpread({
|
|
1621
|
+
playerVars: _objectSpread(_objectSpread({}, opts.playerVars), {}, {
|
|
1615
1622
|
autoplay: 0,
|
|
1616
1623
|
start: 0,
|
|
1617
1624
|
end: 0
|
|
1618
|
-
}
|
|
1625
|
+
})
|
|
1619
1626
|
});
|
|
1620
1627
|
}
|
|
1621
1628
|
/**
|
|
@@ -1821,9 +1828,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1821
1828
|
}, {
|
|
1822
1829
|
key: "render",
|
|
1823
1830
|
value: function render() {
|
|
1824
|
-
return /*#__PURE__*/
|
|
1831
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1825
1832
|
className: this.props.containerClassName
|
|
1826
|
-
}, /*#__PURE__*/
|
|
1833
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1827
1834
|
id: this.props.id,
|
|
1828
1835
|
className: this.props.className,
|
|
1829
1836
|
ref: this.refContainer
|
|
@@ -1832,7 +1839,7 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1832
1839
|
}]);
|
|
1833
1840
|
|
|
1834
1841
|
return YouTube;
|
|
1835
|
-
}(
|
|
1842
|
+
}(React.Component);
|
|
1836
1843
|
|
|
1837
1844
|
_defineProperty(YouTube, "PlayerState", {
|
|
1838
1845
|
UNSTARTED: -1,
|
|
@@ -1916,8 +1923,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1916
1923
|
var duration = player.getDuration();
|
|
1917
1924
|
var queue = Math.floor(duration / 10);
|
|
1918
1925
|
var segment = Math.floor(current / queue);
|
|
1919
|
-
Beam.report_beam_video('Ready',
|
|
1920
|
-
Segment.report_video_event('Video Ready',
|
|
1926
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
1927
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1921
1928
|
};
|
|
1922
1929
|
|
|
1923
1930
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1927,8 +1934,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1927
1934
|
var segment = Math.floor(current / queue);
|
|
1928
1935
|
|
|
1929
1936
|
if (!queueProgress.includes(segment)) {
|
|
1930
|
-
Beam.report_beam_video('Segment',
|
|
1931
|
-
Segment.report_video_event('Video Segment',
|
|
1937
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
1938
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1932
1939
|
queueProgress.push(segment);
|
|
1933
1940
|
}
|
|
1934
1941
|
};
|
|
@@ -1941,8 +1948,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1941
1948
|
var queue = Math.floor(duration / 10);
|
|
1942
1949
|
var segment = Math.floor(current / queue);
|
|
1943
1950
|
|
|
1944
|
-
Beam.report_beam_video('Play',
|
|
1945
|
-
Segment.report_video_event('Video Play',
|
|
1951
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
1952
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1946
1953
|
|
|
1947
1954
|
if (!playReported) {
|
|
1948
1955
|
setPlayReported(true);
|
|
@@ -1961,8 +1968,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1961
1968
|
var queue = Math.floor(duration / 10);
|
|
1962
1969
|
var segment = Math.floor(current / queue);
|
|
1963
1970
|
|
|
1964
|
-
Beam.report_beam_video('End',
|
|
1965
|
-
Segment.report_video_event('Video End',
|
|
1971
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
1972
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1966
1973
|
setEndReported(true);
|
|
1967
1974
|
clearInterval(intervalID);
|
|
1968
1975
|
}
|
|
@@ -1975,15 +1982,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1975
1982
|
var queue = Math.floor(duration / 10);
|
|
1976
1983
|
var segment = Math.floor(current / queue);
|
|
1977
1984
|
|
|
1978
|
-
Beam.report_beam_video('Pause',
|
|
1979
|
-
Segment.report_video_event('Video Pause',
|
|
1985
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
1986
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1980
1987
|
};
|
|
1981
1988
|
|
|
1982
|
-
return
|
|
1989
|
+
return React.createElement(
|
|
1983
1990
|
'div',
|
|
1984
1991
|
{ id: 'fluid-video-container' },
|
|
1985
|
-
|
|
1986
|
-
|
|
1992
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1993
|
+
React.createElement(
|
|
1987
1994
|
'style',
|
|
1988
1995
|
{ jsx: 'true' },
|
|
1989
1996
|
'\n #fluid-video-container {\n margin-bottom: 2rem;\n }\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n '
|
|
@@ -1996,20 +2003,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
1996
2003
|
content = _ref.content,
|
|
1997
2004
|
getSerializers = _ref.getSerializers;
|
|
1998
2005
|
|
|
1999
|
-
return
|
|
2006
|
+
return React.createElement(
|
|
2000
2007
|
'article',
|
|
2001
2008
|
{ className: 'sidebar' },
|
|
2002
|
-
|
|
2009
|
+
React.createElement(
|
|
2003
2010
|
'div',
|
|
2004
2011
|
null,
|
|
2005
|
-
|
|
2012
|
+
React.createElement(
|
|
2006
2013
|
'h3',
|
|
2007
2014
|
null,
|
|
2008
2015
|
caption
|
|
2009
2016
|
),
|
|
2010
|
-
|
|
2017
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2011
2018
|
),
|
|
2012
|
-
|
|
2019
|
+
React.createElement(
|
|
2013
2020
|
'style',
|
|
2014
2021
|
{ jsx: 'true' },
|
|
2015
2022
|
'\n .sidebar {\n clear: both;\n float: right;\n background-color: #eee;\n width: 40%;\n padding: 1rem;\n margin: 0 0 1rem 1rem;\n }\n /* resolving list items inside sidebar being shifted to center because of unusual margin */\n .sidebar ul {\n margin-left: 0;\n padding-left: 1rem;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n float: none;\n width: auto;\n margin: 1rem 0;\n }\n }\n '
|
|
@@ -2020,18 +2027,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2020
2027
|
var TableShow = function TableShow(_ref) {
|
|
2021
2028
|
var rows = _ref.rows;
|
|
2022
2029
|
|
|
2023
|
-
return
|
|
2030
|
+
return React.createElement(
|
|
2024
2031
|
Table,
|
|
2025
2032
|
{ bordered: true, hover: true, responsive: true },
|
|
2026
|
-
|
|
2033
|
+
React.createElement(
|
|
2027
2034
|
'tbody',
|
|
2028
2035
|
null,
|
|
2029
2036
|
rows && rows.map(function (row) {
|
|
2030
|
-
return
|
|
2037
|
+
return React.createElement(
|
|
2031
2038
|
'tr',
|
|
2032
2039
|
{ key: row._key },
|
|
2033
2040
|
row.cells && row.cells.map(function (cell, index) {
|
|
2034
|
-
return cell &&
|
|
2041
|
+
return cell && React.createElement(
|
|
2035
2042
|
'td',
|
|
2036
2043
|
{ key: index },
|
|
2037
2044
|
cell
|
|
@@ -2129,18 +2136,25 @@ var Media = function Media(_ref) {
|
|
|
2129
2136
|
margin: imageMargin
|
|
2130
2137
|
};
|
|
2131
2138
|
|
|
2132
|
-
return
|
|
2139
|
+
return React.createElement(
|
|
2133
2140
|
Figure$1,
|
|
2134
2141
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2135
|
-
|
|
2142
|
+
React.createElement(
|
|
2136
2143
|
'a',
|
|
2137
2144
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2138
|
-
|
|
2145
|
+
React.createElement(
|
|
2139
2146
|
LazyLoad,
|
|
2140
2147
|
{ once: true },
|
|
2141
|
-
|
|
2148
|
+
React.createElement(
|
|
2149
|
+
'picture',
|
|
2150
|
+
null,
|
|
2151
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2152
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2153
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2154
|
+
React.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2155
|
+
)
|
|
2142
2156
|
),
|
|
2143
|
-
caption &&
|
|
2157
|
+
caption && React.createElement(
|
|
2144
2158
|
Figure$1.Caption,
|
|
2145
2159
|
{ className: 'media-caption' },
|
|
2146
2160
|
caption
|
|
@@ -2148,7 +2162,7 @@ var Media = function Media(_ref) {
|
|
|
2148
2162
|
)
|
|
2149
2163
|
);
|
|
2150
2164
|
} else if (caption && caption !== '') {
|
|
2151
|
-
return
|
|
2165
|
+
return React.createElement(
|
|
2152
2166
|
'a',
|
|
2153
2167
|
_extends({}, uploadDoc.downloadMedia ? {
|
|
2154
2168
|
href: uploadDoc.asset.url + '?dl='
|
|
@@ -2168,10 +2182,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2168
2182
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2169
2183
|
|
|
2170
2184
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2171
|
-
return
|
|
2185
|
+
return React.createElement(
|
|
2172
2186
|
'div',
|
|
2173
2187
|
{ className: 'd-block text-center mb-3' },
|
|
2174
|
-
|
|
2188
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2175
2189
|
);
|
|
2176
2190
|
};
|
|
2177
2191
|
|
|
@@ -2205,8 +2219,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2205
2219
|
var duration = player.duration;
|
|
2206
2220
|
var queue = Math.floor(duration / 10);
|
|
2207
2221
|
var segment = Math.floor(current / queue);
|
|
2208
|
-
Beam.report_beam_video('Ready',
|
|
2209
|
-
Segment.report_video_event('Video Ready',
|
|
2222
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
|
|
2223
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
2210
2224
|
};
|
|
2211
2225
|
|
|
2212
2226
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2215,8 +2229,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2215
2229
|
var queue = Math.floor(duration / 10);
|
|
2216
2230
|
var segment = Math.floor(current / queue);
|
|
2217
2231
|
if (!queueProgress.includes(segment)) {
|
|
2218
|
-
Beam.report_beam_video('Segment',
|
|
2219
|
-
Segment.report_video_event('Video Segment',
|
|
2232
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
|
|
2233
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
2220
2234
|
queueProgress.push(segment);
|
|
2221
2235
|
}
|
|
2222
2236
|
};
|
|
@@ -2228,8 +2242,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2228
2242
|
var duration = player.duration;
|
|
2229
2243
|
var queue = Math.floor(duration / 10);
|
|
2230
2244
|
var segment = Math.floor(current / queue);
|
|
2231
|
-
Beam.report_beam_video('Play',
|
|
2232
|
-
Segment.report_video_event('Video Play',
|
|
2245
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
|
|
2246
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
2233
2247
|
|
|
2234
2248
|
if (!playReported) {
|
|
2235
2249
|
event.persist();
|
|
@@ -2249,8 +2263,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2249
2263
|
var queue = Math.floor(duration / 10);
|
|
2250
2264
|
var segment = Math.floor(current / queue);
|
|
2251
2265
|
|
|
2252
|
-
Beam.report_beam_video('End',
|
|
2253
|
-
Segment.report_video_event('Video End',
|
|
2266
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
|
|
2267
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
2254
2268
|
setEndReported(true);
|
|
2255
2269
|
clearInterval(intervalID);
|
|
2256
2270
|
}
|
|
@@ -2262,14 +2276,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2262
2276
|
var duration = player.duration - current;
|
|
2263
2277
|
var queue = Math.floor(duration / 10);
|
|
2264
2278
|
var segment = Math.floor(current / queue);
|
|
2265
|
-
Beam.report_beam_video('Pause',
|
|
2266
|
-
Segment.report_video_event('Video Pause',
|
|
2279
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
|
|
2280
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2267
2281
|
};
|
|
2268
2282
|
|
|
2269
|
-
return
|
|
2283
|
+
return React.createElement(
|
|
2270
2284
|
'div',
|
|
2271
2285
|
null,
|
|
2272
|
-
vidLoaded &&
|
|
2286
|
+
vidLoaded && React.createElement(
|
|
2273
2287
|
'video',
|
|
2274
2288
|
{
|
|
2275
2289
|
poster: thumbnail || '',
|
|
@@ -2287,7 +2301,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2287
2301
|
onPlay: function onPlay(e) {
|
|
2288
2302
|
return handleOnPlay(e);
|
|
2289
2303
|
} },
|
|
2290
|
-
|
|
2304
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2291
2305
|
'Your browser does not support the video tag.'
|
|
2292
2306
|
)
|
|
2293
2307
|
);
|
|
@@ -2352,8 +2366,8 @@ var Video = function Video(_ref) {
|
|
|
2352
2366
|
player.pause();
|
|
2353
2367
|
}
|
|
2354
2368
|
|
|
2355
|
-
Beam.report_beam_video('Ready',
|
|
2356
|
-
Segment.report_video_event('Video Ready',
|
|
2369
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2370
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2357
2371
|
});
|
|
2358
2372
|
|
|
2359
2373
|
// play
|
|
@@ -2362,8 +2376,8 @@ var Video = function Video(_ref) {
|
|
|
2362
2376
|
var current = player.currentTime();
|
|
2363
2377
|
var queue = Math.floor(duration / 10);
|
|
2364
2378
|
var segment = Math.floor(current / queue);
|
|
2365
|
-
Beam.report_beam_video('Play',
|
|
2366
|
-
Segment.report_video_event('Video Play',
|
|
2379
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2380
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2367
2381
|
});
|
|
2368
2382
|
|
|
2369
2383
|
// pause
|
|
@@ -2372,8 +2386,8 @@ var Video = function Video(_ref) {
|
|
|
2372
2386
|
var current = player.currentTime();
|
|
2373
2387
|
var queue = Math.floor(duration / 10);
|
|
2374
2388
|
var segment = Math.floor(current / queue);
|
|
2375
|
-
Beam.report_beam_video('Pause',
|
|
2376
|
-
Segment.report_video_event('Video Pause',
|
|
2389
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2390
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2377
2391
|
});
|
|
2378
2392
|
|
|
2379
2393
|
// end
|
|
@@ -2382,8 +2396,8 @@ var Video = function Video(_ref) {
|
|
|
2382
2396
|
var current = player.currentTime();
|
|
2383
2397
|
var queue = Math.floor(duration / 10);
|
|
2384
2398
|
var segment = Math.floor(current / queue);
|
|
2385
|
-
Beam.report_beam_video('End',
|
|
2386
|
-
Segment.report_video_event('Video End',
|
|
2399
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2400
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2387
2401
|
autoplayNextVideo(evt);
|
|
2388
2402
|
});
|
|
2389
2403
|
|
|
@@ -2394,8 +2408,8 @@ var Video = function Video(_ref) {
|
|
|
2394
2408
|
var queue = Math.floor(duration / 10);
|
|
2395
2409
|
var segment = Math.floor(current / queue);
|
|
2396
2410
|
if (!queueProgress.includes(segment)) {
|
|
2397
|
-
Beam.report_beam_video('Segment',
|
|
2398
|
-
Segment.report_video_event('Video Segment',
|
|
2411
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2412
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2399
2413
|
queueProgress.push(segment);
|
|
2400
2414
|
}
|
|
2401
2415
|
});
|
|
@@ -2406,8 +2420,8 @@ var Video = function Video(_ref) {
|
|
|
2406
2420
|
var id = player.ads.ad.id;
|
|
2407
2421
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2408
2422
|
|
|
2409
|
-
Beam.report_beam_ad('AD Started',
|
|
2410
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2423
|
+
Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
|
|
2424
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2411
2425
|
});
|
|
2412
2426
|
|
|
2413
2427
|
// ad ended
|
|
@@ -2415,60 +2429,60 @@ var Video = function Video(_ref) {
|
|
|
2415
2429
|
var duration = player.ads.ad.duration;
|
|
2416
2430
|
var id = player.ads.ad.id;
|
|
2417
2431
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2418
|
-
Beam.report_beam_ad('AD Ended',
|
|
2419
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2432
|
+
Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
|
|
2433
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2420
2434
|
});
|
|
2421
2435
|
};
|
|
2422
2436
|
|
|
2423
2437
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2424
2438
|
if (videoID) {
|
|
2425
|
-
return
|
|
2439
|
+
return React.createElement(
|
|
2426
2440
|
'div',
|
|
2427
2441
|
null,
|
|
2428
|
-
|
|
2442
|
+
React.createElement(ReactPlayerLoader, {
|
|
2429
2443
|
onSuccess: onVideoSuccess,
|
|
2430
2444
|
accountId: accountIDs.brightcove.accountId,
|
|
2431
2445
|
videoId: videoID,
|
|
2432
2446
|
playerId: accountIDs.brightcove.playerId,
|
|
2433
2447
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2434
2448
|
}),
|
|
2435
|
-
|
|
2449
|
+
React.createElement(
|
|
2436
2450
|
'style',
|
|
2437
2451
|
{ jsx: 'true' },
|
|
2438
2452
|
'\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
2453
|
)
|
|
2440
2454
|
);
|
|
2441
2455
|
} else if (playlistID) {
|
|
2442
|
-
return
|
|
2456
|
+
return React.createElement(
|
|
2443
2457
|
'div',
|
|
2444
2458
|
null,
|
|
2445
|
-
|
|
2459
|
+
React.createElement(ReactPlayerLoader, {
|
|
2446
2460
|
accountId: accountIDs.brightcove.accountId,
|
|
2447
2461
|
playlistId: playlistID,
|
|
2448
2462
|
playerId: accountIDs.brightcove.playerId,
|
|
2449
2463
|
onSuccess: onVideoSuccess,
|
|
2450
2464
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2451
2465
|
}),
|
|
2452
|
-
|
|
2466
|
+
React.createElement(
|
|
2453
2467
|
'style',
|
|
2454
2468
|
{ jsx: 'true' },
|
|
2455
2469
|
'\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
2470
|
)
|
|
2457
2471
|
);
|
|
2458
2472
|
} else if (experienceID) {
|
|
2459
|
-
return
|
|
2473
|
+
return React.createElement(
|
|
2460
2474
|
'div',
|
|
2461
2475
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2462
|
-
videoLoaded &&
|
|
2476
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2463
2477
|
);
|
|
2464
2478
|
}
|
|
2465
2479
|
return null;
|
|
2466
2480
|
}
|
|
2467
2481
|
if (source === 'mp4') {
|
|
2468
|
-
return
|
|
2482
|
+
return React.createElement(
|
|
2469
2483
|
'div',
|
|
2470
2484
|
null,
|
|
2471
|
-
|
|
2485
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2472
2486
|
);
|
|
2473
2487
|
}
|
|
2474
2488
|
|
|
@@ -2679,9 +2693,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2679
2693
|
});
|
|
2680
2694
|
|
|
2681
2695
|
unwrapExports(props);
|
|
2682
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2683
|
-
props.defaultProps;
|
|
2684
|
-
props.propTypes;
|
|
2696
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2697
|
+
var props_2 = props.defaultProps;
|
|
2698
|
+
var props_3 = props.propTypes;
|
|
2685
2699
|
|
|
2686
2700
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2687
2701
|
return isNonNullObject(value)
|
|
@@ -3073,7 +3087,7 @@ function isEqual(a, b) {
|
|
|
3073
3087
|
return true;
|
|
3074
3088
|
}
|
|
3075
3089
|
|
|
3076
|
-
if ((0,
|
|
3090
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3077
3091
|
return true;
|
|
3078
3092
|
}
|
|
3079
3093
|
|
|
@@ -3116,17 +3130,17 @@ function isMediaStream(url) {
|
|
|
3116
3130
|
});
|
|
3117
3131
|
|
|
3118
3132
|
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;
|
|
3133
|
+
var utils_1 = utils.parseStartTime;
|
|
3134
|
+
var utils_2 = utils.parseEndTime;
|
|
3135
|
+
var utils_3 = utils.randomString;
|
|
3136
|
+
var utils_4 = utils.queryString;
|
|
3137
|
+
var utils_5 = utils.getSDK;
|
|
3138
|
+
var utils_6 = utils.getConfig;
|
|
3139
|
+
var utils_7 = utils.omit;
|
|
3140
|
+
var utils_8 = utils.callPlayer;
|
|
3141
|
+
var utils_9 = utils.isObject;
|
|
3142
|
+
var utils_10 = utils.isEqual;
|
|
3143
|
+
var utils_11 = utils.isMediaStream;
|
|
3130
3144
|
|
|
3131
3145
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3132
3146
|
|
|
@@ -3135,7 +3149,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3135
3149
|
});
|
|
3136
3150
|
exports["default"] = void 0;
|
|
3137
3151
|
|
|
3138
|
-
var _react = _interopRequireWildcard(
|
|
3152
|
+
var _react = _interopRequireWildcard(React);
|
|
3139
3153
|
|
|
3140
3154
|
|
|
3141
3155
|
|
|
@@ -3545,7 +3559,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3545
3559
|
});
|
|
3546
3560
|
exports["default"] = createSinglePlayer;
|
|
3547
3561
|
|
|
3548
|
-
var _react = _interopRequireWildcard(
|
|
3562
|
+
var _react = _interopRequireWildcard(React);
|
|
3549
3563
|
|
|
3550
3564
|
|
|
3551
3565
|
|
|
@@ -3703,7 +3717,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3703
3717
|
});
|
|
3704
3718
|
exports["default"] = exports.YouTube = void 0;
|
|
3705
3719
|
|
|
3706
|
-
var _react = _interopRequireWildcard(
|
|
3720
|
+
var _react = _interopRequireWildcard(React);
|
|
3707
3721
|
|
|
3708
3722
|
|
|
3709
3723
|
|
|
@@ -4003,7 +4017,7 @@ exports["default"] = _default;
|
|
|
4003
4017
|
});
|
|
4004
4018
|
|
|
4005
4019
|
unwrapExports(YouTube_1);
|
|
4006
|
-
YouTube_1.YouTube;
|
|
4020
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4007
4021
|
|
|
4008
4022
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4009
4023
|
|
|
@@ -4012,7 +4026,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4012
4026
|
});
|
|
4013
4027
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4014
4028
|
|
|
4015
|
-
var _react = _interopRequireWildcard(
|
|
4029
|
+
var _react = _interopRequireWildcard(React);
|
|
4016
4030
|
|
|
4017
4031
|
|
|
4018
4032
|
|
|
@@ -4220,7 +4234,7 @@ exports["default"] = _default;
|
|
|
4220
4234
|
});
|
|
4221
4235
|
|
|
4222
4236
|
unwrapExports(SoundCloud_1);
|
|
4223
|
-
SoundCloud_1.SoundCloud;
|
|
4237
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4224
4238
|
|
|
4225
4239
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4226
4240
|
|
|
@@ -4229,7 +4243,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4229
4243
|
});
|
|
4230
4244
|
exports["default"] = exports.Vimeo = void 0;
|
|
4231
4245
|
|
|
4232
|
-
var _react = _interopRequireWildcard(
|
|
4246
|
+
var _react = _interopRequireWildcard(React);
|
|
4233
4247
|
|
|
4234
4248
|
|
|
4235
4249
|
|
|
@@ -4476,7 +4490,7 @@ exports["default"] = _default;
|
|
|
4476
4490
|
});
|
|
4477
4491
|
|
|
4478
4492
|
unwrapExports(Vimeo_1);
|
|
4479
|
-
Vimeo_1.Vimeo;
|
|
4493
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4480
4494
|
|
|
4481
4495
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4482
4496
|
|
|
@@ -4485,7 +4499,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4485
4499
|
});
|
|
4486
4500
|
exports["default"] = exports.Facebook = void 0;
|
|
4487
4501
|
|
|
4488
|
-
var _react = _interopRequireWildcard(
|
|
4502
|
+
var _react = _interopRequireWildcard(React);
|
|
4489
4503
|
|
|
4490
4504
|
|
|
4491
4505
|
|
|
@@ -4688,7 +4702,7 @@ exports["default"] = _default;
|
|
|
4688
4702
|
});
|
|
4689
4703
|
|
|
4690
4704
|
unwrapExports(Facebook_1);
|
|
4691
|
-
Facebook_1.Facebook;
|
|
4705
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4692
4706
|
|
|
4693
4707
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4694
4708
|
|
|
@@ -4697,7 +4711,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4697
4711
|
});
|
|
4698
4712
|
exports["default"] = exports.Streamable = void 0;
|
|
4699
4713
|
|
|
4700
|
-
var _react = _interopRequireWildcard(
|
|
4714
|
+
var _react = _interopRequireWildcard(React);
|
|
4701
4715
|
|
|
4702
4716
|
|
|
4703
4717
|
|
|
@@ -4899,7 +4913,7 @@ exports["default"] = _default;
|
|
|
4899
4913
|
});
|
|
4900
4914
|
|
|
4901
4915
|
unwrapExports(Streamable_1);
|
|
4902
|
-
Streamable_1.Streamable;
|
|
4916
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4903
4917
|
|
|
4904
4918
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4905
4919
|
|
|
@@ -4908,7 +4922,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4908
4922
|
});
|
|
4909
4923
|
exports["default"] = exports.Wistia = void 0;
|
|
4910
4924
|
|
|
4911
|
-
var _react = _interopRequireWildcard(
|
|
4925
|
+
var _react = _interopRequireWildcard(React);
|
|
4912
4926
|
|
|
4913
4927
|
|
|
4914
4928
|
|
|
@@ -5142,7 +5156,7 @@ exports["default"] = _default;
|
|
|
5142
5156
|
});
|
|
5143
5157
|
|
|
5144
5158
|
unwrapExports(Wistia_1);
|
|
5145
|
-
Wistia_1.Wistia;
|
|
5159
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5146
5160
|
|
|
5147
5161
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5148
5162
|
|
|
@@ -5151,7 +5165,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5151
5165
|
});
|
|
5152
5166
|
exports["default"] = exports.Twitch = void 0;
|
|
5153
5167
|
|
|
5154
|
-
var _react = _interopRequireWildcard(
|
|
5168
|
+
var _react = _interopRequireWildcard(React);
|
|
5155
5169
|
|
|
5156
5170
|
|
|
5157
5171
|
|
|
@@ -5358,7 +5372,7 @@ exports["default"] = _default;
|
|
|
5358
5372
|
});
|
|
5359
5373
|
|
|
5360
5374
|
unwrapExports(Twitch_1);
|
|
5361
|
-
Twitch_1.Twitch;
|
|
5375
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5362
5376
|
|
|
5363
5377
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5364
5378
|
|
|
@@ -5367,7 +5381,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5367
5381
|
});
|
|
5368
5382
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5369
5383
|
|
|
5370
|
-
var _react = _interopRequireWildcard(
|
|
5384
|
+
var _react = _interopRequireWildcard(React);
|
|
5371
5385
|
|
|
5372
5386
|
|
|
5373
5387
|
|
|
@@ -5594,7 +5608,7 @@ exports["default"] = _default;
|
|
|
5594
5608
|
});
|
|
5595
5609
|
|
|
5596
5610
|
unwrapExports(DailyMotion_1);
|
|
5597
|
-
DailyMotion_1.DailyMotion;
|
|
5611
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5598
5612
|
|
|
5599
5613
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5600
5614
|
|
|
@@ -5603,7 +5617,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5603
5617
|
});
|
|
5604
5618
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5605
5619
|
|
|
5606
|
-
var _react = _interopRequireWildcard(
|
|
5620
|
+
var _react = _interopRequireWildcard(React);
|
|
5607
5621
|
|
|
5608
5622
|
|
|
5609
5623
|
|
|
@@ -5793,7 +5807,7 @@ exports["default"] = _default;
|
|
|
5793
5807
|
});
|
|
5794
5808
|
|
|
5795
5809
|
unwrapExports(Mixcloud_1);
|
|
5796
|
-
Mixcloud_1.Mixcloud;
|
|
5810
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5797
5811
|
|
|
5798
5812
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5799
5813
|
|
|
@@ -5802,7 +5816,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5802
5816
|
});
|
|
5803
5817
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5804
5818
|
|
|
5805
|
-
var _react = _interopRequireWildcard(
|
|
5819
|
+
var _react = _interopRequireWildcard(React);
|
|
5806
5820
|
|
|
5807
5821
|
|
|
5808
5822
|
|
|
@@ -6327,7 +6341,7 @@ exports["default"] = _default;
|
|
|
6327
6341
|
});
|
|
6328
6342
|
|
|
6329
6343
|
unwrapExports(FilePlayer_1);
|
|
6330
|
-
FilePlayer_1.FilePlayer;
|
|
6344
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6331
6345
|
|
|
6332
6346
|
var players = createCommonjsModule(function (module, exports) {
|
|
6333
6347
|
|
|
@@ -6369,7 +6383,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6369
6383
|
});
|
|
6370
6384
|
exports["default"] = void 0;
|
|
6371
6385
|
|
|
6372
|
-
var _react = _interopRequireWildcard(
|
|
6386
|
+
var _react = _interopRequireWildcard(React);
|
|
6373
6387
|
|
|
6374
6388
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6375
6389
|
|
|
@@ -6548,7 +6562,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6548
6562
|
});
|
|
6549
6563
|
exports["default"] = renderPreloadPlayers;
|
|
6550
6564
|
|
|
6551
|
-
var _react = _interopRequireDefault(
|
|
6565
|
+
var _react = _interopRequireDefault(React);
|
|
6552
6566
|
|
|
6553
6567
|
var _Player = _interopRequireDefault(Player_1);
|
|
6554
6568
|
|
|
@@ -6687,7 +6701,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6687
6701
|
});
|
|
6688
6702
|
exports["default"] = void 0;
|
|
6689
6703
|
|
|
6690
|
-
var _react = _interopRequireWildcard(
|
|
6704
|
+
var _react = _interopRequireWildcard(React);
|
|
6691
6705
|
|
|
6692
6706
|
|
|
6693
6707
|
|
|
@@ -7001,20 +7015,20 @@ var Audio = function Audio(_ref) {
|
|
|
7001
7015
|
var node = _ref.node;
|
|
7002
7016
|
|
|
7003
7017
|
if (node.uploadAudio) {
|
|
7004
|
-
return
|
|
7018
|
+
return React.createElement(
|
|
7005
7019
|
'div',
|
|
7006
7020
|
{ className: 'audio d-block text-center mb-3' },
|
|
7007
|
-
|
|
7021
|
+
React.createElement(
|
|
7008
7022
|
'audio',
|
|
7009
7023
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7010
|
-
|
|
7011
|
-
|
|
7024
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7025
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7012
7026
|
'Your browser does not support the audio element.'
|
|
7013
7027
|
),
|
|
7014
|
-
node.caption &&
|
|
7028
|
+
node.caption && React.createElement(
|
|
7015
7029
|
'p',
|
|
7016
7030
|
{ style: { fontSize: '.9rem' } },
|
|
7017
|
-
|
|
7031
|
+
React.createElement(
|
|
7018
7032
|
'em',
|
|
7019
7033
|
null,
|
|
7020
7034
|
node.caption
|
|
@@ -7024,15 +7038,15 @@ var Audio = function Audio(_ref) {
|
|
|
7024
7038
|
} else if (node.audioFilePth) {
|
|
7025
7039
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7026
7040
|
if (hostname === 'embeds.audioboom.com') {
|
|
7027
|
-
return
|
|
7041
|
+
return React.createElement(
|
|
7028
7042
|
'div',
|
|
7029
7043
|
null,
|
|
7030
|
-
|
|
7044
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7031
7045
|
' ',
|
|
7032
|
-
node.caption &&
|
|
7046
|
+
node.caption && React.createElement(
|
|
7033
7047
|
'p',
|
|
7034
7048
|
{ style: { fontSize: '.9rem' } },
|
|
7035
|
-
|
|
7049
|
+
React.createElement(
|
|
7036
7050
|
'em',
|
|
7037
7051
|
null,
|
|
7038
7052
|
node.caption
|
|
@@ -7040,14 +7054,14 @@ var Audio = function Audio(_ref) {
|
|
|
7040
7054
|
)
|
|
7041
7055
|
);
|
|
7042
7056
|
}
|
|
7043
|
-
return
|
|
7057
|
+
return React.createElement(
|
|
7044
7058
|
'div',
|
|
7045
7059
|
{ className: 'audio' },
|
|
7046
|
-
|
|
7047
|
-
node.caption &&
|
|
7060
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7061
|
+
node.caption && React.createElement(
|
|
7048
7062
|
'p',
|
|
7049
7063
|
{ style: { fontSize: '.9rem' } },
|
|
7050
|
-
|
|
7064
|
+
React.createElement(
|
|
7051
7065
|
'em',
|
|
7052
7066
|
null,
|
|
7053
7067
|
node.caption
|
|
@@ -7065,34 +7079,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7065
7079
|
var profileImage = arguments[6];
|
|
7066
7080
|
|
|
7067
7081
|
if (authorName && authorURL) {
|
|
7068
|
-
return
|
|
7082
|
+
return React.createElement(
|
|
7069
7083
|
'span',
|
|
7070
7084
|
null,
|
|
7071
|
-
|
|
7085
|
+
React.createElement(
|
|
7072
7086
|
'a',
|
|
7073
7087
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7074
7088
|
authorName
|
|
7075
7089
|
),
|
|
7076
|
-
|
|
7090
|
+
React.createElement(
|
|
7077
7091
|
Card,
|
|
7078
7092
|
{ className: 'author-details-card-' + index },
|
|
7079
|
-
|
|
7093
|
+
React.createElement(
|
|
7080
7094
|
Row,
|
|
7081
7095
|
null,
|
|
7082
|
-
profileImage &&
|
|
7096
|
+
profileImage && React.createElement(
|
|
7083
7097
|
Col,
|
|
7084
7098
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7085
|
-
|
|
7099
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7086
7100
|
),
|
|
7087
|
-
|
|
7101
|
+
React.createElement(
|
|
7088
7102
|
Col,
|
|
7089
7103
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7090
|
-
|
|
7104
|
+
React.createElement(
|
|
7091
7105
|
'div',
|
|
7092
7106
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7093
7107
|
authorName
|
|
7094
7108
|
),
|
|
7095
|
-
|
|
7109
|
+
React.createElement(
|
|
7096
7110
|
'p',
|
|
7097
7111
|
null,
|
|
7098
7112
|
biography
|
|
@@ -7100,7 +7114,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7100
7114
|
)
|
|
7101
7115
|
)
|
|
7102
7116
|
),
|
|
7103
|
-
|
|
7117
|
+
React.createElement(
|
|
7104
7118
|
'style',
|
|
7105
7119
|
{ jsx: 'true' },
|
|
7106
7120
|
'\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 +7122,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7108
7122
|
length !== index + 1 && ' , '
|
|
7109
7123
|
);
|
|
7110
7124
|
} else if (authorName) {
|
|
7111
|
-
return
|
|
7125
|
+
return React.createElement(
|
|
7112
7126
|
'span',
|
|
7113
7127
|
{ key: index },
|
|
7114
7128
|
authorName,
|
|
@@ -7263,8 +7277,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7263
7277
|
var duration = player.getDuration();
|
|
7264
7278
|
var queue = Math.floor(duration / 10);
|
|
7265
7279
|
var segment = Math.floor(current / queue);
|
|
7266
|
-
Beam.report_beam_video('Ready',
|
|
7267
|
-
Segment.report_video_event('Video Ready',
|
|
7280
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
7281
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
7268
7282
|
//autoplay
|
|
7269
7283
|
|
|
7270
7284
|
//Small pause before starting next video
|
|
@@ -7284,8 +7298,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7284
7298
|
var queue = Math.floor(duration / 10);
|
|
7285
7299
|
var segment = Math.floor(current / queue);
|
|
7286
7300
|
|
|
7287
|
-
Beam.report_beam_video('End',
|
|
7288
|
-
Segment.report_video_event('Video End',
|
|
7301
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
7302
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
7289
7303
|
setEndReported(true);
|
|
7290
7304
|
clearInterval(intervalID);
|
|
7291
7305
|
}
|
|
@@ -7335,8 +7349,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7335
7349
|
var queue = Math.floor(duration / 10);
|
|
7336
7350
|
var segment = Math.floor(current / queue);
|
|
7337
7351
|
if (!queueProgress.includes(segment)) {
|
|
7338
|
-
Beam.report_beam_video('Segment',
|
|
7339
|
-
Segment.report_video_event('Video Segment',
|
|
7352
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
7353
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
7340
7354
|
queueProgress.push(segment);
|
|
7341
7355
|
}
|
|
7342
7356
|
};
|
|
@@ -7349,8 +7363,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7349
7363
|
var queue = Math.floor(duration / 10);
|
|
7350
7364
|
var segment = Math.floor(current / queue);
|
|
7351
7365
|
|
|
7352
|
-
Beam.report_beam_video('Play',
|
|
7353
|
-
Segment.report_video_event('Video Play',
|
|
7366
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
7367
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
7354
7368
|
|
|
7355
7369
|
if (!playReported) {
|
|
7356
7370
|
setPlayReported(true);
|
|
@@ -7368,8 +7382,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7368
7382
|
var queue = Math.floor(duration / 10);
|
|
7369
7383
|
var segment = Math.floor(current / queue);
|
|
7370
7384
|
|
|
7371
|
-
Beam.report_beam_video('Pause',
|
|
7372
|
-
Segment.report_video_event('Video Pause',
|
|
7385
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
7386
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
7373
7387
|
};
|
|
7374
7388
|
|
|
7375
7389
|
// Youtube Options
|
|
@@ -7380,44 +7394,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7380
7394
|
}
|
|
7381
7395
|
};
|
|
7382
7396
|
|
|
7383
|
-
return
|
|
7397
|
+
return React.createElement(
|
|
7384
7398
|
'div',
|
|
7385
7399
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7386
|
-
|
|
7400
|
+
React.createElement(
|
|
7387
7401
|
'div',
|
|
7388
7402
|
{ className: 'mt-2 mb-5' },
|
|
7389
|
-
series &&
|
|
7403
|
+
series && React.createElement(
|
|
7390
7404
|
'div',
|
|
7391
7405
|
{ style: { fontSize: '0.9rem' } },
|
|
7392
7406
|
article.title,
|
|
7393
7407
|
' - Episode ',
|
|
7394
7408
|
series
|
|
7395
7409
|
),
|
|
7396
|
-
Videos[series - 1] &&
|
|
7410
|
+
Videos[series - 1] && React.createElement(
|
|
7397
7411
|
'h1',
|
|
7398
7412
|
{ className: 'mb-3' },
|
|
7399
7413
|
Videos[series - 1].title
|
|
7400
7414
|
),
|
|
7401
|
-
|
|
7415
|
+
React.createElement(
|
|
7402
7416
|
'div',
|
|
7403
7417
|
null,
|
|
7404
7418
|
moment(article.published).format('LL')
|
|
7405
7419
|
),
|
|
7406
|
-
|
|
7420
|
+
React.createElement(
|
|
7407
7421
|
'div',
|
|
7408
7422
|
{ className: 'mb-3' },
|
|
7409
7423
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7410
|
-
return
|
|
7424
|
+
return React.createElement(
|
|
7411
7425
|
'span',
|
|
7412
7426
|
{ key: index },
|
|
7413
7427
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7414
7428
|
);
|
|
7415
7429
|
})
|
|
7416
7430
|
),
|
|
7417
|
-
|
|
7431
|
+
React.createElement(
|
|
7418
7432
|
'p',
|
|
7419
7433
|
null,
|
|
7420
|
-
|
|
7434
|
+
React.createElement(SocialShare, {
|
|
7421
7435
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7422
7436
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7423
7437
|
shareVia: meta.shareVia,
|
|
@@ -7432,20 +7446,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7432
7446
|
hideFacebook: meta.hideFBShare
|
|
7433
7447
|
})
|
|
7434
7448
|
),
|
|
7435
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7449
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7436
7450
|
'p',
|
|
7437
7451
|
{ className: 'mb-3' },
|
|
7438
|
-
|
|
7452
|
+
React.createElement(
|
|
7439
7453
|
'em',
|
|
7440
7454
|
null,
|
|
7441
7455
|
Videos[series - 1].intro
|
|
7442
7456
|
)
|
|
7443
7457
|
)
|
|
7444
7458
|
),
|
|
7445
|
-
|
|
7459
|
+
React.createElement(
|
|
7446
7460
|
'div',
|
|
7447
7461
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7448
|
-
vidUrl && vidType == 'youtube' &&
|
|
7462
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7449
7463
|
className: 'fluid-iframe',
|
|
7450
7464
|
videoId: getYoutubeId(vidUrl),
|
|
7451
7465
|
opts: opts,
|
|
@@ -7456,10 +7470,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7456
7470
|
return handleOnEnd(e);
|
|
7457
7471
|
}
|
|
7458
7472
|
}),
|
|
7459
|
-
vidUrl && vidType == 'mp4' &&
|
|
7460
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7461
|
-
|
|
7462
|
-
series &&
|
|
7473
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7474
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7475
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7476
|
+
series && React.createElement(
|
|
7463
7477
|
'div',
|
|
7464
7478
|
{
|
|
7465
7479
|
className: 'vid-series',
|
|
@@ -7469,10 +7483,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7469
7483
|
maxHeight: '100%',
|
|
7470
7484
|
paddingBottom: '0'
|
|
7471
7485
|
} },
|
|
7472
|
-
|
|
7486
|
+
React.createElement(
|
|
7473
7487
|
'p',
|
|
7474
7488
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7475
|
-
|
|
7489
|
+
React.createElement(
|
|
7476
7490
|
'b',
|
|
7477
7491
|
{ style: { fontSize: '1.25em' } },
|
|
7478
7492
|
'Now Playing:'
|
|
@@ -7480,16 +7494,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7480
7494
|
' ',
|
|
7481
7495
|
seriesData[series ? series - 1 : 0].title
|
|
7482
7496
|
),
|
|
7483
|
-
vidUrl &&
|
|
7497
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7484
7498
|
)
|
|
7485
7499
|
),
|
|
7486
|
-
|
|
7487
|
-
|
|
7500
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7501
|
+
React.createElement(
|
|
7488
7502
|
'div',
|
|
7489
7503
|
{ className: 'vid-text' },
|
|
7490
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7504
|
+
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
7505
|
),
|
|
7492
|
-
|
|
7506
|
+
React.createElement(
|
|
7493
7507
|
'style',
|
|
7494
7508
|
{ jsx: 'true' },
|
|
7495
7509
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7497,14 +7511,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7497
7511
|
);
|
|
7498
7512
|
};
|
|
7499
7513
|
|
|
7500
|
-
var Poll
|
|
7501
|
-
var node = _ref.node
|
|
7502
|
-
_ref.client
|
|
7503
|
-
_ref.pageview
|
|
7504
|
-
_ref.videoAccountIDs
|
|
7505
|
-
|
|
7506
|
-
_ref.showVotes
|
|
7507
|
-
|
|
7514
|
+
var Poll = function Poll(_ref) {
|
|
7515
|
+
var node = _ref.node,
|
|
7516
|
+
client = _ref.client,
|
|
7517
|
+
pageview = _ref.pageview,
|
|
7518
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7519
|
+
onVote = _ref.onVote,
|
|
7520
|
+
_ref$showVotes = _ref.showVotes,
|
|
7521
|
+
getSerializers = _ref.getSerializers;
|
|
7508
7522
|
|
|
7509
7523
|
var _useState = useState(null),
|
|
7510
7524
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7542,67 +7556,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7542
7556
|
return acc;
|
|
7543
7557
|
}
|
|
7544
7558
|
}, 0);
|
|
7545
|
-
return
|
|
7546
|
-
|
|
7559
|
+
return React.createElement(
|
|
7560
|
+
React.Fragment,
|
|
7547
7561
|
null,
|
|
7548
|
-
question &&
|
|
7562
|
+
question && React.createElement(
|
|
7549
7563
|
'p',
|
|
7550
7564
|
{ className: 'font-weight-bold' },
|
|
7551
7565
|
question
|
|
7552
7566
|
),
|
|
7553
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7567
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7554
7568
|
'form',
|
|
7555
7569
|
{ onSubmit: function onSubmit(e) {
|
|
7556
7570
|
return onSubmitPoll(e);
|
|
7557
7571
|
} },
|
|
7558
7572
|
choices && choices.map(function (choice) {
|
|
7559
|
-
return
|
|
7573
|
+
return React.createElement(
|
|
7560
7574
|
'div',
|
|
7561
7575
|
{ key: choice._key },
|
|
7562
|
-
|
|
7576
|
+
React.createElement(
|
|
7563
7577
|
'label',
|
|
7564
7578
|
{ className: 'pl-2' },
|
|
7565
|
-
|
|
7579
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7566
7580
|
return setSelectedChoice(e.target.value);
|
|
7567
7581
|
} }),
|
|
7568
7582
|
' ' + choice.choiceText
|
|
7569
7583
|
)
|
|
7570
7584
|
);
|
|
7571
7585
|
}),
|
|
7572
|
-
|
|
7586
|
+
React.createElement(
|
|
7573
7587
|
Button,
|
|
7574
7588
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7575
7589
|
'Vote'
|
|
7576
7590
|
)
|
|
7577
7591
|
),
|
|
7578
|
-
|
|
7592
|
+
React.createElement(
|
|
7579
7593
|
'div',
|
|
7580
7594
|
{ className: 'progress-container' },
|
|
7581
7595
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7582
7596
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7583
|
-
return
|
|
7597
|
+
return React.createElement(
|
|
7584
7598
|
'div',
|
|
7585
7599
|
{ key: choice._key, className: 'mb-3' },
|
|
7586
|
-
|
|
7600
|
+
React.createElement(
|
|
7587
7601
|
'div',
|
|
7588
7602
|
{ className: 'correct-answer' },
|
|
7589
|
-
|
|
7603
|
+
React.createElement(
|
|
7590
7604
|
'div',
|
|
7591
7605
|
null,
|
|
7592
7606
|
choice.choiceText
|
|
7593
7607
|
),
|
|
7594
|
-
choice.choiceAnswer === true &&
|
|
7608
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7595
7609
|
'div',
|
|
7596
7610
|
null,
|
|
7597
|
-
|
|
7611
|
+
React.createElement(
|
|
7598
7612
|
'span',
|
|
7599
7613
|
{ style: { color: 'limegreen' } },
|
|
7600
7614
|
'Correct!'
|
|
7601
7615
|
)
|
|
7602
7616
|
)
|
|
7603
7617
|
),
|
|
7604
|
-
|
|
7605
|
-
|
|
7618
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7619
|
+
React.createElement(
|
|
7606
7620
|
'span',
|
|
7607
7621
|
{ className: 'float-right' },
|
|
7608
7622
|
percentage,
|
|
@@ -7613,14 +7627,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7613
7627
|
);
|
|
7614
7628
|
})
|
|
7615
7629
|
),
|
|
7616
|
-
showAnswer &&
|
|
7630
|
+
showAnswer && React.createElement(
|
|
7617
7631
|
'h4',
|
|
7618
7632
|
{ className: 'text-center small p-3' },
|
|
7619
7633
|
'Total Votes: ',
|
|
7620
7634
|
choicesTotalCount
|
|
7621
7635
|
),
|
|
7622
|
-
showAnswer && response &&
|
|
7623
|
-
|
|
7636
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7637
|
+
React.createElement(
|
|
7624
7638
|
'style',
|
|
7625
7639
|
{ jsx: 'true' },
|
|
7626
7640
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7638,22 +7652,22 @@ _export(_export.S, 'Object', {
|
|
|
7638
7652
|
}
|
|
7639
7653
|
});
|
|
7640
7654
|
|
|
7641
|
-
var values
|
|
7655
|
+
var values = _core.Object.values;
|
|
7642
7656
|
|
|
7643
|
-
var values = createCommonjsModule(function (module) {
|
|
7644
|
-
module.exports = { "default": values
|
|
7657
|
+
var values$1 = createCommonjsModule(function (module) {
|
|
7658
|
+
module.exports = { "default": values, __esModule: true };
|
|
7645
7659
|
});
|
|
7646
7660
|
|
|
7647
|
-
var _Object$values = unwrapExports(values);
|
|
7661
|
+
var _Object$values = unwrapExports(values$1);
|
|
7648
7662
|
|
|
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
|
-
|
|
7663
|
+
var Poll$1 = function Poll(_ref) {
|
|
7664
|
+
var node = _ref.node,
|
|
7665
|
+
client = _ref.client,
|
|
7666
|
+
pageview = _ref.pageview,
|
|
7667
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7668
|
+
onVote = _ref.onVote,
|
|
7669
|
+
_ref$showVotes = _ref.showVotes,
|
|
7670
|
+
getSerializers = _ref.getSerializers;
|
|
7657
7671
|
|
|
7658
7672
|
var _useState = useState(null),
|
|
7659
7673
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7719,67 +7733,67 @@ var Poll = function Poll(_ref) {
|
|
|
7719
7733
|
return acc;
|
|
7720
7734
|
}
|
|
7721
7735
|
}, 0);
|
|
7722
|
-
return
|
|
7723
|
-
|
|
7736
|
+
return React.createElement(
|
|
7737
|
+
React.Fragment,
|
|
7724
7738
|
null,
|
|
7725
|
-
question &&
|
|
7739
|
+
question && React.createElement(
|
|
7726
7740
|
'p',
|
|
7727
7741
|
{ className: 'font-weight-bold' },
|
|
7728
7742
|
question
|
|
7729
7743
|
),
|
|
7730
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7744
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7731
7745
|
'form',
|
|
7732
7746
|
{ onSubmit: function onSubmit(e) {
|
|
7733
7747
|
return onSubmitPoll(e);
|
|
7734
7748
|
} },
|
|
7735
7749
|
choices && choices.map(function (choice) {
|
|
7736
|
-
return
|
|
7750
|
+
return React.createElement(
|
|
7737
7751
|
'div',
|
|
7738
7752
|
{ key: choice._key },
|
|
7739
|
-
|
|
7753
|
+
React.createElement(
|
|
7740
7754
|
'label',
|
|
7741
7755
|
{ className: 'pl-2' },
|
|
7742
|
-
|
|
7756
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7743
7757
|
return setSelectedChoice(e.target.value);
|
|
7744
7758
|
} }),
|
|
7745
7759
|
' ' + choice.choiceText
|
|
7746
7760
|
)
|
|
7747
7761
|
);
|
|
7748
7762
|
}),
|
|
7749
|
-
|
|
7763
|
+
React.createElement(
|
|
7750
7764
|
Button,
|
|
7751
7765
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7752
7766
|
'Vote'
|
|
7753
7767
|
)
|
|
7754
7768
|
),
|
|
7755
|
-
|
|
7769
|
+
React.createElement(
|
|
7756
7770
|
'div',
|
|
7757
7771
|
{ className: 'progress-container' },
|
|
7758
7772
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7759
7773
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7760
|
-
return
|
|
7774
|
+
return React.createElement(
|
|
7761
7775
|
'div',
|
|
7762
7776
|
{ key: choice._key, className: 'mb-3' },
|
|
7763
|
-
|
|
7777
|
+
React.createElement(
|
|
7764
7778
|
'div',
|
|
7765
7779
|
{ className: 'correct-answer' },
|
|
7766
|
-
|
|
7780
|
+
React.createElement(
|
|
7767
7781
|
'div',
|
|
7768
7782
|
null,
|
|
7769
7783
|
choice.choiceText
|
|
7770
7784
|
),
|
|
7771
|
-
choice.choiceAnswer === true &&
|
|
7785
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7772
7786
|
'div',
|
|
7773
7787
|
null,
|
|
7774
|
-
|
|
7788
|
+
React.createElement(
|
|
7775
7789
|
'span',
|
|
7776
7790
|
{ style: { color: 'limegreen' } },
|
|
7777
7791
|
'Correct!'
|
|
7778
7792
|
)
|
|
7779
7793
|
)
|
|
7780
7794
|
),
|
|
7781
|
-
|
|
7782
|
-
|
|
7795
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7796
|
+
React.createElement(
|
|
7783
7797
|
'span',
|
|
7784
7798
|
{ className: 'float-right' },
|
|
7785
7799
|
percentage,
|
|
@@ -7790,14 +7804,14 @@ var Poll = function Poll(_ref) {
|
|
|
7790
7804
|
);
|
|
7791
7805
|
})
|
|
7792
7806
|
),
|
|
7793
|
-
showAnswer &&
|
|
7807
|
+
showAnswer && React.createElement(
|
|
7794
7808
|
'h4',
|
|
7795
7809
|
{ className: 'text-center small p-3' },
|
|
7796
7810
|
'Total Votes: ',
|
|
7797
7811
|
choicesTotalCount
|
|
7798
7812
|
),
|
|
7799
|
-
showAnswer && response &&
|
|
7800
|
-
|
|
7813
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7814
|
+
React.createElement(
|
|
7801
7815
|
'style',
|
|
7802
7816
|
{ jsx: 'true' },
|
|
7803
7817
|
'\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 +7819,7 @@ var Poll = function Poll(_ref) {
|
|
|
7805
7819
|
);
|
|
7806
7820
|
};
|
|
7807
7821
|
|
|
7808
|
-
var numberOfPaginations =
|
|
7822
|
+
var numberOfPaginations = main_38 ? 4 : 10;
|
|
7809
7823
|
|
|
7810
7824
|
var Quiz = function Quiz(_ref) {
|
|
7811
7825
|
var quizzes = _ref.quizzes,
|
|
@@ -7923,20 +7937,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7923
7937
|
};
|
|
7924
7938
|
|
|
7925
7939
|
var renderPagination = function renderPagination() {
|
|
7926
|
-
return
|
|
7940
|
+
return React.createElement(
|
|
7927
7941
|
Pagination,
|
|
7928
|
-
{ className: 'p-0 m-0', size:
|
|
7929
|
-
|
|
7942
|
+
{ className: 'p-0 m-0', size: main_38 && 'sm' },
|
|
7943
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7930
7944
|
return changePage('first');
|
|
7931
7945
|
}, disabled: currentPage === 1 }),
|
|
7932
|
-
|
|
7946
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7933
7947
|
return changePage('prev');
|
|
7934
7948
|
}, disabled: currentPage === 1 }),
|
|
7935
|
-
|
|
7949
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7936
7950
|
return renderNewPages('prev');
|
|
7937
7951
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7938
7952
|
pages.map(function (page) {
|
|
7939
|
-
return
|
|
7953
|
+
return React.createElement(
|
|
7940
7954
|
Pagination.Item,
|
|
7941
7955
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7942
7956
|
return changePage(page);
|
|
@@ -7944,13 +7958,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
7944
7958
|
page
|
|
7945
7959
|
);
|
|
7946
7960
|
}),
|
|
7947
|
-
|
|
7961
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7948
7962
|
return renderNewPages('next');
|
|
7949
7963
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7950
|
-
|
|
7964
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7951
7965
|
return changePage('next');
|
|
7952
7966
|
}, disabled: currentPage === pageCount }),
|
|
7953
|
-
|
|
7967
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7954
7968
|
return changePage('last');
|
|
7955
7969
|
}, disabled: currentPage === pageCount })
|
|
7956
7970
|
);
|
|
@@ -8033,51 +8047,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8033
8047
|
}
|
|
8034
8048
|
};
|
|
8035
8049
|
|
|
8036
|
-
return
|
|
8037
|
-
|
|
8050
|
+
return React.createElement(
|
|
8051
|
+
React.Fragment,
|
|
8038
8052
|
null,
|
|
8039
|
-
quizzes[currentPage - 1] &&
|
|
8040
|
-
|
|
8053
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8054
|
+
React.Fragment,
|
|
8041
8055
|
null,
|
|
8042
|
-
|
|
8043
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8056
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8057
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8044
8058
|
'form',
|
|
8045
8059
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8046
8060
|
return e.preventDefault();
|
|
8047
8061
|
} },
|
|
8048
8062
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8049
|
-
return
|
|
8063
|
+
return React.createElement(
|
|
8050
8064
|
'div',
|
|
8051
8065
|
{ key: answer._key },
|
|
8052
|
-
|
|
8066
|
+
React.createElement(
|
|
8053
8067
|
'label',
|
|
8054
8068
|
{ className: 'pl-2' },
|
|
8055
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8069
|
+
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
8070
|
' ' + answer.answerText
|
|
8057
8071
|
)
|
|
8058
8072
|
);
|
|
8059
8073
|
})
|
|
8060
8074
|
)
|
|
8061
8075
|
),
|
|
8062
|
-
!showAnswer &&
|
|
8076
|
+
!showAnswer && React.createElement(
|
|
8063
8077
|
Button$1,
|
|
8064
8078
|
{ onClick: function onClick() {
|
|
8065
8079
|
return checkAnswers();
|
|
8066
8080
|
}, variant: 'info', block: true },
|
|
8067
8081
|
'Please click here for answer'
|
|
8068
8082
|
),
|
|
8069
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8070
|
-
|
|
8083
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8084
|
+
React.Fragment,
|
|
8071
8085
|
null,
|
|
8072
|
-
|
|
8086
|
+
React.createElement(
|
|
8073
8087
|
'h4',
|
|
8074
8088
|
null,
|
|
8075
8089
|
'Answer:'
|
|
8076
8090
|
),
|
|
8077
|
-
quizzes[currentPage - 1].answer &&
|
|
8091
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8078
8092
|
),
|
|
8079
|
-
|
|
8080
|
-
pageCount > 1 &&
|
|
8093
|
+
React.createElement('br', null),
|
|
8094
|
+
pageCount > 1 && React.createElement(
|
|
8081
8095
|
'div',
|
|
8082
8096
|
{ className: 'd-flex justify-content-center' },
|
|
8083
8097
|
renderPagination()
|
|
@@ -8088,14 +8102,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
8088
8102
|
var Leads = function Leads(_ref) {
|
|
8089
8103
|
var url = _ref.url;
|
|
8090
8104
|
|
|
8091
|
-
return
|
|
8105
|
+
return React.createElement(
|
|
8092
8106
|
'div',
|
|
8093
8107
|
{ className: 'd-block text-center mb-3' },
|
|
8094
|
-
url &&
|
|
8108
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8095
8109
|
);
|
|
8096
8110
|
};
|
|
8097
8111
|
|
|
8098
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8112
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8099
8113
|
var slides = _ref.node.slides,
|
|
8100
8114
|
client = _ref.client,
|
|
8101
8115
|
pageview = _ref.pageview,
|
|
@@ -8107,8 +8121,8 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8107
8121
|
|
|
8108
8122
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8109
8123
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8110
|
-
carouselIndex = _useState2[0]
|
|
8111
|
-
_useState2[1];
|
|
8124
|
+
carouselIndex = _useState2[0],
|
|
8125
|
+
setCarouselIndex = _useState2[1];
|
|
8112
8126
|
|
|
8113
8127
|
// useEffect(() => {
|
|
8114
8128
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8134,42 +8148,49 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8134
8148
|
}
|
|
8135
8149
|
};
|
|
8136
8150
|
|
|
8137
|
-
return
|
|
8151
|
+
return React.createElement(
|
|
8138
8152
|
'div',
|
|
8139
8153
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8140
|
-
|
|
8154
|
+
React.createElement(
|
|
8141
8155
|
Carousel,
|
|
8142
8156
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8143
8157
|
slides && slides.map(function (slide) {
|
|
8144
8158
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8145
|
-
return
|
|
8159
|
+
return React.createElement(
|
|
8146
8160
|
Carousel.Item,
|
|
8147
8161
|
{ key: slide._key },
|
|
8148
|
-
|
|
8162
|
+
React.createElement(
|
|
8149
8163
|
'a',
|
|
8150
8164
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8151
|
-
|
|
8165
|
+
React.createElement(
|
|
8152
8166
|
LazyLoad,
|
|
8153
8167
|
null,
|
|
8154
|
-
|
|
8168
|
+
React.createElement(
|
|
8169
|
+
'picture',
|
|
8170
|
+
null,
|
|
8171
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8172
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8173
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8174
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8175
|
+
)
|
|
8155
8176
|
)
|
|
8156
8177
|
),
|
|
8157
|
-
|
|
8178
|
+
React.createElement(
|
|
8158
8179
|
'div',
|
|
8159
8180
|
{ className: 'p-2' },
|
|
8160
|
-
slide.slideshowImage.caption &&
|
|
8181
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8161
8182
|
'h3',
|
|
8162
8183
|
{ style: { padding: '0px' } },
|
|
8163
8184
|
slide.slideshowImage.caption
|
|
8164
8185
|
),
|
|
8165
|
-
slide.description &&
|
|
8186
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8166
8187
|
)
|
|
8167
8188
|
);
|
|
8168
8189
|
}
|
|
8169
8190
|
return null;
|
|
8170
8191
|
})
|
|
8171
8192
|
),
|
|
8172
|
-
|
|
8193
|
+
React.createElement(
|
|
8173
8194
|
'style',
|
|
8174
8195
|
{ jsx: 'true' },
|
|
8175
8196
|
'\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 +8209,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8188
8209
|
sizes = _props$node.sizes,
|
|
8189
8210
|
sizeMapping = _props$node.sizeMapping;
|
|
8190
8211
|
|
|
8191
|
-
return
|
|
8212
|
+
return React.createElement(
|
|
8192
8213
|
'div',
|
|
8193
8214
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8194
|
-
|
|
8215
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8195
8216
|
);
|
|
8196
8217
|
};
|
|
8197
8218
|
|
|
@@ -8202,15 +8223,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8202
8223
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8203
8224
|
|
|
8204
8225
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8205
|
-
return
|
|
8226
|
+
return React.createElement(
|
|
8206
8227
|
'section',
|
|
8207
8228
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8208
|
-
Caption &&
|
|
8229
|
+
Caption && React.createElement(
|
|
8209
8230
|
'h4',
|
|
8210
8231
|
{ className: 'formstack-caption' },
|
|
8211
8232
|
Caption
|
|
8212
8233
|
),
|
|
8213
|
-
|
|
8234
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8214
8235
|
);
|
|
8215
8236
|
};
|
|
8216
8237
|
|
|
@@ -8226,29 +8247,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8226
8247
|
}
|
|
8227
8248
|
});
|
|
8228
8249
|
if (medias && medias.length > 0) {
|
|
8229
|
-
return
|
|
8250
|
+
return React.createElement(
|
|
8230
8251
|
'div',
|
|
8231
8252
|
{ className: 'multi-media-container' },
|
|
8232
|
-
|
|
8253
|
+
React.createElement(
|
|
8233
8254
|
Row$1,
|
|
8234
8255
|
{ noGutters: true },
|
|
8235
8256
|
medias.map(function (media) {
|
|
8236
|
-
return
|
|
8257
|
+
return React.createElement(
|
|
8237
8258
|
Col$1,
|
|
8238
8259
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8239
|
-
|
|
8260
|
+
React.createElement(
|
|
8240
8261
|
'a',
|
|
8241
8262
|
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8242
8263
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8243
|
-
|
|
8264
|
+
React.createElement(
|
|
8244
8265
|
'div',
|
|
8245
8266
|
{ className: 'multi-media-image-container' },
|
|
8246
|
-
imageBox &&
|
|
8267
|
+
imageBox && React.createElement(
|
|
8247
8268
|
LazyLoad,
|
|
8248
8269
|
{ once: true },
|
|
8249
|
-
|
|
8270
|
+
React.createElement(
|
|
8271
|
+
'picture',
|
|
8272
|
+
null,
|
|
8273
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8274
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8275
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8276
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8277
|
+
)
|
|
8250
8278
|
),
|
|
8251
|
-
media.caption &&
|
|
8279
|
+
media.caption && React.createElement(
|
|
8252
8280
|
'span',
|
|
8253
8281
|
{ className: 'multi-media-caption' },
|
|
8254
8282
|
media.caption
|
|
@@ -8258,7 +8286,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8258
8286
|
);
|
|
8259
8287
|
})
|
|
8260
8288
|
),
|
|
8261
|
-
|
|
8289
|
+
React.createElement(
|
|
8262
8290
|
'style',
|
|
8263
8291
|
{ jsx: 'true' },
|
|
8264
8292
|
'\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 +8333,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8305
8333
|
}
|
|
8306
8334
|
};
|
|
8307
8335
|
|
|
8308
|
-
_this.wraperRef =
|
|
8336
|
+
_this.wraperRef = React.createRef();
|
|
8309
8337
|
_this.visible = false;
|
|
8310
8338
|
return _this;
|
|
8311
8339
|
}
|
|
@@ -8333,7 +8361,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8333
8361
|
_props$id = _props.id,
|
|
8334
8362
|
id = _props$id === undefined ? '' : _props$id;
|
|
8335
8363
|
|
|
8336
|
-
return
|
|
8364
|
+
return React.createElement(
|
|
8337
8365
|
'div',
|
|
8338
8366
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8339
8367
|
this.props.children
|
|
@@ -8342,7 +8370,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8342
8370
|
}]);
|
|
8343
8371
|
|
|
8344
8372
|
return InscreenSensor;
|
|
8345
|
-
}(
|
|
8373
|
+
}(React.Component);
|
|
8346
8374
|
|
|
8347
8375
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8348
8376
|
var nodes = _ref.nodes,
|
|
@@ -8451,33 +8479,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8451
8479
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8452
8480
|
var showReading = show ? 'showReading' : '';
|
|
8453
8481
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8454
|
-
return
|
|
8482
|
+
return React.createElement(
|
|
8455
8483
|
'div',
|
|
8456
8484
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8457
|
-
|
|
8485
|
+
React.createElement(
|
|
8458
8486
|
'a',
|
|
8459
8487
|
{ onClick: function onClick(e) {
|
|
8460
8488
|
return articleCardClickHandler(e);
|
|
8461
8489
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8462
|
-
|
|
8490
|
+
React.createElement(
|
|
8463
8491
|
'div',
|
|
8464
8492
|
{ className: 'prevNext-thumbnail' },
|
|
8465
|
-
|
|
8466
|
-
|
|
8493
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8494
|
+
React.createElement(
|
|
8467
8495
|
'div',
|
|
8468
8496
|
{ className: 'prevNext-reading ' + showReading },
|
|
8469
8497
|
articleLabel
|
|
8470
8498
|
)
|
|
8471
8499
|
),
|
|
8472
|
-
|
|
8500
|
+
React.createElement(
|
|
8473
8501
|
'div',
|
|
8474
8502
|
{ className: 'prevNext-summary' },
|
|
8475
|
-
|
|
8503
|
+
React.createElement(
|
|
8476
8504
|
'div',
|
|
8477
8505
|
{ className: 'prevNext-publishDate' },
|
|
8478
8506
|
moment(article.published).format('LL')
|
|
8479
8507
|
),
|
|
8480
|
-
|
|
8508
|
+
React.createElement(
|
|
8481
8509
|
'h2',
|
|
8482
8510
|
{ className: 'prevNext-title' },
|
|
8483
8511
|
article.title
|
|
@@ -8526,7 +8554,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8526
8554
|
|
|
8527
8555
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8528
8556
|
if (biography) {
|
|
8529
|
-
return
|
|
8557
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8530
8558
|
}
|
|
8531
8559
|
};
|
|
8532
8560
|
|
|
@@ -8612,7 +8640,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8612
8640
|
//console.log('useLayoutEffect')
|
|
8613
8641
|
if (!firstLoad) {
|
|
8614
8642
|
setUpArrowClicked(false);
|
|
8615
|
-
if (
|
|
8643
|
+
if (main_39) {
|
|
8616
8644
|
grabLoadedAds();
|
|
8617
8645
|
} else {
|
|
8618
8646
|
scrollToArticle();
|
|
@@ -8636,7 +8664,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8636
8664
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8637
8665
|
if (pageview) pageview(path);
|
|
8638
8666
|
|
|
8639
|
-
if (!
|
|
8667
|
+
if (!main_39) {
|
|
8640
8668
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8641
8669
|
if (window.googletag && googletag.pubadsReady) {
|
|
8642
8670
|
lib_3.refresh();
|
|
@@ -8644,7 +8672,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8644
8672
|
});
|
|
8645
8673
|
}
|
|
8646
8674
|
//Refresh leaderboard ad on mobile
|
|
8647
|
-
if (
|
|
8675
|
+
if (main_39) {
|
|
8648
8676
|
var leaderboardSlotId = '';
|
|
8649
8677
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8650
8678
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8684,38 +8712,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8684
8712
|
setSensorVisible(false);
|
|
8685
8713
|
};
|
|
8686
8714
|
|
|
8687
|
-
return
|
|
8688
|
-
|
|
8715
|
+
return React.createElement(
|
|
8716
|
+
React.Fragment,
|
|
8689
8717
|
null,
|
|
8690
|
-
|
|
8718
|
+
React.createElement(
|
|
8691
8719
|
'div',
|
|
8692
8720
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8693
|
-
|
|
8721
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8694
8722
|
return handleArrowClick();
|
|
8695
8723
|
} })
|
|
8696
8724
|
),
|
|
8697
|
-
|
|
8698
|
-
|
|
8725
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8726
|
+
React.createElement(
|
|
8699
8727
|
'div',
|
|
8700
8728
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8701
|
-
|
|
8729
|
+
React.createElement(
|
|
8702
8730
|
'h5',
|
|
8703
8731
|
{ className: 'objective-title' },
|
|
8704
8732
|
nodes.seriesTitle
|
|
8705
8733
|
),
|
|
8706
|
-
|
|
8734
|
+
React.createElement(
|
|
8707
8735
|
'div',
|
|
8708
8736
|
{ className: 'prevNextWrapper' },
|
|
8709
8737
|
PrevNextCards(false, -1)
|
|
8710
8738
|
)
|
|
8711
8739
|
),
|
|
8712
|
-
|
|
8713
|
-
|
|
8740
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8741
|
+
React.createElement(
|
|
8714
8742
|
'div',
|
|
8715
8743
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8716
|
-
|
|
8744
|
+
main_39 && Ads.map(function (ad, index) {
|
|
8717
8745
|
if (index === 0) {
|
|
8718
|
-
return
|
|
8746
|
+
return React.createElement(
|
|
8719
8747
|
'div',
|
|
8720
8748
|
{
|
|
8721
8749
|
key: 'addid-1',
|
|
@@ -8735,14 +8763,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8735
8763
|
}
|
|
8736
8764
|
})
|
|
8737
8765
|
),
|
|
8738
|
-
|
|
8766
|
+
React.createElement(
|
|
8739
8767
|
'div',
|
|
8740
8768
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8741
8769
|
Articles.map(function (article, index) {
|
|
8742
|
-
return
|
|
8770
|
+
return React.createElement(
|
|
8743
8771
|
'div',
|
|
8744
8772
|
{ key: article.title },
|
|
8745
|
-
|
|
8773
|
+
React.createElement(
|
|
8746
8774
|
InscreenSensor,
|
|
8747
8775
|
{
|
|
8748
8776
|
visible: sensorVisible,
|
|
@@ -8760,84 +8788,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8760
8788
|
}
|
|
8761
8789
|
}
|
|
8762
8790
|
} },
|
|
8763
|
-
|
|
8791
|
+
React.createElement(
|
|
8764
8792
|
Head,
|
|
8765
8793
|
null,
|
|
8766
|
-
currentTitle !== null &&
|
|
8794
|
+
currentTitle !== null && React.createElement(
|
|
8767
8795
|
'title',
|
|
8768
8796
|
{ key: 'title' },
|
|
8769
8797
|
currentTitle
|
|
8770
8798
|
),
|
|
8771
|
-
currentSummary !== null &&
|
|
8772
|
-
currentURL !== null &&
|
|
8773
|
-
currentTitle !== null &&
|
|
8774
|
-
currentThumbnail !== null &&
|
|
8775
|
-
currentSummary !== null &&
|
|
8776
|
-
currentTitle !== null &&
|
|
8777
|
-
currentThumbnail !== null &&
|
|
8778
|
-
currentSummary !== null &&
|
|
8799
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8800
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8801
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8802
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8803
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8804
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8805
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8806
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8779
8807
|
),
|
|
8780
|
-
|
|
8808
|
+
React.createElement(
|
|
8781
8809
|
'article',
|
|
8782
8810
|
{ className: 'article-wrapper' },
|
|
8783
|
-
|
|
8811
|
+
React.createElement(
|
|
8784
8812
|
'div',
|
|
8785
8813
|
{ className: 'article-publishDate' },
|
|
8786
8814
|
moment(article.published).format('LL')
|
|
8787
8815
|
),
|
|
8788
|
-
|
|
8816
|
+
React.createElement(
|
|
8789
8817
|
'div',
|
|
8790
8818
|
{ className: 'author-details-wrapper' },
|
|
8791
8819
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8792
|
-
return
|
|
8820
|
+
return React.createElement(
|
|
8793
8821
|
'span',
|
|
8794
8822
|
{ key: index },
|
|
8795
8823
|
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
8824
|
);
|
|
8797
8825
|
})
|
|
8798
8826
|
),
|
|
8799
|
-
|
|
8827
|
+
React.createElement(
|
|
8800
8828
|
'h2',
|
|
8801
8829
|
{ className: 'article-title' },
|
|
8802
8830
|
article.title
|
|
8803
8831
|
),
|
|
8804
|
-
|
|
8832
|
+
React.createElement(
|
|
8805
8833
|
'div',
|
|
8806
8834
|
{ className: 'mt-2 mb-2' },
|
|
8807
|
-
|
|
8835
|
+
React.createElement(BlockContent, _extends({
|
|
8808
8836
|
serializers: getSerializers,
|
|
8809
8837
|
videoAccountIDs: accountIDs,
|
|
8810
8838
|
blocks: article.text,
|
|
8811
8839
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8812
8840
|
}, client.config())),
|
|
8813
|
-
|
|
8841
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8814
8842
|
),
|
|
8815
|
-
Articles.length > 1 &&
|
|
8816
|
-
|
|
8843
|
+
Articles.length > 1 && React.createElement(
|
|
8844
|
+
React.Fragment,
|
|
8817
8845
|
null,
|
|
8818
|
-
|
|
8846
|
+
React.createElement(
|
|
8819
8847
|
'div',
|
|
8820
8848
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8821
|
-
|
|
8849
|
+
React.createElement(
|
|
8822
8850
|
'h5',
|
|
8823
8851
|
{ className: 'objective-title' },
|
|
8824
8852
|
nodes.seriesTitle
|
|
8825
8853
|
),
|
|
8826
|
-
|
|
8854
|
+
React.createElement(
|
|
8827
8855
|
'div',
|
|
8828
8856
|
{ className: 'prevNextWrapper' },
|
|
8829
8857
|
PrevNextCards(true, index)
|
|
8830
8858
|
)
|
|
8831
8859
|
),
|
|
8832
|
-
|
|
8860
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8833
8861
|
)
|
|
8834
8862
|
),
|
|
8835
|
-
|
|
8863
|
+
React.createElement(
|
|
8836
8864
|
'div',
|
|
8837
8865
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8838
|
-
|
|
8866
|
+
main_39 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8839
8867
|
if (innerIndex === 0) {
|
|
8840
|
-
return
|
|
8868
|
+
return React.createElement(
|
|
8841
8869
|
'div',
|
|
8842
8870
|
{
|
|
8843
8871
|
key: 'addid-' + (index + 2),
|
|
@@ -8860,7 +8888,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8860
8888
|
)
|
|
8861
8889
|
);
|
|
8862
8890
|
}),
|
|
8863
|
-
|
|
8891
|
+
React.createElement(
|
|
8864
8892
|
'style',
|
|
8865
8893
|
{ jsx: 'true' },
|
|
8866
8894
|
'\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 +8918,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8890
8918
|
};
|
|
8891
8919
|
}, [handleClickOutside]);
|
|
8892
8920
|
|
|
8893
|
-
return
|
|
8921
|
+
return React.createElement(
|
|
8894
8922
|
'div',
|
|
8895
8923
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8896
|
-
|
|
8897
|
-
|
|
8924
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8925
|
+
React.createElement(
|
|
8898
8926
|
'style',
|
|
8899
8927
|
{ jsx: 'true' },
|
|
8900
8928
|
'\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 +8936,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8908
8936
|
}
|
|
8909
8937
|
};
|
|
8910
8938
|
|
|
8911
|
-
var FigureImage =
|
|
8939
|
+
var FigureImage = React.memo(function (_ref2) {
|
|
8912
8940
|
var node = _ref2.node,
|
|
8913
8941
|
client = _ref2.client,
|
|
8914
8942
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8916,13 +8944,13 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8916
8944
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8917
8945
|
|
|
8918
8946
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8919
|
-
return
|
|
8947
|
+
return React.createElement(
|
|
8920
8948
|
'picture',
|
|
8921
8949
|
null,
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8950
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8951
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8952
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8953
|
+
React.createElement('img', _extends({
|
|
8926
8954
|
style: figureImageStyle,
|
|
8927
8955
|
className: 'figure-image',
|
|
8928
8956
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9010,13 +9038,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9010
9038
|
|
|
9011
9039
|
var FigureCaption = useCallback(function () {
|
|
9012
9040
|
if (imgcaption && imgcaption.length > 0) {
|
|
9013
|
-
return
|
|
9041
|
+
return React.createElement(
|
|
9014
9042
|
'div',
|
|
9015
9043
|
{ className: 'figure-caption' },
|
|
9016
|
-
|
|
9044
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9017
9045
|
);
|
|
9018
9046
|
} else if (caption) {
|
|
9019
|
-
return
|
|
9047
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9020
9048
|
} else return null;
|
|
9021
9049
|
}, [caption, imgcaption]);
|
|
9022
9050
|
|
|
@@ -9033,24 +9061,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9033
9061
|
setShowLightbox(true);
|
|
9034
9062
|
}, [node, client]);
|
|
9035
9063
|
|
|
9036
|
-
return
|
|
9037
|
-
|
|
9064
|
+
return React.createElement(
|
|
9065
|
+
React.Fragment,
|
|
9038
9066
|
null,
|
|
9039
|
-
|
|
9067
|
+
React.createElement(
|
|
9040
9068
|
Figure$2,
|
|
9041
9069
|
{ className: '' + class_name, style: figureStyle },
|
|
9042
|
-
link ?
|
|
9070
|
+
link ? React.createElement(
|
|
9043
9071
|
'a',
|
|
9044
9072
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
) :
|
|
9048
|
-
|
|
9073
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9074
|
+
React.createElement(FigureCaption, null)
|
|
9075
|
+
) : React.createElement(
|
|
9076
|
+
React.Fragment,
|
|
9049
9077
|
null,
|
|
9050
|
-
|
|
9051
|
-
|
|
9078
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9079
|
+
React.createElement(FigureCaption, null)
|
|
9052
9080
|
),
|
|
9053
|
-
|
|
9081
|
+
React.createElement(LightBox, {
|
|
9054
9082
|
showLightbox: showLightbox,
|
|
9055
9083
|
lightboxImgSrc: lightboxImgSrc,
|
|
9056
9084
|
closeLightbox: function closeLightbox() {
|
|
@@ -9059,7 +9087,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9059
9087
|
}
|
|
9060
9088
|
})
|
|
9061
9089
|
),
|
|
9062
|
-
|
|
9090
|
+
React.createElement(
|
|
9063
9091
|
'style',
|
|
9064
9092
|
{ jsx: 'true' },
|
|
9065
9093
|
'\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 +9095,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9067
9095
|
);
|
|
9068
9096
|
};
|
|
9069
9097
|
|
|
9070
|
-
var Figure =
|
|
9098
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9071
9099
|
|
|
9072
9100
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9073
9101
|
useEffect(function () {
|
|
@@ -9084,6 +9112,33 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9084
9112
|
}, [ref]);
|
|
9085
9113
|
}
|
|
9086
9114
|
|
|
9115
|
+
var FigureImage$1 = React.memo(function (_ref) {
|
|
9116
|
+
var imagesCount = _ref.imagesCount,
|
|
9117
|
+
image = _ref.image,
|
|
9118
|
+
client = _ref.client,
|
|
9119
|
+
imgAlt = _ref.imgAlt,
|
|
9120
|
+
link = _ref.link,
|
|
9121
|
+
handleClickFigure = _ref.handleClickFigure;
|
|
9122
|
+
|
|
9123
|
+
return React.createElement(
|
|
9124
|
+
'picture',
|
|
9125
|
+
null,
|
|
9126
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9127
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9128
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9129
|
+
React.createElement('img', _extends({
|
|
9130
|
+
'images-count': imagesCount,
|
|
9131
|
+
className: 'multi-figure-image',
|
|
9132
|
+
src: urlFor({ source: image, client: client }),
|
|
9133
|
+
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9134
|
+
}, !link && {
|
|
9135
|
+
onClick: function onClick() {
|
|
9136
|
+
return handleClickFigure(image, client);
|
|
9137
|
+
}
|
|
9138
|
+
}))
|
|
9139
|
+
);
|
|
9140
|
+
});
|
|
9141
|
+
|
|
9087
9142
|
var MultiFigure = function MultiFigure(props) {
|
|
9088
9143
|
var images = props.node.images,
|
|
9089
9144
|
client = props.client,
|
|
@@ -9103,76 +9158,72 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9103
9158
|
var lightboxContainer = useRef(null);
|
|
9104
9159
|
useOutsideAlerter(lightboxImage, lightboxContainer, setOpenImg, setOpenImgSrc);
|
|
9105
9160
|
|
|
9106
|
-
var FigureCaption = function FigureCaption(
|
|
9107
|
-
var caption =
|
|
9108
|
-
imgcaption =
|
|
9161
|
+
var FigureCaption = function FigureCaption(_ref2) {
|
|
9162
|
+
var caption = _ref2.caption,
|
|
9163
|
+
imgcaption = _ref2.imgcaption;
|
|
9109
9164
|
|
|
9110
9165
|
if (imgcaption && imgcaption.length > 0) {
|
|
9111
|
-
return
|
|
9166
|
+
return React.createElement(
|
|
9112
9167
|
'div',
|
|
9113
9168
|
{ className: 'multi-figure-caption' },
|
|
9114
|
-
|
|
9169
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9115
9170
|
);
|
|
9116
9171
|
} else if (caption) {
|
|
9117
|
-
return
|
|
9172
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9118
9173
|
} else return null;
|
|
9119
9174
|
};
|
|
9120
9175
|
|
|
9176
|
+
var handleClickFigure = useCallback(function (image, client) {
|
|
9177
|
+
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9178
|
+
setOpenImg(true);
|
|
9179
|
+
}, [client]);
|
|
9180
|
+
|
|
9121
9181
|
if (images && images.length > 0) {
|
|
9122
|
-
return
|
|
9182
|
+
return React.createElement(
|
|
9123
9183
|
'div',
|
|
9124
9184
|
{ className: 'multi-figure-container' },
|
|
9125
|
-
|
|
9185
|
+
React.createElement(
|
|
9126
9186
|
Row$1,
|
|
9127
9187
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9128
9188
|
images.map(function (image, index) {
|
|
9129
|
-
return
|
|
9189
|
+
return React.createElement(
|
|
9130
9190
|
Col$1,
|
|
9131
9191
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9132
|
-
image.link ?
|
|
9192
|
+
image.link ? React.createElement(
|
|
9133
9193
|
'a',
|
|
9134
9194
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9135
|
-
|
|
9195
|
+
React.createElement(
|
|
9136
9196
|
'div',
|
|
9137
9197
|
{ className: 'multi-figure-image-container' },
|
|
9138
|
-
|
|
9198
|
+
React.createElement(
|
|
9139
9199
|
LazyLoad,
|
|
9140
9200
|
{ once: true },
|
|
9141
|
-
|
|
9201
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9142
9202
|
),
|
|
9143
|
-
|
|
9203
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9144
9204
|
)
|
|
9145
|
-
) :
|
|
9205
|
+
) : React.createElement(
|
|
9146
9206
|
'div',
|
|
9147
9207
|
{ className: 'multi-figure-image-container' },
|
|
9148
|
-
|
|
9208
|
+
React.createElement(
|
|
9149
9209
|
LazyLoad,
|
|
9150
9210
|
{ once: true },
|
|
9151
|
-
|
|
9152
|
-
'images-count': images.length,
|
|
9153
|
-
className: 'multi-figure-image',
|
|
9154
|
-
src: urlFor({ source: image.asset, client: client }),
|
|
9155
|
-
alt: image.alt,
|
|
9156
|
-
onClick: function onClick() {
|
|
9157
|
-
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9158
|
-
setOpenImg(true);
|
|
9159
|
-
}
|
|
9160
|
-
})
|
|
9211
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9161
9212
|
),
|
|
9162
|
-
|
|
9213
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9163
9214
|
)
|
|
9164
9215
|
);
|
|
9165
9216
|
})
|
|
9166
9217
|
),
|
|
9167
|
-
|
|
9218
|
+
React.createElement(
|
|
9168
9219
|
'div',
|
|
9169
9220
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9170
|
-
|
|
9221
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9171
9222
|
),
|
|
9172
|
-
|
|
9223
|
+
React.createElement(
|
|
9173
9224
|
'style',
|
|
9174
9225
|
{ jsx: 'true' },
|
|
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 '
|
|
9226
|
+
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n cursor: pointer;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
9176
9227
|
)
|
|
9177
9228
|
);
|
|
9178
9229
|
}
|
|
@@ -9191,10 +9242,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9191
9242
|
|
|
9192
9243
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9193
9244
|
|
|
9194
|
-
return
|
|
9245
|
+
return React.createElement(
|
|
9195
9246
|
'div',
|
|
9196
9247
|
{ id: elementId },
|
|
9197
|
-
|
|
9248
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9198
9249
|
);
|
|
9199
9250
|
};
|
|
9200
9251
|
|
|
@@ -9243,7 +9294,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9243
9294
|
|
|
9244
9295
|
|
|
9245
9296
|
|
|
9246
|
-
var _react2 = _interopRequireDefault(
|
|
9297
|
+
var _react2 = _interopRequireDefault(React);
|
|
9247
9298
|
|
|
9248
9299
|
|
|
9249
9300
|
|
|
@@ -9392,9 +9443,9 @@ var ScriptTag = function (_Component) {
|
|
|
9392
9443
|
|
|
9393
9444
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9394
9445
|
// eslint-disable-next-line no-unused-vars
|
|
9395
|
-
var _props3 = this.props
|
|
9396
|
-
_props3.isHydrating
|
|
9397
|
-
|
|
9446
|
+
var _props3 = this.props,
|
|
9447
|
+
isHydrating = _props3.isHydrating,
|
|
9448
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9398
9449
|
|
|
9399
9450
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9400
9451
|
return _this2.domRef = tag;
|
|
@@ -9402,7 +9453,7 @@ var ScriptTag = function (_Component) {
|
|
|
9402
9453
|
};
|
|
9403
9454
|
|
|
9404
9455
|
return ScriptTag;
|
|
9405
|
-
}(
|
|
9456
|
+
}(React.Component);
|
|
9406
9457
|
|
|
9407
9458
|
ScriptTag.propTypes = {
|
|
9408
9459
|
/**
|
|
@@ -9481,11 +9532,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9481
9532
|
}, []);
|
|
9482
9533
|
|
|
9483
9534
|
if (iframeSrc) {
|
|
9484
|
-
return
|
|
9535
|
+
return React.createElement(
|
|
9485
9536
|
'section',
|
|
9486
9537
|
{ className: 'form-assembly' },
|
|
9487
|
-
|
|
9488
|
-
|
|
9538
|
+
React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9539
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9489
9540
|
);
|
|
9490
9541
|
}
|
|
9491
9542
|
|
|
@@ -9522,27 +9573,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9522
9573
|
return window.removeEventListener('resize', handleResize);
|
|
9523
9574
|
};
|
|
9524
9575
|
}, []);
|
|
9525
|
-
return
|
|
9576
|
+
return React.createElement(
|
|
9526
9577
|
'div',
|
|
9527
9578
|
{ className: 'blockTableHolder', ref: holder },
|
|
9528
|
-
|
|
9579
|
+
React.createElement(
|
|
9529
9580
|
'div',
|
|
9530
9581
|
{ className: 'blockTable' },
|
|
9531
9582
|
rows && rows.map(function (row) {
|
|
9532
|
-
return
|
|
9583
|
+
return React.createElement(
|
|
9533
9584
|
'div',
|
|
9534
9585
|
{ className: 'blockTableRow' },
|
|
9535
9586
|
row.cells && row.cells.map(function (cell) {
|
|
9536
|
-
return
|
|
9587
|
+
return React.createElement(
|
|
9537
9588
|
'div',
|
|
9538
9589
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9539
|
-
|
|
9590
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9540
9591
|
);
|
|
9541
9592
|
})
|
|
9542
9593
|
);
|
|
9543
9594
|
})
|
|
9544
9595
|
),
|
|
9545
|
-
|
|
9596
|
+
React.createElement(
|
|
9546
9597
|
'style',
|
|
9547
9598
|
{ jsx: true },
|
|
9548
9599
|
'\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 +9672,12 @@ var getSerializers = function getSerializers() {
|
|
|
9621
9672
|
var node = _ref.node;
|
|
9622
9673
|
var url = node.url;
|
|
9623
9674
|
|
|
9624
|
-
return
|
|
9675
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9625
9676
|
},
|
|
9626
9677
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9627
9678
|
var node = _ref2.node;
|
|
9628
9679
|
|
|
9629
|
-
return
|
|
9680
|
+
return React.createElement(YouTubeGallery, {
|
|
9630
9681
|
nodes: node,
|
|
9631
9682
|
article: article,
|
|
9632
9683
|
meta: meta,
|
|
@@ -9640,7 +9691,7 @@ var getSerializers = function getSerializers() {
|
|
|
9640
9691
|
articleSeries: function articleSeries(_ref3) {
|
|
9641
9692
|
var node = _ref3.node;
|
|
9642
9693
|
|
|
9643
|
-
return
|
|
9694
|
+
return React.createElement(ArticleSeries, {
|
|
9644
9695
|
nodes: node,
|
|
9645
9696
|
accountIDs: videoAccountIDs || {},
|
|
9646
9697
|
pageview: pageview,
|
|
@@ -9653,61 +9704,61 @@ var getSerializers = function getSerializers() {
|
|
|
9653
9704
|
figure: function figure(_ref4) {
|
|
9654
9705
|
var node = _ref4.node;
|
|
9655
9706
|
|
|
9656
|
-
return
|
|
9707
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9657
9708
|
},
|
|
9658
9709
|
multifigure: function multifigure(_ref5) {
|
|
9659
9710
|
var node = _ref5.node;
|
|
9660
9711
|
|
|
9661
|
-
return
|
|
9712
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9662
9713
|
},
|
|
9663
9714
|
slideshow: function slideshow(_ref6) {
|
|
9664
9715
|
var node = _ref6.node;
|
|
9665
9716
|
var slides = node.slides;
|
|
9666
9717
|
|
|
9667
|
-
return
|
|
9718
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9668
9719
|
},
|
|
9669
9720
|
sidebar: function sidebar(_ref7) {
|
|
9670
9721
|
var node = _ref7.node;
|
|
9671
9722
|
var caption = node.caption,
|
|
9672
9723
|
content = node.content;
|
|
9673
9724
|
|
|
9674
|
-
return
|
|
9725
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9675
9726
|
},
|
|
9676
9727
|
datatable: function datatable(_ref8) {
|
|
9677
9728
|
var node = _ref8.node;
|
|
9678
9729
|
var table = node.table;
|
|
9679
9730
|
|
|
9680
|
-
return
|
|
9731
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9681
9732
|
},
|
|
9682
9733
|
media: function media(_ref9) {
|
|
9683
9734
|
var node = _ref9.node;
|
|
9684
9735
|
|
|
9685
|
-
return
|
|
9736
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9686
9737
|
},
|
|
9687
9738
|
iframe: function iframe(_ref10) {
|
|
9688
9739
|
var node = _ref10.node;
|
|
9689
9740
|
|
|
9690
|
-
return
|
|
9741
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9691
9742
|
},
|
|
9692
9743
|
video: function video(_ref11) {
|
|
9693
9744
|
var node = _ref11.node;
|
|
9694
9745
|
|
|
9695
|
-
return
|
|
9746
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9696
9747
|
},
|
|
9697
9748
|
audio: function audio(_ref12) {
|
|
9698
9749
|
var node = _ref12.node;
|
|
9699
9750
|
|
|
9700
|
-
return
|
|
9751
|
+
return React.createElement(Audio, { node: node });
|
|
9701
9752
|
},
|
|
9702
9753
|
poll: function poll(_ref13) {
|
|
9703
9754
|
var node = _ref13.node;
|
|
9704
9755
|
|
|
9705
|
-
return
|
|
9756
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9706
9757
|
},
|
|
9707
9758
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9708
9759
|
var node = _ref14.node;
|
|
9709
9760
|
|
|
9710
|
-
return
|
|
9761
|
+
return React.createElement(Poll$1, {
|
|
9711
9762
|
node: node,
|
|
9712
9763
|
client: client,
|
|
9713
9764
|
pageview: pageview,
|
|
@@ -9721,35 +9772,35 @@ var getSerializers = function getSerializers() {
|
|
|
9721
9772
|
var node = _ref15.node;
|
|
9722
9773
|
var quizzes = node.quizzes;
|
|
9723
9774
|
|
|
9724
|
-
return
|
|
9775
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9725
9776
|
},
|
|
9726
9777
|
leads: function leads(_ref16) {
|
|
9727
9778
|
var node = _ref16.node;
|
|
9728
9779
|
var leadID = node.leadID;
|
|
9729
9780
|
|
|
9730
9781
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9731
|
-
return
|
|
9782
|
+
return React.createElement(Leads, { url: url });
|
|
9732
9783
|
},
|
|
9733
9784
|
slideshows: function slideshows(_ref17) {
|
|
9734
9785
|
var node = _ref17.node;
|
|
9735
9786
|
|
|
9736
|
-
return
|
|
9787
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9737
9788
|
},
|
|
9738
9789
|
nativeAd: function nativeAd(_ref18) {
|
|
9739
9790
|
var node = _ref18.node;
|
|
9740
9791
|
|
|
9741
|
-
return
|
|
9792
|
+
return React.createElement(NativeAd, { node: node });
|
|
9742
9793
|
},
|
|
9743
9794
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9744
9795
|
var node = _ref19.node;
|
|
9745
9796
|
|
|
9746
|
-
return
|
|
9797
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9747
9798
|
},
|
|
9748
9799
|
hrtag: function hrtag() {
|
|
9749
|
-
return
|
|
9800
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9750
9801
|
},
|
|
9751
9802
|
brtag: function brtag() {
|
|
9752
|
-
return
|
|
9803
|
+
return React.createElement('br', { className: 'line-break' });
|
|
9753
9804
|
},
|
|
9754
9805
|
formstack: function formstack(_ref20) {
|
|
9755
9806
|
var node = _ref20.node;
|
|
@@ -9757,29 +9808,29 @@ var getSerializers = function getSerializers() {
|
|
|
9757
9808
|
Caption = node.Caption,
|
|
9758
9809
|
needSegmentSupport = node.needSegmentSupport;
|
|
9759
9810
|
|
|
9760
|
-
return
|
|
9811
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9761
9812
|
},
|
|
9762
9813
|
formassembly: FormAssembly,
|
|
9763
9814
|
multimedia: function multimedia(_ref21) {
|
|
9764
9815
|
var node = _ref21.node;
|
|
9765
9816
|
|
|
9766
|
-
return
|
|
9817
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
9767
9818
|
},
|
|
9768
9819
|
blockTable: function blockTable(_ref22) {
|
|
9769
9820
|
var node = _ref22.node;
|
|
9770
|
-
return
|
|
9821
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9771
9822
|
}
|
|
9772
9823
|
},
|
|
9773
9824
|
marks: {
|
|
9774
9825
|
superscript: function superscript(props) {
|
|
9775
|
-
return
|
|
9826
|
+
return React.createElement(
|
|
9776
9827
|
'sup',
|
|
9777
9828
|
null,
|
|
9778
9829
|
props.children
|
|
9779
9830
|
);
|
|
9780
9831
|
},
|
|
9781
9832
|
subscript: function subscript(props) {
|
|
9782
|
-
return
|
|
9833
|
+
return React.createElement(
|
|
9783
9834
|
'sub',
|
|
9784
9835
|
null,
|
|
9785
9836
|
props.children
|
|
@@ -9795,7 +9846,7 @@ var getSerializers = function getSerializers() {
|
|
|
9795
9846
|
if (href && href.charAt(0) === '#') {
|
|
9796
9847
|
var elementId = href.slice(1);
|
|
9797
9848
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9798
|
-
return
|
|
9849
|
+
return React.createElement(
|
|
9799
9850
|
'a',
|
|
9800
9851
|
{ onClick: function onClick() {
|
|
9801
9852
|
return ScrollToElement(elementId);
|
|
@@ -9805,7 +9856,7 @@ var getSerializers = function getSerializers() {
|
|
|
9805
9856
|
}
|
|
9806
9857
|
|
|
9807
9858
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9808
|
-
return
|
|
9859
|
+
return React.createElement(
|
|
9809
9860
|
'a',
|
|
9810
9861
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9811
9862
|
children
|
|
@@ -9813,7 +9864,7 @@ var getSerializers = function getSerializers() {
|
|
|
9813
9864
|
},
|
|
9814
9865
|
alignleft: function alignleft(_ref23) {
|
|
9815
9866
|
var children = _ref23.children;
|
|
9816
|
-
return
|
|
9867
|
+
return React.createElement(
|
|
9817
9868
|
'div',
|
|
9818
9869
|
{ style: { textAlign: 'left' } },
|
|
9819
9870
|
children
|
|
@@ -9821,7 +9872,7 @@ var getSerializers = function getSerializers() {
|
|
|
9821
9872
|
},
|
|
9822
9873
|
alignright: function alignright(_ref24) {
|
|
9823
9874
|
var children = _ref24.children;
|
|
9824
|
-
return
|
|
9875
|
+
return React.createElement(
|
|
9825
9876
|
'div',
|
|
9826
9877
|
{ style: { textAlign: 'right' } },
|
|
9827
9878
|
children
|
|
@@ -9829,7 +9880,7 @@ var getSerializers = function getSerializers() {
|
|
|
9829
9880
|
},
|
|
9830
9881
|
aligncenter: function aligncenter(_ref25) {
|
|
9831
9882
|
var children = _ref25.children;
|
|
9832
|
-
return
|
|
9883
|
+
return React.createElement(
|
|
9833
9884
|
'div',
|
|
9834
9885
|
{ style: { textAlign: 'center' } },
|
|
9835
9886
|
children
|
|
@@ -9837,7 +9888,7 @@ var getSerializers = function getSerializers() {
|
|
|
9837
9888
|
},
|
|
9838
9889
|
alignjustify: function alignjustify(_ref26) {
|
|
9839
9890
|
var children = _ref26.children;
|
|
9840
|
-
return
|
|
9891
|
+
return React.createElement(
|
|
9841
9892
|
'div',
|
|
9842
9893
|
{ style: { textAlign: 'justify' } },
|
|
9843
9894
|
children
|
|
@@ -9847,7 +9898,7 @@ var getSerializers = function getSerializers() {
|
|
|
9847
9898
|
var children = props.children,
|
|
9848
9899
|
color = props.mark.color;
|
|
9849
9900
|
|
|
9850
|
-
return
|
|
9901
|
+
return React.createElement(
|
|
9851
9902
|
'span',
|
|
9852
9903
|
{ style: { color: color ? color.hex : null } },
|
|
9853
9904
|
children
|