@mjhls/mjh-framework 1.0.922 → 1.0.923
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-bce0ba07.js → ADInfeed-a4d973da.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-950b414b.js → ADlgInfeed-def2c25d.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 +49 -49
- 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 +46 -46
- 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 +47 -47
- 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 +55 -55
- 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-34235827.js → MediaSeriesCard-be3f9e36.js} +799 -1002
- package/dist/cjs/MediaSeriesLanding.js +50 -51
- package/dist/cjs/MediaSeriesLandingPaginated.js +56 -57
- 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 +61 -62
- package/dist/cjs/PartnerDetailListingPaginated.js +61 -62
- 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 +27 -31
- 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 +25 -8
- 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 +45 -45
- 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 +51 -51
- 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 +92 -91
- 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 +45 -45
- package/dist/cjs/{getTargeting-3c5754ac.js → getTargeting-1359b868.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-f9f5f7c0.js → index-faf269e6.js} +157 -407
- 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 +144 -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/{urlForFile-29d3815a.js → urlForFile-ad96158c.js} +1 -1
- 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-0a55cd2d.js → ADInfeed-7ba4f982.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-013e1f4a.js → ADlgInfeed-8eb5060f.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 +55 -55
- 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 +72 -72
- 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 +69 -69
- 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 +63 -63
- 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-8a9b91e6.js → MediaSeriesCard-b6034225.js} +799 -1002
- package/dist/esm/MediaSeriesLanding.js +75 -76
- package/dist/esm/MediaSeriesLandingPaginated.js +79 -80
- 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 +94 -95
- package/dist/esm/PartnerDetailListingPaginated.js +92 -93
- 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 +74 -78
- 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 +25 -8
- 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 +49 -49
- 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 +63 -63
- 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 +249 -248
- 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 +45 -45
- package/dist/esm/{getTargeting-42f9b439.js → getTargeting-ba1ffe43.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-755f2cc2.js → index-6c12bdd5.js} +10 -10
- package/dist/esm/{index-4d8a8743.js → index-93fc4be2.js} +551 -802
- 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 +139 -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/{urlForFile-b69adffc.js → urlForFile-d2a27665.js} +1 -1
- 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,42 +1,43 @@
|
|
|
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 { _ as _typeof$1 } from './typeof-e9fc0c5d.js';
|
|
20
|
-
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';
|
|
21
26
|
import GroupDeck from './GroupDeck.js';
|
|
22
|
-
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 { u as urlForFile } from './urlForFile-d2a27665.js';
|
|
31
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
|
|
32
|
+
import Head from 'next/head';
|
|
23
33
|
import SocialShare from './SocialShare.js';
|
|
24
|
-
import { _ as
|
|
25
|
-
import { _ as _objectToArray } from './_object-to-array-2300e51b.js';
|
|
26
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
|
|
34
|
+
import { _ as _objectToArray } from './_object-to-array-c54dd835.js';
|
|
27
35
|
import Pagination from 'react-bootstrap/Pagination';
|
|
28
|
-
import Button$1 from 'react-bootstrap/Button';
|
|
29
|
-
import { h as html_decode_1 } from './entities-6d9154b4.js';
|
|
30
|
-
import DFPAdSlot from './AdSlot.js';
|
|
31
|
-
import Row$1 from 'react-bootstrap/Row';
|
|
32
|
-
import Col$1 from 'react-bootstrap/Col';
|
|
33
|
-
import Head from 'next/head';
|
|
34
|
-
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';
|
|
35
|
-
import { c as IoIosArrowDropupCircle } from './index.esm-eb1e8e80.js';
|
|
36
36
|
import Figure$2 from 'react-bootstrap/Figure';
|
|
37
37
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
38
38
|
import Tooltip from 'react-bootstrap/Tooltip';
|
|
39
39
|
import Popover from 'react-bootstrap/Popover';
|
|
40
|
+
import ScriptTag from 'react-script-tag';
|
|
40
41
|
|
|
41
42
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
42
43
|
var pageNumber = selectedIndex + 1;
|
|
@@ -44,7 +45,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
44
45
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
45
46
|
};
|
|
46
47
|
|
|
47
|
-
var Slideshow
|
|
48
|
+
var Slideshow = function Slideshow(_ref) {
|
|
48
49
|
var slides = _ref.slides,
|
|
49
50
|
client = _ref.client,
|
|
50
51
|
pageview = _ref.pageview;
|
|
@@ -71,27 +72,27 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
71
72
|
if (pageview) pageview(router.asPath);
|
|
72
73
|
}, [router]);
|
|
73
74
|
|
|
74
|
-
return
|
|
75
|
+
return React.createElement(
|
|
75
76
|
'div',
|
|
76
77
|
{ className: 'mt-3 mb-3' },
|
|
77
|
-
|
|
78
|
+
React.createElement(
|
|
78
79
|
Carousel,
|
|
79
80
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
80
81
|
return onChangeSlide(selectedIndex, router);
|
|
81
82
|
}, interval: null },
|
|
82
83
|
slides && slides.map(function (slide) {
|
|
83
|
-
return
|
|
84
|
+
return React.createElement(
|
|
84
85
|
Carousel.Item,
|
|
85
86
|
{ key: slide._key },
|
|
86
|
-
|
|
87
|
+
React.createElement(
|
|
87
88
|
'picture',
|
|
88
89
|
null,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
91
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
92
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
93
|
+
React.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
93
94
|
),
|
|
94
|
-
slide.caption &&
|
|
95
|
+
slide.caption && React.createElement(
|
|
95
96
|
'p',
|
|
96
97
|
{ className: 'p-2' },
|
|
97
98
|
slide.caption
|
|
@@ -681,14 +682,14 @@ function coerce(val) {
|
|
|
681
682
|
return val;
|
|
682
683
|
}
|
|
683
684
|
});
|
|
684
|
-
debug.coerce;
|
|
685
|
-
debug.disable;
|
|
686
|
-
debug.enable;
|
|
687
|
-
debug.enabled;
|
|
688
|
-
debug.humanize;
|
|
689
|
-
debug.names;
|
|
690
|
-
debug.skips;
|
|
691
|
-
debug.formatters;
|
|
685
|
+
var debug_1 = debug.coerce;
|
|
686
|
+
var debug_2 = debug.disable;
|
|
687
|
+
var debug_3 = debug.enable;
|
|
688
|
+
var debug_4 = debug.enabled;
|
|
689
|
+
var debug_5 = debug.humanize;
|
|
690
|
+
var debug_6 = debug.names;
|
|
691
|
+
var debug_7 = debug.skips;
|
|
692
|
+
var debug_8 = debug.formatters;
|
|
692
693
|
|
|
693
694
|
var browser = createCommonjsModule(function (module, exports) {
|
|
694
695
|
/**
|
|
@@ -877,13 +878,13 @@ function localstorage() {
|
|
|
877
878
|
} catch (e) {}
|
|
878
879
|
}
|
|
879
880
|
});
|
|
880
|
-
browser.log;
|
|
881
|
-
browser.formatArgs;
|
|
882
|
-
browser.save;
|
|
883
|
-
browser.load;
|
|
884
|
-
browser.useColors;
|
|
885
|
-
browser.storage;
|
|
886
|
-
browser.colors;
|
|
881
|
+
var browser_1 = browser.log;
|
|
882
|
+
var browser_2 = browser.formatArgs;
|
|
883
|
+
var browser_3 = browser.save;
|
|
884
|
+
var browser_4 = browser.load;
|
|
885
|
+
var browser_5 = browser.useColors;
|
|
886
|
+
var browser_6 = browser.storage;
|
|
887
|
+
var browser_7 = browser.colors;
|
|
887
888
|
|
|
888
889
|
// MIT lisence
|
|
889
890
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1158,14 +1159,14 @@ function init (debug) {
|
|
|
1158
1159
|
|
|
1159
1160
|
exports.enable(load());
|
|
1160
1161
|
});
|
|
1161
|
-
node.init;
|
|
1162
|
-
node.log;
|
|
1163
|
-
node.formatArgs;
|
|
1164
|
-
node.save;
|
|
1165
|
-
node.load;
|
|
1166
|
-
node.useColors;
|
|
1167
|
-
node.colors;
|
|
1168
|
-
node.inspectOpts;
|
|
1162
|
+
var node_1 = node.init;
|
|
1163
|
+
var node_2 = node.log;
|
|
1164
|
+
var node_3 = node.formatArgs;
|
|
1165
|
+
var node_4 = node.save;
|
|
1166
|
+
var node_5 = node.load;
|
|
1167
|
+
var node_6 = node.useColors;
|
|
1168
|
+
var node_7 = node.colors;
|
|
1169
|
+
var node_8 = node.inspectOpts;
|
|
1169
1170
|
|
|
1170
1171
|
var src = createCommonjsModule(function (module) {
|
|
1171
1172
|
/**
|
|
@@ -1623,11 +1624,11 @@ function shouldUpdateVideo(prevProps, props) {
|
|
|
1623
1624
|
|
|
1624
1625
|
function filterResetOptions(opts) {
|
|
1625
1626
|
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1626
|
-
playerVars: _objectSpread({
|
|
1627
|
+
playerVars: _objectSpread(_objectSpread({}, opts.playerVars), {}, {
|
|
1627
1628
|
autoplay: 0,
|
|
1628
1629
|
start: 0,
|
|
1629
1630
|
end: 0
|
|
1630
|
-
}
|
|
1631
|
+
})
|
|
1631
1632
|
});
|
|
1632
1633
|
}
|
|
1633
1634
|
/**
|
|
@@ -1833,9 +1834,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1833
1834
|
}, {
|
|
1834
1835
|
key: "render",
|
|
1835
1836
|
value: function render() {
|
|
1836
|
-
return /*#__PURE__*/
|
|
1837
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1837
1838
|
className: this.props.containerClassName
|
|
1838
|
-
}, /*#__PURE__*/
|
|
1839
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1839
1840
|
id: this.props.id,
|
|
1840
1841
|
className: this.props.className,
|
|
1841
1842
|
ref: this.refContainer
|
|
@@ -1844,7 +1845,7 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1844
1845
|
}]);
|
|
1845
1846
|
|
|
1846
1847
|
return YouTube;
|
|
1847
|
-
}(
|
|
1848
|
+
}(React.Component);
|
|
1848
1849
|
|
|
1849
1850
|
_defineProperty(YouTube, "PlayerState", {
|
|
1850
1851
|
UNSTARTED: -1,
|
|
@@ -1929,7 +1930,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1929
1930
|
var queue = Math.floor(duration / 10);
|
|
1930
1931
|
var segment = Math.floor(current / queue);
|
|
1931
1932
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
1932
|
-
Segment.report_video_event('Video Ready',
|
|
1933
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1933
1934
|
};
|
|
1934
1935
|
|
|
1935
1936
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1940,7 +1941,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1940
1941
|
|
|
1941
1942
|
if (!queueProgress.includes(segment)) {
|
|
1942
1943
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
1943
|
-
Segment.report_video_event('Video Segment',
|
|
1944
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1944
1945
|
queueProgress.push(segment);
|
|
1945
1946
|
}
|
|
1946
1947
|
};
|
|
@@ -1954,7 +1955,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1954
1955
|
var segment = Math.floor(current / queue);
|
|
1955
1956
|
|
|
1956
1957
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
1957
|
-
Segment.report_video_event('Video Play',
|
|
1958
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1958
1959
|
|
|
1959
1960
|
if (!playReported) {
|
|
1960
1961
|
setPlayReported(true);
|
|
@@ -1974,7 +1975,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1974
1975
|
var segment = Math.floor(current / queue);
|
|
1975
1976
|
|
|
1976
1977
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
1977
|
-
Segment.report_video_event('Video End',
|
|
1978
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1978
1979
|
setEndReported(true);
|
|
1979
1980
|
clearInterval(intervalID);
|
|
1980
1981
|
}
|
|
@@ -1988,14 +1989,14 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1988
1989
|
var segment = Math.floor(current / queue);
|
|
1989
1990
|
|
|
1990
1991
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
1991
|
-
Segment.report_video_event('Video Pause',
|
|
1992
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1992
1993
|
};
|
|
1993
1994
|
|
|
1994
|
-
return
|
|
1995
|
+
return React.createElement(
|
|
1995
1996
|
'div',
|
|
1996
1997
|
{ id: 'fluid-video-container' },
|
|
1997
|
-
|
|
1998
|
-
|
|
1998
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1999
|
+
React.createElement(
|
|
1999
2000
|
'style',
|
|
2000
2001
|
{ jsx: 'true' },
|
|
2001
2002
|
'\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 '
|
|
@@ -2008,20 +2009,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2008
2009
|
content = _ref.content,
|
|
2009
2010
|
getSerializers = _ref.getSerializers;
|
|
2010
2011
|
|
|
2011
|
-
return
|
|
2012
|
+
return React.createElement(
|
|
2012
2013
|
'article',
|
|
2013
2014
|
{ className: 'sidebar' },
|
|
2014
|
-
|
|
2015
|
+
React.createElement(
|
|
2015
2016
|
'div',
|
|
2016
2017
|
null,
|
|
2017
|
-
|
|
2018
|
+
React.createElement(
|
|
2018
2019
|
'h3',
|
|
2019
2020
|
null,
|
|
2020
2021
|
caption
|
|
2021
2022
|
),
|
|
2022
|
-
|
|
2023
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2023
2024
|
),
|
|
2024
|
-
|
|
2025
|
+
React.createElement(
|
|
2025
2026
|
'style',
|
|
2026
2027
|
{ jsx: 'true' },
|
|
2027
2028
|
'\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 '
|
|
@@ -2032,18 +2033,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2032
2033
|
var TableShow = function TableShow(_ref) {
|
|
2033
2034
|
var rows = _ref.rows;
|
|
2034
2035
|
|
|
2035
|
-
return
|
|
2036
|
+
return React.createElement(
|
|
2036
2037
|
Table,
|
|
2037
2038
|
{ bordered: true, hover: true, responsive: true },
|
|
2038
|
-
|
|
2039
|
+
React.createElement(
|
|
2039
2040
|
'tbody',
|
|
2040
2041
|
null,
|
|
2041
2042
|
rows && rows.map(function (row) {
|
|
2042
|
-
return
|
|
2043
|
+
return React.createElement(
|
|
2043
2044
|
'tr',
|
|
2044
2045
|
{ key: row._key },
|
|
2045
2046
|
row.cells && row.cells.map(function (cell, index) {
|
|
2046
|
-
return cell &&
|
|
2047
|
+
return cell && React.createElement(
|
|
2047
2048
|
'td',
|
|
2048
2049
|
{ key: index },
|
|
2049
2050
|
cell
|
|
@@ -2141,25 +2142,25 @@ var Media = function Media(_ref) {
|
|
|
2141
2142
|
margin: imageMargin
|
|
2142
2143
|
};
|
|
2143
2144
|
|
|
2144
|
-
return
|
|
2145
|
+
return React.createElement(
|
|
2145
2146
|
Figure$1,
|
|
2146
2147
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2147
|
-
|
|
2148
|
+
React.createElement(
|
|
2148
2149
|
'a',
|
|
2149
2150
|
{ href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2150
|
-
|
|
2151
|
+
React.createElement(
|
|
2151
2152
|
LazyLoad,
|
|
2152
2153
|
{ once: true },
|
|
2153
|
-
|
|
2154
|
+
React.createElement(
|
|
2154
2155
|
'picture',
|
|
2155
2156
|
null,
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2157
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2158
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2159
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2160
|
+
React.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2160
2161
|
)
|
|
2161
2162
|
),
|
|
2162
|
-
caption &&
|
|
2163
|
+
caption && React.createElement(
|
|
2163
2164
|
Figure$1.Caption,
|
|
2164
2165
|
{ className: 'media-caption' },
|
|
2165
2166
|
caption
|
|
@@ -2167,7 +2168,7 @@ var Media = function Media(_ref) {
|
|
|
2167
2168
|
)
|
|
2168
2169
|
);
|
|
2169
2170
|
} else if (caption && caption !== '') {
|
|
2170
|
-
return
|
|
2171
|
+
return React.createElement(
|
|
2171
2172
|
'a',
|
|
2172
2173
|
_extends({}, uploadDoc.downloadMedia ? {
|
|
2173
2174
|
href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
@@ -2187,10 +2188,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2187
2188
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2188
2189
|
|
|
2189
2190
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2190
|
-
return
|
|
2191
|
+
return React.createElement(
|
|
2191
2192
|
'div',
|
|
2192
2193
|
{ className: 'd-block text-center mb-3' },
|
|
2193
|
-
|
|
2194
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2194
2195
|
);
|
|
2195
2196
|
};
|
|
2196
2197
|
|
|
@@ -2225,7 +2226,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2225
2226
|
var queue = Math.floor(duration / 10);
|
|
2226
2227
|
var segment = Math.floor(current / queue);
|
|
2227
2228
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
|
|
2228
|
-
Segment.report_video_event('Video Ready',
|
|
2229
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
2229
2230
|
};
|
|
2230
2231
|
|
|
2231
2232
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2235,7 +2236,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2235
2236
|
var segment = Math.floor(current / queue);
|
|
2236
2237
|
if (!queueProgress.includes(segment)) {
|
|
2237
2238
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
|
|
2238
|
-
Segment.report_video_event('Video Segment',
|
|
2239
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
2239
2240
|
queueProgress.push(segment);
|
|
2240
2241
|
}
|
|
2241
2242
|
};
|
|
@@ -2248,7 +2249,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2248
2249
|
var queue = Math.floor(duration / 10);
|
|
2249
2250
|
var segment = Math.floor(current / queue);
|
|
2250
2251
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
|
|
2251
|
-
Segment.report_video_event('Video Play',
|
|
2252
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
2252
2253
|
|
|
2253
2254
|
if (!playReported) {
|
|
2254
2255
|
event.persist();
|
|
@@ -2269,7 +2270,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2269
2270
|
var segment = Math.floor(current / queue);
|
|
2270
2271
|
|
|
2271
2272
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
|
|
2272
|
-
Segment.report_video_event('Video End',
|
|
2273
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
2273
2274
|
setEndReported(true);
|
|
2274
2275
|
clearInterval(intervalID);
|
|
2275
2276
|
}
|
|
@@ -2282,13 +2283,13 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2282
2283
|
var queue = Math.floor(duration / 10);
|
|
2283
2284
|
var segment = Math.floor(current / queue);
|
|
2284
2285
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
|
|
2285
|
-
Segment.report_video_event('Video Pause',
|
|
2286
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2286
2287
|
};
|
|
2287
2288
|
|
|
2288
|
-
return
|
|
2289
|
+
return React.createElement(
|
|
2289
2290
|
'div',
|
|
2290
2291
|
null,
|
|
2291
|
-
vidLoaded &&
|
|
2292
|
+
vidLoaded && React.createElement(
|
|
2292
2293
|
'video',
|
|
2293
2294
|
{
|
|
2294
2295
|
poster: thumbnail || '',
|
|
@@ -2306,7 +2307,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2306
2307
|
onPlay: function onPlay(e) {
|
|
2307
2308
|
return handleOnPlay(e);
|
|
2308
2309
|
} },
|
|
2309
|
-
|
|
2310
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2310
2311
|
'Your browser does not support the video tag.'
|
|
2311
2312
|
)
|
|
2312
2313
|
);
|
|
@@ -2405,7 +2406,7 @@ var Video = function Video(_ref) {
|
|
|
2405
2406
|
}
|
|
2406
2407
|
|
|
2407
2408
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2408
|
-
Segment.report_video_event('Video Ready',
|
|
2409
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2409
2410
|
});
|
|
2410
2411
|
|
|
2411
2412
|
// play
|
|
@@ -2415,7 +2416,7 @@ var Video = function Video(_ref) {
|
|
|
2415
2416
|
var queue = Math.floor(duration / 10);
|
|
2416
2417
|
var segment = Math.floor(current / queue);
|
|
2417
2418
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2418
|
-
Segment.report_video_event('Video Play',
|
|
2419
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2419
2420
|
});
|
|
2420
2421
|
|
|
2421
2422
|
// pause
|
|
@@ -2425,7 +2426,7 @@ var Video = function Video(_ref) {
|
|
|
2425
2426
|
var queue = Math.floor(duration / 10);
|
|
2426
2427
|
var segment = Math.floor(current / queue);
|
|
2427
2428
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2428
|
-
Segment.report_video_event('Video Pause',
|
|
2429
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2429
2430
|
});
|
|
2430
2431
|
|
|
2431
2432
|
// end
|
|
@@ -2435,7 +2436,7 @@ var Video = function Video(_ref) {
|
|
|
2435
2436
|
var queue = Math.floor(duration / 10);
|
|
2436
2437
|
var segment = Math.floor(current / queue);
|
|
2437
2438
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2438
|
-
Segment.report_video_event('Video End',
|
|
2439
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2439
2440
|
//This is for old series format
|
|
2440
2441
|
autoplayNextVideo(evt);
|
|
2441
2442
|
if (nextVideo) {
|
|
@@ -2451,7 +2452,7 @@ var Video = function Video(_ref) {
|
|
|
2451
2452
|
var segment = Math.floor(current / queue);
|
|
2452
2453
|
if (!queueProgress.includes(segment)) {
|
|
2453
2454
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2454
|
-
Segment.report_video_event('Video Segment',
|
|
2455
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2455
2456
|
queueProgress.push(segment);
|
|
2456
2457
|
}
|
|
2457
2458
|
});
|
|
@@ -2459,29 +2460,29 @@ var Video = function Video(_ref) {
|
|
|
2459
2460
|
// ad impression
|
|
2460
2461
|
player.on('ads-ad-started', function (evt) {
|
|
2461
2462
|
var duration = player.ads.ad.duration;
|
|
2462
|
-
player.ads.ad.id;
|
|
2463
|
+
var id = player.ads.ad.id;
|
|
2463
2464
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2464
2465
|
|
|
2465
2466
|
//Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2466
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2467
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2467
2468
|
});
|
|
2468
2469
|
|
|
2469
2470
|
// ad ended
|
|
2470
2471
|
player.on('ads-ad-ended', function (evt) {
|
|
2471
2472
|
var duration = player.ads.ad.duration;
|
|
2472
|
-
player.ads.ad.id;
|
|
2473
|
+
var id = player.ads.ad.id;
|
|
2473
2474
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2474
2475
|
//Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2475
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2476
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2476
2477
|
});
|
|
2477
2478
|
};
|
|
2478
2479
|
|
|
2479
2480
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2480
2481
|
if (videoID) {
|
|
2481
|
-
return
|
|
2482
|
+
return React.createElement(
|
|
2482
2483
|
'div',
|
|
2483
2484
|
null,
|
|
2484
|
-
|
|
2485
|
+
React.createElement(ReactPlayerLoader, {
|
|
2485
2486
|
onSuccess: onVideoSuccess,
|
|
2486
2487
|
onFailure: onVideoFailure,
|
|
2487
2488
|
accountId: accountIDs.brightcove.accountId,
|
|
@@ -2489,17 +2490,17 @@ var Video = function Video(_ref) {
|
|
|
2489
2490
|
playerId: accountIDs.brightcove.playerId,
|
|
2490
2491
|
attrs: { className: 'brightcove-fluid', autoPlay: 'muted' }
|
|
2491
2492
|
}),
|
|
2492
|
-
|
|
2493
|
+
React.createElement(
|
|
2493
2494
|
'style',
|
|
2494
2495
|
{ jsx: 'true' },
|
|
2495
2496
|
'\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 '
|
|
2496
2497
|
)
|
|
2497
2498
|
);
|
|
2498
2499
|
} else if (playlistID) {
|
|
2499
|
-
return
|
|
2500
|
+
return React.createElement(
|
|
2500
2501
|
'div',
|
|
2501
2502
|
null,
|
|
2502
|
-
|
|
2503
|
+
React.createElement(ReactPlayerLoader, {
|
|
2503
2504
|
accountId: accountIDs.brightcove.accountId,
|
|
2504
2505
|
playlistId: playlistID,
|
|
2505
2506
|
playerId: accountIDs.brightcove.playerId,
|
|
@@ -2507,26 +2508,26 @@ var Video = function Video(_ref) {
|
|
|
2507
2508
|
onFailure: onVideoFailure,
|
|
2508
2509
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2509
2510
|
}),
|
|
2510
|
-
|
|
2511
|
+
React.createElement(
|
|
2511
2512
|
'style',
|
|
2512
2513
|
{ jsx: 'true' },
|
|
2513
2514
|
'\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 '
|
|
2514
2515
|
)
|
|
2515
2516
|
);
|
|
2516
2517
|
} else if (experienceID) {
|
|
2517
|
-
return
|
|
2518
|
+
return React.createElement(
|
|
2518
2519
|
'div',
|
|
2519
2520
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2520
|
-
videoLoaded &&
|
|
2521
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2521
2522
|
);
|
|
2522
2523
|
}
|
|
2523
2524
|
return null;
|
|
2524
2525
|
}
|
|
2525
2526
|
if (source === 'mp4') {
|
|
2526
|
-
return
|
|
2527
|
+
return React.createElement(
|
|
2527
2528
|
'div',
|
|
2528
2529
|
null,
|
|
2529
|
-
|
|
2530
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2530
2531
|
);
|
|
2531
2532
|
}
|
|
2532
2533
|
|
|
@@ -2737,9 +2738,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2737
2738
|
});
|
|
2738
2739
|
|
|
2739
2740
|
unwrapExports(props);
|
|
2740
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2741
|
-
props.defaultProps;
|
|
2742
|
-
props.propTypes;
|
|
2741
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2742
|
+
var props_2 = props.defaultProps;
|
|
2743
|
+
var props_3 = props.propTypes;
|
|
2743
2744
|
|
|
2744
2745
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2745
2746
|
return isNonNullObject(value)
|
|
@@ -3131,7 +3132,7 @@ function isEqual(a, b) {
|
|
|
3131
3132
|
return true;
|
|
3132
3133
|
}
|
|
3133
3134
|
|
|
3134
|
-
if ((0,
|
|
3135
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3135
3136
|
return true;
|
|
3136
3137
|
}
|
|
3137
3138
|
|
|
@@ -3174,17 +3175,17 @@ function isMediaStream(url) {
|
|
|
3174
3175
|
});
|
|
3175
3176
|
|
|
3176
3177
|
unwrapExports(utils);
|
|
3177
|
-
utils.parseStartTime;
|
|
3178
|
-
utils.parseEndTime;
|
|
3179
|
-
utils.randomString;
|
|
3180
|
-
utils.queryString;
|
|
3181
|
-
utils.getSDK;
|
|
3182
|
-
utils.getConfig;
|
|
3183
|
-
utils.omit;
|
|
3184
|
-
utils.callPlayer;
|
|
3185
|
-
utils.isObject;
|
|
3186
|
-
utils.isEqual;
|
|
3187
|
-
utils.isMediaStream;
|
|
3178
|
+
var utils_1 = utils.parseStartTime;
|
|
3179
|
+
var utils_2 = utils.parseEndTime;
|
|
3180
|
+
var utils_3 = utils.randomString;
|
|
3181
|
+
var utils_4 = utils.queryString;
|
|
3182
|
+
var utils_5 = utils.getSDK;
|
|
3183
|
+
var utils_6 = utils.getConfig;
|
|
3184
|
+
var utils_7 = utils.omit;
|
|
3185
|
+
var utils_8 = utils.callPlayer;
|
|
3186
|
+
var utils_9 = utils.isObject;
|
|
3187
|
+
var utils_10 = utils.isEqual;
|
|
3188
|
+
var utils_11 = utils.isMediaStream;
|
|
3188
3189
|
|
|
3189
3190
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3190
3191
|
|
|
@@ -3193,7 +3194,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3193
3194
|
});
|
|
3194
3195
|
exports["default"] = void 0;
|
|
3195
3196
|
|
|
3196
|
-
var _react = _interopRequireWildcard(
|
|
3197
|
+
var _react = _interopRequireWildcard(React);
|
|
3197
3198
|
|
|
3198
3199
|
|
|
3199
3200
|
|
|
@@ -3603,7 +3604,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3603
3604
|
});
|
|
3604
3605
|
exports["default"] = createSinglePlayer;
|
|
3605
3606
|
|
|
3606
|
-
var _react = _interopRequireWildcard(
|
|
3607
|
+
var _react = _interopRequireWildcard(React);
|
|
3607
3608
|
|
|
3608
3609
|
|
|
3609
3610
|
|
|
@@ -3761,7 +3762,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3761
3762
|
});
|
|
3762
3763
|
exports["default"] = exports.YouTube = void 0;
|
|
3763
3764
|
|
|
3764
|
-
var _react = _interopRequireWildcard(
|
|
3765
|
+
var _react = _interopRequireWildcard(React);
|
|
3765
3766
|
|
|
3766
3767
|
|
|
3767
3768
|
|
|
@@ -4061,7 +4062,7 @@ exports["default"] = _default;
|
|
|
4061
4062
|
});
|
|
4062
4063
|
|
|
4063
4064
|
unwrapExports(YouTube_1);
|
|
4064
|
-
YouTube_1.YouTube;
|
|
4065
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4065
4066
|
|
|
4066
4067
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4067
4068
|
|
|
@@ -4070,7 +4071,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4070
4071
|
});
|
|
4071
4072
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4072
4073
|
|
|
4073
|
-
var _react = _interopRequireWildcard(
|
|
4074
|
+
var _react = _interopRequireWildcard(React);
|
|
4074
4075
|
|
|
4075
4076
|
|
|
4076
4077
|
|
|
@@ -4278,7 +4279,7 @@ exports["default"] = _default;
|
|
|
4278
4279
|
});
|
|
4279
4280
|
|
|
4280
4281
|
unwrapExports(SoundCloud_1);
|
|
4281
|
-
SoundCloud_1.SoundCloud;
|
|
4282
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4282
4283
|
|
|
4283
4284
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4284
4285
|
|
|
@@ -4287,7 +4288,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4287
4288
|
});
|
|
4288
4289
|
exports["default"] = exports.Vimeo = void 0;
|
|
4289
4290
|
|
|
4290
|
-
var _react = _interopRequireWildcard(
|
|
4291
|
+
var _react = _interopRequireWildcard(React);
|
|
4291
4292
|
|
|
4292
4293
|
|
|
4293
4294
|
|
|
@@ -4534,7 +4535,7 @@ exports["default"] = _default;
|
|
|
4534
4535
|
});
|
|
4535
4536
|
|
|
4536
4537
|
unwrapExports(Vimeo_1);
|
|
4537
|
-
Vimeo_1.Vimeo;
|
|
4538
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4538
4539
|
|
|
4539
4540
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4540
4541
|
|
|
@@ -4543,7 +4544,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4543
4544
|
});
|
|
4544
4545
|
exports["default"] = exports.Facebook = void 0;
|
|
4545
4546
|
|
|
4546
|
-
var _react = _interopRequireWildcard(
|
|
4547
|
+
var _react = _interopRequireWildcard(React);
|
|
4547
4548
|
|
|
4548
4549
|
|
|
4549
4550
|
|
|
@@ -4746,7 +4747,7 @@ exports["default"] = _default;
|
|
|
4746
4747
|
});
|
|
4747
4748
|
|
|
4748
4749
|
unwrapExports(Facebook_1);
|
|
4749
|
-
Facebook_1.Facebook;
|
|
4750
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4750
4751
|
|
|
4751
4752
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4752
4753
|
|
|
@@ -4755,7 +4756,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4755
4756
|
});
|
|
4756
4757
|
exports["default"] = exports.Streamable = void 0;
|
|
4757
4758
|
|
|
4758
|
-
var _react = _interopRequireWildcard(
|
|
4759
|
+
var _react = _interopRequireWildcard(React);
|
|
4759
4760
|
|
|
4760
4761
|
|
|
4761
4762
|
|
|
@@ -4957,7 +4958,7 @@ exports["default"] = _default;
|
|
|
4957
4958
|
});
|
|
4958
4959
|
|
|
4959
4960
|
unwrapExports(Streamable_1);
|
|
4960
|
-
Streamable_1.Streamable;
|
|
4961
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4961
4962
|
|
|
4962
4963
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4963
4964
|
|
|
@@ -4966,7 +4967,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4966
4967
|
});
|
|
4967
4968
|
exports["default"] = exports.Wistia = void 0;
|
|
4968
4969
|
|
|
4969
|
-
var _react = _interopRequireWildcard(
|
|
4970
|
+
var _react = _interopRequireWildcard(React);
|
|
4970
4971
|
|
|
4971
4972
|
|
|
4972
4973
|
|
|
@@ -5200,7 +5201,7 @@ exports["default"] = _default;
|
|
|
5200
5201
|
});
|
|
5201
5202
|
|
|
5202
5203
|
unwrapExports(Wistia_1);
|
|
5203
|
-
Wistia_1.Wistia;
|
|
5204
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5204
5205
|
|
|
5205
5206
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5206
5207
|
|
|
@@ -5209,7 +5210,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5209
5210
|
});
|
|
5210
5211
|
exports["default"] = exports.Twitch = void 0;
|
|
5211
5212
|
|
|
5212
|
-
var _react = _interopRequireWildcard(
|
|
5213
|
+
var _react = _interopRequireWildcard(React);
|
|
5213
5214
|
|
|
5214
5215
|
|
|
5215
5216
|
|
|
@@ -5416,7 +5417,7 @@ exports["default"] = _default;
|
|
|
5416
5417
|
});
|
|
5417
5418
|
|
|
5418
5419
|
unwrapExports(Twitch_1);
|
|
5419
|
-
Twitch_1.Twitch;
|
|
5420
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5420
5421
|
|
|
5421
5422
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5422
5423
|
|
|
@@ -5425,7 +5426,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5425
5426
|
});
|
|
5426
5427
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5427
5428
|
|
|
5428
|
-
var _react = _interopRequireWildcard(
|
|
5429
|
+
var _react = _interopRequireWildcard(React);
|
|
5429
5430
|
|
|
5430
5431
|
|
|
5431
5432
|
|
|
@@ -5652,7 +5653,7 @@ exports["default"] = _default;
|
|
|
5652
5653
|
});
|
|
5653
5654
|
|
|
5654
5655
|
unwrapExports(DailyMotion_1);
|
|
5655
|
-
DailyMotion_1.DailyMotion;
|
|
5656
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5656
5657
|
|
|
5657
5658
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5658
5659
|
|
|
@@ -5661,7 +5662,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5661
5662
|
});
|
|
5662
5663
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5663
5664
|
|
|
5664
|
-
var _react = _interopRequireWildcard(
|
|
5665
|
+
var _react = _interopRequireWildcard(React);
|
|
5665
5666
|
|
|
5666
5667
|
|
|
5667
5668
|
|
|
@@ -5851,7 +5852,7 @@ exports["default"] = _default;
|
|
|
5851
5852
|
});
|
|
5852
5853
|
|
|
5853
5854
|
unwrapExports(Mixcloud_1);
|
|
5854
|
-
Mixcloud_1.Mixcloud;
|
|
5855
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5855
5856
|
|
|
5856
5857
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5857
5858
|
|
|
@@ -5860,7 +5861,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5860
5861
|
});
|
|
5861
5862
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5862
5863
|
|
|
5863
|
-
var _react = _interopRequireWildcard(
|
|
5864
|
+
var _react = _interopRequireWildcard(React);
|
|
5864
5865
|
|
|
5865
5866
|
|
|
5866
5867
|
|
|
@@ -6385,7 +6386,7 @@ exports["default"] = _default;
|
|
|
6385
6386
|
});
|
|
6386
6387
|
|
|
6387
6388
|
unwrapExports(FilePlayer_1);
|
|
6388
|
-
FilePlayer_1.FilePlayer;
|
|
6389
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6389
6390
|
|
|
6390
6391
|
var players = createCommonjsModule(function (module, exports) {
|
|
6391
6392
|
|
|
@@ -6427,7 +6428,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6427
6428
|
});
|
|
6428
6429
|
exports["default"] = void 0;
|
|
6429
6430
|
|
|
6430
|
-
var _react = _interopRequireWildcard(
|
|
6431
|
+
var _react = _interopRequireWildcard(React);
|
|
6431
6432
|
|
|
6432
6433
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6433
6434
|
|
|
@@ -6606,7 +6607,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6606
6607
|
});
|
|
6607
6608
|
exports["default"] = renderPreloadPlayers;
|
|
6608
6609
|
|
|
6609
|
-
var _react = _interopRequireDefault(
|
|
6610
|
+
var _react = _interopRequireDefault(React);
|
|
6610
6611
|
|
|
6611
6612
|
var _Player = _interopRequireDefault(Player_1);
|
|
6612
6613
|
|
|
@@ -6745,7 +6746,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6745
6746
|
});
|
|
6746
6747
|
exports["default"] = void 0;
|
|
6747
6748
|
|
|
6748
|
-
var _react = _interopRequireWildcard(
|
|
6749
|
+
var _react = _interopRequireWildcard(React);
|
|
6749
6750
|
|
|
6750
6751
|
|
|
6751
6752
|
|
|
@@ -7059,20 +7060,20 @@ var Audio = function Audio(_ref) {
|
|
|
7059
7060
|
var node = _ref.node;
|
|
7060
7061
|
|
|
7061
7062
|
if (node.uploadAudio) {
|
|
7062
|
-
return
|
|
7063
|
+
return React.createElement(
|
|
7063
7064
|
'div',
|
|
7064
7065
|
{ className: 'audio d-block text-center mb-3' },
|
|
7065
|
-
|
|
7066
|
+
React.createElement(
|
|
7066
7067
|
'audio',
|
|
7067
7068
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7068
|
-
|
|
7069
|
-
|
|
7069
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7070
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7070
7071
|
'Your browser does not support the audio element.'
|
|
7071
7072
|
),
|
|
7072
|
-
node.caption &&
|
|
7073
|
+
node.caption && React.createElement(
|
|
7073
7074
|
'p',
|
|
7074
7075
|
{ style: { fontSize: '.9rem' } },
|
|
7075
|
-
|
|
7076
|
+
React.createElement(
|
|
7076
7077
|
'em',
|
|
7077
7078
|
null,
|
|
7078
7079
|
node.caption
|
|
@@ -7082,15 +7083,15 @@ var Audio = function Audio(_ref) {
|
|
|
7082
7083
|
} else if (node.audioFilePth) {
|
|
7083
7084
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7084
7085
|
if (hostname === 'embeds.audioboom.com') {
|
|
7085
|
-
return
|
|
7086
|
+
return React.createElement(
|
|
7086
7087
|
'div',
|
|
7087
7088
|
null,
|
|
7088
|
-
|
|
7089
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7089
7090
|
' ',
|
|
7090
|
-
node.caption &&
|
|
7091
|
+
node.caption && React.createElement(
|
|
7091
7092
|
'p',
|
|
7092
7093
|
{ style: { fontSize: '.9rem' } },
|
|
7093
|
-
|
|
7094
|
+
React.createElement(
|
|
7094
7095
|
'em',
|
|
7095
7096
|
null,
|
|
7096
7097
|
node.caption
|
|
@@ -7098,14 +7099,14 @@ var Audio = function Audio(_ref) {
|
|
|
7098
7099
|
)
|
|
7099
7100
|
);
|
|
7100
7101
|
}
|
|
7101
|
-
return
|
|
7102
|
+
return React.createElement(
|
|
7102
7103
|
'div',
|
|
7103
7104
|
{ className: 'audio' },
|
|
7104
|
-
|
|
7105
|
-
node.caption &&
|
|
7105
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7106
|
+
node.caption && React.createElement(
|
|
7106
7107
|
'p',
|
|
7107
7108
|
{ style: { fontSize: '.9rem' } },
|
|
7108
|
-
|
|
7109
|
+
React.createElement(
|
|
7109
7110
|
'em',
|
|
7110
7111
|
null,
|
|
7111
7112
|
node.caption
|
|
@@ -7124,34 +7125,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7124
7125
|
var showAuthorDetails = arguments[7];
|
|
7125
7126
|
|
|
7126
7127
|
if (authorName && authorURL) {
|
|
7127
|
-
return
|
|
7128
|
+
return React.createElement(
|
|
7128
7129
|
'span',
|
|
7129
7130
|
null,
|
|
7130
|
-
|
|
7131
|
+
React.createElement(
|
|
7131
7132
|
'a',
|
|
7132
7133
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7133
7134
|
authorName
|
|
7134
7135
|
),
|
|
7135
|
-
showAuthorDetails &&
|
|
7136
|
+
showAuthorDetails && React.createElement(
|
|
7136
7137
|
Card,
|
|
7137
7138
|
{ className: 'author-details-card-' + index },
|
|
7138
|
-
|
|
7139
|
+
React.createElement(
|
|
7139
7140
|
Row,
|
|
7140
7141
|
null,
|
|
7141
|
-
profileImage &&
|
|
7142
|
+
profileImage && React.createElement(
|
|
7142
7143
|
Col,
|
|
7143
7144
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7144
|
-
|
|
7145
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7145
7146
|
),
|
|
7146
|
-
|
|
7147
|
+
React.createElement(
|
|
7147
7148
|
Col,
|
|
7148
7149
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7149
|
-
|
|
7150
|
+
React.createElement(
|
|
7150
7151
|
'div',
|
|
7151
7152
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7152
7153
|
authorName
|
|
7153
7154
|
),
|
|
7154
|
-
|
|
7155
|
+
React.createElement(
|
|
7155
7156
|
'p',
|
|
7156
7157
|
null,
|
|
7157
7158
|
biography
|
|
@@ -7159,7 +7160,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7159
7160
|
)
|
|
7160
7161
|
)
|
|
7161
7162
|
),
|
|
7162
|
-
|
|
7163
|
+
React.createElement(
|
|
7163
7164
|
'style',
|
|
7164
7165
|
{ jsx: 'true' },
|
|
7165
7166
|
'\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 '
|
|
@@ -7167,7 +7168,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7167
7168
|
length !== index + 1 && ', '
|
|
7168
7169
|
);
|
|
7169
7170
|
} else if (authorName) {
|
|
7170
|
-
return
|
|
7171
|
+
return React.createElement(
|
|
7171
7172
|
'span',
|
|
7172
7173
|
{ key: index },
|
|
7173
7174
|
authorName,
|
|
@@ -7323,7 +7324,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7323
7324
|
var queue = Math.floor(duration / 10);
|
|
7324
7325
|
var segment = Math.floor(current / queue);
|
|
7325
7326
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
7326
|
-
Segment.report_video_event('Video Ready',
|
|
7327
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
7327
7328
|
//autoplay
|
|
7328
7329
|
|
|
7329
7330
|
//Small pause before starting next video
|
|
@@ -7344,7 +7345,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7344
7345
|
var segment = Math.floor(current / queue);
|
|
7345
7346
|
|
|
7346
7347
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
7347
|
-
Segment.report_video_event('Video End',
|
|
7348
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
7348
7349
|
setEndReported(true);
|
|
7349
7350
|
clearInterval(intervalID);
|
|
7350
7351
|
}
|
|
@@ -7395,7 +7396,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7395
7396
|
var segment = Math.floor(current / queue);
|
|
7396
7397
|
if (!queueProgress.includes(segment)) {
|
|
7397
7398
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
7398
|
-
Segment.report_video_event('Video Segment',
|
|
7399
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
7399
7400
|
queueProgress.push(segment);
|
|
7400
7401
|
}
|
|
7401
7402
|
};
|
|
@@ -7409,7 +7410,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7409
7410
|
var segment = Math.floor(current / queue);
|
|
7410
7411
|
|
|
7411
7412
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
7412
|
-
Segment.report_video_event('Video Play',
|
|
7413
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
7413
7414
|
|
|
7414
7415
|
if (!playReported) {
|
|
7415
7416
|
setPlayReported(true);
|
|
@@ -7428,7 +7429,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7428
7429
|
var segment = Math.floor(current / queue);
|
|
7429
7430
|
|
|
7430
7431
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
7431
|
-
Segment.report_video_event('Video Pause',
|
|
7432
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
7432
7433
|
};
|
|
7433
7434
|
|
|
7434
7435
|
// Youtube Options
|
|
@@ -7439,44 +7440,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7439
7440
|
}
|
|
7440
7441
|
};
|
|
7441
7442
|
|
|
7442
|
-
return
|
|
7443
|
+
return React.createElement(
|
|
7443
7444
|
'div',
|
|
7444
7445
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7445
|
-
|
|
7446
|
+
React.createElement(
|
|
7446
7447
|
'div',
|
|
7447
7448
|
{ className: 'mt-2 mb-5' },
|
|
7448
|
-
series &&
|
|
7449
|
+
series && React.createElement(
|
|
7449
7450
|
'div',
|
|
7450
7451
|
{ style: { fontSize: '0.9rem' } },
|
|
7451
7452
|
article.title,
|
|
7452
7453
|
' - Episode ',
|
|
7453
7454
|
series
|
|
7454
7455
|
),
|
|
7455
|
-
Videos[series - 1] &&
|
|
7456
|
+
Videos[series - 1] && React.createElement(
|
|
7456
7457
|
'h1',
|
|
7457
7458
|
{ className: 'mb-3' },
|
|
7458
7459
|
Videos[series - 1].title
|
|
7459
7460
|
),
|
|
7460
|
-
|
|
7461
|
+
React.createElement(
|
|
7461
7462
|
'div',
|
|
7462
7463
|
null,
|
|
7463
7464
|
moment(article.published).format('LL')
|
|
7464
7465
|
),
|
|
7465
|
-
|
|
7466
|
+
React.createElement(
|
|
7466
7467
|
'div',
|
|
7467
7468
|
{ className: 'mb-3' },
|
|
7468
7469
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7469
|
-
return
|
|
7470
|
+
return React.createElement(
|
|
7470
7471
|
'span',
|
|
7471
7472
|
{ key: index },
|
|
7472
7473
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7473
7474
|
);
|
|
7474
7475
|
})
|
|
7475
7476
|
),
|
|
7476
|
-
|
|
7477
|
+
React.createElement(
|
|
7477
7478
|
'p',
|
|
7478
7479
|
null,
|
|
7479
|
-
|
|
7480
|
+
React.createElement(SocialShare, {
|
|
7480
7481
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7481
7482
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7482
7483
|
shareVia: meta.shareVia,
|
|
@@ -7491,20 +7492,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7491
7492
|
hideFacebook: meta.hideFBShare
|
|
7492
7493
|
})
|
|
7493
7494
|
),
|
|
7494
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7495
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7495
7496
|
'p',
|
|
7496
7497
|
{ className: 'mb-3' },
|
|
7497
|
-
|
|
7498
|
+
React.createElement(
|
|
7498
7499
|
'em',
|
|
7499
7500
|
null,
|
|
7500
7501
|
Videos[series - 1].intro
|
|
7501
7502
|
)
|
|
7502
7503
|
)
|
|
7503
7504
|
),
|
|
7504
|
-
|
|
7505
|
+
React.createElement(
|
|
7505
7506
|
'div',
|
|
7506
7507
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7507
|
-
vidUrl && vidType == 'youtube' &&
|
|
7508
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7508
7509
|
className: 'fluid-iframe',
|
|
7509
7510
|
videoId: getYoutubeId(vidUrl),
|
|
7510
7511
|
opts: opts,
|
|
@@ -7515,10 +7516,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7515
7516
|
return handleOnEnd(e);
|
|
7516
7517
|
}
|
|
7517
7518
|
}),
|
|
7518
|
-
vidUrl && vidType == 'mp4' &&
|
|
7519
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7520
|
-
|
|
7521
|
-
series &&
|
|
7519
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7520
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7521
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7522
|
+
series && React.createElement(
|
|
7522
7523
|
'div',
|
|
7523
7524
|
{
|
|
7524
7525
|
className: 'vid-series',
|
|
@@ -7528,10 +7529,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7528
7529
|
maxHeight: '100%',
|
|
7529
7530
|
paddingBottom: '0'
|
|
7530
7531
|
} },
|
|
7531
|
-
|
|
7532
|
+
React.createElement(
|
|
7532
7533
|
'p',
|
|
7533
7534
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7534
|
-
|
|
7535
|
+
React.createElement(
|
|
7535
7536
|
'b',
|
|
7536
7537
|
{ style: { fontSize: '1.25em' } },
|
|
7537
7538
|
'Now Playing:'
|
|
@@ -7539,16 +7540,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7539
7540
|
' ',
|
|
7540
7541
|
seriesData[series ? series - 1 : 0].title
|
|
7541
7542
|
),
|
|
7542
|
-
vidUrl &&
|
|
7543
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7543
7544
|
)
|
|
7544
7545
|
),
|
|
7545
|
-
|
|
7546
|
-
|
|
7546
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7547
|
+
React.createElement(
|
|
7547
7548
|
'div',
|
|
7548
7549
|
{ className: 'vid-text' },
|
|
7549
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7550
|
+
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()))
|
|
7550
7551
|
),
|
|
7551
|
-
|
|
7552
|
+
React.createElement(
|
|
7552
7553
|
'style',
|
|
7553
7554
|
{ jsx: 'true' },
|
|
7554
7555
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7556,14 +7557,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7556
7557
|
);
|
|
7557
7558
|
};
|
|
7558
7559
|
|
|
7559
|
-
var Poll
|
|
7560
|
-
var node = _ref.node
|
|
7561
|
-
_ref.client
|
|
7562
|
-
_ref.pageview
|
|
7563
|
-
_ref.videoAccountIDs
|
|
7564
|
-
|
|
7565
|
-
_ref.showVotes
|
|
7566
|
-
|
|
7560
|
+
var Poll = function Poll(_ref) {
|
|
7561
|
+
var node = _ref.node,
|
|
7562
|
+
client = _ref.client,
|
|
7563
|
+
pageview = _ref.pageview,
|
|
7564
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7565
|
+
onVote = _ref.onVote,
|
|
7566
|
+
_ref$showVotes = _ref.showVotes,
|
|
7567
|
+
getSerializers = _ref.getSerializers;
|
|
7567
7568
|
|
|
7568
7569
|
var _useState = useState(null),
|
|
7569
7570
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7601,67 +7602,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7601
7602
|
return acc;
|
|
7602
7603
|
}
|
|
7603
7604
|
}, 0);
|
|
7604
|
-
return
|
|
7605
|
-
|
|
7605
|
+
return React.createElement(
|
|
7606
|
+
React.Fragment,
|
|
7606
7607
|
null,
|
|
7607
|
-
question &&
|
|
7608
|
+
question && React.createElement(
|
|
7608
7609
|
'p',
|
|
7609
7610
|
{ className: 'font-weight-bold' },
|
|
7610
7611
|
question
|
|
7611
7612
|
),
|
|
7612
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7613
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7613
7614
|
'form',
|
|
7614
7615
|
{ onSubmit: function onSubmit(e) {
|
|
7615
7616
|
return onSubmitPoll(e);
|
|
7616
7617
|
} },
|
|
7617
7618
|
choices && choices.map(function (choice) {
|
|
7618
|
-
return
|
|
7619
|
+
return React.createElement(
|
|
7619
7620
|
'div',
|
|
7620
7621
|
{ key: choice._key },
|
|
7621
|
-
|
|
7622
|
+
React.createElement(
|
|
7622
7623
|
'label',
|
|
7623
7624
|
{ className: 'pl-2' },
|
|
7624
|
-
|
|
7625
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7625
7626
|
return setSelectedChoice(e.target.value);
|
|
7626
7627
|
} }),
|
|
7627
7628
|
' ' + choice.choiceText
|
|
7628
7629
|
)
|
|
7629
7630
|
);
|
|
7630
7631
|
}),
|
|
7631
|
-
|
|
7632
|
+
React.createElement(
|
|
7632
7633
|
Button,
|
|
7633
7634
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7634
7635
|
'Vote'
|
|
7635
7636
|
)
|
|
7636
7637
|
),
|
|
7637
|
-
|
|
7638
|
+
React.createElement(
|
|
7638
7639
|
'div',
|
|
7639
7640
|
{ className: 'progress-container' },
|
|
7640
7641
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7641
7642
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7642
|
-
return
|
|
7643
|
+
return React.createElement(
|
|
7643
7644
|
'div',
|
|
7644
7645
|
{ key: choice._key, className: 'mb-3' },
|
|
7645
|
-
|
|
7646
|
+
React.createElement(
|
|
7646
7647
|
'div',
|
|
7647
7648
|
{ className: 'correct-answer' },
|
|
7648
|
-
|
|
7649
|
+
React.createElement(
|
|
7649
7650
|
'div',
|
|
7650
7651
|
null,
|
|
7651
7652
|
choice.choiceText
|
|
7652
7653
|
),
|
|
7653
|
-
choice.choiceAnswer === true &&
|
|
7654
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7654
7655
|
'div',
|
|
7655
7656
|
null,
|
|
7656
|
-
|
|
7657
|
+
React.createElement(
|
|
7657
7658
|
'span',
|
|
7658
7659
|
{ style: { color: 'limegreen' } },
|
|
7659
7660
|
'Correct!'
|
|
7660
7661
|
)
|
|
7661
7662
|
)
|
|
7662
7663
|
),
|
|
7663
|
-
|
|
7664
|
-
|
|
7664
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7665
|
+
React.createElement(
|
|
7665
7666
|
'span',
|
|
7666
7667
|
{ className: 'float-right' },
|
|
7667
7668
|
percentage,
|
|
@@ -7672,14 +7673,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7672
7673
|
);
|
|
7673
7674
|
})
|
|
7674
7675
|
),
|
|
7675
|
-
showAnswer &&
|
|
7676
|
+
showAnswer && React.createElement(
|
|
7676
7677
|
'h4',
|
|
7677
7678
|
{ className: 'text-center small p-3' },
|
|
7678
7679
|
'Total Votes: ',
|
|
7679
7680
|
choicesTotalCount
|
|
7680
7681
|
),
|
|
7681
|
-
showAnswer && response &&
|
|
7682
|
-
|
|
7682
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7683
|
+
React.createElement(
|
|
7683
7684
|
'style',
|
|
7684
7685
|
{ jsx: 'true' },
|
|
7685
7686
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7697,22 +7698,22 @@ _export(_export.S, 'Object', {
|
|
|
7697
7698
|
}
|
|
7698
7699
|
});
|
|
7699
7700
|
|
|
7700
|
-
var values
|
|
7701
|
+
var values = _core.Object.values;
|
|
7701
7702
|
|
|
7702
|
-
var values = createCommonjsModule(function (module) {
|
|
7703
|
-
module.exports = { "default": values
|
|
7703
|
+
var values$1 = createCommonjsModule(function (module) {
|
|
7704
|
+
module.exports = { "default": values, __esModule: true };
|
|
7704
7705
|
});
|
|
7705
7706
|
|
|
7706
|
-
var _Object$values = unwrapExports(values);
|
|
7707
|
+
var _Object$values = unwrapExports(values$1);
|
|
7707
7708
|
|
|
7708
|
-
var Poll = function Poll(_ref) {
|
|
7709
|
-
var node = _ref.node
|
|
7710
|
-
_ref.client
|
|
7711
|
-
_ref.pageview
|
|
7712
|
-
_ref.videoAccountIDs
|
|
7713
|
-
|
|
7714
|
-
_ref.showVotes
|
|
7715
|
-
|
|
7709
|
+
var Poll$1 = function Poll(_ref) {
|
|
7710
|
+
var node = _ref.node,
|
|
7711
|
+
client = _ref.client,
|
|
7712
|
+
pageview = _ref.pageview,
|
|
7713
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7714
|
+
onVote = _ref.onVote,
|
|
7715
|
+
_ref$showVotes = _ref.showVotes,
|
|
7716
|
+
getSerializers = _ref.getSerializers;
|
|
7716
7717
|
|
|
7717
7718
|
var _useState = useState(null),
|
|
7718
7719
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7778,67 +7779,67 @@ var Poll = function Poll(_ref) {
|
|
|
7778
7779
|
return acc;
|
|
7779
7780
|
}
|
|
7780
7781
|
}, 0);
|
|
7781
|
-
return
|
|
7782
|
-
|
|
7782
|
+
return React.createElement(
|
|
7783
|
+
React.Fragment,
|
|
7783
7784
|
null,
|
|
7784
|
-
question &&
|
|
7785
|
+
question && React.createElement(
|
|
7785
7786
|
'p',
|
|
7786
7787
|
{ className: 'font-weight-bold' },
|
|
7787
7788
|
question
|
|
7788
7789
|
),
|
|
7789
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7790
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7790
7791
|
'form',
|
|
7791
7792
|
{ onSubmit: function onSubmit(e) {
|
|
7792
7793
|
return onSubmitPoll(e);
|
|
7793
7794
|
} },
|
|
7794
7795
|
choices && choices.map(function (choice) {
|
|
7795
|
-
return
|
|
7796
|
+
return React.createElement(
|
|
7796
7797
|
'div',
|
|
7797
7798
|
{ key: choice._key },
|
|
7798
|
-
|
|
7799
|
+
React.createElement(
|
|
7799
7800
|
'label',
|
|
7800
7801
|
{ className: 'pl-2' },
|
|
7801
|
-
|
|
7802
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7802
7803
|
return setSelectedChoice(e.target.value);
|
|
7803
7804
|
} }),
|
|
7804
7805
|
' ' + choice.choiceText
|
|
7805
7806
|
)
|
|
7806
7807
|
);
|
|
7807
7808
|
}),
|
|
7808
|
-
|
|
7809
|
+
React.createElement(
|
|
7809
7810
|
Button,
|
|
7810
7811
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7811
7812
|
'Vote'
|
|
7812
7813
|
)
|
|
7813
7814
|
),
|
|
7814
|
-
|
|
7815
|
+
React.createElement(
|
|
7815
7816
|
'div',
|
|
7816
7817
|
{ className: 'progress-container' },
|
|
7817
7818
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7818
7819
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7819
|
-
return
|
|
7820
|
+
return React.createElement(
|
|
7820
7821
|
'div',
|
|
7821
7822
|
{ key: choice._key, className: 'mb-3' },
|
|
7822
|
-
|
|
7823
|
+
React.createElement(
|
|
7823
7824
|
'div',
|
|
7824
7825
|
{ className: 'correct-answer' },
|
|
7825
|
-
|
|
7826
|
+
React.createElement(
|
|
7826
7827
|
'div',
|
|
7827
7828
|
null,
|
|
7828
7829
|
choice.choiceText
|
|
7829
7830
|
),
|
|
7830
|
-
choice.choiceAnswer === true &&
|
|
7831
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7831
7832
|
'div',
|
|
7832
7833
|
null,
|
|
7833
|
-
|
|
7834
|
+
React.createElement(
|
|
7834
7835
|
'span',
|
|
7835
7836
|
{ style: { color: 'limegreen' } },
|
|
7836
7837
|
'Correct!'
|
|
7837
7838
|
)
|
|
7838
7839
|
)
|
|
7839
7840
|
),
|
|
7840
|
-
|
|
7841
|
-
|
|
7841
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7842
|
+
React.createElement(
|
|
7842
7843
|
'span',
|
|
7843
7844
|
{ className: 'float-right' },
|
|
7844
7845
|
percentage,
|
|
@@ -7849,14 +7850,14 @@ var Poll = function Poll(_ref) {
|
|
|
7849
7850
|
);
|
|
7850
7851
|
})
|
|
7851
7852
|
),
|
|
7852
|
-
showAnswer &&
|
|
7853
|
+
showAnswer && React.createElement(
|
|
7853
7854
|
'h4',
|
|
7854
7855
|
{ className: 'text-center small p-3' },
|
|
7855
7856
|
'Total Votes: ',
|
|
7856
7857
|
choicesTotalCount
|
|
7857
7858
|
),
|
|
7858
|
-
showAnswer && response &&
|
|
7859
|
-
|
|
7859
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7860
|
+
React.createElement(
|
|
7860
7861
|
'style',
|
|
7861
7862
|
{ jsx: 'true' },
|
|
7862
7863
|
'\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 '
|
|
@@ -7864,7 +7865,7 @@ var Poll = function Poll(_ref) {
|
|
|
7864
7865
|
);
|
|
7865
7866
|
};
|
|
7866
7867
|
|
|
7867
|
-
var numberOfPaginations =
|
|
7868
|
+
var numberOfPaginations = main_39 ? 4 : 10;
|
|
7868
7869
|
|
|
7869
7870
|
var Quiz = function Quiz(_ref) {
|
|
7870
7871
|
var quizzes = _ref.quizzes,
|
|
@@ -7982,20 +7983,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7982
7983
|
};
|
|
7983
7984
|
|
|
7984
7985
|
var renderPagination = function renderPagination() {
|
|
7985
|
-
return
|
|
7986
|
+
return React.createElement(
|
|
7986
7987
|
Pagination,
|
|
7987
|
-
{ className: 'p-0 m-0', size:
|
|
7988
|
-
|
|
7988
|
+
{ className: 'p-0 m-0', size: main_39 && 'sm' },
|
|
7989
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7989
7990
|
return changePage('first');
|
|
7990
7991
|
}, disabled: currentPage === 1 }),
|
|
7991
|
-
|
|
7992
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7992
7993
|
return changePage('prev');
|
|
7993
7994
|
}, disabled: currentPage === 1 }),
|
|
7994
|
-
|
|
7995
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7995
7996
|
return renderNewPages('prev');
|
|
7996
7997
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7997
7998
|
pages.map(function (page) {
|
|
7998
|
-
return
|
|
7999
|
+
return React.createElement(
|
|
7999
8000
|
Pagination.Item,
|
|
8000
8001
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
8001
8002
|
return changePage(page);
|
|
@@ -8003,13 +8004,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
8003
8004
|
page
|
|
8004
8005
|
);
|
|
8005
8006
|
}),
|
|
8006
|
-
|
|
8007
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
8007
8008
|
return renderNewPages('next');
|
|
8008
8009
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
8009
|
-
|
|
8010
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
8010
8011
|
return changePage('next');
|
|
8011
8012
|
}, disabled: currentPage === pageCount }),
|
|
8012
|
-
|
|
8013
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
8013
8014
|
return changePage('last');
|
|
8014
8015
|
}, disabled: currentPage === pageCount })
|
|
8015
8016
|
);
|
|
@@ -8092,51 +8093,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8092
8093
|
}
|
|
8093
8094
|
};
|
|
8094
8095
|
|
|
8095
|
-
return
|
|
8096
|
-
|
|
8096
|
+
return React.createElement(
|
|
8097
|
+
React.Fragment,
|
|
8097
8098
|
null,
|
|
8098
|
-
quizzes[currentPage - 1] &&
|
|
8099
|
-
|
|
8099
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8100
|
+
React.Fragment,
|
|
8100
8101
|
null,
|
|
8101
|
-
|
|
8102
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8102
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8103
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8103
8104
|
'form',
|
|
8104
8105
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8105
8106
|
return e.preventDefault();
|
|
8106
8107
|
} },
|
|
8107
8108
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8108
|
-
return
|
|
8109
|
+
return React.createElement(
|
|
8109
8110
|
'div',
|
|
8110
8111
|
{ key: answer._key },
|
|
8111
|
-
|
|
8112
|
+
React.createElement(
|
|
8112
8113
|
'label',
|
|
8113
8114
|
{ className: 'pl-2' },
|
|
8114
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8115
|
+
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 }),
|
|
8115
8116
|
' ' + answer.answerText
|
|
8116
8117
|
)
|
|
8117
8118
|
);
|
|
8118
8119
|
})
|
|
8119
8120
|
)
|
|
8120
8121
|
),
|
|
8121
|
-
!showAnswer &&
|
|
8122
|
+
!showAnswer && React.createElement(
|
|
8122
8123
|
Button$1,
|
|
8123
8124
|
{ onClick: function onClick() {
|
|
8124
8125
|
return checkAnswers();
|
|
8125
8126
|
}, variant: 'info', block: true },
|
|
8126
8127
|
'Please click here for answer'
|
|
8127
8128
|
),
|
|
8128
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8129
|
-
|
|
8129
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8130
|
+
React.Fragment,
|
|
8130
8131
|
null,
|
|
8131
|
-
|
|
8132
|
+
React.createElement(
|
|
8132
8133
|
'h4',
|
|
8133
8134
|
null,
|
|
8134
8135
|
'Answer:'
|
|
8135
8136
|
),
|
|
8136
|
-
quizzes[currentPage - 1].answer &&
|
|
8137
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8137
8138
|
),
|
|
8138
|
-
|
|
8139
|
-
pageCount > 1 &&
|
|
8139
|
+
React.createElement('br', null),
|
|
8140
|
+
pageCount > 1 && React.createElement(
|
|
8140
8141
|
'div',
|
|
8141
8142
|
{ className: 'd-flex justify-content-center' },
|
|
8142
8143
|
renderPagination()
|
|
@@ -8147,19 +8148,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8147
8148
|
var Leads = function Leads(_ref) {
|
|
8148
8149
|
var url = _ref.url;
|
|
8149
8150
|
|
|
8150
|
-
return
|
|
8151
|
+
return React.createElement(
|
|
8151
8152
|
'div',
|
|
8152
8153
|
{ className: 'd-block text-center mb-3' },
|
|
8153
|
-
|
|
8154
|
+
React.createElement(
|
|
8154
8155
|
'style',
|
|
8155
8156
|
{ jsx: 'true' },
|
|
8156
8157
|
'\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 '
|
|
8157
8158
|
),
|
|
8158
|
-
url &&
|
|
8159
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8159
8160
|
);
|
|
8160
8161
|
};
|
|
8161
8162
|
|
|
8162
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8163
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8163
8164
|
var slides = _ref.node.slides,
|
|
8164
8165
|
client = _ref.client,
|
|
8165
8166
|
pageview = _ref.pageview,
|
|
@@ -8195,53 +8196,53 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8195
8196
|
setCarouselIndex(selectedIndex);
|
|
8196
8197
|
};
|
|
8197
8198
|
|
|
8198
|
-
return
|
|
8199
|
+
return React.createElement(
|
|
8199
8200
|
'div',
|
|
8200
8201
|
{ className: 'mt-3 mb-4' },
|
|
8201
|
-
|
|
8202
|
+
React.createElement(
|
|
8202
8203
|
Carousel,
|
|
8203
8204
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8204
8205
|
slides && slides.map(function (slide) {
|
|
8205
8206
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8206
|
-
return
|
|
8207
|
+
return React.createElement(
|
|
8207
8208
|
Carousel.Item,
|
|
8208
8209
|
{ key: slide._key },
|
|
8209
|
-
|
|
8210
|
+
React.createElement(
|
|
8210
8211
|
'a',
|
|
8211
8212
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8212
|
-
|
|
8213
|
+
React.createElement(
|
|
8213
8214
|
'div',
|
|
8214
8215
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8215
|
-
|
|
8216
|
+
React.createElement(
|
|
8216
8217
|
LazyLoad,
|
|
8217
8218
|
null,
|
|
8218
|
-
|
|
8219
|
+
React.createElement(
|
|
8219
8220
|
'picture',
|
|
8220
8221
|
null,
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8222
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8223
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8224
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8225
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8225
8226
|
)
|
|
8226
8227
|
)
|
|
8227
8228
|
)
|
|
8228
8229
|
),
|
|
8229
|
-
|
|
8230
|
+
React.createElement(
|
|
8230
8231
|
'div',
|
|
8231
8232
|
{ className: 'p-2' },
|
|
8232
|
-
slide.slideshowImage.caption &&
|
|
8233
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8233
8234
|
'h3',
|
|
8234
8235
|
{ style: { padding: '0px' } },
|
|
8235
8236
|
slide.slideshowImage.caption
|
|
8236
8237
|
),
|
|
8237
|
-
slide.description &&
|
|
8238
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8238
8239
|
)
|
|
8239
8240
|
);
|
|
8240
8241
|
}
|
|
8241
8242
|
return null;
|
|
8242
8243
|
})
|
|
8243
8244
|
),
|
|
8244
|
-
|
|
8245
|
+
React.createElement(
|
|
8245
8246
|
'style',
|
|
8246
8247
|
{ jsx: 'true' },
|
|
8247
8248
|
'\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 '
|
|
@@ -8260,10 +8261,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8260
8261
|
sizes = _props$node.sizes,
|
|
8261
8262
|
sizeMapping = _props$node.sizeMapping;
|
|
8262
8263
|
|
|
8263
|
-
return
|
|
8264
|
+
return React.createElement(
|
|
8264
8265
|
'div',
|
|
8265
8266
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8266
|
-
|
|
8267
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8267
8268
|
);
|
|
8268
8269
|
};
|
|
8269
8270
|
|
|
@@ -8274,15 +8275,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8274
8275
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8275
8276
|
|
|
8276
8277
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8277
|
-
return
|
|
8278
|
+
return React.createElement(
|
|
8278
8279
|
'section',
|
|
8279
8280
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8280
|
-
Caption &&
|
|
8281
|
+
Caption && React.createElement(
|
|
8281
8282
|
'h4',
|
|
8282
8283
|
{ className: 'formstack-caption' },
|
|
8283
8284
|
Caption
|
|
8284
8285
|
),
|
|
8285
|
-
|
|
8286
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8286
8287
|
);
|
|
8287
8288
|
};
|
|
8288
8289
|
|
|
@@ -8298,36 +8299,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8298
8299
|
}
|
|
8299
8300
|
});
|
|
8300
8301
|
if (medias && medias.length > 0) {
|
|
8301
|
-
return
|
|
8302
|
+
return React.createElement(
|
|
8302
8303
|
'div',
|
|
8303
8304
|
{ className: 'multi-media-container' },
|
|
8304
|
-
|
|
8305
|
+
React.createElement(
|
|
8305
8306
|
Row$1,
|
|
8306
8307
|
{ noGutters: true },
|
|
8307
8308
|
medias.map(function (media) {
|
|
8308
|
-
return
|
|
8309
|
+
return React.createElement(
|
|
8309
8310
|
Col$1,
|
|
8310
8311
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8311
|
-
|
|
8312
|
+
React.createElement(
|
|
8312
8313
|
'a',
|
|
8313
8314
|
_extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8314
8315
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8315
|
-
|
|
8316
|
+
React.createElement(
|
|
8316
8317
|
'div',
|
|
8317
8318
|
{ className: 'multi-media-image-container' },
|
|
8318
|
-
imageBox &&
|
|
8319
|
+
imageBox && React.createElement(
|
|
8319
8320
|
LazyLoad,
|
|
8320
8321
|
{ once: true },
|
|
8321
|
-
|
|
8322
|
+
React.createElement(
|
|
8322
8323
|
'picture',
|
|
8323
8324
|
null,
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8325
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8326
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8327
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8328
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8328
8329
|
)
|
|
8329
8330
|
),
|
|
8330
|
-
media.caption &&
|
|
8331
|
+
media.caption && React.createElement(
|
|
8331
8332
|
'span',
|
|
8332
8333
|
{ className: 'multi-media-caption' },
|
|
8333
8334
|
media.caption
|
|
@@ -8337,7 +8338,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8337
8338
|
);
|
|
8338
8339
|
})
|
|
8339
8340
|
),
|
|
8340
|
-
|
|
8341
|
+
React.createElement(
|
|
8341
8342
|
'style',
|
|
8342
8343
|
{ jsx: 'true' },
|
|
8343
8344
|
'\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 '
|
|
@@ -8384,7 +8385,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8384
8385
|
}
|
|
8385
8386
|
};
|
|
8386
8387
|
|
|
8387
|
-
_this.wraperRef =
|
|
8388
|
+
_this.wraperRef = React.createRef();
|
|
8388
8389
|
_this.visible = false;
|
|
8389
8390
|
return _this;
|
|
8390
8391
|
}
|
|
@@ -8412,7 +8413,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8412
8413
|
_props$id = _props.id,
|
|
8413
8414
|
id = _props$id === undefined ? '' : _props$id;
|
|
8414
8415
|
|
|
8415
|
-
return
|
|
8416
|
+
return React.createElement(
|
|
8416
8417
|
'div',
|
|
8417
8418
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8418
8419
|
this.props.children
|
|
@@ -8421,7 +8422,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8421
8422
|
}]);
|
|
8422
8423
|
|
|
8423
8424
|
return InscreenSensor;
|
|
8424
|
-
}(
|
|
8425
|
+
}(React.Component);
|
|
8425
8426
|
|
|
8426
8427
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8427
8428
|
var nodes = _ref.nodes,
|
|
@@ -8530,33 +8531,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8530
8531
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8531
8532
|
var showReading = show ? 'showReading' : '';
|
|
8532
8533
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8533
|
-
return
|
|
8534
|
+
return React.createElement(
|
|
8534
8535
|
'div',
|
|
8535
8536
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8536
|
-
|
|
8537
|
+
React.createElement(
|
|
8537
8538
|
'a',
|
|
8538
8539
|
{ onClick: function onClick(e) {
|
|
8539
8540
|
return articleCardClickHandler(e);
|
|
8540
8541
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8541
|
-
|
|
8542
|
+
React.createElement(
|
|
8542
8543
|
'div',
|
|
8543
8544
|
{ className: 'prevNext-thumbnail' },
|
|
8544
|
-
|
|
8545
|
-
|
|
8545
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8546
|
+
React.createElement(
|
|
8546
8547
|
'div',
|
|
8547
8548
|
{ className: 'prevNext-reading ' + showReading },
|
|
8548
8549
|
articleLabel
|
|
8549
8550
|
)
|
|
8550
8551
|
),
|
|
8551
|
-
|
|
8552
|
+
React.createElement(
|
|
8552
8553
|
'div',
|
|
8553
8554
|
{ className: 'prevNext-summary' },
|
|
8554
|
-
|
|
8555
|
+
React.createElement(
|
|
8555
8556
|
'div',
|
|
8556
8557
|
{ className: 'prevNext-publishDate' },
|
|
8557
8558
|
moment(article.published).format('LL')
|
|
8558
8559
|
),
|
|
8559
|
-
|
|
8560
|
+
React.createElement(
|
|
8560
8561
|
'h2',
|
|
8561
8562
|
{ className: 'prevNext-title' },
|
|
8562
8563
|
article.title
|
|
@@ -8605,7 +8606,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8605
8606
|
|
|
8606
8607
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8607
8608
|
if (biography) {
|
|
8608
|
-
return
|
|
8609
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8609
8610
|
}
|
|
8610
8611
|
};
|
|
8611
8612
|
|
|
@@ -8691,7 +8692,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8691
8692
|
//console.log('useLayoutEffect')
|
|
8692
8693
|
if (!firstLoad) {
|
|
8693
8694
|
setUpArrowClicked(false);
|
|
8694
|
-
if (
|
|
8695
|
+
if (main_40) {
|
|
8695
8696
|
grabLoadedAds();
|
|
8696
8697
|
} else {
|
|
8697
8698
|
scrollToArticle();
|
|
@@ -8715,7 +8716,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8715
8716
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8716
8717
|
if (pageview) pageview(path);
|
|
8717
8718
|
|
|
8718
|
-
if (!
|
|
8719
|
+
if (!main_40) {
|
|
8719
8720
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8720
8721
|
if (window.googletag && googletag.pubadsReady) {
|
|
8721
8722
|
lib_3.refresh();
|
|
@@ -8723,7 +8724,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8723
8724
|
});
|
|
8724
8725
|
}
|
|
8725
8726
|
//Refresh leaderboard ad on mobile
|
|
8726
|
-
if (
|
|
8727
|
+
if (main_40) {
|
|
8727
8728
|
var leaderboardSlotId = '';
|
|
8728
8729
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8729
8730
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8763,38 +8764,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8763
8764
|
setSensorVisible(false);
|
|
8764
8765
|
};
|
|
8765
8766
|
|
|
8766
|
-
return
|
|
8767
|
-
|
|
8767
|
+
return React.createElement(
|
|
8768
|
+
React.Fragment,
|
|
8768
8769
|
null,
|
|
8769
|
-
|
|
8770
|
+
React.createElement(
|
|
8770
8771
|
'div',
|
|
8771
8772
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8772
|
-
|
|
8773
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8773
8774
|
return handleArrowClick();
|
|
8774
8775
|
} })
|
|
8775
8776
|
),
|
|
8776
|
-
|
|
8777
|
-
|
|
8777
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8778
|
+
React.createElement(
|
|
8778
8779
|
'div',
|
|
8779
8780
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8780
|
-
|
|
8781
|
+
React.createElement(
|
|
8781
8782
|
'h5',
|
|
8782
8783
|
{ className: 'objective-title' },
|
|
8783
8784
|
nodes.seriesTitle
|
|
8784
8785
|
),
|
|
8785
|
-
|
|
8786
|
+
React.createElement(
|
|
8786
8787
|
'div',
|
|
8787
8788
|
{ className: 'prevNextWrapper' },
|
|
8788
8789
|
PrevNextCards(false, -1)
|
|
8789
8790
|
)
|
|
8790
8791
|
),
|
|
8791
|
-
|
|
8792
|
-
|
|
8792
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8793
|
+
React.createElement(
|
|
8793
8794
|
'div',
|
|
8794
8795
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8795
|
-
|
|
8796
|
+
main_40 && Ads.map(function (ad, index) {
|
|
8796
8797
|
if (index === 0) {
|
|
8797
|
-
return
|
|
8798
|
+
return React.createElement(
|
|
8798
8799
|
'div',
|
|
8799
8800
|
{
|
|
8800
8801
|
key: 'addid-1',
|
|
@@ -8814,14 +8815,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8814
8815
|
}
|
|
8815
8816
|
})
|
|
8816
8817
|
),
|
|
8817
|
-
|
|
8818
|
+
React.createElement(
|
|
8818
8819
|
'div',
|
|
8819
8820
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8820
8821
|
Articles.map(function (article, index) {
|
|
8821
|
-
return
|
|
8822
|
+
return React.createElement(
|
|
8822
8823
|
'div',
|
|
8823
8824
|
{ key: article.title },
|
|
8824
|
-
|
|
8825
|
+
React.createElement(
|
|
8825
8826
|
InscreenSensor,
|
|
8826
8827
|
{
|
|
8827
8828
|
visible: sensorVisible,
|
|
@@ -8839,84 +8840,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8839
8840
|
}
|
|
8840
8841
|
}
|
|
8841
8842
|
} },
|
|
8842
|
-
|
|
8843
|
+
React.createElement(
|
|
8843
8844
|
Head,
|
|
8844
8845
|
null,
|
|
8845
|
-
currentTitle !== null &&
|
|
8846
|
+
currentTitle !== null && React.createElement(
|
|
8846
8847
|
'title',
|
|
8847
8848
|
{ key: 'title' },
|
|
8848
8849
|
currentTitle
|
|
8849
8850
|
),
|
|
8850
|
-
currentSummary !== null &&
|
|
8851
|
-
currentURL !== null &&
|
|
8852
|
-
currentTitle !== null &&
|
|
8853
|
-
currentThumbnail !== null &&
|
|
8854
|
-
currentSummary !== null &&
|
|
8855
|
-
currentTitle !== null &&
|
|
8856
|
-
currentThumbnail !== null &&
|
|
8857
|
-
currentSummary !== null &&
|
|
8851
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8852
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8853
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8854
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8855
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8856
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8857
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8858
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8858
8859
|
),
|
|
8859
|
-
|
|
8860
|
+
React.createElement(
|
|
8860
8861
|
'article',
|
|
8861
8862
|
{ className: 'article-wrapper' },
|
|
8862
|
-
|
|
8863
|
+
React.createElement(
|
|
8863
8864
|
'div',
|
|
8864
8865
|
{ className: 'article-publishDate' },
|
|
8865
8866
|
moment(article.published).format('LL')
|
|
8866
8867
|
),
|
|
8867
|
-
|
|
8868
|
+
React.createElement(
|
|
8868
8869
|
'div',
|
|
8869
8870
|
{ className: 'author-details-wrapper' },
|
|
8870
8871
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8871
|
-
return
|
|
8872
|
+
return React.createElement(
|
|
8872
8873
|
'span',
|
|
8873
8874
|
{ key: index },
|
|
8874
8875
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8875
8876
|
);
|
|
8876
8877
|
})
|
|
8877
8878
|
),
|
|
8878
|
-
|
|
8879
|
+
React.createElement(
|
|
8879
8880
|
'h2',
|
|
8880
8881
|
{ className: 'article-title' },
|
|
8881
8882
|
article.title
|
|
8882
8883
|
),
|
|
8883
|
-
|
|
8884
|
+
React.createElement(
|
|
8884
8885
|
'div',
|
|
8885
8886
|
{ className: 'mt-2 mb-2' },
|
|
8886
|
-
|
|
8887
|
+
React.createElement(BlockContent, _extends({
|
|
8887
8888
|
serializers: getSerializers,
|
|
8888
8889
|
videoAccountIDs: accountIDs,
|
|
8889
8890
|
blocks: article.text,
|
|
8890
8891
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8891
8892
|
}, client.config())),
|
|
8892
|
-
|
|
8893
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8893
8894
|
),
|
|
8894
|
-
Articles.length > 1 &&
|
|
8895
|
-
|
|
8895
|
+
Articles.length > 1 && React.createElement(
|
|
8896
|
+
React.Fragment,
|
|
8896
8897
|
null,
|
|
8897
|
-
|
|
8898
|
+
React.createElement(
|
|
8898
8899
|
'div',
|
|
8899
8900
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8900
|
-
|
|
8901
|
+
React.createElement(
|
|
8901
8902
|
'h5',
|
|
8902
8903
|
{ className: 'objective-title' },
|
|
8903
8904
|
nodes.seriesTitle
|
|
8904
8905
|
),
|
|
8905
|
-
|
|
8906
|
+
React.createElement(
|
|
8906
8907
|
'div',
|
|
8907
8908
|
{ className: 'prevNextWrapper' },
|
|
8908
8909
|
PrevNextCards(true, index)
|
|
8909
8910
|
)
|
|
8910
8911
|
),
|
|
8911
|
-
|
|
8912
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8912
8913
|
)
|
|
8913
8914
|
),
|
|
8914
|
-
|
|
8915
|
+
React.createElement(
|
|
8915
8916
|
'div',
|
|
8916
8917
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8917
|
-
|
|
8918
|
+
main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8918
8919
|
if (innerIndex === 0) {
|
|
8919
|
-
return
|
|
8920
|
+
return React.createElement(
|
|
8920
8921
|
'div',
|
|
8921
8922
|
{
|
|
8922
8923
|
key: 'addid-' + (index + 2),
|
|
@@ -8939,7 +8940,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8939
8940
|
)
|
|
8940
8941
|
);
|
|
8941
8942
|
}),
|
|
8942
|
-
|
|
8943
|
+
React.createElement(
|
|
8943
8944
|
'style',
|
|
8944
8945
|
{ jsx: 'true' },
|
|
8945
8946
|
'\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 '
|
|
@@ -8969,11 +8970,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8969
8970
|
};
|
|
8970
8971
|
}, [handleClickOutside]);
|
|
8971
8972
|
|
|
8972
|
-
return
|
|
8973
|
+
return React.createElement(
|
|
8973
8974
|
'div',
|
|
8974
8975
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8975
|
-
|
|
8976
|
-
|
|
8976
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8977
|
+
React.createElement(
|
|
8977
8978
|
'style',
|
|
8978
8979
|
{ jsx: 'true' },
|
|
8979
8980
|
'\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 '
|
|
@@ -8987,7 +8988,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8987
8988
|
}
|
|
8988
8989
|
};
|
|
8989
8990
|
|
|
8990
|
-
var FigureImage
|
|
8991
|
+
var FigureImage = React.memo(function (_ref2) {
|
|
8991
8992
|
var node = _ref2.node,
|
|
8992
8993
|
client = _ref2.client,
|
|
8993
8994
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8995,13 +8996,13 @@ var FigureImage$1 = React__default.memo(function (_ref2) {
|
|
|
8995
8996
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8996
8997
|
|
|
8997
8998
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8998
|
-
return
|
|
8999
|
+
return React.createElement(
|
|
8999
9000
|
'picture',
|
|
9000
9001
|
null,
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
|
|
9002
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9003
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9004
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9005
|
+
React.createElement('img', _extends({
|
|
9005
9006
|
style: figureImageStyle,
|
|
9006
9007
|
className: 'figure-image',
|
|
9007
9008
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9052,30 +9053,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9052
9053
|
|
|
9053
9054
|
var renderTooltip = function renderTooltip(props) {
|
|
9054
9055
|
if (infoBox[0].title) {
|
|
9055
|
-
return
|
|
9056
|
+
return React.createElement(
|
|
9056
9057
|
Popover,
|
|
9057
9058
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9058
|
-
|
|
9059
|
+
React.createElement(
|
|
9059
9060
|
Popover.Title,
|
|
9060
9061
|
{ as: 'h3' },
|
|
9061
9062
|
infoBox[0].title
|
|
9062
9063
|
),
|
|
9063
|
-
|
|
9064
|
+
React.createElement(
|
|
9064
9065
|
Popover.Content,
|
|
9065
9066
|
null,
|
|
9066
|
-
|
|
9067
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9067
9068
|
)
|
|
9068
9069
|
);
|
|
9069
9070
|
} else {
|
|
9070
|
-
return
|
|
9071
|
+
return React.createElement(
|
|
9071
9072
|
Tooltip,
|
|
9072
9073
|
_extends({ id: 'button-tooltip' }, props),
|
|
9073
|
-
|
|
9074
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9074
9075
|
);
|
|
9075
9076
|
}
|
|
9076
9077
|
};
|
|
9077
9078
|
|
|
9078
|
-
var FigureImageWOverLay =
|
|
9079
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9079
9080
|
var node = _ref3.node,
|
|
9080
9081
|
client = _ref3.client,
|
|
9081
9082
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9083,32 +9084,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9083
9084
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9084
9085
|
|
|
9085
9086
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9086
|
-
var triggerAction =
|
|
9087
|
-
var placementLocation =
|
|
9088
|
-
return
|
|
9087
|
+
var triggerAction = main_39 ? 'click' : 'hover';
|
|
9088
|
+
var placementLocation = main_39 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9089
|
+
return React.createElement(
|
|
9089
9090
|
'picture',
|
|
9090
9091
|
null,
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9092
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9093
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9094
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9095
|
+
main_39 && link ? React.createElement('img', _extends({
|
|
9095
9096
|
style: figureImageStyle,
|
|
9096
9097
|
className: 'figure-image',
|
|
9097
9098
|
src: urlFor({ source: node, client: client }),
|
|
9098
9099
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9099
|
-
}, !link && !
|
|
9100
|
+
}, !link && !main_39 && {
|
|
9100
9101
|
onClick: function onClick() {
|
|
9101
9102
|
return handleClickFigure(node, client);
|
|
9102
9103
|
}
|
|
9103
|
-
})) :
|
|
9104
|
+
})) : React.createElement(
|
|
9104
9105
|
OverlayTrigger,
|
|
9105
9106
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9106
|
-
|
|
9107
|
+
React.createElement('img', _extends({
|
|
9107
9108
|
style: figureImageStyle,
|
|
9108
9109
|
className: 'figure-image',
|
|
9109
9110
|
src: urlFor({ source: node, client: client }),
|
|
9110
9111
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9111
|
-
}, !link && !
|
|
9112
|
+
}, !link && !main_39 && {
|
|
9112
9113
|
onClick: function onClick() {
|
|
9113
9114
|
return handleClickFigure(node, client);
|
|
9114
9115
|
}
|
|
@@ -9157,13 +9158,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9157
9158
|
|
|
9158
9159
|
var FigureCaption = useCallback(function () {
|
|
9159
9160
|
if (imgcaption && imgcaption.length > 0) {
|
|
9160
|
-
return
|
|
9161
|
+
return React.createElement(
|
|
9161
9162
|
'div',
|
|
9162
9163
|
{ className: 'figure-caption' },
|
|
9163
|
-
|
|
9164
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9164
9165
|
);
|
|
9165
9166
|
} else if (caption) {
|
|
9166
|
-
return
|
|
9167
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9167
9168
|
} else return null;
|
|
9168
9169
|
}, [caption, imgcaption]);
|
|
9169
9170
|
|
|
@@ -9180,24 +9181,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9180
9181
|
setShowLightbox(true);
|
|
9181
9182
|
}, [node, client]);
|
|
9182
9183
|
|
|
9183
|
-
return
|
|
9184
|
-
|
|
9184
|
+
return React.createElement(
|
|
9185
|
+
React.Fragment,
|
|
9185
9186
|
null,
|
|
9186
|
-
infoBox.length >= 1 ?
|
|
9187
|
+
infoBox.length >= 1 ? React.createElement(
|
|
9187
9188
|
Figure$2,
|
|
9188
9189
|
{ className: '' + class_name, style: figureStyle },
|
|
9189
|
-
link ?
|
|
9190
|
+
link ? React.createElement(
|
|
9190
9191
|
'a',
|
|
9191
9192
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
) :
|
|
9195
|
-
|
|
9193
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9194
|
+
React.createElement(FigureCaption, null)
|
|
9195
|
+
) : React.createElement(
|
|
9196
|
+
React.Fragment,
|
|
9196
9197
|
null,
|
|
9197
|
-
|
|
9198
|
-
|
|
9198
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9199
|
+
React.createElement(FigureCaption, null)
|
|
9199
9200
|
),
|
|
9200
|
-
|
|
9201
|
+
React.createElement(LightBox, {
|
|
9201
9202
|
showLightbox: showLightbox,
|
|
9202
9203
|
lightboxImgSrc: lightboxImgSrc,
|
|
9203
9204
|
closeLightbox: function closeLightbox() {
|
|
@@ -9205,21 +9206,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9205
9206
|
setShowLightbox(false);
|
|
9206
9207
|
}
|
|
9207
9208
|
})
|
|
9208
|
-
) :
|
|
9209
|
+
) : React.createElement(
|
|
9209
9210
|
Figure$2,
|
|
9210
9211
|
{ className: '' + class_name, style: figureStyle },
|
|
9211
|
-
link ?
|
|
9212
|
+
link ? React.createElement(
|
|
9212
9213
|
'a',
|
|
9213
9214
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
) :
|
|
9217
|
-
|
|
9215
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9216
|
+
React.createElement(FigureCaption, null)
|
|
9217
|
+
) : React.createElement(
|
|
9218
|
+
React.Fragment,
|
|
9218
9219
|
null,
|
|
9219
|
-
|
|
9220
|
-
|
|
9220
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9221
|
+
React.createElement(FigureCaption, null)
|
|
9221
9222
|
),
|
|
9222
|
-
|
|
9223
|
+
React.createElement(LightBox, {
|
|
9223
9224
|
showLightbox: showLightbox,
|
|
9224
9225
|
lightboxImgSrc: lightboxImgSrc,
|
|
9225
9226
|
closeLightbox: function closeLightbox() {
|
|
@@ -9228,7 +9229,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9228
9229
|
}
|
|
9229
9230
|
})
|
|
9230
9231
|
),
|
|
9231
|
-
|
|
9232
|
+
React.createElement(
|
|
9232
9233
|
'style',
|
|
9233
9234
|
{ jsx: 'true' },
|
|
9234
9235
|
'\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 '
|
|
@@ -9236,7 +9237,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9236
9237
|
);
|
|
9237
9238
|
};
|
|
9238
9239
|
|
|
9239
|
-
var Figure =
|
|
9240
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9240
9241
|
|
|
9241
9242
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9242
9243
|
useEffect(function () {
|
|
@@ -9253,7 +9254,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9253
9254
|
}, [ref]);
|
|
9254
9255
|
}
|
|
9255
9256
|
|
|
9256
|
-
var FigureImage =
|
|
9257
|
+
var FigureImage$1 = React.memo(function (_ref) {
|
|
9257
9258
|
var imagesCount = _ref.imagesCount,
|
|
9258
9259
|
image = _ref.image,
|
|
9259
9260
|
client = _ref.client,
|
|
@@ -9261,13 +9262,13 @@ var FigureImage = React__default.memo(function (_ref) {
|
|
|
9261
9262
|
link = _ref.link,
|
|
9262
9263
|
handleClickFigure = _ref.handleClickFigure;
|
|
9263
9264
|
|
|
9264
|
-
return
|
|
9265
|
+
return React.createElement(
|
|
9265
9266
|
'picture',
|
|
9266
9267
|
null,
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9268
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9269
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9270
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9271
|
+
React.createElement('img', _extends({
|
|
9271
9272
|
'images-count': imagesCount,
|
|
9272
9273
|
className: 'multi-figure-image',
|
|
9273
9274
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9304,13 +9305,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9304
9305
|
imgcaption = _ref2.imgcaption;
|
|
9305
9306
|
|
|
9306
9307
|
if (imgcaption && imgcaption.length > 0) {
|
|
9307
|
-
return
|
|
9308
|
+
return React.createElement(
|
|
9308
9309
|
'div',
|
|
9309
9310
|
{ className: 'multi-figure-caption' },
|
|
9310
|
-
|
|
9311
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9311
9312
|
);
|
|
9312
9313
|
} else if (caption) {
|
|
9313
|
-
return
|
|
9314
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9314
9315
|
} else return null;
|
|
9315
9316
|
};
|
|
9316
9317
|
|
|
@@ -9319,7 +9320,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9319
9320
|
setOpenImg(true);
|
|
9320
9321
|
}, [client]);
|
|
9321
9322
|
|
|
9322
|
-
var FigureImageWOverLay =
|
|
9323
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9323
9324
|
var imagesCount = _ref3.imagesCount,
|
|
9324
9325
|
image = _ref3.image,
|
|
9325
9326
|
client = _ref3.client,
|
|
@@ -9327,32 +9328,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9327
9328
|
link = _ref3.link,
|
|
9328
9329
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9329
9330
|
|
|
9330
|
-
var triggerAction =
|
|
9331
|
-
var placementLocation =
|
|
9332
|
-
return
|
|
9331
|
+
var triggerAction = main_39 ? 'click' : 'hover';
|
|
9332
|
+
var placementLocation = main_39 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9333
|
+
return React.createElement(
|
|
9333
9334
|
'picture',
|
|
9334
9335
|
null,
|
|
9335
|
-
|
|
9336
|
-
|
|
9337
|
-
|
|
9338
|
-
|
|
9336
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9337
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9338
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9339
|
+
main_39 && link ? React.createElement('img', _extends({
|
|
9339
9340
|
'images-count': imagesCount,
|
|
9340
9341
|
className: 'multi-figure-image',
|
|
9341
9342
|
src: urlFor({ source: image, client: client }),
|
|
9342
9343
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9343
|
-
}, !link && !
|
|
9344
|
+
}, !link && !main_39 && {
|
|
9344
9345
|
onClick: function onClick() {
|
|
9345
9346
|
return handleClickFigure(image, client);
|
|
9346
9347
|
}
|
|
9347
|
-
})) :
|
|
9348
|
+
})) : React.createElement(
|
|
9348
9349
|
OverlayTrigger,
|
|
9349
9350
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9350
|
-
|
|
9351
|
+
React.createElement('img', _extends({
|
|
9351
9352
|
'images-count': imagesCount,
|
|
9352
9353
|
className: 'multi-figure-image',
|
|
9353
9354
|
src: urlFor({ source: image, client: client }),
|
|
9354
9355
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9355
|
-
}, !link && !
|
|
9356
|
+
}, !link && !main_39 && {
|
|
9356
9357
|
onClick: function onClick() {
|
|
9357
9358
|
return handleClickFigure(image, client);
|
|
9358
9359
|
}
|
|
@@ -9363,102 +9364,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9363
9364
|
|
|
9364
9365
|
var renderTooltip = function renderTooltip(image) {
|
|
9365
9366
|
if (image.infoBox[0].title) {
|
|
9366
|
-
return
|
|
9367
|
+
return React.createElement(
|
|
9367
9368
|
Popover,
|
|
9368
9369
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9369
|
-
|
|
9370
|
+
React.createElement(
|
|
9370
9371
|
Popover.Title,
|
|
9371
9372
|
{ as: 'h3' },
|
|
9372
9373
|
image.infoBox[0].title
|
|
9373
9374
|
),
|
|
9374
|
-
|
|
9375
|
+
React.createElement(
|
|
9375
9376
|
Popover.Content,
|
|
9376
9377
|
null,
|
|
9377
|
-
|
|
9378
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9378
9379
|
)
|
|
9379
9380
|
);
|
|
9380
9381
|
} else {
|
|
9381
|
-
return
|
|
9382
|
+
return React.createElement(
|
|
9382
9383
|
Tooltip,
|
|
9383
9384
|
_extends({ id: 'button-tooltip' }, props),
|
|
9384
|
-
|
|
9385
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9385
9386
|
);
|
|
9386
9387
|
}
|
|
9387
9388
|
};
|
|
9388
9389
|
|
|
9389
9390
|
if (images && images.length > 0) {
|
|
9390
|
-
return
|
|
9391
|
+
return React.createElement(
|
|
9391
9392
|
'div',
|
|
9392
9393
|
{ className: 'multi-figure-container' },
|
|
9393
|
-
|
|
9394
|
+
React.createElement(
|
|
9394
9395
|
Row$1,
|
|
9395
9396
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9396
9397
|
images.map(function (image, index) {
|
|
9397
9398
|
if (image.infoBox) {
|
|
9398
|
-
return
|
|
9399
|
+
return React.createElement(
|
|
9399
9400
|
Col$1,
|
|
9400
9401
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9401
|
-
image.link ?
|
|
9402
|
+
image.link ? React.createElement(
|
|
9402
9403
|
'a',
|
|
9403
9404
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9404
|
-
|
|
9405
|
+
React.createElement(
|
|
9405
9406
|
'div',
|
|
9406
9407
|
{ className: 'multi-figure-image-container' },
|
|
9407
|
-
|
|
9408
|
+
React.createElement(
|
|
9408
9409
|
LazyLoad,
|
|
9409
9410
|
{ once: true },
|
|
9410
|
-
|
|
9411
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9411
9412
|
),
|
|
9412
|
-
|
|
9413
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9413
9414
|
)
|
|
9414
|
-
) :
|
|
9415
|
+
) : React.createElement(
|
|
9415
9416
|
'div',
|
|
9416
9417
|
{ className: 'multi-figure-image-container' },
|
|
9417
|
-
|
|
9418
|
+
React.createElement(
|
|
9418
9419
|
LazyLoad,
|
|
9419
9420
|
{ once: true },
|
|
9420
|
-
|
|
9421
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9421
9422
|
),
|
|
9422
|
-
|
|
9423
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9423
9424
|
)
|
|
9424
9425
|
);
|
|
9425
9426
|
} else {
|
|
9426
|
-
return
|
|
9427
|
+
return React.createElement(
|
|
9427
9428
|
Col$1,
|
|
9428
9429
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9429
|
-
image.link ?
|
|
9430
|
+
image.link ? React.createElement(
|
|
9430
9431
|
'a',
|
|
9431
9432
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9432
|
-
|
|
9433
|
+
React.createElement(
|
|
9433
9434
|
'div',
|
|
9434
9435
|
{ className: 'multi-figure-image-container' },
|
|
9435
|
-
|
|
9436
|
+
React.createElement(
|
|
9436
9437
|
LazyLoad,
|
|
9437
9438
|
{ once: true },
|
|
9438
|
-
|
|
9439
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9439
9440
|
),
|
|
9440
|
-
|
|
9441
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9441
9442
|
)
|
|
9442
|
-
) :
|
|
9443
|
+
) : React.createElement(
|
|
9443
9444
|
'div',
|
|
9444
9445
|
{ className: 'multi-figure-image-container' },
|
|
9445
|
-
|
|
9446
|
+
React.createElement(
|
|
9446
9447
|
LazyLoad,
|
|
9447
9448
|
{ once: true },
|
|
9448
|
-
|
|
9449
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9449
9450
|
),
|
|
9450
|
-
|
|
9451
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9451
9452
|
)
|
|
9452
9453
|
);
|
|
9453
9454
|
}
|
|
9454
9455
|
})
|
|
9455
9456
|
),
|
|
9456
|
-
|
|
9457
|
+
React.createElement(
|
|
9457
9458
|
'div',
|
|
9458
9459
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9459
|
-
|
|
9460
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9460
9461
|
),
|
|
9461
|
-
|
|
9462
|
+
React.createElement(
|
|
9462
9463
|
'style',
|
|
9463
9464
|
{ jsx: 'true' },
|
|
9464
9465
|
'\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 '
|
|
@@ -9507,23 +9508,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9507
9508
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9508
9509
|
}, []);
|
|
9509
9510
|
|
|
9510
|
-
return
|
|
9511
|
-
|
|
9511
|
+
return React.createElement(
|
|
9512
|
+
React.Fragment,
|
|
9512
9513
|
null,
|
|
9513
|
-
|
|
9514
|
+
React.createElement(
|
|
9514
9515
|
Head,
|
|
9515
9516
|
null,
|
|
9516
|
-
|
|
9517
|
+
React.createElement('script', {
|
|
9517
9518
|
dangerouslySetInnerHTML: {
|
|
9518
9519
|
__html: 'history.scrollRestoration = "manual"'
|
|
9519
9520
|
}
|
|
9520
9521
|
})
|
|
9521
9522
|
),
|
|
9522
|
-
|
|
9523
|
+
React.createElement(
|
|
9523
9524
|
'div',
|
|
9524
9525
|
{ id: elementId },
|
|
9525
|
-
|
|
9526
|
-
|
|
9526
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9527
|
+
React.createElement(
|
|
9527
9528
|
'style',
|
|
9528
9529
|
{ jsx: 'true' },
|
|
9529
9530
|
'\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 '
|
|
@@ -9532,258 +9533,6 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9532
9533
|
);
|
|
9533
9534
|
};
|
|
9534
9535
|
|
|
9535
|
-
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9536
|
-
|
|
9537
|
-
exports.__esModule = true;
|
|
9538
|
-
|
|
9539
|
-
exports.default = function (obj, keys) {
|
|
9540
|
-
var target = {};
|
|
9541
|
-
|
|
9542
|
-
for (var i in obj) {
|
|
9543
|
-
if (keys.indexOf(i) >= 0) continue;
|
|
9544
|
-
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9545
|
-
target[i] = obj[i];
|
|
9546
|
-
}
|
|
9547
|
-
|
|
9548
|
-
return target;
|
|
9549
|
-
};
|
|
9550
|
-
});
|
|
9551
|
-
|
|
9552
|
-
unwrapExports(objectWithoutProperties);
|
|
9553
|
-
|
|
9554
|
-
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9555
|
-
|
|
9556
|
-
exports.__esModule = true;
|
|
9557
|
-
|
|
9558
|
-
|
|
9559
|
-
|
|
9560
|
-
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9561
|
-
|
|
9562
|
-
|
|
9563
|
-
|
|
9564
|
-
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
|
|
9568
|
-
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
9569
|
-
|
|
9570
|
-
|
|
9571
|
-
|
|
9572
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
9573
|
-
|
|
9574
|
-
|
|
9575
|
-
|
|
9576
|
-
var _inherits3 = _interopRequireDefault(inherits);
|
|
9577
|
-
|
|
9578
|
-
|
|
9579
|
-
|
|
9580
|
-
var _react2 = _interopRequireDefault(React__default);
|
|
9581
|
-
|
|
9582
|
-
|
|
9583
|
-
|
|
9584
|
-
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
9585
|
-
|
|
9586
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9587
|
-
var noop = function noop() {};
|
|
9588
|
-
|
|
9589
|
-
var ScriptTag = function (_Component) {
|
|
9590
|
-
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9591
|
-
|
|
9592
|
-
ScriptTag.removeNode = function removeNode(node) {
|
|
9593
|
-
if (node) {
|
|
9594
|
-
node.parentNode.removeChild(node);
|
|
9595
|
-
}
|
|
9596
|
-
};
|
|
9597
|
-
|
|
9598
|
-
function ScriptTag(props, context) {
|
|
9599
|
-
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9600
|
-
|
|
9601
|
-
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9602
|
-
|
|
9603
|
-
_this.domRef = null;
|
|
9604
|
-
_this.state = {
|
|
9605
|
-
isHydrated: props.isHydrating,
|
|
9606
|
-
additionalNode: null,
|
|
9607
|
-
removeAdditionalNode: null
|
|
9608
|
-
};
|
|
9609
|
-
return _this;
|
|
9610
|
-
}
|
|
9611
|
-
|
|
9612
|
-
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9613
|
-
var _props = this.props,
|
|
9614
|
-
onError = _props.onError,
|
|
9615
|
-
onLoad = _props.onLoad,
|
|
9616
|
-
nonce = _props.nonce;
|
|
9617
|
-
|
|
9618
|
-
// Create a new HTML script element
|
|
9619
|
-
|
|
9620
|
-
var newElement = document.createElement("script");
|
|
9621
|
-
|
|
9622
|
-
// Copy all attribute values
|
|
9623
|
-
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9624
|
-
var attr = this.domRef.attributes[i];
|
|
9625
|
-
if (attr.nodeName === 'nonce') {
|
|
9626
|
-
// The browser clears the nonce value - grab from props
|
|
9627
|
-
newElement.setAttribute(attr.nodeName, nonce);
|
|
9628
|
-
} else {
|
|
9629
|
-
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9630
|
-
}
|
|
9631
|
-
}
|
|
9632
|
-
|
|
9633
|
-
// Copy the inner script
|
|
9634
|
-
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9635
|
-
newElement.innerHTML = this.domRef.innerHTML;
|
|
9636
|
-
}
|
|
9637
|
-
|
|
9638
|
-
// Bind event listeners
|
|
9639
|
-
newElement.addEventListener('load', onLoad);
|
|
9640
|
-
newElement.addEventListener('error', onError);
|
|
9641
|
-
|
|
9642
|
-
// Append the new script tag
|
|
9643
|
-
this.domRef.parentNode.appendChild(newElement);
|
|
9644
|
-
return newElement;
|
|
9645
|
-
};
|
|
9646
|
-
|
|
9647
|
-
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9648
|
-
var isHydrated = this.state.isHydrated;
|
|
9649
|
-
|
|
9650
|
-
if (isHydrated) {
|
|
9651
|
-
// was rendered on server, don't replace elements when hydrating
|
|
9652
|
-
return;
|
|
9653
|
-
}
|
|
9654
|
-
|
|
9655
|
-
this.setState({
|
|
9656
|
-
additionalNode: this.appendAdditionalElement(),
|
|
9657
|
-
removeAdditionalNode: null
|
|
9658
|
-
});
|
|
9659
|
-
};
|
|
9660
|
-
|
|
9661
|
-
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9662
|
-
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9663
|
-
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9664
|
-
|
|
9665
|
-
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9666
|
-
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9667
|
-
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9668
|
-
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9669
|
-
// This really complicates the component - for now we'll leave it as is.
|
|
9670
|
-
var _props2 = this.props,
|
|
9671
|
-
src = _props2.src,
|
|
9672
|
-
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9673
|
-
|
|
9674
|
-
if (src && src === nextProps.src) {
|
|
9675
|
-
// The 'src' attribute has not changed
|
|
9676
|
-
return;
|
|
9677
|
-
}
|
|
9678
|
-
|
|
9679
|
-
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9680
|
-
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9681
|
-
return;
|
|
9682
|
-
}
|
|
9683
|
-
|
|
9684
|
-
this.setState({
|
|
9685
|
-
removeAdditionalNode: this.state.additionalNode,
|
|
9686
|
-
additionalNode: null
|
|
9687
|
-
});
|
|
9688
|
-
};
|
|
9689
|
-
|
|
9690
|
-
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9691
|
-
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9692
|
-
};
|
|
9693
|
-
|
|
9694
|
-
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9695
|
-
var _state = this.state,
|
|
9696
|
-
additionalNode = _state.additionalNode,
|
|
9697
|
-
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9698
|
-
|
|
9699
|
-
if (additionalNode === null) {
|
|
9700
|
-
this.setState({
|
|
9701
|
-
additionalNode: this.appendAdditionalElement()
|
|
9702
|
-
});
|
|
9703
|
-
}
|
|
9704
|
-
|
|
9705
|
-
if (removeAdditionalNode !== null) {
|
|
9706
|
-
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9707
|
-
this.setState({
|
|
9708
|
-
removeAdditionalNode: null
|
|
9709
|
-
});
|
|
9710
|
-
}
|
|
9711
|
-
};
|
|
9712
|
-
|
|
9713
|
-
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9714
|
-
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9715
|
-
ScriptTag.removeNode(this.state.additionalNode);
|
|
9716
|
-
};
|
|
9717
|
-
|
|
9718
|
-
ScriptTag.prototype.render = function render() {
|
|
9719
|
-
var _this2 = this;
|
|
9720
|
-
|
|
9721
|
-
var additionalNode = this.state.additionalNode;
|
|
9722
|
-
|
|
9723
|
-
if (additionalNode !== null) {
|
|
9724
|
-
return null;
|
|
9725
|
-
}
|
|
9726
|
-
|
|
9727
|
-
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9728
|
-
// eslint-disable-next-line no-unused-vars
|
|
9729
|
-
var _props3 = this.props;
|
|
9730
|
-
_props3.isHydrating;
|
|
9731
|
-
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9732
|
-
|
|
9733
|
-
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9734
|
-
return _this2.domRef = tag;
|
|
9735
|
-
} }));
|
|
9736
|
-
};
|
|
9737
|
-
|
|
9738
|
-
return ScriptTag;
|
|
9739
|
-
}(React__default.Component);
|
|
9740
|
-
|
|
9741
|
-
ScriptTag.propTypes = {
|
|
9742
|
-
/**
|
|
9743
|
-
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9744
|
-
*/
|
|
9745
|
-
isHydrating: _propTypes2.default.bool,
|
|
9746
|
-
|
|
9747
|
-
// Standard <script> tag props
|
|
9748
|
-
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9749
|
-
crossOrigin: _propTypes2.default.string,
|
|
9750
|
-
defer: _propTypes2.default.bool,
|
|
9751
|
-
integrity: _propTypes2.default.string,
|
|
9752
|
-
nonce: _propTypes2.default.string,
|
|
9753
|
-
src: _propTypes2.default.string,
|
|
9754
|
-
text: _propTypes2.default.string,
|
|
9755
|
-
type: _propTypes2.default.string,
|
|
9756
|
-
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9757
|
-
|
|
9758
|
-
// globals
|
|
9759
|
-
onError: _propTypes2.default.func,
|
|
9760
|
-
onLoad: _propTypes2.default.func
|
|
9761
|
-
};
|
|
9762
|
-
ScriptTag.defaultProps = {
|
|
9763
|
-
isHydrating: false,
|
|
9764
|
-
onError: noop,
|
|
9765
|
-
onLoad: noop
|
|
9766
|
-
};
|
|
9767
|
-
exports.default = ScriptTag;
|
|
9768
|
-
});
|
|
9769
|
-
|
|
9770
|
-
unwrapExports(ScriptTag_1);
|
|
9771
|
-
|
|
9772
|
-
var lib = createCommonjsModule(function (module, exports) {
|
|
9773
|
-
|
|
9774
|
-
exports.__esModule = true;
|
|
9775
|
-
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
9779
|
-
|
|
9780
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9781
|
-
|
|
9782
|
-
exports.default = _ScriptTag2.default;
|
|
9783
|
-
});
|
|
9784
|
-
|
|
9785
|
-
var ScriptTag = unwrapExports(lib);
|
|
9786
|
-
|
|
9787
9536
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
9788
9537
|
|
|
9789
9538
|
var FormAssembly = function FormAssembly(props) {
|
|
@@ -9815,11 +9564,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9815
9564
|
}, []);
|
|
9816
9565
|
|
|
9817
9566
|
if (iframeSrc) {
|
|
9818
|
-
return
|
|
9567
|
+
return React.createElement(
|
|
9819
9568
|
'section',
|
|
9820
9569
|
{ className: 'form-assembly' },
|
|
9821
|
-
|
|
9822
|
-
|
|
9570
|
+
React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9571
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9823
9572
|
);
|
|
9824
9573
|
}
|
|
9825
9574
|
|
|
@@ -9856,27 +9605,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9856
9605
|
return window.removeEventListener('resize', handleResize);
|
|
9857
9606
|
};
|
|
9858
9607
|
}, []);
|
|
9859
|
-
return
|
|
9608
|
+
return React.createElement(
|
|
9860
9609
|
'div',
|
|
9861
9610
|
{ className: 'blockTableHolder', ref: holder },
|
|
9862
|
-
|
|
9611
|
+
React.createElement(
|
|
9863
9612
|
'div',
|
|
9864
9613
|
{ className: 'blockTable' },
|
|
9865
9614
|
rows && rows.map(function (row) {
|
|
9866
|
-
return
|
|
9615
|
+
return React.createElement(
|
|
9867
9616
|
'div',
|
|
9868
9617
|
{ className: 'blockTableRow' },
|
|
9869
9618
|
row.cells && row.cells.map(function (cell) {
|
|
9870
|
-
return
|
|
9619
|
+
return React.createElement(
|
|
9871
9620
|
'div',
|
|
9872
9621
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9873
|
-
|
|
9622
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9874
9623
|
);
|
|
9875
9624
|
})
|
|
9876
9625
|
);
|
|
9877
9626
|
})
|
|
9878
9627
|
),
|
|
9879
|
-
|
|
9628
|
+
React.createElement(
|
|
9880
9629
|
'style',
|
|
9881
9630
|
{ jsx: true },
|
|
9882
9631
|
'\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 '
|
|
@@ -9963,12 +9712,12 @@ var getSerializers = function getSerializers() {
|
|
|
9963
9712
|
var node = _ref.node;
|
|
9964
9713
|
var url = node.url;
|
|
9965
9714
|
|
|
9966
|
-
return
|
|
9715
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9967
9716
|
},
|
|
9968
9717
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9969
9718
|
var node = _ref2.node;
|
|
9970
9719
|
|
|
9971
|
-
return
|
|
9720
|
+
return React.createElement(YouTubeGallery, {
|
|
9972
9721
|
nodes: node,
|
|
9973
9722
|
article: article,
|
|
9974
9723
|
meta: meta,
|
|
@@ -9982,7 +9731,7 @@ var getSerializers = function getSerializers() {
|
|
|
9982
9731
|
articleSeries: function articleSeries(_ref3) {
|
|
9983
9732
|
var node = _ref3.node;
|
|
9984
9733
|
|
|
9985
|
-
return
|
|
9734
|
+
return React.createElement(ArticleSeries, {
|
|
9986
9735
|
nodes: node,
|
|
9987
9736
|
accountIDs: videoAccountIDs || {},
|
|
9988
9737
|
pageview: pageview,
|
|
@@ -9995,61 +9744,61 @@ var getSerializers = function getSerializers() {
|
|
|
9995
9744
|
figure: function figure(_ref4) {
|
|
9996
9745
|
var node = _ref4.node;
|
|
9997
9746
|
|
|
9998
|
-
return
|
|
9747
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9999
9748
|
},
|
|
10000
9749
|
multifigure: function multifigure(_ref5) {
|
|
10001
9750
|
var node = _ref5.node;
|
|
10002
9751
|
|
|
10003
|
-
return
|
|
9752
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10004
9753
|
},
|
|
10005
9754
|
slideshow: function slideshow(_ref6) {
|
|
10006
9755
|
var node = _ref6.node;
|
|
10007
9756
|
var slides = node.slides;
|
|
10008
9757
|
|
|
10009
|
-
return
|
|
9758
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
10010
9759
|
},
|
|
10011
9760
|
sidebar: function sidebar(_ref7) {
|
|
10012
9761
|
var node = _ref7.node;
|
|
10013
9762
|
var caption = node.caption,
|
|
10014
9763
|
content = node.content;
|
|
10015
9764
|
|
|
10016
|
-
return
|
|
9765
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
10017
9766
|
},
|
|
10018
9767
|
datatable: function datatable(_ref8) {
|
|
10019
9768
|
var node = _ref8.node;
|
|
10020
9769
|
var table = node.table;
|
|
10021
9770
|
|
|
10022
|
-
return
|
|
9771
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
10023
9772
|
},
|
|
10024
9773
|
media: function media(_ref9) {
|
|
10025
9774
|
var node = _ref9.node;
|
|
10026
9775
|
|
|
10027
|
-
return
|
|
9776
|
+
return React.createElement(Media, { node: node, client: client });
|
|
10028
9777
|
},
|
|
10029
9778
|
iframe: function iframe(_ref10) {
|
|
10030
9779
|
var node = _ref10.node;
|
|
10031
9780
|
|
|
10032
|
-
return
|
|
9781
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10033
9782
|
},
|
|
10034
9783
|
video: function video(_ref11) {
|
|
10035
9784
|
var node = _ref11.node;
|
|
10036
9785
|
|
|
10037
|
-
return
|
|
9786
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
|
|
10038
9787
|
},
|
|
10039
9788
|
audio: function audio(_ref12) {
|
|
10040
9789
|
var node = _ref12.node;
|
|
10041
9790
|
|
|
10042
|
-
return
|
|
9791
|
+
return React.createElement(Audio, { node: node });
|
|
10043
9792
|
},
|
|
10044
9793
|
poll: function poll(_ref13) {
|
|
10045
9794
|
var node = _ref13.node;
|
|
10046
9795
|
|
|
10047
|
-
return
|
|
9796
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10048
9797
|
},
|
|
10049
9798
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10050
9799
|
var node = _ref14.node;
|
|
10051
9800
|
|
|
10052
|
-
return
|
|
9801
|
+
return React.createElement(Poll$1, {
|
|
10053
9802
|
node: node,
|
|
10054
9803
|
client: client,
|
|
10055
9804
|
pageview: pageview,
|
|
@@ -10063,35 +9812,35 @@ var getSerializers = function getSerializers() {
|
|
|
10063
9812
|
var node = _ref15.node;
|
|
10064
9813
|
var quizzes = node.quizzes;
|
|
10065
9814
|
|
|
10066
|
-
return
|
|
9815
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10067
9816
|
},
|
|
10068
9817
|
leads: function leads(_ref16) {
|
|
10069
9818
|
var node = _ref16.node;
|
|
10070
9819
|
var leadID = node.leadID;
|
|
10071
9820
|
|
|
10072
9821
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10073
|
-
return
|
|
9822
|
+
return React.createElement(Leads, { url: url });
|
|
10074
9823
|
},
|
|
10075
9824
|
slideshows: function slideshows(_ref17) {
|
|
10076
9825
|
var node = _ref17.node;
|
|
10077
9826
|
|
|
10078
|
-
return
|
|
9827
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10079
9828
|
},
|
|
10080
9829
|
nativeAd: function nativeAd(_ref18) {
|
|
10081
9830
|
var node = _ref18.node;
|
|
10082
9831
|
|
|
10083
|
-
return
|
|
9832
|
+
return React.createElement(NativeAd, { node: node });
|
|
10084
9833
|
},
|
|
10085
9834
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10086
9835
|
var node = _ref19.node;
|
|
10087
9836
|
|
|
10088
|
-
return
|
|
9837
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10089
9838
|
},
|
|
10090
9839
|
hrtag: function hrtag() {
|
|
10091
|
-
return
|
|
9840
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10092
9841
|
},
|
|
10093
9842
|
brtag: function brtag() {
|
|
10094
|
-
return
|
|
9843
|
+
return React.createElement('br', { className: 'line-break' });
|
|
10095
9844
|
},
|
|
10096
9845
|
formstack: function formstack(_ref20) {
|
|
10097
9846
|
var node = _ref20.node;
|
|
@@ -10099,29 +9848,29 @@ var getSerializers = function getSerializers() {
|
|
|
10099
9848
|
Caption = node.Caption,
|
|
10100
9849
|
needSegmentSupport = node.needSegmentSupport;
|
|
10101
9850
|
|
|
10102
|
-
return
|
|
9851
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10103
9852
|
},
|
|
10104
9853
|
formassembly: FormAssembly,
|
|
10105
9854
|
multimedia: function multimedia(_ref21) {
|
|
10106
9855
|
var node = _ref21.node;
|
|
10107
9856
|
|
|
10108
|
-
return
|
|
9857
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
10109
9858
|
},
|
|
10110
9859
|
blockTable: function blockTable(_ref22) {
|
|
10111
9860
|
var node = _ref22.node;
|
|
10112
|
-
return
|
|
9861
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10113
9862
|
}
|
|
10114
9863
|
},
|
|
10115
9864
|
marks: {
|
|
10116
9865
|
superscript: function superscript(props) {
|
|
10117
|
-
return
|
|
9866
|
+
return React.createElement(
|
|
10118
9867
|
'sup',
|
|
10119
9868
|
null,
|
|
10120
9869
|
props.children
|
|
10121
9870
|
);
|
|
10122
9871
|
},
|
|
10123
9872
|
subscript: function subscript(props) {
|
|
10124
|
-
return
|
|
9873
|
+
return React.createElement(
|
|
10125
9874
|
'sub',
|
|
10126
9875
|
null,
|
|
10127
9876
|
props.children
|
|
@@ -10138,7 +9887,7 @@ var getSerializers = function getSerializers() {
|
|
|
10138
9887
|
if (href && href.charAt(0) === '#') {
|
|
10139
9888
|
var elementId = href.slice(1);
|
|
10140
9889
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10141
|
-
return
|
|
9890
|
+
return React.createElement(
|
|
10142
9891
|
'a',
|
|
10143
9892
|
{ onClick: function onClick() {
|
|
10144
9893
|
return ScrollToElement(elementId);
|
|
@@ -10148,7 +9897,7 @@ var getSerializers = function getSerializers() {
|
|
|
10148
9897
|
}
|
|
10149
9898
|
|
|
10150
9899
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10151
|
-
return href ?
|
|
9900
|
+
return href ? React.createElement(
|
|
10152
9901
|
'a',
|
|
10153
9902
|
_extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10154
9903
|
children
|
|
@@ -10156,7 +9905,7 @@ var getSerializers = function getSerializers() {
|
|
|
10156
9905
|
},
|
|
10157
9906
|
alignleft: function alignleft(_ref23) {
|
|
10158
9907
|
var children = _ref23.children;
|
|
10159
|
-
return
|
|
9908
|
+
return React.createElement(
|
|
10160
9909
|
'div',
|
|
10161
9910
|
{ style: { textAlign: 'left' } },
|
|
10162
9911
|
children
|
|
@@ -10164,7 +9913,7 @@ var getSerializers = function getSerializers() {
|
|
|
10164
9913
|
},
|
|
10165
9914
|
alignright: function alignright(_ref24) {
|
|
10166
9915
|
var children = _ref24.children;
|
|
10167
|
-
return
|
|
9916
|
+
return React.createElement(
|
|
10168
9917
|
'div',
|
|
10169
9918
|
{ style: { textAlign: 'right' } },
|
|
10170
9919
|
children
|
|
@@ -10172,7 +9921,7 @@ var getSerializers = function getSerializers() {
|
|
|
10172
9921
|
},
|
|
10173
9922
|
aligncenter: function aligncenter(_ref25) {
|
|
10174
9923
|
var children = _ref25.children;
|
|
10175
|
-
return
|
|
9924
|
+
return React.createElement(
|
|
10176
9925
|
'div',
|
|
10177
9926
|
{ style: { textAlign: 'center' } },
|
|
10178
9927
|
children
|
|
@@ -10180,7 +9929,7 @@ var getSerializers = function getSerializers() {
|
|
|
10180
9929
|
},
|
|
10181
9930
|
alignjustify: function alignjustify(_ref26) {
|
|
10182
9931
|
var children = _ref26.children;
|
|
10183
|
-
return
|
|
9932
|
+
return React.createElement(
|
|
10184
9933
|
'div',
|
|
10185
9934
|
{ style: { textAlign: 'justify' } },
|
|
10186
9935
|
children
|
|
@@ -10190,7 +9939,7 @@ var getSerializers = function getSerializers() {
|
|
|
10190
9939
|
var children = props.children,
|
|
10191
9940
|
color = props.mark.color;
|
|
10192
9941
|
|
|
10193
|
-
return
|
|
9942
|
+
return React.createElement(
|
|
10194
9943
|
'span',
|
|
10195
9944
|
{ style: { color: color ? color.hex : null } },
|
|
10196
9945
|
children
|