@mjhls/mjh-framework 1.0.901-test-autoplay → 1.0.901
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/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +21 -22
- package/dist/cjs/AD300x250x600.js +21 -22
- package/dist/cjs/AD728x90.js +24 -25
- package/dist/cjs/ADFloatingFooter.js +20 -21
- package/dist/cjs/ADFooter.js +4 -4
- package/dist/cjs/ADGutter.js +20 -21
- package/dist/cjs/{ADInfeed-af3fdbc3.js → ADInfeed-ebe59b1b.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +20 -21
- package/dist/cjs/ADSponsoredResources.js +20 -21
- package/dist/cjs/ADWebcast.js +20 -21
- package/dist/cjs/ADWelcome.js +17 -18
- package/dist/cjs/{ADlgInfeed-ea8f6de8.js → ADlgInfeed-b6a730a6.js} +4 -4
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +19 -20
- package/dist/cjs/AdSlotsProvider.js +11 -12
- package/dist/cjs/AlgoliaSearch.js +31 -14178
- package/dist/cjs/AlphabeticList.js +8 -8
- package/dist/cjs/ArticleCarousel.js +13 -13
- package/dist/cjs/ArticleProgramLandingPage.js +48 -48
- package/dist/cjs/ArticleSeriesLandingPage.js +29 -30
- package/dist/cjs/ArticleSeriesListing.js +30 -31
- package/dist/cjs/Auth.js +346 -482
- package/dist/cjs/AuthWrapper.js +13 -1766
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-17e1c62b.js} +1 -1
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-8b494587.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +6 -6
- package/dist/cjs/CMEDeck.js +22 -23
- package/dist/cjs/Column2.js +14 -14
- package/dist/cjs/Column3.js +30 -31
- package/dist/cjs/ConferenceArticleCard.js +10 -10
- package/dist/cjs/ContentCardPaginated.js +37 -38
- package/dist/cjs/DeckContent.js +31 -32
- package/dist/cjs/DeckQueue.js +29 -30
- package/dist/cjs/DeckQueuePaginated.js +33 -34
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-bcaa7e3f.js} +12 -13
- package/dist/cjs/EventsDeck.js +26 -26
- package/dist/cjs/ExternalResources.js +45 -45
- package/dist/cjs/Feature.js +7 -7
- package/dist/cjs/ForbesHero.js +10 -10
- package/dist/cjs/GridContent.js +45 -46
- package/dist/cjs/GridContentPaginated.js +46 -47
- package/dist/cjs/GridHero.js +11 -11
- package/dist/cjs/GroupDeck.js +12 -12
- package/dist/cjs/HamMagazine.js +27 -27
- package/dist/cjs/Hero.js +7 -7
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +46 -46
- package/dist/cjs/HorizontalHero.js +8 -8
- package/dist/cjs/ImageSlider-10cd194f.js +1383 -0
- package/dist/cjs/IssueContentDeck.js +11 -11
- package/dist/cjs/IssueDeck.js +14 -14
- package/dist/cjs/IssueLanding.js +54 -54
- package/dist/cjs/LeftNav.js +19 -20
- package/dist/cjs/MasterDeck.js +30 -31
- package/dist/cjs/MasterDeckPaginated.js +33 -34
- package/dist/cjs/{MediaSeriesCard-dd072883.js → MediaSeriesCard-9597476b.js} +799 -1002
- package/dist/cjs/MediaSeriesLanding.js +50 -51
- package/dist/cjs/MediaSeriesLandingPaginated.js +55 -56
- package/dist/cjs/NavDvm.js +11 -11
- package/dist/cjs/NavMagazine.js +29 -29
- package/dist/cjs/NavNative.js +30 -30
- package/dist/cjs/OncliveHero.js +7 -7
- package/dist/cjs/OncliveLargeHero.js +11 -11
- package/dist/cjs/PageFilter.js +4 -4
- package/dist/cjs/{Pagination-885dcfbd.js → Pagination-a2807e27.js} +3 -3
- package/dist/cjs/PartnerDetailListing.js +60 -61
- package/dist/cjs/PartnerDetailListingPaginated.js +60 -61
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +4 -4
- package/dist/cjs/PubSection.js +32 -33
- package/dist/cjs/PubToc.js +6 -6
- package/dist/cjs/PublicationDeck.js +11 -11
- package/dist/cjs/{PublicationFeature-5ccf9b13.js → PublicationFeature-6f89fb97.js} +2 -2
- package/dist/cjs/PublicationLanding.js +26 -30
- package/dist/cjs/QueueDeckExpanded.js +35 -36
- package/dist/cjs/QueueDeckExpandedPaginated.js +38 -39
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +10 -10
- package/dist/cjs/Schema.js +10 -10
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +17 -18
- package/dist/cjs/{SeriesSlider-ba0c5d1a.js → SeriesSlider-88e59074.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +13 -13
- package/dist/cjs/{SocialSearchComponent-b7faaedc.js → SocialSearchComponent-af6ddcc0.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +12 -12
- package/dist/cjs/TaxonomyDescription.js +44 -44
- package/dist/cjs/TemplateNormal.js +45 -46
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/Ustream.js +21 -21
- package/dist/cjs/VerticalHero.js +6 -6
- package/dist/cjs/VideoProgramLandingPage.js +50 -50
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +35 -36
- package/dist/cjs/VideoSeriesListing.js +30 -31
- package/dist/cjs/View.js +91 -105
- package/dist/cjs/YahooHero.js +13 -13
- package/dist/cjs/YoutubeGroup.js +17 -17
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{defineProperty-9673846a.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-df1aed86.js → entities-310b46ee.js} +1 -5
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{extends-7c86182f.js → extends-7df78678.js} +7 -8
- package/dist/cjs/faundadb.js +5 -5
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +68 -132
- package/dist/cjs/getRootDocGroup.js +4 -4
- package/dist/cjs/getSerializers.js +44 -44
- package/dist/cjs/{getTargeting-9d509319.js → getTargeting-253ffce5.js} +2 -2
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-fc2f1ca2.js → index-44481153.js} +488 -42
- package/dist/cjs/{index-f86bb269.js → index-99edf08a.js} +45 -44
- package/dist/cjs/{index-eadd5035.js → index-9d365128.js} +7 -7
- package/dist/cjs/{index-d48b231c.js → index-b5eb3ff8.js} +6 -11
- package/dist/cjs/{index-d4b39396.js → index-ce6e0b8f.js} +158 -416
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-3ffa049c.js} +2 -2
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-44f3e2d0.js} +1 -1
- package/dist/cjs/{index.esm-d81454e7.js → index.esm-48e0f0d8.js} +1 -1
- package/dist/cjs/{index.esm-d51c9ac6.js → index.esm-f93506ac.js} +1 -1
- package/dist/cjs/index.js +143 -146
- package/dist/cjs/{inherits-de66ea16.js → inherits-420ee86f.js} +18 -21
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- package/dist/cjs/{lodash-f0783643.js → lodash-7fd85bcf.js} +10 -58
- package/dist/cjs/main-7b5e57b0.js +898 -0
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-ec08d471.js} +34 -34
- package/dist/cjs/urlFor.js +4 -4
- package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{util-93a37fd0.js → util-f2c1b65b.js} +1 -12
- package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +24 -25
- package/dist/esm/AD300x250x600.js +24 -25
- package/dist/esm/AD728x90.js +27 -28
- package/dist/esm/ADFloatingFooter.js +26 -27
- package/dist/esm/ADFooter.js +9 -9
- package/dist/esm/ADGutter.js +26 -27
- package/dist/esm/{ADInfeed-64ff1fde.js → ADInfeed-6c0ed45b.js} +9 -9
- package/dist/esm/ADSkyscraper.js +26 -27
- package/dist/esm/ADSponsoredResources.js +26 -27
- package/dist/esm/ADWebcast.js +26 -27
- package/dist/esm/ADWelcome.js +27 -28
- package/dist/esm/{ADlgInfeed-a731f9c2.js → ADlgInfeed-e9e1808e.js} +8 -8
- package/dist/esm/AccordionPanel.js +22 -22
- package/dist/esm/AdSlot.js +22 -23
- package/dist/esm/AdSlotsProvider.js +12 -13
- package/dist/esm/AlgoliaSearch.js +55 -14202
- package/dist/esm/AlphabeticList.js +20 -20
- package/dist/esm/ArticleCarousel.js +16 -16
- package/dist/esm/ArticleProgramLandingPage.js +54 -54
- package/dist/esm/ArticleSeriesLandingPage.js +35 -36
- package/dist/esm/ArticleSeriesListing.js +54 -55
- package/dist/esm/Auth.js +417 -553
- package/dist/esm/AuthWrapper.js +26 -1780
- package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-37ebc2bd.js} +11 -11
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-d05b5b23.js} +35 -35
- package/dist/esm/Breadcrumbs.js +15 -15
- package/dist/esm/CMEDeck.js +77 -78
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +25 -25
- package/dist/esm/Column3.js +49 -50
- package/dist/esm/ConferenceArticleCard.js +23 -23
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/ContentCardPaginated.js +72 -73
- package/dist/esm/DeckContent.js +76 -77
- package/dist/esm/DeckQueue.js +67 -68
- package/dist/esm/DeckQueuePaginated.js +63 -64
- package/dist/esm/{Dfp-102f0beb.js → Dfp-23281963.js} +20 -21
- package/dist/esm/EventsDeck.js +86 -86
- package/dist/esm/ExternalResources.js +71 -71
- package/dist/esm/Feature.js +21 -21
- package/dist/esm/ForbesHero.js +33 -33
- package/dist/esm/GridContent.js +142 -143
- package/dist/esm/GridContentPaginated.js +133 -134
- package/dist/esm/GridHero.js +35 -35
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +13 -13
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +68 -68
- package/dist/esm/HorizontalHero.js +26 -26
- package/dist/esm/ImageSlider-522a2cd0.js +1375 -0
- package/dist/esm/IssueContentDeck.js +48 -48
- package/dist/esm/IssueDeck.js +45 -45
- package/dist/esm/IssueLanding.js +62 -62
- package/dist/esm/LeftNav.js +32 -33
- package/dist/esm/MasterDeck.js +63 -64
- package/dist/esm/MasterDeckPaginated.js +55 -56
- package/dist/esm/{MediaSeriesCard-81361c13.js → MediaSeriesCard-df80c347.js} +799 -1002
- package/dist/esm/MediaSeriesLanding.js +75 -76
- package/dist/esm/MediaSeriesLandingPaginated.js +78 -79
- package/dist/esm/NavDvm.js +54 -54
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +111 -111
- package/dist/esm/NavNative.js +101 -101
- package/dist/esm/OncliveHero.js +19 -19
- package/dist/esm/OncliveLargeHero.js +58 -58
- package/dist/esm/PageFilter.js +10 -10
- package/dist/esm/{Pagination-59436882.js → Pagination-185dfca0.js} +13 -13
- package/dist/esm/PartnerDetailListing.js +92 -93
- package/dist/esm/PartnerDetailListingPaginated.js +91 -92
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +12 -12
- package/dist/esm/PubSection.js +37 -38
- package/dist/esm/PubToc.js +10 -10
- package/dist/esm/PublicationDeck.js +42 -42
- package/dist/esm/{PublicationFeature-d88e76b9.js → PublicationFeature-d79db241.js} +23 -23
- package/dist/esm/PublicationLanding.js +73 -77
- package/dist/esm/QueueDeckExpanded.js +273 -274
- package/dist/esm/QueueDeckExpandedPaginated.js +253 -254
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +23 -23
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Schema.js +12 -12
- package/dist/esm/Search.js +10 -10
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +30 -31
- package/dist/esm/{SeriesSlider-45adb8dc.js → SeriesSlider-0a8cfca0.js} +27 -27
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +30 -30
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-4b56cd8c.js → SocialSearchComponent-32ee0f63.js} +33 -33
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +44 -44
- package/dist/esm/TaxonomyDescription.js +48 -48
- package/dist/esm/TemplateNormal.js +65 -66
- package/dist/esm/ThumbnailCard.js +17 -17
- package/dist/esm/Ustream.js +29 -29
- package/dist/esm/VerticalHero.js +17 -17
- package/dist/esm/VideoProgramLandingPage.js +62 -62
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +40 -41
- package/dist/esm/VideoSeriesListing.js +70 -71
- package/dist/esm/View.js +246 -260
- package/dist/esm/YahooHero.js +33 -33
- package/dist/esm/YoutubeGroup.js +48 -48
- package/dist/esm/{_is-array-8d21b9e3.js → _is-array-4df618a6.js} +6 -6
- package/dist/esm/{_iter-detect-98db3b07.js → _iter-detect-130ee549.js} +7 -7
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-7cee6f84.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-2300e51b.js → _object-to-array-c54dd835.js} +2 -2
- package/dist/esm/{asyncToGenerator-5ef104a7.js → asyncToGenerator-7bf8bc4d.js} +30 -30
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-4abff0b1.js} +3 -3
- package/dist/esm/{core.get-iterator-method-ea258bb1.js → core.get-iterator-method-86d4db69.js} +36 -36
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/define-property-6d26cb48.js +18 -0
- package/dist/esm/{defineProperty-8c30428f.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/{entities-6d9154b4.js → entities-7cc3bf45.js} +1 -5
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{extends-6d8e3924.js → extends-a4230287.js} +8 -8
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +69 -133
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +44 -44
- package/dist/esm/{getTargeting-4061f839.js → getTargeting-62414a48.js} +2 -2
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-f0fc23eb.js → index-1819118a.js} +490 -44
- package/dist/esm/{index-3f5c03b2.js → index-51a80699.js} +6 -11
- package/dist/esm/{index-33b6afbe.js → index-5f19922f.js} +551 -810
- package/dist/esm/{index-755f2cc2.js → index-6c12bdd5.js} +10 -10
- package/dist/esm/{index-79cfd25c.js → index-fa2ffe86.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-eb1e8e80.js → index.esm-55f22b35.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8ee5ff72.js} +16 -16
- package/dist/esm/{index.esm-9b042655.js → index.esm-c6715e80.js} +1 -1
- package/dist/esm/{index.esm-1bd8a0a8.js → index.esm-d1125763.js} +1 -1
- package/dist/esm/index.js +138 -141
- package/dist/esm/{inherits-a6ba2ec4.js → inherits-91a2c374.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-31dcdb31.js → keys-69989821.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-ec8c6b48.js} +10 -58
- package/dist/esm/main-43ca42fe.js +886 -0
- package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-3822f1ce.js} +20 -20
- package/dist/esm/{slicedToArray-6ebcbfea.js → slicedToArray-67a08c9c.js} +12 -12
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-70b72959.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-f7074d7c.js → toConsumableArray-32282905.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-e9fc0c5d.js → typeof-f1b7564e.js} +34 -34
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-d3714624.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{util-8ed16d48.js → util-7700fc59.js} +1 -12
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-ab4dea5c.js → web.dom.iterable-f8f967cd.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ImageSlider-6c00b878.js +0 -2813
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-50be6759.js +0 -105
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/ImageSlider-f84174cb.js +0 -2804
- package/dist/esm/define-property-5f1bda73.js +0 -18
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-98ca9cec.js +0 -100
- package/dist/esm/main-1894c974.js +0 -961
- package/dist/esm/stringify-2b084bee.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-5c98aec7.js} +1 -1
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
|
|
2
|
-
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
3
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
|
|
4
|
-
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
5
|
-
import urlFor from './urlFor.js';
|
|
6
|
-
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
7
|
-
import Router, { useRouter } from 'next/router';
|
|
8
|
-
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
10
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
11
|
-
import {
|
|
12
|
-
import './
|
|
2
|
+
import { _ as _export, a as _core } from './core.get-iterator-method-86d4db69.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-32282905.js';
|
|
4
|
+
import { _ as _extends } from './extends-a4230287.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-91a2c374.js';
|
|
6
|
+
import { _ as _typeof$1 } from './typeof-f1b7564e.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';
|
|
14
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-67a08c9c.js';
|
|
15
|
+
import urlFor from './urlFor.js';
|
|
16
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
17
|
+
import { e as main_16, b as main_39, m as main_40 } from './main-43ca42fe.js';
|
|
18
|
+
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
19
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7bf8bc4d.js';
|
|
13
20
|
import Segment from './Segment.js';
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
|
|
21
|
+
import './Beam.js';
|
|
22
|
+
import DFPAdSlot from './AdSlot.js';
|
|
23
|
+
import Button$1 from 'react-bootstrap/Button';
|
|
24
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
25
|
+
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
20
26
|
import GroupDeck from './GroupDeck.js';
|
|
21
|
-
import {
|
|
27
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
28
|
+
import { c as IoIosArrowDropupCircle } from './index.esm-55f22b35.js';
|
|
29
|
+
import { u as util } from './util-7700fc59.js';
|
|
30
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
|
|
31
|
+
import Head from 'next/head';
|
|
22
32
|
import SocialShare from './SocialShare.js';
|
|
23
|
-
import { _ as
|
|
24
|
-
import { _ as _objectToArray } from './_object-to-array-2300e51b.js';
|
|
25
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
|
|
33
|
+
import { _ as _objectToArray } from './_object-to-array-c54dd835.js';
|
|
26
34
|
import Pagination from 'react-bootstrap/Pagination';
|
|
27
|
-
import Button$1 from 'react-bootstrap/Button';
|
|
28
|
-
import { h as html_decode_1 } from './entities-6d9154b4.js';
|
|
29
|
-
import DFPAdSlot from './AdSlot.js';
|
|
30
|
-
import Row$1 from 'react-bootstrap/Row';
|
|
31
|
-
import Col$1 from 'react-bootstrap/Col';
|
|
32
|
-
import Head from 'next/head';
|
|
33
|
-
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-a6ba2ec4.js';
|
|
34
|
-
import { c as IoIosArrowDropupCircle } from './index.esm-eb1e8e80.js';
|
|
35
35
|
import Figure$2 from 'react-bootstrap/Figure';
|
|
36
36
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
37
37
|
import Tooltip from 'react-bootstrap/Tooltip';
|
|
38
38
|
import Popover from 'react-bootstrap/Popover';
|
|
39
|
+
import ScriptTag from 'react-script-tag';
|
|
39
40
|
|
|
40
41
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
41
42
|
var pageNumber = selectedIndex + 1;
|
|
@@ -43,7 +44,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
43
44
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
44
45
|
};
|
|
45
46
|
|
|
46
|
-
var Slideshow
|
|
47
|
+
var Slideshow = function Slideshow(_ref) {
|
|
47
48
|
var slides = _ref.slides,
|
|
48
49
|
client = _ref.client,
|
|
49
50
|
pageview = _ref.pageview;
|
|
@@ -70,27 +71,27 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
70
71
|
if (pageview) pageview(router.asPath);
|
|
71
72
|
}, [router]);
|
|
72
73
|
|
|
73
|
-
return
|
|
74
|
+
return React.createElement(
|
|
74
75
|
'div',
|
|
75
76
|
{ className: 'mt-3 mb-3' },
|
|
76
|
-
|
|
77
|
+
React.createElement(
|
|
77
78
|
Carousel,
|
|
78
79
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
79
80
|
return onChangeSlide(selectedIndex, router);
|
|
80
81
|
}, interval: null },
|
|
81
82
|
slides && slides.map(function (slide) {
|
|
82
|
-
return
|
|
83
|
+
return React.createElement(
|
|
83
84
|
Carousel.Item,
|
|
84
85
|
{ key: slide._key },
|
|
85
|
-
|
|
86
|
+
React.createElement(
|
|
86
87
|
'picture',
|
|
87
88
|
null,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
90
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
91
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
92
|
+
React.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
92
93
|
),
|
|
93
|
-
slide.caption &&
|
|
94
|
+
slide.caption && React.createElement(
|
|
94
95
|
'p',
|
|
95
96
|
{ className: 'p-2' },
|
|
96
97
|
slide.caption
|
|
@@ -680,14 +681,14 @@ function coerce(val) {
|
|
|
680
681
|
return val;
|
|
681
682
|
}
|
|
682
683
|
});
|
|
683
|
-
debug.coerce;
|
|
684
|
-
debug.disable;
|
|
685
|
-
debug.enable;
|
|
686
|
-
debug.enabled;
|
|
687
|
-
debug.humanize;
|
|
688
|
-
debug.names;
|
|
689
|
-
debug.skips;
|
|
690
|
-
debug.formatters;
|
|
684
|
+
var debug_1 = debug.coerce;
|
|
685
|
+
var debug_2 = debug.disable;
|
|
686
|
+
var debug_3 = debug.enable;
|
|
687
|
+
var debug_4 = debug.enabled;
|
|
688
|
+
var debug_5 = debug.humanize;
|
|
689
|
+
var debug_6 = debug.names;
|
|
690
|
+
var debug_7 = debug.skips;
|
|
691
|
+
var debug_8 = debug.formatters;
|
|
691
692
|
|
|
692
693
|
var browser = createCommonjsModule(function (module, exports) {
|
|
693
694
|
/**
|
|
@@ -876,13 +877,13 @@ function localstorage() {
|
|
|
876
877
|
} catch (e) {}
|
|
877
878
|
}
|
|
878
879
|
});
|
|
879
|
-
browser.log;
|
|
880
|
-
browser.formatArgs;
|
|
881
|
-
browser.save;
|
|
882
|
-
browser.load;
|
|
883
|
-
browser.useColors;
|
|
884
|
-
browser.storage;
|
|
885
|
-
browser.colors;
|
|
880
|
+
var browser_1 = browser.log;
|
|
881
|
+
var browser_2 = browser.formatArgs;
|
|
882
|
+
var browser_3 = browser.save;
|
|
883
|
+
var browser_4 = browser.load;
|
|
884
|
+
var browser_5 = browser.useColors;
|
|
885
|
+
var browser_6 = browser.storage;
|
|
886
|
+
var browser_7 = browser.colors;
|
|
886
887
|
|
|
887
888
|
// MIT lisence
|
|
888
889
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1157,14 +1158,14 @@ function init (debug) {
|
|
|
1157
1158
|
|
|
1158
1159
|
exports.enable(load());
|
|
1159
1160
|
});
|
|
1160
|
-
node.init;
|
|
1161
|
-
node.log;
|
|
1162
|
-
node.formatArgs;
|
|
1163
|
-
node.save;
|
|
1164
|
-
node.load;
|
|
1165
|
-
node.useColors;
|
|
1166
|
-
node.colors;
|
|
1167
|
-
node.inspectOpts;
|
|
1161
|
+
var node_1 = node.init;
|
|
1162
|
+
var node_2 = node.log;
|
|
1163
|
+
var node_3 = node.formatArgs;
|
|
1164
|
+
var node_4 = node.save;
|
|
1165
|
+
var node_5 = node.load;
|
|
1166
|
+
var node_6 = node.useColors;
|
|
1167
|
+
var node_7 = node.colors;
|
|
1168
|
+
var node_8 = node.inspectOpts;
|
|
1168
1169
|
|
|
1169
1170
|
var src = createCommonjsModule(function (module) {
|
|
1170
1171
|
/**
|
|
@@ -1622,11 +1623,11 @@ function shouldUpdateVideo(prevProps, props) {
|
|
|
1622
1623
|
|
|
1623
1624
|
function filterResetOptions(opts) {
|
|
1624
1625
|
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1625
|
-
playerVars: _objectSpread({
|
|
1626
|
+
playerVars: _objectSpread(_objectSpread({}, opts.playerVars), {}, {
|
|
1626
1627
|
autoplay: 0,
|
|
1627
1628
|
start: 0,
|
|
1628
1629
|
end: 0
|
|
1629
|
-
}
|
|
1630
|
+
})
|
|
1630
1631
|
});
|
|
1631
1632
|
}
|
|
1632
1633
|
/**
|
|
@@ -1832,9 +1833,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1832
1833
|
}, {
|
|
1833
1834
|
key: "render",
|
|
1834
1835
|
value: function render() {
|
|
1835
|
-
return /*#__PURE__*/
|
|
1836
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1836
1837
|
className: this.props.containerClassName
|
|
1837
|
-
}, /*#__PURE__*/
|
|
1838
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1838
1839
|
id: this.props.id,
|
|
1839
1840
|
className: this.props.className,
|
|
1840
1841
|
ref: this.refContainer
|
|
@@ -1843,7 +1844,7 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1843
1844
|
}]);
|
|
1844
1845
|
|
|
1845
1846
|
return YouTube;
|
|
1846
|
-
}(
|
|
1847
|
+
}(React.Component);
|
|
1847
1848
|
|
|
1848
1849
|
_defineProperty(YouTube, "PlayerState", {
|
|
1849
1850
|
UNSTARTED: -1,
|
|
@@ -1928,7 +1929,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1928
1929
|
var queue = Math.floor(duration / 10);
|
|
1929
1930
|
var segment = Math.floor(current / queue);
|
|
1930
1931
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
1931
|
-
Segment.report_video_event('Video Ready',
|
|
1932
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1932
1933
|
};
|
|
1933
1934
|
|
|
1934
1935
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1939,7 +1940,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1939
1940
|
|
|
1940
1941
|
if (!queueProgress.includes(segment)) {
|
|
1941
1942
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
1942
|
-
Segment.report_video_event('Video Segment',
|
|
1943
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1943
1944
|
queueProgress.push(segment);
|
|
1944
1945
|
}
|
|
1945
1946
|
};
|
|
@@ -1953,7 +1954,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1953
1954
|
var segment = Math.floor(current / queue);
|
|
1954
1955
|
|
|
1955
1956
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
1956
|
-
Segment.report_video_event('Video Play',
|
|
1957
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1957
1958
|
|
|
1958
1959
|
if (!playReported) {
|
|
1959
1960
|
setPlayReported(true);
|
|
@@ -1973,7 +1974,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1973
1974
|
var segment = Math.floor(current / queue);
|
|
1974
1975
|
|
|
1975
1976
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
1976
|
-
Segment.report_video_event('Video End',
|
|
1977
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1977
1978
|
setEndReported(true);
|
|
1978
1979
|
clearInterval(intervalID);
|
|
1979
1980
|
}
|
|
@@ -1987,14 +1988,14 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1987
1988
|
var segment = Math.floor(current / queue);
|
|
1988
1989
|
|
|
1989
1990
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
1990
|
-
Segment.report_video_event('Video Pause',
|
|
1991
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1991
1992
|
};
|
|
1992
1993
|
|
|
1993
|
-
return
|
|
1994
|
+
return React.createElement(
|
|
1994
1995
|
'div',
|
|
1995
1996
|
{ id: 'fluid-video-container' },
|
|
1996
|
-
|
|
1997
|
-
|
|
1997
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1998
|
+
React.createElement(
|
|
1998
1999
|
'style',
|
|
1999
2000
|
{ jsx: 'true' },
|
|
2000
2001
|
'\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 +2008,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2007
2008
|
content = _ref.content,
|
|
2008
2009
|
getSerializers = _ref.getSerializers;
|
|
2009
2010
|
|
|
2010
|
-
return
|
|
2011
|
+
return React.createElement(
|
|
2011
2012
|
'article',
|
|
2012
2013
|
{ className: 'sidebar' },
|
|
2013
|
-
|
|
2014
|
+
React.createElement(
|
|
2014
2015
|
'div',
|
|
2015
2016
|
null,
|
|
2016
|
-
|
|
2017
|
+
React.createElement(
|
|
2017
2018
|
'h3',
|
|
2018
2019
|
null,
|
|
2019
2020
|
caption
|
|
2020
2021
|
),
|
|
2021
|
-
|
|
2022
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2022
2023
|
),
|
|
2023
|
-
|
|
2024
|
+
React.createElement(
|
|
2024
2025
|
'style',
|
|
2025
2026
|
{ jsx: 'true' },
|
|
2026
2027
|
'\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 +2032,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2031
2032
|
var TableShow = function TableShow(_ref) {
|
|
2032
2033
|
var rows = _ref.rows;
|
|
2033
2034
|
|
|
2034
|
-
return
|
|
2035
|
+
return React.createElement(
|
|
2035
2036
|
Table,
|
|
2036
2037
|
{ bordered: true, hover: true, responsive: true },
|
|
2037
|
-
|
|
2038
|
+
React.createElement(
|
|
2038
2039
|
'tbody',
|
|
2039
2040
|
null,
|
|
2040
2041
|
rows && rows.map(function (row) {
|
|
2041
|
-
return
|
|
2042
|
+
return React.createElement(
|
|
2042
2043
|
'tr',
|
|
2043
2044
|
{ key: row._key },
|
|
2044
2045
|
row.cells && row.cells.map(function (cell, index) {
|
|
2045
|
-
return cell &&
|
|
2046
|
+
return cell && React.createElement(
|
|
2046
2047
|
'td',
|
|
2047
2048
|
{ key: index },
|
|
2048
2049
|
cell
|
|
@@ -2161,25 +2162,25 @@ var Media = function Media(_ref) {
|
|
|
2161
2162
|
margin: imageMargin
|
|
2162
2163
|
};
|
|
2163
2164
|
|
|
2164
|
-
return
|
|
2165
|
+
return React.createElement(
|
|
2165
2166
|
Figure$1,
|
|
2166
2167
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2167
|
-
|
|
2168
|
+
React.createElement(
|
|
2168
2169
|
'a',
|
|
2169
2170
|
{ href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2170
|
-
|
|
2171
|
+
React.createElement(
|
|
2171
2172
|
LazyLoad,
|
|
2172
2173
|
{ once: true },
|
|
2173
|
-
|
|
2174
|
+
React.createElement(
|
|
2174
2175
|
'picture',
|
|
2175
2176
|
null,
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2177
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2178
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2179
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2180
|
+
React.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2180
2181
|
)
|
|
2181
2182
|
),
|
|
2182
|
-
caption &&
|
|
2183
|
+
caption && React.createElement(
|
|
2183
2184
|
Figure$1.Caption,
|
|
2184
2185
|
{ className: 'media-caption' },
|
|
2185
2186
|
caption
|
|
@@ -2187,7 +2188,7 @@ var Media = function Media(_ref) {
|
|
|
2187
2188
|
)
|
|
2188
2189
|
);
|
|
2189
2190
|
} else if (caption && caption !== '') {
|
|
2190
|
-
return
|
|
2191
|
+
return React.createElement(
|
|
2191
2192
|
'a',
|
|
2192
2193
|
_extends({}, uploadDoc.downloadMedia ? {
|
|
2193
2194
|
href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
@@ -2207,10 +2208,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2207
2208
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2208
2209
|
|
|
2209
2210
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2210
|
-
return
|
|
2211
|
+
return React.createElement(
|
|
2211
2212
|
'div',
|
|
2212
2213
|
{ className: 'd-block text-center mb-3' },
|
|
2213
|
-
|
|
2214
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2214
2215
|
);
|
|
2215
2216
|
};
|
|
2216
2217
|
|
|
@@ -2245,7 +2246,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2245
2246
|
var queue = Math.floor(duration / 10);
|
|
2246
2247
|
var segment = Math.floor(current / queue);
|
|
2247
2248
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
|
|
2248
|
-
Segment.report_video_event('Video Ready',
|
|
2249
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
2249
2250
|
};
|
|
2250
2251
|
|
|
2251
2252
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2255,7 +2256,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2255
2256
|
var segment = Math.floor(current / queue);
|
|
2256
2257
|
if (!queueProgress.includes(segment)) {
|
|
2257
2258
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
|
|
2258
|
-
Segment.report_video_event('Video Segment',
|
|
2259
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
2259
2260
|
queueProgress.push(segment);
|
|
2260
2261
|
}
|
|
2261
2262
|
};
|
|
@@ -2268,7 +2269,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2268
2269
|
var queue = Math.floor(duration / 10);
|
|
2269
2270
|
var segment = Math.floor(current / queue);
|
|
2270
2271
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
|
|
2271
|
-
Segment.report_video_event('Video Play',
|
|
2272
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
2272
2273
|
|
|
2273
2274
|
if (!playReported) {
|
|
2274
2275
|
event.persist();
|
|
@@ -2289,7 +2290,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2289
2290
|
var segment = Math.floor(current / queue);
|
|
2290
2291
|
|
|
2291
2292
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
|
|
2292
|
-
Segment.report_video_event('Video End',
|
|
2293
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
2293
2294
|
setEndReported(true);
|
|
2294
2295
|
clearInterval(intervalID);
|
|
2295
2296
|
}
|
|
@@ -2302,13 +2303,13 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2302
2303
|
var queue = Math.floor(duration / 10);
|
|
2303
2304
|
var segment = Math.floor(current / queue);
|
|
2304
2305
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
|
|
2305
|
-
Segment.report_video_event('Video Pause',
|
|
2306
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2306
2307
|
};
|
|
2307
2308
|
|
|
2308
|
-
return
|
|
2309
|
+
return React.createElement(
|
|
2309
2310
|
'div',
|
|
2310
2311
|
null,
|
|
2311
|
-
vidLoaded &&
|
|
2312
|
+
vidLoaded && React.createElement(
|
|
2312
2313
|
'video',
|
|
2313
2314
|
{
|
|
2314
2315
|
poster: thumbnail || '',
|
|
@@ -2326,7 +2327,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2326
2327
|
onPlay: function onPlay(e) {
|
|
2327
2328
|
return handleOnPlay(e);
|
|
2328
2329
|
} },
|
|
2329
|
-
|
|
2330
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2330
2331
|
'Your browser does not support the video tag.'
|
|
2331
2332
|
)
|
|
2332
2333
|
);
|
|
@@ -2340,9 +2341,7 @@ var Video = function Video(_ref) {
|
|
|
2340
2341
|
_ref$autoplayNextVide = _ref.autoplayNextVideo,
|
|
2341
2342
|
autoplayNextVideo = _ref$autoplayNextVide === undefined ? function () {} : _ref$autoplayNextVide,
|
|
2342
2343
|
_ref$targeting = _ref.targeting,
|
|
2343
|
-
targeting = _ref$targeting === undefined ? null : _ref$targeting
|
|
2344
|
-
_ref$nextVideo = _ref.nextVideo,
|
|
2345
|
-
nextVideo = _ref$nextVideo === undefined ? null : _ref$nextVideo;
|
|
2344
|
+
targeting = _ref$targeting === undefined ? null : _ref$targeting;
|
|
2346
2345
|
var source = node.source,
|
|
2347
2346
|
videoID = node.videoID,
|
|
2348
2347
|
playlistID = node.playlistID,
|
|
@@ -2425,7 +2424,7 @@ var Video = function Video(_ref) {
|
|
|
2425
2424
|
}
|
|
2426
2425
|
|
|
2427
2426
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2428
|
-
Segment.report_video_event('Video Ready',
|
|
2427
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2429
2428
|
});
|
|
2430
2429
|
|
|
2431
2430
|
// play
|
|
@@ -2435,7 +2434,7 @@ var Video = function Video(_ref) {
|
|
|
2435
2434
|
var queue = Math.floor(duration / 10);
|
|
2436
2435
|
var segment = Math.floor(current / queue);
|
|
2437
2436
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2438
|
-
Segment.report_video_event('Video Play',
|
|
2437
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2439
2438
|
});
|
|
2440
2439
|
|
|
2441
2440
|
// pause
|
|
@@ -2445,7 +2444,7 @@ var Video = function Video(_ref) {
|
|
|
2445
2444
|
var queue = Math.floor(duration / 10);
|
|
2446
2445
|
var segment = Math.floor(current / queue);
|
|
2447
2446
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2448
|
-
Segment.report_video_event('Video Pause',
|
|
2447
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2449
2448
|
});
|
|
2450
2449
|
|
|
2451
2450
|
// end
|
|
@@ -2455,12 +2454,8 @@ var Video = function Video(_ref) {
|
|
|
2455
2454
|
var queue = Math.floor(duration / 10);
|
|
2456
2455
|
var segment = Math.floor(current / queue);
|
|
2457
2456
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2458
|
-
Segment.report_video_event('Video End',
|
|
2459
|
-
//This is for old series format
|
|
2457
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2460
2458
|
autoplayNextVideo(evt);
|
|
2461
|
-
if (nextVideo) {
|
|
2462
|
-
window.location.href = '/view/' + nextVideo;
|
|
2463
|
-
}
|
|
2464
2459
|
});
|
|
2465
2460
|
|
|
2466
2461
|
var queueProgress = [];
|
|
@@ -2471,7 +2466,7 @@ var Video = function Video(_ref) {
|
|
|
2471
2466
|
var segment = Math.floor(current / queue);
|
|
2472
2467
|
if (!queueProgress.includes(segment)) {
|
|
2473
2468
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2474
|
-
Segment.report_video_event('Video Segment',
|
|
2469
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2475
2470
|
queueProgress.push(segment);
|
|
2476
2471
|
}
|
|
2477
2472
|
});
|
|
@@ -2479,29 +2474,29 @@ var Video = function Video(_ref) {
|
|
|
2479
2474
|
// ad impression
|
|
2480
2475
|
player.on('ads-ad-started', function (evt) {
|
|
2481
2476
|
var duration = player.ads.ad.duration;
|
|
2482
|
-
player.ads.ad.id;
|
|
2477
|
+
var id = player.ads.ad.id;
|
|
2483
2478
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2484
2479
|
|
|
2485
2480
|
//Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2486
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2481
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2487
2482
|
});
|
|
2488
2483
|
|
|
2489
2484
|
// ad ended
|
|
2490
2485
|
player.on('ads-ad-ended', function (evt) {
|
|
2491
2486
|
var duration = player.ads.ad.duration;
|
|
2492
|
-
player.ads.ad.id;
|
|
2487
|
+
var id = player.ads.ad.id;
|
|
2493
2488
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2494
2489
|
//Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2495
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2490
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2496
2491
|
});
|
|
2497
2492
|
};
|
|
2498
2493
|
|
|
2499
2494
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2500
2495
|
if (videoID) {
|
|
2501
|
-
return
|
|
2496
|
+
return React.createElement(
|
|
2502
2497
|
'div',
|
|
2503
2498
|
null,
|
|
2504
|
-
|
|
2499
|
+
React.createElement(ReactPlayerLoader, {
|
|
2505
2500
|
onSuccess: onVideoSuccess,
|
|
2506
2501
|
onFailure: onVideoFailure,
|
|
2507
2502
|
accountId: accountIDs.brightcove.accountId,
|
|
@@ -2509,17 +2504,17 @@ var Video = function Video(_ref) {
|
|
|
2509
2504
|
playerId: accountIDs.brightcove.playerId,
|
|
2510
2505
|
attrs: { className: 'brightcove-fluid', autoPlay: 'muted' }
|
|
2511
2506
|
}),
|
|
2512
|
-
|
|
2507
|
+
React.createElement(
|
|
2513
2508
|
'style',
|
|
2514
2509
|
{ jsx: 'true' },
|
|
2515
2510
|
'\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 '
|
|
2516
2511
|
)
|
|
2517
2512
|
);
|
|
2518
2513
|
} else if (playlistID) {
|
|
2519
|
-
return
|
|
2514
|
+
return React.createElement(
|
|
2520
2515
|
'div',
|
|
2521
2516
|
null,
|
|
2522
|
-
|
|
2517
|
+
React.createElement(ReactPlayerLoader, {
|
|
2523
2518
|
accountId: accountIDs.brightcove.accountId,
|
|
2524
2519
|
playlistId: playlistID,
|
|
2525
2520
|
playerId: accountIDs.brightcove.playerId,
|
|
@@ -2527,26 +2522,26 @@ var Video = function Video(_ref) {
|
|
|
2527
2522
|
onFailure: onVideoFailure,
|
|
2528
2523
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2529
2524
|
}),
|
|
2530
|
-
|
|
2525
|
+
React.createElement(
|
|
2531
2526
|
'style',
|
|
2532
2527
|
{ jsx: 'true' },
|
|
2533
2528
|
'\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 '
|
|
2534
2529
|
)
|
|
2535
2530
|
);
|
|
2536
2531
|
} else if (experienceID) {
|
|
2537
|
-
return
|
|
2532
|
+
return React.createElement(
|
|
2538
2533
|
'div',
|
|
2539
2534
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2540
|
-
videoLoaded &&
|
|
2535
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2541
2536
|
);
|
|
2542
2537
|
}
|
|
2543
2538
|
return null;
|
|
2544
2539
|
}
|
|
2545
2540
|
if (source === 'mp4') {
|
|
2546
|
-
return
|
|
2541
|
+
return React.createElement(
|
|
2547
2542
|
'div',
|
|
2548
2543
|
null,
|
|
2549
|
-
|
|
2544
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2550
2545
|
);
|
|
2551
2546
|
}
|
|
2552
2547
|
|
|
@@ -2757,9 +2752,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2757
2752
|
});
|
|
2758
2753
|
|
|
2759
2754
|
unwrapExports(props);
|
|
2760
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2761
|
-
props.defaultProps;
|
|
2762
|
-
props.propTypes;
|
|
2755
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2756
|
+
var props_2 = props.defaultProps;
|
|
2757
|
+
var props_3 = props.propTypes;
|
|
2763
2758
|
|
|
2764
2759
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2765
2760
|
return isNonNullObject(value)
|
|
@@ -3151,7 +3146,7 @@ function isEqual(a, b) {
|
|
|
3151
3146
|
return true;
|
|
3152
3147
|
}
|
|
3153
3148
|
|
|
3154
|
-
if ((0,
|
|
3149
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3155
3150
|
return true;
|
|
3156
3151
|
}
|
|
3157
3152
|
|
|
@@ -3194,17 +3189,17 @@ function isMediaStream(url) {
|
|
|
3194
3189
|
});
|
|
3195
3190
|
|
|
3196
3191
|
unwrapExports(utils);
|
|
3197
|
-
utils.parseStartTime;
|
|
3198
|
-
utils.parseEndTime;
|
|
3199
|
-
utils.randomString;
|
|
3200
|
-
utils.queryString;
|
|
3201
|
-
utils.getSDK;
|
|
3202
|
-
utils.getConfig;
|
|
3203
|
-
utils.omit;
|
|
3204
|
-
utils.callPlayer;
|
|
3205
|
-
utils.isObject;
|
|
3206
|
-
utils.isEqual;
|
|
3207
|
-
utils.isMediaStream;
|
|
3192
|
+
var utils_1 = utils.parseStartTime;
|
|
3193
|
+
var utils_2 = utils.parseEndTime;
|
|
3194
|
+
var utils_3 = utils.randomString;
|
|
3195
|
+
var utils_4 = utils.queryString;
|
|
3196
|
+
var utils_5 = utils.getSDK;
|
|
3197
|
+
var utils_6 = utils.getConfig;
|
|
3198
|
+
var utils_7 = utils.omit;
|
|
3199
|
+
var utils_8 = utils.callPlayer;
|
|
3200
|
+
var utils_9 = utils.isObject;
|
|
3201
|
+
var utils_10 = utils.isEqual;
|
|
3202
|
+
var utils_11 = utils.isMediaStream;
|
|
3208
3203
|
|
|
3209
3204
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3210
3205
|
|
|
@@ -3213,7 +3208,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3213
3208
|
});
|
|
3214
3209
|
exports["default"] = void 0;
|
|
3215
3210
|
|
|
3216
|
-
var _react = _interopRequireWildcard(
|
|
3211
|
+
var _react = _interopRequireWildcard(React);
|
|
3217
3212
|
|
|
3218
3213
|
|
|
3219
3214
|
|
|
@@ -3623,7 +3618,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3623
3618
|
});
|
|
3624
3619
|
exports["default"] = createSinglePlayer;
|
|
3625
3620
|
|
|
3626
|
-
var _react = _interopRequireWildcard(
|
|
3621
|
+
var _react = _interopRequireWildcard(React);
|
|
3627
3622
|
|
|
3628
3623
|
|
|
3629
3624
|
|
|
@@ -3781,7 +3776,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3781
3776
|
});
|
|
3782
3777
|
exports["default"] = exports.YouTube = void 0;
|
|
3783
3778
|
|
|
3784
|
-
var _react = _interopRequireWildcard(
|
|
3779
|
+
var _react = _interopRequireWildcard(React);
|
|
3785
3780
|
|
|
3786
3781
|
|
|
3787
3782
|
|
|
@@ -4081,7 +4076,7 @@ exports["default"] = _default;
|
|
|
4081
4076
|
});
|
|
4082
4077
|
|
|
4083
4078
|
unwrapExports(YouTube_1);
|
|
4084
|
-
YouTube_1.YouTube;
|
|
4079
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4085
4080
|
|
|
4086
4081
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4087
4082
|
|
|
@@ -4090,7 +4085,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4090
4085
|
});
|
|
4091
4086
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4092
4087
|
|
|
4093
|
-
var _react = _interopRequireWildcard(
|
|
4088
|
+
var _react = _interopRequireWildcard(React);
|
|
4094
4089
|
|
|
4095
4090
|
|
|
4096
4091
|
|
|
@@ -4298,7 +4293,7 @@ exports["default"] = _default;
|
|
|
4298
4293
|
});
|
|
4299
4294
|
|
|
4300
4295
|
unwrapExports(SoundCloud_1);
|
|
4301
|
-
SoundCloud_1.SoundCloud;
|
|
4296
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4302
4297
|
|
|
4303
4298
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4304
4299
|
|
|
@@ -4307,7 +4302,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4307
4302
|
});
|
|
4308
4303
|
exports["default"] = exports.Vimeo = void 0;
|
|
4309
4304
|
|
|
4310
|
-
var _react = _interopRequireWildcard(
|
|
4305
|
+
var _react = _interopRequireWildcard(React);
|
|
4311
4306
|
|
|
4312
4307
|
|
|
4313
4308
|
|
|
@@ -4554,7 +4549,7 @@ exports["default"] = _default;
|
|
|
4554
4549
|
});
|
|
4555
4550
|
|
|
4556
4551
|
unwrapExports(Vimeo_1);
|
|
4557
|
-
Vimeo_1.Vimeo;
|
|
4552
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4558
4553
|
|
|
4559
4554
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4560
4555
|
|
|
@@ -4563,7 +4558,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4563
4558
|
});
|
|
4564
4559
|
exports["default"] = exports.Facebook = void 0;
|
|
4565
4560
|
|
|
4566
|
-
var _react = _interopRequireWildcard(
|
|
4561
|
+
var _react = _interopRequireWildcard(React);
|
|
4567
4562
|
|
|
4568
4563
|
|
|
4569
4564
|
|
|
@@ -4766,7 +4761,7 @@ exports["default"] = _default;
|
|
|
4766
4761
|
});
|
|
4767
4762
|
|
|
4768
4763
|
unwrapExports(Facebook_1);
|
|
4769
|
-
Facebook_1.Facebook;
|
|
4764
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4770
4765
|
|
|
4771
4766
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4772
4767
|
|
|
@@ -4775,7 +4770,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4775
4770
|
});
|
|
4776
4771
|
exports["default"] = exports.Streamable = void 0;
|
|
4777
4772
|
|
|
4778
|
-
var _react = _interopRequireWildcard(
|
|
4773
|
+
var _react = _interopRequireWildcard(React);
|
|
4779
4774
|
|
|
4780
4775
|
|
|
4781
4776
|
|
|
@@ -4977,7 +4972,7 @@ exports["default"] = _default;
|
|
|
4977
4972
|
});
|
|
4978
4973
|
|
|
4979
4974
|
unwrapExports(Streamable_1);
|
|
4980
|
-
Streamable_1.Streamable;
|
|
4975
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4981
4976
|
|
|
4982
4977
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4983
4978
|
|
|
@@ -4986,7 +4981,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4986
4981
|
});
|
|
4987
4982
|
exports["default"] = exports.Wistia = void 0;
|
|
4988
4983
|
|
|
4989
|
-
var _react = _interopRequireWildcard(
|
|
4984
|
+
var _react = _interopRequireWildcard(React);
|
|
4990
4985
|
|
|
4991
4986
|
|
|
4992
4987
|
|
|
@@ -5220,7 +5215,7 @@ exports["default"] = _default;
|
|
|
5220
5215
|
});
|
|
5221
5216
|
|
|
5222
5217
|
unwrapExports(Wistia_1);
|
|
5223
|
-
Wistia_1.Wistia;
|
|
5218
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5224
5219
|
|
|
5225
5220
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5226
5221
|
|
|
@@ -5229,7 +5224,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5229
5224
|
});
|
|
5230
5225
|
exports["default"] = exports.Twitch = void 0;
|
|
5231
5226
|
|
|
5232
|
-
var _react = _interopRequireWildcard(
|
|
5227
|
+
var _react = _interopRequireWildcard(React);
|
|
5233
5228
|
|
|
5234
5229
|
|
|
5235
5230
|
|
|
@@ -5436,7 +5431,7 @@ exports["default"] = _default;
|
|
|
5436
5431
|
});
|
|
5437
5432
|
|
|
5438
5433
|
unwrapExports(Twitch_1);
|
|
5439
|
-
Twitch_1.Twitch;
|
|
5434
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5440
5435
|
|
|
5441
5436
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5442
5437
|
|
|
@@ -5445,7 +5440,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5445
5440
|
});
|
|
5446
5441
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5447
5442
|
|
|
5448
|
-
var _react = _interopRequireWildcard(
|
|
5443
|
+
var _react = _interopRequireWildcard(React);
|
|
5449
5444
|
|
|
5450
5445
|
|
|
5451
5446
|
|
|
@@ -5672,7 +5667,7 @@ exports["default"] = _default;
|
|
|
5672
5667
|
});
|
|
5673
5668
|
|
|
5674
5669
|
unwrapExports(DailyMotion_1);
|
|
5675
|
-
DailyMotion_1.DailyMotion;
|
|
5670
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5676
5671
|
|
|
5677
5672
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5678
5673
|
|
|
@@ -5681,7 +5676,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5681
5676
|
});
|
|
5682
5677
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5683
5678
|
|
|
5684
|
-
var _react = _interopRequireWildcard(
|
|
5679
|
+
var _react = _interopRequireWildcard(React);
|
|
5685
5680
|
|
|
5686
5681
|
|
|
5687
5682
|
|
|
@@ -5871,7 +5866,7 @@ exports["default"] = _default;
|
|
|
5871
5866
|
});
|
|
5872
5867
|
|
|
5873
5868
|
unwrapExports(Mixcloud_1);
|
|
5874
|
-
Mixcloud_1.Mixcloud;
|
|
5869
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5875
5870
|
|
|
5876
5871
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5877
5872
|
|
|
@@ -5880,7 +5875,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5880
5875
|
});
|
|
5881
5876
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5882
5877
|
|
|
5883
|
-
var _react = _interopRequireWildcard(
|
|
5878
|
+
var _react = _interopRequireWildcard(React);
|
|
5884
5879
|
|
|
5885
5880
|
|
|
5886
5881
|
|
|
@@ -6405,7 +6400,7 @@ exports["default"] = _default;
|
|
|
6405
6400
|
});
|
|
6406
6401
|
|
|
6407
6402
|
unwrapExports(FilePlayer_1);
|
|
6408
|
-
FilePlayer_1.FilePlayer;
|
|
6403
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6409
6404
|
|
|
6410
6405
|
var players = createCommonjsModule(function (module, exports) {
|
|
6411
6406
|
|
|
@@ -6447,7 +6442,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6447
6442
|
});
|
|
6448
6443
|
exports["default"] = void 0;
|
|
6449
6444
|
|
|
6450
|
-
var _react = _interopRequireWildcard(
|
|
6445
|
+
var _react = _interopRequireWildcard(React);
|
|
6451
6446
|
|
|
6452
6447
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6453
6448
|
|
|
@@ -6626,7 +6621,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6626
6621
|
});
|
|
6627
6622
|
exports["default"] = renderPreloadPlayers;
|
|
6628
6623
|
|
|
6629
|
-
var _react = _interopRequireDefault(
|
|
6624
|
+
var _react = _interopRequireDefault(React);
|
|
6630
6625
|
|
|
6631
6626
|
var _Player = _interopRequireDefault(Player_1);
|
|
6632
6627
|
|
|
@@ -6765,7 +6760,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6765
6760
|
});
|
|
6766
6761
|
exports["default"] = void 0;
|
|
6767
6762
|
|
|
6768
|
-
var _react = _interopRequireWildcard(
|
|
6763
|
+
var _react = _interopRequireWildcard(React);
|
|
6769
6764
|
|
|
6770
6765
|
|
|
6771
6766
|
|
|
@@ -7079,20 +7074,20 @@ var Audio = function Audio(_ref) {
|
|
|
7079
7074
|
var node = _ref.node;
|
|
7080
7075
|
|
|
7081
7076
|
if (node.uploadAudio) {
|
|
7082
|
-
return
|
|
7077
|
+
return React.createElement(
|
|
7083
7078
|
'div',
|
|
7084
7079
|
{ className: 'audio d-block text-center mb-3' },
|
|
7085
|
-
|
|
7080
|
+
React.createElement(
|
|
7086
7081
|
'audio',
|
|
7087
7082
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7088
|
-
|
|
7089
|
-
|
|
7083
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7084
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7090
7085
|
'Your browser does not support the audio element.'
|
|
7091
7086
|
),
|
|
7092
|
-
node.caption &&
|
|
7087
|
+
node.caption && React.createElement(
|
|
7093
7088
|
'p',
|
|
7094
7089
|
{ style: { fontSize: '.9rem' } },
|
|
7095
|
-
|
|
7090
|
+
React.createElement(
|
|
7096
7091
|
'em',
|
|
7097
7092
|
null,
|
|
7098
7093
|
node.caption
|
|
@@ -7102,15 +7097,15 @@ var Audio = function Audio(_ref) {
|
|
|
7102
7097
|
} else if (node.audioFilePth) {
|
|
7103
7098
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7104
7099
|
if (hostname === 'embeds.audioboom.com') {
|
|
7105
|
-
return
|
|
7100
|
+
return React.createElement(
|
|
7106
7101
|
'div',
|
|
7107
7102
|
null,
|
|
7108
|
-
|
|
7103
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7109
7104
|
' ',
|
|
7110
|
-
node.caption &&
|
|
7105
|
+
node.caption && React.createElement(
|
|
7111
7106
|
'p',
|
|
7112
7107
|
{ style: { fontSize: '.9rem' } },
|
|
7113
|
-
|
|
7108
|
+
React.createElement(
|
|
7114
7109
|
'em',
|
|
7115
7110
|
null,
|
|
7116
7111
|
node.caption
|
|
@@ -7118,14 +7113,14 @@ var Audio = function Audio(_ref) {
|
|
|
7118
7113
|
)
|
|
7119
7114
|
);
|
|
7120
7115
|
}
|
|
7121
|
-
return
|
|
7116
|
+
return React.createElement(
|
|
7122
7117
|
'div',
|
|
7123
7118
|
{ className: 'audio' },
|
|
7124
|
-
|
|
7125
|
-
node.caption &&
|
|
7119
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7120
|
+
node.caption && React.createElement(
|
|
7126
7121
|
'p',
|
|
7127
7122
|
{ style: { fontSize: '.9rem' } },
|
|
7128
|
-
|
|
7123
|
+
React.createElement(
|
|
7129
7124
|
'em',
|
|
7130
7125
|
null,
|
|
7131
7126
|
node.caption
|
|
@@ -7144,34 +7139,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7144
7139
|
var showAuthorDetails = arguments[7];
|
|
7145
7140
|
|
|
7146
7141
|
if (authorName && authorURL) {
|
|
7147
|
-
return
|
|
7142
|
+
return React.createElement(
|
|
7148
7143
|
'span',
|
|
7149
7144
|
null,
|
|
7150
|
-
|
|
7145
|
+
React.createElement(
|
|
7151
7146
|
'a',
|
|
7152
7147
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7153
7148
|
authorName
|
|
7154
7149
|
),
|
|
7155
|
-
showAuthorDetails &&
|
|
7150
|
+
showAuthorDetails && React.createElement(
|
|
7156
7151
|
Card,
|
|
7157
7152
|
{ className: 'author-details-card-' + index },
|
|
7158
|
-
|
|
7153
|
+
React.createElement(
|
|
7159
7154
|
Row,
|
|
7160
7155
|
null,
|
|
7161
|
-
profileImage &&
|
|
7156
|
+
profileImage && React.createElement(
|
|
7162
7157
|
Col,
|
|
7163
7158
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7164
|
-
|
|
7159
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7165
7160
|
),
|
|
7166
|
-
|
|
7161
|
+
React.createElement(
|
|
7167
7162
|
Col,
|
|
7168
7163
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7169
|
-
|
|
7164
|
+
React.createElement(
|
|
7170
7165
|
'div',
|
|
7171
7166
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7172
7167
|
authorName
|
|
7173
7168
|
),
|
|
7174
|
-
|
|
7169
|
+
React.createElement(
|
|
7175
7170
|
'p',
|
|
7176
7171
|
null,
|
|
7177
7172
|
biography
|
|
@@ -7179,7 +7174,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7179
7174
|
)
|
|
7180
7175
|
)
|
|
7181
7176
|
),
|
|
7182
|
-
|
|
7177
|
+
React.createElement(
|
|
7183
7178
|
'style',
|
|
7184
7179
|
{ jsx: 'true' },
|
|
7185
7180
|
'\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 '
|
|
@@ -7187,7 +7182,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7187
7182
|
length !== index + 1 && ', '
|
|
7188
7183
|
);
|
|
7189
7184
|
} else if (authorName) {
|
|
7190
|
-
return
|
|
7185
|
+
return React.createElement(
|
|
7191
7186
|
'span',
|
|
7192
7187
|
{ key: index },
|
|
7193
7188
|
authorName,
|
|
@@ -7343,7 +7338,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7343
7338
|
var queue = Math.floor(duration / 10);
|
|
7344
7339
|
var segment = Math.floor(current / queue);
|
|
7345
7340
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
7346
|
-
Segment.report_video_event('Video Ready',
|
|
7341
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
7347
7342
|
//autoplay
|
|
7348
7343
|
|
|
7349
7344
|
//Small pause before starting next video
|
|
@@ -7364,7 +7359,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7364
7359
|
var segment = Math.floor(current / queue);
|
|
7365
7360
|
|
|
7366
7361
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
7367
|
-
Segment.report_video_event('Video End',
|
|
7362
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
7368
7363
|
setEndReported(true);
|
|
7369
7364
|
clearInterval(intervalID);
|
|
7370
7365
|
}
|
|
@@ -7415,7 +7410,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7415
7410
|
var segment = Math.floor(current / queue);
|
|
7416
7411
|
if (!queueProgress.includes(segment)) {
|
|
7417
7412
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
7418
|
-
Segment.report_video_event('Video Segment',
|
|
7413
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
7419
7414
|
queueProgress.push(segment);
|
|
7420
7415
|
}
|
|
7421
7416
|
};
|
|
@@ -7429,7 +7424,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7429
7424
|
var segment = Math.floor(current / queue);
|
|
7430
7425
|
|
|
7431
7426
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
7432
|
-
Segment.report_video_event('Video Play',
|
|
7427
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
7433
7428
|
|
|
7434
7429
|
if (!playReported) {
|
|
7435
7430
|
setPlayReported(true);
|
|
@@ -7448,7 +7443,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7448
7443
|
var segment = Math.floor(current / queue);
|
|
7449
7444
|
|
|
7450
7445
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
7451
|
-
Segment.report_video_event('Video Pause',
|
|
7446
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
7452
7447
|
};
|
|
7453
7448
|
|
|
7454
7449
|
// Youtube Options
|
|
@@ -7459,44 +7454,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7459
7454
|
}
|
|
7460
7455
|
};
|
|
7461
7456
|
|
|
7462
|
-
return
|
|
7457
|
+
return React.createElement(
|
|
7463
7458
|
'div',
|
|
7464
7459
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7465
|
-
|
|
7460
|
+
React.createElement(
|
|
7466
7461
|
'div',
|
|
7467
7462
|
{ className: 'mt-2 mb-5' },
|
|
7468
|
-
series &&
|
|
7463
|
+
series && React.createElement(
|
|
7469
7464
|
'div',
|
|
7470
7465
|
{ style: { fontSize: '0.9rem' } },
|
|
7471
7466
|
article.title,
|
|
7472
7467
|
' - Episode ',
|
|
7473
7468
|
series
|
|
7474
7469
|
),
|
|
7475
|
-
Videos[series - 1] &&
|
|
7470
|
+
Videos[series - 1] && React.createElement(
|
|
7476
7471
|
'h1',
|
|
7477
7472
|
{ className: 'mb-3' },
|
|
7478
7473
|
Videos[series - 1].title
|
|
7479
7474
|
),
|
|
7480
|
-
|
|
7475
|
+
React.createElement(
|
|
7481
7476
|
'div',
|
|
7482
7477
|
null,
|
|
7483
7478
|
moment(article.published).format('LL')
|
|
7484
7479
|
),
|
|
7485
|
-
|
|
7480
|
+
React.createElement(
|
|
7486
7481
|
'div',
|
|
7487
7482
|
{ className: 'mb-3' },
|
|
7488
7483
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7489
|
-
return
|
|
7484
|
+
return React.createElement(
|
|
7490
7485
|
'span',
|
|
7491
7486
|
{ key: index },
|
|
7492
7487
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7493
7488
|
);
|
|
7494
7489
|
})
|
|
7495
7490
|
),
|
|
7496
|
-
|
|
7491
|
+
React.createElement(
|
|
7497
7492
|
'p',
|
|
7498
7493
|
null,
|
|
7499
|
-
|
|
7494
|
+
React.createElement(SocialShare, {
|
|
7500
7495
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7501
7496
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7502
7497
|
shareVia: meta.shareVia,
|
|
@@ -7511,20 +7506,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7511
7506
|
hideFacebook: meta.hideFBShare
|
|
7512
7507
|
})
|
|
7513
7508
|
),
|
|
7514
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7509
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7515
7510
|
'p',
|
|
7516
7511
|
{ className: 'mb-3' },
|
|
7517
|
-
|
|
7512
|
+
React.createElement(
|
|
7518
7513
|
'em',
|
|
7519
7514
|
null,
|
|
7520
7515
|
Videos[series - 1].intro
|
|
7521
7516
|
)
|
|
7522
7517
|
)
|
|
7523
7518
|
),
|
|
7524
|
-
|
|
7519
|
+
React.createElement(
|
|
7525
7520
|
'div',
|
|
7526
7521
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7527
|
-
vidUrl && vidType == 'youtube' &&
|
|
7522
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7528
7523
|
className: 'fluid-iframe',
|
|
7529
7524
|
videoId: getYoutubeId(vidUrl),
|
|
7530
7525
|
opts: opts,
|
|
@@ -7535,10 +7530,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7535
7530
|
return handleOnEnd(e);
|
|
7536
7531
|
}
|
|
7537
7532
|
}),
|
|
7538
|
-
vidUrl && vidType == 'mp4' &&
|
|
7539
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7540
|
-
|
|
7541
|
-
series &&
|
|
7533
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7534
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7535
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7536
|
+
series && React.createElement(
|
|
7542
7537
|
'div',
|
|
7543
7538
|
{
|
|
7544
7539
|
className: 'vid-series',
|
|
@@ -7548,10 +7543,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7548
7543
|
maxHeight: '100%',
|
|
7549
7544
|
paddingBottom: '0'
|
|
7550
7545
|
} },
|
|
7551
|
-
|
|
7546
|
+
React.createElement(
|
|
7552
7547
|
'p',
|
|
7553
7548
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7554
|
-
|
|
7549
|
+
React.createElement(
|
|
7555
7550
|
'b',
|
|
7556
7551
|
{ style: { fontSize: '1.25em' } },
|
|
7557
7552
|
'Now Playing:'
|
|
@@ -7559,16 +7554,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7559
7554
|
' ',
|
|
7560
7555
|
seriesData[series ? series - 1 : 0].title
|
|
7561
7556
|
),
|
|
7562
|
-
vidUrl &&
|
|
7557
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7563
7558
|
)
|
|
7564
7559
|
),
|
|
7565
|
-
|
|
7566
|
-
|
|
7560
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7561
|
+
React.createElement(
|
|
7567
7562
|
'div',
|
|
7568
7563
|
{ className: 'vid-text' },
|
|
7569
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7564
|
+
Videos[series - 1] && Videos[series - 1].text && React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7570
7565
|
),
|
|
7571
|
-
|
|
7566
|
+
React.createElement(
|
|
7572
7567
|
'style',
|
|
7573
7568
|
{ jsx: 'true' },
|
|
7574
7569
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7576,14 +7571,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7576
7571
|
);
|
|
7577
7572
|
};
|
|
7578
7573
|
|
|
7579
|
-
var Poll
|
|
7580
|
-
var node = _ref.node
|
|
7581
|
-
_ref.client
|
|
7582
|
-
_ref.pageview
|
|
7583
|
-
_ref.videoAccountIDs
|
|
7584
|
-
|
|
7585
|
-
_ref.showVotes
|
|
7586
|
-
|
|
7574
|
+
var Poll = function Poll(_ref) {
|
|
7575
|
+
var node = _ref.node,
|
|
7576
|
+
client = _ref.client,
|
|
7577
|
+
pageview = _ref.pageview,
|
|
7578
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7579
|
+
onVote = _ref.onVote,
|
|
7580
|
+
_ref$showVotes = _ref.showVotes,
|
|
7581
|
+
getSerializers = _ref.getSerializers;
|
|
7587
7582
|
|
|
7588
7583
|
var _useState = useState(null),
|
|
7589
7584
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7621,67 +7616,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7621
7616
|
return acc;
|
|
7622
7617
|
}
|
|
7623
7618
|
}, 0);
|
|
7624
|
-
return
|
|
7625
|
-
|
|
7619
|
+
return React.createElement(
|
|
7620
|
+
React.Fragment,
|
|
7626
7621
|
null,
|
|
7627
|
-
question &&
|
|
7622
|
+
question && React.createElement(
|
|
7628
7623
|
'p',
|
|
7629
7624
|
{ className: 'font-weight-bold' },
|
|
7630
7625
|
question
|
|
7631
7626
|
),
|
|
7632
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7627
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7633
7628
|
'form',
|
|
7634
7629
|
{ onSubmit: function onSubmit(e) {
|
|
7635
7630
|
return onSubmitPoll(e);
|
|
7636
7631
|
} },
|
|
7637
7632
|
choices && choices.map(function (choice) {
|
|
7638
|
-
return
|
|
7633
|
+
return React.createElement(
|
|
7639
7634
|
'div',
|
|
7640
7635
|
{ key: choice._key },
|
|
7641
|
-
|
|
7636
|
+
React.createElement(
|
|
7642
7637
|
'label',
|
|
7643
7638
|
{ className: 'pl-2' },
|
|
7644
|
-
|
|
7639
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7645
7640
|
return setSelectedChoice(e.target.value);
|
|
7646
7641
|
} }),
|
|
7647
7642
|
' ' + choice.choiceText
|
|
7648
7643
|
)
|
|
7649
7644
|
);
|
|
7650
7645
|
}),
|
|
7651
|
-
|
|
7646
|
+
React.createElement(
|
|
7652
7647
|
Button,
|
|
7653
7648
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7654
7649
|
'Vote'
|
|
7655
7650
|
)
|
|
7656
7651
|
),
|
|
7657
|
-
|
|
7652
|
+
React.createElement(
|
|
7658
7653
|
'div',
|
|
7659
7654
|
{ className: 'progress-container' },
|
|
7660
7655
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7661
7656
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7662
|
-
return
|
|
7657
|
+
return React.createElement(
|
|
7663
7658
|
'div',
|
|
7664
7659
|
{ key: choice._key, className: 'mb-3' },
|
|
7665
|
-
|
|
7660
|
+
React.createElement(
|
|
7666
7661
|
'div',
|
|
7667
7662
|
{ className: 'correct-answer' },
|
|
7668
|
-
|
|
7663
|
+
React.createElement(
|
|
7669
7664
|
'div',
|
|
7670
7665
|
null,
|
|
7671
7666
|
choice.choiceText
|
|
7672
7667
|
),
|
|
7673
|
-
choice.choiceAnswer === true &&
|
|
7668
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7674
7669
|
'div',
|
|
7675
7670
|
null,
|
|
7676
|
-
|
|
7671
|
+
React.createElement(
|
|
7677
7672
|
'span',
|
|
7678
7673
|
{ style: { color: 'limegreen' } },
|
|
7679
7674
|
'Correct!'
|
|
7680
7675
|
)
|
|
7681
7676
|
)
|
|
7682
7677
|
),
|
|
7683
|
-
|
|
7684
|
-
|
|
7678
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7679
|
+
React.createElement(
|
|
7685
7680
|
'span',
|
|
7686
7681
|
{ className: 'float-right' },
|
|
7687
7682
|
percentage,
|
|
@@ -7692,14 +7687,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7692
7687
|
);
|
|
7693
7688
|
})
|
|
7694
7689
|
),
|
|
7695
|
-
showAnswer &&
|
|
7690
|
+
showAnswer && React.createElement(
|
|
7696
7691
|
'h4',
|
|
7697
7692
|
{ className: 'text-center small p-3' },
|
|
7698
7693
|
'Total Votes: ',
|
|
7699
7694
|
choicesTotalCount
|
|
7700
7695
|
),
|
|
7701
|
-
showAnswer && response &&
|
|
7702
|
-
|
|
7696
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7697
|
+
React.createElement(
|
|
7703
7698
|
'style',
|
|
7704
7699
|
{ jsx: 'true' },
|
|
7705
7700
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7717,22 +7712,22 @@ _export(_export.S, 'Object', {
|
|
|
7717
7712
|
}
|
|
7718
7713
|
});
|
|
7719
7714
|
|
|
7720
|
-
var values
|
|
7715
|
+
var values = _core.Object.values;
|
|
7721
7716
|
|
|
7722
|
-
var values = createCommonjsModule(function (module) {
|
|
7723
|
-
module.exports = { "default": values
|
|
7717
|
+
var values$1 = createCommonjsModule(function (module) {
|
|
7718
|
+
module.exports = { "default": values, __esModule: true };
|
|
7724
7719
|
});
|
|
7725
7720
|
|
|
7726
|
-
var _Object$values = unwrapExports(values);
|
|
7721
|
+
var _Object$values = unwrapExports(values$1);
|
|
7727
7722
|
|
|
7728
|
-
var Poll = function Poll(_ref) {
|
|
7729
|
-
var node = _ref.node
|
|
7730
|
-
_ref.client
|
|
7731
|
-
_ref.pageview
|
|
7732
|
-
_ref.videoAccountIDs
|
|
7733
|
-
|
|
7734
|
-
_ref.showVotes
|
|
7735
|
-
|
|
7723
|
+
var Poll$1 = function Poll(_ref) {
|
|
7724
|
+
var node = _ref.node,
|
|
7725
|
+
client = _ref.client,
|
|
7726
|
+
pageview = _ref.pageview,
|
|
7727
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7728
|
+
onVote = _ref.onVote,
|
|
7729
|
+
_ref$showVotes = _ref.showVotes,
|
|
7730
|
+
getSerializers = _ref.getSerializers;
|
|
7736
7731
|
|
|
7737
7732
|
var _useState = useState(null),
|
|
7738
7733
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7798,67 +7793,67 @@ var Poll = function Poll(_ref) {
|
|
|
7798
7793
|
return acc;
|
|
7799
7794
|
}
|
|
7800
7795
|
}, 0);
|
|
7801
|
-
return
|
|
7802
|
-
|
|
7796
|
+
return React.createElement(
|
|
7797
|
+
React.Fragment,
|
|
7803
7798
|
null,
|
|
7804
|
-
question &&
|
|
7799
|
+
question && React.createElement(
|
|
7805
7800
|
'p',
|
|
7806
7801
|
{ className: 'font-weight-bold' },
|
|
7807
7802
|
question
|
|
7808
7803
|
),
|
|
7809
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7804
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7810
7805
|
'form',
|
|
7811
7806
|
{ onSubmit: function onSubmit(e) {
|
|
7812
7807
|
return onSubmitPoll(e);
|
|
7813
7808
|
} },
|
|
7814
7809
|
choices && choices.map(function (choice) {
|
|
7815
|
-
return
|
|
7810
|
+
return React.createElement(
|
|
7816
7811
|
'div',
|
|
7817
7812
|
{ key: choice._key },
|
|
7818
|
-
|
|
7813
|
+
React.createElement(
|
|
7819
7814
|
'label',
|
|
7820
7815
|
{ className: 'pl-2' },
|
|
7821
|
-
|
|
7816
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7822
7817
|
return setSelectedChoice(e.target.value);
|
|
7823
7818
|
} }),
|
|
7824
7819
|
' ' + choice.choiceText
|
|
7825
7820
|
)
|
|
7826
7821
|
);
|
|
7827
7822
|
}),
|
|
7828
|
-
|
|
7823
|
+
React.createElement(
|
|
7829
7824
|
Button,
|
|
7830
7825
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7831
7826
|
'Vote'
|
|
7832
7827
|
)
|
|
7833
7828
|
),
|
|
7834
|
-
|
|
7829
|
+
React.createElement(
|
|
7835
7830
|
'div',
|
|
7836
7831
|
{ className: 'progress-container' },
|
|
7837
7832
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7838
7833
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7839
|
-
return
|
|
7834
|
+
return React.createElement(
|
|
7840
7835
|
'div',
|
|
7841
7836
|
{ key: choice._key, className: 'mb-3' },
|
|
7842
|
-
|
|
7837
|
+
React.createElement(
|
|
7843
7838
|
'div',
|
|
7844
7839
|
{ className: 'correct-answer' },
|
|
7845
|
-
|
|
7840
|
+
React.createElement(
|
|
7846
7841
|
'div',
|
|
7847
7842
|
null,
|
|
7848
7843
|
choice.choiceText
|
|
7849
7844
|
),
|
|
7850
|
-
choice.choiceAnswer === true &&
|
|
7845
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7851
7846
|
'div',
|
|
7852
7847
|
null,
|
|
7853
|
-
|
|
7848
|
+
React.createElement(
|
|
7854
7849
|
'span',
|
|
7855
7850
|
{ style: { color: 'limegreen' } },
|
|
7856
7851
|
'Correct!'
|
|
7857
7852
|
)
|
|
7858
7853
|
)
|
|
7859
7854
|
),
|
|
7860
|
-
|
|
7861
|
-
|
|
7855
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7856
|
+
React.createElement(
|
|
7862
7857
|
'span',
|
|
7863
7858
|
{ className: 'float-right' },
|
|
7864
7859
|
percentage,
|
|
@@ -7869,14 +7864,14 @@ var Poll = function Poll(_ref) {
|
|
|
7869
7864
|
);
|
|
7870
7865
|
})
|
|
7871
7866
|
),
|
|
7872
|
-
showAnswer &&
|
|
7867
|
+
showAnswer && React.createElement(
|
|
7873
7868
|
'h4',
|
|
7874
7869
|
{ className: 'text-center small p-3' },
|
|
7875
7870
|
'Total Votes: ',
|
|
7876
7871
|
choicesTotalCount
|
|
7877
7872
|
),
|
|
7878
|
-
showAnswer && response &&
|
|
7879
|
-
|
|
7873
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7874
|
+
React.createElement(
|
|
7880
7875
|
'style',
|
|
7881
7876
|
{ jsx: 'true' },
|
|
7882
7877
|
'\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 '
|
|
@@ -7884,7 +7879,7 @@ var Poll = function Poll(_ref) {
|
|
|
7884
7879
|
);
|
|
7885
7880
|
};
|
|
7886
7881
|
|
|
7887
|
-
var numberOfPaginations =
|
|
7882
|
+
var numberOfPaginations = main_39 ? 4 : 10;
|
|
7888
7883
|
|
|
7889
7884
|
var Quiz = function Quiz(_ref) {
|
|
7890
7885
|
var quizzes = _ref.quizzes,
|
|
@@ -8002,20 +7997,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
8002
7997
|
};
|
|
8003
7998
|
|
|
8004
7999
|
var renderPagination = function renderPagination() {
|
|
8005
|
-
return
|
|
8000
|
+
return React.createElement(
|
|
8006
8001
|
Pagination,
|
|
8007
|
-
{ className: 'p-0 m-0', size:
|
|
8008
|
-
|
|
8002
|
+
{ className: 'p-0 m-0', size: main_39 && 'sm' },
|
|
8003
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
8009
8004
|
return changePage('first');
|
|
8010
8005
|
}, disabled: currentPage === 1 }),
|
|
8011
|
-
|
|
8006
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
8012
8007
|
return changePage('prev');
|
|
8013
8008
|
}, disabled: currentPage === 1 }),
|
|
8014
|
-
|
|
8009
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
8015
8010
|
return renderNewPages('prev');
|
|
8016
8011
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
8017
8012
|
pages.map(function (page) {
|
|
8018
|
-
return
|
|
8013
|
+
return React.createElement(
|
|
8019
8014
|
Pagination.Item,
|
|
8020
8015
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
8021
8016
|
return changePage(page);
|
|
@@ -8023,13 +8018,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
8023
8018
|
page
|
|
8024
8019
|
);
|
|
8025
8020
|
}),
|
|
8026
|
-
|
|
8021
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
8027
8022
|
return renderNewPages('next');
|
|
8028
8023
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
8029
|
-
|
|
8024
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
8030
8025
|
return changePage('next');
|
|
8031
8026
|
}, disabled: currentPage === pageCount }),
|
|
8032
|
-
|
|
8027
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
8033
8028
|
return changePage('last');
|
|
8034
8029
|
}, disabled: currentPage === pageCount })
|
|
8035
8030
|
);
|
|
@@ -8112,51 +8107,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8112
8107
|
}
|
|
8113
8108
|
};
|
|
8114
8109
|
|
|
8115
|
-
return
|
|
8116
|
-
|
|
8110
|
+
return React.createElement(
|
|
8111
|
+
React.Fragment,
|
|
8117
8112
|
null,
|
|
8118
|
-
quizzes[currentPage - 1] &&
|
|
8119
|
-
|
|
8113
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8114
|
+
React.Fragment,
|
|
8120
8115
|
null,
|
|
8121
|
-
|
|
8122
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8116
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8117
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8123
8118
|
'form',
|
|
8124
8119
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8125
8120
|
return e.preventDefault();
|
|
8126
8121
|
} },
|
|
8127
8122
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8128
|
-
return
|
|
8123
|
+
return React.createElement(
|
|
8129
8124
|
'div',
|
|
8130
8125
|
{ key: answer._key },
|
|
8131
|
-
|
|
8126
|
+
React.createElement(
|
|
8132
8127
|
'label',
|
|
8133
8128
|
{ className: 'pl-2' },
|
|
8134
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8129
|
+
quizzes[currentPage - 1].multiAnswer ? React.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8135
8130
|
' ' + answer.answerText
|
|
8136
8131
|
)
|
|
8137
8132
|
);
|
|
8138
8133
|
})
|
|
8139
8134
|
)
|
|
8140
8135
|
),
|
|
8141
|
-
!showAnswer &&
|
|
8136
|
+
!showAnswer && React.createElement(
|
|
8142
8137
|
Button$1,
|
|
8143
8138
|
{ onClick: function onClick() {
|
|
8144
8139
|
return checkAnswers();
|
|
8145
8140
|
}, variant: 'info', block: true },
|
|
8146
8141
|
'Please click here for answer'
|
|
8147
8142
|
),
|
|
8148
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8149
|
-
|
|
8143
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8144
|
+
React.Fragment,
|
|
8150
8145
|
null,
|
|
8151
|
-
|
|
8146
|
+
React.createElement(
|
|
8152
8147
|
'h4',
|
|
8153
8148
|
null,
|
|
8154
8149
|
'Answer:'
|
|
8155
8150
|
),
|
|
8156
|
-
quizzes[currentPage - 1].answer &&
|
|
8151
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8157
8152
|
),
|
|
8158
|
-
|
|
8159
|
-
pageCount > 1 &&
|
|
8153
|
+
React.createElement('br', null),
|
|
8154
|
+
pageCount > 1 && React.createElement(
|
|
8160
8155
|
'div',
|
|
8161
8156
|
{ className: 'd-flex justify-content-center' },
|
|
8162
8157
|
renderPagination()
|
|
@@ -8167,19 +8162,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8167
8162
|
var Leads = function Leads(_ref) {
|
|
8168
8163
|
var url = _ref.url;
|
|
8169
8164
|
|
|
8170
|
-
return
|
|
8165
|
+
return React.createElement(
|
|
8171
8166
|
'div',
|
|
8172
8167
|
{ className: 'd-block text-center mb-3' },
|
|
8173
|
-
|
|
8168
|
+
React.createElement(
|
|
8174
8169
|
'style',
|
|
8175
8170
|
{ jsx: 'true' },
|
|
8176
8171
|
'\n @media screen and (max-width: 1190px) {\n .leads-block {\n min-height: 2000px;\n }\n }\n @media screen and (min-width: 1191px) {\n .leads-block {\n min-height: 1500px;\n }\n }\n '
|
|
8177
8172
|
),
|
|
8178
|
-
url &&
|
|
8173
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8179
8174
|
);
|
|
8180
8175
|
};
|
|
8181
8176
|
|
|
8182
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8177
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8183
8178
|
var slides = _ref.node.slides,
|
|
8184
8179
|
client = _ref.client,
|
|
8185
8180
|
pageview = _ref.pageview,
|
|
@@ -8215,53 +8210,53 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8215
8210
|
setCarouselIndex(selectedIndex);
|
|
8216
8211
|
};
|
|
8217
8212
|
|
|
8218
|
-
return
|
|
8213
|
+
return React.createElement(
|
|
8219
8214
|
'div',
|
|
8220
8215
|
{ className: 'mt-3 mb-4' },
|
|
8221
|
-
|
|
8216
|
+
React.createElement(
|
|
8222
8217
|
Carousel,
|
|
8223
8218
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8224
8219
|
slides && slides.map(function (slide) {
|
|
8225
8220
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8226
|
-
return
|
|
8221
|
+
return React.createElement(
|
|
8227
8222
|
Carousel.Item,
|
|
8228
8223
|
{ key: slide._key },
|
|
8229
|
-
|
|
8224
|
+
React.createElement(
|
|
8230
8225
|
'a',
|
|
8231
8226
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8232
|
-
|
|
8227
|
+
React.createElement(
|
|
8233
8228
|
'div',
|
|
8234
8229
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8235
|
-
|
|
8230
|
+
React.createElement(
|
|
8236
8231
|
LazyLoad,
|
|
8237
8232
|
null,
|
|
8238
|
-
|
|
8233
|
+
React.createElement(
|
|
8239
8234
|
'picture',
|
|
8240
8235
|
null,
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8236
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8237
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8238
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8239
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8245
8240
|
)
|
|
8246
8241
|
)
|
|
8247
8242
|
)
|
|
8248
8243
|
),
|
|
8249
|
-
|
|
8244
|
+
React.createElement(
|
|
8250
8245
|
'div',
|
|
8251
8246
|
{ className: 'p-2' },
|
|
8252
|
-
slide.slideshowImage.caption &&
|
|
8247
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8253
8248
|
'h3',
|
|
8254
8249
|
{ style: { padding: '0px' } },
|
|
8255
8250
|
slide.slideshowImage.caption
|
|
8256
8251
|
),
|
|
8257
|
-
slide.description &&
|
|
8252
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8258
8253
|
)
|
|
8259
8254
|
);
|
|
8260
8255
|
}
|
|
8261
8256
|
return null;
|
|
8262
8257
|
})
|
|
8263
8258
|
),
|
|
8264
|
-
|
|
8259
|
+
React.createElement(
|
|
8265
8260
|
'style',
|
|
8266
8261
|
{ jsx: 'true' },
|
|
8267
8262
|
'\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 '
|
|
@@ -8280,10 +8275,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8280
8275
|
sizes = _props$node.sizes,
|
|
8281
8276
|
sizeMapping = _props$node.sizeMapping;
|
|
8282
8277
|
|
|
8283
|
-
return
|
|
8278
|
+
return React.createElement(
|
|
8284
8279
|
'div',
|
|
8285
8280
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8286
|
-
|
|
8281
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8287
8282
|
);
|
|
8288
8283
|
};
|
|
8289
8284
|
|
|
@@ -8294,15 +8289,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8294
8289
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8295
8290
|
|
|
8296
8291
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8297
|
-
return
|
|
8292
|
+
return React.createElement(
|
|
8298
8293
|
'section',
|
|
8299
8294
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8300
|
-
Caption &&
|
|
8295
|
+
Caption && React.createElement(
|
|
8301
8296
|
'h4',
|
|
8302
8297
|
{ className: 'formstack-caption' },
|
|
8303
8298
|
Caption
|
|
8304
8299
|
),
|
|
8305
|
-
|
|
8300
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8306
8301
|
);
|
|
8307
8302
|
};
|
|
8308
8303
|
|
|
@@ -8318,36 +8313,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8318
8313
|
}
|
|
8319
8314
|
});
|
|
8320
8315
|
if (medias && medias.length > 0) {
|
|
8321
|
-
return
|
|
8316
|
+
return React.createElement(
|
|
8322
8317
|
'div',
|
|
8323
8318
|
{ className: 'multi-media-container' },
|
|
8324
|
-
|
|
8319
|
+
React.createElement(
|
|
8325
8320
|
Row$1,
|
|
8326
8321
|
{ noGutters: true },
|
|
8327
8322
|
medias.map(function (media) {
|
|
8328
|
-
return
|
|
8323
|
+
return React.createElement(
|
|
8329
8324
|
Col$1,
|
|
8330
8325
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8331
|
-
|
|
8326
|
+
React.createElement(
|
|
8332
8327
|
'a',
|
|
8333
8328
|
_extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8334
8329
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8335
|
-
|
|
8330
|
+
React.createElement(
|
|
8336
8331
|
'div',
|
|
8337
8332
|
{ className: 'multi-media-image-container' },
|
|
8338
|
-
imageBox &&
|
|
8333
|
+
imageBox && React.createElement(
|
|
8339
8334
|
LazyLoad,
|
|
8340
8335
|
{ once: true },
|
|
8341
|
-
|
|
8336
|
+
React.createElement(
|
|
8342
8337
|
'picture',
|
|
8343
8338
|
null,
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8339
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8340
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8341
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8342
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8348
8343
|
)
|
|
8349
8344
|
),
|
|
8350
|
-
media.caption &&
|
|
8345
|
+
media.caption && React.createElement(
|
|
8351
8346
|
'span',
|
|
8352
8347
|
{ className: 'multi-media-caption' },
|
|
8353
8348
|
media.caption
|
|
@@ -8357,7 +8352,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8357
8352
|
);
|
|
8358
8353
|
})
|
|
8359
8354
|
),
|
|
8360
|
-
|
|
8355
|
+
React.createElement(
|
|
8361
8356
|
'style',
|
|
8362
8357
|
{ jsx: 'true' },
|
|
8363
8358
|
'\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 '
|
|
@@ -8404,7 +8399,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8404
8399
|
}
|
|
8405
8400
|
};
|
|
8406
8401
|
|
|
8407
|
-
_this.wraperRef =
|
|
8402
|
+
_this.wraperRef = React.createRef();
|
|
8408
8403
|
_this.visible = false;
|
|
8409
8404
|
return _this;
|
|
8410
8405
|
}
|
|
@@ -8432,7 +8427,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8432
8427
|
_props$id = _props.id,
|
|
8433
8428
|
id = _props$id === undefined ? '' : _props$id;
|
|
8434
8429
|
|
|
8435
|
-
return
|
|
8430
|
+
return React.createElement(
|
|
8436
8431
|
'div',
|
|
8437
8432
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8438
8433
|
this.props.children
|
|
@@ -8441,7 +8436,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8441
8436
|
}]);
|
|
8442
8437
|
|
|
8443
8438
|
return InscreenSensor;
|
|
8444
|
-
}(
|
|
8439
|
+
}(React.Component);
|
|
8445
8440
|
|
|
8446
8441
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8447
8442
|
var nodes = _ref.nodes,
|
|
@@ -8550,33 +8545,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8550
8545
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8551
8546
|
var showReading = show ? 'showReading' : '';
|
|
8552
8547
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8553
|
-
return
|
|
8548
|
+
return React.createElement(
|
|
8554
8549
|
'div',
|
|
8555
8550
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8556
|
-
|
|
8551
|
+
React.createElement(
|
|
8557
8552
|
'a',
|
|
8558
8553
|
{ onClick: function onClick(e) {
|
|
8559
8554
|
return articleCardClickHandler(e);
|
|
8560
8555
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8561
|
-
|
|
8556
|
+
React.createElement(
|
|
8562
8557
|
'div',
|
|
8563
8558
|
{ className: 'prevNext-thumbnail' },
|
|
8564
|
-
|
|
8565
|
-
|
|
8559
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8560
|
+
React.createElement(
|
|
8566
8561
|
'div',
|
|
8567
8562
|
{ className: 'prevNext-reading ' + showReading },
|
|
8568
8563
|
articleLabel
|
|
8569
8564
|
)
|
|
8570
8565
|
),
|
|
8571
|
-
|
|
8566
|
+
React.createElement(
|
|
8572
8567
|
'div',
|
|
8573
8568
|
{ className: 'prevNext-summary' },
|
|
8574
|
-
|
|
8569
|
+
React.createElement(
|
|
8575
8570
|
'div',
|
|
8576
8571
|
{ className: 'prevNext-publishDate' },
|
|
8577
8572
|
moment(article.published).format('LL')
|
|
8578
8573
|
),
|
|
8579
|
-
|
|
8574
|
+
React.createElement(
|
|
8580
8575
|
'h2',
|
|
8581
8576
|
{ className: 'prevNext-title' },
|
|
8582
8577
|
article.title
|
|
@@ -8625,7 +8620,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8625
8620
|
|
|
8626
8621
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8627
8622
|
if (biography) {
|
|
8628
|
-
return
|
|
8623
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8629
8624
|
}
|
|
8630
8625
|
};
|
|
8631
8626
|
|
|
@@ -8711,7 +8706,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8711
8706
|
//console.log('useLayoutEffect')
|
|
8712
8707
|
if (!firstLoad) {
|
|
8713
8708
|
setUpArrowClicked(false);
|
|
8714
|
-
if (
|
|
8709
|
+
if (main_40) {
|
|
8715
8710
|
grabLoadedAds();
|
|
8716
8711
|
} else {
|
|
8717
8712
|
scrollToArticle();
|
|
@@ -8735,7 +8730,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8735
8730
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8736
8731
|
if (pageview) pageview(path);
|
|
8737
8732
|
|
|
8738
|
-
if (!
|
|
8733
|
+
if (!main_40) {
|
|
8739
8734
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8740
8735
|
if (window.googletag && googletag.pubadsReady) {
|
|
8741
8736
|
lib_3.refresh();
|
|
@@ -8743,7 +8738,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8743
8738
|
});
|
|
8744
8739
|
}
|
|
8745
8740
|
//Refresh leaderboard ad on mobile
|
|
8746
|
-
if (
|
|
8741
|
+
if (main_40) {
|
|
8747
8742
|
var leaderboardSlotId = '';
|
|
8748
8743
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8749
8744
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8783,38 +8778,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8783
8778
|
setSensorVisible(false);
|
|
8784
8779
|
};
|
|
8785
8780
|
|
|
8786
|
-
return
|
|
8787
|
-
|
|
8781
|
+
return React.createElement(
|
|
8782
|
+
React.Fragment,
|
|
8788
8783
|
null,
|
|
8789
|
-
|
|
8784
|
+
React.createElement(
|
|
8790
8785
|
'div',
|
|
8791
8786
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8792
|
-
|
|
8787
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8793
8788
|
return handleArrowClick();
|
|
8794
8789
|
} })
|
|
8795
8790
|
),
|
|
8796
|
-
|
|
8797
|
-
|
|
8791
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8792
|
+
React.createElement(
|
|
8798
8793
|
'div',
|
|
8799
8794
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8800
|
-
|
|
8795
|
+
React.createElement(
|
|
8801
8796
|
'h5',
|
|
8802
8797
|
{ className: 'objective-title' },
|
|
8803
8798
|
nodes.seriesTitle
|
|
8804
8799
|
),
|
|
8805
|
-
|
|
8800
|
+
React.createElement(
|
|
8806
8801
|
'div',
|
|
8807
8802
|
{ className: 'prevNextWrapper' },
|
|
8808
8803
|
PrevNextCards(false, -1)
|
|
8809
8804
|
)
|
|
8810
8805
|
),
|
|
8811
|
-
|
|
8812
|
-
|
|
8806
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8807
|
+
React.createElement(
|
|
8813
8808
|
'div',
|
|
8814
8809
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8815
|
-
|
|
8810
|
+
main_40 && Ads.map(function (ad, index) {
|
|
8816
8811
|
if (index === 0) {
|
|
8817
|
-
return
|
|
8812
|
+
return React.createElement(
|
|
8818
8813
|
'div',
|
|
8819
8814
|
{
|
|
8820
8815
|
key: 'addid-1',
|
|
@@ -8834,14 +8829,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8834
8829
|
}
|
|
8835
8830
|
})
|
|
8836
8831
|
),
|
|
8837
|
-
|
|
8832
|
+
React.createElement(
|
|
8838
8833
|
'div',
|
|
8839
8834
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8840
8835
|
Articles.map(function (article, index) {
|
|
8841
|
-
return
|
|
8836
|
+
return React.createElement(
|
|
8842
8837
|
'div',
|
|
8843
8838
|
{ key: article.title },
|
|
8844
|
-
|
|
8839
|
+
React.createElement(
|
|
8845
8840
|
InscreenSensor,
|
|
8846
8841
|
{
|
|
8847
8842
|
visible: sensorVisible,
|
|
@@ -8859,84 +8854,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8859
8854
|
}
|
|
8860
8855
|
}
|
|
8861
8856
|
} },
|
|
8862
|
-
|
|
8857
|
+
React.createElement(
|
|
8863
8858
|
Head,
|
|
8864
8859
|
null,
|
|
8865
|
-
currentTitle !== null &&
|
|
8860
|
+
currentTitle !== null && React.createElement(
|
|
8866
8861
|
'title',
|
|
8867
8862
|
{ key: 'title' },
|
|
8868
8863
|
currentTitle
|
|
8869
8864
|
),
|
|
8870
|
-
currentSummary !== null &&
|
|
8871
|
-
currentURL !== null &&
|
|
8872
|
-
currentTitle !== null &&
|
|
8873
|
-
currentThumbnail !== null &&
|
|
8874
|
-
currentSummary !== null &&
|
|
8875
|
-
currentTitle !== null &&
|
|
8876
|
-
currentThumbnail !== null &&
|
|
8877
|
-
currentSummary !== null &&
|
|
8865
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8866
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8867
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8868
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8869
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8870
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8871
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8872
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8878
8873
|
),
|
|
8879
|
-
|
|
8874
|
+
React.createElement(
|
|
8880
8875
|
'article',
|
|
8881
8876
|
{ className: 'article-wrapper' },
|
|
8882
|
-
|
|
8877
|
+
React.createElement(
|
|
8883
8878
|
'div',
|
|
8884
8879
|
{ className: 'article-publishDate' },
|
|
8885
8880
|
moment(article.published).format('LL')
|
|
8886
8881
|
),
|
|
8887
|
-
|
|
8882
|
+
React.createElement(
|
|
8888
8883
|
'div',
|
|
8889
8884
|
{ className: 'author-details-wrapper' },
|
|
8890
8885
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8891
|
-
return
|
|
8886
|
+
return React.createElement(
|
|
8892
8887
|
'span',
|
|
8893
8888
|
{ key: index },
|
|
8894
8889
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8895
8890
|
);
|
|
8896
8891
|
})
|
|
8897
8892
|
),
|
|
8898
|
-
|
|
8893
|
+
React.createElement(
|
|
8899
8894
|
'h2',
|
|
8900
8895
|
{ className: 'article-title' },
|
|
8901
8896
|
article.title
|
|
8902
8897
|
),
|
|
8903
|
-
|
|
8898
|
+
React.createElement(
|
|
8904
8899
|
'div',
|
|
8905
8900
|
{ className: 'mt-2 mb-2' },
|
|
8906
|
-
|
|
8901
|
+
React.createElement(BlockContent, _extends({
|
|
8907
8902
|
serializers: getSerializers,
|
|
8908
8903
|
videoAccountIDs: accountIDs,
|
|
8909
8904
|
blocks: article.text,
|
|
8910
8905
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8911
8906
|
}, client.config())),
|
|
8912
|
-
|
|
8907
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8913
8908
|
),
|
|
8914
|
-
Articles.length > 1 &&
|
|
8915
|
-
|
|
8909
|
+
Articles.length > 1 && React.createElement(
|
|
8910
|
+
React.Fragment,
|
|
8916
8911
|
null,
|
|
8917
|
-
|
|
8912
|
+
React.createElement(
|
|
8918
8913
|
'div',
|
|
8919
8914
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8920
|
-
|
|
8915
|
+
React.createElement(
|
|
8921
8916
|
'h5',
|
|
8922
8917
|
{ className: 'objective-title' },
|
|
8923
8918
|
nodes.seriesTitle
|
|
8924
8919
|
),
|
|
8925
|
-
|
|
8920
|
+
React.createElement(
|
|
8926
8921
|
'div',
|
|
8927
8922
|
{ className: 'prevNextWrapper' },
|
|
8928
8923
|
PrevNextCards(true, index)
|
|
8929
8924
|
)
|
|
8930
8925
|
),
|
|
8931
|
-
|
|
8926
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8932
8927
|
)
|
|
8933
8928
|
),
|
|
8934
|
-
|
|
8929
|
+
React.createElement(
|
|
8935
8930
|
'div',
|
|
8936
8931
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8937
|
-
|
|
8932
|
+
main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8938
8933
|
if (innerIndex === 0) {
|
|
8939
|
-
return
|
|
8934
|
+
return React.createElement(
|
|
8940
8935
|
'div',
|
|
8941
8936
|
{
|
|
8942
8937
|
key: 'addid-' + (index + 2),
|
|
@@ -8959,7 +8954,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8959
8954
|
)
|
|
8960
8955
|
);
|
|
8961
8956
|
}),
|
|
8962
|
-
|
|
8957
|
+
React.createElement(
|
|
8963
8958
|
'style',
|
|
8964
8959
|
{ jsx: 'true' },
|
|
8965
8960
|
'\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 '
|
|
@@ -8989,11 +8984,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8989
8984
|
};
|
|
8990
8985
|
}, [handleClickOutside]);
|
|
8991
8986
|
|
|
8992
|
-
return
|
|
8987
|
+
return React.createElement(
|
|
8993
8988
|
'div',
|
|
8994
8989
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8995
|
-
|
|
8996
|
-
|
|
8990
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8991
|
+
React.createElement(
|
|
8997
8992
|
'style',
|
|
8998
8993
|
{ jsx: 'true' },
|
|
8999
8994
|
'\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 '
|
|
@@ -9007,7 +9002,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
9007
9002
|
}
|
|
9008
9003
|
};
|
|
9009
9004
|
|
|
9010
|
-
var FigureImage
|
|
9005
|
+
var FigureImage = React.memo(function (_ref2) {
|
|
9011
9006
|
var node = _ref2.node,
|
|
9012
9007
|
client = _ref2.client,
|
|
9013
9008
|
imgAlt = _ref2.imgAlt,
|
|
@@ -9015,13 +9010,13 @@ var FigureImage$1 = React__default.memo(function (_ref2) {
|
|
|
9015
9010
|
handleClickFigure = _ref2.handleClickFigure;
|
|
9016
9011
|
|
|
9017
9012
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9018
|
-
return
|
|
9013
|
+
return React.createElement(
|
|
9019
9014
|
'picture',
|
|
9020
9015
|
null,
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9016
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9017
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9018
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9019
|
+
React.createElement('img', _extends({
|
|
9025
9020
|
style: figureImageStyle,
|
|
9026
9021
|
className: 'figure-image',
|
|
9027
9022
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9072,30 +9067,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9072
9067
|
|
|
9073
9068
|
var renderTooltip = function renderTooltip(props) {
|
|
9074
9069
|
if (infoBox[0].title) {
|
|
9075
|
-
return
|
|
9070
|
+
return React.createElement(
|
|
9076
9071
|
Popover,
|
|
9077
9072
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9078
|
-
|
|
9073
|
+
React.createElement(
|
|
9079
9074
|
Popover.Title,
|
|
9080
9075
|
{ as: 'h3' },
|
|
9081
9076
|
infoBox[0].title
|
|
9082
9077
|
),
|
|
9083
|
-
|
|
9078
|
+
React.createElement(
|
|
9084
9079
|
Popover.Content,
|
|
9085
9080
|
null,
|
|
9086
|
-
|
|
9081
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9087
9082
|
)
|
|
9088
9083
|
);
|
|
9089
9084
|
} else {
|
|
9090
|
-
return
|
|
9085
|
+
return React.createElement(
|
|
9091
9086
|
Tooltip,
|
|
9092
9087
|
_extends({ id: 'button-tooltip' }, props),
|
|
9093
|
-
|
|
9088
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9094
9089
|
);
|
|
9095
9090
|
}
|
|
9096
9091
|
};
|
|
9097
9092
|
|
|
9098
|
-
var FigureImageWOverLay =
|
|
9093
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9099
9094
|
var node = _ref3.node,
|
|
9100
9095
|
client = _ref3.client,
|
|
9101
9096
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9103,32 +9098,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9103
9098
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9104
9099
|
|
|
9105
9100
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9106
|
-
var triggerAction =
|
|
9107
|
-
var placementLocation =
|
|
9108
|
-
return
|
|
9101
|
+
var triggerAction = main_39 ? 'click' : 'hover';
|
|
9102
|
+
var placementLocation = main_39 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9103
|
+
return React.createElement(
|
|
9109
9104
|
'picture',
|
|
9110
9105
|
null,
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9106
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9107
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9108
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9109
|
+
main_39 && link ? React.createElement('img', _extends({
|
|
9115
9110
|
style: figureImageStyle,
|
|
9116
9111
|
className: 'figure-image',
|
|
9117
9112
|
src: urlFor({ source: node, client: client }),
|
|
9118
9113
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9119
|
-
}, !link && !
|
|
9114
|
+
}, !link && !main_39 && {
|
|
9120
9115
|
onClick: function onClick() {
|
|
9121
9116
|
return handleClickFigure(node, client);
|
|
9122
9117
|
}
|
|
9123
|
-
})) :
|
|
9118
|
+
})) : React.createElement(
|
|
9124
9119
|
OverlayTrigger,
|
|
9125
9120
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9126
|
-
|
|
9121
|
+
React.createElement('img', _extends({
|
|
9127
9122
|
style: figureImageStyle,
|
|
9128
9123
|
className: 'figure-image',
|
|
9129
9124
|
src: urlFor({ source: node, client: client }),
|
|
9130
9125
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9131
|
-
}, !link && !
|
|
9126
|
+
}, !link && !main_39 && {
|
|
9132
9127
|
onClick: function onClick() {
|
|
9133
9128
|
return handleClickFigure(node, client);
|
|
9134
9129
|
}
|
|
@@ -9177,13 +9172,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9177
9172
|
|
|
9178
9173
|
var FigureCaption = useCallback(function () {
|
|
9179
9174
|
if (imgcaption && imgcaption.length > 0) {
|
|
9180
|
-
return
|
|
9175
|
+
return React.createElement(
|
|
9181
9176
|
'div',
|
|
9182
9177
|
{ className: 'figure-caption' },
|
|
9183
|
-
|
|
9178
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9184
9179
|
);
|
|
9185
9180
|
} else if (caption) {
|
|
9186
|
-
return
|
|
9181
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9187
9182
|
} else return null;
|
|
9188
9183
|
}, [caption, imgcaption]);
|
|
9189
9184
|
|
|
@@ -9200,24 +9195,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9200
9195
|
setShowLightbox(true);
|
|
9201
9196
|
}, [node, client]);
|
|
9202
9197
|
|
|
9203
|
-
return
|
|
9204
|
-
|
|
9198
|
+
return React.createElement(
|
|
9199
|
+
React.Fragment,
|
|
9205
9200
|
null,
|
|
9206
|
-
infoBox.length >= 1 ?
|
|
9201
|
+
infoBox.length >= 1 ? React.createElement(
|
|
9207
9202
|
Figure$2,
|
|
9208
9203
|
{ className: '' + class_name, style: figureStyle },
|
|
9209
|
-
link ?
|
|
9204
|
+
link ? React.createElement(
|
|
9210
9205
|
'a',
|
|
9211
9206
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
) :
|
|
9215
|
-
|
|
9207
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9208
|
+
React.createElement(FigureCaption, null)
|
|
9209
|
+
) : React.createElement(
|
|
9210
|
+
React.Fragment,
|
|
9216
9211
|
null,
|
|
9217
|
-
|
|
9218
|
-
|
|
9212
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9213
|
+
React.createElement(FigureCaption, null)
|
|
9219
9214
|
),
|
|
9220
|
-
|
|
9215
|
+
React.createElement(LightBox, {
|
|
9221
9216
|
showLightbox: showLightbox,
|
|
9222
9217
|
lightboxImgSrc: lightboxImgSrc,
|
|
9223
9218
|
closeLightbox: function closeLightbox() {
|
|
@@ -9225,21 +9220,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9225
9220
|
setShowLightbox(false);
|
|
9226
9221
|
}
|
|
9227
9222
|
})
|
|
9228
|
-
) :
|
|
9223
|
+
) : React.createElement(
|
|
9229
9224
|
Figure$2,
|
|
9230
9225
|
{ className: '' + class_name, style: figureStyle },
|
|
9231
|
-
link ?
|
|
9226
|
+
link ? React.createElement(
|
|
9232
9227
|
'a',
|
|
9233
9228
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9234
|
-
|
|
9235
|
-
|
|
9236
|
-
) :
|
|
9237
|
-
|
|
9229
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9230
|
+
React.createElement(FigureCaption, null)
|
|
9231
|
+
) : React.createElement(
|
|
9232
|
+
React.Fragment,
|
|
9238
9233
|
null,
|
|
9239
|
-
|
|
9240
|
-
|
|
9234
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9235
|
+
React.createElement(FigureCaption, null)
|
|
9241
9236
|
),
|
|
9242
|
-
|
|
9237
|
+
React.createElement(LightBox, {
|
|
9243
9238
|
showLightbox: showLightbox,
|
|
9244
9239
|
lightboxImgSrc: lightboxImgSrc,
|
|
9245
9240
|
closeLightbox: function closeLightbox() {
|
|
@@ -9248,7 +9243,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9248
9243
|
}
|
|
9249
9244
|
})
|
|
9250
9245
|
),
|
|
9251
|
-
|
|
9246
|
+
React.createElement(
|
|
9252
9247
|
'style',
|
|
9253
9248
|
{ jsx: 'true' },
|
|
9254
9249
|
'\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 '
|
|
@@ -9256,7 +9251,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9256
9251
|
);
|
|
9257
9252
|
};
|
|
9258
9253
|
|
|
9259
|
-
var Figure =
|
|
9254
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9260
9255
|
|
|
9261
9256
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9262
9257
|
useEffect(function () {
|
|
@@ -9273,7 +9268,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9273
9268
|
}, [ref]);
|
|
9274
9269
|
}
|
|
9275
9270
|
|
|
9276
|
-
var FigureImage =
|
|
9271
|
+
var FigureImage$1 = React.memo(function (_ref) {
|
|
9277
9272
|
var imagesCount = _ref.imagesCount,
|
|
9278
9273
|
image = _ref.image,
|
|
9279
9274
|
client = _ref.client,
|
|
@@ -9281,13 +9276,13 @@ var FigureImage = React__default.memo(function (_ref) {
|
|
|
9281
9276
|
link = _ref.link,
|
|
9282
9277
|
handleClickFigure = _ref.handleClickFigure;
|
|
9283
9278
|
|
|
9284
|
-
return
|
|
9279
|
+
return React.createElement(
|
|
9285
9280
|
'picture',
|
|
9286
9281
|
null,
|
|
9287
|
-
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
|
|
9282
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9283
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9284
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9285
|
+
React.createElement('img', _extends({
|
|
9291
9286
|
'images-count': imagesCount,
|
|
9292
9287
|
className: 'multi-figure-image',
|
|
9293
9288
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9324,13 +9319,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9324
9319
|
imgcaption = _ref2.imgcaption;
|
|
9325
9320
|
|
|
9326
9321
|
if (imgcaption && imgcaption.length > 0) {
|
|
9327
|
-
return
|
|
9322
|
+
return React.createElement(
|
|
9328
9323
|
'div',
|
|
9329
9324
|
{ className: 'multi-figure-caption' },
|
|
9330
|
-
|
|
9325
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9331
9326
|
);
|
|
9332
9327
|
} else if (caption) {
|
|
9333
|
-
return
|
|
9328
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9334
9329
|
} else return null;
|
|
9335
9330
|
};
|
|
9336
9331
|
|
|
@@ -9339,7 +9334,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9339
9334
|
setOpenImg(true);
|
|
9340
9335
|
}, [client]);
|
|
9341
9336
|
|
|
9342
|
-
var FigureImageWOverLay =
|
|
9337
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9343
9338
|
var imagesCount = _ref3.imagesCount,
|
|
9344
9339
|
image = _ref3.image,
|
|
9345
9340
|
client = _ref3.client,
|
|
@@ -9347,32 +9342,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9347
9342
|
link = _ref3.link,
|
|
9348
9343
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9349
9344
|
|
|
9350
|
-
var triggerAction =
|
|
9351
|
-
var placementLocation =
|
|
9352
|
-
return
|
|
9345
|
+
var triggerAction = main_39 ? 'click' : 'hover';
|
|
9346
|
+
var placementLocation = main_39 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9347
|
+
return React.createElement(
|
|
9353
9348
|
'picture',
|
|
9354
9349
|
null,
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
|
|
9358
|
-
|
|
9350
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9351
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9352
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9353
|
+
main_39 && link ? React.createElement('img', _extends({
|
|
9359
9354
|
'images-count': imagesCount,
|
|
9360
9355
|
className: 'multi-figure-image',
|
|
9361
9356
|
src: urlFor({ source: image, client: client }),
|
|
9362
9357
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9363
|
-
}, !link && !
|
|
9358
|
+
}, !link && !main_39 && {
|
|
9364
9359
|
onClick: function onClick() {
|
|
9365
9360
|
return handleClickFigure(image, client);
|
|
9366
9361
|
}
|
|
9367
|
-
})) :
|
|
9362
|
+
})) : React.createElement(
|
|
9368
9363
|
OverlayTrigger,
|
|
9369
9364
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9370
|
-
|
|
9365
|
+
React.createElement('img', _extends({
|
|
9371
9366
|
'images-count': imagesCount,
|
|
9372
9367
|
className: 'multi-figure-image',
|
|
9373
9368
|
src: urlFor({ source: image, client: client }),
|
|
9374
9369
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9375
|
-
}, !link && !
|
|
9370
|
+
}, !link && !main_39 && {
|
|
9376
9371
|
onClick: function onClick() {
|
|
9377
9372
|
return handleClickFigure(image, client);
|
|
9378
9373
|
}
|
|
@@ -9383,102 +9378,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9383
9378
|
|
|
9384
9379
|
var renderTooltip = function renderTooltip(image) {
|
|
9385
9380
|
if (image.infoBox[0].title) {
|
|
9386
|
-
return
|
|
9381
|
+
return React.createElement(
|
|
9387
9382
|
Popover,
|
|
9388
9383
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9389
|
-
|
|
9384
|
+
React.createElement(
|
|
9390
9385
|
Popover.Title,
|
|
9391
9386
|
{ as: 'h3' },
|
|
9392
9387
|
image.infoBox[0].title
|
|
9393
9388
|
),
|
|
9394
|
-
|
|
9389
|
+
React.createElement(
|
|
9395
9390
|
Popover.Content,
|
|
9396
9391
|
null,
|
|
9397
|
-
|
|
9392
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9398
9393
|
)
|
|
9399
9394
|
);
|
|
9400
9395
|
} else {
|
|
9401
|
-
return
|
|
9396
|
+
return React.createElement(
|
|
9402
9397
|
Tooltip,
|
|
9403
9398
|
_extends({ id: 'button-tooltip' }, props),
|
|
9404
|
-
|
|
9399
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9405
9400
|
);
|
|
9406
9401
|
}
|
|
9407
9402
|
};
|
|
9408
9403
|
|
|
9409
9404
|
if (images && images.length > 0) {
|
|
9410
|
-
return
|
|
9405
|
+
return React.createElement(
|
|
9411
9406
|
'div',
|
|
9412
9407
|
{ className: 'multi-figure-container' },
|
|
9413
|
-
|
|
9408
|
+
React.createElement(
|
|
9414
9409
|
Row$1,
|
|
9415
9410
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9416
9411
|
images.map(function (image, index) {
|
|
9417
9412
|
if (image.infoBox) {
|
|
9418
|
-
return
|
|
9413
|
+
return React.createElement(
|
|
9419
9414
|
Col$1,
|
|
9420
9415
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9421
|
-
image.link ?
|
|
9416
|
+
image.link ? React.createElement(
|
|
9422
9417
|
'a',
|
|
9423
9418
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9424
|
-
|
|
9419
|
+
React.createElement(
|
|
9425
9420
|
'div',
|
|
9426
9421
|
{ className: 'multi-figure-image-container' },
|
|
9427
|
-
|
|
9422
|
+
React.createElement(
|
|
9428
9423
|
LazyLoad,
|
|
9429
9424
|
{ once: true },
|
|
9430
|
-
|
|
9425
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9431
9426
|
),
|
|
9432
|
-
|
|
9427
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9433
9428
|
)
|
|
9434
|
-
) :
|
|
9429
|
+
) : React.createElement(
|
|
9435
9430
|
'div',
|
|
9436
9431
|
{ className: 'multi-figure-image-container' },
|
|
9437
|
-
|
|
9432
|
+
React.createElement(
|
|
9438
9433
|
LazyLoad,
|
|
9439
9434
|
{ once: true },
|
|
9440
|
-
|
|
9435
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9441
9436
|
),
|
|
9442
|
-
|
|
9437
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9443
9438
|
)
|
|
9444
9439
|
);
|
|
9445
9440
|
} else {
|
|
9446
|
-
return
|
|
9441
|
+
return React.createElement(
|
|
9447
9442
|
Col$1,
|
|
9448
9443
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9449
|
-
image.link ?
|
|
9444
|
+
image.link ? React.createElement(
|
|
9450
9445
|
'a',
|
|
9451
9446
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9452
|
-
|
|
9447
|
+
React.createElement(
|
|
9453
9448
|
'div',
|
|
9454
9449
|
{ className: 'multi-figure-image-container' },
|
|
9455
|
-
|
|
9450
|
+
React.createElement(
|
|
9456
9451
|
LazyLoad,
|
|
9457
9452
|
{ once: true },
|
|
9458
|
-
|
|
9453
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9459
9454
|
),
|
|
9460
|
-
|
|
9455
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9461
9456
|
)
|
|
9462
|
-
) :
|
|
9457
|
+
) : React.createElement(
|
|
9463
9458
|
'div',
|
|
9464
9459
|
{ className: 'multi-figure-image-container' },
|
|
9465
|
-
|
|
9460
|
+
React.createElement(
|
|
9466
9461
|
LazyLoad,
|
|
9467
9462
|
{ once: true },
|
|
9468
|
-
|
|
9463
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9469
9464
|
),
|
|
9470
|
-
|
|
9465
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9471
9466
|
)
|
|
9472
9467
|
);
|
|
9473
9468
|
}
|
|
9474
9469
|
})
|
|
9475
9470
|
),
|
|
9476
|
-
|
|
9471
|
+
React.createElement(
|
|
9477
9472
|
'div',
|
|
9478
9473
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9479
|
-
|
|
9474
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9480
9475
|
),
|
|
9481
|
-
|
|
9476
|
+
React.createElement(
|
|
9482
9477
|
'style',
|
|
9483
9478
|
{ jsx: 'true' },
|
|
9484
9479
|
'\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 '
|
|
@@ -9527,23 +9522,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9527
9522
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9528
9523
|
}, []);
|
|
9529
9524
|
|
|
9530
|
-
return
|
|
9531
|
-
|
|
9525
|
+
return React.createElement(
|
|
9526
|
+
React.Fragment,
|
|
9532
9527
|
null,
|
|
9533
|
-
|
|
9528
|
+
React.createElement(
|
|
9534
9529
|
Head,
|
|
9535
9530
|
null,
|
|
9536
|
-
|
|
9531
|
+
React.createElement('script', {
|
|
9537
9532
|
dangerouslySetInnerHTML: {
|
|
9538
9533
|
__html: 'history.scrollRestoration = "manual"'
|
|
9539
9534
|
}
|
|
9540
9535
|
})
|
|
9541
9536
|
),
|
|
9542
|
-
|
|
9537
|
+
React.createElement(
|
|
9543
9538
|
'div',
|
|
9544
9539
|
{ id: elementId },
|
|
9545
|
-
|
|
9546
|
-
|
|
9540
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9541
|
+
React.createElement(
|
|
9547
9542
|
'style',
|
|
9548
9543
|
{ jsx: 'true' },
|
|
9549
9544
|
'\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 '
|
|
@@ -9552,258 +9547,6 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9552
9547
|
);
|
|
9553
9548
|
};
|
|
9554
9549
|
|
|
9555
|
-
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9556
|
-
|
|
9557
|
-
exports.__esModule = true;
|
|
9558
|
-
|
|
9559
|
-
exports.default = function (obj, keys) {
|
|
9560
|
-
var target = {};
|
|
9561
|
-
|
|
9562
|
-
for (var i in obj) {
|
|
9563
|
-
if (keys.indexOf(i) >= 0) continue;
|
|
9564
|
-
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9565
|
-
target[i] = obj[i];
|
|
9566
|
-
}
|
|
9567
|
-
|
|
9568
|
-
return target;
|
|
9569
|
-
};
|
|
9570
|
-
});
|
|
9571
|
-
|
|
9572
|
-
unwrapExports(objectWithoutProperties);
|
|
9573
|
-
|
|
9574
|
-
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9575
|
-
|
|
9576
|
-
exports.__esModule = true;
|
|
9577
|
-
|
|
9578
|
-
|
|
9579
|
-
|
|
9580
|
-
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9581
|
-
|
|
9582
|
-
|
|
9583
|
-
|
|
9584
|
-
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
var _inherits3 = _interopRequireDefault(inherits);
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
var _react2 = _interopRequireDefault(React__default);
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
9605
|
-
|
|
9606
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9607
|
-
var noop = function noop() {};
|
|
9608
|
-
|
|
9609
|
-
var ScriptTag = function (_Component) {
|
|
9610
|
-
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9611
|
-
|
|
9612
|
-
ScriptTag.removeNode = function removeNode(node) {
|
|
9613
|
-
if (node) {
|
|
9614
|
-
node.parentNode.removeChild(node);
|
|
9615
|
-
}
|
|
9616
|
-
};
|
|
9617
|
-
|
|
9618
|
-
function ScriptTag(props, context) {
|
|
9619
|
-
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9620
|
-
|
|
9621
|
-
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9622
|
-
|
|
9623
|
-
_this.domRef = null;
|
|
9624
|
-
_this.state = {
|
|
9625
|
-
isHydrated: props.isHydrating,
|
|
9626
|
-
additionalNode: null,
|
|
9627
|
-
removeAdditionalNode: null
|
|
9628
|
-
};
|
|
9629
|
-
return _this;
|
|
9630
|
-
}
|
|
9631
|
-
|
|
9632
|
-
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9633
|
-
var _props = this.props,
|
|
9634
|
-
onError = _props.onError,
|
|
9635
|
-
onLoad = _props.onLoad,
|
|
9636
|
-
nonce = _props.nonce;
|
|
9637
|
-
|
|
9638
|
-
// Create a new HTML script element
|
|
9639
|
-
|
|
9640
|
-
var newElement = document.createElement("script");
|
|
9641
|
-
|
|
9642
|
-
// Copy all attribute values
|
|
9643
|
-
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9644
|
-
var attr = this.domRef.attributes[i];
|
|
9645
|
-
if (attr.nodeName === 'nonce') {
|
|
9646
|
-
// The browser clears the nonce value - grab from props
|
|
9647
|
-
newElement.setAttribute(attr.nodeName, nonce);
|
|
9648
|
-
} else {
|
|
9649
|
-
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9650
|
-
}
|
|
9651
|
-
}
|
|
9652
|
-
|
|
9653
|
-
// Copy the inner script
|
|
9654
|
-
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9655
|
-
newElement.innerHTML = this.domRef.innerHTML;
|
|
9656
|
-
}
|
|
9657
|
-
|
|
9658
|
-
// Bind event listeners
|
|
9659
|
-
newElement.addEventListener('load', onLoad);
|
|
9660
|
-
newElement.addEventListener('error', onError);
|
|
9661
|
-
|
|
9662
|
-
// Append the new script tag
|
|
9663
|
-
this.domRef.parentNode.appendChild(newElement);
|
|
9664
|
-
return newElement;
|
|
9665
|
-
};
|
|
9666
|
-
|
|
9667
|
-
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9668
|
-
var isHydrated = this.state.isHydrated;
|
|
9669
|
-
|
|
9670
|
-
if (isHydrated) {
|
|
9671
|
-
// was rendered on server, don't replace elements when hydrating
|
|
9672
|
-
return;
|
|
9673
|
-
}
|
|
9674
|
-
|
|
9675
|
-
this.setState({
|
|
9676
|
-
additionalNode: this.appendAdditionalElement(),
|
|
9677
|
-
removeAdditionalNode: null
|
|
9678
|
-
});
|
|
9679
|
-
};
|
|
9680
|
-
|
|
9681
|
-
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9682
|
-
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9683
|
-
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9684
|
-
|
|
9685
|
-
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9686
|
-
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9687
|
-
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9688
|
-
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9689
|
-
// This really complicates the component - for now we'll leave it as is.
|
|
9690
|
-
var _props2 = this.props,
|
|
9691
|
-
src = _props2.src,
|
|
9692
|
-
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9693
|
-
|
|
9694
|
-
if (src && src === nextProps.src) {
|
|
9695
|
-
// The 'src' attribute has not changed
|
|
9696
|
-
return;
|
|
9697
|
-
}
|
|
9698
|
-
|
|
9699
|
-
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9700
|
-
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9701
|
-
return;
|
|
9702
|
-
}
|
|
9703
|
-
|
|
9704
|
-
this.setState({
|
|
9705
|
-
removeAdditionalNode: this.state.additionalNode,
|
|
9706
|
-
additionalNode: null
|
|
9707
|
-
});
|
|
9708
|
-
};
|
|
9709
|
-
|
|
9710
|
-
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9711
|
-
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9712
|
-
};
|
|
9713
|
-
|
|
9714
|
-
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9715
|
-
var _state = this.state,
|
|
9716
|
-
additionalNode = _state.additionalNode,
|
|
9717
|
-
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9718
|
-
|
|
9719
|
-
if (additionalNode === null) {
|
|
9720
|
-
this.setState({
|
|
9721
|
-
additionalNode: this.appendAdditionalElement()
|
|
9722
|
-
});
|
|
9723
|
-
}
|
|
9724
|
-
|
|
9725
|
-
if (removeAdditionalNode !== null) {
|
|
9726
|
-
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9727
|
-
this.setState({
|
|
9728
|
-
removeAdditionalNode: null
|
|
9729
|
-
});
|
|
9730
|
-
}
|
|
9731
|
-
};
|
|
9732
|
-
|
|
9733
|
-
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9734
|
-
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9735
|
-
ScriptTag.removeNode(this.state.additionalNode);
|
|
9736
|
-
};
|
|
9737
|
-
|
|
9738
|
-
ScriptTag.prototype.render = function render() {
|
|
9739
|
-
var _this2 = this;
|
|
9740
|
-
|
|
9741
|
-
var additionalNode = this.state.additionalNode;
|
|
9742
|
-
|
|
9743
|
-
if (additionalNode !== null) {
|
|
9744
|
-
return null;
|
|
9745
|
-
}
|
|
9746
|
-
|
|
9747
|
-
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9748
|
-
// eslint-disable-next-line no-unused-vars
|
|
9749
|
-
var _props3 = this.props;
|
|
9750
|
-
_props3.isHydrating;
|
|
9751
|
-
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9752
|
-
|
|
9753
|
-
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9754
|
-
return _this2.domRef = tag;
|
|
9755
|
-
} }));
|
|
9756
|
-
};
|
|
9757
|
-
|
|
9758
|
-
return ScriptTag;
|
|
9759
|
-
}(React__default.Component);
|
|
9760
|
-
|
|
9761
|
-
ScriptTag.propTypes = {
|
|
9762
|
-
/**
|
|
9763
|
-
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9764
|
-
*/
|
|
9765
|
-
isHydrating: _propTypes2.default.bool,
|
|
9766
|
-
|
|
9767
|
-
// Standard <script> tag props
|
|
9768
|
-
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9769
|
-
crossOrigin: _propTypes2.default.string,
|
|
9770
|
-
defer: _propTypes2.default.bool,
|
|
9771
|
-
integrity: _propTypes2.default.string,
|
|
9772
|
-
nonce: _propTypes2.default.string,
|
|
9773
|
-
src: _propTypes2.default.string,
|
|
9774
|
-
text: _propTypes2.default.string,
|
|
9775
|
-
type: _propTypes2.default.string,
|
|
9776
|
-
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9777
|
-
|
|
9778
|
-
// globals
|
|
9779
|
-
onError: _propTypes2.default.func,
|
|
9780
|
-
onLoad: _propTypes2.default.func
|
|
9781
|
-
};
|
|
9782
|
-
ScriptTag.defaultProps = {
|
|
9783
|
-
isHydrating: false,
|
|
9784
|
-
onError: noop,
|
|
9785
|
-
onLoad: noop
|
|
9786
|
-
};
|
|
9787
|
-
exports.default = ScriptTag;
|
|
9788
|
-
});
|
|
9789
|
-
|
|
9790
|
-
unwrapExports(ScriptTag_1);
|
|
9791
|
-
|
|
9792
|
-
var lib = createCommonjsModule(function (module, exports) {
|
|
9793
|
-
|
|
9794
|
-
exports.__esModule = true;
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
9799
|
-
|
|
9800
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9801
|
-
|
|
9802
|
-
exports.default = _ScriptTag2.default;
|
|
9803
|
-
});
|
|
9804
|
-
|
|
9805
|
-
var ScriptTag = unwrapExports(lib);
|
|
9806
|
-
|
|
9807
9550
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
9808
9551
|
|
|
9809
9552
|
var FormAssembly = function FormAssembly(props) {
|
|
@@ -9835,11 +9578,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9835
9578
|
}, []);
|
|
9836
9579
|
|
|
9837
9580
|
if (iframeSrc) {
|
|
9838
|
-
return
|
|
9581
|
+
return React.createElement(
|
|
9839
9582
|
'section',
|
|
9840
9583
|
{ className: 'form-assembly' },
|
|
9841
|
-
|
|
9842
|
-
|
|
9584
|
+
React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9585
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9843
9586
|
);
|
|
9844
9587
|
}
|
|
9845
9588
|
|
|
@@ -9876,27 +9619,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9876
9619
|
return window.removeEventListener('resize', handleResize);
|
|
9877
9620
|
};
|
|
9878
9621
|
}, []);
|
|
9879
|
-
return
|
|
9622
|
+
return React.createElement(
|
|
9880
9623
|
'div',
|
|
9881
9624
|
{ className: 'blockTableHolder', ref: holder },
|
|
9882
|
-
|
|
9625
|
+
React.createElement(
|
|
9883
9626
|
'div',
|
|
9884
9627
|
{ className: 'blockTable' },
|
|
9885
9628
|
rows && rows.map(function (row) {
|
|
9886
|
-
return
|
|
9629
|
+
return React.createElement(
|
|
9887
9630
|
'div',
|
|
9888
9631
|
{ className: 'blockTableRow' },
|
|
9889
9632
|
row.cells && row.cells.map(function (cell) {
|
|
9890
|
-
return
|
|
9633
|
+
return React.createElement(
|
|
9891
9634
|
'div',
|
|
9892
9635
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9893
|
-
|
|
9636
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9894
9637
|
);
|
|
9895
9638
|
})
|
|
9896
9639
|
);
|
|
9897
9640
|
})
|
|
9898
9641
|
),
|
|
9899
|
-
|
|
9642
|
+
React.createElement(
|
|
9900
9643
|
'style',
|
|
9901
9644
|
{ jsx: true },
|
|
9902
9645
|
'\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 '
|
|
@@ -9965,8 +9708,6 @@ var getSerializers = function getSerializers() {
|
|
|
9965
9708
|
authorImgHeight = props[15];
|
|
9966
9709
|
|
|
9967
9710
|
|
|
9968
|
-
var nextVideo = article && article.nextVideo ? article.nextVideo : null;
|
|
9969
|
-
|
|
9970
9711
|
return {
|
|
9971
9712
|
types: {
|
|
9972
9713
|
undefined: function undefined$1() {
|
|
@@ -9983,12 +9724,12 @@ var getSerializers = function getSerializers() {
|
|
|
9983
9724
|
var node = _ref.node;
|
|
9984
9725
|
var url = node.url;
|
|
9985
9726
|
|
|
9986
|
-
return
|
|
9727
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9987
9728
|
},
|
|
9988
9729
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9989
9730
|
var node = _ref2.node;
|
|
9990
9731
|
|
|
9991
|
-
return
|
|
9732
|
+
return React.createElement(YouTubeGallery, {
|
|
9992
9733
|
nodes: node,
|
|
9993
9734
|
article: article,
|
|
9994
9735
|
meta: meta,
|
|
@@ -10002,7 +9743,7 @@ var getSerializers = function getSerializers() {
|
|
|
10002
9743
|
articleSeries: function articleSeries(_ref3) {
|
|
10003
9744
|
var node = _ref3.node;
|
|
10004
9745
|
|
|
10005
|
-
return
|
|
9746
|
+
return React.createElement(ArticleSeries, {
|
|
10006
9747
|
nodes: node,
|
|
10007
9748
|
accountIDs: videoAccountIDs || {},
|
|
10008
9749
|
pageview: pageview,
|
|
@@ -10015,61 +9756,61 @@ var getSerializers = function getSerializers() {
|
|
|
10015
9756
|
figure: function figure(_ref4) {
|
|
10016
9757
|
var node = _ref4.node;
|
|
10017
9758
|
|
|
10018
|
-
return
|
|
9759
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
10019
9760
|
},
|
|
10020
9761
|
multifigure: function multifigure(_ref5) {
|
|
10021
9762
|
var node = _ref5.node;
|
|
10022
9763
|
|
|
10023
|
-
return
|
|
9764
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10024
9765
|
},
|
|
10025
9766
|
slideshow: function slideshow(_ref6) {
|
|
10026
9767
|
var node = _ref6.node;
|
|
10027
9768
|
var slides = node.slides;
|
|
10028
9769
|
|
|
10029
|
-
return
|
|
9770
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
10030
9771
|
},
|
|
10031
9772
|
sidebar: function sidebar(_ref7) {
|
|
10032
9773
|
var node = _ref7.node;
|
|
10033
9774
|
var caption = node.caption,
|
|
10034
9775
|
content = node.content;
|
|
10035
9776
|
|
|
10036
|
-
return
|
|
9777
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
10037
9778
|
},
|
|
10038
9779
|
datatable: function datatable(_ref8) {
|
|
10039
9780
|
var node = _ref8.node;
|
|
10040
9781
|
var table = node.table;
|
|
10041
9782
|
|
|
10042
|
-
return
|
|
9783
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
10043
9784
|
},
|
|
10044
9785
|
media: function media(_ref9) {
|
|
10045
9786
|
var node = _ref9.node;
|
|
10046
9787
|
|
|
10047
|
-
return
|
|
9788
|
+
return React.createElement(Media, { node: node, client: client });
|
|
10048
9789
|
},
|
|
10049
9790
|
iframe: function iframe(_ref10) {
|
|
10050
9791
|
var node = _ref10.node;
|
|
10051
9792
|
|
|
10052
|
-
return
|
|
9793
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10053
9794
|
},
|
|
10054
9795
|
video: function video(_ref11) {
|
|
10055
9796
|
var node = _ref11.node;
|
|
10056
9797
|
|
|
10057
|
-
return
|
|
9798
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
10058
9799
|
},
|
|
10059
9800
|
audio: function audio(_ref12) {
|
|
10060
9801
|
var node = _ref12.node;
|
|
10061
9802
|
|
|
10062
|
-
return
|
|
9803
|
+
return React.createElement(Audio, { node: node });
|
|
10063
9804
|
},
|
|
10064
9805
|
poll: function poll(_ref13) {
|
|
10065
9806
|
var node = _ref13.node;
|
|
10066
9807
|
|
|
10067
|
-
return
|
|
9808
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10068
9809
|
},
|
|
10069
9810
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10070
9811
|
var node = _ref14.node;
|
|
10071
9812
|
|
|
10072
|
-
return
|
|
9813
|
+
return React.createElement(Poll$1, {
|
|
10073
9814
|
node: node,
|
|
10074
9815
|
client: client,
|
|
10075
9816
|
pageview: pageview,
|
|
@@ -10083,35 +9824,35 @@ var getSerializers = function getSerializers() {
|
|
|
10083
9824
|
var node = _ref15.node;
|
|
10084
9825
|
var quizzes = node.quizzes;
|
|
10085
9826
|
|
|
10086
|
-
return
|
|
9827
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10087
9828
|
},
|
|
10088
9829
|
leads: function leads(_ref16) {
|
|
10089
9830
|
var node = _ref16.node;
|
|
10090
9831
|
var leadID = node.leadID;
|
|
10091
9832
|
|
|
10092
9833
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10093
|
-
return
|
|
9834
|
+
return React.createElement(Leads, { url: url });
|
|
10094
9835
|
},
|
|
10095
9836
|
slideshows: function slideshows(_ref17) {
|
|
10096
9837
|
var node = _ref17.node;
|
|
10097
9838
|
|
|
10098
|
-
return
|
|
9839
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10099
9840
|
},
|
|
10100
9841
|
nativeAd: function nativeAd(_ref18) {
|
|
10101
9842
|
var node = _ref18.node;
|
|
10102
9843
|
|
|
10103
|
-
return
|
|
9844
|
+
return React.createElement(NativeAd, { node: node });
|
|
10104
9845
|
},
|
|
10105
9846
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10106
9847
|
var node = _ref19.node;
|
|
10107
9848
|
|
|
10108
|
-
return
|
|
9849
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10109
9850
|
},
|
|
10110
9851
|
hrtag: function hrtag() {
|
|
10111
|
-
return
|
|
9852
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10112
9853
|
},
|
|
10113
9854
|
brtag: function brtag() {
|
|
10114
|
-
return
|
|
9855
|
+
return React.createElement('br', { className: 'line-break' });
|
|
10115
9856
|
},
|
|
10116
9857
|
formstack: function formstack(_ref20) {
|
|
10117
9858
|
var node = _ref20.node;
|
|
@@ -10119,29 +9860,29 @@ var getSerializers = function getSerializers() {
|
|
|
10119
9860
|
Caption = node.Caption,
|
|
10120
9861
|
needSegmentSupport = node.needSegmentSupport;
|
|
10121
9862
|
|
|
10122
|
-
return
|
|
9863
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10123
9864
|
},
|
|
10124
9865
|
formassembly: FormAssembly,
|
|
10125
9866
|
multimedia: function multimedia(_ref21) {
|
|
10126
9867
|
var node = _ref21.node;
|
|
10127
9868
|
|
|
10128
|
-
return
|
|
9869
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
10129
9870
|
},
|
|
10130
9871
|
blockTable: function blockTable(_ref22) {
|
|
10131
9872
|
var node = _ref22.node;
|
|
10132
|
-
return
|
|
9873
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10133
9874
|
}
|
|
10134
9875
|
},
|
|
10135
9876
|
marks: {
|
|
10136
9877
|
superscript: function superscript(props) {
|
|
10137
|
-
return
|
|
9878
|
+
return React.createElement(
|
|
10138
9879
|
'sup',
|
|
10139
9880
|
null,
|
|
10140
9881
|
props.children
|
|
10141
9882
|
);
|
|
10142
9883
|
},
|
|
10143
9884
|
subscript: function subscript(props) {
|
|
10144
|
-
return
|
|
9885
|
+
return React.createElement(
|
|
10145
9886
|
'sub',
|
|
10146
9887
|
null,
|
|
10147
9888
|
props.children
|
|
@@ -10158,7 +9899,7 @@ var getSerializers = function getSerializers() {
|
|
|
10158
9899
|
if (href && href.charAt(0) === '#') {
|
|
10159
9900
|
var elementId = href.slice(1);
|
|
10160
9901
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10161
|
-
return
|
|
9902
|
+
return React.createElement(
|
|
10162
9903
|
'a',
|
|
10163
9904
|
{ onClick: function onClick() {
|
|
10164
9905
|
return ScrollToElement(elementId);
|
|
@@ -10168,7 +9909,7 @@ var getSerializers = function getSerializers() {
|
|
|
10168
9909
|
}
|
|
10169
9910
|
|
|
10170
9911
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10171
|
-
return href ?
|
|
9912
|
+
return href ? React.createElement(
|
|
10172
9913
|
'a',
|
|
10173
9914
|
_extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10174
9915
|
children
|
|
@@ -10176,7 +9917,7 @@ var getSerializers = function getSerializers() {
|
|
|
10176
9917
|
},
|
|
10177
9918
|
alignleft: function alignleft(_ref23) {
|
|
10178
9919
|
var children = _ref23.children;
|
|
10179
|
-
return
|
|
9920
|
+
return React.createElement(
|
|
10180
9921
|
'div',
|
|
10181
9922
|
{ style: { textAlign: 'left' } },
|
|
10182
9923
|
children
|
|
@@ -10184,7 +9925,7 @@ var getSerializers = function getSerializers() {
|
|
|
10184
9925
|
},
|
|
10185
9926
|
alignright: function alignright(_ref24) {
|
|
10186
9927
|
var children = _ref24.children;
|
|
10187
|
-
return
|
|
9928
|
+
return React.createElement(
|
|
10188
9929
|
'div',
|
|
10189
9930
|
{ style: { textAlign: 'right' } },
|
|
10190
9931
|
children
|
|
@@ -10192,7 +9933,7 @@ var getSerializers = function getSerializers() {
|
|
|
10192
9933
|
},
|
|
10193
9934
|
aligncenter: function aligncenter(_ref25) {
|
|
10194
9935
|
var children = _ref25.children;
|
|
10195
|
-
return
|
|
9936
|
+
return React.createElement(
|
|
10196
9937
|
'div',
|
|
10197
9938
|
{ style: { textAlign: 'center' } },
|
|
10198
9939
|
children
|
|
@@ -10200,7 +9941,7 @@ var getSerializers = function getSerializers() {
|
|
|
10200
9941
|
},
|
|
10201
9942
|
alignjustify: function alignjustify(_ref26) {
|
|
10202
9943
|
var children = _ref26.children;
|
|
10203
|
-
return
|
|
9944
|
+
return React.createElement(
|
|
10204
9945
|
'div',
|
|
10205
9946
|
{ style: { textAlign: 'justify' } },
|
|
10206
9947
|
children
|
|
@@ -10210,7 +9951,7 @@ var getSerializers = function getSerializers() {
|
|
|
10210
9951
|
var children = props.children,
|
|
10211
9952
|
color = props.mark.color;
|
|
10212
9953
|
|
|
10213
|
-
return
|
|
9954
|
+
return React.createElement(
|
|
10214
9955
|
'span',
|
|
10215
9956
|
{ style: { color: color ? color.hex : null } },
|
|
10216
9957
|
children
|