@mjhls/mjh-framework 1.0.852 → 1.0.854-adblocker-fix-v1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +21 -20
- package/dist/cjs/AD300x250x600.js +21 -20
- package/dist/cjs/AD728x90.js +22 -21
- package/dist/cjs/ADFloatingFooter.js +23 -22
- package/dist/cjs/ADFooter.js +14 -13
- package/dist/cjs/ADGutter.js +23 -22
- package/dist/cjs/{ADInfeed-5f236872.js → ADInfeed-25d48cc2.js} +12 -10
- package/dist/cjs/ADSkyscraper.js +23 -22
- package/dist/cjs/ADSponsoredResources.js +23 -22
- package/dist/cjs/ADWebcast.js +23 -22
- package/dist/cjs/ADWelcome.js +37 -27
- package/dist/cjs/{ADlgInfeed-7b915591.js → ADlgInfeed-a535a768.js} +8 -7
- package/dist/cjs/AccordionPanel.js +28 -26
- package/dist/cjs/AdSlot.js +27 -26
- package/dist/cjs/AdSlotsProvider.js +20 -18
- package/dist/cjs/AlgoliaSearch.js +637 -650
- package/dist/cjs/AlphabeticList.js +24 -23
- package/dist/cjs/ArticleCarousel.js +18 -17
- package/dist/cjs/ArticleProgramLandingPage.js +37 -36
- package/dist/cjs/ArticleSeriesLandingPage.js +34 -33
- package/dist/cjs/ArticleSeriesListing.js +49 -48
- package/dist/cjs/Auth.js +294 -426
- package/dist/cjs/AuthWrapper.js +256 -216
- package/dist/cjs/{AuthorComponent-0c464248.js → AuthorComponent-ac8972ce.js} +14 -13
- package/dist/cjs/Beam.js +7 -7
- package/dist/cjs/{BlockContent-bac780ac.js → BlockContent-8b494587.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +28 -26
- package/dist/cjs/CMEDeck.js +75 -75
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +30 -27
- package/dist/cjs/Column3.js +48 -45
- package/dist/cjs/ConferenceArticleCard.js +31 -30
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +98 -94
- package/dist/cjs/DeckQueue.js +83 -79
- package/dist/cjs/{Dfp-ac0c1cc6.js → Dfp-391fd124.js} +29 -28
- package/dist/cjs/EventsDeck.js +150 -143
- package/dist/cjs/ExternalResources.js +61 -60
- package/dist/cjs/Feature.js +25 -23
- package/dist/cjs/ForbesHero.js +39 -38
- package/dist/cjs/GridContent.js +222 -217
- package/dist/cjs/GridHero.js +40 -39
- package/dist/cjs/GroupDeck.js +55 -54
- package/dist/cjs/HamMagazine.js +137 -132
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +10 -9
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalArticleListing.js +51 -50
- package/dist/cjs/HorizontalHero.js +23 -22
- package/dist/cjs/IssueContentDeck.js +74 -69
- package/dist/cjs/IssueDeck.js +73 -68
- package/dist/cjs/IssueLanding.js +70 -69
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +33 -31
- package/dist/cjs/MasterDeck.js +72 -71
- package/dist/cjs/MediaSeriesLanding.js +853 -905
- package/dist/cjs/NavDvm.js +75 -70
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +138 -133
- package/dist/cjs/NavNative.js +133 -125
- package/dist/cjs/OncliveHero.js +16 -15
- package/dist/cjs/OncliveLargeHero.js +68 -67
- package/dist/cjs/PageFilter.js +14 -13
- package/dist/cjs/PartnerDetailListing.js +83 -82
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +20 -18
- package/dist/cjs/PubSection.js +31 -30
- package/dist/cjs/PubToc.js +15 -14
- package/dist/cjs/PublicationDeck.js +64 -59
- package/dist/cjs/PublicationLanding.js +123 -119
- package/dist/cjs/QueueDeckExpanded.js +296 -296
- package/dist/cjs/RecentNews.js +20 -19
- package/dist/cjs/RelatedContent.js +48 -47
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +21 -17
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +31 -31
- package/dist/cjs/{SeriesSlider-dad08884.js → SeriesSlider-0d3bf265.js} +39 -38
- package/dist/cjs/SideFooter.js +33 -32
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-ad15dd61.js → SocialSearchComponent-19548e2a.js} +39 -35
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +61 -56
- package/dist/cjs/TaxonomyDescription.js +36 -35
- package/dist/cjs/TemplateNormal.js +46 -45
- package/dist/cjs/ThumbnailCard.js +19 -17
- package/dist/cjs/Ustream.js +29 -28
- package/dist/cjs/VerticalHero.js +15 -14
- package/dist/cjs/VideoProgramLandingPage.js +57 -53
- package/dist/cjs/VideoSeriesCard.js +28 -27
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +40 -39
- package/dist/cjs/VideoSeriesListing.js +66 -65
- package/dist/cjs/View.js +211 -207
- package/dist/cjs/YahooHero.js +35 -34
- package/dist/cjs/YoutubeGroup.js +61 -60
- package/dist/cjs/{_is-array-39ff55dd.js → _is-array-754e012d.js} +1 -1
- package/dist/cjs/{_iter-detect-ef35661e.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-b231f928.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-c3aeb51d.js → _object-to-array-5762f850.js} +1 -1
- package/dist/cjs/{_to-object-7a3ce269.js → _to-object-329a650b.js} +2 -2
- package/dist/cjs/{asyncToGenerator-8ae2191c.js → asyncToGenerator-140e5f89.js} +5 -5
- package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-5c98aec7.js} +6 -5
- package/dist/cjs/{core.get-iterator-method-6cd7682d.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-6191c8ee.js → debounce-529c8d06.js} +1 -1
- package/dist/cjs/{define-property-fc002cec.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-03c4c82e.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{es6.string.iterator-ab94a594.js → es6.string.iterator-cc0bbaa4.js} +1 -1
- package/dist/cjs/{extends-acc1318d.js → extends-0a918631.js} +1 -1
- package/dist/cjs/faundadb.js +6 -6
- package/dist/cjs/getRelatedArticle.js +73 -137
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +25 -25
- package/dist/cjs/{getTargeting-608e1fd1.js → getTargeting-a9a871f0.js} +11 -11
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-a7a90204.js → index-00a7ead6.js} +570 -541
- package/dist/cjs/{index-98e01cb9.js → index-2cf30c83.js} +9 -8
- package/dist/cjs/{index-79eed652.js → index-6367b7bf.js} +29 -29
- package/dist/cjs/{index-96b3db50.js → index-9d365128.js} +12 -10
- package/dist/cjs/{index-ff69979f.js → index-b5eb3ff8.js} +3 -8
- package/dist/cjs/{index-53e27416.js → index-e2e62963.js} +9 -25
- package/dist/cjs/{index.es-e9d84959.js → index.es-f3e47207.js} +8 -7
- package/dist/cjs/{index.esm-bf016399.js → index.esm-3ffa049c.js} +18 -17
- package/dist/cjs/index.js +74 -71
- package/dist/cjs/{inherits-bfdb22af.js → inherits-0c7830c5.js} +8 -8
- package/dist/cjs/{keys-62e097ca.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-b5e0d5f6.js → lodash-7fd85bcf.js} +9 -57
- package/dist/cjs/main-7b5e57b0.js +898 -0
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/{slicedToArray-41819145.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{stringify-7ccc8524.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/{toConsumableArray-4fdb72e2.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{toNumber-f2f8744b.js → toNumber-36d1e7e5.js} +4 -39
- package/dist/cjs/{typeof-e83d4a26.js → typeof-9d7f610f.js} +5 -5
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{ustream-api-c30d203c.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-68e3aaf2.js → web.dom.iterable-a0e279c1.js} +2 -2
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +18 -18
- package/dist/esm/AD300x250x600.js +18 -18
- package/dist/esm/AD728x90.js +19 -19
- package/dist/esm/ADFloatingFooter.js +20 -20
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +20 -20
- package/dist/esm/{ADInfeed-dec9975c.js → ADInfeed-56a3db8b.js} +8 -8
- package/dist/esm/ADSkyscraper.js +20 -20
- package/dist/esm/ADSponsoredResources.js +20 -20
- package/dist/esm/ADWebcast.js +20 -20
- package/dist/esm/ADWelcome.js +34 -25
- package/dist/esm/{ADlgInfeed-1ea41fb6.js → ADlgInfeed-53edb995.js} +5 -5
- package/dist/esm/AccordionPanel.js +21 -21
- package/dist/esm/AdSlot.js +18 -18
- package/dist/esm/AdSlotsProvider.js +13 -13
- package/dist/esm/AlgoliaSearch.js +266 -280
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +15 -15
- package/dist/esm/ArticleProgramLandingPage.js +34 -34
- package/dist/esm/ArticleSeriesLandingPage.js +31 -31
- package/dist/esm/ArticleSeriesListing.js +45 -45
- package/dist/esm/Auth.js +275 -411
- package/dist/esm/AuthWrapper.js +253 -214
- package/dist/esm/{AuthorComponent-5cab1f6b.js → AuthorComponent-8ffd4679.js} +11 -11
- package/dist/esm/Beam.js +7 -7
- package/dist/esm/{BlockContent-ea93e8f7.js → BlockContent-d05b5b23.js} +4 -4
- package/dist/esm/Breadcrumbs.js +16 -16
- package/dist/esm/CMEDeck.js +72 -72
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +25 -25
- package/dist/esm/Column3.js +43 -43
- package/dist/esm/ConferenceArticleCard.js +29 -29
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +90 -90
- package/dist/esm/DeckQueue.js +75 -75
- package/dist/esm/{Dfp-4b94fbd4.js → Dfp-2f9796e1.js} +17 -17
- package/dist/esm/EventsDeck.js +120 -120
- package/dist/esm/ExternalResources.js +55 -55
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +32 -32
- package/dist/esm/GridContent.js +186 -186
- package/dist/esm/GridHero.js +33 -33
- package/dist/esm/GroupDeck.js +42 -42
- package/dist/esm/HamMagazine.js +105 -105
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +48 -48
- package/dist/esm/HorizontalHero.js +19 -19
- package/dist/esm/IssueContentDeck.js +57 -57
- package/dist/esm/IssueDeck.js +62 -62
- package/dist/esm/IssueLanding.js +69 -69
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +27 -27
- package/dist/esm/MasterDeck.js +68 -68
- package/dist/esm/MediaSeriesLanding.js +484 -539
- package/dist/esm/NavDvm.js +53 -53
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +108 -108
- package/dist/esm/NavNative.js +100 -100
- package/dist/esm/OncliveHero.js +13 -13
- package/dist/esm/OncliveLargeHero.js +56 -56
- package/dist/esm/PageFilter.js +11 -11
- package/dist/esm/PartnerDetailListing.js +80 -80
- package/dist/esm/PdfDownload.js +5 -5
- package/dist/esm/PopUpModal.js +13 -13
- package/dist/esm/PubSection.js +28 -28
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +105 -105
- package/dist/esm/QueueDeckExpanded.js +262 -262
- package/dist/esm/RecentNews.js +16 -16
- package/dist/esm/RelatedContent.js +44 -44
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +28 -28
- package/dist/esm/{SeriesSlider-5ba2e521.js → SeriesSlider-7d89f4d9.js} +29 -29
- package/dist/esm/SideFooter.js +29 -29
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-9cc36413.js → SocialSearchComponent-47815365.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +52 -52
- package/dist/esm/TaxonomyDescription.js +30 -30
- package/dist/esm/TemplateNormal.js +42 -42
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +24 -24
- package/dist/esm/VerticalHero.js +12 -12
- package/dist/esm/VideoProgramLandingPage.js +46 -46
- package/dist/esm/VideoSeriesCard.js +21 -21
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +31 -31
- package/dist/esm/VideoSeriesListing.js +62 -62
- package/dist/esm/View.js +196 -196
- package/dist/esm/YahooHero.js +29 -29
- package/dist/esm/YoutubeGroup.js +45 -45
- package/dist/esm/{_is-array-328b85b7.js → _is-array-58e95429.js} +1 -1
- package/dist/esm/{_iter-detect-0fa1c752.js → _iter-detect-5d49a330.js} +2 -2
- package/dist/esm/{_object-sap-1b84e2bf.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-c8f72bf1.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{_to-object-cedb5b78.js → _to-object-a4107da3.js} +2 -2
- package/dist/esm/{asyncToGenerator-e1a2f43a.js → asyncToGenerator-fc1c2e29.js} +5 -5
- package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-4abff0b1.js} +3 -3
- package/dist/esm/{core.get-iterator-method-227107e6.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-89969f66.js → debounce-9207d8ee.js} +1 -1
- package/dist/esm/{define-property-2f35af22.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-eb9699c0.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{es6.string.iterator-1577cb76.js → es6.string.iterator-c990c18c.js} +1 -1
- package/dist/esm/{extends-be71a29a.js → extends-6f2fcc99.js} +1 -1
- package/dist/esm/faundadb.js +6 -6
- package/dist/esm/getRelatedArticle.js +68 -132
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +25 -25
- package/dist/esm/{getTargeting-37cb4051.js → getTargeting-bd800589.js} +11 -11
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-03da2fcc.js → index-0500ae55.js} +513 -494
- package/dist/esm/{index-f7fdcc91.js → index-51a80699.js} +3 -8
- package/dist/esm/{index-5f7e79e7.js → index-6c12bdd5.js} +4 -4
- package/dist/esm/{index-637e8f49.js → index-aaa2dae0.js} +10 -25
- package/dist/esm/{index-511bdaa5.js → index-c00b0bbb.js} +29 -29
- package/dist/esm/{index-41a678ea.js → index-f7fb1e25.js} +3 -3
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-ed50151c.js → index.esm-8ee5ff72.js} +15 -15
- package/dist/esm/index.js +63 -63
- package/dist/esm/{inherits-2cf82c38.js → inherits-75d45541.js} +5 -5
- package/dist/esm/{keys-526daf0a.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-a818d390.js → lodash-ec8c6b48.js} +9 -57
- package/dist/esm/main-747e7d25.js +886 -0
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/{slicedToArray-f0edf3d6.js → slicedToArray-641f241f.js} +4 -4
- package/dist/esm/{stringify-d1b9276a.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/{toConsumableArray-81605212.js → toConsumableArray-43aa614d.js} +4 -4
- package/dist/esm/{toNumber-e3dcad26.js → toNumber-2f7a84cd.js} +4 -39
- package/dist/esm/{typeof-ad2c7a21.js → typeof-af9c50d8.js} +5 -5
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-cf90f7e6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-ace8ed30.js → web.dom.iterable-4439f05a.js} +2 -2
- package/package.json +110 -110
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/main-bc7d4bf8.js +0 -972
- package/dist/esm/main-ae902629.js +0 -961
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { _ as _export, a as _core } from './_to-object-
|
|
3
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-
|
|
4
|
-
import { _ as _extends, b as _extends$1 } from './extends-
|
|
5
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-
|
|
6
|
-
import { _ as _typeof$1 } from './typeof-
|
|
7
|
-
import
|
|
8
|
-
import { l as lib_3 } from './index-
|
|
2
|
+
import { _ as _export, a as _core } from './_to-object-a4107da3.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
4
|
+
import { _ as _extends, b as _extends$1 } from './extends-6f2fcc99.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-75d45541.js';
|
|
6
|
+
import { _ as _typeof$1 } from './typeof-af9c50d8.js';
|
|
7
|
+
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
+
import { l as lib_3 } from './index-f7fb1e25.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import Row$1 from 'react-bootstrap/Row';
|
|
11
11
|
import Col$1 from 'react-bootstrap/Col';
|
|
12
12
|
import { m as moment } from './moment-b6f49411.js';
|
|
13
13
|
import Router, { useRouter } from 'next/router';
|
|
14
14
|
import urlFor from './urlFor.js';
|
|
15
|
-
import { L as LazyLoad } from './index-
|
|
16
|
-
import { d as
|
|
15
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
16
|
+
import { d as main_16, b as main_39, m as main_40 } from './main-747e7d25.js';
|
|
17
17
|
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-
|
|
18
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
19
|
import Segment from './Segment.js';
|
|
20
20
|
import Beam from './Beam.js';
|
|
21
21
|
import DFPAdSlot from './AdSlot.js';
|
|
22
22
|
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
-
import { B as BlockContent } from './BlockContent-
|
|
23
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
24
24
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
25
25
|
import GroupDeck from './GroupDeck.js';
|
|
26
26
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
27
27
|
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
28
28
|
import { u as util } from './util-7700fc59.js';
|
|
29
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-
|
|
29
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
|
|
30
30
|
import Head from 'next/head';
|
|
31
31
|
import SocialShare from './SocialShare.js';
|
|
32
|
-
import { _ as _objectToArray } from './_object-to-array-
|
|
33
|
-
import Pagination
|
|
34
|
-
import Figure$
|
|
32
|
+
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
33
|
+
import Pagination from 'react-bootstrap/Pagination';
|
|
34
|
+
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
35
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
36
|
-
import Tooltip
|
|
37
|
-
import Popover
|
|
36
|
+
import Tooltip from 'react-bootstrap/Tooltip';
|
|
37
|
+
import Popover from 'react-bootstrap/Popover';
|
|
38
38
|
|
|
39
39
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
40
40
|
var pageNumber = selectedIndex + 1;
|
|
@@ -69,27 +69,27 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
69
69
|
if (pageview) pageview(router.asPath);
|
|
70
70
|
}, [router]);
|
|
71
71
|
|
|
72
|
-
return
|
|
72
|
+
return React.createElement(
|
|
73
73
|
'div',
|
|
74
74
|
{ className: 'mt-3 mb-3' },
|
|
75
|
-
|
|
75
|
+
React.createElement(
|
|
76
76
|
Carousel,
|
|
77
77
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
78
78
|
return onChangeSlide(selectedIndex, router);
|
|
79
79
|
}, interval: null },
|
|
80
80
|
slides && slides.map(function (slide) {
|
|
81
|
-
return
|
|
81
|
+
return React.createElement(
|
|
82
82
|
Carousel.Item,
|
|
83
83
|
{ key: slide._key },
|
|
84
|
-
|
|
84
|
+
React.createElement(
|
|
85
85
|
'picture',
|
|
86
86
|
null,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
88
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
89
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
90
|
+
React.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
91
91
|
),
|
|
92
|
-
slide.caption &&
|
|
92
|
+
slide.caption && React.createElement(
|
|
93
93
|
'p',
|
|
94
94
|
{ className: 'p-2' },
|
|
95
95
|
slide.caption
|
|
@@ -1831,9 +1831,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1831
1831
|
}, {
|
|
1832
1832
|
key: "render",
|
|
1833
1833
|
value: function render() {
|
|
1834
|
-
return /*#__PURE__*/
|
|
1834
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1835
1835
|
className: this.props.containerClassName
|
|
1836
|
-
}, /*#__PURE__*/
|
|
1836
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1837
1837
|
id: this.props.id,
|
|
1838
1838
|
className: this.props.className,
|
|
1839
1839
|
ref: this.refContainer
|
|
@@ -1842,7 +1842,7 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1842
1842
|
}]);
|
|
1843
1843
|
|
|
1844
1844
|
return YouTube;
|
|
1845
|
-
}(
|
|
1845
|
+
}(React.Component);
|
|
1846
1846
|
|
|
1847
1847
|
_defineProperty(YouTube, "PlayerState", {
|
|
1848
1848
|
UNSTARTED: -1,
|
|
@@ -1926,8 +1926,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1926
1926
|
var duration = player.getDuration();
|
|
1927
1927
|
var queue = Math.floor(duration / 10);
|
|
1928
1928
|
var segment = Math.floor(current / queue);
|
|
1929
|
-
Beam.report_beam_video('Ready',
|
|
1930
|
-
Segment.report_video_event('Video Ready',
|
|
1929
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
1930
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1931
1931
|
};
|
|
1932
1932
|
|
|
1933
1933
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1937,8 +1937,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1937
1937
|
var segment = Math.floor(current / queue);
|
|
1938
1938
|
|
|
1939
1939
|
if (!queueProgress.includes(segment)) {
|
|
1940
|
-
Beam.report_beam_video('Segment',
|
|
1941
|
-
Segment.report_video_event('Video Segment',
|
|
1940
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
1941
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1942
1942
|
queueProgress.push(segment);
|
|
1943
1943
|
}
|
|
1944
1944
|
};
|
|
@@ -1951,8 +1951,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1951
1951
|
var queue = Math.floor(duration / 10);
|
|
1952
1952
|
var segment = Math.floor(current / queue);
|
|
1953
1953
|
|
|
1954
|
-
Beam.report_beam_video('Play',
|
|
1955
|
-
Segment.report_video_event('Video Play',
|
|
1954
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
1955
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1956
1956
|
|
|
1957
1957
|
if (!playReported) {
|
|
1958
1958
|
setPlayReported(true);
|
|
@@ -1971,8 +1971,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1971
1971
|
var queue = Math.floor(duration / 10);
|
|
1972
1972
|
var segment = Math.floor(current / queue);
|
|
1973
1973
|
|
|
1974
|
-
Beam.report_beam_video('End',
|
|
1975
|
-
Segment.report_video_event('Video End',
|
|
1974
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
1975
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1976
1976
|
setEndReported(true);
|
|
1977
1977
|
clearInterval(intervalID);
|
|
1978
1978
|
}
|
|
@@ -1985,15 +1985,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1985
1985
|
var queue = Math.floor(duration / 10);
|
|
1986
1986
|
var segment = Math.floor(current / queue);
|
|
1987
1987
|
|
|
1988
|
-
Beam.report_beam_video('Pause',
|
|
1989
|
-
Segment.report_video_event('Video Pause',
|
|
1988
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
1989
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1990
1990
|
};
|
|
1991
1991
|
|
|
1992
|
-
return
|
|
1992
|
+
return React.createElement(
|
|
1993
1993
|
'div',
|
|
1994
1994
|
{ id: 'fluid-video-container' },
|
|
1995
|
-
|
|
1996
|
-
|
|
1995
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1996
|
+
React.createElement(
|
|
1997
1997
|
'style',
|
|
1998
1998
|
{ jsx: 'true' },
|
|
1999
1999
|
'\n #fluid-video-container {\n margin-bottom: 2rem;\n }\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n '
|
|
@@ -2006,20 +2006,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2006
2006
|
content = _ref.content,
|
|
2007
2007
|
getSerializers = _ref.getSerializers;
|
|
2008
2008
|
|
|
2009
|
-
return
|
|
2009
|
+
return React.createElement(
|
|
2010
2010
|
'article',
|
|
2011
2011
|
{ className: 'sidebar' },
|
|
2012
|
-
|
|
2012
|
+
React.createElement(
|
|
2013
2013
|
'div',
|
|
2014
2014
|
null,
|
|
2015
|
-
|
|
2015
|
+
React.createElement(
|
|
2016
2016
|
'h3',
|
|
2017
2017
|
null,
|
|
2018
2018
|
caption
|
|
2019
2019
|
),
|
|
2020
|
-
|
|
2020
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2021
2021
|
),
|
|
2022
|
-
|
|
2022
|
+
React.createElement(
|
|
2023
2023
|
'style',
|
|
2024
2024
|
{ jsx: 'true' },
|
|
2025
2025
|
'\n .sidebar {\n clear: both;\n float: right;\n background-color: #eee;\n width: 40%;\n padding: 1rem;\n margin: 0 0 1rem 1rem;\n }\n /* resolving list items inside sidebar being shifted to center because of unusual margin */\n .sidebar ul {\n margin-left: 0;\n padding-left: 1rem;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n float: none;\n width: auto;\n margin: 1rem 0;\n }\n }\n '
|
|
@@ -2030,18 +2030,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2030
2030
|
var TableShow = function TableShow(_ref) {
|
|
2031
2031
|
var rows = _ref.rows;
|
|
2032
2032
|
|
|
2033
|
-
return
|
|
2033
|
+
return React.createElement(
|
|
2034
2034
|
Table,
|
|
2035
2035
|
{ bordered: true, hover: true, responsive: true },
|
|
2036
|
-
|
|
2036
|
+
React.createElement(
|
|
2037
2037
|
'tbody',
|
|
2038
2038
|
null,
|
|
2039
2039
|
rows && rows.map(function (row) {
|
|
2040
|
-
return
|
|
2040
|
+
return React.createElement(
|
|
2041
2041
|
'tr',
|
|
2042
2042
|
{ key: row._key },
|
|
2043
2043
|
row.cells && row.cells.map(function (cell, index) {
|
|
2044
|
-
return cell &&
|
|
2044
|
+
return cell && React.createElement(
|
|
2045
2045
|
'td',
|
|
2046
2046
|
{ key: index },
|
|
2047
2047
|
cell
|
|
@@ -2139,25 +2139,25 @@ var Media = function Media(_ref) {
|
|
|
2139
2139
|
margin: imageMargin
|
|
2140
2140
|
};
|
|
2141
2141
|
|
|
2142
|
-
return
|
|
2142
|
+
return React.createElement(
|
|
2143
2143
|
Figure$1,
|
|
2144
2144
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2145
|
-
|
|
2145
|
+
React.createElement(
|
|
2146
2146
|
'a',
|
|
2147
2147
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2148
|
-
|
|
2148
|
+
React.createElement(
|
|
2149
2149
|
LazyLoad,
|
|
2150
2150
|
{ once: true },
|
|
2151
|
-
|
|
2151
|
+
React.createElement(
|
|
2152
2152
|
'picture',
|
|
2153
2153
|
null,
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2154
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2155
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2156
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2157
|
+
React.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2158
2158
|
)
|
|
2159
2159
|
),
|
|
2160
|
-
caption &&
|
|
2160
|
+
caption && React.createElement(
|
|
2161
2161
|
Figure$1.Caption,
|
|
2162
2162
|
{ className: 'media-caption' },
|
|
2163
2163
|
caption
|
|
@@ -2165,7 +2165,7 @@ var Media = function Media(_ref) {
|
|
|
2165
2165
|
)
|
|
2166
2166
|
);
|
|
2167
2167
|
} else if (caption && caption !== '') {
|
|
2168
|
-
return
|
|
2168
|
+
return React.createElement(
|
|
2169
2169
|
'a',
|
|
2170
2170
|
_extends({}, uploadDoc.downloadMedia ? {
|
|
2171
2171
|
href: uploadDoc.asset.url + '?dl='
|
|
@@ -2185,10 +2185,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2185
2185
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2186
2186
|
|
|
2187
2187
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2188
|
-
return
|
|
2188
|
+
return React.createElement(
|
|
2189
2189
|
'div',
|
|
2190
2190
|
{ className: 'd-block text-center mb-3' },
|
|
2191
|
-
|
|
2191
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2192
2192
|
);
|
|
2193
2193
|
};
|
|
2194
2194
|
|
|
@@ -2222,8 +2222,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2222
2222
|
var duration = player.duration;
|
|
2223
2223
|
var queue = Math.floor(duration / 10);
|
|
2224
2224
|
var segment = Math.floor(current / queue);
|
|
2225
|
-
Beam.report_beam_video('Ready',
|
|
2226
|
-
Segment.report_video_event('Video Ready',
|
|
2225
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
|
|
2226
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
2227
2227
|
};
|
|
2228
2228
|
|
|
2229
2229
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2232,8 +2232,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2232
2232
|
var queue = Math.floor(duration / 10);
|
|
2233
2233
|
var segment = Math.floor(current / queue);
|
|
2234
2234
|
if (!queueProgress.includes(segment)) {
|
|
2235
|
-
Beam.report_beam_video('Segment',
|
|
2236
|
-
Segment.report_video_event('Video Segment',
|
|
2235
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
|
|
2236
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
2237
2237
|
queueProgress.push(segment);
|
|
2238
2238
|
}
|
|
2239
2239
|
};
|
|
@@ -2245,8 +2245,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2245
2245
|
var duration = player.duration;
|
|
2246
2246
|
var queue = Math.floor(duration / 10);
|
|
2247
2247
|
var segment = Math.floor(current / queue);
|
|
2248
|
-
Beam.report_beam_video('Play',
|
|
2249
|
-
Segment.report_video_event('Video Play',
|
|
2248
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
|
|
2249
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
2250
2250
|
|
|
2251
2251
|
if (!playReported) {
|
|
2252
2252
|
event.persist();
|
|
@@ -2266,8 +2266,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2266
2266
|
var queue = Math.floor(duration / 10);
|
|
2267
2267
|
var segment = Math.floor(current / queue);
|
|
2268
2268
|
|
|
2269
|
-
Beam.report_beam_video('End',
|
|
2270
|
-
Segment.report_video_event('Video End',
|
|
2269
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
|
|
2270
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
2271
2271
|
setEndReported(true);
|
|
2272
2272
|
clearInterval(intervalID);
|
|
2273
2273
|
}
|
|
@@ -2279,14 +2279,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2279
2279
|
var duration = player.duration - current;
|
|
2280
2280
|
var queue = Math.floor(duration / 10);
|
|
2281
2281
|
var segment = Math.floor(current / queue);
|
|
2282
|
-
Beam.report_beam_video('Pause',
|
|
2283
|
-
Segment.report_video_event('Video Pause',
|
|
2282
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
|
|
2283
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2284
2284
|
};
|
|
2285
2285
|
|
|
2286
|
-
return
|
|
2286
|
+
return React.createElement(
|
|
2287
2287
|
'div',
|
|
2288
2288
|
null,
|
|
2289
|
-
vidLoaded &&
|
|
2289
|
+
vidLoaded && React.createElement(
|
|
2290
2290
|
'video',
|
|
2291
2291
|
{
|
|
2292
2292
|
poster: thumbnail || '',
|
|
@@ -2304,7 +2304,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2304
2304
|
onPlay: function onPlay(e) {
|
|
2305
2305
|
return handleOnPlay(e);
|
|
2306
2306
|
} },
|
|
2307
|
-
|
|
2307
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2308
2308
|
'Your browser does not support the video tag.'
|
|
2309
2309
|
)
|
|
2310
2310
|
);
|
|
@@ -2369,8 +2369,8 @@ var Video = function Video(_ref) {
|
|
|
2369
2369
|
player.pause();
|
|
2370
2370
|
}
|
|
2371
2371
|
|
|
2372
|
-
Beam.report_beam_video('Ready',
|
|
2373
|
-
Segment.report_video_event('Video Ready',
|
|
2372
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2373
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2374
2374
|
});
|
|
2375
2375
|
|
|
2376
2376
|
// play
|
|
@@ -2379,8 +2379,8 @@ var Video = function Video(_ref) {
|
|
|
2379
2379
|
var current = player.currentTime();
|
|
2380
2380
|
var queue = Math.floor(duration / 10);
|
|
2381
2381
|
var segment = Math.floor(current / queue);
|
|
2382
|
-
Beam.report_beam_video('Play',
|
|
2383
|
-
Segment.report_video_event('Video Play',
|
|
2382
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2383
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2384
2384
|
});
|
|
2385
2385
|
|
|
2386
2386
|
// pause
|
|
@@ -2389,8 +2389,8 @@ var Video = function Video(_ref) {
|
|
|
2389
2389
|
var current = player.currentTime();
|
|
2390
2390
|
var queue = Math.floor(duration / 10);
|
|
2391
2391
|
var segment = Math.floor(current / queue);
|
|
2392
|
-
Beam.report_beam_video('Pause',
|
|
2393
|
-
Segment.report_video_event('Video Pause',
|
|
2392
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2393
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2394
2394
|
});
|
|
2395
2395
|
|
|
2396
2396
|
// end
|
|
@@ -2399,8 +2399,8 @@ var Video = function Video(_ref) {
|
|
|
2399
2399
|
var current = player.currentTime();
|
|
2400
2400
|
var queue = Math.floor(duration / 10);
|
|
2401
2401
|
var segment = Math.floor(current / queue);
|
|
2402
|
-
Beam.report_beam_video('End',
|
|
2403
|
-
Segment.report_video_event('Video End',
|
|
2402
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2403
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2404
2404
|
autoplayNextVideo(evt);
|
|
2405
2405
|
});
|
|
2406
2406
|
|
|
@@ -2411,8 +2411,8 @@ var Video = function Video(_ref) {
|
|
|
2411
2411
|
var queue = Math.floor(duration / 10);
|
|
2412
2412
|
var segment = Math.floor(current / queue);
|
|
2413
2413
|
if (!queueProgress.includes(segment)) {
|
|
2414
|
-
Beam.report_beam_video('Segment',
|
|
2415
|
-
Segment.report_video_event('Video Segment',
|
|
2414
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2415
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2416
2416
|
queueProgress.push(segment);
|
|
2417
2417
|
}
|
|
2418
2418
|
});
|
|
@@ -2423,8 +2423,8 @@ var Video = function Video(_ref) {
|
|
|
2423
2423
|
var id = player.ads.ad.id;
|
|
2424
2424
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2425
2425
|
|
|
2426
|
-
Beam.report_beam_ad('AD Started',
|
|
2427
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2426
|
+
Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
|
|
2427
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2428
2428
|
});
|
|
2429
2429
|
|
|
2430
2430
|
// ad ended
|
|
@@ -2432,60 +2432,60 @@ var Video = function Video(_ref) {
|
|
|
2432
2432
|
var duration = player.ads.ad.duration;
|
|
2433
2433
|
var id = player.ads.ad.id;
|
|
2434
2434
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2435
|
-
Beam.report_beam_ad('AD Ended',
|
|
2436
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2435
|
+
Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
|
|
2436
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2437
2437
|
});
|
|
2438
2438
|
};
|
|
2439
2439
|
|
|
2440
2440
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2441
2441
|
if (videoID) {
|
|
2442
|
-
return
|
|
2442
|
+
return React.createElement(
|
|
2443
2443
|
'div',
|
|
2444
2444
|
null,
|
|
2445
|
-
|
|
2445
|
+
React.createElement(ReactPlayerLoader, {
|
|
2446
2446
|
onSuccess: onVideoSuccess,
|
|
2447
2447
|
accountId: accountIDs.brightcove.accountId,
|
|
2448
2448
|
videoId: videoID,
|
|
2449
2449
|
playerId: accountIDs.brightcove.playerId,
|
|
2450
2450
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2451
2451
|
}),
|
|
2452
|
-
|
|
2452
|
+
React.createElement(
|
|
2453
2453
|
'style',
|
|
2454
2454
|
{ jsx: 'true' },
|
|
2455
2455
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2456
2456
|
)
|
|
2457
2457
|
);
|
|
2458
2458
|
} else if (playlistID) {
|
|
2459
|
-
return
|
|
2459
|
+
return React.createElement(
|
|
2460
2460
|
'div',
|
|
2461
2461
|
null,
|
|
2462
|
-
|
|
2462
|
+
React.createElement(ReactPlayerLoader, {
|
|
2463
2463
|
accountId: accountIDs.brightcove.accountId,
|
|
2464
2464
|
playlistId: playlistID,
|
|
2465
2465
|
playerId: accountIDs.brightcove.playerId,
|
|
2466
2466
|
onSuccess: onVideoSuccess,
|
|
2467
2467
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2468
2468
|
}),
|
|
2469
|
-
|
|
2469
|
+
React.createElement(
|
|
2470
2470
|
'style',
|
|
2471
2471
|
{ jsx: 'true' },
|
|
2472
2472
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2473
2473
|
)
|
|
2474
2474
|
);
|
|
2475
2475
|
} else if (experienceID) {
|
|
2476
|
-
return
|
|
2476
|
+
return React.createElement(
|
|
2477
2477
|
'div',
|
|
2478
2478
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2479
|
-
videoLoaded &&
|
|
2479
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2480
2480
|
);
|
|
2481
2481
|
}
|
|
2482
2482
|
return null;
|
|
2483
2483
|
}
|
|
2484
2484
|
if (source === 'mp4') {
|
|
2485
|
-
return
|
|
2485
|
+
return React.createElement(
|
|
2486
2486
|
'div',
|
|
2487
2487
|
null,
|
|
2488
|
-
|
|
2488
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2489
2489
|
);
|
|
2490
2490
|
}
|
|
2491
2491
|
|
|
@@ -3090,7 +3090,7 @@ function isEqual(a, b) {
|
|
|
3090
3090
|
return true;
|
|
3091
3091
|
}
|
|
3092
3092
|
|
|
3093
|
-
if ((0,
|
|
3093
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3094
3094
|
return true;
|
|
3095
3095
|
}
|
|
3096
3096
|
|
|
@@ -3152,7 +3152,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3152
3152
|
});
|
|
3153
3153
|
exports["default"] = void 0;
|
|
3154
3154
|
|
|
3155
|
-
var _react = _interopRequireWildcard(
|
|
3155
|
+
var _react = _interopRequireWildcard(React);
|
|
3156
3156
|
|
|
3157
3157
|
|
|
3158
3158
|
|
|
@@ -3562,7 +3562,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3562
3562
|
});
|
|
3563
3563
|
exports["default"] = createSinglePlayer;
|
|
3564
3564
|
|
|
3565
|
-
var _react = _interopRequireWildcard(
|
|
3565
|
+
var _react = _interopRequireWildcard(React);
|
|
3566
3566
|
|
|
3567
3567
|
|
|
3568
3568
|
|
|
@@ -3720,7 +3720,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3720
3720
|
});
|
|
3721
3721
|
exports["default"] = exports.YouTube = void 0;
|
|
3722
3722
|
|
|
3723
|
-
var _react = _interopRequireWildcard(
|
|
3723
|
+
var _react = _interopRequireWildcard(React);
|
|
3724
3724
|
|
|
3725
3725
|
|
|
3726
3726
|
|
|
@@ -4029,7 +4029,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4029
4029
|
});
|
|
4030
4030
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4031
4031
|
|
|
4032
|
-
var _react = _interopRequireWildcard(
|
|
4032
|
+
var _react = _interopRequireWildcard(React);
|
|
4033
4033
|
|
|
4034
4034
|
|
|
4035
4035
|
|
|
@@ -4246,7 +4246,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4246
4246
|
});
|
|
4247
4247
|
exports["default"] = exports.Vimeo = void 0;
|
|
4248
4248
|
|
|
4249
|
-
var _react = _interopRequireWildcard(
|
|
4249
|
+
var _react = _interopRequireWildcard(React);
|
|
4250
4250
|
|
|
4251
4251
|
|
|
4252
4252
|
|
|
@@ -4502,7 +4502,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4502
4502
|
});
|
|
4503
4503
|
exports["default"] = exports.Facebook = void 0;
|
|
4504
4504
|
|
|
4505
|
-
var _react = _interopRequireWildcard(
|
|
4505
|
+
var _react = _interopRequireWildcard(React);
|
|
4506
4506
|
|
|
4507
4507
|
|
|
4508
4508
|
|
|
@@ -4714,7 +4714,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4714
4714
|
});
|
|
4715
4715
|
exports["default"] = exports.Streamable = void 0;
|
|
4716
4716
|
|
|
4717
|
-
var _react = _interopRequireWildcard(
|
|
4717
|
+
var _react = _interopRequireWildcard(React);
|
|
4718
4718
|
|
|
4719
4719
|
|
|
4720
4720
|
|
|
@@ -4925,7 +4925,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4925
4925
|
});
|
|
4926
4926
|
exports["default"] = exports.Wistia = void 0;
|
|
4927
4927
|
|
|
4928
|
-
var _react = _interopRequireWildcard(
|
|
4928
|
+
var _react = _interopRequireWildcard(React);
|
|
4929
4929
|
|
|
4930
4930
|
|
|
4931
4931
|
|
|
@@ -5168,7 +5168,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5168
5168
|
});
|
|
5169
5169
|
exports["default"] = exports.Twitch = void 0;
|
|
5170
5170
|
|
|
5171
|
-
var _react = _interopRequireWildcard(
|
|
5171
|
+
var _react = _interopRequireWildcard(React);
|
|
5172
5172
|
|
|
5173
5173
|
|
|
5174
5174
|
|
|
@@ -5384,7 +5384,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5384
5384
|
});
|
|
5385
5385
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5386
5386
|
|
|
5387
|
-
var _react = _interopRequireWildcard(
|
|
5387
|
+
var _react = _interopRequireWildcard(React);
|
|
5388
5388
|
|
|
5389
5389
|
|
|
5390
5390
|
|
|
@@ -5620,7 +5620,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5620
5620
|
});
|
|
5621
5621
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5622
5622
|
|
|
5623
|
-
var _react = _interopRequireWildcard(
|
|
5623
|
+
var _react = _interopRequireWildcard(React);
|
|
5624
5624
|
|
|
5625
5625
|
|
|
5626
5626
|
|
|
@@ -5819,7 +5819,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5819
5819
|
});
|
|
5820
5820
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5821
5821
|
|
|
5822
|
-
var _react = _interopRequireWildcard(
|
|
5822
|
+
var _react = _interopRequireWildcard(React);
|
|
5823
5823
|
|
|
5824
5824
|
|
|
5825
5825
|
|
|
@@ -6386,7 +6386,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6386
6386
|
});
|
|
6387
6387
|
exports["default"] = void 0;
|
|
6388
6388
|
|
|
6389
|
-
var _react = _interopRequireWildcard(
|
|
6389
|
+
var _react = _interopRequireWildcard(React);
|
|
6390
6390
|
|
|
6391
6391
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6392
6392
|
|
|
@@ -6565,7 +6565,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6565
6565
|
});
|
|
6566
6566
|
exports["default"] = renderPreloadPlayers;
|
|
6567
6567
|
|
|
6568
|
-
var _react = _interopRequireDefault(
|
|
6568
|
+
var _react = _interopRequireDefault(React);
|
|
6569
6569
|
|
|
6570
6570
|
var _Player = _interopRequireDefault(Player_1);
|
|
6571
6571
|
|
|
@@ -6704,7 +6704,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6704
6704
|
});
|
|
6705
6705
|
exports["default"] = void 0;
|
|
6706
6706
|
|
|
6707
|
-
var _react = _interopRequireWildcard(
|
|
6707
|
+
var _react = _interopRequireWildcard(React);
|
|
6708
6708
|
|
|
6709
6709
|
|
|
6710
6710
|
|
|
@@ -7018,20 +7018,20 @@ var Audio = function Audio(_ref) {
|
|
|
7018
7018
|
var node = _ref.node;
|
|
7019
7019
|
|
|
7020
7020
|
if (node.uploadAudio) {
|
|
7021
|
-
return
|
|
7021
|
+
return React.createElement(
|
|
7022
7022
|
'div',
|
|
7023
7023
|
{ className: 'audio d-block text-center mb-3' },
|
|
7024
|
-
|
|
7024
|
+
React.createElement(
|
|
7025
7025
|
'audio',
|
|
7026
7026
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7027
|
-
|
|
7028
|
-
|
|
7027
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7028
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7029
7029
|
'Your browser does not support the audio element.'
|
|
7030
7030
|
),
|
|
7031
|
-
node.caption &&
|
|
7031
|
+
node.caption && React.createElement(
|
|
7032
7032
|
'p',
|
|
7033
7033
|
{ style: { fontSize: '.9rem' } },
|
|
7034
|
-
|
|
7034
|
+
React.createElement(
|
|
7035
7035
|
'em',
|
|
7036
7036
|
null,
|
|
7037
7037
|
node.caption
|
|
@@ -7041,15 +7041,15 @@ var Audio = function Audio(_ref) {
|
|
|
7041
7041
|
} else if (node.audioFilePth) {
|
|
7042
7042
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7043
7043
|
if (hostname === 'embeds.audioboom.com') {
|
|
7044
|
-
return
|
|
7044
|
+
return React.createElement(
|
|
7045
7045
|
'div',
|
|
7046
7046
|
null,
|
|
7047
|
-
|
|
7047
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7048
7048
|
' ',
|
|
7049
|
-
node.caption &&
|
|
7049
|
+
node.caption && React.createElement(
|
|
7050
7050
|
'p',
|
|
7051
7051
|
{ style: { fontSize: '.9rem' } },
|
|
7052
|
-
|
|
7052
|
+
React.createElement(
|
|
7053
7053
|
'em',
|
|
7054
7054
|
null,
|
|
7055
7055
|
node.caption
|
|
@@ -7057,14 +7057,14 @@ var Audio = function Audio(_ref) {
|
|
|
7057
7057
|
)
|
|
7058
7058
|
);
|
|
7059
7059
|
}
|
|
7060
|
-
return
|
|
7060
|
+
return React.createElement(
|
|
7061
7061
|
'div',
|
|
7062
7062
|
{ className: 'audio' },
|
|
7063
|
-
|
|
7064
|
-
node.caption &&
|
|
7063
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7064
|
+
node.caption && React.createElement(
|
|
7065
7065
|
'p',
|
|
7066
7066
|
{ style: { fontSize: '.9rem' } },
|
|
7067
|
-
|
|
7067
|
+
React.createElement(
|
|
7068
7068
|
'em',
|
|
7069
7069
|
null,
|
|
7070
7070
|
node.caption
|
|
@@ -7082,34 +7082,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7082
7082
|
var profileImage = arguments[6];
|
|
7083
7083
|
|
|
7084
7084
|
if (authorName && authorURL) {
|
|
7085
|
-
return
|
|
7085
|
+
return React.createElement(
|
|
7086
7086
|
'span',
|
|
7087
7087
|
null,
|
|
7088
|
-
|
|
7088
|
+
React.createElement(
|
|
7089
7089
|
'a',
|
|
7090
7090
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7091
7091
|
authorName
|
|
7092
7092
|
),
|
|
7093
|
-
|
|
7093
|
+
React.createElement(
|
|
7094
7094
|
Card,
|
|
7095
7095
|
{ className: 'author-details-card-' + index },
|
|
7096
|
-
|
|
7096
|
+
React.createElement(
|
|
7097
7097
|
Row,
|
|
7098
7098
|
null,
|
|
7099
|
-
profileImage &&
|
|
7099
|
+
profileImage && React.createElement(
|
|
7100
7100
|
Col,
|
|
7101
7101
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7102
|
-
|
|
7102
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7103
7103
|
),
|
|
7104
|
-
|
|
7104
|
+
React.createElement(
|
|
7105
7105
|
Col,
|
|
7106
7106
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7107
|
-
|
|
7107
|
+
React.createElement(
|
|
7108
7108
|
'div',
|
|
7109
7109
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7110
7110
|
authorName
|
|
7111
7111
|
),
|
|
7112
|
-
|
|
7112
|
+
React.createElement(
|
|
7113
7113
|
'p',
|
|
7114
7114
|
null,
|
|
7115
7115
|
biography
|
|
@@ -7117,7 +7117,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7117
7117
|
)
|
|
7118
7118
|
)
|
|
7119
7119
|
),
|
|
7120
|
-
|
|
7120
|
+
React.createElement(
|
|
7121
7121
|
'style',
|
|
7122
7122
|
{ jsx: 'true' },
|
|
7123
7123
|
'\n .author-details-card-' + index + ' {\n display: none;\n position: absolute;\n width: 90%;\n max-width: 450px;\n z-index: 9999;\n }\n .author-details-card-' + index + ' h5 {\n font-weight: 500;\n }\n .author-details-link-' + index + ':hover + .author-details-card-' + index + ', .author-details-card-' + index + ':hover {\n display: block;\n box-shadow: 0px 0px 5px #aaa;\n padding: 15px;\n border-radius: 5px;\n }\n '
|
|
@@ -7125,7 +7125,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7125
7125
|
length !== index + 1 && ' , '
|
|
7126
7126
|
);
|
|
7127
7127
|
} else if (authorName) {
|
|
7128
|
-
return
|
|
7128
|
+
return React.createElement(
|
|
7129
7129
|
'span',
|
|
7130
7130
|
{ key: index },
|
|
7131
7131
|
authorName,
|
|
@@ -7280,8 +7280,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7280
7280
|
var duration = player.getDuration();
|
|
7281
7281
|
var queue = Math.floor(duration / 10);
|
|
7282
7282
|
var segment = Math.floor(current / queue);
|
|
7283
|
-
Beam.report_beam_video('Ready',
|
|
7284
|
-
Segment.report_video_event('Video Ready',
|
|
7283
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
7284
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
7285
7285
|
//autoplay
|
|
7286
7286
|
|
|
7287
7287
|
//Small pause before starting next video
|
|
@@ -7301,8 +7301,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7301
7301
|
var queue = Math.floor(duration / 10);
|
|
7302
7302
|
var segment = Math.floor(current / queue);
|
|
7303
7303
|
|
|
7304
|
-
Beam.report_beam_video('End',
|
|
7305
|
-
Segment.report_video_event('Video End',
|
|
7304
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
7305
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
7306
7306
|
setEndReported(true);
|
|
7307
7307
|
clearInterval(intervalID);
|
|
7308
7308
|
}
|
|
@@ -7352,8 +7352,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7352
7352
|
var queue = Math.floor(duration / 10);
|
|
7353
7353
|
var segment = Math.floor(current / queue);
|
|
7354
7354
|
if (!queueProgress.includes(segment)) {
|
|
7355
|
-
Beam.report_beam_video('Segment',
|
|
7356
|
-
Segment.report_video_event('Video Segment',
|
|
7355
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
7356
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
7357
7357
|
queueProgress.push(segment);
|
|
7358
7358
|
}
|
|
7359
7359
|
};
|
|
@@ -7366,8 +7366,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7366
7366
|
var queue = Math.floor(duration / 10);
|
|
7367
7367
|
var segment = Math.floor(current / queue);
|
|
7368
7368
|
|
|
7369
|
-
Beam.report_beam_video('Play',
|
|
7370
|
-
Segment.report_video_event('Video Play',
|
|
7369
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
7370
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
7371
7371
|
|
|
7372
7372
|
if (!playReported) {
|
|
7373
7373
|
setPlayReported(true);
|
|
@@ -7385,8 +7385,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7385
7385
|
var queue = Math.floor(duration / 10);
|
|
7386
7386
|
var segment = Math.floor(current / queue);
|
|
7387
7387
|
|
|
7388
|
-
Beam.report_beam_video('Pause',
|
|
7389
|
-
Segment.report_video_event('Video Pause',
|
|
7388
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
7389
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
7390
7390
|
};
|
|
7391
7391
|
|
|
7392
7392
|
// Youtube Options
|
|
@@ -7397,44 +7397,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7397
7397
|
}
|
|
7398
7398
|
};
|
|
7399
7399
|
|
|
7400
|
-
return
|
|
7400
|
+
return React.createElement(
|
|
7401
7401
|
'div',
|
|
7402
7402
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7403
|
-
|
|
7403
|
+
React.createElement(
|
|
7404
7404
|
'div',
|
|
7405
7405
|
{ className: 'mt-2 mb-5' },
|
|
7406
|
-
series &&
|
|
7406
|
+
series && React.createElement(
|
|
7407
7407
|
'div',
|
|
7408
7408
|
{ style: { fontSize: '0.9rem' } },
|
|
7409
7409
|
article.title,
|
|
7410
7410
|
' - Episode ',
|
|
7411
7411
|
series
|
|
7412
7412
|
),
|
|
7413
|
-
Videos[series - 1] &&
|
|
7413
|
+
Videos[series - 1] && React.createElement(
|
|
7414
7414
|
'h1',
|
|
7415
7415
|
{ className: 'mb-3' },
|
|
7416
7416
|
Videos[series - 1].title
|
|
7417
7417
|
),
|
|
7418
|
-
|
|
7418
|
+
React.createElement(
|
|
7419
7419
|
'div',
|
|
7420
7420
|
null,
|
|
7421
7421
|
moment(article.published).format('LL')
|
|
7422
7422
|
),
|
|
7423
|
-
|
|
7423
|
+
React.createElement(
|
|
7424
7424
|
'div',
|
|
7425
7425
|
{ className: 'mb-3' },
|
|
7426
7426
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7427
|
-
return
|
|
7427
|
+
return React.createElement(
|
|
7428
7428
|
'span',
|
|
7429
7429
|
{ key: index },
|
|
7430
7430
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7431
7431
|
);
|
|
7432
7432
|
})
|
|
7433
7433
|
),
|
|
7434
|
-
|
|
7434
|
+
React.createElement(
|
|
7435
7435
|
'p',
|
|
7436
7436
|
null,
|
|
7437
|
-
|
|
7437
|
+
React.createElement(SocialShare, {
|
|
7438
7438
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7439
7439
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7440
7440
|
shareVia: meta.shareVia,
|
|
@@ -7449,20 +7449,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7449
7449
|
hideFacebook: meta.hideFBShare
|
|
7450
7450
|
})
|
|
7451
7451
|
),
|
|
7452
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7452
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7453
7453
|
'p',
|
|
7454
7454
|
{ className: 'mb-3' },
|
|
7455
|
-
|
|
7455
|
+
React.createElement(
|
|
7456
7456
|
'em',
|
|
7457
7457
|
null,
|
|
7458
7458
|
Videos[series - 1].intro
|
|
7459
7459
|
)
|
|
7460
7460
|
)
|
|
7461
7461
|
),
|
|
7462
|
-
|
|
7462
|
+
React.createElement(
|
|
7463
7463
|
'div',
|
|
7464
7464
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7465
|
-
vidUrl && vidType == 'youtube' &&
|
|
7465
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7466
7466
|
className: 'fluid-iframe',
|
|
7467
7467
|
videoId: getYoutubeId(vidUrl),
|
|
7468
7468
|
opts: opts,
|
|
@@ -7473,10 +7473,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7473
7473
|
return handleOnEnd(e);
|
|
7474
7474
|
}
|
|
7475
7475
|
}),
|
|
7476
|
-
vidUrl && vidType == 'mp4' &&
|
|
7477
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7478
|
-
|
|
7479
|
-
series &&
|
|
7476
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7477
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7478
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7479
|
+
series && React.createElement(
|
|
7480
7480
|
'div',
|
|
7481
7481
|
{
|
|
7482
7482
|
className: 'vid-series',
|
|
@@ -7486,10 +7486,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7486
7486
|
maxHeight: '100%',
|
|
7487
7487
|
paddingBottom: '0'
|
|
7488
7488
|
} },
|
|
7489
|
-
|
|
7489
|
+
React.createElement(
|
|
7490
7490
|
'p',
|
|
7491
7491
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7492
|
-
|
|
7492
|
+
React.createElement(
|
|
7493
7493
|
'b',
|
|
7494
7494
|
{ style: { fontSize: '1.25em' } },
|
|
7495
7495
|
'Now Playing:'
|
|
@@ -7497,16 +7497,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7497
7497
|
' ',
|
|
7498
7498
|
seriesData[series ? series - 1 : 0].title
|
|
7499
7499
|
),
|
|
7500
|
-
vidUrl &&
|
|
7500
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7501
7501
|
)
|
|
7502
7502
|
),
|
|
7503
|
-
|
|
7504
|
-
|
|
7503
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7504
|
+
React.createElement(
|
|
7505
7505
|
'div',
|
|
7506
7506
|
{ className: 'vid-text' },
|
|
7507
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7507
|
+
Videos[series - 1] && Videos[series - 1].text && React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7508
7508
|
),
|
|
7509
|
-
|
|
7509
|
+
React.createElement(
|
|
7510
7510
|
'style',
|
|
7511
7511
|
{ jsx: 'true' },
|
|
7512
7512
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7559,67 +7559,67 @@ var Poll = function Poll(_ref) {
|
|
|
7559
7559
|
return acc;
|
|
7560
7560
|
}
|
|
7561
7561
|
}, 0);
|
|
7562
|
-
return
|
|
7563
|
-
|
|
7562
|
+
return React.createElement(
|
|
7563
|
+
React.Fragment,
|
|
7564
7564
|
null,
|
|
7565
|
-
question &&
|
|
7565
|
+
question && React.createElement(
|
|
7566
7566
|
'p',
|
|
7567
7567
|
{ className: 'font-weight-bold' },
|
|
7568
7568
|
question
|
|
7569
7569
|
),
|
|
7570
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7570
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7571
7571
|
'form',
|
|
7572
7572
|
{ onSubmit: function onSubmit(e) {
|
|
7573
7573
|
return onSubmitPoll(e);
|
|
7574
7574
|
} },
|
|
7575
7575
|
choices && choices.map(function (choice) {
|
|
7576
|
-
return
|
|
7576
|
+
return React.createElement(
|
|
7577
7577
|
'div',
|
|
7578
7578
|
{ key: choice._key },
|
|
7579
|
-
|
|
7579
|
+
React.createElement(
|
|
7580
7580
|
'label',
|
|
7581
7581
|
{ className: 'pl-2' },
|
|
7582
|
-
|
|
7582
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7583
7583
|
return setSelectedChoice(e.target.value);
|
|
7584
7584
|
} }),
|
|
7585
7585
|
' ' + choice.choiceText
|
|
7586
7586
|
)
|
|
7587
7587
|
);
|
|
7588
7588
|
}),
|
|
7589
|
-
|
|
7589
|
+
React.createElement(
|
|
7590
7590
|
Button,
|
|
7591
7591
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7592
7592
|
'Vote'
|
|
7593
7593
|
)
|
|
7594
7594
|
),
|
|
7595
|
-
|
|
7595
|
+
React.createElement(
|
|
7596
7596
|
'div',
|
|
7597
7597
|
{ className: 'progress-container' },
|
|
7598
7598
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7599
7599
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7600
|
-
return
|
|
7600
|
+
return React.createElement(
|
|
7601
7601
|
'div',
|
|
7602
7602
|
{ key: choice._key, className: 'mb-3' },
|
|
7603
|
-
|
|
7603
|
+
React.createElement(
|
|
7604
7604
|
'div',
|
|
7605
7605
|
{ className: 'correct-answer' },
|
|
7606
|
-
|
|
7606
|
+
React.createElement(
|
|
7607
7607
|
'div',
|
|
7608
7608
|
null,
|
|
7609
7609
|
choice.choiceText
|
|
7610
7610
|
),
|
|
7611
|
-
choice.choiceAnswer === true &&
|
|
7611
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7612
7612
|
'div',
|
|
7613
7613
|
null,
|
|
7614
|
-
|
|
7614
|
+
React.createElement(
|
|
7615
7615
|
'span',
|
|
7616
7616
|
{ style: { color: 'limegreen' } },
|
|
7617
7617
|
'Correct!'
|
|
7618
7618
|
)
|
|
7619
7619
|
)
|
|
7620
7620
|
),
|
|
7621
|
-
|
|
7622
|
-
|
|
7621
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7622
|
+
React.createElement(
|
|
7623
7623
|
'span',
|
|
7624
7624
|
{ className: 'float-right' },
|
|
7625
7625
|
percentage,
|
|
@@ -7630,14 +7630,14 @@ var Poll = function Poll(_ref) {
|
|
|
7630
7630
|
);
|
|
7631
7631
|
})
|
|
7632
7632
|
),
|
|
7633
|
-
showAnswer &&
|
|
7633
|
+
showAnswer && React.createElement(
|
|
7634
7634
|
'h4',
|
|
7635
7635
|
{ className: 'text-center small p-3' },
|
|
7636
7636
|
'Total Votes: ',
|
|
7637
7637
|
choicesTotalCount
|
|
7638
7638
|
),
|
|
7639
|
-
showAnswer && response &&
|
|
7640
|
-
|
|
7639
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7640
|
+
React.createElement(
|
|
7641
7641
|
'style',
|
|
7642
7642
|
{ jsx: 'true' },
|
|
7643
7643
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7736,67 +7736,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7736
7736
|
return acc;
|
|
7737
7737
|
}
|
|
7738
7738
|
}, 0);
|
|
7739
|
-
return
|
|
7740
|
-
|
|
7739
|
+
return React.createElement(
|
|
7740
|
+
React.Fragment,
|
|
7741
7741
|
null,
|
|
7742
|
-
question &&
|
|
7742
|
+
question && React.createElement(
|
|
7743
7743
|
'p',
|
|
7744
7744
|
{ className: 'font-weight-bold' },
|
|
7745
7745
|
question
|
|
7746
7746
|
),
|
|
7747
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7747
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7748
7748
|
'form',
|
|
7749
7749
|
{ onSubmit: function onSubmit(e) {
|
|
7750
7750
|
return onSubmitPoll(e);
|
|
7751
7751
|
} },
|
|
7752
7752
|
choices && choices.map(function (choice) {
|
|
7753
|
-
return
|
|
7753
|
+
return React.createElement(
|
|
7754
7754
|
'div',
|
|
7755
7755
|
{ key: choice._key },
|
|
7756
|
-
|
|
7756
|
+
React.createElement(
|
|
7757
7757
|
'label',
|
|
7758
7758
|
{ className: 'pl-2' },
|
|
7759
|
-
|
|
7759
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7760
7760
|
return setSelectedChoice(e.target.value);
|
|
7761
7761
|
} }),
|
|
7762
7762
|
' ' + choice.choiceText
|
|
7763
7763
|
)
|
|
7764
7764
|
);
|
|
7765
7765
|
}),
|
|
7766
|
-
|
|
7766
|
+
React.createElement(
|
|
7767
7767
|
Button,
|
|
7768
7768
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7769
7769
|
'Vote'
|
|
7770
7770
|
)
|
|
7771
7771
|
),
|
|
7772
|
-
|
|
7772
|
+
React.createElement(
|
|
7773
7773
|
'div',
|
|
7774
7774
|
{ className: 'progress-container' },
|
|
7775
7775
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7776
7776
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7777
|
-
return
|
|
7777
|
+
return React.createElement(
|
|
7778
7778
|
'div',
|
|
7779
7779
|
{ key: choice._key, className: 'mb-3' },
|
|
7780
|
-
|
|
7780
|
+
React.createElement(
|
|
7781
7781
|
'div',
|
|
7782
7782
|
{ className: 'correct-answer' },
|
|
7783
|
-
|
|
7783
|
+
React.createElement(
|
|
7784
7784
|
'div',
|
|
7785
7785
|
null,
|
|
7786
7786
|
choice.choiceText
|
|
7787
7787
|
),
|
|
7788
|
-
choice.choiceAnswer === true &&
|
|
7788
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7789
7789
|
'div',
|
|
7790
7790
|
null,
|
|
7791
|
-
|
|
7791
|
+
React.createElement(
|
|
7792
7792
|
'span',
|
|
7793
7793
|
{ style: { color: 'limegreen' } },
|
|
7794
7794
|
'Correct!'
|
|
7795
7795
|
)
|
|
7796
7796
|
)
|
|
7797
7797
|
),
|
|
7798
|
-
|
|
7799
|
-
|
|
7798
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7799
|
+
React.createElement(
|
|
7800
7800
|
'span',
|
|
7801
7801
|
{ className: 'float-right' },
|
|
7802
7802
|
percentage,
|
|
@@ -7807,14 +7807,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7807
7807
|
);
|
|
7808
7808
|
})
|
|
7809
7809
|
),
|
|
7810
|
-
showAnswer &&
|
|
7810
|
+
showAnswer && React.createElement(
|
|
7811
7811
|
'h4',
|
|
7812
7812
|
{ className: 'text-center small p-3' },
|
|
7813
7813
|
'Total Votes: ',
|
|
7814
7814
|
choicesTotalCount
|
|
7815
7815
|
),
|
|
7816
|
-
showAnswer && response &&
|
|
7817
|
-
|
|
7816
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7817
|
+
React.createElement(
|
|
7818
7818
|
'style',
|
|
7819
7819
|
{ jsx: 'true' },
|
|
7820
7820
|
'\n .correct-answer {\n width: 100%;\n display: flex;\n justify-content: space-between;\n padding: 0 0.5rem;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7822,7 +7822,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7822
7822
|
);
|
|
7823
7823
|
};
|
|
7824
7824
|
|
|
7825
|
-
var numberOfPaginations =
|
|
7825
|
+
var numberOfPaginations = main_39 ? 4 : 10;
|
|
7826
7826
|
|
|
7827
7827
|
var Quiz = function Quiz(_ref) {
|
|
7828
7828
|
var quizzes = _ref.quizzes,
|
|
@@ -7940,34 +7940,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7940
7940
|
};
|
|
7941
7941
|
|
|
7942
7942
|
var renderPagination = function renderPagination() {
|
|
7943
|
-
return
|
|
7944
|
-
Pagination
|
|
7945
|
-
{ className: 'p-0 m-0', size:
|
|
7946
|
-
|
|
7943
|
+
return React.createElement(
|
|
7944
|
+
Pagination,
|
|
7945
|
+
{ className: 'p-0 m-0', size: main_39 && 'sm' },
|
|
7946
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7947
7947
|
return changePage('first');
|
|
7948
7948
|
}, disabled: currentPage === 1 }),
|
|
7949
|
-
|
|
7949
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7950
7950
|
return changePage('prev');
|
|
7951
7951
|
}, disabled: currentPage === 1 }),
|
|
7952
|
-
|
|
7952
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7953
7953
|
return renderNewPages('prev');
|
|
7954
7954
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7955
7955
|
pages.map(function (page) {
|
|
7956
|
-
return
|
|
7957
|
-
Pagination
|
|
7956
|
+
return React.createElement(
|
|
7957
|
+
Pagination.Item,
|
|
7958
7958
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7959
7959
|
return changePage(page);
|
|
7960
7960
|
} },
|
|
7961
7961
|
page
|
|
7962
7962
|
);
|
|
7963
7963
|
}),
|
|
7964
|
-
|
|
7964
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7965
7965
|
return renderNewPages('next');
|
|
7966
7966
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7967
|
-
|
|
7967
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7968
7968
|
return changePage('next');
|
|
7969
7969
|
}, disabled: currentPage === pageCount }),
|
|
7970
|
-
|
|
7970
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7971
7971
|
return changePage('last');
|
|
7972
7972
|
}, disabled: currentPage === pageCount })
|
|
7973
7973
|
);
|
|
@@ -8050,51 +8050,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8050
8050
|
}
|
|
8051
8051
|
};
|
|
8052
8052
|
|
|
8053
|
-
return
|
|
8054
|
-
|
|
8053
|
+
return React.createElement(
|
|
8054
|
+
React.Fragment,
|
|
8055
8055
|
null,
|
|
8056
|
-
quizzes[currentPage - 1] &&
|
|
8057
|
-
|
|
8056
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8057
|
+
React.Fragment,
|
|
8058
8058
|
null,
|
|
8059
|
-
|
|
8060
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8059
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8060
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8061
8061
|
'form',
|
|
8062
8062
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8063
8063
|
return e.preventDefault();
|
|
8064
8064
|
} },
|
|
8065
8065
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8066
|
-
return
|
|
8066
|
+
return React.createElement(
|
|
8067
8067
|
'div',
|
|
8068
8068
|
{ key: answer._key },
|
|
8069
|
-
|
|
8069
|
+
React.createElement(
|
|
8070
8070
|
'label',
|
|
8071
8071
|
{ className: 'pl-2' },
|
|
8072
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8072
|
+
quizzes[currentPage - 1].multiAnswer ? React.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8073
8073
|
' ' + answer.answerText
|
|
8074
8074
|
)
|
|
8075
8075
|
);
|
|
8076
8076
|
})
|
|
8077
8077
|
)
|
|
8078
8078
|
),
|
|
8079
|
-
!showAnswer &&
|
|
8079
|
+
!showAnswer && React.createElement(
|
|
8080
8080
|
Button$1,
|
|
8081
8081
|
{ onClick: function onClick() {
|
|
8082
8082
|
return checkAnswers();
|
|
8083
8083
|
}, variant: 'info', block: true },
|
|
8084
8084
|
'Please click here for answer'
|
|
8085
8085
|
),
|
|
8086
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8087
|
-
|
|
8086
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8087
|
+
React.Fragment,
|
|
8088
8088
|
null,
|
|
8089
|
-
|
|
8089
|
+
React.createElement(
|
|
8090
8090
|
'h4',
|
|
8091
8091
|
null,
|
|
8092
8092
|
'Answer:'
|
|
8093
8093
|
),
|
|
8094
|
-
quizzes[currentPage - 1].answer &&
|
|
8094
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8095
8095
|
),
|
|
8096
|
-
|
|
8097
|
-
pageCount > 1 &&
|
|
8096
|
+
React.createElement('br', null),
|
|
8097
|
+
pageCount > 1 && React.createElement(
|
|
8098
8098
|
'div',
|
|
8099
8099
|
{ className: 'd-flex justify-content-center' },
|
|
8100
8100
|
renderPagination()
|
|
@@ -8105,10 +8105,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8105
8105
|
var Leads = function Leads(_ref) {
|
|
8106
8106
|
var url = _ref.url;
|
|
8107
8107
|
|
|
8108
|
-
return
|
|
8108
|
+
return React.createElement(
|
|
8109
8109
|
'div',
|
|
8110
8110
|
{ className: 'd-block text-center mb-3' },
|
|
8111
|
-
url &&
|
|
8111
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8112
8112
|
);
|
|
8113
8113
|
};
|
|
8114
8114
|
|
|
@@ -8148,53 +8148,53 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8148
8148
|
setCarouselIndex(selectedIndex);
|
|
8149
8149
|
};
|
|
8150
8150
|
|
|
8151
|
-
return
|
|
8151
|
+
return React.createElement(
|
|
8152
8152
|
'div',
|
|
8153
8153
|
{ className: 'mt-3 mb-4' },
|
|
8154
|
-
|
|
8154
|
+
React.createElement(
|
|
8155
8155
|
Carousel,
|
|
8156
8156
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8157
8157
|
slides && slides.map(function (slide) {
|
|
8158
8158
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8159
|
-
return
|
|
8159
|
+
return React.createElement(
|
|
8160
8160
|
Carousel.Item,
|
|
8161
8161
|
{ key: slide._key },
|
|
8162
|
-
|
|
8162
|
+
React.createElement(
|
|
8163
8163
|
'a',
|
|
8164
8164
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8165
|
-
|
|
8165
|
+
React.createElement(
|
|
8166
8166
|
'div',
|
|
8167
8167
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8168
|
-
|
|
8168
|
+
React.createElement(
|
|
8169
8169
|
LazyLoad,
|
|
8170
8170
|
null,
|
|
8171
|
-
|
|
8171
|
+
React.createElement(
|
|
8172
8172
|
'picture',
|
|
8173
8173
|
null,
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8174
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8175
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8176
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8177
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8178
8178
|
)
|
|
8179
8179
|
)
|
|
8180
8180
|
)
|
|
8181
8181
|
),
|
|
8182
|
-
|
|
8182
|
+
React.createElement(
|
|
8183
8183
|
'div',
|
|
8184
8184
|
{ className: 'p-2' },
|
|
8185
|
-
slide.slideshowImage.caption &&
|
|
8185
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8186
8186
|
'h3',
|
|
8187
8187
|
{ style: { padding: '0px' } },
|
|
8188
8188
|
slide.slideshowImage.caption
|
|
8189
8189
|
),
|
|
8190
|
-
slide.description &&
|
|
8190
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8191
8191
|
)
|
|
8192
8192
|
);
|
|
8193
8193
|
}
|
|
8194
8194
|
return null;
|
|
8195
8195
|
})
|
|
8196
8196
|
),
|
|
8197
|
-
|
|
8197
|
+
React.createElement(
|
|
8198
8198
|
'style',
|
|
8199
8199
|
{ jsx: 'true' },
|
|
8200
8200
|
'\n .embed-item-img {\n max-width: 100%;\n max-height: 750px;\n }\n .carousel-indicators {\n bottom: -2.5rem !important;\n }\n .carousel-indicators li {\n width: 20px;\n height: 20px;\n border-radius: 50% !important;\n background-color: var(--secondary);\n }\n .carousel-control-prev {\n justify-content: flex-start;\n }\n .carousel-control-next {\n justify-content: flex-end;\n }\n '
|
|
@@ -8213,10 +8213,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8213
8213
|
sizes = _props$node.sizes,
|
|
8214
8214
|
sizeMapping = _props$node.sizeMapping;
|
|
8215
8215
|
|
|
8216
|
-
return
|
|
8216
|
+
return React.createElement(
|
|
8217
8217
|
'div',
|
|
8218
8218
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8219
|
-
|
|
8219
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8220
8220
|
);
|
|
8221
8221
|
};
|
|
8222
8222
|
|
|
@@ -8227,15 +8227,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8227
8227
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8228
8228
|
|
|
8229
8229
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8230
|
-
return
|
|
8230
|
+
return React.createElement(
|
|
8231
8231
|
'section',
|
|
8232
8232
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8233
|
-
Caption &&
|
|
8233
|
+
Caption && React.createElement(
|
|
8234
8234
|
'h4',
|
|
8235
8235
|
{ className: 'formstack-caption' },
|
|
8236
8236
|
Caption
|
|
8237
8237
|
),
|
|
8238
|
-
|
|
8238
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8239
8239
|
);
|
|
8240
8240
|
};
|
|
8241
8241
|
|
|
@@ -8251,36 +8251,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8251
8251
|
}
|
|
8252
8252
|
});
|
|
8253
8253
|
if (medias && medias.length > 0) {
|
|
8254
|
-
return
|
|
8254
|
+
return React.createElement(
|
|
8255
8255
|
'div',
|
|
8256
8256
|
{ className: 'multi-media-container' },
|
|
8257
|
-
|
|
8257
|
+
React.createElement(
|
|
8258
8258
|
Row$1,
|
|
8259
8259
|
{ noGutters: true },
|
|
8260
8260
|
medias.map(function (media) {
|
|
8261
|
-
return
|
|
8261
|
+
return React.createElement(
|
|
8262
8262
|
Col$1,
|
|
8263
8263
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8264
|
-
|
|
8264
|
+
React.createElement(
|
|
8265
8265
|
'a',
|
|
8266
8266
|
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8267
8267
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8268
|
-
|
|
8268
|
+
React.createElement(
|
|
8269
8269
|
'div',
|
|
8270
8270
|
{ className: 'multi-media-image-container' },
|
|
8271
|
-
imageBox &&
|
|
8271
|
+
imageBox && React.createElement(
|
|
8272
8272
|
LazyLoad,
|
|
8273
8273
|
{ once: true },
|
|
8274
|
-
|
|
8274
|
+
React.createElement(
|
|
8275
8275
|
'picture',
|
|
8276
8276
|
null,
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8277
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8278
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8279
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8280
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8281
8281
|
)
|
|
8282
8282
|
),
|
|
8283
|
-
media.caption &&
|
|
8283
|
+
media.caption && React.createElement(
|
|
8284
8284
|
'span',
|
|
8285
8285
|
{ className: 'multi-media-caption' },
|
|
8286
8286
|
media.caption
|
|
@@ -8290,7 +8290,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8290
8290
|
);
|
|
8291
8291
|
})
|
|
8292
8292
|
),
|
|
8293
|
-
|
|
8293
|
+
React.createElement(
|
|
8294
8294
|
'style',
|
|
8295
8295
|
{ jsx: 'true' },
|
|
8296
8296
|
'\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 '
|
|
@@ -8337,7 +8337,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8337
8337
|
}
|
|
8338
8338
|
};
|
|
8339
8339
|
|
|
8340
|
-
_this.wraperRef =
|
|
8340
|
+
_this.wraperRef = React.createRef();
|
|
8341
8341
|
_this.visible = false;
|
|
8342
8342
|
return _this;
|
|
8343
8343
|
}
|
|
@@ -8365,7 +8365,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8365
8365
|
_props$id = _props.id,
|
|
8366
8366
|
id = _props$id === undefined ? '' : _props$id;
|
|
8367
8367
|
|
|
8368
|
-
return
|
|
8368
|
+
return React.createElement(
|
|
8369
8369
|
'div',
|
|
8370
8370
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8371
8371
|
this.props.children
|
|
@@ -8374,7 +8374,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8374
8374
|
}]);
|
|
8375
8375
|
|
|
8376
8376
|
return InscreenSensor;
|
|
8377
|
-
}(
|
|
8377
|
+
}(React.Component);
|
|
8378
8378
|
|
|
8379
8379
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8380
8380
|
var nodes = _ref.nodes,
|
|
@@ -8483,33 +8483,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8483
8483
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8484
8484
|
var showReading = show ? 'showReading' : '';
|
|
8485
8485
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8486
|
-
return
|
|
8486
|
+
return React.createElement(
|
|
8487
8487
|
'div',
|
|
8488
8488
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8489
|
-
|
|
8489
|
+
React.createElement(
|
|
8490
8490
|
'a',
|
|
8491
8491
|
{ onClick: function onClick(e) {
|
|
8492
8492
|
return articleCardClickHandler(e);
|
|
8493
8493
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8494
|
-
|
|
8494
|
+
React.createElement(
|
|
8495
8495
|
'div',
|
|
8496
8496
|
{ className: 'prevNext-thumbnail' },
|
|
8497
|
-
|
|
8498
|
-
|
|
8497
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8498
|
+
React.createElement(
|
|
8499
8499
|
'div',
|
|
8500
8500
|
{ className: 'prevNext-reading ' + showReading },
|
|
8501
8501
|
articleLabel
|
|
8502
8502
|
)
|
|
8503
8503
|
),
|
|
8504
|
-
|
|
8504
|
+
React.createElement(
|
|
8505
8505
|
'div',
|
|
8506
8506
|
{ className: 'prevNext-summary' },
|
|
8507
|
-
|
|
8507
|
+
React.createElement(
|
|
8508
8508
|
'div',
|
|
8509
8509
|
{ className: 'prevNext-publishDate' },
|
|
8510
8510
|
moment(article.published).format('LL')
|
|
8511
8511
|
),
|
|
8512
|
-
|
|
8512
|
+
React.createElement(
|
|
8513
8513
|
'h2',
|
|
8514
8514
|
{ className: 'prevNext-title' },
|
|
8515
8515
|
article.title
|
|
@@ -8558,7 +8558,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8558
8558
|
|
|
8559
8559
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8560
8560
|
if (biography) {
|
|
8561
|
-
return
|
|
8561
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8562
8562
|
}
|
|
8563
8563
|
};
|
|
8564
8564
|
|
|
@@ -8644,7 +8644,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8644
8644
|
//console.log('useLayoutEffect')
|
|
8645
8645
|
if (!firstLoad) {
|
|
8646
8646
|
setUpArrowClicked(false);
|
|
8647
|
-
if (
|
|
8647
|
+
if (main_40) {
|
|
8648
8648
|
grabLoadedAds();
|
|
8649
8649
|
} else {
|
|
8650
8650
|
scrollToArticle();
|
|
@@ -8668,7 +8668,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8668
8668
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8669
8669
|
if (pageview) pageview(path);
|
|
8670
8670
|
|
|
8671
|
-
if (!
|
|
8671
|
+
if (!main_40) {
|
|
8672
8672
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8673
8673
|
if (window.googletag && googletag.pubadsReady) {
|
|
8674
8674
|
lib_3.refresh();
|
|
@@ -8676,7 +8676,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8676
8676
|
});
|
|
8677
8677
|
}
|
|
8678
8678
|
//Refresh leaderboard ad on mobile
|
|
8679
|
-
if (
|
|
8679
|
+
if (main_40) {
|
|
8680
8680
|
var leaderboardSlotId = '';
|
|
8681
8681
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8682
8682
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8716,38 +8716,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8716
8716
|
setSensorVisible(false);
|
|
8717
8717
|
};
|
|
8718
8718
|
|
|
8719
|
-
return
|
|
8720
|
-
|
|
8719
|
+
return React.createElement(
|
|
8720
|
+
React.Fragment,
|
|
8721
8721
|
null,
|
|
8722
|
-
|
|
8722
|
+
React.createElement(
|
|
8723
8723
|
'div',
|
|
8724
8724
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8725
|
-
|
|
8725
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8726
8726
|
return handleArrowClick();
|
|
8727
8727
|
} })
|
|
8728
8728
|
),
|
|
8729
|
-
|
|
8730
|
-
|
|
8729
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8730
|
+
React.createElement(
|
|
8731
8731
|
'div',
|
|
8732
8732
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8733
|
-
|
|
8733
|
+
React.createElement(
|
|
8734
8734
|
'h5',
|
|
8735
8735
|
{ className: 'objective-title' },
|
|
8736
8736
|
nodes.seriesTitle
|
|
8737
8737
|
),
|
|
8738
|
-
|
|
8738
|
+
React.createElement(
|
|
8739
8739
|
'div',
|
|
8740
8740
|
{ className: 'prevNextWrapper' },
|
|
8741
8741
|
PrevNextCards(false, -1)
|
|
8742
8742
|
)
|
|
8743
8743
|
),
|
|
8744
|
-
|
|
8745
|
-
|
|
8744
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8745
|
+
React.createElement(
|
|
8746
8746
|
'div',
|
|
8747
8747
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8748
|
-
|
|
8748
|
+
main_40 && Ads.map(function (ad, index) {
|
|
8749
8749
|
if (index === 0) {
|
|
8750
|
-
return
|
|
8750
|
+
return React.createElement(
|
|
8751
8751
|
'div',
|
|
8752
8752
|
{
|
|
8753
8753
|
key: 'addid-1',
|
|
@@ -8767,14 +8767,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8767
8767
|
}
|
|
8768
8768
|
})
|
|
8769
8769
|
),
|
|
8770
|
-
|
|
8770
|
+
React.createElement(
|
|
8771
8771
|
'div',
|
|
8772
8772
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8773
8773
|
Articles.map(function (article, index) {
|
|
8774
|
-
return
|
|
8774
|
+
return React.createElement(
|
|
8775
8775
|
'div',
|
|
8776
8776
|
{ key: article.title },
|
|
8777
|
-
|
|
8777
|
+
React.createElement(
|
|
8778
8778
|
InscreenSensor,
|
|
8779
8779
|
{
|
|
8780
8780
|
visible: sensorVisible,
|
|
@@ -8792,84 +8792,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8792
8792
|
}
|
|
8793
8793
|
}
|
|
8794
8794
|
} },
|
|
8795
|
-
|
|
8795
|
+
React.createElement(
|
|
8796
8796
|
Head,
|
|
8797
8797
|
null,
|
|
8798
|
-
currentTitle !== null &&
|
|
8798
|
+
currentTitle !== null && React.createElement(
|
|
8799
8799
|
'title',
|
|
8800
8800
|
{ key: 'title' },
|
|
8801
8801
|
currentTitle
|
|
8802
8802
|
),
|
|
8803
|
-
currentSummary !== null &&
|
|
8804
|
-
currentURL !== null &&
|
|
8805
|
-
currentTitle !== null &&
|
|
8806
|
-
currentThumbnail !== null &&
|
|
8807
|
-
currentSummary !== null &&
|
|
8808
|
-
currentTitle !== null &&
|
|
8809
|
-
currentThumbnail !== null &&
|
|
8810
|
-
currentSummary !== null &&
|
|
8803
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8804
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8805
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8806
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8807
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8808
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8809
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8810
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8811
8811
|
),
|
|
8812
|
-
|
|
8812
|
+
React.createElement(
|
|
8813
8813
|
'article',
|
|
8814
8814
|
{ className: 'article-wrapper' },
|
|
8815
|
-
|
|
8815
|
+
React.createElement(
|
|
8816
8816
|
'div',
|
|
8817
8817
|
{ className: 'article-publishDate' },
|
|
8818
8818
|
moment(article.published).format('LL')
|
|
8819
8819
|
),
|
|
8820
|
-
|
|
8820
|
+
React.createElement(
|
|
8821
8821
|
'div',
|
|
8822
8822
|
{ className: 'author-details-wrapper' },
|
|
8823
8823
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8824
|
-
return
|
|
8824
|
+
return React.createElement(
|
|
8825
8825
|
'span',
|
|
8826
8826
|
{ key: index },
|
|
8827
8827
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8828
8828
|
);
|
|
8829
8829
|
})
|
|
8830
8830
|
),
|
|
8831
|
-
|
|
8831
|
+
React.createElement(
|
|
8832
8832
|
'h2',
|
|
8833
8833
|
{ className: 'article-title' },
|
|
8834
8834
|
article.title
|
|
8835
8835
|
),
|
|
8836
|
-
|
|
8836
|
+
React.createElement(
|
|
8837
8837
|
'div',
|
|
8838
8838
|
{ className: 'mt-2 mb-2' },
|
|
8839
|
-
|
|
8839
|
+
React.createElement(BlockContent, _extends({
|
|
8840
8840
|
serializers: getSerializers,
|
|
8841
8841
|
videoAccountIDs: accountIDs,
|
|
8842
8842
|
blocks: article.text,
|
|
8843
8843
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8844
8844
|
}, client.config())),
|
|
8845
|
-
|
|
8845
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8846
8846
|
),
|
|
8847
|
-
Articles.length > 1 &&
|
|
8848
|
-
|
|
8847
|
+
Articles.length > 1 && React.createElement(
|
|
8848
|
+
React.Fragment,
|
|
8849
8849
|
null,
|
|
8850
|
-
|
|
8850
|
+
React.createElement(
|
|
8851
8851
|
'div',
|
|
8852
8852
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8853
|
-
|
|
8853
|
+
React.createElement(
|
|
8854
8854
|
'h5',
|
|
8855
8855
|
{ className: 'objective-title' },
|
|
8856
8856
|
nodes.seriesTitle
|
|
8857
8857
|
),
|
|
8858
|
-
|
|
8858
|
+
React.createElement(
|
|
8859
8859
|
'div',
|
|
8860
8860
|
{ className: 'prevNextWrapper' },
|
|
8861
8861
|
PrevNextCards(true, index)
|
|
8862
8862
|
)
|
|
8863
8863
|
),
|
|
8864
|
-
|
|
8864
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8865
8865
|
)
|
|
8866
8866
|
),
|
|
8867
|
-
|
|
8867
|
+
React.createElement(
|
|
8868
8868
|
'div',
|
|
8869
8869
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8870
|
-
|
|
8870
|
+
main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8871
8871
|
if (innerIndex === 0) {
|
|
8872
|
-
return
|
|
8872
|
+
return React.createElement(
|
|
8873
8873
|
'div',
|
|
8874
8874
|
{
|
|
8875
8875
|
key: 'addid-' + (index + 2),
|
|
@@ -8892,7 +8892,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8892
8892
|
)
|
|
8893
8893
|
);
|
|
8894
8894
|
}),
|
|
8895
|
-
|
|
8895
|
+
React.createElement(
|
|
8896
8896
|
'style',
|
|
8897
8897
|
{ jsx: 'true' },
|
|
8898
8898
|
'\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 '
|
|
@@ -8922,11 +8922,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8922
8922
|
};
|
|
8923
8923
|
}, [handleClickOutside]);
|
|
8924
8924
|
|
|
8925
|
-
return
|
|
8925
|
+
return React.createElement(
|
|
8926
8926
|
'div',
|
|
8927
8927
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8928
|
-
|
|
8929
|
-
|
|
8928
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8929
|
+
React.createElement(
|
|
8930
8930
|
'style',
|
|
8931
8931
|
{ jsx: 'true' },
|
|
8932
8932
|
'\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 '
|
|
@@ -8940,7 +8940,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8940
8940
|
}
|
|
8941
8941
|
};
|
|
8942
8942
|
|
|
8943
|
-
var FigureImage =
|
|
8943
|
+
var FigureImage = React.memo(function (_ref2) {
|
|
8944
8944
|
var node = _ref2.node,
|
|
8945
8945
|
client = _ref2.client,
|
|
8946
8946
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8948,13 +8948,13 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8948
8948
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8949
8949
|
|
|
8950
8950
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8951
|
-
return
|
|
8951
|
+
return React.createElement(
|
|
8952
8952
|
'picture',
|
|
8953
8953
|
null,
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8954
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8955
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8956
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8957
|
+
React.createElement('img', _extends({
|
|
8958
8958
|
style: figureImageStyle,
|
|
8959
8959
|
className: 'figure-image',
|
|
8960
8960
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9005,30 +9005,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9005
9005
|
|
|
9006
9006
|
var renderTooltip = function renderTooltip(props) {
|
|
9007
9007
|
if (infoBox[0].title) {
|
|
9008
|
-
return
|
|
9009
|
-
Popover
|
|
9008
|
+
return React.createElement(
|
|
9009
|
+
Popover,
|
|
9010
9010
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9011
|
-
|
|
9012
|
-
Popover
|
|
9011
|
+
React.createElement(
|
|
9012
|
+
Popover.Title,
|
|
9013
9013
|
{ as: 'h3' },
|
|
9014
9014
|
infoBox[0].title
|
|
9015
9015
|
),
|
|
9016
|
-
|
|
9017
|
-
Popover
|
|
9016
|
+
React.createElement(
|
|
9017
|
+
Popover.Content,
|
|
9018
9018
|
null,
|
|
9019
|
-
|
|
9019
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9020
9020
|
)
|
|
9021
9021
|
);
|
|
9022
9022
|
} else {
|
|
9023
|
-
return
|
|
9024
|
-
Tooltip
|
|
9023
|
+
return React.createElement(
|
|
9024
|
+
Tooltip,
|
|
9025
9025
|
_extends({ id: 'button-tooltip' }, props),
|
|
9026
|
-
|
|
9026
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9027
9027
|
);
|
|
9028
9028
|
}
|
|
9029
9029
|
};
|
|
9030
9030
|
|
|
9031
|
-
var FigureImageWOverLay =
|
|
9031
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9032
9032
|
var node = _ref3.node,
|
|
9033
9033
|
client = _ref3.client,
|
|
9034
9034
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9036,32 +9036,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9036
9036
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9037
9037
|
|
|
9038
9038
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9039
|
-
var triggerAction =
|
|
9040
|
-
var placementLocation =
|
|
9041
|
-
return
|
|
9039
|
+
var triggerAction = main_39 ? 'click' : 'hover';
|
|
9040
|
+
var placementLocation = main_39 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9041
|
+
return React.createElement(
|
|
9042
9042
|
'picture',
|
|
9043
9043
|
null,
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9044
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9045
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9046
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9047
|
+
main_39 && link ? React.createElement('img', _extends({
|
|
9048
9048
|
style: figureImageStyle,
|
|
9049
9049
|
className: 'figure-image',
|
|
9050
9050
|
src: urlFor({ source: node, client: client }),
|
|
9051
9051
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9052
|
-
}, !link && !
|
|
9052
|
+
}, !link && !main_39 && {
|
|
9053
9053
|
onClick: function onClick() {
|
|
9054
9054
|
return handleClickFigure(node, client);
|
|
9055
9055
|
}
|
|
9056
|
-
})) :
|
|
9056
|
+
})) : React.createElement(
|
|
9057
9057
|
OverlayTrigger,
|
|
9058
9058
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9059
|
-
|
|
9059
|
+
React.createElement('img', _extends({
|
|
9060
9060
|
style: figureImageStyle,
|
|
9061
9061
|
className: 'figure-image',
|
|
9062
9062
|
src: urlFor({ source: node, client: client }),
|
|
9063
9063
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9064
|
-
}, !link && !
|
|
9064
|
+
}, !link && !main_39 && {
|
|
9065
9065
|
onClick: function onClick() {
|
|
9066
9066
|
return handleClickFigure(node, client);
|
|
9067
9067
|
}
|
|
@@ -9110,13 +9110,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9110
9110
|
|
|
9111
9111
|
var FigureCaption = useCallback(function () {
|
|
9112
9112
|
if (imgcaption && imgcaption.length > 0) {
|
|
9113
|
-
return
|
|
9113
|
+
return React.createElement(
|
|
9114
9114
|
'div',
|
|
9115
9115
|
{ className: 'figure-caption' },
|
|
9116
|
-
|
|
9116
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9117
9117
|
);
|
|
9118
9118
|
} else if (caption) {
|
|
9119
|
-
return
|
|
9119
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9120
9120
|
} else return null;
|
|
9121
9121
|
}, [caption, imgcaption]);
|
|
9122
9122
|
|
|
@@ -9133,24 +9133,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9133
9133
|
setShowLightbox(true);
|
|
9134
9134
|
}, [node, client]);
|
|
9135
9135
|
|
|
9136
|
-
return
|
|
9137
|
-
|
|
9136
|
+
return React.createElement(
|
|
9137
|
+
React.Fragment,
|
|
9138
9138
|
null,
|
|
9139
|
-
infoBox.length >= 1 ?
|
|
9140
|
-
Figure$
|
|
9139
|
+
infoBox.length >= 1 ? React.createElement(
|
|
9140
|
+
Figure$2,
|
|
9141
9141
|
{ className: '' + class_name, style: figureStyle },
|
|
9142
|
-
link ?
|
|
9142
|
+
link ? React.createElement(
|
|
9143
9143
|
'a',
|
|
9144
9144
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
) :
|
|
9148
|
-
|
|
9145
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9146
|
+
React.createElement(FigureCaption, null)
|
|
9147
|
+
) : React.createElement(
|
|
9148
|
+
React.Fragment,
|
|
9149
9149
|
null,
|
|
9150
|
-
|
|
9151
|
-
|
|
9150
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9151
|
+
React.createElement(FigureCaption, null)
|
|
9152
9152
|
),
|
|
9153
|
-
|
|
9153
|
+
React.createElement(LightBox, {
|
|
9154
9154
|
showLightbox: showLightbox,
|
|
9155
9155
|
lightboxImgSrc: lightboxImgSrc,
|
|
9156
9156
|
closeLightbox: function closeLightbox() {
|
|
@@ -9158,21 +9158,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9158
9158
|
setShowLightbox(false);
|
|
9159
9159
|
}
|
|
9160
9160
|
})
|
|
9161
|
-
) :
|
|
9162
|
-
Figure$
|
|
9161
|
+
) : React.createElement(
|
|
9162
|
+
Figure$2,
|
|
9163
9163
|
{ className: '' + class_name, style: figureStyle },
|
|
9164
|
-
link ?
|
|
9164
|
+
link ? React.createElement(
|
|
9165
9165
|
'a',
|
|
9166
9166
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
) :
|
|
9170
|
-
|
|
9167
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9168
|
+
React.createElement(FigureCaption, null)
|
|
9169
|
+
) : React.createElement(
|
|
9170
|
+
React.Fragment,
|
|
9171
9171
|
null,
|
|
9172
|
-
|
|
9173
|
-
|
|
9172
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9173
|
+
React.createElement(FigureCaption, null)
|
|
9174
9174
|
),
|
|
9175
|
-
|
|
9175
|
+
React.createElement(LightBox, {
|
|
9176
9176
|
showLightbox: showLightbox,
|
|
9177
9177
|
lightboxImgSrc: lightboxImgSrc,
|
|
9178
9178
|
closeLightbox: function closeLightbox() {
|
|
@@ -9181,7 +9181,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9181
9181
|
}
|
|
9182
9182
|
})
|
|
9183
9183
|
),
|
|
9184
|
-
|
|
9184
|
+
React.createElement(
|
|
9185
9185
|
'style',
|
|
9186
9186
|
{ jsx: 'true' },
|
|
9187
9187
|
'\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 '
|
|
@@ -9189,7 +9189,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9189
9189
|
);
|
|
9190
9190
|
};
|
|
9191
9191
|
|
|
9192
|
-
var Figure =
|
|
9192
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9193
9193
|
|
|
9194
9194
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9195
9195
|
useEffect(function () {
|
|
@@ -9206,7 +9206,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9206
9206
|
}, [ref]);
|
|
9207
9207
|
}
|
|
9208
9208
|
|
|
9209
|
-
var FigureImage$1 =
|
|
9209
|
+
var FigureImage$1 = React.memo(function (_ref) {
|
|
9210
9210
|
var imagesCount = _ref.imagesCount,
|
|
9211
9211
|
image = _ref.image,
|
|
9212
9212
|
client = _ref.client,
|
|
@@ -9214,13 +9214,13 @@ var FigureImage$1 = React__default.memo(function (_ref) {
|
|
|
9214
9214
|
link = _ref.link,
|
|
9215
9215
|
handleClickFigure = _ref.handleClickFigure;
|
|
9216
9216
|
|
|
9217
|
-
return
|
|
9217
|
+
return React.createElement(
|
|
9218
9218
|
'picture',
|
|
9219
9219
|
null,
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9220
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9221
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9222
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9223
|
+
React.createElement('img', _extends({
|
|
9224
9224
|
'images-count': imagesCount,
|
|
9225
9225
|
className: 'multi-figure-image',
|
|
9226
9226
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9257,13 +9257,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9257
9257
|
imgcaption = _ref2.imgcaption;
|
|
9258
9258
|
|
|
9259
9259
|
if (imgcaption && imgcaption.length > 0) {
|
|
9260
|
-
return
|
|
9260
|
+
return React.createElement(
|
|
9261
9261
|
'div',
|
|
9262
9262
|
{ className: 'multi-figure-caption' },
|
|
9263
|
-
|
|
9263
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9264
9264
|
);
|
|
9265
9265
|
} else if (caption) {
|
|
9266
|
-
return
|
|
9266
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9267
9267
|
} else return null;
|
|
9268
9268
|
};
|
|
9269
9269
|
|
|
@@ -9272,7 +9272,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9272
9272
|
setOpenImg(true);
|
|
9273
9273
|
}, [client]);
|
|
9274
9274
|
|
|
9275
|
-
var FigureImageWOverLay =
|
|
9275
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9276
9276
|
var imagesCount = _ref3.imagesCount,
|
|
9277
9277
|
image = _ref3.image,
|
|
9278
9278
|
client = _ref3.client,
|
|
@@ -9280,32 +9280,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9280
9280
|
link = _ref3.link,
|
|
9281
9281
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9282
9282
|
|
|
9283
|
-
var triggerAction =
|
|
9284
|
-
var placementLocation =
|
|
9285
|
-
return
|
|
9283
|
+
var triggerAction = main_39 ? 'click' : 'hover';
|
|
9284
|
+
var placementLocation = main_39 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9285
|
+
return React.createElement(
|
|
9286
9286
|
'picture',
|
|
9287
9287
|
null,
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
|
|
9291
|
-
|
|
9288
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9289
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9290
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9291
|
+
main_39 && link ? React.createElement('img', _extends({
|
|
9292
9292
|
'images-count': imagesCount,
|
|
9293
9293
|
className: 'multi-figure-image',
|
|
9294
9294
|
src: urlFor({ source: image, client: client }),
|
|
9295
9295
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9296
|
-
}, !link && !
|
|
9296
|
+
}, !link && !main_39 && {
|
|
9297
9297
|
onClick: function onClick() {
|
|
9298
9298
|
return handleClickFigure(image, client);
|
|
9299
9299
|
}
|
|
9300
|
-
})) :
|
|
9300
|
+
})) : React.createElement(
|
|
9301
9301
|
OverlayTrigger,
|
|
9302
9302
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9303
|
-
|
|
9303
|
+
React.createElement('img', _extends({
|
|
9304
9304
|
'images-count': imagesCount,
|
|
9305
9305
|
className: 'multi-figure-image',
|
|
9306
9306
|
src: urlFor({ source: image, client: client }),
|
|
9307
9307
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9308
|
-
}, !link && !
|
|
9308
|
+
}, !link && !main_39 && {
|
|
9309
9309
|
onClick: function onClick() {
|
|
9310
9310
|
return handleClickFigure(image, client);
|
|
9311
9311
|
}
|
|
@@ -9316,102 +9316,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9316
9316
|
|
|
9317
9317
|
var renderTooltip = function renderTooltip(image) {
|
|
9318
9318
|
if (image.infoBox[0].title) {
|
|
9319
|
-
return
|
|
9320
|
-
Popover
|
|
9319
|
+
return React.createElement(
|
|
9320
|
+
Popover,
|
|
9321
9321
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9322
|
-
|
|
9323
|
-
Popover
|
|
9322
|
+
React.createElement(
|
|
9323
|
+
Popover.Title,
|
|
9324
9324
|
{ as: 'h3' },
|
|
9325
9325
|
image.infoBox[0].title
|
|
9326
9326
|
),
|
|
9327
|
-
|
|
9328
|
-
Popover
|
|
9327
|
+
React.createElement(
|
|
9328
|
+
Popover.Content,
|
|
9329
9329
|
null,
|
|
9330
|
-
|
|
9330
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9331
9331
|
)
|
|
9332
9332
|
);
|
|
9333
9333
|
} else {
|
|
9334
|
-
return
|
|
9335
|
-
Tooltip
|
|
9334
|
+
return React.createElement(
|
|
9335
|
+
Tooltip,
|
|
9336
9336
|
_extends({ id: 'button-tooltip' }, props),
|
|
9337
|
-
|
|
9337
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9338
9338
|
);
|
|
9339
9339
|
}
|
|
9340
9340
|
};
|
|
9341
9341
|
|
|
9342
9342
|
if (images && images.length > 0) {
|
|
9343
|
-
return
|
|
9343
|
+
return React.createElement(
|
|
9344
9344
|
'div',
|
|
9345
9345
|
{ className: 'multi-figure-container' },
|
|
9346
|
-
|
|
9346
|
+
React.createElement(
|
|
9347
9347
|
Row$1,
|
|
9348
9348
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9349
9349
|
images.map(function (image, index) {
|
|
9350
9350
|
if (image.infoBox) {
|
|
9351
|
-
return
|
|
9351
|
+
return React.createElement(
|
|
9352
9352
|
Col$1,
|
|
9353
9353
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9354
|
-
image.link ?
|
|
9354
|
+
image.link ? React.createElement(
|
|
9355
9355
|
'a',
|
|
9356
9356
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9357
|
-
|
|
9357
|
+
React.createElement(
|
|
9358
9358
|
'div',
|
|
9359
9359
|
{ className: 'multi-figure-image-container' },
|
|
9360
|
-
|
|
9360
|
+
React.createElement(
|
|
9361
9361
|
LazyLoad,
|
|
9362
9362
|
{ once: true },
|
|
9363
|
-
|
|
9363
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9364
9364
|
),
|
|
9365
|
-
|
|
9365
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9366
9366
|
)
|
|
9367
|
-
) :
|
|
9367
|
+
) : React.createElement(
|
|
9368
9368
|
'div',
|
|
9369
9369
|
{ className: 'multi-figure-image-container' },
|
|
9370
|
-
|
|
9370
|
+
React.createElement(
|
|
9371
9371
|
LazyLoad,
|
|
9372
9372
|
{ once: true },
|
|
9373
|
-
|
|
9373
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9374
9374
|
),
|
|
9375
|
-
|
|
9375
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9376
9376
|
)
|
|
9377
9377
|
);
|
|
9378
9378
|
} else {
|
|
9379
|
-
return
|
|
9379
|
+
return React.createElement(
|
|
9380
9380
|
Col$1,
|
|
9381
9381
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9382
|
-
image.link ?
|
|
9382
|
+
image.link ? React.createElement(
|
|
9383
9383
|
'a',
|
|
9384
9384
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9385
|
-
|
|
9385
|
+
React.createElement(
|
|
9386
9386
|
'div',
|
|
9387
9387
|
{ className: 'multi-figure-image-container' },
|
|
9388
|
-
|
|
9388
|
+
React.createElement(
|
|
9389
9389
|
LazyLoad,
|
|
9390
9390
|
{ once: true },
|
|
9391
|
-
|
|
9391
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9392
9392
|
),
|
|
9393
|
-
|
|
9393
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9394
9394
|
)
|
|
9395
|
-
) :
|
|
9395
|
+
) : React.createElement(
|
|
9396
9396
|
'div',
|
|
9397
9397
|
{ className: 'multi-figure-image-container' },
|
|
9398
|
-
|
|
9398
|
+
React.createElement(
|
|
9399
9399
|
LazyLoad,
|
|
9400
9400
|
{ once: true },
|
|
9401
|
-
|
|
9401
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9402
9402
|
),
|
|
9403
|
-
|
|
9403
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9404
9404
|
)
|
|
9405
9405
|
);
|
|
9406
9406
|
}
|
|
9407
9407
|
})
|
|
9408
9408
|
),
|
|
9409
|
-
|
|
9409
|
+
React.createElement(
|
|
9410
9410
|
'div',
|
|
9411
9411
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9412
|
-
|
|
9412
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9413
9413
|
),
|
|
9414
|
-
|
|
9414
|
+
React.createElement(
|
|
9415
9415
|
'style',
|
|
9416
9416
|
{ jsx: 'true' },
|
|
9417
9417
|
'\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 '
|
|
@@ -9433,10 +9433,29 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9433
9433
|
|
|
9434
9434
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9435
9435
|
|
|
9436
|
-
|
|
9436
|
+
useEffect(function () {
|
|
9437
|
+
var timer = setTimeout(function () {
|
|
9438
|
+
var hash = window.location.hash;
|
|
9439
|
+
if (hash) {
|
|
9440
|
+
var _elementId = hash.slice(1);
|
|
9441
|
+
var element = document.getElementById(_elementId);
|
|
9442
|
+
element && element.scrollIntoView();
|
|
9443
|
+
}
|
|
9444
|
+
}, 3000);
|
|
9445
|
+
return function () {
|
|
9446
|
+
clearTimeout(timer);
|
|
9447
|
+
};
|
|
9448
|
+
}, []);
|
|
9449
|
+
|
|
9450
|
+
return React.createElement(
|
|
9437
9451
|
'div',
|
|
9438
9452
|
{ id: elementId },
|
|
9439
|
-
|
|
9453
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9454
|
+
React.createElement(
|
|
9455
|
+
'style',
|
|
9456
|
+
{ jsx: 'true' },
|
|
9457
|
+
'\n #' + elementId + '::before {\n display: block;\n content: \' \';\n margin-top: -100px;\n height: 100px;\n visibility: hidden;\n pointer-events: none;\n }\n '
|
|
9458
|
+
)
|
|
9440
9459
|
);
|
|
9441
9460
|
};
|
|
9442
9461
|
|
|
@@ -9485,7 +9504,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9485
9504
|
|
|
9486
9505
|
|
|
9487
9506
|
|
|
9488
|
-
var _react2 = _interopRequireDefault(
|
|
9507
|
+
var _react2 = _interopRequireDefault(React);
|
|
9489
9508
|
|
|
9490
9509
|
|
|
9491
9510
|
|
|
@@ -9644,7 +9663,7 @@ var ScriptTag = function (_Component) {
|
|
|
9644
9663
|
};
|
|
9645
9664
|
|
|
9646
9665
|
return ScriptTag;
|
|
9647
|
-
}(
|
|
9666
|
+
}(React.Component);
|
|
9648
9667
|
|
|
9649
9668
|
ScriptTag.propTypes = {
|
|
9650
9669
|
/**
|
|
@@ -9723,11 +9742,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9723
9742
|
}, []);
|
|
9724
9743
|
|
|
9725
9744
|
if (iframeSrc) {
|
|
9726
|
-
return
|
|
9745
|
+
return React.createElement(
|
|
9727
9746
|
'section',
|
|
9728
9747
|
{ className: 'form-assembly' },
|
|
9729
|
-
|
|
9730
|
-
|
|
9748
|
+
React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9749
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9731
9750
|
);
|
|
9732
9751
|
}
|
|
9733
9752
|
|
|
@@ -9764,27 +9783,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9764
9783
|
return window.removeEventListener('resize', handleResize);
|
|
9765
9784
|
};
|
|
9766
9785
|
}, []);
|
|
9767
|
-
return
|
|
9786
|
+
return React.createElement(
|
|
9768
9787
|
'div',
|
|
9769
9788
|
{ className: 'blockTableHolder', ref: holder },
|
|
9770
|
-
|
|
9789
|
+
React.createElement(
|
|
9771
9790
|
'div',
|
|
9772
9791
|
{ className: 'blockTable' },
|
|
9773
9792
|
rows && rows.map(function (row) {
|
|
9774
|
-
return
|
|
9793
|
+
return React.createElement(
|
|
9775
9794
|
'div',
|
|
9776
9795
|
{ className: 'blockTableRow' },
|
|
9777
9796
|
row.cells && row.cells.map(function (cell) {
|
|
9778
|
-
return
|
|
9797
|
+
return React.createElement(
|
|
9779
9798
|
'div',
|
|
9780
9799
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9781
|
-
|
|
9800
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9782
9801
|
);
|
|
9783
9802
|
})
|
|
9784
9803
|
);
|
|
9785
9804
|
})
|
|
9786
9805
|
),
|
|
9787
|
-
|
|
9806
|
+
React.createElement(
|
|
9788
9807
|
'style',
|
|
9789
9808
|
{ jsx: true },
|
|
9790
9809
|
'\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 '
|
|
@@ -9863,12 +9882,12 @@ var getSerializers = function getSerializers() {
|
|
|
9863
9882
|
var node = _ref.node;
|
|
9864
9883
|
var url = node.url;
|
|
9865
9884
|
|
|
9866
|
-
return
|
|
9885
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9867
9886
|
},
|
|
9868
9887
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9869
9888
|
var node = _ref2.node;
|
|
9870
9889
|
|
|
9871
|
-
return
|
|
9890
|
+
return React.createElement(YouTubeGallery, {
|
|
9872
9891
|
nodes: node,
|
|
9873
9892
|
article: article,
|
|
9874
9893
|
meta: meta,
|
|
@@ -9882,7 +9901,7 @@ var getSerializers = function getSerializers() {
|
|
|
9882
9901
|
articleSeries: function articleSeries(_ref3) {
|
|
9883
9902
|
var node = _ref3.node;
|
|
9884
9903
|
|
|
9885
|
-
return
|
|
9904
|
+
return React.createElement(ArticleSeries, {
|
|
9886
9905
|
nodes: node,
|
|
9887
9906
|
accountIDs: videoAccountIDs || {},
|
|
9888
9907
|
pageview: pageview,
|
|
@@ -9895,61 +9914,61 @@ var getSerializers = function getSerializers() {
|
|
|
9895
9914
|
figure: function figure(_ref4) {
|
|
9896
9915
|
var node = _ref4.node;
|
|
9897
9916
|
|
|
9898
|
-
return
|
|
9917
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9899
9918
|
},
|
|
9900
9919
|
multifigure: function multifigure(_ref5) {
|
|
9901
9920
|
var node = _ref5.node;
|
|
9902
9921
|
|
|
9903
|
-
return
|
|
9922
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9904
9923
|
},
|
|
9905
9924
|
slideshow: function slideshow(_ref6) {
|
|
9906
9925
|
var node = _ref6.node;
|
|
9907
9926
|
var slides = node.slides;
|
|
9908
9927
|
|
|
9909
|
-
return
|
|
9928
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9910
9929
|
},
|
|
9911
9930
|
sidebar: function sidebar(_ref7) {
|
|
9912
9931
|
var node = _ref7.node;
|
|
9913
9932
|
var caption = node.caption,
|
|
9914
9933
|
content = node.content;
|
|
9915
9934
|
|
|
9916
|
-
return
|
|
9935
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9917
9936
|
},
|
|
9918
9937
|
datatable: function datatable(_ref8) {
|
|
9919
9938
|
var node = _ref8.node;
|
|
9920
9939
|
var table = node.table;
|
|
9921
9940
|
|
|
9922
|
-
return
|
|
9941
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9923
9942
|
},
|
|
9924
9943
|
media: function media(_ref9) {
|
|
9925
9944
|
var node = _ref9.node;
|
|
9926
9945
|
|
|
9927
|
-
return
|
|
9946
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9928
9947
|
},
|
|
9929
9948
|
iframe: function iframe(_ref10) {
|
|
9930
9949
|
var node = _ref10.node;
|
|
9931
9950
|
|
|
9932
|
-
return
|
|
9951
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9933
9952
|
},
|
|
9934
9953
|
video: function video(_ref11) {
|
|
9935
9954
|
var node = _ref11.node;
|
|
9936
9955
|
|
|
9937
|
-
return
|
|
9956
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9938
9957
|
},
|
|
9939
9958
|
audio: function audio(_ref12) {
|
|
9940
9959
|
var node = _ref12.node;
|
|
9941
9960
|
|
|
9942
|
-
return
|
|
9961
|
+
return React.createElement(Audio, { node: node });
|
|
9943
9962
|
},
|
|
9944
9963
|
poll: function poll(_ref13) {
|
|
9945
9964
|
var node = _ref13.node;
|
|
9946
9965
|
|
|
9947
|
-
return
|
|
9966
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9948
9967
|
},
|
|
9949
9968
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9950
9969
|
var node = _ref14.node;
|
|
9951
9970
|
|
|
9952
|
-
return
|
|
9971
|
+
return React.createElement(Poll$1, {
|
|
9953
9972
|
node: node,
|
|
9954
9973
|
client: client,
|
|
9955
9974
|
pageview: pageview,
|
|
@@ -9963,35 +9982,35 @@ var getSerializers = function getSerializers() {
|
|
|
9963
9982
|
var node = _ref15.node;
|
|
9964
9983
|
var quizzes = node.quizzes;
|
|
9965
9984
|
|
|
9966
|
-
return
|
|
9985
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9967
9986
|
},
|
|
9968
9987
|
leads: function leads(_ref16) {
|
|
9969
9988
|
var node = _ref16.node;
|
|
9970
9989
|
var leadID = node.leadID;
|
|
9971
9990
|
|
|
9972
9991
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9973
|
-
return
|
|
9992
|
+
return React.createElement(Leads, { url: url });
|
|
9974
9993
|
},
|
|
9975
9994
|
slideshows: function slideshows(_ref17) {
|
|
9976
9995
|
var node = _ref17.node;
|
|
9977
9996
|
|
|
9978
|
-
return
|
|
9997
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9979
9998
|
},
|
|
9980
9999
|
nativeAd: function nativeAd(_ref18) {
|
|
9981
10000
|
var node = _ref18.node;
|
|
9982
10001
|
|
|
9983
|
-
return
|
|
10002
|
+
return React.createElement(NativeAd, { node: node });
|
|
9984
10003
|
},
|
|
9985
10004
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9986
10005
|
var node = _ref19.node;
|
|
9987
10006
|
|
|
9988
|
-
return
|
|
10007
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9989
10008
|
},
|
|
9990
10009
|
hrtag: function hrtag() {
|
|
9991
|
-
return
|
|
10010
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9992
10011
|
},
|
|
9993
10012
|
brtag: function brtag() {
|
|
9994
|
-
return
|
|
10013
|
+
return React.createElement('br', { className: 'line-break' });
|
|
9995
10014
|
},
|
|
9996
10015
|
formstack: function formstack(_ref20) {
|
|
9997
10016
|
var node = _ref20.node;
|
|
@@ -9999,29 +10018,29 @@ var getSerializers = function getSerializers() {
|
|
|
9999
10018
|
Caption = node.Caption,
|
|
10000
10019
|
needSegmentSupport = node.needSegmentSupport;
|
|
10001
10020
|
|
|
10002
|
-
return
|
|
10021
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10003
10022
|
},
|
|
10004
10023
|
formassembly: FormAssembly,
|
|
10005
10024
|
multimedia: function multimedia(_ref21) {
|
|
10006
10025
|
var node = _ref21.node;
|
|
10007
10026
|
|
|
10008
|
-
return
|
|
10027
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
10009
10028
|
},
|
|
10010
10029
|
blockTable: function blockTable(_ref22) {
|
|
10011
10030
|
var node = _ref22.node;
|
|
10012
|
-
return
|
|
10031
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10013
10032
|
}
|
|
10014
10033
|
},
|
|
10015
10034
|
marks: {
|
|
10016
10035
|
superscript: function superscript(props) {
|
|
10017
|
-
return
|
|
10036
|
+
return React.createElement(
|
|
10018
10037
|
'sup',
|
|
10019
10038
|
null,
|
|
10020
10039
|
props.children
|
|
10021
10040
|
);
|
|
10022
10041
|
},
|
|
10023
10042
|
subscript: function subscript(props) {
|
|
10024
|
-
return
|
|
10043
|
+
return React.createElement(
|
|
10025
10044
|
'sub',
|
|
10026
10045
|
null,
|
|
10027
10046
|
props.children
|
|
@@ -10037,7 +10056,7 @@ var getSerializers = function getSerializers() {
|
|
|
10037
10056
|
if (href && href.charAt(0) === '#') {
|
|
10038
10057
|
var elementId = href.slice(1);
|
|
10039
10058
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10040
|
-
return
|
|
10059
|
+
return React.createElement(
|
|
10041
10060
|
'a',
|
|
10042
10061
|
{ onClick: function onClick() {
|
|
10043
10062
|
return ScrollToElement(elementId);
|
|
@@ -10047,7 +10066,7 @@ var getSerializers = function getSerializers() {
|
|
|
10047
10066
|
}
|
|
10048
10067
|
|
|
10049
10068
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10050
|
-
return
|
|
10069
|
+
return React.createElement(
|
|
10051
10070
|
'a',
|
|
10052
10071
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
10053
10072
|
children
|
|
@@ -10055,7 +10074,7 @@ var getSerializers = function getSerializers() {
|
|
|
10055
10074
|
},
|
|
10056
10075
|
alignleft: function alignleft(_ref23) {
|
|
10057
10076
|
var children = _ref23.children;
|
|
10058
|
-
return
|
|
10077
|
+
return React.createElement(
|
|
10059
10078
|
'div',
|
|
10060
10079
|
{ style: { textAlign: 'left' } },
|
|
10061
10080
|
children
|
|
@@ -10063,7 +10082,7 @@ var getSerializers = function getSerializers() {
|
|
|
10063
10082
|
},
|
|
10064
10083
|
alignright: function alignright(_ref24) {
|
|
10065
10084
|
var children = _ref24.children;
|
|
10066
|
-
return
|
|
10085
|
+
return React.createElement(
|
|
10067
10086
|
'div',
|
|
10068
10087
|
{ style: { textAlign: 'right' } },
|
|
10069
10088
|
children
|
|
@@ -10071,7 +10090,7 @@ var getSerializers = function getSerializers() {
|
|
|
10071
10090
|
},
|
|
10072
10091
|
aligncenter: function aligncenter(_ref25) {
|
|
10073
10092
|
var children = _ref25.children;
|
|
10074
|
-
return
|
|
10093
|
+
return React.createElement(
|
|
10075
10094
|
'div',
|
|
10076
10095
|
{ style: { textAlign: 'center' } },
|
|
10077
10096
|
children
|
|
@@ -10079,7 +10098,7 @@ var getSerializers = function getSerializers() {
|
|
|
10079
10098
|
},
|
|
10080
10099
|
alignjustify: function alignjustify(_ref26) {
|
|
10081
10100
|
var children = _ref26.children;
|
|
10082
|
-
return
|
|
10101
|
+
return React.createElement(
|
|
10083
10102
|
'div',
|
|
10084
10103
|
{ style: { textAlign: 'justify' } },
|
|
10085
10104
|
children
|
|
@@ -10089,7 +10108,7 @@ var getSerializers = function getSerializers() {
|
|
|
10089
10108
|
var children = props.children,
|
|
10090
10109
|
color = props.mark.color;
|
|
10091
10110
|
|
|
10092
|
-
return
|
|
10111
|
+
return React.createElement(
|
|
10093
10112
|
'span',
|
|
10094
10113
|
{ style: { color: color ? color.hex : null } },
|
|
10095
10114
|
children
|