@mjhls/mjh-framework 1.0.881-ios0fixv2 → 1.0.882
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 +9 -10
- package/dist/cjs/AD300x250.js +27 -28
- package/dist/cjs/AD300x250x600.js +27 -28
- package/dist/cjs/AD728x90.js +30 -31
- package/dist/cjs/ADFloatingFooter.js +30 -31
- package/dist/cjs/ADFooter.js +12 -13
- package/dist/cjs/ADGutter.js +30 -31
- package/dist/cjs/{ADInfeed-bce0ba07.js → ADInfeed-4f661172.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +30 -31
- package/dist/cjs/ADSponsoredResources.js +30 -31
- package/dist/cjs/ADWebcast.js +30 -31
- package/dist/cjs/ADWelcome.js +31 -32
- package/dist/cjs/{ADlgInfeed-950b414b.js → ADlgInfeed-6242e5b5.js} +10 -11
- package/dist/cjs/AccordionPanel.js +27 -29
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +15 -17
- package/dist/cjs/AlgoliaSearch.js +1103 -1160
- package/dist/cjs/AlphabeticList.js +23 -24
- package/dist/cjs/ArticleCarousel.js +19 -20
- package/dist/cjs/ArticleProgramLandingPage.js +60 -61
- package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
- package/dist/cjs/ArticleSeriesListing.js +59 -60
- package/dist/cjs/Auth.js +283 -287
- package/dist/cjs/AuthWrapper.js +148 -59
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-421d5ec1.js} +13 -14
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-bac780ac.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +25 -27
- package/dist/cjs/CMEDeck.js +81 -81
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +31 -34
- package/dist/cjs/Column3.js +56 -59
- package/dist/cjs/ConferenceArticleCard.js +25 -26
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +92 -96
- package/dist/cjs/DeckQueue.js +86 -90
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-ab12cd55.js} +34 -35
- package/dist/cjs/EventsDeck.js +133 -140
- package/dist/cjs/ExternalResources.js +78 -79
- package/dist/cjs/Feature.js +26 -28
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +231 -236
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +57 -58
- package/dist/cjs/HamMagazine.js +127 -132
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +15 -16
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +71 -72
- package/dist/cjs/HorizontalHero.js +28 -29
- package/dist/cjs/IssueContentDeck.js +71 -76
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +64 -65
- package/dist/cjs/LeftNav.js +37 -39
- package/dist/cjs/MasterDeck.js +70 -71
- package/dist/cjs/MediaSeriesLanding.js +985 -988
- package/dist/cjs/NavDvm.js +72 -77
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +134 -139
- package/dist/cjs/NavNative.js +126 -134
- package/dist/cjs/OncliveHero.js +21 -22
- package/dist/cjs/OncliveLargeHero.js +70 -71
- package/dist/cjs/PageFilter.js +12 -13
- package/dist/cjs/PartnerDetailListing.js +373 -272
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +17 -19
- package/dist/cjs/PubSection.js +40 -41
- package/dist/cjs/PubToc.js +13 -14
- package/dist/cjs/PublicationDeck.js +65 -70
- package/dist/cjs/PublicationLanding.js +106 -114
- package/dist/cjs/QueueDeckExpanded.js +308 -308
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +29 -30
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +16 -20
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +36 -36
- package/dist/cjs/{SeriesSlider-ba0c5d1a.js → SeriesSlider-372e418f.js} +30 -31
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +34 -35
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-80a2130a.js} +32 -36
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +61 -66
- package/dist/cjs/TaxonomyDescription.js +53 -54
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +24 -26
- package/dist/cjs/Ustream.js +27 -28
- package/dist/cjs/VerticalHero.js +19 -20
- package/dist/cjs/VideoProgramLandingPage.js +74 -78
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +50 -51
- package/dist/cjs/VideoSeriesListing.js +76 -77
- package/dist/cjs/View.js +249 -252
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +58 -59
- package/dist/cjs/{_is-array-54228b29.js → _is-array-bd978497.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-ee3d4802.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-fee50a62.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-18379aba.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-15014394.js} +30 -30
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-05029198.js} +6 -7
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-5cb3af28.js} +33 -33
- package/dist/cjs/{debounce-d4a2369b.js → debounce-6191c8ee.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-530a5e9e.js} +6 -6
- package/dist/cjs/{defineProperty-9673846a.js → defineProperty-5ca424cd.js} +1 -1
- package/dist/cjs/{entities-df1aed86.js → entities-fb0c6568.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{extends-7c86182f.js → extends-1d905ddb.js} +7 -7
- package/dist/cjs/faundadb.js +19 -19
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +16 -16
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-9d509319.js → getTargeting-41f2f52d.js} +3 -3
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-50be6759.js → index-53e27416.js} +1 -1
- package/dist/cjs/{index-f86bb269.js → index-79eed652.js} +6 -6
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
- package/dist/cjs/{index-6763511d.js → index-cdd88325.js} +580 -584
- package/dist/cjs/{index-d48b231c.js → index-ff69979f.js} +3 -3
- package/dist/cjs/{index.es-f3e47207.js → index.es-e9d84959.js} +7 -8
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-05850a2f.js} +1 -1
- 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.esm-2bb721c8.js → index.esm-bf016399.js} +18 -19
- package/dist/cjs/index.js +164 -169
- package/dist/cjs/{inherits-de66ea16.js → inherits-337c73a7.js} +22 -22
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-91f31941.js} +6 -6
- package/dist/cjs/{lodash-f0783643.js → lodash-b5e0d5f6.js} +1 -1
- package/dist/cjs/{main-f1c77adb.js → main-bc7d4bf8.js} +69 -70
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-0a78cdf3.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-13405ce2.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-39fd0757.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-f2f8744b.js} +1 -1
- package/dist/cjs/{typeof-567e31ff.js → typeof-3dd6d3df.js} +35 -35
- package/dist/cjs/urlFor.js +6 -6
- package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-5619c1fa.js} +4 -4
- package/dist/cjs/{util-93a37fd0.js → util-f2c1b65b.js} +1 -12
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-a9359910.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +21 -21
- package/dist/esm/AD300x250x600.js +21 -21
- package/dist/esm/AD728x90.js +23 -23
- package/dist/esm/ADFloatingFooter.js +21 -21
- package/dist/esm/ADFooter.js +4 -4
- package/dist/esm/ADGutter.js +21 -21
- package/dist/esm/{ADInfeed-0a55cd2d.js → ADInfeed-7db96917.js} +6 -6
- package/dist/esm/ADSkyscraper.js +21 -21
- package/dist/esm/ADSponsoredResources.js +21 -21
- package/dist/esm/ADWebcast.js +21 -21
- package/dist/esm/ADWelcome.js +18 -18
- package/dist/esm/{ADlgInfeed-013e1f4a.js → ADlgInfeed-a3931e68.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +20 -20
- package/dist/esm/AdSlotsProvider.js +9 -9
- package/dist/esm/AlgoliaSearch.js +552 -608
- package/dist/esm/AlphabeticList.js +8 -8
- package/dist/esm/ArticleCarousel.js +13 -13
- package/dist/esm/ArticleProgramLandingPage.js +48 -48
- package/dist/esm/ArticleSeriesLandingPage.js +29 -29
- package/dist/esm/ArticleSeriesListing.js +32 -32
- package/dist/esm/Auth.js +199 -199
- package/dist/esm/AuthWrapper.js +118 -28
- package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-2277b67c.js} +1 -1
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-ea93e8f7.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +21 -21
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +19 -19
- package/dist/esm/Column3.js +35 -35
- package/dist/esm/ConferenceArticleCard.js +10 -10
- package/dist/esm/DeckContent.js +46 -46
- package/dist/esm/DeckQueue.js +46 -46
- package/dist/esm/{Dfp-102f0beb.js → Dfp-d6a5629f.js} +13 -13
- package/dist/esm/EventsDeck.js +47 -47
- package/dist/esm/ExternalResources.js +46 -46
- package/dist/esm/Feature.js +6 -6
- package/dist/esm/ForbesHero.js +10 -10
- package/dist/esm/GridContent.js +85 -85
- package/dist/esm/GridHero.js +11 -11
- package/dist/esm/GroupDeck.js +12 -12
- package/dist/esm/HamMagazine.js +24 -24
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +46 -46
- package/dist/esm/HorizontalHero.js +8 -8
- package/dist/esm/IssueContentDeck.js +25 -25
- package/dist/esm/IssueDeck.js +34 -34
- package/dist/esm/IssueLanding.js +53 -53
- package/dist/esm/LeftNav.js +20 -20
- package/dist/esm/MasterDeck.js +34 -34
- package/dist/esm/MediaSeriesLanding.js +325 -325
- package/dist/esm/NavDvm.js +14 -14
- package/dist/esm/NavMagazine.js +30 -30
- package/dist/esm/NavNative.js +30 -30
- package/dist/esm/OncliveHero.js +7 -7
- package/dist/esm/OncliveLargeHero.js +11 -11
- package/dist/esm/PageFilter.js +4 -4
- package/dist/esm/PartnerDetailListing.js +188 -86
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +4 -4
- package/dist/esm/PubSection.js +32 -32
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +27 -27
- package/dist/esm/PublicationLanding.js +47 -51
- package/dist/esm/QueueDeckExpanded.js +34 -34
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +10 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +6 -6
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +18 -18
- package/dist/esm/{SeriesSlider-45adb8dc.js → SeriesSlider-88c4133d.js} +5 -5
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +13 -13
- package/dist/esm/{SocialSearchComponent-8e0fcf66.js → SocialSearchComponent-7f3d6531.js} +8 -8
- package/dist/esm/TaxonomyCard.js +27 -27
- package/dist/esm/TaxonomyDescription.js +44 -44
- package/dist/esm/TemplateNormal.js +48 -48
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +11 -11
- package/dist/esm/VerticalHero.js +6 -6
- package/dist/esm/VideoProgramLandingPage.js +52 -52
- package/dist/esm/VideoSeriesCard.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +35 -35
- package/dist/esm/VideoSeriesListing.js +33 -33
- package/dist/esm/View.js +83 -82
- package/dist/esm/YahooHero.js +13 -13
- package/dist/esm/YoutubeGroup.js +12 -12
- package/dist/esm/{_is-array-8d21b9e3.js → _is-array-8914b83f.js} +6 -6
- package/dist/esm/{_iter-detect-98db3b07.js → _iter-detect-13e31915.js} +7 -7
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-7cee6f84.js → _object-sap-fc9da7e8.js} +1 -1
- package/dist/esm/{_object-to-array-2300e51b.js → _object-to-array-ee8f6d98.js} +2 -2
- package/dist/esm/{asyncToGenerator-5ef104a7.js → asyncToGenerator-40371743.js} +30 -30
- package/dist/esm/{core.get-iterator-method-ea258bb1.js → core.get-iterator-method-0fb60d94.js} +34 -34
- package/dist/esm/{debounce-533d9748.js → debounce-89969f66.js} +2 -2
- package/dist/esm/define-property-73034847.js +18 -0
- package/dist/esm/{defineProperty-8c30428f.js → defineProperty-e66a2c7c.js} +1 -1
- package/dist/esm/{entities-6d9154b4.js → entities-731f3fdb.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{extends-6d8e3924.js → extends-9a61581c.js} +7 -7
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +11 -11
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-4061f839.js → getTargeting-e6820763.js} +2 -2
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-3ccc6d4b.js → index-0b6db187.js} +140 -134
- package/dist/esm/{index-f0fc23eb.js → index-41a678ea.js} +4 -4
- package/dist/esm/{index-79cfd25c.js → index-511bdaa5.js} +6 -6
- package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
- package/dist/esm/{index-98ca9cec.js → index-637e8f49.js} +1 -1
- package/dist/esm/{index-3f5c03b2.js → index-f7fdcc91.js} +3 -3
- package/dist/esm/{index.esm-f6156a57.js → index.esm-3fdda599.js} +1 -1
- 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.esm-37268dca.js → index.esm-ed50151c.js} +2 -2
- package/dist/esm/index.js +122 -124
- package/dist/esm/{inherits-a6ba2ec4.js → inherits-eeaf6740.js} +18 -18
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-31dcdb31.js → keys-a5ffafe7.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-a818d390.js} +1 -1
- package/dist/esm/{main-1894c974.js → main-ede573ee.js} +53 -53
- package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-6ebcbfea.js → slicedToArray-9c3bb613.js} +12 -12
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-ebc16384.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-f7074d7c.js → toConsumableArray-e333293f.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-e3dcad26.js} +1 -1
- package/dist/esm/{typeof-e9fc0c5d.js → typeof-938ae770.js} +35 -35
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-d3714624.js → ustream-api-d325d196.js} +4 -4
- package/dist/esm/{util-8ed16d48.js → util-7700fc59.js} +1 -12
- package/dist/esm/{web.dom.iterable-ab4dea5c.js → web.dom.iterable-6b037ff9.js} +2 -2
- package/package.json +1 -2
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/define-property-5f1bda73.js +0 -18
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/stringify-2b084bee.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-e761d404.js} +1 -1
|
@@ -1,66 +1,56 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
5
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
|
+
var core_getIteratorMethod = require('./core.get-iterator-method-5cb3af28.js');
|
|
7
|
+
var toConsumableArray = require('./toConsumableArray-39fd0757.js');
|
|
8
|
+
var _extends = require('./extends-1d905ddb.js');
|
|
9
|
+
var inherits$1 = require('./inherits-337c73a7.js');
|
|
10
|
+
var _typeof$2 = require('./typeof-3dd6d3df.js');
|
|
4
11
|
var React = require('react');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var urlFor = require('./urlFor.js');
|
|
8
|
-
var index = require('./index-fc2f1ca2.js');
|
|
9
|
-
var Router = require('next/router');
|
|
10
|
-
var index$1 = require('./index-187c967e.js');
|
|
12
|
+
var React__default = _interopDefault(React);
|
|
13
|
+
var index = require('./index-98e01cb9.js');
|
|
11
14
|
var PropTypes = require('prop-types');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
require('
|
|
15
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
16
|
+
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
17
|
+
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
18
|
+
var moment = require('./moment-ca3bd9fb.js');
|
|
19
|
+
var Router = require('next/router');
|
|
20
|
+
var Router__default = _interopDefault(Router);
|
|
21
|
+
var slicedToArray = require('./slicedToArray-0a78cdf3.js');
|
|
22
|
+
var urlFor = require('./urlFor.js');
|
|
23
|
+
var index$2 = require('./index-96b3db50.js');
|
|
24
|
+
var main = require('./main-bc7d4bf8.js');
|
|
25
|
+
var entities = require('./entities-fb0c6568.js');
|
|
26
|
+
var asyncToGenerator = require('./asyncToGenerator-15014394.js');
|
|
15
27
|
var Segment = require('./Segment.js');
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-a195642e.js');
|
|
28
|
+
require('./Beam.js');
|
|
29
|
+
var AdSlot = require('./AdSlot.js');
|
|
30
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
31
|
+
var BlockContent = require('./BlockContent-bac780ac.js');
|
|
32
|
+
var index$3 = require('./index-187c967e.js');
|
|
22
33
|
var GroupDeck = require('./GroupDeck.js');
|
|
23
|
-
var
|
|
34
|
+
var reactBootstrap = require('react-bootstrap');
|
|
35
|
+
var index_esm = require('./index.esm-974f47d9.js');
|
|
36
|
+
var util = require('./util-f2c1b65b.js');
|
|
37
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-05029198.js');
|
|
38
|
+
var Head = _interopDefault(require('next/head'));
|
|
24
39
|
var SocialShare = require('./SocialShare.js');
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var AdSlot = require('./AdSlot.js');
|
|
32
|
-
var Row = require('react-bootstrap/Row');
|
|
33
|
-
var Col = require('react-bootstrap/Col');
|
|
34
|
-
var Head = require('next/head');
|
|
35
|
-
var inherits = require('./inherits-de66ea16.js');
|
|
36
|
-
var index_esm = require('./index.esm-00a6aade.js');
|
|
37
|
-
var Figure$1 = require('react-bootstrap/Figure');
|
|
38
|
-
var OverlayTrigger = require('react-bootstrap/OverlayTrigger');
|
|
39
|
-
var Tooltip = require('react-bootstrap/Tooltip');
|
|
40
|
-
var Popover = require('react-bootstrap/Popover');
|
|
41
|
-
|
|
42
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
43
|
-
|
|
44
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
45
|
-
var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
|
|
46
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
47
|
-
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
48
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
49
|
-
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
|
|
50
|
-
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);
|
|
51
|
-
var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
|
|
52
|
-
var Figure__default = /*#__PURE__*/_interopDefaultLegacy(Figure$1);
|
|
53
|
-
var OverlayTrigger__default = /*#__PURE__*/_interopDefaultLegacy(OverlayTrigger);
|
|
54
|
-
var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
|
|
55
|
-
var Popover__default = /*#__PURE__*/_interopDefaultLegacy(Popover);
|
|
40
|
+
var _objectToArray = require('./_object-to-array-18379aba.js');
|
|
41
|
+
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
42
|
+
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
43
|
+
var OverlayTrigger = _interopDefault(require('react-bootstrap/OverlayTrigger'));
|
|
44
|
+
var Tooltip = _interopDefault(require('react-bootstrap/Tooltip'));
|
|
45
|
+
var Popover = _interopDefault(require('react-bootstrap/Popover'));
|
|
56
46
|
|
|
57
47
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
58
48
|
var pageNumber = selectedIndex + 1;
|
|
59
49
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
60
|
-
Router__default
|
|
50
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
61
51
|
};
|
|
62
52
|
|
|
63
|
-
var Slideshow
|
|
53
|
+
var Slideshow = function Slideshow(_ref) {
|
|
64
54
|
var slides = _ref.slides,
|
|
65
55
|
client = _ref.client,
|
|
66
56
|
pageview = _ref.pageview;
|
|
@@ -87,27 +77,27 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
87
77
|
if (pageview) pageview(router.asPath);
|
|
88
78
|
}, [router]);
|
|
89
79
|
|
|
90
|
-
return React__default
|
|
80
|
+
return React__default.createElement(
|
|
91
81
|
'div',
|
|
92
82
|
{ className: 'mt-3 mb-3' },
|
|
93
|
-
React__default
|
|
83
|
+
React__default.createElement(
|
|
94
84
|
reactBootstrap.Carousel,
|
|
95
85
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
96
86
|
return onChangeSlide(selectedIndex, router);
|
|
97
87
|
}, interval: null },
|
|
98
88
|
slides && slides.map(function (slide) {
|
|
99
|
-
return React__default
|
|
89
|
+
return React__default.createElement(
|
|
100
90
|
reactBootstrap.Carousel.Item,
|
|
101
91
|
{ key: slide._key },
|
|
102
|
-
React__default
|
|
92
|
+
React__default.createElement(
|
|
103
93
|
'picture',
|
|
104
94
|
null,
|
|
105
|
-
React__default
|
|
106
|
-
React__default
|
|
107
|
-
React__default
|
|
108
|
-
React__default
|
|
95
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
96
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
97
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
98
|
+
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
109
99
|
),
|
|
110
|
-
slide.caption && React__default
|
|
100
|
+
slide.caption && React__default.createElement(
|
|
111
101
|
'p',
|
|
112
102
|
{ className: 'p-2' },
|
|
113
103
|
slide.caption
|
|
@@ -697,14 +687,14 @@ function coerce(val) {
|
|
|
697
687
|
return val;
|
|
698
688
|
}
|
|
699
689
|
});
|
|
700
|
-
debug.coerce;
|
|
701
|
-
debug.disable;
|
|
702
|
-
debug.enable;
|
|
703
|
-
debug.enabled;
|
|
704
|
-
debug.humanize;
|
|
705
|
-
debug.names;
|
|
706
|
-
debug.skips;
|
|
707
|
-
debug.formatters;
|
|
690
|
+
var debug_1 = debug.coerce;
|
|
691
|
+
var debug_2 = debug.disable;
|
|
692
|
+
var debug_3 = debug.enable;
|
|
693
|
+
var debug_4 = debug.enabled;
|
|
694
|
+
var debug_5 = debug.humanize;
|
|
695
|
+
var debug_6 = debug.names;
|
|
696
|
+
var debug_7 = debug.skips;
|
|
697
|
+
var debug_8 = debug.formatters;
|
|
708
698
|
|
|
709
699
|
var browser = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
710
700
|
/**
|
|
@@ -893,13 +883,13 @@ function localstorage() {
|
|
|
893
883
|
} catch (e) {}
|
|
894
884
|
}
|
|
895
885
|
});
|
|
896
|
-
browser.log;
|
|
897
|
-
browser.formatArgs;
|
|
898
|
-
browser.save;
|
|
899
|
-
browser.load;
|
|
900
|
-
browser.useColors;
|
|
901
|
-
browser.storage;
|
|
902
|
-
browser.colors;
|
|
886
|
+
var browser_1 = browser.log;
|
|
887
|
+
var browser_2 = browser.formatArgs;
|
|
888
|
+
var browser_3 = browser.save;
|
|
889
|
+
var browser_4 = browser.load;
|
|
890
|
+
var browser_5 = browser.useColors;
|
|
891
|
+
var browser_6 = browser.storage;
|
|
892
|
+
var browser_7 = browser.colors;
|
|
903
893
|
|
|
904
894
|
// MIT lisence
|
|
905
895
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1174,14 +1164,14 @@ function init (debug) {
|
|
|
1174
1164
|
|
|
1175
1165
|
exports.enable(load());
|
|
1176
1166
|
});
|
|
1177
|
-
node.init;
|
|
1178
|
-
node.log;
|
|
1179
|
-
node.formatArgs;
|
|
1180
|
-
node.save;
|
|
1181
|
-
node.load;
|
|
1182
|
-
node.useColors;
|
|
1183
|
-
node.colors;
|
|
1184
|
-
node.inspectOpts;
|
|
1167
|
+
var node_1 = node.init;
|
|
1168
|
+
var node_2 = node.log;
|
|
1169
|
+
var node_3 = node.formatArgs;
|
|
1170
|
+
var node_4 = node.save;
|
|
1171
|
+
var node_5 = node.load;
|
|
1172
|
+
var node_6 = node.useColors;
|
|
1173
|
+
var node_7 = node.colors;
|
|
1174
|
+
var node_8 = node.inspectOpts;
|
|
1185
1175
|
|
|
1186
1176
|
var src = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
1187
1177
|
/**
|
|
@@ -1849,9 +1839,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1849
1839
|
}, {
|
|
1850
1840
|
key: "render",
|
|
1851
1841
|
value: function render() {
|
|
1852
|
-
return /*#__PURE__*/React__default
|
|
1842
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1853
1843
|
className: this.props.containerClassName
|
|
1854
|
-
}, /*#__PURE__*/React__default
|
|
1844
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1855
1845
|
id: this.props.id,
|
|
1856
1846
|
className: this.props.className,
|
|
1857
1847
|
ref: this.refContainer
|
|
@@ -1860,7 +1850,7 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1860
1850
|
}]);
|
|
1861
1851
|
|
|
1862
1852
|
return YouTube;
|
|
1863
|
-
}(React__default
|
|
1853
|
+
}(React__default.Component);
|
|
1864
1854
|
|
|
1865
1855
|
_defineProperty(YouTube, "PlayerState", {
|
|
1866
1856
|
UNSTARTED: -1,
|
|
@@ -1872,24 +1862,24 @@ _defineProperty(YouTube, "PlayerState", {
|
|
|
1872
1862
|
});
|
|
1873
1863
|
|
|
1874
1864
|
YouTube.propTypes = {
|
|
1875
|
-
videoId: PropTypes__default
|
|
1865
|
+
videoId: PropTypes__default.string,
|
|
1876
1866
|
// custom ID for player element
|
|
1877
|
-
id: PropTypes__default
|
|
1867
|
+
id: PropTypes__default.string,
|
|
1878
1868
|
// custom class name for player element
|
|
1879
|
-
className: PropTypes__default
|
|
1869
|
+
className: PropTypes__default.string,
|
|
1880
1870
|
// custom class name for player container element
|
|
1881
|
-
containerClassName: PropTypes__default
|
|
1871
|
+
containerClassName: PropTypes__default.string,
|
|
1882
1872
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1883
|
-
opts: PropTypes__default
|
|
1873
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1884
1874
|
// event subscriptions
|
|
1885
|
-
onReady: PropTypes__default
|
|
1886
|
-
onError: PropTypes__default
|
|
1887
|
-
onPlay: PropTypes__default
|
|
1888
|
-
onPause: PropTypes__default
|
|
1889
|
-
onEnd: PropTypes__default
|
|
1890
|
-
onStateChange: PropTypes__default
|
|
1891
|
-
onPlaybackRateChange: PropTypes__default
|
|
1892
|
-
onPlaybackQualityChange: PropTypes__default
|
|
1875
|
+
onReady: PropTypes__default.func,
|
|
1876
|
+
onError: PropTypes__default.func,
|
|
1877
|
+
onPlay: PropTypes__default.func,
|
|
1878
|
+
onPause: PropTypes__default.func,
|
|
1879
|
+
onEnd: PropTypes__default.func,
|
|
1880
|
+
onStateChange: PropTypes__default.func,
|
|
1881
|
+
onPlaybackRateChange: PropTypes__default.func,
|
|
1882
|
+
onPlaybackQualityChange: PropTypes__default.func
|
|
1893
1883
|
};
|
|
1894
1884
|
YouTube.defaultProps = {
|
|
1895
1885
|
videoId: null,
|
|
@@ -1911,7 +1901,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1911
1901
|
var url = _ref.url,
|
|
1912
1902
|
autoplay = _ref.autoplay;
|
|
1913
1903
|
|
|
1914
|
-
var id = index$
|
|
1904
|
+
var id = index$3.getYoutubeId(url);
|
|
1915
1905
|
|
|
1916
1906
|
var _useState = React.useState(false),
|
|
1917
1907
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -2007,11 +1997,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2007
1997
|
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment);
|
|
2008
1998
|
};
|
|
2009
1999
|
|
|
2010
|
-
return React__default
|
|
2000
|
+
return React__default.createElement(
|
|
2011
2001
|
'div',
|
|
2012
2002
|
{ id: 'fluid-video-container' },
|
|
2013
|
-
React__default
|
|
2014
|
-
React__default
|
|
2003
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2004
|
+
React__default.createElement(
|
|
2015
2005
|
'style',
|
|
2016
2006
|
{ jsx: 'true' },
|
|
2017
2007
|
'\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 '
|
|
@@ -2024,20 +2014,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2024
2014
|
content = _ref.content,
|
|
2025
2015
|
getSerializers = _ref.getSerializers;
|
|
2026
2016
|
|
|
2027
|
-
return React__default
|
|
2017
|
+
return React__default.createElement(
|
|
2028
2018
|
'article',
|
|
2029
2019
|
{ className: 'sidebar' },
|
|
2030
|
-
React__default
|
|
2020
|
+
React__default.createElement(
|
|
2031
2021
|
'div',
|
|
2032
2022
|
null,
|
|
2033
|
-
React__default
|
|
2023
|
+
React__default.createElement(
|
|
2034
2024
|
'h3',
|
|
2035
2025
|
null,
|
|
2036
2026
|
caption
|
|
2037
2027
|
),
|
|
2038
|
-
React__default
|
|
2028
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2039
2029
|
),
|
|
2040
|
-
React__default
|
|
2030
|
+
React__default.createElement(
|
|
2041
2031
|
'style',
|
|
2042
2032
|
{ jsx: 'true' },
|
|
2043
2033
|
'\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 '
|
|
@@ -2048,18 +2038,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2048
2038
|
var TableShow = function TableShow(_ref) {
|
|
2049
2039
|
var rows = _ref.rows;
|
|
2050
2040
|
|
|
2051
|
-
return React__default
|
|
2041
|
+
return React__default.createElement(
|
|
2052
2042
|
reactBootstrap.Table,
|
|
2053
2043
|
{ bordered: true, hover: true, responsive: true },
|
|
2054
|
-
React__default
|
|
2044
|
+
React__default.createElement(
|
|
2055
2045
|
'tbody',
|
|
2056
2046
|
null,
|
|
2057
2047
|
rows && rows.map(function (row) {
|
|
2058
|
-
return React__default
|
|
2048
|
+
return React__default.createElement(
|
|
2059
2049
|
'tr',
|
|
2060
2050
|
{ key: row._key },
|
|
2061
2051
|
row.cells && row.cells.map(function (cell, index) {
|
|
2062
|
-
return cell && React__default
|
|
2052
|
+
return cell && React__default.createElement(
|
|
2063
2053
|
'td',
|
|
2064
2054
|
{ key: index },
|
|
2065
2055
|
cell
|
|
@@ -2178,25 +2168,25 @@ var Media = function Media(_ref) {
|
|
|
2178
2168
|
margin: imageMargin
|
|
2179
2169
|
};
|
|
2180
2170
|
|
|
2181
|
-
return React__default
|
|
2171
|
+
return React__default.createElement(
|
|
2182
2172
|
reactBootstrap.Figure,
|
|
2183
2173
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2184
|
-
React__default
|
|
2174
|
+
React__default.createElement(
|
|
2185
2175
|
'a',
|
|
2186
2176
|
{ href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2187
|
-
React__default
|
|
2177
|
+
React__default.createElement(
|
|
2188
2178
|
index$2.LazyLoad,
|
|
2189
2179
|
{ once: true },
|
|
2190
|
-
React__default
|
|
2180
|
+
React__default.createElement(
|
|
2191
2181
|
'picture',
|
|
2192
2182
|
null,
|
|
2193
|
-
React__default
|
|
2194
|
-
React__default
|
|
2195
|
-
React__default
|
|
2196
|
-
React__default
|
|
2183
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2184
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2185
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2186
|
+
React__default.createElement('img', _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2197
2187
|
)
|
|
2198
2188
|
),
|
|
2199
|
-
caption && React__default
|
|
2189
|
+
caption && React__default.createElement(
|
|
2200
2190
|
reactBootstrap.Figure.Caption,
|
|
2201
2191
|
{ className: 'media-caption' },
|
|
2202
2192
|
caption
|
|
@@ -2204,7 +2194,7 @@ var Media = function Media(_ref) {
|
|
|
2204
2194
|
)
|
|
2205
2195
|
);
|
|
2206
2196
|
} else if (caption && caption !== '') {
|
|
2207
|
-
return React__default
|
|
2197
|
+
return React__default.createElement(
|
|
2208
2198
|
'a',
|
|
2209
2199
|
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2210
2200
|
href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
@@ -2224,10 +2214,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2224
2214
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2225
2215
|
|
|
2226
2216
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2227
|
-
return React__default
|
|
2217
|
+
return React__default.createElement(
|
|
2228
2218
|
'div',
|
|
2229
2219
|
{ className: 'd-block text-center mb-3' },
|
|
2230
|
-
React__default
|
|
2220
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2231
2221
|
);
|
|
2232
2222
|
};
|
|
2233
2223
|
|
|
@@ -2322,10 +2312,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2322
2312
|
Segment.report_video_event('Video Pause', main.main_18, duration, current, segment, 'MP4');
|
|
2323
2313
|
};
|
|
2324
2314
|
|
|
2325
|
-
return React__default
|
|
2315
|
+
return React__default.createElement(
|
|
2326
2316
|
'div',
|
|
2327
2317
|
null,
|
|
2328
|
-
vidLoaded && React__default
|
|
2318
|
+
vidLoaded && React__default.createElement(
|
|
2329
2319
|
'video',
|
|
2330
2320
|
{
|
|
2331
2321
|
poster: thumbnail || '',
|
|
@@ -2343,7 +2333,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2343
2333
|
onPlay: function onPlay(e) {
|
|
2344
2334
|
return handleOnPlay(e);
|
|
2345
2335
|
} },
|
|
2346
|
-
React__default
|
|
2336
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2347
2337
|
'Your browser does not support the video tag.'
|
|
2348
2338
|
)
|
|
2349
2339
|
);
|
|
@@ -2377,10 +2367,15 @@ var Video = function Video(_ref) {
|
|
|
2377
2367
|
setVideoLoaded(true);
|
|
2378
2368
|
}
|
|
2379
2369
|
}, []);
|
|
2370
|
+
|
|
2371
|
+
var onVideoFailure = function onVideoFailure(err) {
|
|
2372
|
+
console.log('could not load video', err);
|
|
2373
|
+
};
|
|
2374
|
+
|
|
2380
2375
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2381
2376
|
//console.log('success:', success.ref)
|
|
2382
2377
|
var player = success.ref;
|
|
2383
|
-
if (_typeof$
|
|
2378
|
+
if (_typeof$2._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2384
2379
|
player.ima3.settings.debug = true;
|
|
2385
2380
|
if (targeting.content_placement && targeting.document_url) {
|
|
2386
2381
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2485,7 +2480,7 @@ var Video = function Video(_ref) {
|
|
|
2485
2480
|
// ad impression
|
|
2486
2481
|
player.on('ads-ad-started', function (evt) {
|
|
2487
2482
|
var duration = player.ads.ad.duration;
|
|
2488
|
-
player.ads.ad.id;
|
|
2483
|
+
var id = player.ads.ad.id;
|
|
2489
2484
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2490
2485
|
|
|
2491
2486
|
//Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
@@ -2495,7 +2490,7 @@ var Video = function Video(_ref) {
|
|
|
2495
2490
|
// ad ended
|
|
2496
2491
|
player.on('ads-ad-ended', function (evt) {
|
|
2497
2492
|
var duration = player.ads.ad.duration;
|
|
2498
|
-
player.ads.ad.id;
|
|
2493
|
+
var id = player.ads.ad.id;
|
|
2499
2494
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2500
2495
|
//Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2501
2496
|
Segment.report_ad_event('Video Ad Ended', main.main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
@@ -2504,53 +2499,54 @@ var Video = function Video(_ref) {
|
|
|
2504
2499
|
|
|
2505
2500
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2506
2501
|
if (videoID) {
|
|
2507
|
-
return React__default
|
|
2502
|
+
return React__default.createElement(
|
|
2508
2503
|
'div',
|
|
2509
2504
|
null,
|
|
2510
|
-
React__default
|
|
2505
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2511
2506
|
onSuccess: onVideoSuccess,
|
|
2507
|
+
onFailure: onVideoFailure,
|
|
2512
2508
|
accountId: accountIDs.brightcove.accountId,
|
|
2513
2509
|
videoId: videoID,
|
|
2514
2510
|
playerId: accountIDs.brightcove.playerId,
|
|
2515
2511
|
attrs: { className: 'brightcove-fluid', autoPlay: 'muted' }
|
|
2516
2512
|
}),
|
|
2517
|
-
React__default
|
|
2513
|
+
React__default.createElement(
|
|
2518
2514
|
'style',
|
|
2519
2515
|
{ jsx: 'true' },
|
|
2520
2516
|
'\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 '
|
|
2521
2517
|
)
|
|
2522
2518
|
);
|
|
2523
2519
|
} else if (playlistID) {
|
|
2524
|
-
return React__default
|
|
2520
|
+
return React__default.createElement(
|
|
2525
2521
|
'div',
|
|
2526
2522
|
null,
|
|
2527
|
-
React__default
|
|
2523
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2528
2524
|
accountId: accountIDs.brightcove.accountId,
|
|
2529
2525
|
playlistId: playlistID,
|
|
2530
2526
|
playerId: accountIDs.brightcove.playerId,
|
|
2531
2527
|
onSuccess: onVideoSuccess,
|
|
2532
2528
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2533
2529
|
}),
|
|
2534
|
-
React__default
|
|
2530
|
+
React__default.createElement(
|
|
2535
2531
|
'style',
|
|
2536
2532
|
{ jsx: 'true' },
|
|
2537
2533
|
'\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 '
|
|
2538
2534
|
)
|
|
2539
2535
|
);
|
|
2540
2536
|
} else if (experienceID) {
|
|
2541
|
-
return React__default
|
|
2537
|
+
return React__default.createElement(
|
|
2542
2538
|
'div',
|
|
2543
2539
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2544
|
-
videoLoaded && React__default
|
|
2540
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2545
2541
|
);
|
|
2546
2542
|
}
|
|
2547
2543
|
return null;
|
|
2548
2544
|
}
|
|
2549
2545
|
if (source === 'mp4') {
|
|
2550
|
-
return React__default
|
|
2546
|
+
return React__default.createElement(
|
|
2551
2547
|
'div',
|
|
2552
2548
|
null,
|
|
2553
|
-
React__default
|
|
2549
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2554
2550
|
);
|
|
2555
2551
|
}
|
|
2556
2552
|
|
|
@@ -2565,7 +2561,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2565
2561
|
});
|
|
2566
2562
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2567
2563
|
|
|
2568
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2564
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2569
2565
|
|
|
2570
2566
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2571
2567
|
|
|
@@ -2761,9 +2757,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2761
2757
|
});
|
|
2762
2758
|
|
|
2763
2759
|
_commonjsHelpers.unwrapExports(props);
|
|
2764
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2765
|
-
props.defaultProps;
|
|
2766
|
-
props.propTypes;
|
|
2760
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2761
|
+
var props_2 = props.defaultProps;
|
|
2762
|
+
var props_3 = props.propTypes;
|
|
2767
2763
|
|
|
2768
2764
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2769
2765
|
return isNonNullObject(value)
|
|
@@ -3155,7 +3151,7 @@ function isEqual(a, b) {
|
|
|
3155
3151
|
return true;
|
|
3156
3152
|
}
|
|
3157
3153
|
|
|
3158
|
-
if ((0, React__default
|
|
3154
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3159
3155
|
return true;
|
|
3160
3156
|
}
|
|
3161
3157
|
|
|
@@ -3198,17 +3194,17 @@ function isMediaStream(url) {
|
|
|
3198
3194
|
});
|
|
3199
3195
|
|
|
3200
3196
|
_commonjsHelpers.unwrapExports(utils);
|
|
3201
|
-
utils.parseStartTime;
|
|
3202
|
-
utils.parseEndTime;
|
|
3203
|
-
utils.randomString;
|
|
3204
|
-
utils.queryString;
|
|
3205
|
-
utils.getSDK;
|
|
3206
|
-
utils.getConfig;
|
|
3207
|
-
utils.omit;
|
|
3208
|
-
utils.callPlayer;
|
|
3209
|
-
utils.isObject;
|
|
3210
|
-
utils.isEqual;
|
|
3211
|
-
utils.isMediaStream;
|
|
3197
|
+
var utils_1 = utils.parseStartTime;
|
|
3198
|
+
var utils_2 = utils.parseEndTime;
|
|
3199
|
+
var utils_3 = utils.randomString;
|
|
3200
|
+
var utils_4 = utils.queryString;
|
|
3201
|
+
var utils_5 = utils.getSDK;
|
|
3202
|
+
var utils_6 = utils.getConfig;
|
|
3203
|
+
var utils_7 = utils.omit;
|
|
3204
|
+
var utils_8 = utils.callPlayer;
|
|
3205
|
+
var utils_9 = utils.isObject;
|
|
3206
|
+
var utils_10 = utils.isEqual;
|
|
3207
|
+
var utils_11 = utils.isMediaStream;
|
|
3212
3208
|
|
|
3213
3209
|
var Player_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3214
3210
|
|
|
@@ -3217,7 +3213,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3217
3213
|
});
|
|
3218
3214
|
exports["default"] = void 0;
|
|
3219
3215
|
|
|
3220
|
-
var _react = _interopRequireWildcard(React__default
|
|
3216
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3221
3217
|
|
|
3222
3218
|
|
|
3223
3219
|
|
|
@@ -3627,7 +3623,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3627
3623
|
});
|
|
3628
3624
|
exports["default"] = createSinglePlayer;
|
|
3629
3625
|
|
|
3630
|
-
var _react = _interopRequireWildcard(React__default
|
|
3626
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3631
3627
|
|
|
3632
3628
|
|
|
3633
3629
|
|
|
@@ -3785,7 +3781,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3785
3781
|
});
|
|
3786
3782
|
exports["default"] = exports.YouTube = void 0;
|
|
3787
3783
|
|
|
3788
|
-
var _react = _interopRequireWildcard(React__default
|
|
3784
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3789
3785
|
|
|
3790
3786
|
|
|
3791
3787
|
|
|
@@ -4085,7 +4081,7 @@ exports["default"] = _default;
|
|
|
4085
4081
|
});
|
|
4086
4082
|
|
|
4087
4083
|
_commonjsHelpers.unwrapExports(YouTube_1);
|
|
4088
|
-
YouTube_1.YouTube;
|
|
4084
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4089
4085
|
|
|
4090
4086
|
var SoundCloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4091
4087
|
|
|
@@ -4094,7 +4090,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4094
4090
|
});
|
|
4095
4091
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4096
4092
|
|
|
4097
|
-
var _react = _interopRequireWildcard(React__default
|
|
4093
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4098
4094
|
|
|
4099
4095
|
|
|
4100
4096
|
|
|
@@ -4302,7 +4298,7 @@ exports["default"] = _default;
|
|
|
4302
4298
|
});
|
|
4303
4299
|
|
|
4304
4300
|
_commonjsHelpers.unwrapExports(SoundCloud_1);
|
|
4305
|
-
SoundCloud_1.SoundCloud;
|
|
4301
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4306
4302
|
|
|
4307
4303
|
var Vimeo_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4308
4304
|
|
|
@@ -4311,7 +4307,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4311
4307
|
});
|
|
4312
4308
|
exports["default"] = exports.Vimeo = void 0;
|
|
4313
4309
|
|
|
4314
|
-
var _react = _interopRequireWildcard(React__default
|
|
4310
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4315
4311
|
|
|
4316
4312
|
|
|
4317
4313
|
|
|
@@ -4558,7 +4554,7 @@ exports["default"] = _default;
|
|
|
4558
4554
|
});
|
|
4559
4555
|
|
|
4560
4556
|
_commonjsHelpers.unwrapExports(Vimeo_1);
|
|
4561
|
-
Vimeo_1.Vimeo;
|
|
4557
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4562
4558
|
|
|
4563
4559
|
var Facebook_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4564
4560
|
|
|
@@ -4567,7 +4563,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4567
4563
|
});
|
|
4568
4564
|
exports["default"] = exports.Facebook = void 0;
|
|
4569
4565
|
|
|
4570
|
-
var _react = _interopRequireWildcard(React__default
|
|
4566
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4571
4567
|
|
|
4572
4568
|
|
|
4573
4569
|
|
|
@@ -4770,7 +4766,7 @@ exports["default"] = _default;
|
|
|
4770
4766
|
});
|
|
4771
4767
|
|
|
4772
4768
|
_commonjsHelpers.unwrapExports(Facebook_1);
|
|
4773
|
-
Facebook_1.Facebook;
|
|
4769
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4774
4770
|
|
|
4775
4771
|
var Streamable_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4776
4772
|
|
|
@@ -4779,7 +4775,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4779
4775
|
});
|
|
4780
4776
|
exports["default"] = exports.Streamable = void 0;
|
|
4781
4777
|
|
|
4782
|
-
var _react = _interopRequireWildcard(React__default
|
|
4778
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4783
4779
|
|
|
4784
4780
|
|
|
4785
4781
|
|
|
@@ -4981,7 +4977,7 @@ exports["default"] = _default;
|
|
|
4981
4977
|
});
|
|
4982
4978
|
|
|
4983
4979
|
_commonjsHelpers.unwrapExports(Streamable_1);
|
|
4984
|
-
Streamable_1.Streamable;
|
|
4980
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4985
4981
|
|
|
4986
4982
|
var Wistia_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4987
4983
|
|
|
@@ -4990,7 +4986,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4990
4986
|
});
|
|
4991
4987
|
exports["default"] = exports.Wistia = void 0;
|
|
4992
4988
|
|
|
4993
|
-
var _react = _interopRequireWildcard(React__default
|
|
4989
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4994
4990
|
|
|
4995
4991
|
|
|
4996
4992
|
|
|
@@ -5224,7 +5220,7 @@ exports["default"] = _default;
|
|
|
5224
5220
|
});
|
|
5225
5221
|
|
|
5226
5222
|
_commonjsHelpers.unwrapExports(Wistia_1);
|
|
5227
|
-
Wistia_1.Wistia;
|
|
5223
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5228
5224
|
|
|
5229
5225
|
var Twitch_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5230
5226
|
|
|
@@ -5233,7 +5229,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5233
5229
|
});
|
|
5234
5230
|
exports["default"] = exports.Twitch = void 0;
|
|
5235
5231
|
|
|
5236
|
-
var _react = _interopRequireWildcard(React__default
|
|
5232
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5237
5233
|
|
|
5238
5234
|
|
|
5239
5235
|
|
|
@@ -5440,7 +5436,7 @@ exports["default"] = _default;
|
|
|
5440
5436
|
});
|
|
5441
5437
|
|
|
5442
5438
|
_commonjsHelpers.unwrapExports(Twitch_1);
|
|
5443
|
-
Twitch_1.Twitch;
|
|
5439
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5444
5440
|
|
|
5445
5441
|
var DailyMotion_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5446
5442
|
|
|
@@ -5449,7 +5445,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5449
5445
|
});
|
|
5450
5446
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5451
5447
|
|
|
5452
|
-
var _react = _interopRequireWildcard(React__default
|
|
5448
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5453
5449
|
|
|
5454
5450
|
|
|
5455
5451
|
|
|
@@ -5676,7 +5672,7 @@ exports["default"] = _default;
|
|
|
5676
5672
|
});
|
|
5677
5673
|
|
|
5678
5674
|
_commonjsHelpers.unwrapExports(DailyMotion_1);
|
|
5679
|
-
DailyMotion_1.DailyMotion;
|
|
5675
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5680
5676
|
|
|
5681
5677
|
var Mixcloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5682
5678
|
|
|
@@ -5685,7 +5681,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5685
5681
|
});
|
|
5686
5682
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5687
5683
|
|
|
5688
|
-
var _react = _interopRequireWildcard(React__default
|
|
5684
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5689
5685
|
|
|
5690
5686
|
|
|
5691
5687
|
|
|
@@ -5875,7 +5871,7 @@ exports["default"] = _default;
|
|
|
5875
5871
|
});
|
|
5876
5872
|
|
|
5877
5873
|
_commonjsHelpers.unwrapExports(Mixcloud_1);
|
|
5878
|
-
Mixcloud_1.Mixcloud;
|
|
5874
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5879
5875
|
|
|
5880
5876
|
var FilePlayer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5881
5877
|
|
|
@@ -5884,7 +5880,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5884
5880
|
});
|
|
5885
5881
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5886
5882
|
|
|
5887
|
-
var _react = _interopRequireWildcard(React__default
|
|
5883
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5888
5884
|
|
|
5889
5885
|
|
|
5890
5886
|
|
|
@@ -6409,7 +6405,7 @@ exports["default"] = _default;
|
|
|
6409
6405
|
});
|
|
6410
6406
|
|
|
6411
6407
|
_commonjsHelpers.unwrapExports(FilePlayer_1);
|
|
6412
|
-
FilePlayer_1.FilePlayer;
|
|
6408
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6413
6409
|
|
|
6414
6410
|
var players = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
6415
6411
|
|
|
@@ -6451,7 +6447,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6451
6447
|
});
|
|
6452
6448
|
exports["default"] = void 0;
|
|
6453
6449
|
|
|
6454
|
-
var _react = _interopRequireWildcard(React__default
|
|
6450
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6455
6451
|
|
|
6456
6452
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6457
6453
|
|
|
@@ -6630,7 +6626,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6630
6626
|
});
|
|
6631
6627
|
exports["default"] = renderPreloadPlayers;
|
|
6632
6628
|
|
|
6633
|
-
var _react = _interopRequireDefault(React__default
|
|
6629
|
+
var _react = _interopRequireDefault(React__default);
|
|
6634
6630
|
|
|
6635
6631
|
var _Player = _interopRequireDefault(Player_1);
|
|
6636
6632
|
|
|
@@ -6769,7 +6765,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6769
6765
|
});
|
|
6770
6766
|
exports["default"] = void 0;
|
|
6771
6767
|
|
|
6772
|
-
var _react = _interopRequireWildcard(React__default
|
|
6768
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6773
6769
|
|
|
6774
6770
|
|
|
6775
6771
|
|
|
@@ -7083,20 +7079,20 @@ var Audio = function Audio(_ref) {
|
|
|
7083
7079
|
var node = _ref.node;
|
|
7084
7080
|
|
|
7085
7081
|
if (node.uploadAudio) {
|
|
7086
|
-
return React__default
|
|
7082
|
+
return React__default.createElement(
|
|
7087
7083
|
'div',
|
|
7088
7084
|
{ className: 'audio d-block text-center mb-3' },
|
|
7089
|
-
React__default
|
|
7085
|
+
React__default.createElement(
|
|
7090
7086
|
'audio',
|
|
7091
7087
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7092
|
-
React__default
|
|
7093
|
-
React__default
|
|
7088
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7089
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7094
7090
|
'Your browser does not support the audio element.'
|
|
7095
7091
|
),
|
|
7096
|
-
node.caption && React__default
|
|
7092
|
+
node.caption && React__default.createElement(
|
|
7097
7093
|
'p',
|
|
7098
7094
|
{ style: { fontSize: '.9rem' } },
|
|
7099
|
-
React__default
|
|
7095
|
+
React__default.createElement(
|
|
7100
7096
|
'em',
|
|
7101
7097
|
null,
|
|
7102
7098
|
node.caption
|
|
@@ -7106,15 +7102,15 @@ var Audio = function Audio(_ref) {
|
|
|
7106
7102
|
} else if (node.audioFilePth) {
|
|
7107
7103
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7108
7104
|
if (hostname === 'embeds.audioboom.com') {
|
|
7109
|
-
return React__default
|
|
7105
|
+
return React__default.createElement(
|
|
7110
7106
|
'div',
|
|
7111
7107
|
null,
|
|
7112
|
-
React__default
|
|
7108
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7113
7109
|
' ',
|
|
7114
|
-
node.caption && React__default
|
|
7110
|
+
node.caption && React__default.createElement(
|
|
7115
7111
|
'p',
|
|
7116
7112
|
{ style: { fontSize: '.9rem' } },
|
|
7117
|
-
React__default
|
|
7113
|
+
React__default.createElement(
|
|
7118
7114
|
'em',
|
|
7119
7115
|
null,
|
|
7120
7116
|
node.caption
|
|
@@ -7122,14 +7118,14 @@ var Audio = function Audio(_ref) {
|
|
|
7122
7118
|
)
|
|
7123
7119
|
);
|
|
7124
7120
|
}
|
|
7125
|
-
return React__default
|
|
7121
|
+
return React__default.createElement(
|
|
7126
7122
|
'div',
|
|
7127
7123
|
{ className: 'audio' },
|
|
7128
|
-
React__default
|
|
7129
|
-
node.caption && React__default
|
|
7124
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7125
|
+
node.caption && React__default.createElement(
|
|
7130
7126
|
'p',
|
|
7131
7127
|
{ style: { fontSize: '.9rem' } },
|
|
7132
|
-
React__default
|
|
7128
|
+
React__default.createElement(
|
|
7133
7129
|
'em',
|
|
7134
7130
|
null,
|
|
7135
7131
|
node.caption
|
|
@@ -7148,34 +7144,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7148
7144
|
var showAuthorDetails = arguments[7];
|
|
7149
7145
|
|
|
7150
7146
|
if (authorName && authorURL) {
|
|
7151
|
-
return React__default
|
|
7147
|
+
return React__default.createElement(
|
|
7152
7148
|
'span',
|
|
7153
7149
|
null,
|
|
7154
|
-
React__default
|
|
7150
|
+
React__default.createElement(
|
|
7155
7151
|
'a',
|
|
7156
7152
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7157
7153
|
authorName
|
|
7158
7154
|
),
|
|
7159
|
-
showAuthorDetails && React__default
|
|
7155
|
+
showAuthorDetails && React__default.createElement(
|
|
7160
7156
|
reactBootstrap.Card,
|
|
7161
7157
|
{ className: 'author-details-card-' + index },
|
|
7162
|
-
React__default
|
|
7158
|
+
React__default.createElement(
|
|
7163
7159
|
reactBootstrap.Row,
|
|
7164
7160
|
null,
|
|
7165
|
-
profileImage && React__default
|
|
7161
|
+
profileImage && React__default.createElement(
|
|
7166
7162
|
reactBootstrap.Col,
|
|
7167
7163
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7168
|
-
React__default
|
|
7164
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7169
7165
|
),
|
|
7170
|
-
React__default
|
|
7166
|
+
React__default.createElement(
|
|
7171
7167
|
reactBootstrap.Col,
|
|
7172
7168
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7173
|
-
React__default
|
|
7169
|
+
React__default.createElement(
|
|
7174
7170
|
'div',
|
|
7175
7171
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7176
7172
|
authorName
|
|
7177
7173
|
),
|
|
7178
|
-
React__default
|
|
7174
|
+
React__default.createElement(
|
|
7179
7175
|
'p',
|
|
7180
7176
|
null,
|
|
7181
7177
|
biography
|
|
@@ -7183,7 +7179,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7183
7179
|
)
|
|
7184
7180
|
)
|
|
7185
7181
|
),
|
|
7186
|
-
React__default
|
|
7182
|
+
React__default.createElement(
|
|
7187
7183
|
'style',
|
|
7188
7184
|
{ jsx: 'true' },
|
|
7189
7185
|
'\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 '
|
|
@@ -7191,7 +7187,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7191
7187
|
length !== index + 1 && ', '
|
|
7192
7188
|
);
|
|
7193
7189
|
} else if (authorName) {
|
|
7194
|
-
return React__default
|
|
7190
|
+
return React__default.createElement(
|
|
7195
7191
|
'span',
|
|
7196
7192
|
{ key: index },
|
|
7197
7193
|
authorName,
|
|
@@ -7293,7 +7289,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7293
7289
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7294
7290
|
data.push({ title: vid.title, thumbnail: urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
|
|
7295
7291
|
} else {
|
|
7296
|
-
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$
|
|
7292
|
+
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$3.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7297
7293
|
}
|
|
7298
7294
|
}
|
|
7299
7295
|
});
|
|
@@ -7353,7 +7349,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7353
7349
|
//Small pause before starting next video
|
|
7354
7350
|
setTimeout(function () {
|
|
7355
7351
|
//Youtube API to start video playing automatically
|
|
7356
|
-
var id = index$
|
|
7352
|
+
var id = index$3.getYoutubeId(vidUrl);
|
|
7357
7353
|
event.target.loadVideoById(id);
|
|
7358
7354
|
}, 1500);
|
|
7359
7355
|
};
|
|
@@ -7463,44 +7459,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7463
7459
|
}
|
|
7464
7460
|
};
|
|
7465
7461
|
|
|
7466
|
-
return React__default
|
|
7462
|
+
return React__default.createElement(
|
|
7467
7463
|
'div',
|
|
7468
7464
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7469
|
-
React__default
|
|
7465
|
+
React__default.createElement(
|
|
7470
7466
|
'div',
|
|
7471
7467
|
{ className: 'mt-2 mb-5' },
|
|
7472
|
-
series && React__default
|
|
7468
|
+
series && React__default.createElement(
|
|
7473
7469
|
'div',
|
|
7474
7470
|
{ style: { fontSize: '0.9rem' } },
|
|
7475
7471
|
article.title,
|
|
7476
7472
|
' - Episode ',
|
|
7477
7473
|
series
|
|
7478
7474
|
),
|
|
7479
|
-
Videos[series - 1] && React__default
|
|
7475
|
+
Videos[series - 1] && React__default.createElement(
|
|
7480
7476
|
'h1',
|
|
7481
7477
|
{ className: 'mb-3' },
|
|
7482
7478
|
Videos[series - 1].title
|
|
7483
7479
|
),
|
|
7484
|
-
React__default
|
|
7480
|
+
React__default.createElement(
|
|
7485
7481
|
'div',
|
|
7486
7482
|
null,
|
|
7487
7483
|
moment.moment(article.published).format('LL')
|
|
7488
7484
|
),
|
|
7489
|
-
React__default
|
|
7485
|
+
React__default.createElement(
|
|
7490
7486
|
'div',
|
|
7491
7487
|
{ className: 'mb-3' },
|
|
7492
7488
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7493
|
-
return React__default
|
|
7489
|
+
return React__default.createElement(
|
|
7494
7490
|
'span',
|
|
7495
7491
|
{ key: index },
|
|
7496
7492
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7497
7493
|
);
|
|
7498
7494
|
})
|
|
7499
7495
|
),
|
|
7500
|
-
React__default
|
|
7496
|
+
React__default.createElement(
|
|
7501
7497
|
'p',
|
|
7502
7498
|
null,
|
|
7503
|
-
React__default
|
|
7499
|
+
React__default.createElement(SocialShare, {
|
|
7504
7500
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7505
7501
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7506
7502
|
shareVia: meta.shareVia,
|
|
@@ -7515,22 +7511,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7515
7511
|
hideFacebook: meta.hideFBShare
|
|
7516
7512
|
})
|
|
7517
7513
|
),
|
|
7518
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7514
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7519
7515
|
'p',
|
|
7520
7516
|
{ className: 'mb-3' },
|
|
7521
|
-
React__default
|
|
7517
|
+
React__default.createElement(
|
|
7522
7518
|
'em',
|
|
7523
7519
|
null,
|
|
7524
7520
|
Videos[series - 1].intro
|
|
7525
7521
|
)
|
|
7526
7522
|
)
|
|
7527
7523
|
),
|
|
7528
|
-
React__default
|
|
7524
|
+
React__default.createElement(
|
|
7529
7525
|
'div',
|
|
7530
7526
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7531
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7527
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7532
7528
|
className: 'fluid-iframe',
|
|
7533
|
-
videoId: index$
|
|
7529
|
+
videoId: index$3.getYoutubeId(vidUrl),
|
|
7534
7530
|
opts: opts,
|
|
7535
7531
|
onReady: handleOnReady,
|
|
7536
7532
|
onPlay: handleOnPlay,
|
|
@@ -7539,10 +7535,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7539
7535
|
return handleOnEnd(e);
|
|
7540
7536
|
}
|
|
7541
7537
|
}),
|
|
7542
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7543
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7544
|
-
React__default
|
|
7545
|
-
series && React__default
|
|
7538
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7539
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7540
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7541
|
+
series && React__default.createElement(
|
|
7546
7542
|
'div',
|
|
7547
7543
|
{
|
|
7548
7544
|
className: 'vid-series',
|
|
@@ -7552,10 +7548,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7552
7548
|
maxHeight: '100%',
|
|
7553
7549
|
paddingBottom: '0'
|
|
7554
7550
|
} },
|
|
7555
|
-
React__default
|
|
7551
|
+
React__default.createElement(
|
|
7556
7552
|
'p',
|
|
7557
7553
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7558
|
-
React__default
|
|
7554
|
+
React__default.createElement(
|
|
7559
7555
|
'b',
|
|
7560
7556
|
{ style: { fontSize: '1.25em' } },
|
|
7561
7557
|
'Now Playing:'
|
|
@@ -7563,16 +7559,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7563
7559
|
' ',
|
|
7564
7560
|
seriesData[series ? series - 1 : 0].title
|
|
7565
7561
|
),
|
|
7566
|
-
vidUrl && React__default
|
|
7562
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7567
7563
|
)
|
|
7568
7564
|
),
|
|
7569
|
-
React__default
|
|
7570
|
-
React__default
|
|
7565
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7566
|
+
React__default.createElement(
|
|
7571
7567
|
'div',
|
|
7572
7568
|
{ className: 'vid-text' },
|
|
7573
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7569
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7574
7570
|
),
|
|
7575
|
-
React__default
|
|
7571
|
+
React__default.createElement(
|
|
7576
7572
|
'style',
|
|
7577
7573
|
{ jsx: 'true' },
|
|
7578
7574
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7580,14 +7576,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7580
7576
|
);
|
|
7581
7577
|
};
|
|
7582
7578
|
|
|
7583
|
-
var Poll
|
|
7584
|
-
var node = _ref.node
|
|
7585
|
-
_ref.client
|
|
7586
|
-
_ref.pageview
|
|
7587
|
-
_ref.videoAccountIDs
|
|
7588
|
-
|
|
7589
|
-
_ref.showVotes
|
|
7590
|
-
|
|
7579
|
+
var Poll = function Poll(_ref) {
|
|
7580
|
+
var node = _ref.node,
|
|
7581
|
+
client = _ref.client,
|
|
7582
|
+
pageview = _ref.pageview,
|
|
7583
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7584
|
+
onVote = _ref.onVote,
|
|
7585
|
+
_ref$showVotes = _ref.showVotes,
|
|
7586
|
+
getSerializers = _ref.getSerializers;
|
|
7591
7587
|
|
|
7592
7588
|
var _useState = React.useState(null),
|
|
7593
7589
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7625,67 +7621,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7625
7621
|
return acc;
|
|
7626
7622
|
}
|
|
7627
7623
|
}, 0);
|
|
7628
|
-
return React__default
|
|
7629
|
-
React__default
|
|
7624
|
+
return React__default.createElement(
|
|
7625
|
+
React__default.Fragment,
|
|
7630
7626
|
null,
|
|
7631
|
-
question && React__default
|
|
7627
|
+
question && React__default.createElement(
|
|
7632
7628
|
'p',
|
|
7633
7629
|
{ className: 'font-weight-bold' },
|
|
7634
7630
|
question
|
|
7635
7631
|
),
|
|
7636
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7632
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7637
7633
|
'form',
|
|
7638
7634
|
{ onSubmit: function onSubmit(e) {
|
|
7639
7635
|
return onSubmitPoll(e);
|
|
7640
7636
|
} },
|
|
7641
7637
|
choices && choices.map(function (choice) {
|
|
7642
|
-
return React__default
|
|
7638
|
+
return React__default.createElement(
|
|
7643
7639
|
'div',
|
|
7644
7640
|
{ key: choice._key },
|
|
7645
|
-
React__default
|
|
7641
|
+
React__default.createElement(
|
|
7646
7642
|
'label',
|
|
7647
7643
|
{ className: 'pl-2' },
|
|
7648
|
-
React__default
|
|
7644
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7649
7645
|
return setSelectedChoice(e.target.value);
|
|
7650
7646
|
} }),
|
|
7651
7647
|
' ' + choice.choiceText
|
|
7652
7648
|
)
|
|
7653
7649
|
);
|
|
7654
7650
|
}),
|
|
7655
|
-
React__default
|
|
7651
|
+
React__default.createElement(
|
|
7656
7652
|
reactBootstrap.Button,
|
|
7657
7653
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7658
7654
|
'Vote'
|
|
7659
7655
|
)
|
|
7660
7656
|
),
|
|
7661
|
-
React__default
|
|
7657
|
+
React__default.createElement(
|
|
7662
7658
|
'div',
|
|
7663
7659
|
{ className: 'progress-container' },
|
|
7664
7660
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7665
7661
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7666
|
-
return React__default
|
|
7662
|
+
return React__default.createElement(
|
|
7667
7663
|
'div',
|
|
7668
7664
|
{ key: choice._key, className: 'mb-3' },
|
|
7669
|
-
React__default
|
|
7665
|
+
React__default.createElement(
|
|
7670
7666
|
'div',
|
|
7671
7667
|
{ className: 'correct-answer' },
|
|
7672
|
-
React__default
|
|
7668
|
+
React__default.createElement(
|
|
7673
7669
|
'div',
|
|
7674
7670
|
null,
|
|
7675
7671
|
choice.choiceText
|
|
7676
7672
|
),
|
|
7677
|
-
choice.choiceAnswer === true && React__default
|
|
7673
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7678
7674
|
'div',
|
|
7679
7675
|
null,
|
|
7680
|
-
React__default
|
|
7676
|
+
React__default.createElement(
|
|
7681
7677
|
'span',
|
|
7682
7678
|
{ style: { color: 'limegreen' } },
|
|
7683
7679
|
'Correct!'
|
|
7684
7680
|
)
|
|
7685
7681
|
)
|
|
7686
7682
|
),
|
|
7687
|
-
React__default
|
|
7688
|
-
React__default
|
|
7683
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7684
|
+
React__default.createElement(
|
|
7689
7685
|
'span',
|
|
7690
7686
|
{ className: 'float-right' },
|
|
7691
7687
|
percentage,
|
|
@@ -7696,14 +7692,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7696
7692
|
);
|
|
7697
7693
|
})
|
|
7698
7694
|
),
|
|
7699
|
-
showAnswer && React__default
|
|
7695
|
+
showAnswer && React__default.createElement(
|
|
7700
7696
|
'h4',
|
|
7701
7697
|
{ className: 'text-center small p-3' },
|
|
7702
7698
|
'Total Votes: ',
|
|
7703
7699
|
choicesTotalCount
|
|
7704
7700
|
),
|
|
7705
|
-
showAnswer && response && React__default
|
|
7706
|
-
React__default
|
|
7701
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7702
|
+
React__default.createElement(
|
|
7707
7703
|
'style',
|
|
7708
7704
|
{ jsx: 'true' },
|
|
7709
7705
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7721,22 +7717,22 @@ core_getIteratorMethod._export(core_getIteratorMethod._export.S, 'Object', {
|
|
|
7721
7717
|
}
|
|
7722
7718
|
});
|
|
7723
7719
|
|
|
7724
|
-
var values
|
|
7720
|
+
var values = core_getIteratorMethod._core.Object.values;
|
|
7725
7721
|
|
|
7726
|
-
var values = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7727
|
-
module.exports = { "default": values
|
|
7722
|
+
var values$1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7723
|
+
module.exports = { "default": values, __esModule: true };
|
|
7728
7724
|
});
|
|
7729
7725
|
|
|
7730
|
-
var _Object$values = _commonjsHelpers.unwrapExports(values);
|
|
7726
|
+
var _Object$values = _commonjsHelpers.unwrapExports(values$1);
|
|
7731
7727
|
|
|
7732
|
-
var Poll = function Poll(_ref) {
|
|
7733
|
-
var node = _ref.node
|
|
7734
|
-
_ref.client
|
|
7735
|
-
_ref.pageview
|
|
7736
|
-
_ref.videoAccountIDs
|
|
7737
|
-
|
|
7738
|
-
_ref.showVotes
|
|
7739
|
-
|
|
7728
|
+
var Poll$1 = function Poll(_ref) {
|
|
7729
|
+
var node = _ref.node,
|
|
7730
|
+
client = _ref.client,
|
|
7731
|
+
pageview = _ref.pageview,
|
|
7732
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7733
|
+
onVote = _ref.onVote,
|
|
7734
|
+
_ref$showVotes = _ref.showVotes,
|
|
7735
|
+
getSerializers = _ref.getSerializers;
|
|
7740
7736
|
|
|
7741
7737
|
var _useState = React.useState(null),
|
|
7742
7738
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7802,67 +7798,67 @@ var Poll = function Poll(_ref) {
|
|
|
7802
7798
|
return acc;
|
|
7803
7799
|
}
|
|
7804
7800
|
}, 0);
|
|
7805
|
-
return React__default
|
|
7806
|
-
React__default
|
|
7801
|
+
return React__default.createElement(
|
|
7802
|
+
React__default.Fragment,
|
|
7807
7803
|
null,
|
|
7808
|
-
question && React__default
|
|
7804
|
+
question && React__default.createElement(
|
|
7809
7805
|
'p',
|
|
7810
7806
|
{ className: 'font-weight-bold' },
|
|
7811
7807
|
question
|
|
7812
7808
|
),
|
|
7813
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7809
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7814
7810
|
'form',
|
|
7815
7811
|
{ onSubmit: function onSubmit(e) {
|
|
7816
7812
|
return onSubmitPoll(e);
|
|
7817
7813
|
} },
|
|
7818
7814
|
choices && choices.map(function (choice) {
|
|
7819
|
-
return React__default
|
|
7815
|
+
return React__default.createElement(
|
|
7820
7816
|
'div',
|
|
7821
7817
|
{ key: choice._key },
|
|
7822
|
-
React__default
|
|
7818
|
+
React__default.createElement(
|
|
7823
7819
|
'label',
|
|
7824
7820
|
{ className: 'pl-2' },
|
|
7825
|
-
React__default
|
|
7821
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7826
7822
|
return setSelectedChoice(e.target.value);
|
|
7827
7823
|
} }),
|
|
7828
7824
|
' ' + choice.choiceText
|
|
7829
7825
|
)
|
|
7830
7826
|
);
|
|
7831
7827
|
}),
|
|
7832
|
-
React__default
|
|
7828
|
+
React__default.createElement(
|
|
7833
7829
|
reactBootstrap.Button,
|
|
7834
7830
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7835
7831
|
'Vote'
|
|
7836
7832
|
)
|
|
7837
7833
|
),
|
|
7838
|
-
React__default
|
|
7834
|
+
React__default.createElement(
|
|
7839
7835
|
'div',
|
|
7840
7836
|
{ className: 'progress-container' },
|
|
7841
7837
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7842
7838
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7843
|
-
return React__default
|
|
7839
|
+
return React__default.createElement(
|
|
7844
7840
|
'div',
|
|
7845
7841
|
{ key: choice._key, className: 'mb-3' },
|
|
7846
|
-
React__default
|
|
7842
|
+
React__default.createElement(
|
|
7847
7843
|
'div',
|
|
7848
7844
|
{ className: 'correct-answer' },
|
|
7849
|
-
React__default
|
|
7845
|
+
React__default.createElement(
|
|
7850
7846
|
'div',
|
|
7851
7847
|
null,
|
|
7852
7848
|
choice.choiceText
|
|
7853
7849
|
),
|
|
7854
|
-
choice.choiceAnswer === true && React__default
|
|
7850
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7855
7851
|
'div',
|
|
7856
7852
|
null,
|
|
7857
|
-
React__default
|
|
7853
|
+
React__default.createElement(
|
|
7858
7854
|
'span',
|
|
7859
7855
|
{ style: { color: 'limegreen' } },
|
|
7860
7856
|
'Correct!'
|
|
7861
7857
|
)
|
|
7862
7858
|
)
|
|
7863
7859
|
),
|
|
7864
|
-
React__default
|
|
7865
|
-
React__default
|
|
7860
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7861
|
+
React__default.createElement(
|
|
7866
7862
|
'span',
|
|
7867
7863
|
{ className: 'float-right' },
|
|
7868
7864
|
percentage,
|
|
@@ -7873,14 +7869,14 @@ var Poll = function Poll(_ref) {
|
|
|
7873
7869
|
);
|
|
7874
7870
|
})
|
|
7875
7871
|
),
|
|
7876
|
-
showAnswer && React__default
|
|
7872
|
+
showAnswer && React__default.createElement(
|
|
7877
7873
|
'h4',
|
|
7878
7874
|
{ className: 'text-center small p-3' },
|
|
7879
7875
|
'Total Votes: ',
|
|
7880
7876
|
choicesTotalCount
|
|
7881
7877
|
),
|
|
7882
|
-
showAnswer && response && React__default
|
|
7883
|
-
React__default
|
|
7878
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7879
|
+
React__default.createElement(
|
|
7884
7880
|
'style',
|
|
7885
7881
|
{ jsx: 'true' },
|
|
7886
7882
|
'\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 '
|
|
@@ -8006,34 +8002,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
8006
8002
|
};
|
|
8007
8003
|
|
|
8008
8004
|
var renderPagination = function renderPagination() {
|
|
8009
|
-
return React__default
|
|
8010
|
-
|
|
8005
|
+
return React__default.createElement(
|
|
8006
|
+
Pagination,
|
|
8011
8007
|
{ className: 'p-0 m-0', size: main.main_42 && 'sm' },
|
|
8012
|
-
React__default
|
|
8008
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
8013
8009
|
return changePage('first');
|
|
8014
8010
|
}, disabled: currentPage === 1 }),
|
|
8015
|
-
React__default
|
|
8011
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
8016
8012
|
return changePage('prev');
|
|
8017
8013
|
}, disabled: currentPage === 1 }),
|
|
8018
|
-
React__default
|
|
8014
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
8019
8015
|
return renderNewPages('prev');
|
|
8020
8016
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
8021
8017
|
pages.map(function (page) {
|
|
8022
|
-
return React__default
|
|
8023
|
-
|
|
8018
|
+
return React__default.createElement(
|
|
8019
|
+
Pagination.Item,
|
|
8024
8020
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
8025
8021
|
return changePage(page);
|
|
8026
8022
|
} },
|
|
8027
8023
|
page
|
|
8028
8024
|
);
|
|
8029
8025
|
}),
|
|
8030
|
-
React__default
|
|
8026
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
8031
8027
|
return renderNewPages('next');
|
|
8032
8028
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
8033
|
-
React__default
|
|
8029
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
8034
8030
|
return changePage('next');
|
|
8035
8031
|
}, disabled: currentPage === pageCount }),
|
|
8036
|
-
React__default
|
|
8032
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
8037
8033
|
return changePage('last');
|
|
8038
8034
|
}, disabled: currentPage === pageCount })
|
|
8039
8035
|
);
|
|
@@ -8116,51 +8112,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8116
8112
|
}
|
|
8117
8113
|
};
|
|
8118
8114
|
|
|
8119
|
-
return React__default
|
|
8120
|
-
React__default
|
|
8115
|
+
return React__default.createElement(
|
|
8116
|
+
React__default.Fragment,
|
|
8121
8117
|
null,
|
|
8122
|
-
quizzes[currentPage - 1] && React__default
|
|
8123
|
-
React__default
|
|
8118
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8119
|
+
React__default.Fragment,
|
|
8124
8120
|
null,
|
|
8125
|
-
React__default
|
|
8126
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default
|
|
8121
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8122
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8127
8123
|
'form',
|
|
8128
8124
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8129
8125
|
return e.preventDefault();
|
|
8130
8126
|
} },
|
|
8131
8127
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8132
|
-
return React__default
|
|
8128
|
+
return React__default.createElement(
|
|
8133
8129
|
'div',
|
|
8134
8130
|
{ key: answer._key },
|
|
8135
|
-
React__default
|
|
8131
|
+
React__default.createElement(
|
|
8136
8132
|
'label',
|
|
8137
8133
|
{ className: 'pl-2' },
|
|
8138
|
-
quizzes[currentPage - 1].multiAnswer ? React__default
|
|
8134
|
+
quizzes[currentPage - 1].multiAnswer ? React__default.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React__default.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8139
8135
|
' ' + answer.answerText
|
|
8140
8136
|
)
|
|
8141
8137
|
);
|
|
8142
8138
|
})
|
|
8143
8139
|
)
|
|
8144
8140
|
),
|
|
8145
|
-
!showAnswer && React__default
|
|
8146
|
-
|
|
8141
|
+
!showAnswer && React__default.createElement(
|
|
8142
|
+
Button,
|
|
8147
8143
|
{ onClick: function onClick() {
|
|
8148
8144
|
return checkAnswers();
|
|
8149
8145
|
}, variant: 'info', block: true },
|
|
8150
8146
|
'Please click here for answer'
|
|
8151
8147
|
),
|
|
8152
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
8153
|
-
React__default
|
|
8148
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8149
|
+
React__default.Fragment,
|
|
8154
8150
|
null,
|
|
8155
|
-
React__default
|
|
8151
|
+
React__default.createElement(
|
|
8156
8152
|
'h4',
|
|
8157
8153
|
null,
|
|
8158
8154
|
'Answer:'
|
|
8159
8155
|
),
|
|
8160
|
-
quizzes[currentPage - 1].answer && React__default
|
|
8156
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8161
8157
|
),
|
|
8162
|
-
React__default
|
|
8163
|
-
pageCount > 1 && React__default
|
|
8158
|
+
React__default.createElement('br', null),
|
|
8159
|
+
pageCount > 1 && React__default.createElement(
|
|
8164
8160
|
'div',
|
|
8165
8161
|
{ className: 'd-flex justify-content-center' },
|
|
8166
8162
|
renderPagination()
|
|
@@ -8171,19 +8167,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8171
8167
|
var Leads = function Leads(_ref) {
|
|
8172
8168
|
var url = _ref.url;
|
|
8173
8169
|
|
|
8174
|
-
return React__default
|
|
8170
|
+
return React__default.createElement(
|
|
8175
8171
|
'div',
|
|
8176
8172
|
{ className: 'd-block text-center mb-3' },
|
|
8177
|
-
React__default
|
|
8173
|
+
React__default.createElement(
|
|
8178
8174
|
'style',
|
|
8179
8175
|
{ jsx: 'true' },
|
|
8180
8176
|
'\n @media screen and (max-width: 1190px) {\n .leads-block {\n min-height: 2000px;\n }\n }\n @media screen and (min-width: 1191px) {\n .leads-block {\n min-height: 1500px;\n }\n }\n '
|
|
8181
8177
|
),
|
|
8182
|
-
url && React__default
|
|
8178
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8183
8179
|
);
|
|
8184
8180
|
};
|
|
8185
8181
|
|
|
8186
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8182
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8187
8183
|
var slides = _ref.node.slides,
|
|
8188
8184
|
client = _ref.client,
|
|
8189
8185
|
pageview = _ref.pageview,
|
|
@@ -8219,53 +8215,53 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8219
8215
|
setCarouselIndex(selectedIndex);
|
|
8220
8216
|
};
|
|
8221
8217
|
|
|
8222
|
-
return React__default
|
|
8218
|
+
return React__default.createElement(
|
|
8223
8219
|
'div',
|
|
8224
8220
|
{ className: 'mt-3 mb-4' },
|
|
8225
|
-
React__default
|
|
8221
|
+
React__default.createElement(
|
|
8226
8222
|
reactBootstrap.Carousel,
|
|
8227
8223
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8228
8224
|
slides && slides.map(function (slide) {
|
|
8229
8225
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8230
|
-
return React__default
|
|
8226
|
+
return React__default.createElement(
|
|
8231
8227
|
reactBootstrap.Carousel.Item,
|
|
8232
8228
|
{ key: slide._key },
|
|
8233
|
-
React__default
|
|
8229
|
+
React__default.createElement(
|
|
8234
8230
|
'a',
|
|
8235
8231
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8236
|
-
React__default
|
|
8232
|
+
React__default.createElement(
|
|
8237
8233
|
'div',
|
|
8238
8234
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8239
|
-
React__default
|
|
8235
|
+
React__default.createElement(
|
|
8240
8236
|
index$2.LazyLoad,
|
|
8241
8237
|
null,
|
|
8242
|
-
React__default
|
|
8238
|
+
React__default.createElement(
|
|
8243
8239
|
'picture',
|
|
8244
8240
|
null,
|
|
8245
|
-
React__default
|
|
8246
|
-
React__default
|
|
8247
|
-
React__default
|
|
8248
|
-
React__default
|
|
8241
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8242
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8243
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8244
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8249
8245
|
)
|
|
8250
8246
|
)
|
|
8251
8247
|
)
|
|
8252
8248
|
),
|
|
8253
|
-
React__default
|
|
8249
|
+
React__default.createElement(
|
|
8254
8250
|
'div',
|
|
8255
8251
|
{ className: 'p-2' },
|
|
8256
|
-
slide.slideshowImage.caption && React__default
|
|
8252
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8257
8253
|
'h3',
|
|
8258
8254
|
{ style: { padding: '0px' } },
|
|
8259
8255
|
slide.slideshowImage.caption
|
|
8260
8256
|
),
|
|
8261
|
-
slide.description && React__default
|
|
8257
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8262
8258
|
)
|
|
8263
8259
|
);
|
|
8264
8260
|
}
|
|
8265
8261
|
return null;
|
|
8266
8262
|
})
|
|
8267
8263
|
),
|
|
8268
|
-
React__default
|
|
8264
|
+
React__default.createElement(
|
|
8269
8265
|
'style',
|
|
8270
8266
|
{ jsx: 'true' },
|
|
8271
8267
|
'\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 '
|
|
@@ -8284,10 +8280,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8284
8280
|
sizes = _props$node.sizes,
|
|
8285
8281
|
sizeMapping = _props$node.sizeMapping;
|
|
8286
8282
|
|
|
8287
|
-
return React__default
|
|
8283
|
+
return React__default.createElement(
|
|
8288
8284
|
'div',
|
|
8289
8285
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8290
|
-
React__default
|
|
8286
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8291
8287
|
);
|
|
8292
8288
|
};
|
|
8293
8289
|
|
|
@@ -8298,15 +8294,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8298
8294
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8299
8295
|
|
|
8300
8296
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8301
|
-
return React__default
|
|
8297
|
+
return React__default.createElement(
|
|
8302
8298
|
'section',
|
|
8303
8299
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8304
|
-
Caption && React__default
|
|
8300
|
+
Caption && React__default.createElement(
|
|
8305
8301
|
'h4',
|
|
8306
8302
|
{ className: 'formstack-caption' },
|
|
8307
8303
|
Caption
|
|
8308
8304
|
),
|
|
8309
|
-
React__default
|
|
8305
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8310
8306
|
);
|
|
8311
8307
|
};
|
|
8312
8308
|
|
|
@@ -8322,36 +8318,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8322
8318
|
}
|
|
8323
8319
|
});
|
|
8324
8320
|
if (medias && medias.length > 0) {
|
|
8325
|
-
return React__default
|
|
8321
|
+
return React__default.createElement(
|
|
8326
8322
|
'div',
|
|
8327
8323
|
{ className: 'multi-media-container' },
|
|
8328
|
-
React__default
|
|
8329
|
-
|
|
8324
|
+
React__default.createElement(
|
|
8325
|
+
Row,
|
|
8330
8326
|
{ noGutters: true },
|
|
8331
8327
|
medias.map(function (media) {
|
|
8332
|
-
return React__default
|
|
8333
|
-
|
|
8328
|
+
return React__default.createElement(
|
|
8329
|
+
Col,
|
|
8334
8330
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8335
|
-
React__default
|
|
8331
|
+
React__default.createElement(
|
|
8336
8332
|
'a',
|
|
8337
8333
|
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8338
8334
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8339
|
-
React__default
|
|
8335
|
+
React__default.createElement(
|
|
8340
8336
|
'div',
|
|
8341
8337
|
{ className: 'multi-media-image-container' },
|
|
8342
|
-
imageBox && React__default
|
|
8338
|
+
imageBox && React__default.createElement(
|
|
8343
8339
|
index$2.LazyLoad,
|
|
8344
8340
|
{ once: true },
|
|
8345
|
-
React__default
|
|
8341
|
+
React__default.createElement(
|
|
8346
8342
|
'picture',
|
|
8347
8343
|
null,
|
|
8348
|
-
React__default
|
|
8349
|
-
React__default
|
|
8350
|
-
React__default
|
|
8351
|
-
React__default
|
|
8344
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8345
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8346
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8347
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8352
8348
|
)
|
|
8353
8349
|
),
|
|
8354
|
-
media.caption && React__default
|
|
8350
|
+
media.caption && React__default.createElement(
|
|
8355
8351
|
'span',
|
|
8356
8352
|
{ className: 'multi-media-caption' },
|
|
8357
8353
|
media.caption
|
|
@@ -8361,7 +8357,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8361
8357
|
);
|
|
8362
8358
|
})
|
|
8363
8359
|
),
|
|
8364
|
-
React__default
|
|
8360
|
+
React__default.createElement(
|
|
8365
8361
|
'style',
|
|
8366
8362
|
{ jsx: 'true' },
|
|
8367
8363
|
'\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 '
|
|
@@ -8372,12 +8368,12 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8372
8368
|
};
|
|
8373
8369
|
|
|
8374
8370
|
var InscreenSensor = function (_React$Component) {
|
|
8375
|
-
inherits._inherits(InscreenSensor, _React$Component);
|
|
8371
|
+
inherits$1._inherits(InscreenSensor, _React$Component);
|
|
8376
8372
|
|
|
8377
8373
|
function InscreenSensor(props) {
|
|
8378
|
-
inherits._classCallCheck(this, InscreenSensor);
|
|
8374
|
+
inherits$1._classCallCheck(this, InscreenSensor);
|
|
8379
8375
|
|
|
8380
|
-
var _this = inherits._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8376
|
+
var _this = inherits$1._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$1._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8381
8377
|
|
|
8382
8378
|
_this.scrollHandler = function () {
|
|
8383
8379
|
var visible = _this.checkInside();
|
|
@@ -8408,12 +8404,12 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8408
8404
|
}
|
|
8409
8405
|
};
|
|
8410
8406
|
|
|
8411
|
-
_this.wraperRef = React__default
|
|
8407
|
+
_this.wraperRef = React__default.createRef();
|
|
8412
8408
|
_this.visible = false;
|
|
8413
8409
|
return _this;
|
|
8414
8410
|
}
|
|
8415
8411
|
|
|
8416
|
-
inherits._createClass(InscreenSensor, [{
|
|
8412
|
+
inherits$1._createClass(InscreenSensor, [{
|
|
8417
8413
|
key: 'componentDidMount',
|
|
8418
8414
|
value: function componentDidMount() {
|
|
8419
8415
|
this.visible = this.checkInside();
|
|
@@ -8436,7 +8432,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8436
8432
|
_props$id = _props.id,
|
|
8437
8433
|
id = _props$id === undefined ? '' : _props$id;
|
|
8438
8434
|
|
|
8439
|
-
return React__default
|
|
8435
|
+
return React__default.createElement(
|
|
8440
8436
|
'div',
|
|
8441
8437
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8442
8438
|
this.props.children
|
|
@@ -8445,7 +8441,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8445
8441
|
}]);
|
|
8446
8442
|
|
|
8447
8443
|
return InscreenSensor;
|
|
8448
|
-
}(React__default
|
|
8444
|
+
}(React__default.Component);
|
|
8449
8445
|
|
|
8450
8446
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8451
8447
|
var nodes = _ref.nodes,
|
|
@@ -8554,33 +8550,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8554
8550
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8555
8551
|
var showReading = show ? 'showReading' : '';
|
|
8556
8552
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8557
|
-
return React__default
|
|
8553
|
+
return React__default.createElement(
|
|
8558
8554
|
'div',
|
|
8559
8555
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8560
|
-
React__default
|
|
8556
|
+
React__default.createElement(
|
|
8561
8557
|
'a',
|
|
8562
8558
|
{ onClick: function onClick(e) {
|
|
8563
8559
|
return articleCardClickHandler(e);
|
|
8564
8560
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8565
|
-
React__default
|
|
8561
|
+
React__default.createElement(
|
|
8566
8562
|
'div',
|
|
8567
8563
|
{ className: 'prevNext-thumbnail' },
|
|
8568
|
-
React__default
|
|
8569
|
-
React__default
|
|
8564
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8565
|
+
React__default.createElement(
|
|
8570
8566
|
'div',
|
|
8571
8567
|
{ className: 'prevNext-reading ' + showReading },
|
|
8572
8568
|
articleLabel
|
|
8573
8569
|
)
|
|
8574
8570
|
),
|
|
8575
|
-
React__default
|
|
8571
|
+
React__default.createElement(
|
|
8576
8572
|
'div',
|
|
8577
8573
|
{ className: 'prevNext-summary' },
|
|
8578
|
-
React__default
|
|
8574
|
+
React__default.createElement(
|
|
8579
8575
|
'div',
|
|
8580
8576
|
{ className: 'prevNext-publishDate' },
|
|
8581
8577
|
moment.moment(article.published).format('LL')
|
|
8582
8578
|
),
|
|
8583
|
-
React__default
|
|
8579
|
+
React__default.createElement(
|
|
8584
8580
|
'h2',
|
|
8585
8581
|
{ className: 'prevNext-title' },
|
|
8586
8582
|
article.title
|
|
@@ -8629,7 +8625,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8629
8625
|
|
|
8630
8626
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8631
8627
|
if (biography) {
|
|
8632
|
-
return React__default
|
|
8628
|
+
return React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8633
8629
|
}
|
|
8634
8630
|
};
|
|
8635
8631
|
|
|
@@ -8787,38 +8783,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8787
8783
|
setSensorVisible(false);
|
|
8788
8784
|
};
|
|
8789
8785
|
|
|
8790
|
-
return React__default
|
|
8791
|
-
React__default
|
|
8786
|
+
return React__default.createElement(
|
|
8787
|
+
React__default.Fragment,
|
|
8792
8788
|
null,
|
|
8793
|
-
React__default
|
|
8789
|
+
React__default.createElement(
|
|
8794
8790
|
'div',
|
|
8795
8791
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8796
|
-
React__default
|
|
8792
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8797
8793
|
return handleArrowClick();
|
|
8798
8794
|
} })
|
|
8799
8795
|
),
|
|
8800
|
-
React__default
|
|
8801
|
-
React__default
|
|
8796
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8797
|
+
React__default.createElement(
|
|
8802
8798
|
'div',
|
|
8803
8799
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8804
|
-
React__default
|
|
8800
|
+
React__default.createElement(
|
|
8805
8801
|
'h5',
|
|
8806
8802
|
{ className: 'objective-title' },
|
|
8807
8803
|
nodes.seriesTitle
|
|
8808
8804
|
),
|
|
8809
|
-
React__default
|
|
8805
|
+
React__default.createElement(
|
|
8810
8806
|
'div',
|
|
8811
8807
|
{ className: 'prevNextWrapper' },
|
|
8812
8808
|
PrevNextCards(false, -1)
|
|
8813
8809
|
)
|
|
8814
8810
|
),
|
|
8815
|
-
React__default
|
|
8816
|
-
React__default
|
|
8811
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8812
|
+
React__default.createElement(
|
|
8817
8813
|
'div',
|
|
8818
8814
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8819
8815
|
main.main_43 && Ads.map(function (ad, index) {
|
|
8820
8816
|
if (index === 0) {
|
|
8821
|
-
return React__default
|
|
8817
|
+
return React__default.createElement(
|
|
8822
8818
|
'div',
|
|
8823
8819
|
{
|
|
8824
8820
|
key: 'addid-1',
|
|
@@ -8838,14 +8834,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8838
8834
|
}
|
|
8839
8835
|
})
|
|
8840
8836
|
),
|
|
8841
|
-
React__default
|
|
8837
|
+
React__default.createElement(
|
|
8842
8838
|
'div',
|
|
8843
8839
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8844
8840
|
Articles.map(function (article, index) {
|
|
8845
|
-
return React__default
|
|
8841
|
+
return React__default.createElement(
|
|
8846
8842
|
'div',
|
|
8847
8843
|
{ key: article.title },
|
|
8848
|
-
React__default
|
|
8844
|
+
React__default.createElement(
|
|
8849
8845
|
InscreenSensor,
|
|
8850
8846
|
{
|
|
8851
8847
|
visible: sensorVisible,
|
|
@@ -8863,84 +8859,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8863
8859
|
}
|
|
8864
8860
|
}
|
|
8865
8861
|
} },
|
|
8866
|
-
React__default
|
|
8867
|
-
|
|
8862
|
+
React__default.createElement(
|
|
8863
|
+
Head,
|
|
8868
8864
|
null,
|
|
8869
|
-
currentTitle !== null && React__default
|
|
8865
|
+
currentTitle !== null && React__default.createElement(
|
|
8870
8866
|
'title',
|
|
8871
8867
|
{ key: 'title' },
|
|
8872
8868
|
currentTitle
|
|
8873
8869
|
),
|
|
8874
|
-
currentSummary !== null && React__default
|
|
8875
|
-
currentURL !== null && React__default
|
|
8876
|
-
currentTitle !== null && React__default
|
|
8877
|
-
currentThumbnail !== null && React__default
|
|
8878
|
-
currentSummary !== null && React__default
|
|
8879
|
-
currentTitle !== null && React__default
|
|
8880
|
-
currentThumbnail !== null && React__default
|
|
8881
|
-
currentSummary !== null && React__default
|
|
8870
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8871
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8872
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8873
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8874
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8875
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8876
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8877
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8882
8878
|
),
|
|
8883
|
-
React__default
|
|
8879
|
+
React__default.createElement(
|
|
8884
8880
|
'article',
|
|
8885
8881
|
{ className: 'article-wrapper' },
|
|
8886
|
-
React__default
|
|
8882
|
+
React__default.createElement(
|
|
8887
8883
|
'div',
|
|
8888
8884
|
{ className: 'article-publishDate' },
|
|
8889
8885
|
moment.moment(article.published).format('LL')
|
|
8890
8886
|
),
|
|
8891
|
-
React__default
|
|
8887
|
+
React__default.createElement(
|
|
8892
8888
|
'div',
|
|
8893
8889
|
{ className: 'author-details-wrapper' },
|
|
8894
8890
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8895
|
-
return React__default
|
|
8891
|
+
return React__default.createElement(
|
|
8896
8892
|
'span',
|
|
8897
8893
|
{ key: index },
|
|
8898
8894
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8899
8895
|
);
|
|
8900
8896
|
})
|
|
8901
8897
|
),
|
|
8902
|
-
React__default
|
|
8898
|
+
React__default.createElement(
|
|
8903
8899
|
'h2',
|
|
8904
8900
|
{ className: 'article-title' },
|
|
8905
8901
|
article.title
|
|
8906
8902
|
),
|
|
8907
|
-
React__default
|
|
8903
|
+
React__default.createElement(
|
|
8908
8904
|
'div',
|
|
8909
8905
|
{ className: 'mt-2 mb-2' },
|
|
8910
|
-
React__default
|
|
8906
|
+
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
8911
8907
|
serializers: getSerializers,
|
|
8912
8908
|
videoAccountIDs: accountIDs,
|
|
8913
8909
|
blocks: article.text,
|
|
8914
8910
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8915
8911
|
}, client.config())),
|
|
8916
|
-
React__default
|
|
8912
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8917
8913
|
),
|
|
8918
|
-
Articles.length > 1 && React__default
|
|
8919
|
-
React__default
|
|
8914
|
+
Articles.length > 1 && React__default.createElement(
|
|
8915
|
+
React__default.Fragment,
|
|
8920
8916
|
null,
|
|
8921
|
-
React__default
|
|
8917
|
+
React__default.createElement(
|
|
8922
8918
|
'div',
|
|
8923
8919
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8924
|
-
React__default
|
|
8920
|
+
React__default.createElement(
|
|
8925
8921
|
'h5',
|
|
8926
8922
|
{ className: 'objective-title' },
|
|
8927
8923
|
nodes.seriesTitle
|
|
8928
8924
|
),
|
|
8929
|
-
React__default
|
|
8925
|
+
React__default.createElement(
|
|
8930
8926
|
'div',
|
|
8931
8927
|
{ className: 'prevNextWrapper' },
|
|
8932
8928
|
PrevNextCards(true, index)
|
|
8933
8929
|
)
|
|
8934
8930
|
),
|
|
8935
|
-
React__default
|
|
8931
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8936
8932
|
)
|
|
8937
8933
|
),
|
|
8938
|
-
React__default
|
|
8934
|
+
React__default.createElement(
|
|
8939
8935
|
'div',
|
|
8940
8936
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8941
8937
|
main.main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8942
8938
|
if (innerIndex === 0) {
|
|
8943
|
-
return React__default
|
|
8939
|
+
return React__default.createElement(
|
|
8944
8940
|
'div',
|
|
8945
8941
|
{
|
|
8946
8942
|
key: 'addid-' + (index + 2),
|
|
@@ -8963,7 +8959,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8963
8959
|
)
|
|
8964
8960
|
);
|
|
8965
8961
|
}),
|
|
8966
|
-
React__default
|
|
8962
|
+
React__default.createElement(
|
|
8967
8963
|
'style',
|
|
8968
8964
|
{ jsx: 'true' },
|
|
8969
8965
|
'\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 '
|
|
@@ -8993,11 +8989,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8993
8989
|
};
|
|
8994
8990
|
}, [handleClickOutside]);
|
|
8995
8991
|
|
|
8996
|
-
return React__default
|
|
8992
|
+
return React__default.createElement(
|
|
8997
8993
|
'div',
|
|
8998
8994
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8999
|
-
React__default
|
|
9000
|
-
React__default
|
|
8995
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8996
|
+
React__default.createElement(
|
|
9001
8997
|
'style',
|
|
9002
8998
|
{ jsx: 'true' },
|
|
9003
8999
|
'\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 '
|
|
@@ -9011,7 +9007,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
9011
9007
|
}
|
|
9012
9008
|
};
|
|
9013
9009
|
|
|
9014
|
-
var FigureImage
|
|
9010
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
9015
9011
|
var node = _ref2.node,
|
|
9016
9012
|
client = _ref2.client,
|
|
9017
9013
|
imgAlt = _ref2.imgAlt,
|
|
@@ -9019,13 +9015,13 @@ var FigureImage$1 = React__default['default'].memo(function (_ref2) {
|
|
|
9019
9015
|
handleClickFigure = _ref2.handleClickFigure;
|
|
9020
9016
|
|
|
9021
9017
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9022
|
-
return React__default
|
|
9018
|
+
return React__default.createElement(
|
|
9023
9019
|
'picture',
|
|
9024
9020
|
null,
|
|
9025
|
-
React__default
|
|
9026
|
-
React__default
|
|
9027
|
-
React__default
|
|
9028
|
-
React__default
|
|
9021
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9022
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9023
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9024
|
+
React__default.createElement('img', _extends._extends({
|
|
9029
9025
|
style: figureImageStyle,
|
|
9030
9026
|
className: 'figure-image',
|
|
9031
9027
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9076,30 +9072,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9076
9072
|
|
|
9077
9073
|
var renderTooltip = function renderTooltip(props) {
|
|
9078
9074
|
if (infoBox[0].title) {
|
|
9079
|
-
return React__default
|
|
9080
|
-
|
|
9075
|
+
return React__default.createElement(
|
|
9076
|
+
Popover,
|
|
9081
9077
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9082
|
-
React__default
|
|
9083
|
-
|
|
9078
|
+
React__default.createElement(
|
|
9079
|
+
Popover.Title,
|
|
9084
9080
|
{ as: 'h3' },
|
|
9085
9081
|
infoBox[0].title
|
|
9086
9082
|
),
|
|
9087
|
-
React__default
|
|
9088
|
-
|
|
9083
|
+
React__default.createElement(
|
|
9084
|
+
Popover.Content,
|
|
9089
9085
|
null,
|
|
9090
|
-
React__default
|
|
9086
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9091
9087
|
)
|
|
9092
9088
|
);
|
|
9093
9089
|
} else {
|
|
9094
|
-
return React__default
|
|
9095
|
-
|
|
9090
|
+
return React__default.createElement(
|
|
9091
|
+
Tooltip,
|
|
9096
9092
|
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9097
|
-
React__default
|
|
9093
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9098
9094
|
);
|
|
9099
9095
|
}
|
|
9100
9096
|
};
|
|
9101
9097
|
|
|
9102
|
-
var FigureImageWOverLay = React__default
|
|
9098
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9103
9099
|
var node = _ref3.node,
|
|
9104
9100
|
client = _ref3.client,
|
|
9105
9101
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9109,13 +9105,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9109
9105
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9110
9106
|
var triggerAction = main.main_42 ? 'click' : 'hover';
|
|
9111
9107
|
var placementLocation = main.main_42 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9112
|
-
return React__default
|
|
9108
|
+
return React__default.createElement(
|
|
9113
9109
|
'picture',
|
|
9114
9110
|
null,
|
|
9115
|
-
React__default
|
|
9116
|
-
React__default
|
|
9117
|
-
React__default
|
|
9118
|
-
main.main_42 && link ? React__default
|
|
9111
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9112
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9113
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9114
|
+
main.main_42 && link ? React__default.createElement('img', _extends._extends({
|
|
9119
9115
|
style: figureImageStyle,
|
|
9120
9116
|
className: 'figure-image',
|
|
9121
9117
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9124,10 +9120,10 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9124
9120
|
onClick: function onClick() {
|
|
9125
9121
|
return handleClickFigure(node, client);
|
|
9126
9122
|
}
|
|
9127
|
-
})) : React__default
|
|
9128
|
-
|
|
9123
|
+
})) : React__default.createElement(
|
|
9124
|
+
OverlayTrigger,
|
|
9129
9125
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9130
|
-
React__default
|
|
9126
|
+
React__default.createElement('img', _extends._extends({
|
|
9131
9127
|
style: figureImageStyle,
|
|
9132
9128
|
className: 'figure-image',
|
|
9133
9129
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9181,13 +9177,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9181
9177
|
|
|
9182
9178
|
var FigureCaption = React.useCallback(function () {
|
|
9183
9179
|
if (imgcaption && imgcaption.length > 0) {
|
|
9184
|
-
return React__default
|
|
9180
|
+
return React__default.createElement(
|
|
9185
9181
|
'div',
|
|
9186
9182
|
{ className: 'figure-caption' },
|
|
9187
|
-
React__default
|
|
9183
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9188
9184
|
);
|
|
9189
9185
|
} else if (caption) {
|
|
9190
|
-
return React__default
|
|
9186
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9191
9187
|
} else return null;
|
|
9192
9188
|
}, [caption, imgcaption]);
|
|
9193
9189
|
|
|
@@ -9204,24 +9200,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9204
9200
|
setShowLightbox(true);
|
|
9205
9201
|
}, [node, client]);
|
|
9206
9202
|
|
|
9207
|
-
return React__default
|
|
9208
|
-
React__default
|
|
9203
|
+
return React__default.createElement(
|
|
9204
|
+
React__default.Fragment,
|
|
9209
9205
|
null,
|
|
9210
|
-
infoBox.length >= 1 ? React__default
|
|
9211
|
-
|
|
9206
|
+
infoBox.length >= 1 ? React__default.createElement(
|
|
9207
|
+
Figure$1,
|
|
9212
9208
|
{ className: '' + class_name, style: figureStyle },
|
|
9213
|
-
link ? React__default
|
|
9209
|
+
link ? React__default.createElement(
|
|
9214
9210
|
'a',
|
|
9215
9211
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9216
|
-
React__default
|
|
9217
|
-
React__default
|
|
9218
|
-
) : React__default
|
|
9219
|
-
React__default
|
|
9212
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9213
|
+
React__default.createElement(FigureCaption, null)
|
|
9214
|
+
) : React__default.createElement(
|
|
9215
|
+
React__default.Fragment,
|
|
9220
9216
|
null,
|
|
9221
|
-
React__default
|
|
9222
|
-
React__default
|
|
9217
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9218
|
+
React__default.createElement(FigureCaption, null)
|
|
9223
9219
|
),
|
|
9224
|
-
React__default
|
|
9220
|
+
React__default.createElement(LightBox, {
|
|
9225
9221
|
showLightbox: showLightbox,
|
|
9226
9222
|
lightboxImgSrc: lightboxImgSrc,
|
|
9227
9223
|
closeLightbox: function closeLightbox() {
|
|
@@ -9229,21 +9225,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9229
9225
|
setShowLightbox(false);
|
|
9230
9226
|
}
|
|
9231
9227
|
})
|
|
9232
|
-
) : React__default
|
|
9233
|
-
|
|
9228
|
+
) : React__default.createElement(
|
|
9229
|
+
Figure$1,
|
|
9234
9230
|
{ className: '' + class_name, style: figureStyle },
|
|
9235
|
-
link ? React__default
|
|
9231
|
+
link ? React__default.createElement(
|
|
9236
9232
|
'a',
|
|
9237
9233
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9238
|
-
React__default
|
|
9239
|
-
React__default
|
|
9240
|
-
) : React__default
|
|
9241
|
-
React__default
|
|
9234
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9235
|
+
React__default.createElement(FigureCaption, null)
|
|
9236
|
+
) : React__default.createElement(
|
|
9237
|
+
React__default.Fragment,
|
|
9242
9238
|
null,
|
|
9243
|
-
React__default
|
|
9244
|
-
React__default
|
|
9239
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9240
|
+
React__default.createElement(FigureCaption, null)
|
|
9245
9241
|
),
|
|
9246
|
-
React__default
|
|
9242
|
+
React__default.createElement(LightBox, {
|
|
9247
9243
|
showLightbox: showLightbox,
|
|
9248
9244
|
lightboxImgSrc: lightboxImgSrc,
|
|
9249
9245
|
closeLightbox: function closeLightbox() {
|
|
@@ -9252,7 +9248,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9252
9248
|
}
|
|
9253
9249
|
})
|
|
9254
9250
|
),
|
|
9255
|
-
React__default
|
|
9251
|
+
React__default.createElement(
|
|
9256
9252
|
'style',
|
|
9257
9253
|
{ jsx: 'true' },
|
|
9258
9254
|
'\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 '
|
|
@@ -9260,7 +9256,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9260
9256
|
);
|
|
9261
9257
|
};
|
|
9262
9258
|
|
|
9263
|
-
var Figure = React__default
|
|
9259
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9264
9260
|
|
|
9265
9261
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9266
9262
|
React.useEffect(function () {
|
|
@@ -9277,7 +9273,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9277
9273
|
}, [ref]);
|
|
9278
9274
|
}
|
|
9279
9275
|
|
|
9280
|
-
var FigureImage = React__default
|
|
9276
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9281
9277
|
var imagesCount = _ref.imagesCount,
|
|
9282
9278
|
image = _ref.image,
|
|
9283
9279
|
client = _ref.client,
|
|
@@ -9285,13 +9281,13 @@ var FigureImage = React__default['default'].memo(function (_ref) {
|
|
|
9285
9281
|
link = _ref.link,
|
|
9286
9282
|
handleClickFigure = _ref.handleClickFigure;
|
|
9287
9283
|
|
|
9288
|
-
return React__default
|
|
9284
|
+
return React__default.createElement(
|
|
9289
9285
|
'picture',
|
|
9290
9286
|
null,
|
|
9291
|
-
React__default
|
|
9292
|
-
React__default
|
|
9293
|
-
React__default
|
|
9294
|
-
React__default
|
|
9287
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9288
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9289
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9290
|
+
React__default.createElement('img', _extends._extends({
|
|
9295
9291
|
'images-count': imagesCount,
|
|
9296
9292
|
className: 'multi-figure-image',
|
|
9297
9293
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9328,13 +9324,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9328
9324
|
imgcaption = _ref2.imgcaption;
|
|
9329
9325
|
|
|
9330
9326
|
if (imgcaption && imgcaption.length > 0) {
|
|
9331
|
-
return React__default
|
|
9327
|
+
return React__default.createElement(
|
|
9332
9328
|
'div',
|
|
9333
9329
|
{ className: 'multi-figure-caption' },
|
|
9334
|
-
React__default
|
|
9330
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9335
9331
|
);
|
|
9336
9332
|
} else if (caption) {
|
|
9337
|
-
return React__default
|
|
9333
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9338
9334
|
} else return null;
|
|
9339
9335
|
};
|
|
9340
9336
|
|
|
@@ -9343,7 +9339,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9343
9339
|
setOpenImg(true);
|
|
9344
9340
|
}, [client]);
|
|
9345
9341
|
|
|
9346
|
-
var FigureImageWOverLay = React__default
|
|
9342
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9347
9343
|
var imagesCount = _ref3.imagesCount,
|
|
9348
9344
|
image = _ref3.image,
|
|
9349
9345
|
client = _ref3.client,
|
|
@@ -9353,13 +9349,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9353
9349
|
|
|
9354
9350
|
var triggerAction = main.main_42 ? 'click' : 'hover';
|
|
9355
9351
|
var placementLocation = main.main_42 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9356
|
-
return React__default
|
|
9352
|
+
return React__default.createElement(
|
|
9357
9353
|
'picture',
|
|
9358
9354
|
null,
|
|
9359
|
-
React__default
|
|
9360
|
-
React__default
|
|
9361
|
-
React__default
|
|
9362
|
-
main.main_42 && link ? React__default
|
|
9355
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9356
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9357
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9358
|
+
main.main_42 && link ? React__default.createElement('img', _extends._extends({
|
|
9363
9359
|
'images-count': imagesCount,
|
|
9364
9360
|
className: 'multi-figure-image',
|
|
9365
9361
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9368,10 +9364,10 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9368
9364
|
onClick: function onClick() {
|
|
9369
9365
|
return handleClickFigure(image, client);
|
|
9370
9366
|
}
|
|
9371
|
-
})) : React__default
|
|
9372
|
-
|
|
9367
|
+
})) : React__default.createElement(
|
|
9368
|
+
OverlayTrigger,
|
|
9373
9369
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9374
|
-
React__default
|
|
9370
|
+
React__default.createElement('img', _extends._extends({
|
|
9375
9371
|
'images-count': imagesCount,
|
|
9376
9372
|
className: 'multi-figure-image',
|
|
9377
9373
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9387,102 +9383,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9387
9383
|
|
|
9388
9384
|
var renderTooltip = function renderTooltip(image) {
|
|
9389
9385
|
if (image.infoBox[0].title) {
|
|
9390
|
-
return React__default
|
|
9391
|
-
|
|
9386
|
+
return React__default.createElement(
|
|
9387
|
+
Popover,
|
|
9392
9388
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9393
|
-
React__default
|
|
9394
|
-
|
|
9389
|
+
React__default.createElement(
|
|
9390
|
+
Popover.Title,
|
|
9395
9391
|
{ as: 'h3' },
|
|
9396
9392
|
image.infoBox[0].title
|
|
9397
9393
|
),
|
|
9398
|
-
React__default
|
|
9399
|
-
|
|
9394
|
+
React__default.createElement(
|
|
9395
|
+
Popover.Content,
|
|
9400
9396
|
null,
|
|
9401
|
-
React__default
|
|
9397
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9402
9398
|
)
|
|
9403
9399
|
);
|
|
9404
9400
|
} else {
|
|
9405
|
-
return React__default
|
|
9406
|
-
|
|
9401
|
+
return React__default.createElement(
|
|
9402
|
+
Tooltip,
|
|
9407
9403
|
_extends._extends({ id: 'button-tooltip' }, props),
|
|
9408
|
-
React__default
|
|
9404
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9409
9405
|
);
|
|
9410
9406
|
}
|
|
9411
9407
|
};
|
|
9412
9408
|
|
|
9413
9409
|
if (images && images.length > 0) {
|
|
9414
|
-
return React__default
|
|
9410
|
+
return React__default.createElement(
|
|
9415
9411
|
'div',
|
|
9416
9412
|
{ className: 'multi-figure-container' },
|
|
9417
|
-
React__default
|
|
9418
|
-
|
|
9413
|
+
React__default.createElement(
|
|
9414
|
+
Row,
|
|
9419
9415
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9420
9416
|
images.map(function (image, index) {
|
|
9421
9417
|
if (image.infoBox) {
|
|
9422
|
-
return React__default
|
|
9423
|
-
|
|
9418
|
+
return React__default.createElement(
|
|
9419
|
+
Col,
|
|
9424
9420
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9425
|
-
image.link ? React__default
|
|
9421
|
+
image.link ? React__default.createElement(
|
|
9426
9422
|
'a',
|
|
9427
9423
|
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9428
|
-
React__default
|
|
9424
|
+
React__default.createElement(
|
|
9429
9425
|
'div',
|
|
9430
9426
|
{ className: 'multi-figure-image-container' },
|
|
9431
|
-
React__default
|
|
9427
|
+
React__default.createElement(
|
|
9432
9428
|
index$2.LazyLoad,
|
|
9433
9429
|
{ once: true },
|
|
9434
|
-
React__default
|
|
9430
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9435
9431
|
),
|
|
9436
|
-
React__default
|
|
9432
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9437
9433
|
)
|
|
9438
|
-
) : React__default
|
|
9434
|
+
) : React__default.createElement(
|
|
9439
9435
|
'div',
|
|
9440
9436
|
{ className: 'multi-figure-image-container' },
|
|
9441
|
-
React__default
|
|
9437
|
+
React__default.createElement(
|
|
9442
9438
|
index$2.LazyLoad,
|
|
9443
9439
|
{ once: true },
|
|
9444
|
-
React__default
|
|
9440
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9445
9441
|
),
|
|
9446
|
-
React__default
|
|
9442
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9447
9443
|
)
|
|
9448
9444
|
);
|
|
9449
9445
|
} else {
|
|
9450
|
-
return React__default
|
|
9451
|
-
|
|
9446
|
+
return React__default.createElement(
|
|
9447
|
+
Col,
|
|
9452
9448
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9453
|
-
image.link ? React__default
|
|
9449
|
+
image.link ? React__default.createElement(
|
|
9454
9450
|
'a',
|
|
9455
9451
|
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9456
|
-
React__default
|
|
9452
|
+
React__default.createElement(
|
|
9457
9453
|
'div',
|
|
9458
9454
|
{ className: 'multi-figure-image-container' },
|
|
9459
|
-
React__default
|
|
9455
|
+
React__default.createElement(
|
|
9460
9456
|
index$2.LazyLoad,
|
|
9461
9457
|
{ once: true },
|
|
9462
|
-
React__default
|
|
9458
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9463
9459
|
),
|
|
9464
|
-
React__default
|
|
9460
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9465
9461
|
)
|
|
9466
|
-
) : React__default
|
|
9462
|
+
) : React__default.createElement(
|
|
9467
9463
|
'div',
|
|
9468
9464
|
{ className: 'multi-figure-image-container' },
|
|
9469
|
-
React__default
|
|
9465
|
+
React__default.createElement(
|
|
9470
9466
|
index$2.LazyLoad,
|
|
9471
9467
|
{ once: true },
|
|
9472
|
-
React__default
|
|
9468
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9473
9469
|
),
|
|
9474
|
-
React__default
|
|
9470
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9475
9471
|
)
|
|
9476
9472
|
);
|
|
9477
9473
|
}
|
|
9478
9474
|
})
|
|
9479
9475
|
),
|
|
9480
|
-
React__default
|
|
9476
|
+
React__default.createElement(
|
|
9481
9477
|
'div',
|
|
9482
9478
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9483
|
-
React__default
|
|
9479
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9484
9480
|
),
|
|
9485
|
-
React__default
|
|
9481
|
+
React__default.createElement(
|
|
9486
9482
|
'style',
|
|
9487
9483
|
{ jsx: 'true' },
|
|
9488
9484
|
'\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 '
|
|
@@ -9531,23 +9527,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9531
9527
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9532
9528
|
}, []);
|
|
9533
9529
|
|
|
9534
|
-
return React__default
|
|
9535
|
-
React__default
|
|
9530
|
+
return React__default.createElement(
|
|
9531
|
+
React__default.Fragment,
|
|
9536
9532
|
null,
|
|
9537
|
-
React__default
|
|
9538
|
-
|
|
9533
|
+
React__default.createElement(
|
|
9534
|
+
Head,
|
|
9539
9535
|
null,
|
|
9540
|
-
React__default
|
|
9536
|
+
React__default.createElement('script', {
|
|
9541
9537
|
dangerouslySetInnerHTML: {
|
|
9542
9538
|
__html: 'history.scrollRestoration = "manual"'
|
|
9543
9539
|
}
|
|
9544
9540
|
})
|
|
9545
9541
|
),
|
|
9546
|
-
React__default
|
|
9542
|
+
React__default.createElement(
|
|
9547
9543
|
'div',
|
|
9548
9544
|
{ id: elementId },
|
|
9549
|
-
React__default
|
|
9550
|
-
React__default
|
|
9545
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9546
|
+
React__default.createElement(
|
|
9551
9547
|
'style',
|
|
9552
9548
|
{ jsx: 'true' },
|
|
9553
9549
|
'\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 '
|
|
@@ -9589,23 +9585,23 @@ var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
|
9589
9585
|
|
|
9590
9586
|
|
|
9591
9587
|
|
|
9592
|
-
var _classCallCheck3 = _interopRequireDefault(inherits.classCallCheck);
|
|
9588
|
+
var _classCallCheck3 = _interopRequireDefault(inherits$1.classCallCheck);
|
|
9593
9589
|
|
|
9594
9590
|
|
|
9595
9591
|
|
|
9596
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(inherits.possibleConstructorReturn);
|
|
9592
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(inherits$1.possibleConstructorReturn);
|
|
9597
9593
|
|
|
9598
9594
|
|
|
9599
9595
|
|
|
9600
|
-
var _inherits3 = _interopRequireDefault(inherits.inherits);
|
|
9596
|
+
var _inherits3 = _interopRequireDefault(inherits$1.inherits);
|
|
9601
9597
|
|
|
9602
9598
|
|
|
9603
9599
|
|
|
9604
|
-
var _react2 = _interopRequireDefault(React__default
|
|
9600
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9605
9601
|
|
|
9606
9602
|
|
|
9607
9603
|
|
|
9608
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default
|
|
9604
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default);
|
|
9609
9605
|
|
|
9610
9606
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9611
9607
|
var noop = function noop() {};
|
|
@@ -9750,9 +9746,9 @@ var ScriptTag = function (_Component) {
|
|
|
9750
9746
|
|
|
9751
9747
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9752
9748
|
// eslint-disable-next-line no-unused-vars
|
|
9753
|
-
var _props3 = this.props
|
|
9754
|
-
_props3.isHydrating
|
|
9755
|
-
|
|
9749
|
+
var _props3 = this.props,
|
|
9750
|
+
isHydrating = _props3.isHydrating,
|
|
9751
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9756
9752
|
|
|
9757
9753
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9758
9754
|
return _this2.domRef = tag;
|
|
@@ -9760,7 +9756,7 @@ var ScriptTag = function (_Component) {
|
|
|
9760
9756
|
};
|
|
9761
9757
|
|
|
9762
9758
|
return ScriptTag;
|
|
9763
|
-
}(React__default
|
|
9759
|
+
}(React__default.Component);
|
|
9764
9760
|
|
|
9765
9761
|
ScriptTag.propTypes = {
|
|
9766
9762
|
/**
|
|
@@ -9839,11 +9835,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9839
9835
|
}, []);
|
|
9840
9836
|
|
|
9841
9837
|
if (iframeSrc) {
|
|
9842
|
-
return React__default
|
|
9838
|
+
return React__default.createElement(
|
|
9843
9839
|
'section',
|
|
9844
9840
|
{ className: 'form-assembly' },
|
|
9845
|
-
React__default
|
|
9846
|
-
React__default
|
|
9841
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9842
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9847
9843
|
);
|
|
9848
9844
|
}
|
|
9849
9845
|
|
|
@@ -9880,27 +9876,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9880
9876
|
return window.removeEventListener('resize', handleResize);
|
|
9881
9877
|
};
|
|
9882
9878
|
}, []);
|
|
9883
|
-
return React__default
|
|
9879
|
+
return React__default.createElement(
|
|
9884
9880
|
'div',
|
|
9885
9881
|
{ className: 'blockTableHolder', ref: holder },
|
|
9886
|
-
React__default
|
|
9882
|
+
React__default.createElement(
|
|
9887
9883
|
'div',
|
|
9888
9884
|
{ className: 'blockTable' },
|
|
9889
9885
|
rows && rows.map(function (row) {
|
|
9890
|
-
return React__default
|
|
9886
|
+
return React__default.createElement(
|
|
9891
9887
|
'div',
|
|
9892
9888
|
{ className: 'blockTableRow' },
|
|
9893
9889
|
row.cells && row.cells.map(function (cell) {
|
|
9894
|
-
return React__default
|
|
9890
|
+
return React__default.createElement(
|
|
9895
9891
|
'div',
|
|
9896
9892
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9897
|
-
React__default
|
|
9893
|
+
React__default.createElement(BlockContent.BlockContent, _extends._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9898
9894
|
);
|
|
9899
9895
|
})
|
|
9900
9896
|
);
|
|
9901
9897
|
})
|
|
9902
9898
|
),
|
|
9903
|
-
React__default
|
|
9899
|
+
React__default.createElement(
|
|
9904
9900
|
'style',
|
|
9905
9901
|
{ jsx: true },
|
|
9906
9902
|
'\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 '
|
|
@@ -9979,12 +9975,12 @@ var getSerializers = function getSerializers() {
|
|
|
9979
9975
|
var node = _ref.node;
|
|
9980
9976
|
var url = node.url;
|
|
9981
9977
|
|
|
9982
|
-
return React__default
|
|
9978
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9983
9979
|
},
|
|
9984
9980
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9985
9981
|
var node = _ref2.node;
|
|
9986
9982
|
|
|
9987
|
-
return React__default
|
|
9983
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9988
9984
|
nodes: node,
|
|
9989
9985
|
article: article,
|
|
9990
9986
|
meta: meta,
|
|
@@ -9998,7 +9994,7 @@ var getSerializers = function getSerializers() {
|
|
|
9998
9994
|
articleSeries: function articleSeries(_ref3) {
|
|
9999
9995
|
var node = _ref3.node;
|
|
10000
9996
|
|
|
10001
|
-
return React__default
|
|
9997
|
+
return React__default.createElement(ArticleSeries, {
|
|
10002
9998
|
nodes: node,
|
|
10003
9999
|
accountIDs: videoAccountIDs || {},
|
|
10004
10000
|
pageview: pageview,
|
|
@@ -10011,61 +10007,61 @@ var getSerializers = function getSerializers() {
|
|
|
10011
10007
|
figure: function figure(_ref4) {
|
|
10012
10008
|
var node = _ref4.node;
|
|
10013
10009
|
|
|
10014
|
-
return React__default
|
|
10010
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
10015
10011
|
},
|
|
10016
10012
|
multifigure: function multifigure(_ref5) {
|
|
10017
10013
|
var node = _ref5.node;
|
|
10018
10014
|
|
|
10019
|
-
return React__default
|
|
10015
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10020
10016
|
},
|
|
10021
10017
|
slideshow: function slideshow(_ref6) {
|
|
10022
10018
|
var node = _ref6.node;
|
|
10023
10019
|
var slides = node.slides;
|
|
10024
10020
|
|
|
10025
|
-
return React__default
|
|
10021
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
10026
10022
|
},
|
|
10027
10023
|
sidebar: function sidebar(_ref7) {
|
|
10028
10024
|
var node = _ref7.node;
|
|
10029
10025
|
var caption = node.caption,
|
|
10030
10026
|
content = node.content;
|
|
10031
10027
|
|
|
10032
|
-
return React__default
|
|
10028
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
10033
10029
|
},
|
|
10034
10030
|
datatable: function datatable(_ref8) {
|
|
10035
10031
|
var node = _ref8.node;
|
|
10036
10032
|
var table = node.table;
|
|
10037
10033
|
|
|
10038
|
-
return React__default
|
|
10034
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
10039
10035
|
},
|
|
10040
10036
|
media: function media(_ref9) {
|
|
10041
10037
|
var node = _ref9.node;
|
|
10042
10038
|
|
|
10043
|
-
return React__default
|
|
10039
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
10044
10040
|
},
|
|
10045
10041
|
iframe: function iframe(_ref10) {
|
|
10046
10042
|
var node = _ref10.node;
|
|
10047
10043
|
|
|
10048
|
-
return React__default
|
|
10044
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10049
10045
|
},
|
|
10050
10046
|
video: function video(_ref11) {
|
|
10051
10047
|
var node = _ref11.node;
|
|
10052
10048
|
|
|
10053
|
-
return React__default
|
|
10049
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
10054
10050
|
},
|
|
10055
10051
|
audio: function audio(_ref12) {
|
|
10056
10052
|
var node = _ref12.node;
|
|
10057
10053
|
|
|
10058
|
-
return React__default
|
|
10054
|
+
return React__default.createElement(Audio, { node: node });
|
|
10059
10055
|
},
|
|
10060
10056
|
poll: function poll(_ref13) {
|
|
10061
10057
|
var node = _ref13.node;
|
|
10062
10058
|
|
|
10063
|
-
return React__default
|
|
10059
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10064
10060
|
},
|
|
10065
10061
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10066
10062
|
var node = _ref14.node;
|
|
10067
10063
|
|
|
10068
|
-
return React__default
|
|
10064
|
+
return React__default.createElement(Poll$1, {
|
|
10069
10065
|
node: node,
|
|
10070
10066
|
client: client,
|
|
10071
10067
|
pageview: pageview,
|
|
@@ -10079,35 +10075,35 @@ var getSerializers = function getSerializers() {
|
|
|
10079
10075
|
var node = _ref15.node;
|
|
10080
10076
|
var quizzes = node.quizzes;
|
|
10081
10077
|
|
|
10082
|
-
return React__default
|
|
10078
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10083
10079
|
},
|
|
10084
10080
|
leads: function leads(_ref16) {
|
|
10085
10081
|
var node = _ref16.node;
|
|
10086
10082
|
var leadID = node.leadID;
|
|
10087
10083
|
|
|
10088
10084
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10089
|
-
return React__default
|
|
10085
|
+
return React__default.createElement(Leads, { url: url });
|
|
10090
10086
|
},
|
|
10091
10087
|
slideshows: function slideshows(_ref17) {
|
|
10092
10088
|
var node = _ref17.node;
|
|
10093
10089
|
|
|
10094
|
-
return React__default
|
|
10090
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10095
10091
|
},
|
|
10096
10092
|
nativeAd: function nativeAd(_ref18) {
|
|
10097
10093
|
var node = _ref18.node;
|
|
10098
10094
|
|
|
10099
|
-
return React__default
|
|
10095
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
10100
10096
|
},
|
|
10101
10097
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10102
10098
|
var node = _ref19.node;
|
|
10103
10099
|
|
|
10104
|
-
return React__default
|
|
10100
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10105
10101
|
},
|
|
10106
10102
|
hrtag: function hrtag() {
|
|
10107
|
-
return React__default
|
|
10103
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10108
10104
|
},
|
|
10109
10105
|
brtag: function brtag() {
|
|
10110
|
-
return React__default
|
|
10106
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
10111
10107
|
},
|
|
10112
10108
|
formstack: function formstack(_ref20) {
|
|
10113
10109
|
var node = _ref20.node;
|
|
@@ -10115,29 +10111,29 @@ var getSerializers = function getSerializers() {
|
|
|
10115
10111
|
Caption = node.Caption,
|
|
10116
10112
|
needSegmentSupport = node.needSegmentSupport;
|
|
10117
10113
|
|
|
10118
|
-
return React__default
|
|
10114
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10119
10115
|
},
|
|
10120
10116
|
formassembly: FormAssembly,
|
|
10121
10117
|
multimedia: function multimedia(_ref21) {
|
|
10122
10118
|
var node = _ref21.node;
|
|
10123
10119
|
|
|
10124
|
-
return React__default
|
|
10120
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
10125
10121
|
},
|
|
10126
10122
|
blockTable: function blockTable(_ref22) {
|
|
10127
10123
|
var node = _ref22.node;
|
|
10128
|
-
return React__default
|
|
10124
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10129
10125
|
}
|
|
10130
10126
|
},
|
|
10131
10127
|
marks: {
|
|
10132
10128
|
superscript: function superscript(props) {
|
|
10133
|
-
return React__default
|
|
10129
|
+
return React__default.createElement(
|
|
10134
10130
|
'sup',
|
|
10135
10131
|
null,
|
|
10136
10132
|
props.children
|
|
10137
10133
|
);
|
|
10138
10134
|
},
|
|
10139
10135
|
subscript: function subscript(props) {
|
|
10140
|
-
return React__default
|
|
10136
|
+
return React__default.createElement(
|
|
10141
10137
|
'sub',
|
|
10142
10138
|
null,
|
|
10143
10139
|
props.children
|
|
@@ -10154,7 +10150,7 @@ var getSerializers = function getSerializers() {
|
|
|
10154
10150
|
if (href && href.charAt(0) === '#') {
|
|
10155
10151
|
var elementId = href.slice(1);
|
|
10156
10152
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10157
|
-
return React__default
|
|
10153
|
+
return React__default.createElement(
|
|
10158
10154
|
'a',
|
|
10159
10155
|
{ onClick: function onClick() {
|
|
10160
10156
|
return ScrollToElement(elementId);
|
|
@@ -10164,7 +10160,7 @@ var getSerializers = function getSerializers() {
|
|
|
10164
10160
|
}
|
|
10165
10161
|
|
|
10166
10162
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10167
|
-
return href ? React__default
|
|
10163
|
+
return href ? React__default.createElement(
|
|
10168
10164
|
'a',
|
|
10169
10165
|
_extends._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10170
10166
|
children
|
|
@@ -10172,7 +10168,7 @@ var getSerializers = function getSerializers() {
|
|
|
10172
10168
|
},
|
|
10173
10169
|
alignleft: function alignleft(_ref23) {
|
|
10174
10170
|
var children = _ref23.children;
|
|
10175
|
-
return React__default
|
|
10171
|
+
return React__default.createElement(
|
|
10176
10172
|
'div',
|
|
10177
10173
|
{ style: { textAlign: 'left' } },
|
|
10178
10174
|
children
|
|
@@ -10180,7 +10176,7 @@ var getSerializers = function getSerializers() {
|
|
|
10180
10176
|
},
|
|
10181
10177
|
alignright: function alignright(_ref24) {
|
|
10182
10178
|
var children = _ref24.children;
|
|
10183
|
-
return React__default
|
|
10179
|
+
return React__default.createElement(
|
|
10184
10180
|
'div',
|
|
10185
10181
|
{ style: { textAlign: 'right' } },
|
|
10186
10182
|
children
|
|
@@ -10188,7 +10184,7 @@ var getSerializers = function getSerializers() {
|
|
|
10188
10184
|
},
|
|
10189
10185
|
aligncenter: function aligncenter(_ref25) {
|
|
10190
10186
|
var children = _ref25.children;
|
|
10191
|
-
return React__default
|
|
10187
|
+
return React__default.createElement(
|
|
10192
10188
|
'div',
|
|
10193
10189
|
{ style: { textAlign: 'center' } },
|
|
10194
10190
|
children
|
|
@@ -10196,7 +10192,7 @@ var getSerializers = function getSerializers() {
|
|
|
10196
10192
|
},
|
|
10197
10193
|
alignjustify: function alignjustify(_ref26) {
|
|
10198
10194
|
var children = _ref26.children;
|
|
10199
|
-
return React__default
|
|
10195
|
+
return React__default.createElement(
|
|
10200
10196
|
'div',
|
|
10201
10197
|
{ style: { textAlign: 'justify' } },
|
|
10202
10198
|
children
|
|
@@ -10206,7 +10202,7 @@ var getSerializers = function getSerializers() {
|
|
|
10206
10202
|
var children = props.children,
|
|
10207
10203
|
color = props.mark.color;
|
|
10208
10204
|
|
|
10209
|
-
return React__default
|
|
10205
|
+
return React__default.createElement(
|
|
10210
10206
|
'span',
|
|
10211
10207
|
{ style: { color: color ? color.hex : null } },
|
|
10212
10208
|
children
|