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