@mjhls/mjh-framework 1.0.792 → 1.0.793
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +15 -15
- package/dist/cjs/AD300x250x600.js +15 -15
- package/dist/cjs/AD728x90.js +16 -16
- package/dist/cjs/ADFloatingFooter.js +14 -14
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +14 -14
- package/dist/cjs/{ADInfeed-1e53d7db.js → ADInfeed-7cf51090.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +14 -14
- package/dist/cjs/ADSponsoredResources.js +14 -14
- package/dist/cjs/ADWebcast.js +14 -14
- package/dist/cjs/ADWelcome.js +14 -14
- package/dist/cjs/{ADlgInfeed-2494fd17.js → ADlgInfeed-bf24708d.js} +1 -1
- package/dist/cjs/AccordionPanel.js +7 -7
- package/dist/cjs/AdSlot.js +16 -16
- package/dist/cjs/AdSlotsProvider.js +10 -10
- package/dist/cjs/AlphabeticList.js +9 -9
- package/dist/cjs/ArticleCarousel.js +11 -11
- package/dist/cjs/ArticleProgramLandingPage.js +26 -27
- package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
- package/dist/cjs/ArticleSeriesListing.js +19 -19
- package/dist/cjs/Auth.js +206 -468
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-c21aac7f.js} +1 -1
- package/dist/cjs/Beam.js +7 -7
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-36e54d77.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +5 -5
- package/dist/cjs/CMEDeck.js +14 -14
- package/dist/cjs/Column2.js +11 -11
- package/dist/cjs/Column3.js +20 -20
- package/dist/cjs/ConferenceArticleCard.js +1 -1
- package/dist/cjs/DeckContent.js +23 -23
- package/dist/cjs/DeckQueue.js +21 -21
- package/dist/cjs/{Dfp-6d140494.js → Dfp-3f0ed4c8.js} +8 -8
- package/dist/cjs/EventsDeck.js +19 -19
- package/dist/cjs/ExternalResources.js +27 -28
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +7 -7
- package/dist/cjs/GridContent.js +30 -30
- package/dist/cjs/GridHero.js +7 -7
- package/dist/cjs/GroupDeck.js +9 -9
- package/dist/cjs/HamMagazine.js +16 -16
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +26 -27
- package/dist/cjs/HorizontalHero.js +3 -3
- package/dist/cjs/IssueContentDeck.js +7 -7
- package/dist/cjs/IssueDeck.js +10 -10
- package/dist/cjs/IssueLanding.js +20 -20
- package/dist/cjs/LeftNav.js +14 -14
- package/dist/cjs/MasterDeck.js +24 -24
- package/dist/cjs/MediaSeriesLanding.js +405 -374
- package/dist/cjs/NavDvm.js +7 -7
- package/dist/cjs/NavMagazine.js +15 -15
- package/dist/cjs/NavNative.js +19 -19
- package/dist/cjs/NavNormal.js +9 -9
- package/dist/cjs/OncliveHero.js +2 -2
- package/dist/cjs/OncliveLargeHero.js +7 -7
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/PartnerDetailListing.js +30 -31
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +5 -5
- package/dist/cjs/PubSection.js +20 -20
- package/dist/cjs/PubToc.js +7 -7
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/PublicationLanding.js +19 -19
- package/dist/cjs/QueueDeckExpanded.js +22 -22
- package/dist/cjs/RecentNews.js +3 -3
- package/dist/cjs/RelatedContent.js +1 -1
- package/dist/cjs/Search.js +5 -5
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +12 -12
- package/dist/cjs/{SeriesSlider-49577417.js → SeriesSlider-2db54929.js} +8 -8
- package/dist/cjs/SideFooter.js +11 -11
- package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-9cb50ae4.js} +8 -8
- package/dist/cjs/TaxonomyCard.js +5 -5
- package/dist/cjs/TaxonomyDescription.js +26 -27
- package/dist/cjs/TemplateNormal.js +23 -23
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +10 -10
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +26 -27
- package/dist/cjs/VideoSeriesCard.js +7 -7
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +24 -24
- package/dist/cjs/VideoSeriesListing.js +19 -19
- package/dist/cjs/View.js +40 -41
- package/dist/cjs/YahooHero.js +7 -7
- package/dist/cjs/YoutubeGroup.js +15 -15
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-6128bd56.js} +1 -1
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-821a2927.js → _to-object-6de10e57.js} +4 -4
- package/dist/cjs/{asyncToGenerator-b6a175bf.js → asyncToGenerator-58c289d9.js} +30 -30
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-0cb76d99.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-c2573ffd.js} +5 -5
- package/dist/cjs/{extends-1e24fc8d.js → extends-29bdbc6d.js} +8 -7
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +11 -9
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +26 -27
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-a100d6e5.js} +4 -3
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-d450e2d5.js → index-08b35e31.js} +339 -89
- package/dist/cjs/{index-d48b231c.js → index-efca863c.js} +5 -5
- package/dist/cjs/{index-4d74ffd6.js → index-f86bb269.js} +4 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-00a6aade.js} +1 -1
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-2bb721c8.js} +1 -1
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-9225638f.js} +1 -1
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-f27f80d9.js} +1 -1
- package/dist/cjs/index.js +41 -42
- package/dist/cjs/{inherits-2eb23889.js → inherits-c2065b95.js} +22 -19
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-f0783643.js} +57 -9
- package/dist/cjs/main-f1c77adb.js +973 -0
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-5d1bc3b3.js} +14 -14
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-97065d40.js → typeof-88a668c5.js} +34 -34
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-46657b5c.js} +2 -2
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +20 -20
- package/dist/esm/AD300x250x600.js +20 -20
- package/dist/esm/AD728x90.js +21 -21
- package/dist/esm/ADFloatingFooter.js +22 -22
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +22 -22
- package/dist/esm/{ADInfeed-94817c40.js → ADInfeed-f7d00a9a.js} +6 -6
- package/dist/esm/ADSkyscraper.js +22 -22
- package/dist/esm/ADSponsoredResources.js +22 -22
- package/dist/esm/ADWebcast.js +22 -22
- package/dist/esm/ADWelcome.js +26 -26
- package/dist/esm/{ADlgInfeed-6124ee3c.js → ADlgInfeed-db64f46d.js} +5 -5
- package/dist/esm/AccordionPanel.js +23 -23
- package/dist/esm/AdSlot.js +20 -20
- package/dist/esm/AdSlotsProvider.js +13 -13
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +16 -16
- package/dist/esm/ArticleProgramLandingPage.js +38 -39
- package/dist/esm/ArticleSeriesLandingPage.js +33 -33
- package/dist/esm/ArticleSeriesListing.js +47 -47
- package/dist/esm/Auth.js +277 -539
- package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-30aeba69.js} +11 -11
- package/dist/esm/Beam.js +7 -7
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-c99c9a8d.js} +35 -35
- package/dist/esm/Breadcrumbs.js +16 -16
- package/dist/esm/CMEDeck.js +73 -73
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +23 -23
- package/dist/esm/Column3.js +41 -41
- package/dist/esm/ConferenceArticleCard.js +14 -14
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +70 -70
- package/dist/esm/DeckQueue.js +62 -62
- package/dist/esm/{Dfp-313e4ebe.js → Dfp-be030f2a.js} +18 -18
- package/dist/esm/EventsDeck.js +82 -82
- package/dist/esm/ExternalResources.js +57 -58
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +32 -32
- package/dist/esm/GridContent.js +129 -129
- package/dist/esm/GridHero.js +33 -33
- package/dist/esm/GroupDeck.js +43 -43
- package/dist/esm/HamMagazine.js +95 -95
- 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 +52 -53
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +45 -45
- package/dist/esm/IssueDeck.js +43 -43
- package/dist/esm/IssueLanding.js +29 -29
- package/dist/esm/LeftNav.js +29 -29
- package/dist/esm/MasterDeck.js +59 -59
- package/dist/esm/MediaSeriesLanding.js +702 -671
- package/dist/esm/NavDvm.js +50 -50
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +98 -98
- package/dist/esm/NavNative.js +93 -93
- package/dist/esm/NavNormal.js +29 -29
- package/dist/esm/OncliveHero.js +14 -14
- package/dist/esm/OncliveLargeHero.js +56 -56
- package/dist/esm/PageFilter.js +11 -11
- package/dist/esm/PartnerDetailListing.js +84 -85
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +13 -13
- package/dist/esm/PubSection.js +30 -30
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +35 -35
- package/dist/esm/PublicationLanding.js +68 -68
- package/dist/esm/QueueDeckExpanded.js +264 -264
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +16 -16
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +10 -10
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +29 -29
- package/dist/esm/{SeriesSlider-291e1c9e.js → SeriesSlider-c8477bf3.js} +26 -26
- package/dist/esm/SideFooter.js +30 -30
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-09775683.js} +27 -27
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +39 -39
- package/dist/esm/TaxonomyDescription.js +34 -35
- package/dist/esm/TemplateNormal.js +47 -47
- 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 +45 -46
- package/dist/esm/VideoSeriesCard.js +21 -21
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +33 -33
- package/dist/esm/VideoSeriesListing.js +63 -63
- package/dist/esm/View.js +202 -203
- package/dist/esm/YahooHero.js +29 -29
- package/dist/esm/YoutubeGroup.js +42 -42
- package/dist/esm/{_is-array-674f71ec.js → _is-array-3e99e06e.js} +1 -1
- package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-97770c52.js → _to-object-b50e61c3.js} +4 -4
- package/dist/esm/{asyncToGenerator-585841c0.js → asyncToGenerator-7f8f9219.js} +30 -30
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-ec6d528d.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-ea516b15.js → defineProperty-f5ff6f5a.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-bc33758b.js} +5 -5
- package/dist/esm/{extends-31d65aba.js → extends-60e0e1c6.js} +8 -8
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +11 -9
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +29 -30
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-05c216d6.js} +4 -3
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-3f5c03b2.js → index-0dbff1d1.js} +5 -5
- package/dist/esm/{index-888f9253.js → index-5cc7b406.js} +3 -3
- package/dist/esm/{index-35bdcc81.js → index-755f2cc2.js} +4 -4
- package/dist/esm/{index-ccb770c7.js → index-79cfd25c.js} +4 -4
- package/dist/esm/{index-f4fe5a50.js → index-c2daf449.js} +663 -412
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.js} +1 -1
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-e874e770.js} +1 -1
- package/dist/esm/{index.esm-3fdda599.js → index.esm-f6156a57.js} +1 -1
- package/dist/esm/index.js +65 -66
- package/dist/esm/{inherits-5906fbea.js → inherits-a41fe93f.js} +20 -20
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-a0b0c7a4.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-ad27652f.js → lodash-f97fd99a.js} +57 -9
- package/dist/esm/main-d4165069.js +961 -0
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-9be47857.js} +5 -5
- package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-e9cea9e8.js → typeof-a286cf0c.js} +34 -34
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4109ff68.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/keys-95c064c9.js +0 -25
- package/dist/cjs/main-dc082238.js +0 -898
- package/dist/cjs/stringify-01cf47f7.js +0 -17
- package/dist/esm/main-1450d277.js +0 -886
- package/dist/esm/stringify-d4839bab.js +0 -15
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-
|
|
1
|
+
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
2
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-be2f7a22.js';
|
|
3
3
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
4
|
-
import { i as imageUrlBuilder } from './index-
|
|
5
|
-
import { l as lib_3 } from './index-
|
|
4
|
+
import { i as imageUrlBuilder } from './index-0dbff1d1.js';
|
|
5
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
6
6
|
import Router, { useRouter } from 'next/router';
|
|
7
7
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -10,18 +10,18 @@ import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelper
|
|
|
10
10
|
import { u as util } from './util-3ab476bf.js';
|
|
11
11
|
import Beam from './Beam.js';
|
|
12
12
|
import Segment from './Segment.js';
|
|
13
|
-
import { d as
|
|
14
|
-
import { B as BlockContent } from './BlockContent-
|
|
15
|
-
import { _ as _extends } from './extends-
|
|
16
|
-
import { L as LazyLoad } from './index-
|
|
17
|
-
import { _ as _typeof$1 } from './typeof-
|
|
18
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-
|
|
13
|
+
import { d as main_18, b as main_42, m as main_43 } from './main-d4165069.js';
|
|
14
|
+
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
15
|
+
import { _ as _extends, b as _extends$1 } from './extends-60e0e1c6.js';
|
|
16
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
17
|
+
import { _ as _typeof$1 } from './typeof-a286cf0c.js';
|
|
18
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
|
|
19
19
|
import GroupDeck from './GroupDeck.js';
|
|
20
20
|
import { m as moment } from './moment-bc12cb97.js';
|
|
21
21
|
import SocialShare from './SocialShare.js';
|
|
22
|
-
import { _ as _export, a as _core } from './_to-object-
|
|
23
|
-
import { _ as _objectToArray } from './_object-to-array-
|
|
24
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-
|
|
22
|
+
import { _ as _export, a as _core } from './_to-object-b50e61c3.js';
|
|
23
|
+
import { _ as _objectToArray } from './_object-to-array-0f197f89.js';
|
|
24
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
25
25
|
import Pagination from 'react-bootstrap/Pagination';
|
|
26
26
|
import Button$1 from 'react-bootstrap/Button';
|
|
27
27
|
import { h as html_decode_1 } from './entities-932b50cf.js';
|
|
@@ -29,12 +29,11 @@ import DFPAdSlot from './AdSlot.js';
|
|
|
29
29
|
import Row$1 from 'react-bootstrap/Row';
|
|
30
30
|
import Col$1 from 'react-bootstrap/Col';
|
|
31
31
|
import Head from 'next/head';
|
|
32
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-
|
|
33
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-
|
|
32
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-a41fe93f.js';
|
|
33
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-f6156a57.js';
|
|
34
34
|
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
|
-
import ScriptTag from 'react-script-tag';
|
|
36
35
|
|
|
37
|
-
var urlFor = function urlFor(source, builder) {
|
|
36
|
+
var urlFor$4 = function urlFor(source, builder) {
|
|
38
37
|
return builder.image(source).auto('format');
|
|
39
38
|
};
|
|
40
39
|
|
|
@@ -44,7 +43,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
44
43
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
45
44
|
};
|
|
46
45
|
|
|
47
|
-
var Slideshow = function Slideshow(_ref) {
|
|
46
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
48
47
|
var slides = _ref.slides,
|
|
49
48
|
client = _ref.client,
|
|
50
49
|
pageview = _ref.pageview;
|
|
@@ -73,20 +72,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
73
72
|
if (pageview) pageview(router.asPath);
|
|
74
73
|
}, [router]);
|
|
75
74
|
|
|
76
|
-
return
|
|
75
|
+
return React__default.createElement(
|
|
77
76
|
'div',
|
|
78
77
|
{ className: 'mt-3 mb-3' },
|
|
79
|
-
|
|
78
|
+
React__default.createElement(
|
|
80
79
|
Carousel,
|
|
81
80
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
82
81
|
return onChangeSlide(selectedIndex, router);
|
|
83
82
|
}, interval: null },
|
|
84
83
|
slides && slides.map(function (slide) {
|
|
85
|
-
return
|
|
84
|
+
return React__default.createElement(
|
|
86
85
|
Carousel.Item,
|
|
87
86
|
{ key: slide._key },
|
|
88
|
-
|
|
89
|
-
slide.caption &&
|
|
87
|
+
React__default.createElement('img', { src: slide.asset && urlFor$4(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
88
|
+
slide.caption && React__default.createElement(
|
|
90
89
|
'p',
|
|
91
90
|
{ className: 'p-2' },
|
|
92
91
|
slide.caption
|
|
@@ -1828,9 +1827,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1828
1827
|
}, {
|
|
1829
1828
|
key: "render",
|
|
1830
1829
|
value: function render() {
|
|
1831
|
-
return /*#__PURE__*/
|
|
1830
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1832
1831
|
className: this.props.containerClassName
|
|
1833
|
-
}, /*#__PURE__*/
|
|
1832
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1834
1833
|
id: this.props.id,
|
|
1835
1834
|
className: this.props.className,
|
|
1836
1835
|
ref: this.refContainer
|
|
@@ -1839,7 +1838,7 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1839
1838
|
}]);
|
|
1840
1839
|
|
|
1841
1840
|
return YouTube;
|
|
1842
|
-
}(
|
|
1841
|
+
}(React__default.Component);
|
|
1843
1842
|
|
|
1844
1843
|
_defineProperty(YouTube, "PlayerState", {
|
|
1845
1844
|
UNSTARTED: -1,
|
|
@@ -1923,8 +1922,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1923
1922
|
var duration = player.getDuration();
|
|
1924
1923
|
var queue = Math.floor(duration / 10);
|
|
1925
1924
|
var segment = Math.floor(current / queue);
|
|
1926
|
-
Beam.report_beam_video('Ready',
|
|
1927
|
-
Segment.report_video_event('Video Ready',
|
|
1925
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
1926
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
1928
1927
|
};
|
|
1929
1928
|
|
|
1930
1929
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1934,8 +1933,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1934
1933
|
var segment = Math.floor(current / queue);
|
|
1935
1934
|
|
|
1936
1935
|
if (!queueProgress.includes(segment)) {
|
|
1937
|
-
Beam.report_beam_video('Segment',
|
|
1938
|
-
Segment.report_video_event('Video Segment',
|
|
1936
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
1937
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
1939
1938
|
queueProgress.push(segment);
|
|
1940
1939
|
}
|
|
1941
1940
|
};
|
|
@@ -1948,8 +1947,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1948
1947
|
var queue = Math.floor(duration / 10);
|
|
1949
1948
|
var segment = Math.floor(current / queue);
|
|
1950
1949
|
|
|
1951
|
-
Beam.report_beam_video('Play',
|
|
1952
|
-
Segment.report_video_event('Video Play',
|
|
1950
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
1951
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
1953
1952
|
|
|
1954
1953
|
if (!playReported) {
|
|
1955
1954
|
setPlayReported(true);
|
|
@@ -1968,8 +1967,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1968
1967
|
var queue = Math.floor(duration / 10);
|
|
1969
1968
|
var segment = Math.floor(current / queue);
|
|
1970
1969
|
|
|
1971
|
-
Beam.report_beam_video('End',
|
|
1972
|
-
Segment.report_video_event('Video End',
|
|
1970
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
1971
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
1973
1972
|
setEndReported(true);
|
|
1974
1973
|
clearInterval(intervalID);
|
|
1975
1974
|
}
|
|
@@ -1982,15 +1981,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1982
1981
|
var queue = Math.floor(duration / 10);
|
|
1983
1982
|
var segment = Math.floor(current / queue);
|
|
1984
1983
|
|
|
1985
|
-
Beam.report_beam_video('Pause',
|
|
1986
|
-
Segment.report_video_event('Video Pause',
|
|
1984
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
1985
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
1987
1986
|
};
|
|
1988
1987
|
|
|
1989
|
-
return
|
|
1988
|
+
return React__default.createElement(
|
|
1990
1989
|
'div',
|
|
1991
1990
|
{ id: 'fluid-video-container' },
|
|
1992
|
-
|
|
1993
|
-
|
|
1991
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1992
|
+
React__default.createElement(
|
|
1994
1993
|
'style',
|
|
1995
1994
|
{ jsx: 'true' },
|
|
1996
1995
|
'\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 '
|
|
@@ -2003,20 +2002,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2003
2002
|
content = _ref.content,
|
|
2004
2003
|
getSerializers = _ref.getSerializers;
|
|
2005
2004
|
|
|
2006
|
-
return
|
|
2005
|
+
return React__default.createElement(
|
|
2007
2006
|
'article',
|
|
2008
2007
|
{ className: 'sidebar' },
|
|
2009
|
-
|
|
2008
|
+
React__default.createElement(
|
|
2010
2009
|
'div',
|
|
2011
2010
|
null,
|
|
2012
|
-
|
|
2011
|
+
React__default.createElement(
|
|
2013
2012
|
'h3',
|
|
2014
2013
|
null,
|
|
2015
2014
|
caption
|
|
2016
2015
|
),
|
|
2017
|
-
|
|
2016
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2018
2017
|
),
|
|
2019
|
-
|
|
2018
|
+
React__default.createElement(
|
|
2020
2019
|
'style',
|
|
2021
2020
|
{ jsx: 'true' },
|
|
2022
2021
|
'\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 '
|
|
@@ -2027,18 +2026,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2027
2026
|
var TableShow = function TableShow(_ref) {
|
|
2028
2027
|
var rows = _ref.rows;
|
|
2029
2028
|
|
|
2030
|
-
return
|
|
2029
|
+
return React__default.createElement(
|
|
2031
2030
|
Table,
|
|
2032
2031
|
{ bordered: true, hover: true, responsive: true },
|
|
2033
|
-
|
|
2032
|
+
React__default.createElement(
|
|
2034
2033
|
'tbody',
|
|
2035
2034
|
null,
|
|
2036
2035
|
rows && rows.map(function (row) {
|
|
2037
|
-
return
|
|
2036
|
+
return React__default.createElement(
|
|
2038
2037
|
'tr',
|
|
2039
2038
|
{ key: row._key },
|
|
2040
2039
|
row.cells && row.cells.map(function (cell, index) {
|
|
2041
|
-
return cell &&
|
|
2040
|
+
return cell && React__default.createElement(
|
|
2042
2041
|
'td',
|
|
2043
2042
|
{ key: index },
|
|
2044
2043
|
cell
|
|
@@ -2141,18 +2140,18 @@ var Media = function Media(_ref) {
|
|
|
2141
2140
|
margin: imageMargin
|
|
2142
2141
|
};
|
|
2143
2142
|
|
|
2144
|
-
return
|
|
2143
|
+
return React__default.createElement(
|
|
2145
2144
|
Figure$1,
|
|
2146
2145
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2147
|
-
|
|
2146
|
+
React__default.createElement(
|
|
2148
2147
|
'a',
|
|
2149
2148
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2150
|
-
|
|
2149
|
+
React__default.createElement(
|
|
2151
2150
|
LazyLoad,
|
|
2152
2151
|
{ once: true },
|
|
2153
|
-
|
|
2152
|
+
React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2154
2153
|
),
|
|
2155
|
-
caption &&
|
|
2154
|
+
caption && React__default.createElement(
|
|
2156
2155
|
Figure$1.Caption,
|
|
2157
2156
|
{ className: 'media-caption' },
|
|
2158
2157
|
caption
|
|
@@ -2160,7 +2159,7 @@ var Media = function Media(_ref) {
|
|
|
2160
2159
|
)
|
|
2161
2160
|
);
|
|
2162
2161
|
} else if (caption && caption !== '') {
|
|
2163
|
-
return
|
|
2162
|
+
return React__default.createElement(
|
|
2164
2163
|
'a',
|
|
2165
2164
|
_extends({}, uploadDoc.downloadMedia ? {
|
|
2166
2165
|
href: uploadDoc.asset.url + '?dl='
|
|
@@ -2180,10 +2179,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2180
2179
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2181
2180
|
|
|
2182
2181
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2183
|
-
return
|
|
2182
|
+
return React__default.createElement(
|
|
2184
2183
|
'div',
|
|
2185
2184
|
{ className: 'd-block text-center mb-3' },
|
|
2186
|
-
|
|
2185
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2187
2186
|
);
|
|
2188
2187
|
};
|
|
2189
2188
|
|
|
@@ -2217,8 +2216,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2217
2216
|
var duration = player.duration;
|
|
2218
2217
|
var queue = Math.floor(duration / 10);
|
|
2219
2218
|
var segment = Math.floor(current / queue);
|
|
2220
|
-
Beam.report_beam_video('Ready',
|
|
2221
|
-
Segment.report_video_event('Video Ready',
|
|
2219
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
|
|
2220
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
|
|
2222
2221
|
};
|
|
2223
2222
|
|
|
2224
2223
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2227,8 +2226,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2227
2226
|
var queue = Math.floor(duration / 10);
|
|
2228
2227
|
var segment = Math.floor(current / queue);
|
|
2229
2228
|
if (!queueProgress.includes(segment)) {
|
|
2230
|
-
Beam.report_beam_video('Segment',
|
|
2231
|
-
Segment.report_video_event('Video Segment',
|
|
2229
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
|
|
2230
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
|
|
2232
2231
|
queueProgress.push(segment);
|
|
2233
2232
|
}
|
|
2234
2233
|
};
|
|
@@ -2240,8 +2239,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2240
2239
|
var duration = player.duration;
|
|
2241
2240
|
var queue = Math.floor(duration / 10);
|
|
2242
2241
|
var segment = Math.floor(current / queue);
|
|
2243
|
-
Beam.report_beam_video('Play',
|
|
2244
|
-
Segment.report_video_event('Video Play',
|
|
2242
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
|
|
2243
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
|
|
2245
2244
|
|
|
2246
2245
|
if (!playReported) {
|
|
2247
2246
|
event.persist();
|
|
@@ -2261,8 +2260,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2261
2260
|
var queue = Math.floor(duration / 10);
|
|
2262
2261
|
var segment = Math.floor(current / queue);
|
|
2263
2262
|
|
|
2264
|
-
Beam.report_beam_video('End',
|
|
2265
|
-
Segment.report_video_event('Video End',
|
|
2263
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
|
|
2264
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
|
|
2266
2265
|
setEndReported(true);
|
|
2267
2266
|
clearInterval(intervalID);
|
|
2268
2267
|
}
|
|
@@ -2274,14 +2273,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2274
2273
|
var duration = player.duration - current;
|
|
2275
2274
|
var queue = Math.floor(duration / 10);
|
|
2276
2275
|
var segment = Math.floor(current / queue);
|
|
2277
|
-
Beam.report_beam_video('Pause',
|
|
2278
|
-
Segment.report_video_event('Video Pause',
|
|
2276
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
|
|
2277
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
|
|
2279
2278
|
};
|
|
2280
2279
|
|
|
2281
|
-
return
|
|
2280
|
+
return React__default.createElement(
|
|
2282
2281
|
'div',
|
|
2283
2282
|
null,
|
|
2284
|
-
vidLoaded &&
|
|
2283
|
+
vidLoaded && React__default.createElement(
|
|
2285
2284
|
'video',
|
|
2286
2285
|
{
|
|
2287
2286
|
poster: thumbnail || '',
|
|
@@ -2299,7 +2298,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2299
2298
|
onPlay: function onPlay(e) {
|
|
2300
2299
|
return handleOnPlay(e);
|
|
2301
2300
|
} },
|
|
2302
|
-
|
|
2301
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2303
2302
|
'Your browser does not support the video tag.'
|
|
2304
2303
|
)
|
|
2305
2304
|
);
|
|
@@ -2364,8 +2363,8 @@ var Video = function Video(_ref) {
|
|
|
2364
2363
|
player.pause();
|
|
2365
2364
|
}
|
|
2366
2365
|
|
|
2367
|
-
Beam.report_beam_video('Ready',
|
|
2368
|
-
Segment.report_video_event('Video Ready',
|
|
2366
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2367
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2369
2368
|
});
|
|
2370
2369
|
|
|
2371
2370
|
// play
|
|
@@ -2374,8 +2373,8 @@ var Video = function Video(_ref) {
|
|
|
2374
2373
|
var current = player.currentTime();
|
|
2375
2374
|
var queue = Math.floor(duration / 10);
|
|
2376
2375
|
var segment = Math.floor(current / queue);
|
|
2377
|
-
Beam.report_beam_video('Play',
|
|
2378
|
-
Segment.report_video_event('Video Play',
|
|
2376
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2377
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2379
2378
|
});
|
|
2380
2379
|
|
|
2381
2380
|
// pause
|
|
@@ -2384,8 +2383,8 @@ var Video = function Video(_ref) {
|
|
|
2384
2383
|
var current = player.currentTime();
|
|
2385
2384
|
var queue = Math.floor(duration / 10);
|
|
2386
2385
|
var segment = Math.floor(current / queue);
|
|
2387
|
-
Beam.report_beam_video('Pause',
|
|
2388
|
-
Segment.report_video_event('Video Pause',
|
|
2386
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2387
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2389
2388
|
});
|
|
2390
2389
|
|
|
2391
2390
|
// end
|
|
@@ -2394,8 +2393,8 @@ var Video = function Video(_ref) {
|
|
|
2394
2393
|
var current = player.currentTime();
|
|
2395
2394
|
var queue = Math.floor(duration / 10);
|
|
2396
2395
|
var segment = Math.floor(current / queue);
|
|
2397
|
-
Beam.report_beam_video('End',
|
|
2398
|
-
Segment.report_video_event('Video End',
|
|
2396
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2397
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2399
2398
|
autoplayNextVideo(evt);
|
|
2400
2399
|
});
|
|
2401
2400
|
|
|
@@ -2406,8 +2405,8 @@ var Video = function Video(_ref) {
|
|
|
2406
2405
|
var queue = Math.floor(duration / 10);
|
|
2407
2406
|
var segment = Math.floor(current / queue);
|
|
2408
2407
|
if (!queueProgress.includes(segment)) {
|
|
2409
|
-
Beam.report_beam_video('Segment',
|
|
2410
|
-
Segment.report_video_event('Video Segment',
|
|
2408
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2409
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2411
2410
|
queueProgress.push(segment);
|
|
2412
2411
|
}
|
|
2413
2412
|
});
|
|
@@ -2418,8 +2417,8 @@ var Video = function Video(_ref) {
|
|
|
2418
2417
|
var id = player.ads.ad.id;
|
|
2419
2418
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2420
2419
|
|
|
2421
|
-
Beam.report_beam_ad('AD Started',
|
|
2422
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2420
|
+
Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
|
|
2421
|
+
Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2423
2422
|
});
|
|
2424
2423
|
|
|
2425
2424
|
// ad ended
|
|
@@ -2427,60 +2426,60 @@ var Video = function Video(_ref) {
|
|
|
2427
2426
|
var duration = player.ads.ad.duration;
|
|
2428
2427
|
var id = player.ads.ad.id;
|
|
2429
2428
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2430
|
-
Beam.report_beam_ad('AD Ended',
|
|
2431
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2429
|
+
Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
|
|
2430
|
+
Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2432
2431
|
});
|
|
2433
2432
|
};
|
|
2434
2433
|
|
|
2435
2434
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2436
2435
|
if (videoID) {
|
|
2437
|
-
return
|
|
2436
|
+
return React__default.createElement(
|
|
2438
2437
|
'div',
|
|
2439
2438
|
null,
|
|
2440
|
-
|
|
2439
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2441
2440
|
onSuccess: onVideoSuccess,
|
|
2442
2441
|
accountId: accountIDs.brightcove.accountId,
|
|
2443
2442
|
videoId: videoID,
|
|
2444
2443
|
playerId: accountIDs.brightcove.playerId,
|
|
2445
2444
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2446
2445
|
}),
|
|
2447
|
-
|
|
2446
|
+
React__default.createElement(
|
|
2448
2447
|
'style',
|
|
2449
2448
|
{ jsx: 'true' },
|
|
2450
2449
|
'\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 '
|
|
2451
2450
|
)
|
|
2452
2451
|
);
|
|
2453
2452
|
} else if (playlistID) {
|
|
2454
|
-
return
|
|
2453
|
+
return React__default.createElement(
|
|
2455
2454
|
'div',
|
|
2456
2455
|
null,
|
|
2457
|
-
|
|
2456
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2458
2457
|
accountId: accountIDs.brightcove.accountId,
|
|
2459
2458
|
playlistId: playlistID,
|
|
2460
2459
|
playerId: accountIDs.brightcove.playerId,
|
|
2461
2460
|
onSuccess: onVideoSuccess,
|
|
2462
2461
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2463
2462
|
}),
|
|
2464
|
-
|
|
2463
|
+
React__default.createElement(
|
|
2465
2464
|
'style',
|
|
2466
2465
|
{ jsx: 'true' },
|
|
2467
2466
|
'\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 '
|
|
2468
2467
|
)
|
|
2469
2468
|
);
|
|
2470
2469
|
} else if (experienceID) {
|
|
2471
|
-
return
|
|
2470
|
+
return React__default.createElement(
|
|
2472
2471
|
'div',
|
|
2473
2472
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2474
|
-
videoLoaded &&
|
|
2473
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2475
2474
|
);
|
|
2476
2475
|
}
|
|
2477
2476
|
return null;
|
|
2478
2477
|
}
|
|
2479
2478
|
if (source === 'mp4') {
|
|
2480
|
-
return
|
|
2479
|
+
return React__default.createElement(
|
|
2481
2480
|
'div',
|
|
2482
2481
|
null,
|
|
2483
|
-
|
|
2482
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2484
2483
|
);
|
|
2485
2484
|
}
|
|
2486
2485
|
|
|
@@ -3085,7 +3084,7 @@ function isEqual(a, b) {
|
|
|
3085
3084
|
return true;
|
|
3086
3085
|
}
|
|
3087
3086
|
|
|
3088
|
-
if ((0,
|
|
3087
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3089
3088
|
return true;
|
|
3090
3089
|
}
|
|
3091
3090
|
|
|
@@ -3147,7 +3146,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3147
3146
|
});
|
|
3148
3147
|
exports["default"] = void 0;
|
|
3149
3148
|
|
|
3150
|
-
var _react = _interopRequireWildcard(
|
|
3149
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3151
3150
|
|
|
3152
3151
|
|
|
3153
3152
|
|
|
@@ -3557,7 +3556,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3557
3556
|
});
|
|
3558
3557
|
exports["default"] = createSinglePlayer;
|
|
3559
3558
|
|
|
3560
|
-
var _react = _interopRequireWildcard(
|
|
3559
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3561
3560
|
|
|
3562
3561
|
|
|
3563
3562
|
|
|
@@ -3715,7 +3714,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3715
3714
|
});
|
|
3716
3715
|
exports["default"] = exports.YouTube = void 0;
|
|
3717
3716
|
|
|
3718
|
-
var _react = _interopRequireWildcard(
|
|
3717
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3719
3718
|
|
|
3720
3719
|
|
|
3721
3720
|
|
|
@@ -4024,7 +4023,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4024
4023
|
});
|
|
4025
4024
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4026
4025
|
|
|
4027
|
-
var _react = _interopRequireWildcard(
|
|
4026
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4028
4027
|
|
|
4029
4028
|
|
|
4030
4029
|
|
|
@@ -4241,7 +4240,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4241
4240
|
});
|
|
4242
4241
|
exports["default"] = exports.Vimeo = void 0;
|
|
4243
4242
|
|
|
4244
|
-
var _react = _interopRequireWildcard(
|
|
4243
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4245
4244
|
|
|
4246
4245
|
|
|
4247
4246
|
|
|
@@ -4497,7 +4496,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4497
4496
|
});
|
|
4498
4497
|
exports["default"] = exports.Facebook = void 0;
|
|
4499
4498
|
|
|
4500
|
-
var _react = _interopRequireWildcard(
|
|
4499
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4501
4500
|
|
|
4502
4501
|
|
|
4503
4502
|
|
|
@@ -4709,7 +4708,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4709
4708
|
});
|
|
4710
4709
|
exports["default"] = exports.Streamable = void 0;
|
|
4711
4710
|
|
|
4712
|
-
var _react = _interopRequireWildcard(
|
|
4711
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4713
4712
|
|
|
4714
4713
|
|
|
4715
4714
|
|
|
@@ -4920,7 +4919,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4920
4919
|
});
|
|
4921
4920
|
exports["default"] = exports.Wistia = void 0;
|
|
4922
4921
|
|
|
4923
|
-
var _react = _interopRequireWildcard(
|
|
4922
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4924
4923
|
|
|
4925
4924
|
|
|
4926
4925
|
|
|
@@ -5163,7 +5162,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5163
5162
|
});
|
|
5164
5163
|
exports["default"] = exports.Twitch = void 0;
|
|
5165
5164
|
|
|
5166
|
-
var _react = _interopRequireWildcard(
|
|
5165
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5167
5166
|
|
|
5168
5167
|
|
|
5169
5168
|
|
|
@@ -5379,7 +5378,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5379
5378
|
});
|
|
5380
5379
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5381
5380
|
|
|
5382
|
-
var _react = _interopRequireWildcard(
|
|
5381
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5383
5382
|
|
|
5384
5383
|
|
|
5385
5384
|
|
|
@@ -5615,7 +5614,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5615
5614
|
});
|
|
5616
5615
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5617
5616
|
|
|
5618
|
-
var _react = _interopRequireWildcard(
|
|
5617
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5619
5618
|
|
|
5620
5619
|
|
|
5621
5620
|
|
|
@@ -5814,7 +5813,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5814
5813
|
});
|
|
5815
5814
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5816
5815
|
|
|
5817
|
-
var _react = _interopRequireWildcard(
|
|
5816
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5818
5817
|
|
|
5819
5818
|
|
|
5820
5819
|
|
|
@@ -6381,7 +6380,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6381
6380
|
});
|
|
6382
6381
|
exports["default"] = void 0;
|
|
6383
6382
|
|
|
6384
|
-
var _react = _interopRequireWildcard(
|
|
6383
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6385
6384
|
|
|
6386
6385
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6387
6386
|
|
|
@@ -6560,7 +6559,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6560
6559
|
});
|
|
6561
6560
|
exports["default"] = renderPreloadPlayers;
|
|
6562
6561
|
|
|
6563
|
-
var _react = _interopRequireDefault(
|
|
6562
|
+
var _react = _interopRequireDefault(React__default);
|
|
6564
6563
|
|
|
6565
6564
|
var _Player = _interopRequireDefault(Player_1);
|
|
6566
6565
|
|
|
@@ -6699,7 +6698,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6699
6698
|
});
|
|
6700
6699
|
exports["default"] = void 0;
|
|
6701
6700
|
|
|
6702
|
-
var _react = _interopRequireWildcard(
|
|
6701
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6703
6702
|
|
|
6704
6703
|
|
|
6705
6704
|
|
|
@@ -7013,20 +7012,20 @@ var Audio = function Audio(_ref) {
|
|
|
7013
7012
|
var node = _ref.node;
|
|
7014
7013
|
|
|
7015
7014
|
if (node.uploadAudio) {
|
|
7016
|
-
return
|
|
7015
|
+
return React__default.createElement(
|
|
7017
7016
|
'div',
|
|
7018
7017
|
{ className: 'audio d-block text-center mb-3' },
|
|
7019
|
-
|
|
7018
|
+
React__default.createElement(
|
|
7020
7019
|
'audio',
|
|
7021
7020
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7022
|
-
|
|
7023
|
-
|
|
7021
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7022
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7024
7023
|
'Your browser does not support the audio element.'
|
|
7025
7024
|
),
|
|
7026
|
-
node.caption &&
|
|
7025
|
+
node.caption && React__default.createElement(
|
|
7027
7026
|
'p',
|
|
7028
7027
|
{ style: { fontSize: '.9rem' } },
|
|
7029
|
-
|
|
7028
|
+
React__default.createElement(
|
|
7030
7029
|
'em',
|
|
7031
7030
|
null,
|
|
7032
7031
|
node.caption
|
|
@@ -7036,15 +7035,15 @@ var Audio = function Audio(_ref) {
|
|
|
7036
7035
|
} else if (node.audioFilePth) {
|
|
7037
7036
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7038
7037
|
if (hostname === 'embeds.audioboom.com') {
|
|
7039
|
-
return
|
|
7038
|
+
return React__default.createElement(
|
|
7040
7039
|
'div',
|
|
7041
7040
|
null,
|
|
7042
|
-
|
|
7041
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7043
7042
|
' ',
|
|
7044
|
-
node.caption &&
|
|
7043
|
+
node.caption && React__default.createElement(
|
|
7045
7044
|
'p',
|
|
7046
7045
|
{ style: { fontSize: '.9rem' } },
|
|
7047
|
-
|
|
7046
|
+
React__default.createElement(
|
|
7048
7047
|
'em',
|
|
7049
7048
|
null,
|
|
7050
7049
|
node.caption
|
|
@@ -7052,14 +7051,14 @@ var Audio = function Audio(_ref) {
|
|
|
7052
7051
|
)
|
|
7053
7052
|
);
|
|
7054
7053
|
}
|
|
7055
|
-
return
|
|
7054
|
+
return React__default.createElement(
|
|
7056
7055
|
'div',
|
|
7057
7056
|
{ className: 'audio' },
|
|
7058
|
-
|
|
7059
|
-
node.caption &&
|
|
7057
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7058
|
+
node.caption && React__default.createElement(
|
|
7060
7059
|
'p',
|
|
7061
7060
|
{ style: { fontSize: '.9rem' } },
|
|
7062
|
-
|
|
7061
|
+
React__default.createElement(
|
|
7063
7062
|
'em',
|
|
7064
7063
|
null,
|
|
7065
7064
|
node.caption
|
|
@@ -7077,34 +7076,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7077
7076
|
var profileImage = arguments[6];
|
|
7078
7077
|
|
|
7079
7078
|
if (authorName && authorURL) {
|
|
7080
|
-
return
|
|
7079
|
+
return React__default.createElement(
|
|
7081
7080
|
'span',
|
|
7082
7081
|
null,
|
|
7083
|
-
|
|
7082
|
+
React__default.createElement(
|
|
7084
7083
|
'a',
|
|
7085
7084
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7086
7085
|
authorName
|
|
7087
7086
|
),
|
|
7088
|
-
|
|
7087
|
+
React__default.createElement(
|
|
7089
7088
|
Card,
|
|
7090
7089
|
{ className: 'author-details-card-' + index },
|
|
7091
|
-
|
|
7090
|
+
React__default.createElement(
|
|
7092
7091
|
Row,
|
|
7093
7092
|
null,
|
|
7094
|
-
profileImage &&
|
|
7093
|
+
profileImage && React__default.createElement(
|
|
7095
7094
|
Col,
|
|
7096
7095
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7097
|
-
|
|
7096
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7098
7097
|
),
|
|
7099
|
-
|
|
7098
|
+
React__default.createElement(
|
|
7100
7099
|
Col,
|
|
7101
7100
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7102
|
-
|
|
7101
|
+
React__default.createElement(
|
|
7103
7102
|
'div',
|
|
7104
7103
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7105
7104
|
authorName
|
|
7106
7105
|
),
|
|
7107
|
-
|
|
7106
|
+
React__default.createElement(
|
|
7108
7107
|
'p',
|
|
7109
7108
|
null,
|
|
7110
7109
|
biography
|
|
@@ -7112,7 +7111,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7112
7111
|
)
|
|
7113
7112
|
)
|
|
7114
7113
|
),
|
|
7115
|
-
|
|
7114
|
+
React__default.createElement(
|
|
7116
7115
|
'style',
|
|
7117
7116
|
{ jsx: 'true' },
|
|
7118
7117
|
'\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 '
|
|
@@ -7120,7 +7119,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7120
7119
|
length !== index + 1 && ' , '
|
|
7121
7120
|
);
|
|
7122
7121
|
} else if (authorName) {
|
|
7123
|
-
return
|
|
7122
|
+
return React__default.createElement(
|
|
7124
7123
|
'span',
|
|
7125
7124
|
{ key: index },
|
|
7126
7125
|
authorName,
|
|
@@ -7280,8 +7279,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7280
7279
|
var duration = player.getDuration();
|
|
7281
7280
|
var queue = Math.floor(duration / 10);
|
|
7282
7281
|
var segment = Math.floor(current / queue);
|
|
7283
|
-
Beam.report_beam_video('Ready',
|
|
7284
|
-
Segment.report_video_event('Video Ready',
|
|
7282
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
7283
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
7285
7284
|
//autoplay
|
|
7286
7285
|
|
|
7287
7286
|
//Small pause before starting next video
|
|
@@ -7301,8 +7300,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7301
7300
|
var queue = Math.floor(duration / 10);
|
|
7302
7301
|
var segment = Math.floor(current / queue);
|
|
7303
7302
|
|
|
7304
|
-
Beam.report_beam_video('End',
|
|
7305
|
-
Segment.report_video_event('Video End',
|
|
7303
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
7304
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
7306
7305
|
setEndReported(true);
|
|
7307
7306
|
clearInterval(intervalID);
|
|
7308
7307
|
}
|
|
@@ -7352,8 +7351,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7352
7351
|
var queue = Math.floor(duration / 10);
|
|
7353
7352
|
var segment = Math.floor(current / queue);
|
|
7354
7353
|
if (!queueProgress.includes(segment)) {
|
|
7355
|
-
Beam.report_beam_video('Segment',
|
|
7356
|
-
Segment.report_video_event('Video Segment',
|
|
7354
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
7355
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
7357
7356
|
queueProgress.push(segment);
|
|
7358
7357
|
}
|
|
7359
7358
|
};
|
|
@@ -7366,8 +7365,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7366
7365
|
var queue = Math.floor(duration / 10);
|
|
7367
7366
|
var segment = Math.floor(current / queue);
|
|
7368
7367
|
|
|
7369
|
-
Beam.report_beam_video('Play',
|
|
7370
|
-
Segment.report_video_event('Video Play',
|
|
7368
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
7369
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
7371
7370
|
|
|
7372
7371
|
if (!playReported) {
|
|
7373
7372
|
setPlayReported(true);
|
|
@@ -7385,8 +7384,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7385
7384
|
var queue = Math.floor(duration / 10);
|
|
7386
7385
|
var segment = Math.floor(current / queue);
|
|
7387
7386
|
|
|
7388
|
-
Beam.report_beam_video('Pause',
|
|
7389
|
-
Segment.report_video_event('Video Pause',
|
|
7387
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
7388
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
7390
7389
|
};
|
|
7391
7390
|
|
|
7392
7391
|
// Youtube Options
|
|
@@ -7397,44 +7396,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7397
7396
|
}
|
|
7398
7397
|
};
|
|
7399
7398
|
|
|
7400
|
-
return
|
|
7399
|
+
return React__default.createElement(
|
|
7401
7400
|
'div',
|
|
7402
7401
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7403
|
-
|
|
7402
|
+
React__default.createElement(
|
|
7404
7403
|
'div',
|
|
7405
7404
|
{ className: 'mt-2 mb-5' },
|
|
7406
|
-
series &&
|
|
7405
|
+
series && React__default.createElement(
|
|
7407
7406
|
'div',
|
|
7408
7407
|
{ style: { fontSize: '0.9rem' } },
|
|
7409
7408
|
article.title,
|
|
7410
7409
|
' - Episode ',
|
|
7411
7410
|
series
|
|
7412
7411
|
),
|
|
7413
|
-
Videos[series - 1] &&
|
|
7412
|
+
Videos[series - 1] && React__default.createElement(
|
|
7414
7413
|
'h1',
|
|
7415
7414
|
{ className: 'mb-3' },
|
|
7416
7415
|
Videos[series - 1].title
|
|
7417
7416
|
),
|
|
7418
|
-
|
|
7417
|
+
React__default.createElement(
|
|
7419
7418
|
'div',
|
|
7420
7419
|
null,
|
|
7421
7420
|
moment(article.published).format('LL')
|
|
7422
7421
|
),
|
|
7423
|
-
|
|
7422
|
+
React__default.createElement(
|
|
7424
7423
|
'div',
|
|
7425
7424
|
{ className: 'mb-3' },
|
|
7426
7425
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7427
|
-
return
|
|
7426
|
+
return React__default.createElement(
|
|
7428
7427
|
'span',
|
|
7429
7428
|
{ key: index },
|
|
7430
7429
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7431
7430
|
);
|
|
7432
7431
|
})
|
|
7433
7432
|
),
|
|
7434
|
-
|
|
7433
|
+
React__default.createElement(
|
|
7435
7434
|
'p',
|
|
7436
7435
|
null,
|
|
7437
|
-
|
|
7436
|
+
React__default.createElement(SocialShare, {
|
|
7438
7437
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7439
7438
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7440
7439
|
shareVia: meta.shareVia,
|
|
@@ -7449,20 +7448,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7449
7448
|
hideFacebook: meta.hideFBShare
|
|
7450
7449
|
})
|
|
7451
7450
|
),
|
|
7452
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7451
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7453
7452
|
'p',
|
|
7454
7453
|
{ className: 'mb-3' },
|
|
7455
|
-
|
|
7454
|
+
React__default.createElement(
|
|
7456
7455
|
'em',
|
|
7457
7456
|
null,
|
|
7458
7457
|
Videos[series - 1].intro
|
|
7459
7458
|
)
|
|
7460
7459
|
)
|
|
7461
7460
|
),
|
|
7462
|
-
|
|
7461
|
+
React__default.createElement(
|
|
7463
7462
|
'div',
|
|
7464
7463
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7465
|
-
vidUrl && vidType == 'youtube' &&
|
|
7464
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7466
7465
|
className: 'fluid-iframe',
|
|
7467
7466
|
videoId: getYoutubeId(vidUrl),
|
|
7468
7467
|
opts: opts,
|
|
@@ -7473,10 +7472,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7473
7472
|
return handleOnEnd(e);
|
|
7474
7473
|
}
|
|
7475
7474
|
}),
|
|
7476
|
-
vidUrl && vidType == 'mp4' &&
|
|
7477
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7478
|
-
|
|
7479
|
-
series &&
|
|
7475
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7476
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7477
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7478
|
+
series && React__default.createElement(
|
|
7480
7479
|
'div',
|
|
7481
7480
|
{
|
|
7482
7481
|
className: 'vid-series',
|
|
@@ -7486,10 +7485,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7486
7485
|
maxHeight: '100%',
|
|
7487
7486
|
paddingBottom: '0'
|
|
7488
7487
|
} },
|
|
7489
|
-
|
|
7488
|
+
React__default.createElement(
|
|
7490
7489
|
'p',
|
|
7491
7490
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7492
|
-
|
|
7491
|
+
React__default.createElement(
|
|
7493
7492
|
'b',
|
|
7494
7493
|
{ style: { fontSize: '1.25em' } },
|
|
7495
7494
|
'Now Playing:'
|
|
@@ -7497,16 +7496,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7497
7496
|
' ',
|
|
7498
7497
|
seriesData[series ? series - 1 : 0].title
|
|
7499
7498
|
),
|
|
7500
|
-
vidUrl &&
|
|
7499
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7501
7500
|
)
|
|
7502
7501
|
),
|
|
7503
|
-
|
|
7504
|
-
|
|
7502
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7503
|
+
React__default.createElement(
|
|
7505
7504
|
'div',
|
|
7506
7505
|
{ className: 'vid-text' },
|
|
7507
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7506
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7508
7507
|
),
|
|
7509
|
-
|
|
7508
|
+
React__default.createElement(
|
|
7510
7509
|
'style',
|
|
7511
7510
|
{ jsx: 'true' },
|
|
7512
7511
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7514,7 +7513,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7514
7513
|
);
|
|
7515
7514
|
};
|
|
7516
7515
|
|
|
7517
|
-
var Poll = function Poll(_ref) {
|
|
7516
|
+
var Poll$1 = function Poll(_ref) {
|
|
7518
7517
|
var node = _ref.node;
|
|
7519
7518
|
_ref.client;
|
|
7520
7519
|
_ref.pageview;
|
|
@@ -7559,67 +7558,67 @@ var Poll = function Poll(_ref) {
|
|
|
7559
7558
|
return acc;
|
|
7560
7559
|
}
|
|
7561
7560
|
}, 0);
|
|
7562
|
-
return
|
|
7563
|
-
|
|
7561
|
+
return React__default.createElement(
|
|
7562
|
+
React__default.Fragment,
|
|
7564
7563
|
null,
|
|
7565
|
-
question &&
|
|
7564
|
+
question && React__default.createElement(
|
|
7566
7565
|
'p',
|
|
7567
7566
|
{ className: 'font-weight-bold' },
|
|
7568
7567
|
question
|
|
7569
7568
|
),
|
|
7570
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7569
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7571
7570
|
'form',
|
|
7572
7571
|
{ onSubmit: function onSubmit(e) {
|
|
7573
7572
|
return onSubmitPoll(e);
|
|
7574
7573
|
} },
|
|
7575
7574
|
choices && choices.map(function (choice) {
|
|
7576
|
-
return
|
|
7575
|
+
return React__default.createElement(
|
|
7577
7576
|
'div',
|
|
7578
7577
|
{ key: choice._key },
|
|
7579
|
-
|
|
7578
|
+
React__default.createElement(
|
|
7580
7579
|
'label',
|
|
7581
7580
|
{ className: 'pl-2' },
|
|
7582
|
-
|
|
7581
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7583
7582
|
return setSelectedChoice(e.target.value);
|
|
7584
7583
|
} }),
|
|
7585
7584
|
' ' + choice.choiceText
|
|
7586
7585
|
)
|
|
7587
7586
|
);
|
|
7588
7587
|
}),
|
|
7589
|
-
|
|
7588
|
+
React__default.createElement(
|
|
7590
7589
|
Button,
|
|
7591
7590
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7592
7591
|
'Vote'
|
|
7593
7592
|
)
|
|
7594
7593
|
),
|
|
7595
|
-
|
|
7594
|
+
React__default.createElement(
|
|
7596
7595
|
'div',
|
|
7597
7596
|
{ className: 'progress-container' },
|
|
7598
7597
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7599
7598
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7600
|
-
return
|
|
7599
|
+
return React__default.createElement(
|
|
7601
7600
|
'div',
|
|
7602
7601
|
{ key: choice._key, className: 'mb-3' },
|
|
7603
|
-
|
|
7602
|
+
React__default.createElement(
|
|
7604
7603
|
'div',
|
|
7605
7604
|
{ className: 'correct-answer' },
|
|
7606
|
-
|
|
7605
|
+
React__default.createElement(
|
|
7607
7606
|
'div',
|
|
7608
7607
|
null,
|
|
7609
7608
|
choice.choiceText
|
|
7610
7609
|
),
|
|
7611
|
-
choice.choiceAnswer === true &&
|
|
7610
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7612
7611
|
'div',
|
|
7613
7612
|
null,
|
|
7614
|
-
|
|
7613
|
+
React__default.createElement(
|
|
7615
7614
|
'span',
|
|
7616
7615
|
{ style: { color: 'limegreen' } },
|
|
7617
7616
|
'Correct!'
|
|
7618
7617
|
)
|
|
7619
7618
|
)
|
|
7620
7619
|
),
|
|
7621
|
-
|
|
7622
|
-
|
|
7620
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7621
|
+
React__default.createElement(
|
|
7623
7622
|
'span',
|
|
7624
7623
|
{ className: 'float-right' },
|
|
7625
7624
|
percentage,
|
|
@@ -7630,14 +7629,14 @@ var Poll = function Poll(_ref) {
|
|
|
7630
7629
|
);
|
|
7631
7630
|
})
|
|
7632
7631
|
),
|
|
7633
|
-
showAnswer &&
|
|
7632
|
+
showAnswer && React__default.createElement(
|
|
7634
7633
|
'h4',
|
|
7635
7634
|
{ className: 'text-center small p-3' },
|
|
7636
7635
|
'Total Votes: ',
|
|
7637
7636
|
choicesTotalCount
|
|
7638
7637
|
),
|
|
7639
|
-
showAnswer && response &&
|
|
7640
|
-
|
|
7638
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7639
|
+
React__default.createElement(
|
|
7641
7640
|
'style',
|
|
7642
7641
|
{ jsx: 'true' },
|
|
7643
7642
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7655,15 +7654,15 @@ _export(_export.S, 'Object', {
|
|
|
7655
7654
|
}
|
|
7656
7655
|
});
|
|
7657
7656
|
|
|
7658
|
-
var values = _core.Object.values;
|
|
7657
|
+
var values$1 = _core.Object.values;
|
|
7659
7658
|
|
|
7660
|
-
var values
|
|
7661
|
-
module.exports = { "default": values, __esModule: true };
|
|
7659
|
+
var values = createCommonjsModule(function (module) {
|
|
7660
|
+
module.exports = { "default": values$1, __esModule: true };
|
|
7662
7661
|
});
|
|
7663
7662
|
|
|
7664
|
-
var _Object$values = unwrapExports(values
|
|
7663
|
+
var _Object$values = unwrapExports(values);
|
|
7665
7664
|
|
|
7666
|
-
var Poll
|
|
7665
|
+
var Poll = function Poll(_ref) {
|
|
7667
7666
|
var node = _ref.node;
|
|
7668
7667
|
_ref.client;
|
|
7669
7668
|
_ref.pageview;
|
|
@@ -7736,67 +7735,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7736
7735
|
return acc;
|
|
7737
7736
|
}
|
|
7738
7737
|
}, 0);
|
|
7739
|
-
return
|
|
7740
|
-
|
|
7738
|
+
return React__default.createElement(
|
|
7739
|
+
React__default.Fragment,
|
|
7741
7740
|
null,
|
|
7742
|
-
question &&
|
|
7741
|
+
question && React__default.createElement(
|
|
7743
7742
|
'p',
|
|
7744
7743
|
{ className: 'font-weight-bold' },
|
|
7745
7744
|
question
|
|
7746
7745
|
),
|
|
7747
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7746
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7748
7747
|
'form',
|
|
7749
7748
|
{ onSubmit: function onSubmit(e) {
|
|
7750
7749
|
return onSubmitPoll(e);
|
|
7751
7750
|
} },
|
|
7752
7751
|
choices && choices.map(function (choice) {
|
|
7753
|
-
return
|
|
7752
|
+
return React__default.createElement(
|
|
7754
7753
|
'div',
|
|
7755
7754
|
{ key: choice._key },
|
|
7756
|
-
|
|
7755
|
+
React__default.createElement(
|
|
7757
7756
|
'label',
|
|
7758
7757
|
{ className: 'pl-2' },
|
|
7759
|
-
|
|
7758
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7760
7759
|
return setSelectedChoice(e.target.value);
|
|
7761
7760
|
} }),
|
|
7762
7761
|
' ' + choice.choiceText
|
|
7763
7762
|
)
|
|
7764
7763
|
);
|
|
7765
7764
|
}),
|
|
7766
|
-
|
|
7765
|
+
React__default.createElement(
|
|
7767
7766
|
Button,
|
|
7768
7767
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7769
7768
|
'Vote'
|
|
7770
7769
|
)
|
|
7771
7770
|
),
|
|
7772
|
-
|
|
7771
|
+
React__default.createElement(
|
|
7773
7772
|
'div',
|
|
7774
7773
|
{ className: 'progress-container' },
|
|
7775
7774
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7776
7775
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7777
|
-
return
|
|
7776
|
+
return React__default.createElement(
|
|
7778
7777
|
'div',
|
|
7779
7778
|
{ key: choice._key, className: 'mb-3' },
|
|
7780
|
-
|
|
7779
|
+
React__default.createElement(
|
|
7781
7780
|
'div',
|
|
7782
7781
|
{ className: 'correct-answer' },
|
|
7783
|
-
|
|
7782
|
+
React__default.createElement(
|
|
7784
7783
|
'div',
|
|
7785
7784
|
null,
|
|
7786
7785
|
choice.choiceText
|
|
7787
7786
|
),
|
|
7788
|
-
choice.choiceAnswer === true &&
|
|
7787
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7789
7788
|
'div',
|
|
7790
7789
|
null,
|
|
7791
|
-
|
|
7790
|
+
React__default.createElement(
|
|
7792
7791
|
'span',
|
|
7793
7792
|
{ style: { color: 'limegreen' } },
|
|
7794
7793
|
'Correct!'
|
|
7795
7794
|
)
|
|
7796
7795
|
)
|
|
7797
7796
|
),
|
|
7798
|
-
|
|
7799
|
-
|
|
7797
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7798
|
+
React__default.createElement(
|
|
7800
7799
|
'span',
|
|
7801
7800
|
{ className: 'float-right' },
|
|
7802
7801
|
percentage,
|
|
@@ -7807,14 +7806,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7807
7806
|
);
|
|
7808
7807
|
})
|
|
7809
7808
|
),
|
|
7810
|
-
showAnswer &&
|
|
7809
|
+
showAnswer && React__default.createElement(
|
|
7811
7810
|
'h4',
|
|
7812
7811
|
{ className: 'text-center small p-3' },
|
|
7813
7812
|
'Total Votes: ',
|
|
7814
7813
|
choicesTotalCount
|
|
7815
7814
|
),
|
|
7816
|
-
showAnswer && response &&
|
|
7817
|
-
|
|
7815
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7816
|
+
React__default.createElement(
|
|
7818
7817
|
'style',
|
|
7819
7818
|
{ jsx: 'true' },
|
|
7820
7819
|
'\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 +7821,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7822
7821
|
);
|
|
7823
7822
|
};
|
|
7824
7823
|
|
|
7825
|
-
var numberOfPaginations =
|
|
7824
|
+
var numberOfPaginations = main_42 ? 4 : 10;
|
|
7826
7825
|
|
|
7827
7826
|
var Quiz = function Quiz(_ref) {
|
|
7828
7827
|
var quizzes = _ref.quizzes,
|
|
@@ -7940,20 +7939,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7940
7939
|
};
|
|
7941
7940
|
|
|
7942
7941
|
var renderPagination = function renderPagination() {
|
|
7943
|
-
return
|
|
7942
|
+
return React__default.createElement(
|
|
7944
7943
|
Pagination,
|
|
7945
|
-
{ className: 'p-0 m-0', size:
|
|
7946
|
-
|
|
7944
|
+
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
7945
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7947
7946
|
return changePage('first');
|
|
7948
7947
|
}, disabled: currentPage === 1 }),
|
|
7949
|
-
|
|
7948
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7950
7949
|
return changePage('prev');
|
|
7951
7950
|
}, disabled: currentPage === 1 }),
|
|
7952
|
-
|
|
7951
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7953
7952
|
return renderNewPages('prev');
|
|
7954
7953
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7955
7954
|
pages.map(function (page) {
|
|
7956
|
-
return
|
|
7955
|
+
return React__default.createElement(
|
|
7957
7956
|
Pagination.Item,
|
|
7958
7957
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7959
7958
|
return changePage(page);
|
|
@@ -7961,13 +7960,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
7961
7960
|
page
|
|
7962
7961
|
);
|
|
7963
7962
|
}),
|
|
7964
|
-
|
|
7963
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7965
7964
|
return renderNewPages('next');
|
|
7966
7965
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7967
|
-
|
|
7966
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7968
7967
|
return changePage('next');
|
|
7969
7968
|
}, disabled: currentPage === pageCount }),
|
|
7970
|
-
|
|
7969
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7971
7970
|
return changePage('last');
|
|
7972
7971
|
}, disabled: currentPage === pageCount })
|
|
7973
7972
|
);
|
|
@@ -8050,51 +8049,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8050
8049
|
}
|
|
8051
8050
|
};
|
|
8052
8051
|
|
|
8053
|
-
return
|
|
8054
|
-
|
|
8052
|
+
return React__default.createElement(
|
|
8053
|
+
React__default.Fragment,
|
|
8055
8054
|
null,
|
|
8056
|
-
quizzes[currentPage - 1] &&
|
|
8057
|
-
|
|
8055
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8056
|
+
React__default.Fragment,
|
|
8058
8057
|
null,
|
|
8059
|
-
|
|
8060
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8058
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8059
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8061
8060
|
'form',
|
|
8062
8061
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8063
8062
|
return e.preventDefault();
|
|
8064
8063
|
} },
|
|
8065
8064
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8066
|
-
return
|
|
8065
|
+
return React__default.createElement(
|
|
8067
8066
|
'div',
|
|
8068
8067
|
{ key: answer._key },
|
|
8069
|
-
|
|
8068
|
+
React__default.createElement(
|
|
8070
8069
|
'label',
|
|
8071
8070
|
{ className: 'pl-2' },
|
|
8072
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8071
|
+
quizzes[currentPage - 1].multiAnswer ? React__default.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React__default.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8073
8072
|
' ' + answer.answerText
|
|
8074
8073
|
)
|
|
8075
8074
|
);
|
|
8076
8075
|
})
|
|
8077
8076
|
)
|
|
8078
8077
|
),
|
|
8079
|
-
!showAnswer &&
|
|
8078
|
+
!showAnswer && React__default.createElement(
|
|
8080
8079
|
Button$1,
|
|
8081
8080
|
{ onClick: function onClick() {
|
|
8082
8081
|
return checkAnswers();
|
|
8083
8082
|
}, variant: 'info', block: true },
|
|
8084
8083
|
'Please click here for answer'
|
|
8085
8084
|
),
|
|
8086
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8087
|
-
|
|
8085
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8086
|
+
React__default.Fragment,
|
|
8088
8087
|
null,
|
|
8089
|
-
|
|
8088
|
+
React__default.createElement(
|
|
8090
8089
|
'h4',
|
|
8091
8090
|
null,
|
|
8092
8091
|
'Answer:'
|
|
8093
8092
|
),
|
|
8094
|
-
quizzes[currentPage - 1].answer &&
|
|
8093
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8095
8094
|
),
|
|
8096
|
-
|
|
8097
|
-
pageCount > 1 &&
|
|
8095
|
+
React__default.createElement('br', null),
|
|
8096
|
+
pageCount > 1 && React__default.createElement(
|
|
8098
8097
|
'div',
|
|
8099
8098
|
{ className: 'd-flex justify-content-center' },
|
|
8100
8099
|
renderPagination()
|
|
@@ -8105,19 +8104,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8105
8104
|
var Leads = function Leads(_ref) {
|
|
8106
8105
|
var url = _ref.url;
|
|
8107
8106
|
|
|
8108
|
-
return
|
|
8107
|
+
return React__default.createElement(
|
|
8109
8108
|
'div',
|
|
8110
8109
|
{ className: 'd-block text-center mb-3' },
|
|
8111
|
-
url &&
|
|
8110
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8112
8111
|
);
|
|
8113
8112
|
};
|
|
8114
8113
|
|
|
8115
|
-
var urlFor$
|
|
8114
|
+
var urlFor$3 = function urlFor(source, client) {
|
|
8116
8115
|
var builder = imageUrlBuilder(client);
|
|
8117
8116
|
return builder.image(source).auto('format');
|
|
8118
8117
|
};
|
|
8119
8118
|
|
|
8120
|
-
var Slideshow
|
|
8119
|
+
var Slideshow = function Slideshow(_ref) {
|
|
8121
8120
|
var slides = _ref.node.slides,
|
|
8122
8121
|
client = _ref.client,
|
|
8123
8122
|
pageview = _ref.pageview,
|
|
@@ -8156,42 +8155,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8156
8155
|
}
|
|
8157
8156
|
};
|
|
8158
8157
|
|
|
8159
|
-
return
|
|
8158
|
+
return React__default.createElement(
|
|
8160
8159
|
'div',
|
|
8161
8160
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8162
|
-
|
|
8161
|
+
React__default.createElement(
|
|
8163
8162
|
Carousel,
|
|
8164
8163
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8165
8164
|
slides && slides.map(function (slide) {
|
|
8166
8165
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8167
|
-
return
|
|
8166
|
+
return React__default.createElement(
|
|
8168
8167
|
Carousel.Item,
|
|
8169
8168
|
{ key: slide._key },
|
|
8170
|
-
|
|
8169
|
+
React__default.createElement(
|
|
8171
8170
|
'a',
|
|
8172
8171
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8173
|
-
|
|
8172
|
+
React__default.createElement(
|
|
8174
8173
|
LazyLoad,
|
|
8175
8174
|
null,
|
|
8176
|
-
|
|
8175
|
+
React__default.createElement('img', { src: urlFor$3(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8177
8176
|
)
|
|
8178
8177
|
),
|
|
8179
|
-
|
|
8178
|
+
React__default.createElement(
|
|
8180
8179
|
'div',
|
|
8181
8180
|
{ className: 'p-2' },
|
|
8182
|
-
slide.slideshowImage.caption &&
|
|
8181
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8183
8182
|
'h3',
|
|
8184
8183
|
{ style: { padding: '0px' } },
|
|
8185
8184
|
slide.slideshowImage.caption
|
|
8186
8185
|
),
|
|
8187
|
-
slide.description &&
|
|
8186
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8188
8187
|
)
|
|
8189
8188
|
);
|
|
8190
8189
|
}
|
|
8191
8190
|
return null;
|
|
8192
8191
|
})
|
|
8193
8192
|
),
|
|
8194
|
-
|
|
8193
|
+
React__default.createElement(
|
|
8195
8194
|
'style',
|
|
8196
8195
|
{ jsx: 'true' },
|
|
8197
8196
|
'\n .carousel-indicators {\n bottom: -2.5rem !important;\n }\n .carousel-indicators li {\n width: 20px;\n height: 20px;\n border-radius: 50% !important;\n background-color: var(--secondary);\n }\n .carousel-control-prev {\n justify-content: flex-start;\n }\n .carousel-control-next {\n justify-content: flex-end;\n }\n '
|
|
@@ -8210,10 +8209,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8210
8209
|
sizes = _props$node.sizes,
|
|
8211
8210
|
sizeMapping = _props$node.sizeMapping;
|
|
8212
8211
|
|
|
8213
|
-
return
|
|
8212
|
+
return React__default.createElement(
|
|
8214
8213
|
'div',
|
|
8215
8214
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8216
|
-
|
|
8215
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8217
8216
|
);
|
|
8218
8217
|
};
|
|
8219
8218
|
|
|
@@ -8224,15 +8223,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8224
8223
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8225
8224
|
|
|
8226
8225
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8227
|
-
return
|
|
8226
|
+
return React__default.createElement(
|
|
8228
8227
|
'section',
|
|
8229
8228
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8230
|
-
Caption &&
|
|
8229
|
+
Caption && React__default.createElement(
|
|
8231
8230
|
'h4',
|
|
8232
8231
|
{ className: 'formstack-caption' },
|
|
8233
8232
|
Caption
|
|
8234
8233
|
),
|
|
8235
|
-
|
|
8234
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8236
8235
|
);
|
|
8237
8236
|
};
|
|
8238
8237
|
|
|
@@ -8252,29 +8251,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8252
8251
|
}
|
|
8253
8252
|
});
|
|
8254
8253
|
if (medias && medias.length > 0) {
|
|
8255
|
-
return
|
|
8254
|
+
return React__default.createElement(
|
|
8256
8255
|
'div',
|
|
8257
8256
|
{ className: 'multi-media-container' },
|
|
8258
|
-
|
|
8257
|
+
React__default.createElement(
|
|
8259
8258
|
Row$1,
|
|
8260
8259
|
{ noGutters: true },
|
|
8261
8260
|
medias.map(function (media) {
|
|
8262
|
-
return
|
|
8261
|
+
return React__default.createElement(
|
|
8263
8262
|
Col$1,
|
|
8264
8263
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8265
|
-
|
|
8264
|
+
React__default.createElement(
|
|
8266
8265
|
'a',
|
|
8267
8266
|
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8268
8267
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8269
|
-
|
|
8268
|
+
React__default.createElement(
|
|
8270
8269
|
'div',
|
|
8271
8270
|
{ className: 'multi-media-image-container' },
|
|
8272
|
-
imageBox &&
|
|
8271
|
+
imageBox && React__default.createElement(
|
|
8273
8272
|
LazyLoad,
|
|
8274
8273
|
{ once: true },
|
|
8275
|
-
|
|
8274
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8276
8275
|
),
|
|
8277
|
-
media.caption &&
|
|
8276
|
+
media.caption && React__default.createElement(
|
|
8278
8277
|
'span',
|
|
8279
8278
|
{ className: 'multi-media-caption' },
|
|
8280
8279
|
media.caption
|
|
@@ -8284,7 +8283,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8284
8283
|
);
|
|
8285
8284
|
})
|
|
8286
8285
|
),
|
|
8287
|
-
|
|
8286
|
+
React__default.createElement(
|
|
8288
8287
|
'style',
|
|
8289
8288
|
{ jsx: 'true' },
|
|
8290
8289
|
'\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 '
|
|
@@ -8331,7 +8330,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8331
8330
|
}
|
|
8332
8331
|
};
|
|
8333
8332
|
|
|
8334
|
-
_this.wraperRef =
|
|
8333
|
+
_this.wraperRef = React__default.createRef();
|
|
8335
8334
|
_this.visible = false;
|
|
8336
8335
|
return _this;
|
|
8337
8336
|
}
|
|
@@ -8359,7 +8358,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8359
8358
|
_props$id = _props.id,
|
|
8360
8359
|
id = _props$id === undefined ? '' : _props$id;
|
|
8361
8360
|
|
|
8362
|
-
return
|
|
8361
|
+
return React__default.createElement(
|
|
8363
8362
|
'div',
|
|
8364
8363
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8365
8364
|
this.props.children
|
|
@@ -8368,7 +8367,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8368
8367
|
}]);
|
|
8369
8368
|
|
|
8370
8369
|
return InscreenSensor;
|
|
8371
|
-
}(
|
|
8370
|
+
}(React__default.Component);
|
|
8372
8371
|
|
|
8373
8372
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8374
8373
|
var nodes = _ref.nodes,
|
|
@@ -8481,33 +8480,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8481
8480
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8482
8481
|
var showReading = show ? 'showReading' : '';
|
|
8483
8482
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8484
|
-
return
|
|
8483
|
+
return React__default.createElement(
|
|
8485
8484
|
'div',
|
|
8486
8485
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8487
|
-
|
|
8486
|
+
React__default.createElement(
|
|
8488
8487
|
'a',
|
|
8489
8488
|
{ onClick: function onClick(e) {
|
|
8490
8489
|
return articleCardClickHandler(e);
|
|
8491
8490
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8492
|
-
|
|
8491
|
+
React__default.createElement(
|
|
8493
8492
|
'div',
|
|
8494
8493
|
{ className: 'prevNext-thumbnail' },
|
|
8495
|
-
|
|
8496
|
-
|
|
8494
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8495
|
+
React__default.createElement(
|
|
8497
8496
|
'div',
|
|
8498
8497
|
{ className: 'prevNext-reading ' + showReading },
|
|
8499
8498
|
articleLabel
|
|
8500
8499
|
)
|
|
8501
8500
|
),
|
|
8502
|
-
|
|
8501
|
+
React__default.createElement(
|
|
8503
8502
|
'div',
|
|
8504
8503
|
{ className: 'prevNext-summary' },
|
|
8505
|
-
|
|
8504
|
+
React__default.createElement(
|
|
8506
8505
|
'div',
|
|
8507
8506
|
{ className: 'prevNext-publishDate' },
|
|
8508
8507
|
moment(article.published).format('LL')
|
|
8509
8508
|
),
|
|
8510
|
-
|
|
8509
|
+
React__default.createElement(
|
|
8511
8510
|
'h2',
|
|
8512
8511
|
{ className: 'prevNext-title' },
|
|
8513
8512
|
article.title
|
|
@@ -8556,7 +8555,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8556
8555
|
|
|
8557
8556
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8558
8557
|
if (biography) {
|
|
8559
|
-
return
|
|
8558
|
+
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8560
8559
|
}
|
|
8561
8560
|
};
|
|
8562
8561
|
|
|
@@ -8642,7 +8641,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8642
8641
|
//console.log('useLayoutEffect')
|
|
8643
8642
|
if (!firstLoad) {
|
|
8644
8643
|
setUpArrowClicked(false);
|
|
8645
|
-
if (
|
|
8644
|
+
if (main_43) {
|
|
8646
8645
|
grabLoadedAds();
|
|
8647
8646
|
} else {
|
|
8648
8647
|
scrollToArticle();
|
|
@@ -8666,7 +8665,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8666
8665
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8667
8666
|
if (pageview) pageview(path);
|
|
8668
8667
|
|
|
8669
|
-
if (!
|
|
8668
|
+
if (!main_43) {
|
|
8670
8669
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8671
8670
|
if (window.googletag && googletag.pubadsReady) {
|
|
8672
8671
|
lib_3.refresh();
|
|
@@ -8674,7 +8673,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8674
8673
|
});
|
|
8675
8674
|
}
|
|
8676
8675
|
//Refresh leaderboard ad on mobile
|
|
8677
|
-
if (
|
|
8676
|
+
if (main_43) {
|
|
8678
8677
|
var leaderboardSlotId = '';
|
|
8679
8678
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8680
8679
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8714,38 +8713,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8714
8713
|
setSensorVisible(false);
|
|
8715
8714
|
};
|
|
8716
8715
|
|
|
8717
|
-
return
|
|
8718
|
-
|
|
8716
|
+
return React__default.createElement(
|
|
8717
|
+
React__default.Fragment,
|
|
8719
8718
|
null,
|
|
8720
|
-
|
|
8719
|
+
React__default.createElement(
|
|
8721
8720
|
'div',
|
|
8722
8721
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8723
|
-
|
|
8722
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8724
8723
|
return handleArrowClick();
|
|
8725
8724
|
} })
|
|
8726
8725
|
),
|
|
8727
|
-
|
|
8728
|
-
|
|
8726
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8727
|
+
React__default.createElement(
|
|
8729
8728
|
'div',
|
|
8730
8729
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8731
|
-
|
|
8730
|
+
React__default.createElement(
|
|
8732
8731
|
'h5',
|
|
8733
8732
|
{ className: 'objective-title' },
|
|
8734
8733
|
nodes.seriesTitle
|
|
8735
8734
|
),
|
|
8736
|
-
|
|
8735
|
+
React__default.createElement(
|
|
8737
8736
|
'div',
|
|
8738
8737
|
{ className: 'prevNextWrapper' },
|
|
8739
8738
|
PrevNextCards(false, -1)
|
|
8740
8739
|
)
|
|
8741
8740
|
),
|
|
8742
|
-
|
|
8743
|
-
|
|
8741
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8742
|
+
React__default.createElement(
|
|
8744
8743
|
'div',
|
|
8745
8744
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8746
|
-
|
|
8745
|
+
main_43 && Ads.map(function (ad, index) {
|
|
8747
8746
|
if (index === 0) {
|
|
8748
|
-
return
|
|
8747
|
+
return React__default.createElement(
|
|
8749
8748
|
'div',
|
|
8750
8749
|
{
|
|
8751
8750
|
key: 'addid-1',
|
|
@@ -8765,14 +8764,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8765
8764
|
}
|
|
8766
8765
|
})
|
|
8767
8766
|
),
|
|
8768
|
-
|
|
8767
|
+
React__default.createElement(
|
|
8769
8768
|
'div',
|
|
8770
8769
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8771
8770
|
Articles.map(function (article, index) {
|
|
8772
|
-
return
|
|
8771
|
+
return React__default.createElement(
|
|
8773
8772
|
'div',
|
|
8774
8773
|
{ key: article.title },
|
|
8775
|
-
|
|
8774
|
+
React__default.createElement(
|
|
8776
8775
|
InscreenSensor,
|
|
8777
8776
|
{
|
|
8778
8777
|
visible: sensorVisible,
|
|
@@ -8790,84 +8789,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8790
8789
|
}
|
|
8791
8790
|
}
|
|
8792
8791
|
} },
|
|
8793
|
-
|
|
8792
|
+
React__default.createElement(
|
|
8794
8793
|
Head,
|
|
8795
8794
|
null,
|
|
8796
|
-
currentTitle !== null &&
|
|
8795
|
+
currentTitle !== null && React__default.createElement(
|
|
8797
8796
|
'title',
|
|
8798
8797
|
{ key: 'title' },
|
|
8799
8798
|
currentTitle
|
|
8800
8799
|
),
|
|
8801
|
-
currentSummary !== null &&
|
|
8802
|
-
currentURL !== null &&
|
|
8803
|
-
currentTitle !== null &&
|
|
8804
|
-
currentThumbnail !== null &&
|
|
8805
|
-
currentSummary !== null &&
|
|
8806
|
-
currentTitle !== null &&
|
|
8807
|
-
currentThumbnail !== null &&
|
|
8808
|
-
currentSummary !== null &&
|
|
8800
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8801
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8802
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8803
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8804
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8805
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8806
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8807
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8809
8808
|
),
|
|
8810
|
-
|
|
8809
|
+
React__default.createElement(
|
|
8811
8810
|
'article',
|
|
8812
8811
|
{ className: 'article-wrapper' },
|
|
8813
|
-
|
|
8812
|
+
React__default.createElement(
|
|
8814
8813
|
'div',
|
|
8815
8814
|
{ className: 'article-publishDate' },
|
|
8816
8815
|
moment(article.published).format('LL')
|
|
8817
8816
|
),
|
|
8818
|
-
|
|
8817
|
+
React__default.createElement(
|
|
8819
8818
|
'div',
|
|
8820
8819
|
{ className: 'author-details-wrapper' },
|
|
8821
8820
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8822
|
-
return
|
|
8821
|
+
return React__default.createElement(
|
|
8823
8822
|
'span',
|
|
8824
8823
|
{ key: index },
|
|
8825
8824
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8826
8825
|
);
|
|
8827
8826
|
})
|
|
8828
8827
|
),
|
|
8829
|
-
|
|
8828
|
+
React__default.createElement(
|
|
8830
8829
|
'h2',
|
|
8831
8830
|
{ className: 'article-title' },
|
|
8832
8831
|
article.title
|
|
8833
8832
|
),
|
|
8834
|
-
|
|
8833
|
+
React__default.createElement(
|
|
8835
8834
|
'div',
|
|
8836
8835
|
{ className: 'mt-2 mb-2' },
|
|
8837
|
-
|
|
8836
|
+
React__default.createElement(BlockContent, _extends({
|
|
8838
8837
|
serializers: getSerializers,
|
|
8839
8838
|
videoAccountIDs: accountIDs,
|
|
8840
8839
|
blocks: article.text,
|
|
8841
8840
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8842
8841
|
}, client.config())),
|
|
8843
|
-
|
|
8842
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8844
8843
|
),
|
|
8845
|
-
Articles.length > 1 &&
|
|
8846
|
-
|
|
8844
|
+
Articles.length > 1 && React__default.createElement(
|
|
8845
|
+
React__default.Fragment,
|
|
8847
8846
|
null,
|
|
8848
|
-
|
|
8847
|
+
React__default.createElement(
|
|
8849
8848
|
'div',
|
|
8850
8849
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8851
|
-
|
|
8850
|
+
React__default.createElement(
|
|
8852
8851
|
'h5',
|
|
8853
8852
|
{ className: 'objective-title' },
|
|
8854
8853
|
nodes.seriesTitle
|
|
8855
8854
|
),
|
|
8856
|
-
|
|
8855
|
+
React__default.createElement(
|
|
8857
8856
|
'div',
|
|
8858
8857
|
{ className: 'prevNextWrapper' },
|
|
8859
8858
|
PrevNextCards(true, index)
|
|
8860
8859
|
)
|
|
8861
8860
|
),
|
|
8862
|
-
|
|
8861
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8863
8862
|
)
|
|
8864
8863
|
),
|
|
8865
|
-
|
|
8864
|
+
React__default.createElement(
|
|
8866
8865
|
'div',
|
|
8867
8866
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8868
|
-
|
|
8867
|
+
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8869
8868
|
if (innerIndex === 0) {
|
|
8870
|
-
return
|
|
8869
|
+
return React__default.createElement(
|
|
8871
8870
|
'div',
|
|
8872
8871
|
{
|
|
8873
8872
|
key: 'addid-' + (index + 2),
|
|
@@ -8890,7 +8889,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8890
8889
|
)
|
|
8891
8890
|
);
|
|
8892
8891
|
}),
|
|
8893
|
-
|
|
8892
|
+
React__default.createElement(
|
|
8894
8893
|
'style',
|
|
8895
8894
|
{ jsx: 'true' },
|
|
8896
8895
|
'\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 '
|
|
@@ -8920,11 +8919,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8920
8919
|
};
|
|
8921
8920
|
}, [handleClickOutside]);
|
|
8922
8921
|
|
|
8923
|
-
return
|
|
8922
|
+
return React__default.createElement(
|
|
8924
8923
|
'div',
|
|
8925
8924
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8926
|
-
|
|
8927
|
-
|
|
8925
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8926
|
+
React__default.createElement(
|
|
8928
8927
|
'style',
|
|
8929
8928
|
{ jsx: 'true' },
|
|
8930
8929
|
'\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 '
|
|
@@ -8932,7 +8931,7 @@ var LightBox = function LightBox(_ref) {
|
|
|
8932
8931
|
);
|
|
8933
8932
|
};
|
|
8934
8933
|
|
|
8935
|
-
var urlFor$
|
|
8934
|
+
var urlFor$1 = function urlFor(source, client) {
|
|
8936
8935
|
var builder = imageUrlBuilder(client);
|
|
8937
8936
|
return builder.image(source).auto('format');
|
|
8938
8937
|
};
|
|
@@ -9018,13 +9017,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9018
9017
|
|
|
9019
9018
|
var FigureCaption = useCallback(function () {
|
|
9020
9019
|
if (imgcaption && imgcaption.length > 0) {
|
|
9021
|
-
return
|
|
9020
|
+
return React__default.createElement(
|
|
9022
9021
|
'div',
|
|
9023
9022
|
{ className: 'figure-caption' },
|
|
9024
|
-
|
|
9023
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9025
9024
|
);
|
|
9026
9025
|
} else if (caption) {
|
|
9027
|
-
return
|
|
9026
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9028
9027
|
} else return null;
|
|
9029
9028
|
}, [caption, imgcaption]);
|
|
9030
9029
|
|
|
@@ -9036,33 +9035,33 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9036
9035
|
margin: figureMargin
|
|
9037
9036
|
};
|
|
9038
9037
|
|
|
9039
|
-
return
|
|
9040
|
-
|
|
9038
|
+
return React__default.createElement(
|
|
9039
|
+
React__default.Fragment,
|
|
9041
9040
|
null,
|
|
9042
|
-
|
|
9041
|
+
React__default.createElement(
|
|
9043
9042
|
Figure$2,
|
|
9044
9043
|
{ className: '' + class_name, style: figureStyle },
|
|
9045
|
-
link ?
|
|
9044
|
+
link ? React__default.createElement(
|
|
9046
9045
|
'a',
|
|
9047
9046
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
) :
|
|
9051
|
-
|
|
9047
|
+
React__default.createElement(Figure$2.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$1(node, client).url(), alt: alt && alt }),
|
|
9048
|
+
React__default.createElement(FigureCaption, null)
|
|
9049
|
+
) : React__default.createElement(
|
|
9050
|
+
React__default.Fragment,
|
|
9052
9051
|
null,
|
|
9053
|
-
|
|
9052
|
+
React__default.createElement(Figure$2.Image, {
|
|
9054
9053
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
9055
9054
|
className: 'figure-image',
|
|
9056
|
-
src: urlFor$
|
|
9055
|
+
src: urlFor$1(node, client).url(),
|
|
9057
9056
|
alt: alt && alt,
|
|
9058
9057
|
onClick: function onClick() {
|
|
9059
|
-
setLightboxImgSrc(urlFor$
|
|
9058
|
+
setLightboxImgSrc(urlFor$1(node, client).url());
|
|
9060
9059
|
setShowLightbox(true);
|
|
9061
9060
|
}
|
|
9062
9061
|
}),
|
|
9063
|
-
|
|
9062
|
+
React__default.createElement(FigureCaption, null)
|
|
9064
9063
|
),
|
|
9065
|
-
|
|
9064
|
+
React__default.createElement(LightBox, {
|
|
9066
9065
|
showLightbox: showLightbox,
|
|
9067
9066
|
lightboxImgSrc: lightboxImgSrc,
|
|
9068
9067
|
closeLightbox: function closeLightbox() {
|
|
@@ -9071,7 +9070,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9071
9070
|
}
|
|
9072
9071
|
})
|
|
9073
9072
|
),
|
|
9074
|
-
|
|
9073
|
+
React__default.createElement(
|
|
9075
9074
|
'style',
|
|
9076
9075
|
{ jsx: 'true' },
|
|
9077
9076
|
'\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 '
|
|
@@ -9079,9 +9078,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9079
9078
|
);
|
|
9080
9079
|
};
|
|
9081
9080
|
|
|
9082
|
-
var Figure =
|
|
9081
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9083
9082
|
|
|
9084
|
-
var urlFor
|
|
9083
|
+
var urlFor = function urlFor(source, client) {
|
|
9085
9084
|
var builder = imageUrlBuilder(client);
|
|
9086
9085
|
return builder.image(source).auto('format');
|
|
9087
9086
|
};
|
|
@@ -9125,68 +9124,68 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9125
9124
|
imgcaption = _ref.imgcaption;
|
|
9126
9125
|
|
|
9127
9126
|
if (imgcaption && imgcaption.length > 0) {
|
|
9128
|
-
return
|
|
9127
|
+
return React__default.createElement(
|
|
9129
9128
|
'div',
|
|
9130
9129
|
{ className: 'multi-figure-caption' },
|
|
9131
|
-
|
|
9130
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9132
9131
|
);
|
|
9133
9132
|
} else if (caption) {
|
|
9134
|
-
return
|
|
9133
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9135
9134
|
} else return null;
|
|
9136
9135
|
};
|
|
9137
9136
|
|
|
9138
9137
|
if (images && images.length > 0) {
|
|
9139
|
-
return
|
|
9138
|
+
return React__default.createElement(
|
|
9140
9139
|
'div',
|
|
9141
9140
|
{ className: 'multi-figure-container' },
|
|
9142
|
-
|
|
9141
|
+
React__default.createElement(
|
|
9143
9142
|
Row$1,
|
|
9144
9143
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9145
9144
|
images.map(function (image, index) {
|
|
9146
|
-
return
|
|
9145
|
+
return React__default.createElement(
|
|
9147
9146
|
Col$1,
|
|
9148
9147
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9149
|
-
image.link ?
|
|
9148
|
+
image.link ? React__default.createElement(
|
|
9150
9149
|
'a',
|
|
9151
9150
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9152
|
-
|
|
9151
|
+
React__default.createElement(
|
|
9153
9152
|
'div',
|
|
9154
9153
|
{ className: 'multi-figure-image-container' },
|
|
9155
|
-
|
|
9154
|
+
React__default.createElement(
|
|
9156
9155
|
LazyLoad,
|
|
9157
9156
|
{ once: true },
|
|
9158
|
-
|
|
9157
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor(image.asset, client).url(), alt: image.alt })
|
|
9159
9158
|
),
|
|
9160
|
-
|
|
9159
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9161
9160
|
)
|
|
9162
|
-
) :
|
|
9161
|
+
) : React__default.createElement(
|
|
9163
9162
|
'div',
|
|
9164
9163
|
{ className: 'multi-figure-image-container' },
|
|
9165
|
-
|
|
9164
|
+
React__default.createElement(
|
|
9166
9165
|
LazyLoad,
|
|
9167
9166
|
{ once: true },
|
|
9168
|
-
|
|
9167
|
+
React__default.createElement('img', {
|
|
9169
9168
|
'images-count': images.length,
|
|
9170
9169
|
className: 'multi-figure-image',
|
|
9171
|
-
src: urlFor
|
|
9170
|
+
src: urlFor(image.asset, client).url(),
|
|
9172
9171
|
alt: image.alt,
|
|
9173
9172
|
onClick: function onClick() {
|
|
9174
|
-
setOpenImgSrc(urlFor
|
|
9173
|
+
setOpenImgSrc(urlFor(image, client).url());
|
|
9175
9174
|
setOpenImg(true);
|
|
9176
9175
|
}
|
|
9177
9176
|
})
|
|
9178
9177
|
),
|
|
9179
|
-
|
|
9178
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9180
9179
|
)
|
|
9181
9180
|
);
|
|
9182
9181
|
})
|
|
9183
9182
|
),
|
|
9184
|
-
|
|
9183
|
+
React__default.createElement(
|
|
9185
9184
|
'div',
|
|
9186
9185
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9187
|
-
|
|
9186
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9188
9187
|
),
|
|
9189
|
-
|
|
9188
|
+
React__default.createElement(
|
|
9190
9189
|
'style',
|
|
9191
9190
|
{ jsx: 'true' },
|
|
9192
9191
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9208,13 +9207,265 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9208
9207
|
|
|
9209
9208
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9210
9209
|
|
|
9211
|
-
return
|
|
9210
|
+
return React__default.createElement(
|
|
9212
9211
|
'div',
|
|
9213
9212
|
{ id: elementId },
|
|
9214
|
-
|
|
9213
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9215
9214
|
);
|
|
9216
9215
|
};
|
|
9217
9216
|
|
|
9217
|
+
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9218
|
+
|
|
9219
|
+
exports.__esModule = true;
|
|
9220
|
+
|
|
9221
|
+
exports.default = function (obj, keys) {
|
|
9222
|
+
var target = {};
|
|
9223
|
+
|
|
9224
|
+
for (var i in obj) {
|
|
9225
|
+
if (keys.indexOf(i) >= 0) continue;
|
|
9226
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9227
|
+
target[i] = obj[i];
|
|
9228
|
+
}
|
|
9229
|
+
|
|
9230
|
+
return target;
|
|
9231
|
+
};
|
|
9232
|
+
});
|
|
9233
|
+
|
|
9234
|
+
unwrapExports(objectWithoutProperties);
|
|
9235
|
+
|
|
9236
|
+
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9237
|
+
|
|
9238
|
+
exports.__esModule = true;
|
|
9239
|
+
|
|
9240
|
+
|
|
9241
|
+
|
|
9242
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9243
|
+
|
|
9244
|
+
|
|
9245
|
+
|
|
9246
|
+
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9247
|
+
|
|
9248
|
+
|
|
9249
|
+
|
|
9250
|
+
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
9251
|
+
|
|
9252
|
+
|
|
9253
|
+
|
|
9254
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
9255
|
+
|
|
9256
|
+
|
|
9257
|
+
|
|
9258
|
+
var _inherits3 = _interopRequireDefault(inherits);
|
|
9259
|
+
|
|
9260
|
+
|
|
9261
|
+
|
|
9262
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9263
|
+
|
|
9264
|
+
|
|
9265
|
+
|
|
9266
|
+
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
9267
|
+
|
|
9268
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9269
|
+
var noop = function noop() {};
|
|
9270
|
+
|
|
9271
|
+
var ScriptTag = function (_Component) {
|
|
9272
|
+
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9273
|
+
|
|
9274
|
+
ScriptTag.removeNode = function removeNode(node) {
|
|
9275
|
+
if (node) {
|
|
9276
|
+
node.parentNode.removeChild(node);
|
|
9277
|
+
}
|
|
9278
|
+
};
|
|
9279
|
+
|
|
9280
|
+
function ScriptTag(props, context) {
|
|
9281
|
+
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9282
|
+
|
|
9283
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9284
|
+
|
|
9285
|
+
_this.domRef = null;
|
|
9286
|
+
_this.state = {
|
|
9287
|
+
isHydrated: props.isHydrating,
|
|
9288
|
+
additionalNode: null,
|
|
9289
|
+
removeAdditionalNode: null
|
|
9290
|
+
};
|
|
9291
|
+
return _this;
|
|
9292
|
+
}
|
|
9293
|
+
|
|
9294
|
+
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9295
|
+
var _props = this.props,
|
|
9296
|
+
onError = _props.onError,
|
|
9297
|
+
onLoad = _props.onLoad,
|
|
9298
|
+
nonce = _props.nonce;
|
|
9299
|
+
|
|
9300
|
+
// Create a new HTML script element
|
|
9301
|
+
|
|
9302
|
+
var newElement = document.createElement("script");
|
|
9303
|
+
|
|
9304
|
+
// Copy all attribute values
|
|
9305
|
+
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9306
|
+
var attr = this.domRef.attributes[i];
|
|
9307
|
+
if (attr.nodeName === 'nonce') {
|
|
9308
|
+
// The browser clears the nonce value - grab from props
|
|
9309
|
+
newElement.setAttribute(attr.nodeName, nonce);
|
|
9310
|
+
} else {
|
|
9311
|
+
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9312
|
+
}
|
|
9313
|
+
}
|
|
9314
|
+
|
|
9315
|
+
// Copy the inner script
|
|
9316
|
+
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9317
|
+
newElement.innerHTML = this.domRef.innerHTML;
|
|
9318
|
+
}
|
|
9319
|
+
|
|
9320
|
+
// Bind event listeners
|
|
9321
|
+
newElement.addEventListener('load', onLoad);
|
|
9322
|
+
newElement.addEventListener('error', onError);
|
|
9323
|
+
|
|
9324
|
+
// Append the new script tag
|
|
9325
|
+
this.domRef.parentNode.appendChild(newElement);
|
|
9326
|
+
return newElement;
|
|
9327
|
+
};
|
|
9328
|
+
|
|
9329
|
+
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9330
|
+
var isHydrated = this.state.isHydrated;
|
|
9331
|
+
|
|
9332
|
+
if (isHydrated) {
|
|
9333
|
+
// was rendered on server, don't replace elements when hydrating
|
|
9334
|
+
return;
|
|
9335
|
+
}
|
|
9336
|
+
|
|
9337
|
+
this.setState({
|
|
9338
|
+
additionalNode: this.appendAdditionalElement(),
|
|
9339
|
+
removeAdditionalNode: null
|
|
9340
|
+
});
|
|
9341
|
+
};
|
|
9342
|
+
|
|
9343
|
+
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9344
|
+
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9345
|
+
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9346
|
+
|
|
9347
|
+
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9348
|
+
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9349
|
+
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9350
|
+
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9351
|
+
// This really complicates the component - for now we'll leave it as is.
|
|
9352
|
+
var _props2 = this.props,
|
|
9353
|
+
src = _props2.src,
|
|
9354
|
+
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9355
|
+
|
|
9356
|
+
if (src && src === nextProps.src) {
|
|
9357
|
+
// The 'src' attribute has not changed
|
|
9358
|
+
return;
|
|
9359
|
+
}
|
|
9360
|
+
|
|
9361
|
+
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9362
|
+
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9363
|
+
return;
|
|
9364
|
+
}
|
|
9365
|
+
|
|
9366
|
+
this.setState({
|
|
9367
|
+
removeAdditionalNode: this.state.additionalNode,
|
|
9368
|
+
additionalNode: null
|
|
9369
|
+
});
|
|
9370
|
+
};
|
|
9371
|
+
|
|
9372
|
+
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9373
|
+
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9374
|
+
};
|
|
9375
|
+
|
|
9376
|
+
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9377
|
+
var _state = this.state,
|
|
9378
|
+
additionalNode = _state.additionalNode,
|
|
9379
|
+
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9380
|
+
|
|
9381
|
+
if (additionalNode === null) {
|
|
9382
|
+
this.setState({
|
|
9383
|
+
additionalNode: this.appendAdditionalElement()
|
|
9384
|
+
});
|
|
9385
|
+
}
|
|
9386
|
+
|
|
9387
|
+
if (removeAdditionalNode !== null) {
|
|
9388
|
+
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9389
|
+
this.setState({
|
|
9390
|
+
removeAdditionalNode: null
|
|
9391
|
+
});
|
|
9392
|
+
}
|
|
9393
|
+
};
|
|
9394
|
+
|
|
9395
|
+
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9396
|
+
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9397
|
+
ScriptTag.removeNode(this.state.additionalNode);
|
|
9398
|
+
};
|
|
9399
|
+
|
|
9400
|
+
ScriptTag.prototype.render = function render() {
|
|
9401
|
+
var _this2 = this;
|
|
9402
|
+
|
|
9403
|
+
var additionalNode = this.state.additionalNode;
|
|
9404
|
+
|
|
9405
|
+
if (additionalNode !== null) {
|
|
9406
|
+
return null;
|
|
9407
|
+
}
|
|
9408
|
+
|
|
9409
|
+
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9410
|
+
// eslint-disable-next-line no-unused-vars
|
|
9411
|
+
var _props3 = this.props;
|
|
9412
|
+
_props3.isHydrating;
|
|
9413
|
+
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9414
|
+
|
|
9415
|
+
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9416
|
+
return _this2.domRef = tag;
|
|
9417
|
+
} }));
|
|
9418
|
+
};
|
|
9419
|
+
|
|
9420
|
+
return ScriptTag;
|
|
9421
|
+
}(React__default.Component);
|
|
9422
|
+
|
|
9423
|
+
ScriptTag.propTypes = {
|
|
9424
|
+
/**
|
|
9425
|
+
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9426
|
+
*/
|
|
9427
|
+
isHydrating: _propTypes2.default.bool,
|
|
9428
|
+
|
|
9429
|
+
// Standard <script> tag props
|
|
9430
|
+
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9431
|
+
crossOrigin: _propTypes2.default.string,
|
|
9432
|
+
defer: _propTypes2.default.bool,
|
|
9433
|
+
integrity: _propTypes2.default.string,
|
|
9434
|
+
nonce: _propTypes2.default.string,
|
|
9435
|
+
src: _propTypes2.default.string,
|
|
9436
|
+
text: _propTypes2.default.string,
|
|
9437
|
+
type: _propTypes2.default.string,
|
|
9438
|
+
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9439
|
+
|
|
9440
|
+
// globals
|
|
9441
|
+
onError: _propTypes2.default.func,
|
|
9442
|
+
onLoad: _propTypes2.default.func
|
|
9443
|
+
};
|
|
9444
|
+
ScriptTag.defaultProps = {
|
|
9445
|
+
isHydrating: false,
|
|
9446
|
+
onError: noop,
|
|
9447
|
+
onLoad: noop
|
|
9448
|
+
};
|
|
9449
|
+
exports.default = ScriptTag;
|
|
9450
|
+
});
|
|
9451
|
+
|
|
9452
|
+
unwrapExports(ScriptTag_1);
|
|
9453
|
+
|
|
9454
|
+
var lib = createCommonjsModule(function (module, exports) {
|
|
9455
|
+
|
|
9456
|
+
exports.__esModule = true;
|
|
9457
|
+
|
|
9458
|
+
|
|
9459
|
+
|
|
9460
|
+
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
9461
|
+
|
|
9462
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9463
|
+
|
|
9464
|
+
exports.default = _ScriptTag2.default;
|
|
9465
|
+
});
|
|
9466
|
+
|
|
9467
|
+
var ScriptTag = unwrapExports(lib);
|
|
9468
|
+
|
|
9218
9469
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
9219
9470
|
|
|
9220
9471
|
var FormAssembly = function FormAssembly(_ref) {
|
|
@@ -9237,11 +9488,11 @@ var FormAssembly = function FormAssembly(_ref) {
|
|
|
9237
9488
|
}, 1000);
|
|
9238
9489
|
}, []);
|
|
9239
9490
|
|
|
9240
|
-
return
|
|
9491
|
+
return React__default.createElement(
|
|
9241
9492
|
'section',
|
|
9242
9493
|
{ ref: formAssemblyRef, className: 'form-assembly' },
|
|
9243
|
-
|
|
9244
|
-
|
|
9494
|
+
React__default.createElement('iframe', { src: 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID, height: '800', width: '100%', frameBorder: '0' }),
|
|
9495
|
+
React__default.createElement(ScriptTag, { src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9245
9496
|
);
|
|
9246
9497
|
};
|
|
9247
9498
|
|
|
@@ -9275,27 +9526,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9275
9526
|
return window.removeEventListener('resize', handleResize);
|
|
9276
9527
|
};
|
|
9277
9528
|
}, []);
|
|
9278
|
-
return
|
|
9529
|
+
return React__default.createElement(
|
|
9279
9530
|
'div',
|
|
9280
9531
|
{ className: 'blockTableHolder', ref: holder },
|
|
9281
|
-
|
|
9532
|
+
React__default.createElement(
|
|
9282
9533
|
'div',
|
|
9283
9534
|
{ className: 'blockTable' },
|
|
9284
9535
|
rows && rows.map(function (row) {
|
|
9285
|
-
return
|
|
9536
|
+
return React__default.createElement(
|
|
9286
9537
|
'div',
|
|
9287
9538
|
{ className: 'blockTableRow' },
|
|
9288
9539
|
row.cells && row.cells.map(function (cell) {
|
|
9289
|
-
return
|
|
9540
|
+
return React__default.createElement(
|
|
9290
9541
|
'div',
|
|
9291
9542
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9292
|
-
|
|
9543
|
+
React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9293
9544
|
);
|
|
9294
9545
|
})
|
|
9295
9546
|
);
|
|
9296
9547
|
})
|
|
9297
9548
|
),
|
|
9298
|
-
|
|
9549
|
+
React__default.createElement(
|
|
9299
9550
|
'style',
|
|
9300
9551
|
{ jsx: true },
|
|
9301
9552
|
'\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 '
|
|
@@ -9374,12 +9625,12 @@ var getSerializers = function getSerializers() {
|
|
|
9374
9625
|
var node = _ref.node;
|
|
9375
9626
|
var url = node.url;
|
|
9376
9627
|
|
|
9377
|
-
return
|
|
9628
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9378
9629
|
},
|
|
9379
9630
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9380
9631
|
var node = _ref2.node;
|
|
9381
9632
|
|
|
9382
|
-
return
|
|
9633
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9383
9634
|
nodes: node,
|
|
9384
9635
|
article: article,
|
|
9385
9636
|
meta: meta,
|
|
@@ -9393,7 +9644,7 @@ var getSerializers = function getSerializers() {
|
|
|
9393
9644
|
articleSeries: function articleSeries(_ref3) {
|
|
9394
9645
|
var node = _ref3.node;
|
|
9395
9646
|
|
|
9396
|
-
return
|
|
9647
|
+
return React__default.createElement(ArticleSeries, {
|
|
9397
9648
|
nodes: node,
|
|
9398
9649
|
accountIDs: videoAccountIDs || {},
|
|
9399
9650
|
pageview: pageview,
|
|
@@ -9406,61 +9657,61 @@ var getSerializers = function getSerializers() {
|
|
|
9406
9657
|
figure: function figure(_ref4) {
|
|
9407
9658
|
var node = _ref4.node;
|
|
9408
9659
|
|
|
9409
|
-
return
|
|
9660
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9410
9661
|
},
|
|
9411
9662
|
multifigure: function multifigure(_ref5) {
|
|
9412
9663
|
var node = _ref5.node;
|
|
9413
9664
|
|
|
9414
|
-
return
|
|
9665
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9415
9666
|
},
|
|
9416
9667
|
slideshow: function slideshow(_ref6) {
|
|
9417
9668
|
var node = _ref6.node;
|
|
9418
9669
|
var slides = node.slides;
|
|
9419
9670
|
|
|
9420
|
-
return
|
|
9671
|
+
return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
9421
9672
|
},
|
|
9422
9673
|
sidebar: function sidebar(_ref7) {
|
|
9423
9674
|
var node = _ref7.node;
|
|
9424
9675
|
var caption = node.caption,
|
|
9425
9676
|
content = node.content;
|
|
9426
9677
|
|
|
9427
|
-
return
|
|
9678
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9428
9679
|
},
|
|
9429
9680
|
datatable: function datatable(_ref8) {
|
|
9430
9681
|
var node = _ref8.node;
|
|
9431
9682
|
var table = node.table;
|
|
9432
9683
|
|
|
9433
|
-
return
|
|
9684
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9434
9685
|
},
|
|
9435
9686
|
media: function media(_ref9) {
|
|
9436
9687
|
var node = _ref9.node;
|
|
9437
9688
|
|
|
9438
|
-
return
|
|
9689
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9439
9690
|
},
|
|
9440
9691
|
iframe: function iframe(_ref10) {
|
|
9441
9692
|
var node = _ref10.node;
|
|
9442
9693
|
|
|
9443
|
-
return
|
|
9694
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9444
9695
|
},
|
|
9445
9696
|
video: function video(_ref11) {
|
|
9446
9697
|
var node = _ref11.node;
|
|
9447
9698
|
|
|
9448
|
-
return
|
|
9699
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9449
9700
|
},
|
|
9450
9701
|
audio: function audio(_ref12) {
|
|
9451
9702
|
var node = _ref12.node;
|
|
9452
9703
|
|
|
9453
|
-
return
|
|
9704
|
+
return React__default.createElement(Audio, { node: node });
|
|
9454
9705
|
},
|
|
9455
9706
|
poll: function poll(_ref13) {
|
|
9456
9707
|
var node = _ref13.node;
|
|
9457
9708
|
|
|
9458
|
-
return
|
|
9709
|
+
return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9459
9710
|
},
|
|
9460
9711
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9461
9712
|
var node = _ref14.node;
|
|
9462
9713
|
|
|
9463
|
-
return
|
|
9714
|
+
return React__default.createElement(Poll, {
|
|
9464
9715
|
node: node,
|
|
9465
9716
|
client: client,
|
|
9466
9717
|
pageview: pageview,
|
|
@@ -9474,35 +9725,35 @@ var getSerializers = function getSerializers() {
|
|
|
9474
9725
|
var node = _ref15.node;
|
|
9475
9726
|
var quizzes = node.quizzes;
|
|
9476
9727
|
|
|
9477
|
-
return
|
|
9728
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9478
9729
|
},
|
|
9479
9730
|
leads: function leads(_ref16) {
|
|
9480
9731
|
var node = _ref16.node;
|
|
9481
9732
|
var leadID = node.leadID;
|
|
9482
9733
|
|
|
9483
9734
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9484
|
-
return
|
|
9735
|
+
return React__default.createElement(Leads, { url: url });
|
|
9485
9736
|
},
|
|
9486
9737
|
slideshows: function slideshows(_ref17) {
|
|
9487
9738
|
var node = _ref17.node;
|
|
9488
9739
|
|
|
9489
|
-
return
|
|
9740
|
+
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9490
9741
|
},
|
|
9491
9742
|
nativeAd: function nativeAd(_ref18) {
|
|
9492
9743
|
var node = _ref18.node;
|
|
9493
9744
|
|
|
9494
|
-
return
|
|
9745
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9495
9746
|
},
|
|
9496
9747
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9497
9748
|
var node = _ref19.node;
|
|
9498
9749
|
|
|
9499
|
-
return
|
|
9750
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9500
9751
|
},
|
|
9501
9752
|
hrtag: function hrtag() {
|
|
9502
|
-
return
|
|
9753
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9503
9754
|
},
|
|
9504
9755
|
brtag: function brtag() {
|
|
9505
|
-
return
|
|
9756
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9506
9757
|
},
|
|
9507
9758
|
formstack: function formstack(_ref20) {
|
|
9508
9759
|
var node = _ref20.node;
|
|
@@ -9510,33 +9761,33 @@ var getSerializers = function getSerializers() {
|
|
|
9510
9761
|
Caption = node.Caption,
|
|
9511
9762
|
needSegmentSupport = node.needSegmentSupport;
|
|
9512
9763
|
|
|
9513
|
-
return
|
|
9764
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9514
9765
|
},
|
|
9515
9766
|
formassembly: function formassembly(_ref21) {
|
|
9516
9767
|
var node = _ref21.node;
|
|
9517
9768
|
|
|
9518
|
-
return
|
|
9769
|
+
return React__default.createElement(FormAssembly, { node: node });
|
|
9519
9770
|
},
|
|
9520
9771
|
multimedia: function multimedia(_ref22) {
|
|
9521
9772
|
var node = _ref22.node;
|
|
9522
9773
|
|
|
9523
|
-
return
|
|
9774
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9524
9775
|
},
|
|
9525
9776
|
blockTable: function blockTable(_ref23) {
|
|
9526
9777
|
var node = _ref23.node;
|
|
9527
|
-
return
|
|
9778
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9528
9779
|
}
|
|
9529
9780
|
},
|
|
9530
9781
|
marks: {
|
|
9531
9782
|
superscript: function superscript(props) {
|
|
9532
|
-
return
|
|
9783
|
+
return React__default.createElement(
|
|
9533
9784
|
'sup',
|
|
9534
9785
|
null,
|
|
9535
9786
|
props.children
|
|
9536
9787
|
);
|
|
9537
9788
|
},
|
|
9538
9789
|
subscript: function subscript(props) {
|
|
9539
|
-
return
|
|
9790
|
+
return React__default.createElement(
|
|
9540
9791
|
'sub',
|
|
9541
9792
|
null,
|
|
9542
9793
|
props.children
|
|
@@ -9552,7 +9803,7 @@ var getSerializers = function getSerializers() {
|
|
|
9552
9803
|
if (href && href.charAt(0) === '#') {
|
|
9553
9804
|
var elementId = href.slice(1);
|
|
9554
9805
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9555
|
-
return
|
|
9806
|
+
return React__default.createElement(
|
|
9556
9807
|
'a',
|
|
9557
9808
|
{ onClick: function onClick() {
|
|
9558
9809
|
return ScrollToElement(elementId);
|
|
@@ -9562,7 +9813,7 @@ var getSerializers = function getSerializers() {
|
|
|
9562
9813
|
}
|
|
9563
9814
|
|
|
9564
9815
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9565
|
-
return
|
|
9816
|
+
return React__default.createElement(
|
|
9566
9817
|
'a',
|
|
9567
9818
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9568
9819
|
children
|
|
@@ -9570,7 +9821,7 @@ var getSerializers = function getSerializers() {
|
|
|
9570
9821
|
},
|
|
9571
9822
|
alignleft: function alignleft(_ref24) {
|
|
9572
9823
|
var children = _ref24.children;
|
|
9573
|
-
return
|
|
9824
|
+
return React__default.createElement(
|
|
9574
9825
|
'div',
|
|
9575
9826
|
{ style: { textAlign: 'left' } },
|
|
9576
9827
|
children
|
|
@@ -9578,7 +9829,7 @@ var getSerializers = function getSerializers() {
|
|
|
9578
9829
|
},
|
|
9579
9830
|
alignright: function alignright(_ref25) {
|
|
9580
9831
|
var children = _ref25.children;
|
|
9581
|
-
return
|
|
9832
|
+
return React__default.createElement(
|
|
9582
9833
|
'div',
|
|
9583
9834
|
{ style: { textAlign: 'right' } },
|
|
9584
9835
|
children
|
|
@@ -9586,7 +9837,7 @@ var getSerializers = function getSerializers() {
|
|
|
9586
9837
|
},
|
|
9587
9838
|
aligncenter: function aligncenter(_ref26) {
|
|
9588
9839
|
var children = _ref26.children;
|
|
9589
|
-
return
|
|
9840
|
+
return React__default.createElement(
|
|
9590
9841
|
'div',
|
|
9591
9842
|
{ style: { textAlign: 'center' } },
|
|
9592
9843
|
children
|
|
@@ -9594,7 +9845,7 @@ var getSerializers = function getSerializers() {
|
|
|
9594
9845
|
},
|
|
9595
9846
|
alignjustify: function alignjustify(_ref27) {
|
|
9596
9847
|
var children = _ref27.children;
|
|
9597
|
-
return
|
|
9848
|
+
return React__default.createElement(
|
|
9598
9849
|
'div',
|
|
9599
9850
|
{ style: { textAlign: 'justify' } },
|
|
9600
9851
|
children
|
|
@@ -9604,7 +9855,7 @@ var getSerializers = function getSerializers() {
|
|
|
9604
9855
|
var children = props.children,
|
|
9605
9856
|
color = props.mark.color;
|
|
9606
9857
|
|
|
9607
|
-
return
|
|
9858
|
+
return React__default.createElement(
|
|
9608
9859
|
'span',
|
|
9609
9860
|
{ style: { color: color ? color.hex : null } },
|
|
9610
9861
|
children
|