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