@mjhls/mjh-framework 1.0.862 → 1.0.863-author-details-v1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +24 -23
- package/dist/cjs/AD300x250x600.js +24 -23
- package/dist/cjs/AD728x90.js +27 -26
- package/dist/cjs/ADFloatingFooter.js +23 -22
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +23 -22
- package/dist/cjs/{ADInfeed-f8324b70.js → ADInfeed-25d48cc2.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +23 -22
- package/dist/cjs/ADSponsoredResources.js +23 -22
- package/dist/cjs/ADWebcast.js +23 -22
- package/dist/cjs/ADWelcome.js +20 -19
- package/dist/cjs/{ADlgInfeed-98d7c699.js → ADlgInfeed-a535a768.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +24 -23
- package/dist/cjs/AdSlotsProvider.js +14 -13
- package/dist/cjs/AlgoliaSearch.js +14103 -30
- package/dist/cjs/AlphabeticList.js +10 -10
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +50 -49
- package/dist/cjs/ArticleSeriesLandingPage.js +32 -31
- package/dist/cjs/ArticleSeriesListing.js +33 -32
- package/dist/cjs/Auth.js +348 -484
- package/dist/cjs/AuthWrapper.js +244 -208
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-ac8972ce.js} +1 -1
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-8b494587.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +8 -8
- package/dist/cjs/CMEDeck.js +25 -24
- package/dist/cjs/Column2.js +16 -16
- package/dist/cjs/Column3.js +33 -32
- package/dist/cjs/ConferenceArticleCard.js +7 -7
- package/dist/cjs/DeckContent.js +34 -33
- package/dist/cjs/DeckQueue.js +31 -30
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-391fd124.js} +15 -14
- package/dist/cjs/EventsDeck.js +28 -28
- package/dist/cjs/ExternalResources.js +47 -46
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +12 -12
- package/dist/cjs/GridContent.js +47 -46
- package/dist/cjs/GridHero.js +13 -13
- package/dist/cjs/GroupDeck.js +14 -14
- package/dist/cjs/HamMagazine.js +28 -28
- package/dist/cjs/Hero.js +4 -4
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +47 -46
- package/dist/cjs/HorizontalHero.js +5 -5
- package/dist/cjs/IssueContentDeck.js +13 -13
- package/dist/cjs/IssueDeck.js +16 -16
- package/dist/cjs/IssueLanding.js +56 -55
- package/dist/cjs/LeftNav.js +22 -21
- package/dist/cjs/MasterDeck.js +33 -32
- package/dist/cjs/MediaSeriesLanding.js +738 -882
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +31 -31
- package/dist/cjs/NavNative.js +32 -32
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +13 -13
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +2770 -65
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +35 -34
- package/dist/cjs/PubToc.js +8 -8
- package/dist/cjs/PublicationDeck.js +8 -8
- package/dist/cjs/PublicationLanding.js +28 -28
- package/dist/cjs/QueueDeckExpanded.js +38 -37
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +7 -7
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +20 -19
- package/dist/cjs/{SeriesSlider-e3e8ead7.js → SeriesSlider-0d3bf265.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +15 -15
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-19548e2a.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +10 -10
- package/dist/cjs/TaxonomyDescription.js +46 -45
- package/dist/cjs/TemplateNormal.js +48 -47
- package/dist/cjs/ThumbnailCard.js +7 -7
- package/dist/cjs/Ustream.js +14 -14
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoProgramLandingPage.js +52 -51
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +38 -37
- package/dist/cjs/VideoSeriesListing.js +33 -32
- package/dist/cjs/View.js +94 -90
- package/dist/cjs/YahooHero.js +15 -15
- package/dist/cjs/YoutubeGroup.js +22 -22
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-29bdbc6d.js → extends-0a918631.js} +7 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +71 -135
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +46 -45
- package/dist/cjs/{getTargeting-32d1c2e4.js → getTargeting-a9a871f0.js} +2 -2
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-3c2fa34e.js → index-04a5a4a2.js} +175 -174
- package/dist/cjs/{index-0e4427c8.js → index-2cf30c83.js} +5 -470
- package/dist/cjs/{index-f86bb269.js → index-6367b7bf.js} +35 -35
- package/dist/cjs/{index-eadd5035.js → index-9d365128.js} +7 -7
- package/dist/cjs/{index-efca863c.js → index-b5eb3ff8.js} +11 -16
- package/dist/cjs/index-e2e62963.js +89 -0
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-05850a2f.js} +1 -1
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-3ffa049c.js} +2 -2
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-44f3e2d0.js} +1 -1
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-974f47d9.js} +1 -1
- package/dist/cjs/index.js +140 -140
- package/dist/cjs/{inherits-c2065b95.js → inherits-0c7830c5.js} +19 -19
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-7fd85bcf.js} +10 -58
- package/dist/cjs/main-7b5e57b0.js +898 -0
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-9d7f610f.js} +35 -35
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +27 -26
- package/dist/esm/AD300x250x600.js +27 -26
- package/dist/esm/AD728x90.js +30 -29
- package/dist/esm/ADFloatingFooter.js +29 -28
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -28
- package/dist/esm/{ADInfeed-a71a3972.js → ADInfeed-56a3db8b.js} +9 -9
- package/dist/esm/ADSkyscraper.js +29 -28
- package/dist/esm/ADSponsoredResources.js +29 -28
- package/dist/esm/ADWebcast.js +29 -28
- package/dist/esm/ADWelcome.js +30 -29
- package/dist/esm/{ADlgInfeed-d94f1437.js → ADlgInfeed-53edb995.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +27 -26
- package/dist/esm/AdSlotsProvider.js +15 -14
- package/dist/esm/AlgoliaSearch.js +14124 -51
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +56 -55
- package/dist/esm/ArticleSeriesLandingPage.js +38 -37
- package/dist/esm/ArticleSeriesListing.js +57 -56
- package/dist/esm/Auth.js +418 -554
- package/dist/esm/AuthWrapper.js +264 -228
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-8ffd4679.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-d05b5b23.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +80 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +27 -27
- package/dist/esm/Column3.js +52 -51
- package/dist/esm/ConferenceArticleCard.js +20 -20
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +79 -78
- package/dist/esm/DeckQueue.js +69 -68
- package/dist/esm/{Dfp-be030f2a.js → Dfp-2f9796e1.js} +23 -22
- package/dist/esm/EventsDeck.js +88 -88
- package/dist/esm/ExternalResources.js +73 -72
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +164 -163
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +105 -105
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +69 -68
- package/dist/esm/HorizontalHero.js +23 -23
- package/dist/esm/IssueContentDeck.js +50 -50
- package/dist/esm/IssueDeck.js +47 -47
- package/dist/esm/IssueLanding.js +64 -63
- package/dist/esm/LeftNav.js +35 -34
- package/dist/esm/MasterDeck.js +66 -65
- package/dist/esm/MediaSeriesLanding.js +752 -896
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -113
- package/dist/esm/NavNative.js +103 -103
- package/dist/esm/OncliveHero.js +16 -16
- package/dist/esm/OncliveLargeHero.js +60 -60
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +2818 -114
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +40 -39
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +39 -39
- package/dist/esm/PublicationLanding.js +75 -75
- package/dist/esm/QueueDeckExpanded.js +276 -275
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +20 -20
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +33 -32
- package/dist/esm/{SeriesSlider-ae17159f.js → SeriesSlider-7d89f4d9.js} +27 -27
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-47815365.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +42 -42
- package/dist/esm/TaxonomyDescription.js +50 -49
- package/dist/esm/TemplateNormal.js +68 -67
- package/dist/esm/ThumbnailCard.js +14 -14
- package/dist/esm/Ustream.js +27 -27
- package/dist/esm/VerticalHero.js +14 -14
- package/dist/esm/VideoProgramLandingPage.js +64 -63
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +43 -42
- package/dist/esm/VideoSeriesListing.js +73 -72
- package/dist/esm/View.js +250 -246
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +47 -47
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-fc1c2e29.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-4abff0b1.js} +3 -3
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-60e0e1c6.js → extends-6f2fcc99.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +71 -135
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +46 -45
- package/dist/esm/{getTargeting-cf2724e3.js → getTargeting-bd800589.js} +2 -2
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-0dbff1d1.js → index-51a80699.js} +11 -16
- package/dist/esm/{index-755f2cc2.js → index-6c12bdd5.js} +10 -10
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-79cfd25c.js → index-c00b0bbb.js} +35 -35
- package/dist/esm/{index-fce5c5b6.js → index-cf54da7f.js} +571 -570
- package/dist/esm/{index-5cc7b406.js → index-f7fb1e25.js} +7 -472
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-f6156a57.js → index.esm-3fdda599.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8ee5ff72.js} +16 -16
- package/dist/esm/{index.esm-d4932dea.js → index.esm-a8ff922c.js} +1 -1
- package/dist/esm/{index.esm-9b042655.js → index.esm-c6715e80.js} +1 -1
- package/dist/esm/index.js +136 -136
- package/dist/esm/{inherits-a41fe93f.js → inherits-75d45541.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-ec8c6b48.js} +10 -58
- package/dist/esm/main-747e7d25.js +886 -0
- package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-3822f1ce.js} +20 -20
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-af9c50d8.js} +35 -35
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/main-d4165069.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-5c98aec7.js} +1 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { _ as _extends, b as _extends$1 } from './extends-60e0e1c6.js';
|
|
2
|
-
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
3
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-be2f7a22.js';
|
|
4
|
-
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
5
|
-
import urlFor from './urlFor.js';
|
|
6
|
-
import { l as lib_3 } from './index-5cc7b406.js';
|
|
7
|
-
import Router, { useRouter } from 'next/router';
|
|
8
|
-
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
10
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
2
|
+
import { _ as _export, a as _core } from './_to-object-a4107da3.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
4
|
+
import { _ as _extends, b as _extends$1 } from './extends-6f2fcc99.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-75d45541.js';
|
|
6
|
+
import { _ as _typeof$1 } from './typeof-af9c50d8.js';
|
|
7
|
+
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
+
import { l as lib_3 } from './index-f7fb1e25.js';
|
|
9
|
+
import PropTypes from 'prop-types';
|
|
10
|
+
import Row$1 from 'react-bootstrap/Row';
|
|
11
|
+
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
13
|
+
import Router, { useRouter } from 'next/router';
|
|
14
|
+
import urlFor from './urlFor.js';
|
|
15
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
16
|
+
import { d as main_16, b as main_39, m as main_40 } from './main-747e7d25.js';
|
|
17
|
+
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
13
19
|
import Segment from './Segment.js';
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
20
|
+
import Beam from './Beam.js';
|
|
21
|
+
import DFPAdSlot from './AdSlot.js';
|
|
22
|
+
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
24
|
+
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
19
25
|
import GroupDeck from './GroupDeck.js';
|
|
20
|
-
import {
|
|
26
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
27
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
28
|
+
import { u as util } from './util-7700fc59.js';
|
|
29
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
|
|
30
|
+
import Head from 'next/head';
|
|
21
31
|
import SocialShare from './SocialShare.js';
|
|
22
|
-
import { _ as
|
|
23
|
-
import { _ as _objectToArray } from './_object-to-array-0f197f89.js';
|
|
24
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
32
|
+
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
25
33
|
import Pagination from 'react-bootstrap/Pagination';
|
|
26
|
-
import Button$1 from 'react-bootstrap/Button';
|
|
27
|
-
import { h as html_decode_1 } from './entities-932b50cf.js';
|
|
28
|
-
import DFPAdSlot from './AdSlot.js';
|
|
29
|
-
import Row$1 from 'react-bootstrap/Row';
|
|
30
|
-
import Col$1 from 'react-bootstrap/Col';
|
|
31
|
-
import Head from 'next/head';
|
|
32
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-a41fe93f.js';
|
|
33
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-f6156a57.js';
|
|
34
34
|
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
35
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
36
36
|
import Tooltip from 'react-bootstrap/Tooltip';
|
|
@@ -42,7 +42,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
42
42
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
var Slideshow
|
|
45
|
+
var Slideshow = function Slideshow(_ref) {
|
|
46
46
|
var slides = _ref.slides,
|
|
47
47
|
client = _ref.client,
|
|
48
48
|
pageview = _ref.pageview;
|
|
@@ -69,27 +69,27 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
69
69
|
if (pageview) pageview(router.asPath);
|
|
70
70
|
}, [router]);
|
|
71
71
|
|
|
72
|
-
return
|
|
72
|
+
return React.createElement(
|
|
73
73
|
'div',
|
|
74
74
|
{ className: 'mt-3 mb-3' },
|
|
75
|
-
|
|
75
|
+
React.createElement(
|
|
76
76
|
Carousel,
|
|
77
77
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
78
78
|
return onChangeSlide(selectedIndex, router);
|
|
79
79
|
}, interval: null },
|
|
80
80
|
slides && slides.map(function (slide) {
|
|
81
|
-
return
|
|
81
|
+
return React.createElement(
|
|
82
82
|
Carousel.Item,
|
|
83
83
|
{ key: slide._key },
|
|
84
|
-
|
|
84
|
+
React.createElement(
|
|
85
85
|
'picture',
|
|
86
86
|
null,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
88
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
89
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
90
|
+
React.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
91
91
|
),
|
|
92
|
-
slide.caption &&
|
|
92
|
+
slide.caption && React.createElement(
|
|
93
93
|
'p',
|
|
94
94
|
{ className: 'p-2' },
|
|
95
95
|
slide.caption
|
|
@@ -679,14 +679,14 @@ function coerce(val) {
|
|
|
679
679
|
return val;
|
|
680
680
|
}
|
|
681
681
|
});
|
|
682
|
-
debug.coerce;
|
|
683
|
-
debug.disable;
|
|
684
|
-
debug.enable;
|
|
685
|
-
debug.enabled;
|
|
686
|
-
debug.humanize;
|
|
687
|
-
debug.names;
|
|
688
|
-
debug.skips;
|
|
689
|
-
debug.formatters;
|
|
682
|
+
var debug_1 = debug.coerce;
|
|
683
|
+
var debug_2 = debug.disable;
|
|
684
|
+
var debug_3 = debug.enable;
|
|
685
|
+
var debug_4 = debug.enabled;
|
|
686
|
+
var debug_5 = debug.humanize;
|
|
687
|
+
var debug_6 = debug.names;
|
|
688
|
+
var debug_7 = debug.skips;
|
|
689
|
+
var debug_8 = debug.formatters;
|
|
690
690
|
|
|
691
691
|
var browser = createCommonjsModule(function (module, exports) {
|
|
692
692
|
/**
|
|
@@ -875,13 +875,13 @@ function localstorage() {
|
|
|
875
875
|
} catch (e) {}
|
|
876
876
|
}
|
|
877
877
|
});
|
|
878
|
-
browser.log;
|
|
879
|
-
browser.formatArgs;
|
|
880
|
-
browser.save;
|
|
881
|
-
browser.load;
|
|
882
|
-
browser.useColors;
|
|
883
|
-
browser.storage;
|
|
884
|
-
browser.colors;
|
|
878
|
+
var browser_1 = browser.log;
|
|
879
|
+
var browser_2 = browser.formatArgs;
|
|
880
|
+
var browser_3 = browser.save;
|
|
881
|
+
var browser_4 = browser.load;
|
|
882
|
+
var browser_5 = browser.useColors;
|
|
883
|
+
var browser_6 = browser.storage;
|
|
884
|
+
var browser_7 = browser.colors;
|
|
885
885
|
|
|
886
886
|
// MIT lisence
|
|
887
887
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1156,14 +1156,14 @@ function init (debug) {
|
|
|
1156
1156
|
|
|
1157
1157
|
exports.enable(load());
|
|
1158
1158
|
});
|
|
1159
|
-
node.init;
|
|
1160
|
-
node.log;
|
|
1161
|
-
node.formatArgs;
|
|
1162
|
-
node.save;
|
|
1163
|
-
node.load;
|
|
1164
|
-
node.useColors;
|
|
1165
|
-
node.colors;
|
|
1166
|
-
node.inspectOpts;
|
|
1159
|
+
var node_1 = node.init;
|
|
1160
|
+
var node_2 = node.log;
|
|
1161
|
+
var node_3 = node.formatArgs;
|
|
1162
|
+
var node_4 = node.save;
|
|
1163
|
+
var node_5 = node.load;
|
|
1164
|
+
var node_6 = node.useColors;
|
|
1165
|
+
var node_7 = node.colors;
|
|
1166
|
+
var node_8 = node.inspectOpts;
|
|
1167
1167
|
|
|
1168
1168
|
var src = createCommonjsModule(function (module) {
|
|
1169
1169
|
/**
|
|
@@ -1831,9 +1831,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1831
1831
|
}, {
|
|
1832
1832
|
key: "render",
|
|
1833
1833
|
value: function render() {
|
|
1834
|
-
return /*#__PURE__*/
|
|
1834
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1835
1835
|
className: this.props.containerClassName
|
|
1836
|
-
}, /*#__PURE__*/
|
|
1836
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1837
1837
|
id: this.props.id,
|
|
1838
1838
|
className: this.props.className,
|
|
1839
1839
|
ref: this.refContainer
|
|
@@ -1842,7 +1842,7 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1842
1842
|
}]);
|
|
1843
1843
|
|
|
1844
1844
|
return YouTube;
|
|
1845
|
-
}(
|
|
1845
|
+
}(React.Component);
|
|
1846
1846
|
|
|
1847
1847
|
_defineProperty(YouTube, "PlayerState", {
|
|
1848
1848
|
UNSTARTED: -1,
|
|
@@ -1926,8 +1926,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1926
1926
|
var duration = player.getDuration();
|
|
1927
1927
|
var queue = Math.floor(duration / 10);
|
|
1928
1928
|
var segment = Math.floor(current / queue);
|
|
1929
|
-
Beam.report_beam_video('Ready',
|
|
1930
|
-
Segment.report_video_event('Video Ready',
|
|
1929
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
1930
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1931
1931
|
};
|
|
1932
1932
|
|
|
1933
1933
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1937,8 +1937,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1937
1937
|
var segment = Math.floor(current / queue);
|
|
1938
1938
|
|
|
1939
1939
|
if (!queueProgress.includes(segment)) {
|
|
1940
|
-
Beam.report_beam_video('Segment',
|
|
1941
|
-
Segment.report_video_event('Video Segment',
|
|
1940
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
1941
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1942
1942
|
queueProgress.push(segment);
|
|
1943
1943
|
}
|
|
1944
1944
|
};
|
|
@@ -1951,8 +1951,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1951
1951
|
var queue = Math.floor(duration / 10);
|
|
1952
1952
|
var segment = Math.floor(current / queue);
|
|
1953
1953
|
|
|
1954
|
-
Beam.report_beam_video('Play',
|
|
1955
|
-
Segment.report_video_event('Video Play',
|
|
1954
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
1955
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1956
1956
|
|
|
1957
1957
|
if (!playReported) {
|
|
1958
1958
|
setPlayReported(true);
|
|
@@ -1971,8 +1971,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1971
1971
|
var queue = Math.floor(duration / 10);
|
|
1972
1972
|
var segment = Math.floor(current / queue);
|
|
1973
1973
|
|
|
1974
|
-
Beam.report_beam_video('End',
|
|
1975
|
-
Segment.report_video_event('Video End',
|
|
1974
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
1975
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1976
1976
|
setEndReported(true);
|
|
1977
1977
|
clearInterval(intervalID);
|
|
1978
1978
|
}
|
|
@@ -1985,15 +1985,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1985
1985
|
var queue = Math.floor(duration / 10);
|
|
1986
1986
|
var segment = Math.floor(current / queue);
|
|
1987
1987
|
|
|
1988
|
-
Beam.report_beam_video('Pause',
|
|
1989
|
-
Segment.report_video_event('Video Pause',
|
|
1988
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
1989
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1990
1990
|
};
|
|
1991
1991
|
|
|
1992
|
-
return
|
|
1992
|
+
return React.createElement(
|
|
1993
1993
|
'div',
|
|
1994
1994
|
{ id: 'fluid-video-container' },
|
|
1995
|
-
|
|
1996
|
-
|
|
1995
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1996
|
+
React.createElement(
|
|
1997
1997
|
'style',
|
|
1998
1998
|
{ jsx: 'true' },
|
|
1999
1999
|
'\n #fluid-video-container {\n margin-bottom: 2rem;\n }\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n '
|
|
@@ -2006,20 +2006,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2006
2006
|
content = _ref.content,
|
|
2007
2007
|
getSerializers = _ref.getSerializers;
|
|
2008
2008
|
|
|
2009
|
-
return
|
|
2009
|
+
return React.createElement(
|
|
2010
2010
|
'article',
|
|
2011
2011
|
{ className: 'sidebar' },
|
|
2012
|
-
|
|
2012
|
+
React.createElement(
|
|
2013
2013
|
'div',
|
|
2014
2014
|
null,
|
|
2015
|
-
|
|
2015
|
+
React.createElement(
|
|
2016
2016
|
'h3',
|
|
2017
2017
|
null,
|
|
2018
2018
|
caption
|
|
2019
2019
|
),
|
|
2020
|
-
|
|
2020
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2021
2021
|
),
|
|
2022
|
-
|
|
2022
|
+
React.createElement(
|
|
2023
2023
|
'style',
|
|
2024
2024
|
{ jsx: 'true' },
|
|
2025
2025
|
'\n .sidebar {\n clear: both;\n float: right;\n background-color: #eee;\n width: 40%;\n padding: 1rem;\n margin: 0 0 1rem 1rem;\n }\n /* resolving list items inside sidebar being shifted to center because of unusual margin */\n .sidebar ul {\n margin-left: 0;\n padding-left: 1rem;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n float: none;\n width: auto;\n margin: 1rem 0;\n }\n }\n '
|
|
@@ -2030,18 +2030,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2030
2030
|
var TableShow = function TableShow(_ref) {
|
|
2031
2031
|
var rows = _ref.rows;
|
|
2032
2032
|
|
|
2033
|
-
return
|
|
2033
|
+
return React.createElement(
|
|
2034
2034
|
Table,
|
|
2035
2035
|
{ bordered: true, hover: true, responsive: true },
|
|
2036
|
-
|
|
2036
|
+
React.createElement(
|
|
2037
2037
|
'tbody',
|
|
2038
2038
|
null,
|
|
2039
2039
|
rows && rows.map(function (row) {
|
|
2040
|
-
return
|
|
2040
|
+
return React.createElement(
|
|
2041
2041
|
'tr',
|
|
2042
2042
|
{ key: row._key },
|
|
2043
2043
|
row.cells && row.cells.map(function (cell, index) {
|
|
2044
|
-
return cell &&
|
|
2044
|
+
return cell && React.createElement(
|
|
2045
2045
|
'td',
|
|
2046
2046
|
{ key: index },
|
|
2047
2047
|
cell
|
|
@@ -2139,25 +2139,25 @@ var Media = function Media(_ref) {
|
|
|
2139
2139
|
margin: imageMargin
|
|
2140
2140
|
};
|
|
2141
2141
|
|
|
2142
|
-
return
|
|
2142
|
+
return React.createElement(
|
|
2143
2143
|
Figure$1,
|
|
2144
2144
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2145
|
-
|
|
2145
|
+
React.createElement(
|
|
2146
2146
|
'a',
|
|
2147
2147
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2148
|
-
|
|
2148
|
+
React.createElement(
|
|
2149
2149
|
LazyLoad,
|
|
2150
2150
|
{ once: true },
|
|
2151
|
-
|
|
2151
|
+
React.createElement(
|
|
2152
2152
|
'picture',
|
|
2153
2153
|
null,
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2154
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2155
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2156
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2157
|
+
React.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2158
2158
|
)
|
|
2159
2159
|
),
|
|
2160
|
-
caption &&
|
|
2160
|
+
caption && React.createElement(
|
|
2161
2161
|
Figure$1.Caption,
|
|
2162
2162
|
{ className: 'media-caption' },
|
|
2163
2163
|
caption
|
|
@@ -2165,7 +2165,7 @@ var Media = function Media(_ref) {
|
|
|
2165
2165
|
)
|
|
2166
2166
|
);
|
|
2167
2167
|
} else if (caption && caption !== '') {
|
|
2168
|
-
return
|
|
2168
|
+
return React.createElement(
|
|
2169
2169
|
'a',
|
|
2170
2170
|
_extends({}, uploadDoc.downloadMedia ? {
|
|
2171
2171
|
href: uploadDoc.asset.url + '?dl='
|
|
@@ -2185,10 +2185,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2185
2185
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2186
2186
|
|
|
2187
2187
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2188
|
-
return
|
|
2188
|
+
return React.createElement(
|
|
2189
2189
|
'div',
|
|
2190
2190
|
{ className: 'd-block text-center mb-3' },
|
|
2191
|
-
|
|
2191
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2192
2192
|
);
|
|
2193
2193
|
};
|
|
2194
2194
|
|
|
@@ -2222,8 +2222,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2222
2222
|
var duration = player.duration;
|
|
2223
2223
|
var queue = Math.floor(duration / 10);
|
|
2224
2224
|
var segment = Math.floor(current / queue);
|
|
2225
|
-
Beam.report_beam_video('Ready',
|
|
2226
|
-
Segment.report_video_event('Video Ready',
|
|
2225
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
|
|
2226
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
2227
2227
|
};
|
|
2228
2228
|
|
|
2229
2229
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2232,8 +2232,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2232
2232
|
var queue = Math.floor(duration / 10);
|
|
2233
2233
|
var segment = Math.floor(current / queue);
|
|
2234
2234
|
if (!queueProgress.includes(segment)) {
|
|
2235
|
-
Beam.report_beam_video('Segment',
|
|
2236
|
-
Segment.report_video_event('Video Segment',
|
|
2235
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
|
|
2236
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
2237
2237
|
queueProgress.push(segment);
|
|
2238
2238
|
}
|
|
2239
2239
|
};
|
|
@@ -2245,8 +2245,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2245
2245
|
var duration = player.duration;
|
|
2246
2246
|
var queue = Math.floor(duration / 10);
|
|
2247
2247
|
var segment = Math.floor(current / queue);
|
|
2248
|
-
Beam.report_beam_video('Play',
|
|
2249
|
-
Segment.report_video_event('Video Play',
|
|
2248
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
|
|
2249
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
2250
2250
|
|
|
2251
2251
|
if (!playReported) {
|
|
2252
2252
|
event.persist();
|
|
@@ -2266,8 +2266,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2266
2266
|
var queue = Math.floor(duration / 10);
|
|
2267
2267
|
var segment = Math.floor(current / queue);
|
|
2268
2268
|
|
|
2269
|
-
Beam.report_beam_video('End',
|
|
2270
|
-
Segment.report_video_event('Video End',
|
|
2269
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
|
|
2270
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
2271
2271
|
setEndReported(true);
|
|
2272
2272
|
clearInterval(intervalID);
|
|
2273
2273
|
}
|
|
@@ -2279,14 +2279,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2279
2279
|
var duration = player.duration - current;
|
|
2280
2280
|
var queue = Math.floor(duration / 10);
|
|
2281
2281
|
var segment = Math.floor(current / queue);
|
|
2282
|
-
Beam.report_beam_video('Pause',
|
|
2283
|
-
Segment.report_video_event('Video Pause',
|
|
2282
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
|
|
2283
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2284
2284
|
};
|
|
2285
2285
|
|
|
2286
|
-
return
|
|
2286
|
+
return React.createElement(
|
|
2287
2287
|
'div',
|
|
2288
2288
|
null,
|
|
2289
|
-
vidLoaded &&
|
|
2289
|
+
vidLoaded && React.createElement(
|
|
2290
2290
|
'video',
|
|
2291
2291
|
{
|
|
2292
2292
|
poster: thumbnail || '',
|
|
@@ -2304,7 +2304,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2304
2304
|
onPlay: function onPlay(e) {
|
|
2305
2305
|
return handleOnPlay(e);
|
|
2306
2306
|
} },
|
|
2307
|
-
|
|
2307
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2308
2308
|
'Your browser does not support the video tag.'
|
|
2309
2309
|
)
|
|
2310
2310
|
);
|
|
@@ -2369,8 +2369,8 @@ var Video = function Video(_ref) {
|
|
|
2369
2369
|
player.pause();
|
|
2370
2370
|
}
|
|
2371
2371
|
|
|
2372
|
-
Beam.report_beam_video('Ready',
|
|
2373
|
-
Segment.report_video_event('Video Ready',
|
|
2372
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2373
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2374
2374
|
});
|
|
2375
2375
|
|
|
2376
2376
|
// play
|
|
@@ -2379,8 +2379,8 @@ var Video = function Video(_ref) {
|
|
|
2379
2379
|
var current = player.currentTime();
|
|
2380
2380
|
var queue = Math.floor(duration / 10);
|
|
2381
2381
|
var segment = Math.floor(current / queue);
|
|
2382
|
-
Beam.report_beam_video('Play',
|
|
2383
|
-
Segment.report_video_event('Video Play',
|
|
2382
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2383
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2384
2384
|
});
|
|
2385
2385
|
|
|
2386
2386
|
// pause
|
|
@@ -2389,8 +2389,8 @@ var Video = function Video(_ref) {
|
|
|
2389
2389
|
var current = player.currentTime();
|
|
2390
2390
|
var queue = Math.floor(duration / 10);
|
|
2391
2391
|
var segment = Math.floor(current / queue);
|
|
2392
|
-
Beam.report_beam_video('Pause',
|
|
2393
|
-
Segment.report_video_event('Video Pause',
|
|
2392
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2393
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2394
2394
|
});
|
|
2395
2395
|
|
|
2396
2396
|
// end
|
|
@@ -2399,8 +2399,8 @@ var Video = function Video(_ref) {
|
|
|
2399
2399
|
var current = player.currentTime();
|
|
2400
2400
|
var queue = Math.floor(duration / 10);
|
|
2401
2401
|
var segment = Math.floor(current / queue);
|
|
2402
|
-
Beam.report_beam_video('End',
|
|
2403
|
-
Segment.report_video_event('Video End',
|
|
2402
|
+
Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2403
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2404
2404
|
autoplayNextVideo(evt);
|
|
2405
2405
|
});
|
|
2406
2406
|
|
|
@@ -2411,8 +2411,8 @@ var Video = function Video(_ref) {
|
|
|
2411
2411
|
var queue = Math.floor(duration / 10);
|
|
2412
2412
|
var segment = Math.floor(current / queue);
|
|
2413
2413
|
if (!queueProgress.includes(segment)) {
|
|
2414
|
-
Beam.report_beam_video('Segment',
|
|
2415
|
-
Segment.report_video_event('Video Segment',
|
|
2414
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2415
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2416
2416
|
queueProgress.push(segment);
|
|
2417
2417
|
}
|
|
2418
2418
|
});
|
|
@@ -2423,8 +2423,8 @@ var Video = function Video(_ref) {
|
|
|
2423
2423
|
var id = player.ads.ad.id;
|
|
2424
2424
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2425
2425
|
|
|
2426
|
-
Beam.report_beam_ad('AD Started',
|
|
2427
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2426
|
+
Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
|
|
2427
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2428
2428
|
});
|
|
2429
2429
|
|
|
2430
2430
|
// ad ended
|
|
@@ -2432,60 +2432,60 @@ var Video = function Video(_ref) {
|
|
|
2432
2432
|
var duration = player.ads.ad.duration;
|
|
2433
2433
|
var id = player.ads.ad.id;
|
|
2434
2434
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2435
|
-
Beam.report_beam_ad('AD Ended',
|
|
2436
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2435
|
+
Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
|
|
2436
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2437
2437
|
});
|
|
2438
2438
|
};
|
|
2439
2439
|
|
|
2440
2440
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2441
2441
|
if (videoID) {
|
|
2442
|
-
return
|
|
2442
|
+
return React.createElement(
|
|
2443
2443
|
'div',
|
|
2444
2444
|
null,
|
|
2445
|
-
|
|
2445
|
+
React.createElement(ReactPlayerLoader, {
|
|
2446
2446
|
onSuccess: onVideoSuccess,
|
|
2447
2447
|
accountId: accountIDs.brightcove.accountId,
|
|
2448
2448
|
videoId: videoID,
|
|
2449
2449
|
playerId: accountIDs.brightcove.playerId,
|
|
2450
2450
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2451
2451
|
}),
|
|
2452
|
-
|
|
2452
|
+
React.createElement(
|
|
2453
2453
|
'style',
|
|
2454
2454
|
{ jsx: 'true' },
|
|
2455
2455
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2456
2456
|
)
|
|
2457
2457
|
);
|
|
2458
2458
|
} else if (playlistID) {
|
|
2459
|
-
return
|
|
2459
|
+
return React.createElement(
|
|
2460
2460
|
'div',
|
|
2461
2461
|
null,
|
|
2462
|
-
|
|
2462
|
+
React.createElement(ReactPlayerLoader, {
|
|
2463
2463
|
accountId: accountIDs.brightcove.accountId,
|
|
2464
2464
|
playlistId: playlistID,
|
|
2465
2465
|
playerId: accountIDs.brightcove.playerId,
|
|
2466
2466
|
onSuccess: onVideoSuccess,
|
|
2467
2467
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2468
2468
|
}),
|
|
2469
|
-
|
|
2469
|
+
React.createElement(
|
|
2470
2470
|
'style',
|
|
2471
2471
|
{ jsx: 'true' },
|
|
2472
2472
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2473
2473
|
)
|
|
2474
2474
|
);
|
|
2475
2475
|
} else if (experienceID) {
|
|
2476
|
-
return
|
|
2476
|
+
return React.createElement(
|
|
2477
2477
|
'div',
|
|
2478
2478
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2479
|
-
videoLoaded &&
|
|
2479
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2480
2480
|
);
|
|
2481
2481
|
}
|
|
2482
2482
|
return null;
|
|
2483
2483
|
}
|
|
2484
2484
|
if (source === 'mp4') {
|
|
2485
|
-
return
|
|
2485
|
+
return React.createElement(
|
|
2486
2486
|
'div',
|
|
2487
2487
|
null,
|
|
2488
|
-
|
|
2488
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2489
2489
|
);
|
|
2490
2490
|
}
|
|
2491
2491
|
|
|
@@ -2696,9 +2696,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2696
2696
|
});
|
|
2697
2697
|
|
|
2698
2698
|
unwrapExports(props);
|
|
2699
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2700
|
-
props.defaultProps;
|
|
2701
|
-
props.propTypes;
|
|
2699
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2700
|
+
var props_2 = props.defaultProps;
|
|
2701
|
+
var props_3 = props.propTypes;
|
|
2702
2702
|
|
|
2703
2703
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2704
2704
|
return isNonNullObject(value)
|
|
@@ -3090,7 +3090,7 @@ function isEqual(a, b) {
|
|
|
3090
3090
|
return true;
|
|
3091
3091
|
}
|
|
3092
3092
|
|
|
3093
|
-
if ((0,
|
|
3093
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3094
3094
|
return true;
|
|
3095
3095
|
}
|
|
3096
3096
|
|
|
@@ -3133,17 +3133,17 @@ function isMediaStream(url) {
|
|
|
3133
3133
|
});
|
|
3134
3134
|
|
|
3135
3135
|
unwrapExports(utils);
|
|
3136
|
-
utils.parseStartTime;
|
|
3137
|
-
utils.parseEndTime;
|
|
3138
|
-
utils.randomString;
|
|
3139
|
-
utils.queryString;
|
|
3140
|
-
utils.getSDK;
|
|
3141
|
-
utils.getConfig;
|
|
3142
|
-
utils.omit;
|
|
3143
|
-
utils.callPlayer;
|
|
3144
|
-
utils.isObject;
|
|
3145
|
-
utils.isEqual;
|
|
3146
|
-
utils.isMediaStream;
|
|
3136
|
+
var utils_1 = utils.parseStartTime;
|
|
3137
|
+
var utils_2 = utils.parseEndTime;
|
|
3138
|
+
var utils_3 = utils.randomString;
|
|
3139
|
+
var utils_4 = utils.queryString;
|
|
3140
|
+
var utils_5 = utils.getSDK;
|
|
3141
|
+
var utils_6 = utils.getConfig;
|
|
3142
|
+
var utils_7 = utils.omit;
|
|
3143
|
+
var utils_8 = utils.callPlayer;
|
|
3144
|
+
var utils_9 = utils.isObject;
|
|
3145
|
+
var utils_10 = utils.isEqual;
|
|
3146
|
+
var utils_11 = utils.isMediaStream;
|
|
3147
3147
|
|
|
3148
3148
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3149
3149
|
|
|
@@ -3152,7 +3152,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3152
3152
|
});
|
|
3153
3153
|
exports["default"] = void 0;
|
|
3154
3154
|
|
|
3155
|
-
var _react = _interopRequireWildcard(
|
|
3155
|
+
var _react = _interopRequireWildcard(React);
|
|
3156
3156
|
|
|
3157
3157
|
|
|
3158
3158
|
|
|
@@ -3562,7 +3562,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3562
3562
|
});
|
|
3563
3563
|
exports["default"] = createSinglePlayer;
|
|
3564
3564
|
|
|
3565
|
-
var _react = _interopRequireWildcard(
|
|
3565
|
+
var _react = _interopRequireWildcard(React);
|
|
3566
3566
|
|
|
3567
3567
|
|
|
3568
3568
|
|
|
@@ -3720,7 +3720,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3720
3720
|
});
|
|
3721
3721
|
exports["default"] = exports.YouTube = void 0;
|
|
3722
3722
|
|
|
3723
|
-
var _react = _interopRequireWildcard(
|
|
3723
|
+
var _react = _interopRequireWildcard(React);
|
|
3724
3724
|
|
|
3725
3725
|
|
|
3726
3726
|
|
|
@@ -4020,7 +4020,7 @@ exports["default"] = _default;
|
|
|
4020
4020
|
});
|
|
4021
4021
|
|
|
4022
4022
|
unwrapExports(YouTube_1);
|
|
4023
|
-
YouTube_1.YouTube;
|
|
4023
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4024
4024
|
|
|
4025
4025
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4026
4026
|
|
|
@@ -4029,7 +4029,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4029
4029
|
});
|
|
4030
4030
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4031
4031
|
|
|
4032
|
-
var _react = _interopRequireWildcard(
|
|
4032
|
+
var _react = _interopRequireWildcard(React);
|
|
4033
4033
|
|
|
4034
4034
|
|
|
4035
4035
|
|
|
@@ -4237,7 +4237,7 @@ exports["default"] = _default;
|
|
|
4237
4237
|
});
|
|
4238
4238
|
|
|
4239
4239
|
unwrapExports(SoundCloud_1);
|
|
4240
|
-
SoundCloud_1.SoundCloud;
|
|
4240
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4241
4241
|
|
|
4242
4242
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4243
4243
|
|
|
@@ -4246,7 +4246,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4246
4246
|
});
|
|
4247
4247
|
exports["default"] = exports.Vimeo = void 0;
|
|
4248
4248
|
|
|
4249
|
-
var _react = _interopRequireWildcard(
|
|
4249
|
+
var _react = _interopRequireWildcard(React);
|
|
4250
4250
|
|
|
4251
4251
|
|
|
4252
4252
|
|
|
@@ -4493,7 +4493,7 @@ exports["default"] = _default;
|
|
|
4493
4493
|
});
|
|
4494
4494
|
|
|
4495
4495
|
unwrapExports(Vimeo_1);
|
|
4496
|
-
Vimeo_1.Vimeo;
|
|
4496
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4497
4497
|
|
|
4498
4498
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4499
4499
|
|
|
@@ -4502,7 +4502,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4502
4502
|
});
|
|
4503
4503
|
exports["default"] = exports.Facebook = void 0;
|
|
4504
4504
|
|
|
4505
|
-
var _react = _interopRequireWildcard(
|
|
4505
|
+
var _react = _interopRequireWildcard(React);
|
|
4506
4506
|
|
|
4507
4507
|
|
|
4508
4508
|
|
|
@@ -4705,7 +4705,7 @@ exports["default"] = _default;
|
|
|
4705
4705
|
});
|
|
4706
4706
|
|
|
4707
4707
|
unwrapExports(Facebook_1);
|
|
4708
|
-
Facebook_1.Facebook;
|
|
4708
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4709
4709
|
|
|
4710
4710
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4711
4711
|
|
|
@@ -4714,7 +4714,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4714
4714
|
});
|
|
4715
4715
|
exports["default"] = exports.Streamable = void 0;
|
|
4716
4716
|
|
|
4717
|
-
var _react = _interopRequireWildcard(
|
|
4717
|
+
var _react = _interopRequireWildcard(React);
|
|
4718
4718
|
|
|
4719
4719
|
|
|
4720
4720
|
|
|
@@ -4916,7 +4916,7 @@ exports["default"] = _default;
|
|
|
4916
4916
|
});
|
|
4917
4917
|
|
|
4918
4918
|
unwrapExports(Streamable_1);
|
|
4919
|
-
Streamable_1.Streamable;
|
|
4919
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4920
4920
|
|
|
4921
4921
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4922
4922
|
|
|
@@ -4925,7 +4925,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4925
4925
|
});
|
|
4926
4926
|
exports["default"] = exports.Wistia = void 0;
|
|
4927
4927
|
|
|
4928
|
-
var _react = _interopRequireWildcard(
|
|
4928
|
+
var _react = _interopRequireWildcard(React);
|
|
4929
4929
|
|
|
4930
4930
|
|
|
4931
4931
|
|
|
@@ -5159,7 +5159,7 @@ exports["default"] = _default;
|
|
|
5159
5159
|
});
|
|
5160
5160
|
|
|
5161
5161
|
unwrapExports(Wistia_1);
|
|
5162
|
-
Wistia_1.Wistia;
|
|
5162
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5163
5163
|
|
|
5164
5164
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5165
5165
|
|
|
@@ -5168,7 +5168,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5168
5168
|
});
|
|
5169
5169
|
exports["default"] = exports.Twitch = void 0;
|
|
5170
5170
|
|
|
5171
|
-
var _react = _interopRequireWildcard(
|
|
5171
|
+
var _react = _interopRequireWildcard(React);
|
|
5172
5172
|
|
|
5173
5173
|
|
|
5174
5174
|
|
|
@@ -5375,7 +5375,7 @@ exports["default"] = _default;
|
|
|
5375
5375
|
});
|
|
5376
5376
|
|
|
5377
5377
|
unwrapExports(Twitch_1);
|
|
5378
|
-
Twitch_1.Twitch;
|
|
5378
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5379
5379
|
|
|
5380
5380
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5381
5381
|
|
|
@@ -5384,7 +5384,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5384
5384
|
});
|
|
5385
5385
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5386
5386
|
|
|
5387
|
-
var _react = _interopRequireWildcard(
|
|
5387
|
+
var _react = _interopRequireWildcard(React);
|
|
5388
5388
|
|
|
5389
5389
|
|
|
5390
5390
|
|
|
@@ -5611,7 +5611,7 @@ exports["default"] = _default;
|
|
|
5611
5611
|
});
|
|
5612
5612
|
|
|
5613
5613
|
unwrapExports(DailyMotion_1);
|
|
5614
|
-
DailyMotion_1.DailyMotion;
|
|
5614
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5615
5615
|
|
|
5616
5616
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5617
5617
|
|
|
@@ -5620,7 +5620,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5620
5620
|
});
|
|
5621
5621
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5622
5622
|
|
|
5623
|
-
var _react = _interopRequireWildcard(
|
|
5623
|
+
var _react = _interopRequireWildcard(React);
|
|
5624
5624
|
|
|
5625
5625
|
|
|
5626
5626
|
|
|
@@ -5810,7 +5810,7 @@ exports["default"] = _default;
|
|
|
5810
5810
|
});
|
|
5811
5811
|
|
|
5812
5812
|
unwrapExports(Mixcloud_1);
|
|
5813
|
-
Mixcloud_1.Mixcloud;
|
|
5813
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5814
5814
|
|
|
5815
5815
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5816
5816
|
|
|
@@ -5819,7 +5819,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5819
5819
|
});
|
|
5820
5820
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5821
5821
|
|
|
5822
|
-
var _react = _interopRequireWildcard(
|
|
5822
|
+
var _react = _interopRequireWildcard(React);
|
|
5823
5823
|
|
|
5824
5824
|
|
|
5825
5825
|
|
|
@@ -6344,7 +6344,7 @@ exports["default"] = _default;
|
|
|
6344
6344
|
});
|
|
6345
6345
|
|
|
6346
6346
|
unwrapExports(FilePlayer_1);
|
|
6347
|
-
FilePlayer_1.FilePlayer;
|
|
6347
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6348
6348
|
|
|
6349
6349
|
var players = createCommonjsModule(function (module, exports) {
|
|
6350
6350
|
|
|
@@ -6386,7 +6386,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6386
6386
|
});
|
|
6387
6387
|
exports["default"] = void 0;
|
|
6388
6388
|
|
|
6389
|
-
var _react = _interopRequireWildcard(
|
|
6389
|
+
var _react = _interopRequireWildcard(React);
|
|
6390
6390
|
|
|
6391
6391
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6392
6392
|
|
|
@@ -6565,7 +6565,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6565
6565
|
});
|
|
6566
6566
|
exports["default"] = renderPreloadPlayers;
|
|
6567
6567
|
|
|
6568
|
-
var _react = _interopRequireDefault(
|
|
6568
|
+
var _react = _interopRequireDefault(React);
|
|
6569
6569
|
|
|
6570
6570
|
var _Player = _interopRequireDefault(Player_1);
|
|
6571
6571
|
|
|
@@ -6704,7 +6704,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6704
6704
|
});
|
|
6705
6705
|
exports["default"] = void 0;
|
|
6706
6706
|
|
|
6707
|
-
var _react = _interopRequireWildcard(
|
|
6707
|
+
var _react = _interopRequireWildcard(React);
|
|
6708
6708
|
|
|
6709
6709
|
|
|
6710
6710
|
|
|
@@ -7018,20 +7018,20 @@ var Audio = function Audio(_ref) {
|
|
|
7018
7018
|
var node = _ref.node;
|
|
7019
7019
|
|
|
7020
7020
|
if (node.uploadAudio) {
|
|
7021
|
-
return
|
|
7021
|
+
return React.createElement(
|
|
7022
7022
|
'div',
|
|
7023
7023
|
{ className: 'audio d-block text-center mb-3' },
|
|
7024
|
-
|
|
7024
|
+
React.createElement(
|
|
7025
7025
|
'audio',
|
|
7026
7026
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7027
|
-
|
|
7028
|
-
|
|
7027
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7028
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7029
7029
|
'Your browser does not support the audio element.'
|
|
7030
7030
|
),
|
|
7031
|
-
node.caption &&
|
|
7031
|
+
node.caption && React.createElement(
|
|
7032
7032
|
'p',
|
|
7033
7033
|
{ style: { fontSize: '.9rem' } },
|
|
7034
|
-
|
|
7034
|
+
React.createElement(
|
|
7035
7035
|
'em',
|
|
7036
7036
|
null,
|
|
7037
7037
|
node.caption
|
|
@@ -7041,15 +7041,15 @@ var Audio = function Audio(_ref) {
|
|
|
7041
7041
|
} else if (node.audioFilePth) {
|
|
7042
7042
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7043
7043
|
if (hostname === 'embeds.audioboom.com') {
|
|
7044
|
-
return
|
|
7044
|
+
return React.createElement(
|
|
7045
7045
|
'div',
|
|
7046
7046
|
null,
|
|
7047
|
-
|
|
7047
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7048
7048
|
' ',
|
|
7049
|
-
node.caption &&
|
|
7049
|
+
node.caption && React.createElement(
|
|
7050
7050
|
'p',
|
|
7051
7051
|
{ style: { fontSize: '.9rem' } },
|
|
7052
|
-
|
|
7052
|
+
React.createElement(
|
|
7053
7053
|
'em',
|
|
7054
7054
|
null,
|
|
7055
7055
|
node.caption
|
|
@@ -7057,14 +7057,14 @@ var Audio = function Audio(_ref) {
|
|
|
7057
7057
|
)
|
|
7058
7058
|
);
|
|
7059
7059
|
}
|
|
7060
|
-
return
|
|
7060
|
+
return React.createElement(
|
|
7061
7061
|
'div',
|
|
7062
7062
|
{ className: 'audio' },
|
|
7063
|
-
|
|
7064
|
-
node.caption &&
|
|
7063
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7064
|
+
node.caption && React.createElement(
|
|
7065
7065
|
'p',
|
|
7066
7066
|
{ style: { fontSize: '.9rem' } },
|
|
7067
|
-
|
|
7067
|
+
React.createElement(
|
|
7068
7068
|
'em',
|
|
7069
7069
|
null,
|
|
7070
7070
|
node.caption
|
|
@@ -7080,36 +7080,37 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7080
7080
|
var defaultUrl = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'authors';
|
|
7081
7081
|
var biography = arguments[5];
|
|
7082
7082
|
var profileImage = arguments[6];
|
|
7083
|
+
var showAuthorDetails = arguments[7];
|
|
7083
7084
|
|
|
7084
7085
|
if (authorName && authorURL) {
|
|
7085
|
-
return
|
|
7086
|
+
return React.createElement(
|
|
7086
7087
|
'span',
|
|
7087
7088
|
null,
|
|
7088
|
-
|
|
7089
|
+
React.createElement(
|
|
7089
7090
|
'a',
|
|
7090
7091
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7091
7092
|
authorName
|
|
7092
7093
|
),
|
|
7093
|
-
|
|
7094
|
+
showAuthorDetails && React.createElement(
|
|
7094
7095
|
Card,
|
|
7095
7096
|
{ className: 'author-details-card-' + index },
|
|
7096
|
-
|
|
7097
|
+
React.createElement(
|
|
7097
7098
|
Row,
|
|
7098
7099
|
null,
|
|
7099
|
-
profileImage &&
|
|
7100
|
+
profileImage && React.createElement(
|
|
7100
7101
|
Col,
|
|
7101
7102
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7102
|
-
|
|
7103
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7103
7104
|
),
|
|
7104
|
-
|
|
7105
|
+
React.createElement(
|
|
7105
7106
|
Col,
|
|
7106
7107
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7107
|
-
|
|
7108
|
+
React.createElement(
|
|
7108
7109
|
'div',
|
|
7109
7110
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7110
7111
|
authorName
|
|
7111
7112
|
),
|
|
7112
|
-
|
|
7113
|
+
React.createElement(
|
|
7113
7114
|
'p',
|
|
7114
7115
|
null,
|
|
7115
7116
|
biography
|
|
@@ -7117,7 +7118,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7117
7118
|
)
|
|
7118
7119
|
)
|
|
7119
7120
|
),
|
|
7120
|
-
|
|
7121
|
+
React.createElement(
|
|
7121
7122
|
'style',
|
|
7122
7123
|
{ jsx: 'true' },
|
|
7123
7124
|
'\n .author-details-card-' + index + ' {\n display: none;\n position: absolute;\n width: 90%;\n max-width: 450px;\n z-index: 9999;\n }\n .author-details-card-' + index + ' h5 {\n font-weight: 500;\n }\n .author-details-link-' + index + ':hover + .author-details-card-' + index + ', .author-details-card-' + index + ':hover {\n display: block;\n box-shadow: 0px 0px 5px #aaa;\n padding: 15px;\n border-radius: 5px;\n }\n '
|
|
@@ -7125,7 +7126,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7125
7126
|
length !== index + 1 && ', '
|
|
7126
7127
|
);
|
|
7127
7128
|
} else if (authorName) {
|
|
7128
|
-
return
|
|
7129
|
+
return React.createElement(
|
|
7129
7130
|
'span',
|
|
7130
7131
|
{ key: index },
|
|
7131
7132
|
authorName,
|
|
@@ -7280,8 +7281,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7280
7281
|
var duration = player.getDuration();
|
|
7281
7282
|
var queue = Math.floor(duration / 10);
|
|
7282
7283
|
var segment = Math.floor(current / queue);
|
|
7283
|
-
Beam.report_beam_video('Ready',
|
|
7284
|
-
Segment.report_video_event('Video Ready',
|
|
7284
|
+
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
7285
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
7285
7286
|
//autoplay
|
|
7286
7287
|
|
|
7287
7288
|
//Small pause before starting next video
|
|
@@ -7301,8 +7302,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7301
7302
|
var queue = Math.floor(duration / 10);
|
|
7302
7303
|
var segment = Math.floor(current / queue);
|
|
7303
7304
|
|
|
7304
|
-
Beam.report_beam_video('End',
|
|
7305
|
-
Segment.report_video_event('Video End',
|
|
7305
|
+
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
7306
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
7306
7307
|
setEndReported(true);
|
|
7307
7308
|
clearInterval(intervalID);
|
|
7308
7309
|
}
|
|
@@ -7352,8 +7353,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7352
7353
|
var queue = Math.floor(duration / 10);
|
|
7353
7354
|
var segment = Math.floor(current / queue);
|
|
7354
7355
|
if (!queueProgress.includes(segment)) {
|
|
7355
|
-
Beam.report_beam_video('Segment',
|
|
7356
|
-
Segment.report_video_event('Video Segment',
|
|
7356
|
+
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
7357
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
7357
7358
|
queueProgress.push(segment);
|
|
7358
7359
|
}
|
|
7359
7360
|
};
|
|
@@ -7366,8 +7367,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7366
7367
|
var queue = Math.floor(duration / 10);
|
|
7367
7368
|
var segment = Math.floor(current / queue);
|
|
7368
7369
|
|
|
7369
|
-
Beam.report_beam_video('Play',
|
|
7370
|
-
Segment.report_video_event('Video Play',
|
|
7370
|
+
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
7371
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
7371
7372
|
|
|
7372
7373
|
if (!playReported) {
|
|
7373
7374
|
setPlayReported(true);
|
|
@@ -7385,8 +7386,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7385
7386
|
var queue = Math.floor(duration / 10);
|
|
7386
7387
|
var segment = Math.floor(current / queue);
|
|
7387
7388
|
|
|
7388
|
-
Beam.report_beam_video('Pause',
|
|
7389
|
-
Segment.report_video_event('Video Pause',
|
|
7389
|
+
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
7390
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
7390
7391
|
};
|
|
7391
7392
|
|
|
7392
7393
|
// Youtube Options
|
|
@@ -7397,44 +7398,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7397
7398
|
}
|
|
7398
7399
|
};
|
|
7399
7400
|
|
|
7400
|
-
return
|
|
7401
|
+
return React.createElement(
|
|
7401
7402
|
'div',
|
|
7402
7403
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7403
|
-
|
|
7404
|
+
React.createElement(
|
|
7404
7405
|
'div',
|
|
7405
7406
|
{ className: 'mt-2 mb-5' },
|
|
7406
|
-
series &&
|
|
7407
|
+
series && React.createElement(
|
|
7407
7408
|
'div',
|
|
7408
7409
|
{ style: { fontSize: '0.9rem' } },
|
|
7409
7410
|
article.title,
|
|
7410
7411
|
' - Episode ',
|
|
7411
7412
|
series
|
|
7412
7413
|
),
|
|
7413
|
-
Videos[series - 1] &&
|
|
7414
|
+
Videos[series - 1] && React.createElement(
|
|
7414
7415
|
'h1',
|
|
7415
7416
|
{ className: 'mb-3' },
|
|
7416
7417
|
Videos[series - 1].title
|
|
7417
7418
|
),
|
|
7418
|
-
|
|
7419
|
+
React.createElement(
|
|
7419
7420
|
'div',
|
|
7420
7421
|
null,
|
|
7421
7422
|
moment(article.published).format('LL')
|
|
7422
7423
|
),
|
|
7423
|
-
|
|
7424
|
+
React.createElement(
|
|
7424
7425
|
'div',
|
|
7425
7426
|
{ className: 'mb-3' },
|
|
7426
7427
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7427
|
-
return
|
|
7428
|
+
return React.createElement(
|
|
7428
7429
|
'span',
|
|
7429
7430
|
{ key: index },
|
|
7430
7431
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7431
7432
|
);
|
|
7432
7433
|
})
|
|
7433
7434
|
),
|
|
7434
|
-
|
|
7435
|
+
React.createElement(
|
|
7435
7436
|
'p',
|
|
7436
7437
|
null,
|
|
7437
|
-
|
|
7438
|
+
React.createElement(SocialShare, {
|
|
7438
7439
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7439
7440
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7440
7441
|
shareVia: meta.shareVia,
|
|
@@ -7449,20 +7450,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7449
7450
|
hideFacebook: meta.hideFBShare
|
|
7450
7451
|
})
|
|
7451
7452
|
),
|
|
7452
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7453
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7453
7454
|
'p',
|
|
7454
7455
|
{ className: 'mb-3' },
|
|
7455
|
-
|
|
7456
|
+
React.createElement(
|
|
7456
7457
|
'em',
|
|
7457
7458
|
null,
|
|
7458
7459
|
Videos[series - 1].intro
|
|
7459
7460
|
)
|
|
7460
7461
|
)
|
|
7461
7462
|
),
|
|
7462
|
-
|
|
7463
|
+
React.createElement(
|
|
7463
7464
|
'div',
|
|
7464
7465
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7465
|
-
vidUrl && vidType == 'youtube' &&
|
|
7466
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7466
7467
|
className: 'fluid-iframe',
|
|
7467
7468
|
videoId: getYoutubeId(vidUrl),
|
|
7468
7469
|
opts: opts,
|
|
@@ -7473,10 +7474,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7473
7474
|
return handleOnEnd(e);
|
|
7474
7475
|
}
|
|
7475
7476
|
}),
|
|
7476
|
-
vidUrl && vidType == 'mp4' &&
|
|
7477
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7478
|
-
|
|
7479
|
-
series &&
|
|
7477
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7478
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7479
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7480
|
+
series && React.createElement(
|
|
7480
7481
|
'div',
|
|
7481
7482
|
{
|
|
7482
7483
|
className: 'vid-series',
|
|
@@ -7486,10 +7487,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7486
7487
|
maxHeight: '100%',
|
|
7487
7488
|
paddingBottom: '0'
|
|
7488
7489
|
} },
|
|
7489
|
-
|
|
7490
|
+
React.createElement(
|
|
7490
7491
|
'p',
|
|
7491
7492
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7492
|
-
|
|
7493
|
+
React.createElement(
|
|
7493
7494
|
'b',
|
|
7494
7495
|
{ style: { fontSize: '1.25em' } },
|
|
7495
7496
|
'Now Playing:'
|
|
@@ -7497,16 +7498,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7497
7498
|
' ',
|
|
7498
7499
|
seriesData[series ? series - 1 : 0].title
|
|
7499
7500
|
),
|
|
7500
|
-
vidUrl &&
|
|
7501
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7501
7502
|
)
|
|
7502
7503
|
),
|
|
7503
|
-
|
|
7504
|
-
|
|
7504
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7505
|
+
React.createElement(
|
|
7505
7506
|
'div',
|
|
7506
7507
|
{ className: 'vid-text' },
|
|
7507
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7508
|
+
Videos[series - 1] && Videos[series - 1].text && React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7508
7509
|
),
|
|
7509
|
-
|
|
7510
|
+
React.createElement(
|
|
7510
7511
|
'style',
|
|
7511
7512
|
{ jsx: 'true' },
|
|
7512
7513
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7514,14 +7515,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7514
7515
|
);
|
|
7515
7516
|
};
|
|
7516
7517
|
|
|
7517
|
-
var Poll
|
|
7518
|
-
var node = _ref.node
|
|
7519
|
-
_ref.client
|
|
7520
|
-
_ref.pageview
|
|
7521
|
-
_ref.videoAccountIDs
|
|
7522
|
-
|
|
7523
|
-
_ref.showVotes
|
|
7524
|
-
|
|
7518
|
+
var Poll = function Poll(_ref) {
|
|
7519
|
+
var node = _ref.node,
|
|
7520
|
+
client = _ref.client,
|
|
7521
|
+
pageview = _ref.pageview,
|
|
7522
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7523
|
+
onVote = _ref.onVote,
|
|
7524
|
+
_ref$showVotes = _ref.showVotes,
|
|
7525
|
+
getSerializers = _ref.getSerializers;
|
|
7525
7526
|
|
|
7526
7527
|
var _useState = useState(null),
|
|
7527
7528
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7559,67 +7560,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7559
7560
|
return acc;
|
|
7560
7561
|
}
|
|
7561
7562
|
}, 0);
|
|
7562
|
-
return
|
|
7563
|
-
|
|
7563
|
+
return React.createElement(
|
|
7564
|
+
React.Fragment,
|
|
7564
7565
|
null,
|
|
7565
|
-
question &&
|
|
7566
|
+
question && React.createElement(
|
|
7566
7567
|
'p',
|
|
7567
7568
|
{ className: 'font-weight-bold' },
|
|
7568
7569
|
question
|
|
7569
7570
|
),
|
|
7570
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7571
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7571
7572
|
'form',
|
|
7572
7573
|
{ onSubmit: function onSubmit(e) {
|
|
7573
7574
|
return onSubmitPoll(e);
|
|
7574
7575
|
} },
|
|
7575
7576
|
choices && choices.map(function (choice) {
|
|
7576
|
-
return
|
|
7577
|
+
return React.createElement(
|
|
7577
7578
|
'div',
|
|
7578
7579
|
{ key: choice._key },
|
|
7579
|
-
|
|
7580
|
+
React.createElement(
|
|
7580
7581
|
'label',
|
|
7581
7582
|
{ className: 'pl-2' },
|
|
7582
|
-
|
|
7583
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7583
7584
|
return setSelectedChoice(e.target.value);
|
|
7584
7585
|
} }),
|
|
7585
7586
|
' ' + choice.choiceText
|
|
7586
7587
|
)
|
|
7587
7588
|
);
|
|
7588
7589
|
}),
|
|
7589
|
-
|
|
7590
|
+
React.createElement(
|
|
7590
7591
|
Button,
|
|
7591
7592
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7592
7593
|
'Vote'
|
|
7593
7594
|
)
|
|
7594
7595
|
),
|
|
7595
|
-
|
|
7596
|
+
React.createElement(
|
|
7596
7597
|
'div',
|
|
7597
7598
|
{ className: 'progress-container' },
|
|
7598
7599
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7599
7600
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7600
|
-
return
|
|
7601
|
+
return React.createElement(
|
|
7601
7602
|
'div',
|
|
7602
7603
|
{ key: choice._key, className: 'mb-3' },
|
|
7603
|
-
|
|
7604
|
+
React.createElement(
|
|
7604
7605
|
'div',
|
|
7605
7606
|
{ className: 'correct-answer' },
|
|
7606
|
-
|
|
7607
|
+
React.createElement(
|
|
7607
7608
|
'div',
|
|
7608
7609
|
null,
|
|
7609
7610
|
choice.choiceText
|
|
7610
7611
|
),
|
|
7611
|
-
choice.choiceAnswer === true &&
|
|
7612
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7612
7613
|
'div',
|
|
7613
7614
|
null,
|
|
7614
|
-
|
|
7615
|
+
React.createElement(
|
|
7615
7616
|
'span',
|
|
7616
7617
|
{ style: { color: 'limegreen' } },
|
|
7617
7618
|
'Correct!'
|
|
7618
7619
|
)
|
|
7619
7620
|
)
|
|
7620
7621
|
),
|
|
7621
|
-
|
|
7622
|
-
|
|
7622
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7623
|
+
React.createElement(
|
|
7623
7624
|
'span',
|
|
7624
7625
|
{ className: 'float-right' },
|
|
7625
7626
|
percentage,
|
|
@@ -7630,14 +7631,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7630
7631
|
);
|
|
7631
7632
|
})
|
|
7632
7633
|
),
|
|
7633
|
-
showAnswer &&
|
|
7634
|
+
showAnswer && React.createElement(
|
|
7634
7635
|
'h4',
|
|
7635
7636
|
{ className: 'text-center small p-3' },
|
|
7636
7637
|
'Total Votes: ',
|
|
7637
7638
|
choicesTotalCount
|
|
7638
7639
|
),
|
|
7639
|
-
showAnswer && response &&
|
|
7640
|
-
|
|
7640
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7641
|
+
React.createElement(
|
|
7641
7642
|
'style',
|
|
7642
7643
|
{ jsx: 'true' },
|
|
7643
7644
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7655,22 +7656,22 @@ _export(_export.S, 'Object', {
|
|
|
7655
7656
|
}
|
|
7656
7657
|
});
|
|
7657
7658
|
|
|
7658
|
-
var values
|
|
7659
|
+
var values = _core.Object.values;
|
|
7659
7660
|
|
|
7660
|
-
var values = createCommonjsModule(function (module) {
|
|
7661
|
-
module.exports = { "default": values
|
|
7661
|
+
var values$1 = createCommonjsModule(function (module) {
|
|
7662
|
+
module.exports = { "default": values, __esModule: true };
|
|
7662
7663
|
});
|
|
7663
7664
|
|
|
7664
|
-
var _Object$values = unwrapExports(values);
|
|
7665
|
+
var _Object$values = unwrapExports(values$1);
|
|
7665
7666
|
|
|
7666
|
-
var Poll = function Poll(_ref) {
|
|
7667
|
-
var node = _ref.node
|
|
7668
|
-
_ref.client
|
|
7669
|
-
_ref.pageview
|
|
7670
|
-
_ref.videoAccountIDs
|
|
7671
|
-
|
|
7672
|
-
_ref.showVotes
|
|
7673
|
-
|
|
7667
|
+
var Poll$1 = function Poll(_ref) {
|
|
7668
|
+
var node = _ref.node,
|
|
7669
|
+
client = _ref.client,
|
|
7670
|
+
pageview = _ref.pageview,
|
|
7671
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7672
|
+
onVote = _ref.onVote,
|
|
7673
|
+
_ref$showVotes = _ref.showVotes,
|
|
7674
|
+
getSerializers = _ref.getSerializers;
|
|
7674
7675
|
|
|
7675
7676
|
var _useState = useState(null),
|
|
7676
7677
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7736,67 +7737,67 @@ var Poll = function Poll(_ref) {
|
|
|
7736
7737
|
return acc;
|
|
7737
7738
|
}
|
|
7738
7739
|
}, 0);
|
|
7739
|
-
return
|
|
7740
|
-
|
|
7740
|
+
return React.createElement(
|
|
7741
|
+
React.Fragment,
|
|
7741
7742
|
null,
|
|
7742
|
-
question &&
|
|
7743
|
+
question && React.createElement(
|
|
7743
7744
|
'p',
|
|
7744
7745
|
{ className: 'font-weight-bold' },
|
|
7745
7746
|
question
|
|
7746
7747
|
),
|
|
7747
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7748
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7748
7749
|
'form',
|
|
7749
7750
|
{ onSubmit: function onSubmit(e) {
|
|
7750
7751
|
return onSubmitPoll(e);
|
|
7751
7752
|
} },
|
|
7752
7753
|
choices && choices.map(function (choice) {
|
|
7753
|
-
return
|
|
7754
|
+
return React.createElement(
|
|
7754
7755
|
'div',
|
|
7755
7756
|
{ key: choice._key },
|
|
7756
|
-
|
|
7757
|
+
React.createElement(
|
|
7757
7758
|
'label',
|
|
7758
7759
|
{ className: 'pl-2' },
|
|
7759
|
-
|
|
7760
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7760
7761
|
return setSelectedChoice(e.target.value);
|
|
7761
7762
|
} }),
|
|
7762
7763
|
' ' + choice.choiceText
|
|
7763
7764
|
)
|
|
7764
7765
|
);
|
|
7765
7766
|
}),
|
|
7766
|
-
|
|
7767
|
+
React.createElement(
|
|
7767
7768
|
Button,
|
|
7768
7769
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7769
7770
|
'Vote'
|
|
7770
7771
|
)
|
|
7771
7772
|
),
|
|
7772
|
-
|
|
7773
|
+
React.createElement(
|
|
7773
7774
|
'div',
|
|
7774
7775
|
{ className: 'progress-container' },
|
|
7775
7776
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7776
7777
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7777
|
-
return
|
|
7778
|
+
return React.createElement(
|
|
7778
7779
|
'div',
|
|
7779
7780
|
{ key: choice._key, className: 'mb-3' },
|
|
7780
|
-
|
|
7781
|
+
React.createElement(
|
|
7781
7782
|
'div',
|
|
7782
7783
|
{ className: 'correct-answer' },
|
|
7783
|
-
|
|
7784
|
+
React.createElement(
|
|
7784
7785
|
'div',
|
|
7785
7786
|
null,
|
|
7786
7787
|
choice.choiceText
|
|
7787
7788
|
),
|
|
7788
|
-
choice.choiceAnswer === true &&
|
|
7789
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7789
7790
|
'div',
|
|
7790
7791
|
null,
|
|
7791
|
-
|
|
7792
|
+
React.createElement(
|
|
7792
7793
|
'span',
|
|
7793
7794
|
{ style: { color: 'limegreen' } },
|
|
7794
7795
|
'Correct!'
|
|
7795
7796
|
)
|
|
7796
7797
|
)
|
|
7797
7798
|
),
|
|
7798
|
-
|
|
7799
|
-
|
|
7799
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7800
|
+
React.createElement(
|
|
7800
7801
|
'span',
|
|
7801
7802
|
{ className: 'float-right' },
|
|
7802
7803
|
percentage,
|
|
@@ -7807,14 +7808,14 @@ var Poll = function Poll(_ref) {
|
|
|
7807
7808
|
);
|
|
7808
7809
|
})
|
|
7809
7810
|
),
|
|
7810
|
-
showAnswer &&
|
|
7811
|
+
showAnswer && React.createElement(
|
|
7811
7812
|
'h4',
|
|
7812
7813
|
{ className: 'text-center small p-3' },
|
|
7813
7814
|
'Total Votes: ',
|
|
7814
7815
|
choicesTotalCount
|
|
7815
7816
|
),
|
|
7816
|
-
showAnswer && response &&
|
|
7817
|
-
|
|
7817
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7818
|
+
React.createElement(
|
|
7818
7819
|
'style',
|
|
7819
7820
|
{ jsx: 'true' },
|
|
7820
7821
|
'\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 +7823,7 @@ var Poll = function Poll(_ref) {
|
|
|
7822
7823
|
);
|
|
7823
7824
|
};
|
|
7824
7825
|
|
|
7825
|
-
var numberOfPaginations =
|
|
7826
|
+
var numberOfPaginations = main_39 ? 4 : 10;
|
|
7826
7827
|
|
|
7827
7828
|
var Quiz = function Quiz(_ref) {
|
|
7828
7829
|
var quizzes = _ref.quizzes,
|
|
@@ -7940,20 +7941,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7940
7941
|
};
|
|
7941
7942
|
|
|
7942
7943
|
var renderPagination = function renderPagination() {
|
|
7943
|
-
return
|
|
7944
|
+
return React.createElement(
|
|
7944
7945
|
Pagination,
|
|
7945
|
-
{ className: 'p-0 m-0', size:
|
|
7946
|
-
|
|
7946
|
+
{ className: 'p-0 m-0', size: main_39 && 'sm' },
|
|
7947
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7947
7948
|
return changePage('first');
|
|
7948
7949
|
}, disabled: currentPage === 1 }),
|
|
7949
|
-
|
|
7950
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7950
7951
|
return changePage('prev');
|
|
7951
7952
|
}, disabled: currentPage === 1 }),
|
|
7952
|
-
|
|
7953
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7953
7954
|
return renderNewPages('prev');
|
|
7954
7955
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7955
7956
|
pages.map(function (page) {
|
|
7956
|
-
return
|
|
7957
|
+
return React.createElement(
|
|
7957
7958
|
Pagination.Item,
|
|
7958
7959
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7959
7960
|
return changePage(page);
|
|
@@ -7961,13 +7962,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
7961
7962
|
page
|
|
7962
7963
|
);
|
|
7963
7964
|
}),
|
|
7964
|
-
|
|
7965
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7965
7966
|
return renderNewPages('next');
|
|
7966
7967
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7967
|
-
|
|
7968
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7968
7969
|
return changePage('next');
|
|
7969
7970
|
}, disabled: currentPage === pageCount }),
|
|
7970
|
-
|
|
7971
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7971
7972
|
return changePage('last');
|
|
7972
7973
|
}, disabled: currentPage === pageCount })
|
|
7973
7974
|
);
|
|
@@ -8050,51 +8051,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8050
8051
|
}
|
|
8051
8052
|
};
|
|
8052
8053
|
|
|
8053
|
-
return
|
|
8054
|
-
|
|
8054
|
+
return React.createElement(
|
|
8055
|
+
React.Fragment,
|
|
8055
8056
|
null,
|
|
8056
|
-
quizzes[currentPage - 1] &&
|
|
8057
|
-
|
|
8057
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8058
|
+
React.Fragment,
|
|
8058
8059
|
null,
|
|
8059
|
-
|
|
8060
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8060
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8061
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8061
8062
|
'form',
|
|
8062
8063
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8063
8064
|
return e.preventDefault();
|
|
8064
8065
|
} },
|
|
8065
8066
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8066
|
-
return
|
|
8067
|
+
return React.createElement(
|
|
8067
8068
|
'div',
|
|
8068
8069
|
{ key: answer._key },
|
|
8069
|
-
|
|
8070
|
+
React.createElement(
|
|
8070
8071
|
'label',
|
|
8071
8072
|
{ className: 'pl-2' },
|
|
8072
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8073
|
+
quizzes[currentPage - 1].multiAnswer ? React.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8073
8074
|
' ' + answer.answerText
|
|
8074
8075
|
)
|
|
8075
8076
|
);
|
|
8076
8077
|
})
|
|
8077
8078
|
)
|
|
8078
8079
|
),
|
|
8079
|
-
!showAnswer &&
|
|
8080
|
+
!showAnswer && React.createElement(
|
|
8080
8081
|
Button$1,
|
|
8081
8082
|
{ onClick: function onClick() {
|
|
8082
8083
|
return checkAnswers();
|
|
8083
8084
|
}, variant: 'info', block: true },
|
|
8084
8085
|
'Please click here for answer'
|
|
8085
8086
|
),
|
|
8086
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8087
|
-
|
|
8087
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8088
|
+
React.Fragment,
|
|
8088
8089
|
null,
|
|
8089
|
-
|
|
8090
|
+
React.createElement(
|
|
8090
8091
|
'h4',
|
|
8091
8092
|
null,
|
|
8092
8093
|
'Answer:'
|
|
8093
8094
|
),
|
|
8094
|
-
quizzes[currentPage - 1].answer &&
|
|
8095
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8095
8096
|
),
|
|
8096
|
-
|
|
8097
|
-
pageCount > 1 &&
|
|
8097
|
+
React.createElement('br', null),
|
|
8098
|
+
pageCount > 1 && React.createElement(
|
|
8098
8099
|
'div',
|
|
8099
8100
|
{ className: 'd-flex justify-content-center' },
|
|
8100
8101
|
renderPagination()
|
|
@@ -8105,14 +8106,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
8105
8106
|
var Leads = function Leads(_ref) {
|
|
8106
8107
|
var url = _ref.url;
|
|
8107
8108
|
|
|
8108
|
-
return
|
|
8109
|
+
return React.createElement(
|
|
8109
8110
|
'div',
|
|
8110
8111
|
{ className: 'd-block text-center mb-3' },
|
|
8111
|
-
url &&
|
|
8112
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8112
8113
|
);
|
|
8113
8114
|
};
|
|
8114
8115
|
|
|
8115
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8116
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8116
8117
|
var slides = _ref.node.slides,
|
|
8117
8118
|
client = _ref.client,
|
|
8118
8119
|
pageview = _ref.pageview,
|
|
@@ -8148,53 +8149,53 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8148
8149
|
setCarouselIndex(selectedIndex);
|
|
8149
8150
|
};
|
|
8150
8151
|
|
|
8151
|
-
return
|
|
8152
|
+
return React.createElement(
|
|
8152
8153
|
'div',
|
|
8153
8154
|
{ className: 'mt-3 mb-4' },
|
|
8154
|
-
|
|
8155
|
+
React.createElement(
|
|
8155
8156
|
Carousel,
|
|
8156
8157
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8157
8158
|
slides && slides.map(function (slide) {
|
|
8158
8159
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8159
|
-
return
|
|
8160
|
+
return React.createElement(
|
|
8160
8161
|
Carousel.Item,
|
|
8161
8162
|
{ key: slide._key },
|
|
8162
|
-
|
|
8163
|
+
React.createElement(
|
|
8163
8164
|
'a',
|
|
8164
8165
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8165
|
-
|
|
8166
|
+
React.createElement(
|
|
8166
8167
|
'div',
|
|
8167
8168
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8168
|
-
|
|
8169
|
+
React.createElement(
|
|
8169
8170
|
LazyLoad,
|
|
8170
8171
|
null,
|
|
8171
|
-
|
|
8172
|
+
React.createElement(
|
|
8172
8173
|
'picture',
|
|
8173
8174
|
null,
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8175
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8176
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8177
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8178
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8178
8179
|
)
|
|
8179
8180
|
)
|
|
8180
8181
|
)
|
|
8181
8182
|
),
|
|
8182
|
-
|
|
8183
|
+
React.createElement(
|
|
8183
8184
|
'div',
|
|
8184
8185
|
{ className: 'p-2' },
|
|
8185
|
-
slide.slideshowImage.caption &&
|
|
8186
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8186
8187
|
'h3',
|
|
8187
8188
|
{ style: { padding: '0px' } },
|
|
8188
8189
|
slide.slideshowImage.caption
|
|
8189
8190
|
),
|
|
8190
|
-
slide.description &&
|
|
8191
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8191
8192
|
)
|
|
8192
8193
|
);
|
|
8193
8194
|
}
|
|
8194
8195
|
return null;
|
|
8195
8196
|
})
|
|
8196
8197
|
),
|
|
8197
|
-
|
|
8198
|
+
React.createElement(
|
|
8198
8199
|
'style',
|
|
8199
8200
|
{ jsx: 'true' },
|
|
8200
8201
|
'\n .embed-item-img {\n max-width: 100%;\n max-height: 750px;\n }\n .carousel-indicators {\n bottom: -2.5rem !important;\n }\n .carousel-indicators li {\n width: 20px;\n height: 20px;\n border-radius: 50% !important;\n background-color: var(--secondary);\n }\n .carousel-control-prev {\n justify-content: flex-start;\n }\n .carousel-control-next {\n justify-content: flex-end;\n }\n '
|
|
@@ -8213,10 +8214,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8213
8214
|
sizes = _props$node.sizes,
|
|
8214
8215
|
sizeMapping = _props$node.sizeMapping;
|
|
8215
8216
|
|
|
8216
|
-
return
|
|
8217
|
+
return React.createElement(
|
|
8217
8218
|
'div',
|
|
8218
8219
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8219
|
-
|
|
8220
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8220
8221
|
);
|
|
8221
8222
|
};
|
|
8222
8223
|
|
|
@@ -8227,15 +8228,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8227
8228
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8228
8229
|
|
|
8229
8230
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8230
|
-
return
|
|
8231
|
+
return React.createElement(
|
|
8231
8232
|
'section',
|
|
8232
8233
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8233
|
-
Caption &&
|
|
8234
|
+
Caption && React.createElement(
|
|
8234
8235
|
'h4',
|
|
8235
8236
|
{ className: 'formstack-caption' },
|
|
8236
8237
|
Caption
|
|
8237
8238
|
),
|
|
8238
|
-
|
|
8239
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8239
8240
|
);
|
|
8240
8241
|
};
|
|
8241
8242
|
|
|
@@ -8251,36 +8252,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8251
8252
|
}
|
|
8252
8253
|
});
|
|
8253
8254
|
if (medias && medias.length > 0) {
|
|
8254
|
-
return
|
|
8255
|
+
return React.createElement(
|
|
8255
8256
|
'div',
|
|
8256
8257
|
{ className: 'multi-media-container' },
|
|
8257
|
-
|
|
8258
|
+
React.createElement(
|
|
8258
8259
|
Row$1,
|
|
8259
8260
|
{ noGutters: true },
|
|
8260
8261
|
medias.map(function (media) {
|
|
8261
|
-
return
|
|
8262
|
+
return React.createElement(
|
|
8262
8263
|
Col$1,
|
|
8263
8264
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8264
|
-
|
|
8265
|
+
React.createElement(
|
|
8265
8266
|
'a',
|
|
8266
8267
|
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8267
8268
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8268
|
-
|
|
8269
|
+
React.createElement(
|
|
8269
8270
|
'div',
|
|
8270
8271
|
{ className: 'multi-media-image-container' },
|
|
8271
|
-
imageBox &&
|
|
8272
|
+
imageBox && React.createElement(
|
|
8272
8273
|
LazyLoad,
|
|
8273
8274
|
{ once: true },
|
|
8274
|
-
|
|
8275
|
+
React.createElement(
|
|
8275
8276
|
'picture',
|
|
8276
8277
|
null,
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8278
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8279
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8280
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8281
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8281
8282
|
)
|
|
8282
8283
|
),
|
|
8283
|
-
media.caption &&
|
|
8284
|
+
media.caption && React.createElement(
|
|
8284
8285
|
'span',
|
|
8285
8286
|
{ className: 'multi-media-caption' },
|
|
8286
8287
|
media.caption
|
|
@@ -8290,7 +8291,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8290
8291
|
);
|
|
8291
8292
|
})
|
|
8292
8293
|
),
|
|
8293
|
-
|
|
8294
|
+
React.createElement(
|
|
8294
8295
|
'style',
|
|
8295
8296
|
{ jsx: 'true' },
|
|
8296
8297
|
'\n .multi-media-container {\n margin-bottom: 1rem;\n }\n .multi-media-image {\n width: 100%;\n height: auto;\n object-fit: cover;\n }\n\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-media-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-media-image[images-count=\'4\'] {\n height: 100px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 200px;\n }\n .multi-media-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-media-image[images-count=\'4\'] {\n height: 150px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 300px;\n }\n }\n\n .multi-media-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
|
|
@@ -8337,7 +8338,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8337
8338
|
}
|
|
8338
8339
|
};
|
|
8339
8340
|
|
|
8340
|
-
_this.wraperRef =
|
|
8341
|
+
_this.wraperRef = React.createRef();
|
|
8341
8342
|
_this.visible = false;
|
|
8342
8343
|
return _this;
|
|
8343
8344
|
}
|
|
@@ -8365,7 +8366,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8365
8366
|
_props$id = _props.id,
|
|
8366
8367
|
id = _props$id === undefined ? '' : _props$id;
|
|
8367
8368
|
|
|
8368
|
-
return
|
|
8369
|
+
return React.createElement(
|
|
8369
8370
|
'div',
|
|
8370
8371
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8371
8372
|
this.props.children
|
|
@@ -8374,7 +8375,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8374
8375
|
}]);
|
|
8375
8376
|
|
|
8376
8377
|
return InscreenSensor;
|
|
8377
|
-
}(
|
|
8378
|
+
}(React.Component);
|
|
8378
8379
|
|
|
8379
8380
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8380
8381
|
var nodes = _ref.nodes,
|
|
@@ -8483,33 +8484,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8483
8484
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8484
8485
|
var showReading = show ? 'showReading' : '';
|
|
8485
8486
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8486
|
-
return
|
|
8487
|
+
return React.createElement(
|
|
8487
8488
|
'div',
|
|
8488
8489
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8489
|
-
|
|
8490
|
+
React.createElement(
|
|
8490
8491
|
'a',
|
|
8491
8492
|
{ onClick: function onClick(e) {
|
|
8492
8493
|
return articleCardClickHandler(e);
|
|
8493
8494
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8494
|
-
|
|
8495
|
+
React.createElement(
|
|
8495
8496
|
'div',
|
|
8496
8497
|
{ className: 'prevNext-thumbnail' },
|
|
8497
|
-
|
|
8498
|
-
|
|
8498
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8499
|
+
React.createElement(
|
|
8499
8500
|
'div',
|
|
8500
8501
|
{ className: 'prevNext-reading ' + showReading },
|
|
8501
8502
|
articleLabel
|
|
8502
8503
|
)
|
|
8503
8504
|
),
|
|
8504
|
-
|
|
8505
|
+
React.createElement(
|
|
8505
8506
|
'div',
|
|
8506
8507
|
{ className: 'prevNext-summary' },
|
|
8507
|
-
|
|
8508
|
+
React.createElement(
|
|
8508
8509
|
'div',
|
|
8509
8510
|
{ className: 'prevNext-publishDate' },
|
|
8510
8511
|
moment(article.published).format('LL')
|
|
8511
8512
|
),
|
|
8512
|
-
|
|
8513
|
+
React.createElement(
|
|
8513
8514
|
'h2',
|
|
8514
8515
|
{ className: 'prevNext-title' },
|
|
8515
8516
|
article.title
|
|
@@ -8558,7 +8559,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8558
8559
|
|
|
8559
8560
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8560
8561
|
if (biography) {
|
|
8561
|
-
return
|
|
8562
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8562
8563
|
}
|
|
8563
8564
|
};
|
|
8564
8565
|
|
|
@@ -8644,7 +8645,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8644
8645
|
//console.log('useLayoutEffect')
|
|
8645
8646
|
if (!firstLoad) {
|
|
8646
8647
|
setUpArrowClicked(false);
|
|
8647
|
-
if (
|
|
8648
|
+
if (main_40) {
|
|
8648
8649
|
grabLoadedAds();
|
|
8649
8650
|
} else {
|
|
8650
8651
|
scrollToArticle();
|
|
@@ -8668,7 +8669,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8668
8669
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8669
8670
|
if (pageview) pageview(path);
|
|
8670
8671
|
|
|
8671
|
-
if (!
|
|
8672
|
+
if (!main_40) {
|
|
8672
8673
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8673
8674
|
if (window.googletag && googletag.pubadsReady) {
|
|
8674
8675
|
lib_3.refresh();
|
|
@@ -8676,7 +8677,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8676
8677
|
});
|
|
8677
8678
|
}
|
|
8678
8679
|
//Refresh leaderboard ad on mobile
|
|
8679
|
-
if (
|
|
8680
|
+
if (main_40) {
|
|
8680
8681
|
var leaderboardSlotId = '';
|
|
8681
8682
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8682
8683
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8716,38 +8717,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8716
8717
|
setSensorVisible(false);
|
|
8717
8718
|
};
|
|
8718
8719
|
|
|
8719
|
-
return
|
|
8720
|
-
|
|
8720
|
+
return React.createElement(
|
|
8721
|
+
React.Fragment,
|
|
8721
8722
|
null,
|
|
8722
|
-
|
|
8723
|
+
React.createElement(
|
|
8723
8724
|
'div',
|
|
8724
8725
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8725
|
-
|
|
8726
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8726
8727
|
return handleArrowClick();
|
|
8727
8728
|
} })
|
|
8728
8729
|
),
|
|
8729
|
-
|
|
8730
|
-
|
|
8730
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8731
|
+
React.createElement(
|
|
8731
8732
|
'div',
|
|
8732
8733
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8733
|
-
|
|
8734
|
+
React.createElement(
|
|
8734
8735
|
'h5',
|
|
8735
8736
|
{ className: 'objective-title' },
|
|
8736
8737
|
nodes.seriesTitle
|
|
8737
8738
|
),
|
|
8738
|
-
|
|
8739
|
+
React.createElement(
|
|
8739
8740
|
'div',
|
|
8740
8741
|
{ className: 'prevNextWrapper' },
|
|
8741
8742
|
PrevNextCards(false, -1)
|
|
8742
8743
|
)
|
|
8743
8744
|
),
|
|
8744
|
-
|
|
8745
|
-
|
|
8745
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8746
|
+
React.createElement(
|
|
8746
8747
|
'div',
|
|
8747
8748
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8748
|
-
|
|
8749
|
+
main_40 && Ads.map(function (ad, index) {
|
|
8749
8750
|
if (index === 0) {
|
|
8750
|
-
return
|
|
8751
|
+
return React.createElement(
|
|
8751
8752
|
'div',
|
|
8752
8753
|
{
|
|
8753
8754
|
key: 'addid-1',
|
|
@@ -8767,14 +8768,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8767
8768
|
}
|
|
8768
8769
|
})
|
|
8769
8770
|
),
|
|
8770
|
-
|
|
8771
|
+
React.createElement(
|
|
8771
8772
|
'div',
|
|
8772
8773
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8773
8774
|
Articles.map(function (article, index) {
|
|
8774
|
-
return
|
|
8775
|
+
return React.createElement(
|
|
8775
8776
|
'div',
|
|
8776
8777
|
{ key: article.title },
|
|
8777
|
-
|
|
8778
|
+
React.createElement(
|
|
8778
8779
|
InscreenSensor,
|
|
8779
8780
|
{
|
|
8780
8781
|
visible: sensorVisible,
|
|
@@ -8792,84 +8793,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8792
8793
|
}
|
|
8793
8794
|
}
|
|
8794
8795
|
} },
|
|
8795
|
-
|
|
8796
|
+
React.createElement(
|
|
8796
8797
|
Head,
|
|
8797
8798
|
null,
|
|
8798
|
-
currentTitle !== null &&
|
|
8799
|
+
currentTitle !== null && React.createElement(
|
|
8799
8800
|
'title',
|
|
8800
8801
|
{ key: 'title' },
|
|
8801
8802
|
currentTitle
|
|
8802
8803
|
),
|
|
8803
|
-
currentSummary !== null &&
|
|
8804
|
-
currentURL !== null &&
|
|
8805
|
-
currentTitle !== null &&
|
|
8806
|
-
currentThumbnail !== null &&
|
|
8807
|
-
currentSummary !== null &&
|
|
8808
|
-
currentTitle !== null &&
|
|
8809
|
-
currentThumbnail !== null &&
|
|
8810
|
-
currentSummary !== null &&
|
|
8804
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8805
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8806
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8807
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8808
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8809
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8810
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8811
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8811
8812
|
),
|
|
8812
|
-
|
|
8813
|
+
React.createElement(
|
|
8813
8814
|
'article',
|
|
8814
8815
|
{ className: 'article-wrapper' },
|
|
8815
|
-
|
|
8816
|
+
React.createElement(
|
|
8816
8817
|
'div',
|
|
8817
8818
|
{ className: 'article-publishDate' },
|
|
8818
8819
|
moment(article.published).format('LL')
|
|
8819
8820
|
),
|
|
8820
|
-
|
|
8821
|
+
React.createElement(
|
|
8821
8822
|
'div',
|
|
8822
8823
|
{ className: 'author-details-wrapper' },
|
|
8823
8824
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8824
|
-
return
|
|
8825
|
+
return React.createElement(
|
|
8825
8826
|
'span',
|
|
8826
8827
|
{ key: index },
|
|
8827
8828
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8828
8829
|
);
|
|
8829
8830
|
})
|
|
8830
8831
|
),
|
|
8831
|
-
|
|
8832
|
+
React.createElement(
|
|
8832
8833
|
'h2',
|
|
8833
8834
|
{ className: 'article-title' },
|
|
8834
8835
|
article.title
|
|
8835
8836
|
),
|
|
8836
|
-
|
|
8837
|
+
React.createElement(
|
|
8837
8838
|
'div',
|
|
8838
8839
|
{ className: 'mt-2 mb-2' },
|
|
8839
|
-
|
|
8840
|
+
React.createElement(BlockContent, _extends({
|
|
8840
8841
|
serializers: getSerializers,
|
|
8841
8842
|
videoAccountIDs: accountIDs,
|
|
8842
8843
|
blocks: article.text,
|
|
8843
8844
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8844
8845
|
}, client.config())),
|
|
8845
|
-
|
|
8846
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8846
8847
|
),
|
|
8847
|
-
Articles.length > 1 &&
|
|
8848
|
-
|
|
8848
|
+
Articles.length > 1 && React.createElement(
|
|
8849
|
+
React.Fragment,
|
|
8849
8850
|
null,
|
|
8850
|
-
|
|
8851
|
+
React.createElement(
|
|
8851
8852
|
'div',
|
|
8852
8853
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8853
|
-
|
|
8854
|
+
React.createElement(
|
|
8854
8855
|
'h5',
|
|
8855
8856
|
{ className: 'objective-title' },
|
|
8856
8857
|
nodes.seriesTitle
|
|
8857
8858
|
),
|
|
8858
|
-
|
|
8859
|
+
React.createElement(
|
|
8859
8860
|
'div',
|
|
8860
8861
|
{ className: 'prevNextWrapper' },
|
|
8861
8862
|
PrevNextCards(true, index)
|
|
8862
8863
|
)
|
|
8863
8864
|
),
|
|
8864
|
-
|
|
8865
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8865
8866
|
)
|
|
8866
8867
|
),
|
|
8867
|
-
|
|
8868
|
+
React.createElement(
|
|
8868
8869
|
'div',
|
|
8869
8870
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8870
|
-
|
|
8871
|
+
main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8871
8872
|
if (innerIndex === 0) {
|
|
8872
|
-
return
|
|
8873
|
+
return React.createElement(
|
|
8873
8874
|
'div',
|
|
8874
8875
|
{
|
|
8875
8876
|
key: 'addid-' + (index + 2),
|
|
@@ -8892,7 +8893,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8892
8893
|
)
|
|
8893
8894
|
);
|
|
8894
8895
|
}),
|
|
8895
|
-
|
|
8896
|
+
React.createElement(
|
|
8896
8897
|
'style',
|
|
8897
8898
|
{ jsx: 'true' },
|
|
8898
8899
|
'\n .scrollToTopArrow {\n position: fixed;\n top: 150px;\n display: flex;\n justify-content: center;\n width: ' + contentWidth + 'px;\n opacity: 1;\n z-index: 99999999999;\n visibility: hidden;\n }\n .scrollToTopArrow > svg {\n min-height: 50px;\n min-width: 50px;\n max-height: 50px;\n max-width: 50px;\n }\n .block-content > div p {\n padding: 0;\n }\n\n h2.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.prevNext-title {\n padding: 0;\n font-size: 1rem;\n font-weight: 500;\n }\n .article-wrapper {\n border: 1px solid #252525;\n border-radius: 5px;\n padding: 1rem 1rem 0 1rem;\n margin-bottom: 1rem;\n }\n .prevNext-reading {\n margin-top: -10px;\n width: 75%;\n text-align: center;\n background: white;\n border: 1px solid #252525;\n align-self: center;\n display: none;\n }\n .showReading {\n display: block;\n }\n .author-details-wrapper a {\n color: #252525;\n }\n .objective-prevNext-Wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .objective-title {\n padding: 0 !important;\n }\n .prevNext-thumbnail {\n display: flex;\n flex-direction: column;\n min-width: 225px;\n max-width: 225px;\n overflow: hidden;\n align-items: center;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-thumbnail img {\n height: 125px;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-summary {\n text-align: center;\n }\n .prevNext-publishDate {\n font-size: 0.75rem;\n margin-top: 0.5rem;\n }\n .prevNext-title {\n padding: 0 !important;\n line-height: 1 !important;\n font-weight: 500;\n }\n .prevNextWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n flex-wrap: wrap;\n }\n .prevNextWrapper a {\n display: flex;\n flex-direction: column;\n color: #252525;\n align-items: center;\n }\n .prevNextCards {\n max-width: 250px;\n margin-bottom: 1rem;\n }\n @media only screen and (max-width: 568px) {\n .prevNextWrapper {\n flex-direction: column;\n align-items: center;\n }\n .prevNextCards {\n margin-bottom: 2rem;\n }\n }\n @media only screen and (max-width: 568px) {\n }\n '
|
|
@@ -8922,11 +8923,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8922
8923
|
};
|
|
8923
8924
|
}, [handleClickOutside]);
|
|
8924
8925
|
|
|
8925
|
-
return
|
|
8926
|
+
return React.createElement(
|
|
8926
8927
|
'div',
|
|
8927
8928
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8928
|
-
|
|
8929
|
-
|
|
8929
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8930
|
+
React.createElement(
|
|
8930
8931
|
'style',
|
|
8931
8932
|
{ jsx: 'true' },
|
|
8932
8933
|
'\n /*Eliminates padding, centers the thumbnail */\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -8940,7 +8941,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8940
8941
|
}
|
|
8941
8942
|
};
|
|
8942
8943
|
|
|
8943
|
-
var FigureImage
|
|
8944
|
+
var FigureImage = React.memo(function (_ref2) {
|
|
8944
8945
|
var node = _ref2.node,
|
|
8945
8946
|
client = _ref2.client,
|
|
8946
8947
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8948,13 +8949,13 @@ var FigureImage$1 = React__default.memo(function (_ref2) {
|
|
|
8948
8949
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8949
8950
|
|
|
8950
8951
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8951
|
-
return
|
|
8952
|
+
return React.createElement(
|
|
8952
8953
|
'picture',
|
|
8953
8954
|
null,
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8955
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8956
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8957
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8958
|
+
React.createElement('img', _extends({
|
|
8958
8959
|
style: figureImageStyle,
|
|
8959
8960
|
className: 'figure-image',
|
|
8960
8961
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9005,30 +9006,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9005
9006
|
|
|
9006
9007
|
var renderTooltip = function renderTooltip(props) {
|
|
9007
9008
|
if (infoBox[0].title) {
|
|
9008
|
-
return
|
|
9009
|
+
return React.createElement(
|
|
9009
9010
|
Popover,
|
|
9010
9011
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9011
|
-
|
|
9012
|
+
React.createElement(
|
|
9012
9013
|
Popover.Title,
|
|
9013
9014
|
{ as: 'h3' },
|
|
9014
9015
|
infoBox[0].title
|
|
9015
9016
|
),
|
|
9016
|
-
|
|
9017
|
+
React.createElement(
|
|
9017
9018
|
Popover.Content,
|
|
9018
9019
|
null,
|
|
9019
|
-
|
|
9020
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9020
9021
|
)
|
|
9021
9022
|
);
|
|
9022
9023
|
} else {
|
|
9023
|
-
return
|
|
9024
|
+
return React.createElement(
|
|
9024
9025
|
Tooltip,
|
|
9025
9026
|
_extends({ id: 'button-tooltip' }, props),
|
|
9026
|
-
|
|
9027
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9027
9028
|
);
|
|
9028
9029
|
}
|
|
9029
9030
|
};
|
|
9030
9031
|
|
|
9031
|
-
var FigureImageWOverLay =
|
|
9032
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9032
9033
|
var node = _ref3.node,
|
|
9033
9034
|
client = _ref3.client,
|
|
9034
9035
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9036,32 +9037,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9036
9037
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9037
9038
|
|
|
9038
9039
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9039
|
-
var triggerAction =
|
|
9040
|
-
var placementLocation =
|
|
9041
|
-
return
|
|
9040
|
+
var triggerAction = main_39 ? 'click' : 'hover';
|
|
9041
|
+
var placementLocation = main_39 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9042
|
+
return React.createElement(
|
|
9042
9043
|
'picture',
|
|
9043
9044
|
null,
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9045
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9046
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9047
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9048
|
+
main_39 && link ? React.createElement('img', _extends({
|
|
9048
9049
|
style: figureImageStyle,
|
|
9049
9050
|
className: 'figure-image',
|
|
9050
9051
|
src: urlFor({ source: node, client: client }),
|
|
9051
9052
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9052
|
-
}, !link && !
|
|
9053
|
+
}, !link && !main_39 && {
|
|
9053
9054
|
onClick: function onClick() {
|
|
9054
9055
|
return handleClickFigure(node, client);
|
|
9055
9056
|
}
|
|
9056
|
-
})) :
|
|
9057
|
+
})) : React.createElement(
|
|
9057
9058
|
OverlayTrigger,
|
|
9058
9059
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9059
|
-
|
|
9060
|
+
React.createElement('img', _extends({
|
|
9060
9061
|
style: figureImageStyle,
|
|
9061
9062
|
className: 'figure-image',
|
|
9062
9063
|
src: urlFor({ source: node, client: client }),
|
|
9063
9064
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9064
|
-
}, !link && !
|
|
9065
|
+
}, !link && !main_39 && {
|
|
9065
9066
|
onClick: function onClick() {
|
|
9066
9067
|
return handleClickFigure(node, client);
|
|
9067
9068
|
}
|
|
@@ -9110,13 +9111,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9110
9111
|
|
|
9111
9112
|
var FigureCaption = useCallback(function () {
|
|
9112
9113
|
if (imgcaption && imgcaption.length > 0) {
|
|
9113
|
-
return
|
|
9114
|
+
return React.createElement(
|
|
9114
9115
|
'div',
|
|
9115
9116
|
{ className: 'figure-caption' },
|
|
9116
|
-
|
|
9117
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9117
9118
|
);
|
|
9118
9119
|
} else if (caption) {
|
|
9119
|
-
return
|
|
9120
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9120
9121
|
} else return null;
|
|
9121
9122
|
}, [caption, imgcaption]);
|
|
9122
9123
|
|
|
@@ -9133,24 +9134,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9133
9134
|
setShowLightbox(true);
|
|
9134
9135
|
}, [node, client]);
|
|
9135
9136
|
|
|
9136
|
-
return
|
|
9137
|
-
|
|
9137
|
+
return React.createElement(
|
|
9138
|
+
React.Fragment,
|
|
9138
9139
|
null,
|
|
9139
|
-
infoBox.length >= 1 ?
|
|
9140
|
+
infoBox.length >= 1 ? React.createElement(
|
|
9140
9141
|
Figure$2,
|
|
9141
9142
|
{ className: '' + class_name, style: figureStyle },
|
|
9142
|
-
link ?
|
|
9143
|
+
link ? React.createElement(
|
|
9143
9144
|
'a',
|
|
9144
9145
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
) :
|
|
9148
|
-
|
|
9146
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9147
|
+
React.createElement(FigureCaption, null)
|
|
9148
|
+
) : React.createElement(
|
|
9149
|
+
React.Fragment,
|
|
9149
9150
|
null,
|
|
9150
|
-
|
|
9151
|
-
|
|
9151
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9152
|
+
React.createElement(FigureCaption, null)
|
|
9152
9153
|
),
|
|
9153
|
-
|
|
9154
|
+
React.createElement(LightBox, {
|
|
9154
9155
|
showLightbox: showLightbox,
|
|
9155
9156
|
lightboxImgSrc: lightboxImgSrc,
|
|
9156
9157
|
closeLightbox: function closeLightbox() {
|
|
@@ -9158,21 +9159,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9158
9159
|
setShowLightbox(false);
|
|
9159
9160
|
}
|
|
9160
9161
|
})
|
|
9161
|
-
) :
|
|
9162
|
+
) : React.createElement(
|
|
9162
9163
|
Figure$2,
|
|
9163
9164
|
{ className: '' + class_name, style: figureStyle },
|
|
9164
|
-
link ?
|
|
9165
|
+
link ? React.createElement(
|
|
9165
9166
|
'a',
|
|
9166
9167
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
) :
|
|
9170
|
-
|
|
9168
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9169
|
+
React.createElement(FigureCaption, null)
|
|
9170
|
+
) : React.createElement(
|
|
9171
|
+
React.Fragment,
|
|
9171
9172
|
null,
|
|
9172
|
-
|
|
9173
|
-
|
|
9173
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9174
|
+
React.createElement(FigureCaption, null)
|
|
9174
9175
|
),
|
|
9175
|
-
|
|
9176
|
+
React.createElement(LightBox, {
|
|
9176
9177
|
showLightbox: showLightbox,
|
|
9177
9178
|
lightboxImgSrc: lightboxImgSrc,
|
|
9178
9179
|
closeLightbox: function closeLightbox() {
|
|
@@ -9181,7 +9182,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9181
9182
|
}
|
|
9182
9183
|
})
|
|
9183
9184
|
),
|
|
9184
|
-
|
|
9185
|
+
React.createElement(
|
|
9185
9186
|
'style',
|
|
9186
9187
|
{ jsx: 'true' },
|
|
9187
9188
|
'\n .figure-caption,\n .figure-caption h1,\n .figure-caption h2,\n .figure-caption h3,\n .figure-caption h4,\n .figure-caption h5,\n .figure-caption h6,\n .figure-caption p,\n .figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n '
|
|
@@ -9189,7 +9190,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9189
9190
|
);
|
|
9190
9191
|
};
|
|
9191
9192
|
|
|
9192
|
-
var Figure =
|
|
9193
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9193
9194
|
|
|
9194
9195
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9195
9196
|
useEffect(function () {
|
|
@@ -9206,7 +9207,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9206
9207
|
}, [ref]);
|
|
9207
9208
|
}
|
|
9208
9209
|
|
|
9209
|
-
var FigureImage =
|
|
9210
|
+
var FigureImage$1 = React.memo(function (_ref) {
|
|
9210
9211
|
var imagesCount = _ref.imagesCount,
|
|
9211
9212
|
image = _ref.image,
|
|
9212
9213
|
client = _ref.client,
|
|
@@ -9214,13 +9215,13 @@ var FigureImage = React__default.memo(function (_ref) {
|
|
|
9214
9215
|
link = _ref.link,
|
|
9215
9216
|
handleClickFigure = _ref.handleClickFigure;
|
|
9216
9217
|
|
|
9217
|
-
return
|
|
9218
|
+
return React.createElement(
|
|
9218
9219
|
'picture',
|
|
9219
9220
|
null,
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9221
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9222
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9223
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9224
|
+
React.createElement('img', _extends({
|
|
9224
9225
|
'images-count': imagesCount,
|
|
9225
9226
|
className: 'multi-figure-image',
|
|
9226
9227
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9257,13 +9258,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9257
9258
|
imgcaption = _ref2.imgcaption;
|
|
9258
9259
|
|
|
9259
9260
|
if (imgcaption && imgcaption.length > 0) {
|
|
9260
|
-
return
|
|
9261
|
+
return React.createElement(
|
|
9261
9262
|
'div',
|
|
9262
9263
|
{ className: 'multi-figure-caption' },
|
|
9263
|
-
|
|
9264
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9264
9265
|
);
|
|
9265
9266
|
} else if (caption) {
|
|
9266
|
-
return
|
|
9267
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9267
9268
|
} else return null;
|
|
9268
9269
|
};
|
|
9269
9270
|
|
|
@@ -9272,7 +9273,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9272
9273
|
setOpenImg(true);
|
|
9273
9274
|
}, [client]);
|
|
9274
9275
|
|
|
9275
|
-
var FigureImageWOverLay =
|
|
9276
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9276
9277
|
var imagesCount = _ref3.imagesCount,
|
|
9277
9278
|
image = _ref3.image,
|
|
9278
9279
|
client = _ref3.client,
|
|
@@ -9280,32 +9281,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9280
9281
|
link = _ref3.link,
|
|
9281
9282
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9282
9283
|
|
|
9283
|
-
var triggerAction =
|
|
9284
|
-
var placementLocation =
|
|
9285
|
-
return
|
|
9284
|
+
var triggerAction = main_39 ? 'click' : 'hover';
|
|
9285
|
+
var placementLocation = main_39 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9286
|
+
return React.createElement(
|
|
9286
9287
|
'picture',
|
|
9287
9288
|
null,
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
|
|
9291
|
-
|
|
9289
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9290
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9291
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9292
|
+
main_39 && link ? React.createElement('img', _extends({
|
|
9292
9293
|
'images-count': imagesCount,
|
|
9293
9294
|
className: 'multi-figure-image',
|
|
9294
9295
|
src: urlFor({ source: image, client: client }),
|
|
9295
9296
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9296
|
-
}, !link && !
|
|
9297
|
+
}, !link && !main_39 && {
|
|
9297
9298
|
onClick: function onClick() {
|
|
9298
9299
|
return handleClickFigure(image, client);
|
|
9299
9300
|
}
|
|
9300
|
-
})) :
|
|
9301
|
+
})) : React.createElement(
|
|
9301
9302
|
OverlayTrigger,
|
|
9302
9303
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9303
|
-
|
|
9304
|
+
React.createElement('img', _extends({
|
|
9304
9305
|
'images-count': imagesCount,
|
|
9305
9306
|
className: 'multi-figure-image',
|
|
9306
9307
|
src: urlFor({ source: image, client: client }),
|
|
9307
9308
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9308
|
-
}, !link && !
|
|
9309
|
+
}, !link && !main_39 && {
|
|
9309
9310
|
onClick: function onClick() {
|
|
9310
9311
|
return handleClickFigure(image, client);
|
|
9311
9312
|
}
|
|
@@ -9316,102 +9317,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9316
9317
|
|
|
9317
9318
|
var renderTooltip = function renderTooltip(image) {
|
|
9318
9319
|
if (image.infoBox[0].title) {
|
|
9319
|
-
return
|
|
9320
|
+
return React.createElement(
|
|
9320
9321
|
Popover,
|
|
9321
9322
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9322
|
-
|
|
9323
|
+
React.createElement(
|
|
9323
9324
|
Popover.Title,
|
|
9324
9325
|
{ as: 'h3' },
|
|
9325
9326
|
image.infoBox[0].title
|
|
9326
9327
|
),
|
|
9327
|
-
|
|
9328
|
+
React.createElement(
|
|
9328
9329
|
Popover.Content,
|
|
9329
9330
|
null,
|
|
9330
|
-
|
|
9331
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9331
9332
|
)
|
|
9332
9333
|
);
|
|
9333
9334
|
} else {
|
|
9334
|
-
return
|
|
9335
|
+
return React.createElement(
|
|
9335
9336
|
Tooltip,
|
|
9336
9337
|
_extends({ id: 'button-tooltip' }, props),
|
|
9337
|
-
|
|
9338
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9338
9339
|
);
|
|
9339
9340
|
}
|
|
9340
9341
|
};
|
|
9341
9342
|
|
|
9342
9343
|
if (images && images.length > 0) {
|
|
9343
|
-
return
|
|
9344
|
+
return React.createElement(
|
|
9344
9345
|
'div',
|
|
9345
9346
|
{ className: 'multi-figure-container' },
|
|
9346
|
-
|
|
9347
|
+
React.createElement(
|
|
9347
9348
|
Row$1,
|
|
9348
9349
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9349
9350
|
images.map(function (image, index) {
|
|
9350
9351
|
if (image.infoBox) {
|
|
9351
|
-
return
|
|
9352
|
+
return React.createElement(
|
|
9352
9353
|
Col$1,
|
|
9353
9354
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9354
|
-
image.link ?
|
|
9355
|
+
image.link ? React.createElement(
|
|
9355
9356
|
'a',
|
|
9356
9357
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9357
|
-
|
|
9358
|
+
React.createElement(
|
|
9358
9359
|
'div',
|
|
9359
9360
|
{ className: 'multi-figure-image-container' },
|
|
9360
|
-
|
|
9361
|
+
React.createElement(
|
|
9361
9362
|
LazyLoad,
|
|
9362
9363
|
{ once: true },
|
|
9363
|
-
|
|
9364
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9364
9365
|
),
|
|
9365
|
-
|
|
9366
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9366
9367
|
)
|
|
9367
|
-
) :
|
|
9368
|
+
) : React.createElement(
|
|
9368
9369
|
'div',
|
|
9369
9370
|
{ className: 'multi-figure-image-container' },
|
|
9370
|
-
|
|
9371
|
+
React.createElement(
|
|
9371
9372
|
LazyLoad,
|
|
9372
9373
|
{ once: true },
|
|
9373
|
-
|
|
9374
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9374
9375
|
),
|
|
9375
|
-
|
|
9376
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9376
9377
|
)
|
|
9377
9378
|
);
|
|
9378
9379
|
} else {
|
|
9379
|
-
return
|
|
9380
|
+
return React.createElement(
|
|
9380
9381
|
Col$1,
|
|
9381
9382
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9382
|
-
image.link ?
|
|
9383
|
+
image.link ? React.createElement(
|
|
9383
9384
|
'a',
|
|
9384
9385
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9385
|
-
|
|
9386
|
+
React.createElement(
|
|
9386
9387
|
'div',
|
|
9387
9388
|
{ className: 'multi-figure-image-container' },
|
|
9388
|
-
|
|
9389
|
+
React.createElement(
|
|
9389
9390
|
LazyLoad,
|
|
9390
9391
|
{ once: true },
|
|
9391
|
-
|
|
9392
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9392
9393
|
),
|
|
9393
|
-
|
|
9394
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9394
9395
|
)
|
|
9395
|
-
) :
|
|
9396
|
+
) : React.createElement(
|
|
9396
9397
|
'div',
|
|
9397
9398
|
{ className: 'multi-figure-image-container' },
|
|
9398
|
-
|
|
9399
|
+
React.createElement(
|
|
9399
9400
|
LazyLoad,
|
|
9400
9401
|
{ once: true },
|
|
9401
|
-
|
|
9402
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9402
9403
|
),
|
|
9403
|
-
|
|
9404
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9404
9405
|
)
|
|
9405
9406
|
);
|
|
9406
9407
|
}
|
|
9407
9408
|
})
|
|
9408
9409
|
),
|
|
9409
|
-
|
|
9410
|
+
React.createElement(
|
|
9410
9411
|
'div',
|
|
9411
9412
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9412
|
-
|
|
9413
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9413
9414
|
),
|
|
9414
|
-
|
|
9415
|
+
React.createElement(
|
|
9415
9416
|
'style',
|
|
9416
9417
|
{ jsx: 'true' },
|
|
9417
9418
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n cursor: pointer;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9460,23 +9461,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9460
9461
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9461
9462
|
}, []);
|
|
9462
9463
|
|
|
9463
|
-
return
|
|
9464
|
-
|
|
9464
|
+
return React.createElement(
|
|
9465
|
+
React.Fragment,
|
|
9465
9466
|
null,
|
|
9466
|
-
|
|
9467
|
+
React.createElement(
|
|
9467
9468
|
Head,
|
|
9468
9469
|
null,
|
|
9469
|
-
|
|
9470
|
+
React.createElement('script', {
|
|
9470
9471
|
dangerouslySetInnerHTML: {
|
|
9471
9472
|
__html: 'history.scrollRestoration = "manual"'
|
|
9472
9473
|
}
|
|
9473
9474
|
})
|
|
9474
9475
|
),
|
|
9475
|
-
|
|
9476
|
+
React.createElement(
|
|
9476
9477
|
'div',
|
|
9477
9478
|
{ id: elementId },
|
|
9478
|
-
|
|
9479
|
-
|
|
9479
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9480
|
+
React.createElement(
|
|
9480
9481
|
'style',
|
|
9481
9482
|
{ jsx: 'true' },
|
|
9482
9483
|
'\n #' + elementId + '::before {\n display: block;\n content: \' \';\n margin-top: -' + (offsetHeight + offsetHeightBuffer) + 'px;\n height: ' + (offsetHeight + offsetHeightBuffer) + 'px;\n visibility: hidden;\n pointer-events: none;\n }\n '
|
|
@@ -9530,7 +9531,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9530
9531
|
|
|
9531
9532
|
|
|
9532
9533
|
|
|
9533
|
-
var _react2 = _interopRequireDefault(
|
|
9534
|
+
var _react2 = _interopRequireDefault(React);
|
|
9534
9535
|
|
|
9535
9536
|
|
|
9536
9537
|
|
|
@@ -9679,9 +9680,9 @@ var ScriptTag = function (_Component) {
|
|
|
9679
9680
|
|
|
9680
9681
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9681
9682
|
// eslint-disable-next-line no-unused-vars
|
|
9682
|
-
var _props3 = this.props
|
|
9683
|
-
_props3.isHydrating
|
|
9684
|
-
|
|
9683
|
+
var _props3 = this.props,
|
|
9684
|
+
isHydrating = _props3.isHydrating,
|
|
9685
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9685
9686
|
|
|
9686
9687
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9687
9688
|
return _this2.domRef = tag;
|
|
@@ -9689,7 +9690,7 @@ var ScriptTag = function (_Component) {
|
|
|
9689
9690
|
};
|
|
9690
9691
|
|
|
9691
9692
|
return ScriptTag;
|
|
9692
|
-
}(
|
|
9693
|
+
}(React.Component);
|
|
9693
9694
|
|
|
9694
9695
|
ScriptTag.propTypes = {
|
|
9695
9696
|
/**
|
|
@@ -9768,11 +9769,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9768
9769
|
}, []);
|
|
9769
9770
|
|
|
9770
9771
|
if (iframeSrc) {
|
|
9771
|
-
return
|
|
9772
|
+
return React.createElement(
|
|
9772
9773
|
'section',
|
|
9773
9774
|
{ className: 'form-assembly' },
|
|
9774
|
-
|
|
9775
|
-
|
|
9775
|
+
React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9776
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9776
9777
|
);
|
|
9777
9778
|
}
|
|
9778
9779
|
|
|
@@ -9809,27 +9810,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9809
9810
|
return window.removeEventListener('resize', handleResize);
|
|
9810
9811
|
};
|
|
9811
9812
|
}, []);
|
|
9812
|
-
return
|
|
9813
|
+
return React.createElement(
|
|
9813
9814
|
'div',
|
|
9814
9815
|
{ className: 'blockTableHolder', ref: holder },
|
|
9815
|
-
|
|
9816
|
+
React.createElement(
|
|
9816
9817
|
'div',
|
|
9817
9818
|
{ className: 'blockTable' },
|
|
9818
9819
|
rows && rows.map(function (row) {
|
|
9819
|
-
return
|
|
9820
|
+
return React.createElement(
|
|
9820
9821
|
'div',
|
|
9821
9822
|
{ className: 'blockTableRow' },
|
|
9822
9823
|
row.cells && row.cells.map(function (cell) {
|
|
9823
|
-
return
|
|
9824
|
+
return React.createElement(
|
|
9824
9825
|
'div',
|
|
9825
9826
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9826
|
-
|
|
9827
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9827
9828
|
);
|
|
9828
9829
|
})
|
|
9829
9830
|
);
|
|
9830
9831
|
})
|
|
9831
9832
|
),
|
|
9832
|
-
|
|
9833
|
+
React.createElement(
|
|
9833
9834
|
'style',
|
|
9834
9835
|
{ jsx: true },
|
|
9835
9836
|
'\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 '
|
|
@@ -9908,12 +9909,12 @@ var getSerializers = function getSerializers() {
|
|
|
9908
9909
|
var node = _ref.node;
|
|
9909
9910
|
var url = node.url;
|
|
9910
9911
|
|
|
9911
|
-
return
|
|
9912
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9912
9913
|
},
|
|
9913
9914
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9914
9915
|
var node = _ref2.node;
|
|
9915
9916
|
|
|
9916
|
-
return
|
|
9917
|
+
return React.createElement(YouTubeGallery, {
|
|
9917
9918
|
nodes: node,
|
|
9918
9919
|
article: article,
|
|
9919
9920
|
meta: meta,
|
|
@@ -9927,7 +9928,7 @@ var getSerializers = function getSerializers() {
|
|
|
9927
9928
|
articleSeries: function articleSeries(_ref3) {
|
|
9928
9929
|
var node = _ref3.node;
|
|
9929
9930
|
|
|
9930
|
-
return
|
|
9931
|
+
return React.createElement(ArticleSeries, {
|
|
9931
9932
|
nodes: node,
|
|
9932
9933
|
accountIDs: videoAccountIDs || {},
|
|
9933
9934
|
pageview: pageview,
|
|
@@ -9940,61 +9941,61 @@ var getSerializers = function getSerializers() {
|
|
|
9940
9941
|
figure: function figure(_ref4) {
|
|
9941
9942
|
var node = _ref4.node;
|
|
9942
9943
|
|
|
9943
|
-
return
|
|
9944
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9944
9945
|
},
|
|
9945
9946
|
multifigure: function multifigure(_ref5) {
|
|
9946
9947
|
var node = _ref5.node;
|
|
9947
9948
|
|
|
9948
|
-
return
|
|
9949
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9949
9950
|
},
|
|
9950
9951
|
slideshow: function slideshow(_ref6) {
|
|
9951
9952
|
var node = _ref6.node;
|
|
9952
9953
|
var slides = node.slides;
|
|
9953
9954
|
|
|
9954
|
-
return
|
|
9955
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9955
9956
|
},
|
|
9956
9957
|
sidebar: function sidebar(_ref7) {
|
|
9957
9958
|
var node = _ref7.node;
|
|
9958
9959
|
var caption = node.caption,
|
|
9959
9960
|
content = node.content;
|
|
9960
9961
|
|
|
9961
|
-
return
|
|
9962
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9962
9963
|
},
|
|
9963
9964
|
datatable: function datatable(_ref8) {
|
|
9964
9965
|
var node = _ref8.node;
|
|
9965
9966
|
var table = node.table;
|
|
9966
9967
|
|
|
9967
|
-
return
|
|
9968
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9968
9969
|
},
|
|
9969
9970
|
media: function media(_ref9) {
|
|
9970
9971
|
var node = _ref9.node;
|
|
9971
9972
|
|
|
9972
|
-
return
|
|
9973
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9973
9974
|
},
|
|
9974
9975
|
iframe: function iframe(_ref10) {
|
|
9975
9976
|
var node = _ref10.node;
|
|
9976
9977
|
|
|
9977
|
-
return
|
|
9978
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9978
9979
|
},
|
|
9979
9980
|
video: function video(_ref11) {
|
|
9980
9981
|
var node = _ref11.node;
|
|
9981
9982
|
|
|
9982
|
-
return
|
|
9983
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9983
9984
|
},
|
|
9984
9985
|
audio: function audio(_ref12) {
|
|
9985
9986
|
var node = _ref12.node;
|
|
9986
9987
|
|
|
9987
|
-
return
|
|
9988
|
+
return React.createElement(Audio, { node: node });
|
|
9988
9989
|
},
|
|
9989
9990
|
poll: function poll(_ref13) {
|
|
9990
9991
|
var node = _ref13.node;
|
|
9991
9992
|
|
|
9992
|
-
return
|
|
9993
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9993
9994
|
},
|
|
9994
9995
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9995
9996
|
var node = _ref14.node;
|
|
9996
9997
|
|
|
9997
|
-
return
|
|
9998
|
+
return React.createElement(Poll$1, {
|
|
9998
9999
|
node: node,
|
|
9999
10000
|
client: client,
|
|
10000
10001
|
pageview: pageview,
|
|
@@ -10008,35 +10009,35 @@ var getSerializers = function getSerializers() {
|
|
|
10008
10009
|
var node = _ref15.node;
|
|
10009
10010
|
var quizzes = node.quizzes;
|
|
10010
10011
|
|
|
10011
|
-
return
|
|
10012
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
10012
10013
|
},
|
|
10013
10014
|
leads: function leads(_ref16) {
|
|
10014
10015
|
var node = _ref16.node;
|
|
10015
10016
|
var leadID = node.leadID;
|
|
10016
10017
|
|
|
10017
10018
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10018
|
-
return
|
|
10019
|
+
return React.createElement(Leads, { url: url });
|
|
10019
10020
|
},
|
|
10020
10021
|
slideshows: function slideshows(_ref17) {
|
|
10021
10022
|
var node = _ref17.node;
|
|
10022
10023
|
|
|
10023
|
-
return
|
|
10024
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
10024
10025
|
},
|
|
10025
10026
|
nativeAd: function nativeAd(_ref18) {
|
|
10026
10027
|
var node = _ref18.node;
|
|
10027
10028
|
|
|
10028
|
-
return
|
|
10029
|
+
return React.createElement(NativeAd, { node: node });
|
|
10029
10030
|
},
|
|
10030
10031
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10031
10032
|
var node = _ref19.node;
|
|
10032
10033
|
|
|
10033
|
-
return
|
|
10034
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10034
10035
|
},
|
|
10035
10036
|
hrtag: function hrtag() {
|
|
10036
|
-
return
|
|
10037
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10037
10038
|
},
|
|
10038
10039
|
brtag: function brtag() {
|
|
10039
|
-
return
|
|
10040
|
+
return React.createElement('br', { className: 'line-break' });
|
|
10040
10041
|
},
|
|
10041
10042
|
formstack: function formstack(_ref20) {
|
|
10042
10043
|
var node = _ref20.node;
|
|
@@ -10044,29 +10045,29 @@ var getSerializers = function getSerializers() {
|
|
|
10044
10045
|
Caption = node.Caption,
|
|
10045
10046
|
needSegmentSupport = node.needSegmentSupport;
|
|
10046
10047
|
|
|
10047
|
-
return
|
|
10048
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10048
10049
|
},
|
|
10049
10050
|
formassembly: FormAssembly,
|
|
10050
10051
|
multimedia: function multimedia(_ref21) {
|
|
10051
10052
|
var node = _ref21.node;
|
|
10052
10053
|
|
|
10053
|
-
return
|
|
10054
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
10054
10055
|
},
|
|
10055
10056
|
blockTable: function blockTable(_ref22) {
|
|
10056
10057
|
var node = _ref22.node;
|
|
10057
|
-
return
|
|
10058
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10058
10059
|
}
|
|
10059
10060
|
},
|
|
10060
10061
|
marks: {
|
|
10061
10062
|
superscript: function superscript(props) {
|
|
10062
|
-
return
|
|
10063
|
+
return React.createElement(
|
|
10063
10064
|
'sup',
|
|
10064
10065
|
null,
|
|
10065
10066
|
props.children
|
|
10066
10067
|
);
|
|
10067
10068
|
},
|
|
10068
10069
|
subscript: function subscript(props) {
|
|
10069
|
-
return
|
|
10070
|
+
return React.createElement(
|
|
10070
10071
|
'sub',
|
|
10071
10072
|
null,
|
|
10072
10073
|
props.children
|
|
@@ -10083,7 +10084,7 @@ var getSerializers = function getSerializers() {
|
|
|
10083
10084
|
if (href && href.charAt(0) === '#') {
|
|
10084
10085
|
var elementId = href.slice(1);
|
|
10085
10086
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10086
|
-
return
|
|
10087
|
+
return React.createElement(
|
|
10087
10088
|
'a',
|
|
10088
10089
|
{ onClick: function onClick() {
|
|
10089
10090
|
return ScrollToElement(elementId);
|
|
@@ -10093,7 +10094,7 @@ var getSerializers = function getSerializers() {
|
|
|
10093
10094
|
}
|
|
10094
10095
|
|
|
10095
10096
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10096
|
-
return href ?
|
|
10097
|
+
return href ? React.createElement(
|
|
10097
10098
|
'a',
|
|
10098
10099
|
_extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10099
10100
|
children
|
|
@@ -10101,7 +10102,7 @@ var getSerializers = function getSerializers() {
|
|
|
10101
10102
|
},
|
|
10102
10103
|
alignleft: function alignleft(_ref23) {
|
|
10103
10104
|
var children = _ref23.children;
|
|
10104
|
-
return
|
|
10105
|
+
return React.createElement(
|
|
10105
10106
|
'div',
|
|
10106
10107
|
{ style: { textAlign: 'left' } },
|
|
10107
10108
|
children
|
|
@@ -10109,7 +10110,7 @@ var getSerializers = function getSerializers() {
|
|
|
10109
10110
|
},
|
|
10110
10111
|
alignright: function alignright(_ref24) {
|
|
10111
10112
|
var children = _ref24.children;
|
|
10112
|
-
return
|
|
10113
|
+
return React.createElement(
|
|
10113
10114
|
'div',
|
|
10114
10115
|
{ style: { textAlign: 'right' } },
|
|
10115
10116
|
children
|
|
@@ -10117,7 +10118,7 @@ var getSerializers = function getSerializers() {
|
|
|
10117
10118
|
},
|
|
10118
10119
|
aligncenter: function aligncenter(_ref25) {
|
|
10119
10120
|
var children = _ref25.children;
|
|
10120
|
-
return
|
|
10121
|
+
return React.createElement(
|
|
10121
10122
|
'div',
|
|
10122
10123
|
{ style: { textAlign: 'center' } },
|
|
10123
10124
|
children
|
|
@@ -10125,7 +10126,7 @@ var getSerializers = function getSerializers() {
|
|
|
10125
10126
|
},
|
|
10126
10127
|
alignjustify: function alignjustify(_ref26) {
|
|
10127
10128
|
var children = _ref26.children;
|
|
10128
|
-
return
|
|
10129
|
+
return React.createElement(
|
|
10129
10130
|
'div',
|
|
10130
10131
|
{ style: { textAlign: 'justify' } },
|
|
10131
10132
|
children
|
|
@@ -10135,7 +10136,7 @@ var getSerializers = function getSerializers() {
|
|
|
10135
10136
|
var children = props.children,
|
|
10136
10137
|
color = props.mark.color;
|
|
10137
10138
|
|
|
10138
|
-
return
|
|
10139
|
+
return React.createElement(
|
|
10139
10140
|
'span',
|
|
10140
10141
|
{ style: { color: color ? color.hex : null } },
|
|
10141
10142
|
children
|