@mjhls/mjh-framework 1.0.983 → 1.0.984
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +21 -22
- package/dist/cjs/AD300x250x600.js +21 -22
- package/dist/cjs/AD728x90.js +24 -25
- package/dist/cjs/ADFloatingFooter.js +20 -21
- package/dist/cjs/ADFooter.js +4 -4
- package/dist/cjs/ADGutter.js +20 -21
- package/dist/cjs/{ADInfeed-81006615.js → ADInfeed-b54f0bda.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-0db07099.js → ADlgInfeed-4f0850ec.js} +4 -4
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +19 -20
- package/dist/cjs/AdSlotsProvider.js +11 -12
- package/dist/cjs/AlgoliaSearch.js +31 -14178
- package/dist/cjs/AlphabeticList.js +8 -8
- package/dist/cjs/ArticleCarousel.js +13 -13
- package/dist/cjs/ArticleProgramLandingPage.js +50 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +29 -30
- package/dist/cjs/ArticleSeriesListing.js +30 -31
- package/dist/cjs/Auth.js +346 -482
- package/dist/cjs/AuthWrapper.js +13 -1766
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-17e1c62b.js} +1 -1
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-8b494587.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +6 -6
- package/dist/cjs/CMEDeck.js +22 -23
- package/dist/cjs/Column2.js +14 -14
- package/dist/cjs/Column3.js +30 -31
- package/dist/cjs/ConferenceArticleCard.js +10 -10
- package/dist/cjs/ContentCardPaginated.js +37 -38
- package/dist/cjs/DeckContent.js +31 -32
- package/dist/cjs/DeckQueue.js +29 -30
- package/dist/cjs/DeckQueuePaginated.js +33 -34
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-bcaa7e3f.js} +12 -13
- package/dist/cjs/EventsDeck.js +26 -26
- package/dist/cjs/ExternalResources.js +47 -47
- package/dist/cjs/Feature.js +7 -7
- package/dist/cjs/ForbesHero.js +10 -10
- package/dist/cjs/GridContent.js +45 -46
- package/dist/cjs/GridContentPaginated.js +46 -47
- package/dist/cjs/GridHero.js +11 -11
- package/dist/cjs/GroupDeck.js +12 -12
- package/dist/cjs/HamMagazine.js +27 -27
- package/dist/cjs/HealthCareProfessionalModal.js +2 -2
- package/dist/cjs/Hero.js +7 -7
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +48 -48
- 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 +56 -56
- package/dist/cjs/LeftNav.js +19 -20
- package/dist/cjs/MasterDeck.js +30 -31
- package/dist/cjs/MasterDeckPaginated.js +33 -34
- package/dist/cjs/{MediaSeriesCard-958db77e.js → MediaSeriesCard-408eaac7.js} +799 -1002
- package/dist/cjs/MediaSeriesLanding.js +51 -52
- package/dist/cjs/MediaSeriesLandingPaginated.js +57 -58
- package/dist/cjs/NavDvm.js +11 -11
- package/dist/cjs/NavMagazine.js +29 -29
- package/dist/cjs/NavNative.js +30 -30
- package/dist/cjs/OncliveHero.js +7 -7
- package/dist/cjs/OncliveLargeHero.js +11 -11
- package/dist/cjs/PageFilter.js +4 -4
- package/dist/cjs/{Pagination-1e0d5f1d.js → Pagination-7624a3bd.js} +3 -3
- package/dist/cjs/PartnerDetailListing.js +62 -63
- package/dist/cjs/PartnerDetailListingPaginated.js +62 -63
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PixelTracking.js +7 -7
- package/dist/cjs/PopUpModal.js +4 -4
- package/dist/cjs/PtceDeck.js +10 -10
- package/dist/cjs/PubSection.js +32 -33
- package/dist/cjs/PubToc.js +6 -6
- package/dist/cjs/PublicationDeck.js +11 -11
- package/dist/cjs/{PublicationFeature-5ccf9b13.js → PublicationFeature-6f89fb97.js} +2 -2
- package/dist/cjs/PublicationLanding.js +27 -31
- package/dist/cjs/QueueDeckExpanded.js +35 -36
- package/dist/cjs/QueueDeckExpandedPaginated.js +38 -39
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +10 -10
- package/dist/cjs/Schema.js +10 -10
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +17 -18
- package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-08699353.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +13 -13
- package/dist/cjs/{SocialSearchComponent-b7faaedc.js → SocialSearchComponent-af6ddcc0.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +12 -12
- package/dist/cjs/TaxonomyDescription.js +46 -46
- 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 +52 -52
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +35 -36
- package/dist/cjs/VideoSeriesListing.js +30 -31
- package/dist/cjs/View.js +118 -117
- package/dist/cjs/YahooHero.js +13 -13
- package/dist/cjs/YoutubeGroup.js +17 -17
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{defineProperty-9673846a.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-df1aed86.js → entities-310b46ee.js} +1 -5
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{extends-7c86182f.js → extends-7df78678.js} +7 -8
- package/dist/cjs/faundadb.js +5 -5
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getPtceActivities.js +4 -4
- package/dist/cjs/getRelatedArticle.js +68 -132
- package/dist/cjs/getRootDocGroup.js +4 -4
- package/dist/cjs/getSerializers.js +46 -46
- package/dist/cjs/{getTargeting-3c5754ac.js → getTargeting-1359b868.js} +2 -2
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-fc2f1ca2.js → index-44481153.js} +488 -42
- package/dist/cjs/{index-fbf4dd38.js → index-7deba8d6.js} +166 -415
- 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.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 +145 -147
- package/dist/cjs/{inherits-de66ea16.js → inherits-420ee86f.js} +18 -21
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- package/dist/cjs/{lodash-f0783643.js → lodash-7fd85bcf.js} +10 -58
- package/dist/cjs/main-7b5e57b0.js +898 -0
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-ec08d471.js} +34 -34
- package/dist/cjs/urlFor.js +4 -4
- package/dist/cjs/{urlForFile-29d3815a.js → urlForFile-ad96158c.js} +1 -1
- package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{util-93a37fd0.js → util-f2c1b65b.js} +1 -12
- package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +24 -25
- package/dist/esm/AD300x250x600.js +24 -25
- package/dist/esm/AD728x90.js +27 -28
- package/dist/esm/ADFloatingFooter.js +26 -27
- package/dist/esm/ADFooter.js +9 -9
- package/dist/esm/ADGutter.js +26 -27
- package/dist/esm/{ADInfeed-6d1fc6bf.js → ADInfeed-310d113c.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-dc36c928.js → ADlgInfeed-eeaa14e2.js} +8 -8
- package/dist/esm/AccordionPanel.js +22 -22
- package/dist/esm/AdSlot.js +22 -23
- package/dist/esm/AdSlotsProvider.js +12 -13
- package/dist/esm/AlgoliaSearch.js +55 -14202
- package/dist/esm/AlphabeticList.js +20 -20
- package/dist/esm/ArticleCarousel.js +16 -16
- package/dist/esm/ArticleProgramLandingPage.js +56 -56
- package/dist/esm/ArticleSeriesLandingPage.js +35 -36
- package/dist/esm/ArticleSeriesListing.js +54 -55
- package/dist/esm/Auth.js +417 -553
- package/dist/esm/AuthWrapper.js +26 -1780
- package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-b0a47123.js} +11 -11
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-d05b5b23.js} +35 -35
- package/dist/esm/Breadcrumbs.js +15 -15
- package/dist/esm/CMEDeck.js +77 -78
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +25 -25
- package/dist/esm/Column3.js +49 -50
- package/dist/esm/ConferenceArticleCard.js +23 -23
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/ContentCardPaginated.js +72 -73
- package/dist/esm/DeckContent.js +76 -77
- package/dist/esm/DeckQueue.js +70 -71
- package/dist/esm/DeckQueuePaginated.js +63 -64
- package/dist/esm/{Dfp-102f0beb.js → Dfp-e151d2de.js} +20 -21
- package/dist/esm/EventsDeck.js +86 -86
- package/dist/esm/ExternalResources.js +73 -73
- package/dist/esm/Feature.js +21 -21
- package/dist/esm/ForbesHero.js +33 -33
- package/dist/esm/GridContent.js +145 -146
- package/dist/esm/GridContentPaginated.js +133 -134
- package/dist/esm/GridHero.js +35 -35
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +8 -8
- package/dist/esm/HealthCareProfessionalModal.js +12 -12
- package/dist/esm/Hero.js +13 -13
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +70 -70
- package/dist/esm/HorizontalHero.js +26 -26
- package/dist/esm/ImageSlider-5ae6287a.js +1375 -0
- package/dist/esm/IssueContentDeck.js +48 -48
- package/dist/esm/IssueDeck.js +45 -45
- package/dist/esm/IssueLanding.js +64 -64
- package/dist/esm/LeftNav.js +32 -33
- package/dist/esm/MasterDeck.js +63 -64
- package/dist/esm/MasterDeckPaginated.js +55 -56
- package/dist/esm/{MediaSeriesCard-4279b0c5.js → MediaSeriesCard-ae83cba2.js} +799 -1002
- package/dist/esm/MediaSeriesLanding.js +76 -77
- package/dist/esm/MediaSeriesLandingPaginated.js +80 -81
- package/dist/esm/NavDvm.js +54 -54
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +111 -111
- package/dist/esm/NavNative.js +101 -101
- package/dist/esm/OncliveHero.js +19 -19
- package/dist/esm/OncliveLargeHero.js +58 -58
- package/dist/esm/PageFilter.js +10 -10
- package/dist/esm/{Pagination-cd21f8c2.js → Pagination-1e09918f.js} +13 -13
- package/dist/esm/PartnerDetailListing.js +97 -98
- package/dist/esm/PartnerDetailListingPaginated.js +93 -94
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PixelTracking.js +16 -16
- package/dist/esm/PopUpModal.js +12 -12
- package/dist/esm/PtceDeck.js +23 -23
- 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-0379cc20.js} +23 -23
- package/dist/esm/PublicationLanding.js +74 -78
- package/dist/esm/QueueDeckExpanded.js +273 -274
- package/dist/esm/QueueDeckExpandedPaginated.js +253 -254
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +23 -23
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Schema.js +12 -12
- package/dist/esm/Search.js +10 -10
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +30 -31
- package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-b364d074.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +30 -30
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-4b56cd8c.js → SocialSearchComponent-77a22145.js} +33 -33
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +44 -44
- package/dist/esm/TaxonomyDescription.js +50 -50
- 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 +64 -64
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +40 -41
- package/dist/esm/VideoSeriesListing.js +70 -71
- package/dist/esm/View.js +321 -320
- package/dist/esm/YahooHero.js +33 -33
- package/dist/esm/YoutubeGroup.js +48 -48
- package/dist/esm/{_is-array-8d21b9e3.js → _is-array-31d40a83.js} +6 -6
- package/dist/esm/{_iter-detect-98db3b07.js → _iter-detect-72edfd60.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-4201ccf6.js} +1 -1
- package/dist/esm/{_object-to-array-2300e51b.js → _object-to-array-fa0feeff.js} +2 -2
- package/dist/esm/{asyncToGenerator-958ef5fc.js → asyncToGenerator-9c835201.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-8c71f470.js} +36 -36
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/define-property-a8a00786.js +18 -0
- package/dist/esm/{defineProperty-8c30428f.js → defineProperty-3518b6fe.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-7fbbe94e.js} +8 -8
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getPtceActivities.js +4 -4
- package/dist/esm/getRelatedArticle.js +69 -133
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +46 -46
- package/dist/esm/{getTargeting-42f9b439.js → getTargeting-260246fb.js} +2 -2
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-f0fc23eb.js → index-1819118a.js} +490 -44
- package/dist/esm/{index-3f5c03b2.js → index-51a80699.js} +6 -11
- package/dist/esm/{index-73f8a403.js → index-620826cb.js} +575 -825
- 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 +171 -173
- package/dist/esm/{inherits-a6ba2ec4.js → inherits-d26c739e.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/keys-5e9bd229.js +23 -0
- 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-99bcfd93.js} +12 -12
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-0c65d837.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-f7074d7c.js → toConsumableArray-47a5394a.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-e9fc0c5d.js → typeof-d92ed6e0.js} +34 -34
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{urlForFile-b69adffc.js → urlForFile-0fc42ed8.js} +1 -1
- package/dist/esm/{ustream-api-d3714624.js → ustream-api-cbba615a.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-406140e0.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ImageSlider-6c00b878.js +0 -2813
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-50be6759.js +0 -105
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/ImageSlider-f84174cb.js +0 -2804
- package/dist/esm/define-property-5f1bda73.js +0 -18
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-98ca9cec.js +0 -100
- package/dist/esm/keys-31dcdb31.js +0 -23
- 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,46 +1,47 @@
|
|
|
1
|
-
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
2
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
|
|
3
|
-
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button as Button$1, ProgressBar } from 'react-bootstrap';
|
|
4
|
-
import urlFor from './urlFor.js';
|
|
5
|
-
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
6
|
-
import Router, { useRouter } from 'next/router';
|
|
7
|
-
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
-
import {
|
|
11
|
-
import './
|
|
2
|
+
import { _ as _export, a as _core } from './core.get-iterator-method-8c71f470.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-47a5394a.js';
|
|
4
|
+
import { _ as _extends } from './extends-7fbbe94e.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-d26c739e.js';
|
|
6
|
+
import { _ as _typeof$1 } from './typeof-d92ed6e0.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-99bcfd93.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 { _ as _JSON$stringify } from './stringify-0c65d837.js';
|
|
20
|
+
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-9c835201.js';
|
|
12
21
|
import Segment from './Segment.js';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
|
|
16
|
-
import { u as urlForFile } from './urlForFile-b69adffc.js';
|
|
17
|
-
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
18
|
-
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
|
|
19
|
-
import { _ as _typeof$1 } from './typeof-e9fc0c5d.js';
|
|
20
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
|
|
21
|
-
import { _ as _JSON$stringify } from './stringify-2b084bee.js';
|
|
22
|
-
import Modal from 'react-bootstrap/Modal';
|
|
22
|
+
import './Beam.js';
|
|
23
|
+
import DFPAdSlot from './AdSlot.js';
|
|
23
24
|
import Button from 'react-bootstrap/Button';
|
|
25
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
26
|
+
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
27
|
+
import GroupDeck from './GroupDeck.js';
|
|
28
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button as Button$1, ProgressBar } from 'react-bootstrap';
|
|
29
|
+
import { c as IoIosArrowDropupCircle } from './index.esm-55f22b35.js';
|
|
30
|
+
import { u as util } from './util-7700fc59.js';
|
|
31
|
+
import { u as urlForFile } from './urlForFile-0fc42ed8.js';
|
|
32
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
|
|
33
|
+
import Modal from 'react-bootstrap/Modal';
|
|
24
34
|
import Form from 'react-bootstrap/Form';
|
|
25
35
|
import ReactGA from 'react-ga';
|
|
26
|
-
import
|
|
27
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
36
|
+
import Head from 'next/head';
|
|
28
37
|
import SocialShare from './SocialShare.js';
|
|
29
|
-
import { _ as
|
|
30
|
-
import { _ as _objectToArray } from './_object-to-array-2300e51b.js';
|
|
31
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
|
|
38
|
+
import { _ as _objectToArray } from './_object-to-array-fa0feeff.js';
|
|
32
39
|
import Pagination from 'react-bootstrap/Pagination';
|
|
33
|
-
import { h as html_decode_1 } from './entities-6d9154b4.js';
|
|
34
|
-
import DFPAdSlot from './AdSlot.js';
|
|
35
|
-
import Row$1 from 'react-bootstrap/Row';
|
|
36
|
-
import Col$1 from 'react-bootstrap/Col';
|
|
37
|
-
import Head from 'next/head';
|
|
38
|
-
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';
|
|
39
|
-
import { c as IoIosArrowDropupCircle } from './index.esm-eb1e8e80.js';
|
|
40
40
|
import Figure$2 from 'react-bootstrap/Figure';
|
|
41
41
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
42
42
|
import Tooltip from 'react-bootstrap/Tooltip';
|
|
43
43
|
import Popover from 'react-bootstrap/Popover';
|
|
44
|
+
import ScriptTag from 'react-script-tag';
|
|
44
45
|
|
|
45
46
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
46
47
|
var pageNumber = selectedIndex + 1;
|
|
@@ -48,7 +49,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
48
49
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
49
50
|
};
|
|
50
51
|
|
|
51
|
-
var Slideshow
|
|
52
|
+
var Slideshow = function Slideshow(_ref) {
|
|
52
53
|
var slides = _ref.slides,
|
|
53
54
|
client = _ref.client,
|
|
54
55
|
pageview = _ref.pageview;
|
|
@@ -75,27 +76,27 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
75
76
|
if (pageview) pageview(router.asPath);
|
|
76
77
|
}, [router]);
|
|
77
78
|
|
|
78
|
-
return
|
|
79
|
+
return React.createElement(
|
|
79
80
|
'div',
|
|
80
81
|
{ className: 'mt-3 mb-3' },
|
|
81
|
-
|
|
82
|
+
React.createElement(
|
|
82
83
|
Carousel,
|
|
83
84
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
84
85
|
return onChangeSlide(selectedIndex, router);
|
|
85
86
|
}, interval: null },
|
|
86
87
|
slides && slides.map(function (slide) {
|
|
87
|
-
return
|
|
88
|
+
return React.createElement(
|
|
88
89
|
Carousel.Item,
|
|
89
90
|
{ key: slide._key },
|
|
90
|
-
|
|
91
|
+
React.createElement(
|
|
91
92
|
'picture',
|
|
92
93
|
null,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
95
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
96
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
97
|
+
React.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
97
98
|
),
|
|
98
|
-
slide.caption &&
|
|
99
|
+
slide.caption && React.createElement(
|
|
99
100
|
'p',
|
|
100
101
|
{ className: 'p-2' },
|
|
101
102
|
slide.caption
|
|
@@ -685,14 +686,14 @@ function coerce(val) {
|
|
|
685
686
|
return val;
|
|
686
687
|
}
|
|
687
688
|
});
|
|
688
|
-
debug.coerce;
|
|
689
|
-
debug.disable;
|
|
690
|
-
debug.enable;
|
|
691
|
-
debug.enabled;
|
|
692
|
-
debug.humanize;
|
|
693
|
-
debug.names;
|
|
694
|
-
debug.skips;
|
|
695
|
-
debug.formatters;
|
|
689
|
+
var debug_1 = debug.coerce;
|
|
690
|
+
var debug_2 = debug.disable;
|
|
691
|
+
var debug_3 = debug.enable;
|
|
692
|
+
var debug_4 = debug.enabled;
|
|
693
|
+
var debug_5 = debug.humanize;
|
|
694
|
+
var debug_6 = debug.names;
|
|
695
|
+
var debug_7 = debug.skips;
|
|
696
|
+
var debug_8 = debug.formatters;
|
|
696
697
|
|
|
697
698
|
var browser = createCommonjsModule(function (module, exports) {
|
|
698
699
|
/**
|
|
@@ -881,13 +882,13 @@ function localstorage() {
|
|
|
881
882
|
} catch (e) {}
|
|
882
883
|
}
|
|
883
884
|
});
|
|
884
|
-
browser.log;
|
|
885
|
-
browser.formatArgs;
|
|
886
|
-
browser.save;
|
|
887
|
-
browser.load;
|
|
888
|
-
browser.useColors;
|
|
889
|
-
browser.storage;
|
|
890
|
-
browser.colors;
|
|
885
|
+
var browser_1 = browser.log;
|
|
886
|
+
var browser_2 = browser.formatArgs;
|
|
887
|
+
var browser_3 = browser.save;
|
|
888
|
+
var browser_4 = browser.load;
|
|
889
|
+
var browser_5 = browser.useColors;
|
|
890
|
+
var browser_6 = browser.storage;
|
|
891
|
+
var browser_7 = browser.colors;
|
|
891
892
|
|
|
892
893
|
// MIT lisence
|
|
893
894
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1162,14 +1163,14 @@ function init (debug) {
|
|
|
1162
1163
|
|
|
1163
1164
|
exports.enable(load());
|
|
1164
1165
|
});
|
|
1165
|
-
node.init;
|
|
1166
|
-
node.log;
|
|
1167
|
-
node.formatArgs;
|
|
1168
|
-
node.save;
|
|
1169
|
-
node.load;
|
|
1170
|
-
node.useColors;
|
|
1171
|
-
node.colors;
|
|
1172
|
-
node.inspectOpts;
|
|
1166
|
+
var node_1 = node.init;
|
|
1167
|
+
var node_2 = node.log;
|
|
1168
|
+
var node_3 = node.formatArgs;
|
|
1169
|
+
var node_4 = node.save;
|
|
1170
|
+
var node_5 = node.load;
|
|
1171
|
+
var node_6 = node.useColors;
|
|
1172
|
+
var node_7 = node.colors;
|
|
1173
|
+
var node_8 = node.inspectOpts;
|
|
1173
1174
|
|
|
1174
1175
|
var src = createCommonjsModule(function (module) {
|
|
1175
1176
|
/**
|
|
@@ -1627,11 +1628,11 @@ function shouldUpdateVideo(prevProps, props) {
|
|
|
1627
1628
|
|
|
1628
1629
|
function filterResetOptions(opts) {
|
|
1629
1630
|
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1630
|
-
playerVars: _objectSpread({
|
|
1631
|
+
playerVars: _objectSpread(_objectSpread({}, opts.playerVars), {}, {
|
|
1631
1632
|
autoplay: 0,
|
|
1632
1633
|
start: 0,
|
|
1633
1634
|
end: 0
|
|
1634
|
-
}
|
|
1635
|
+
})
|
|
1635
1636
|
});
|
|
1636
1637
|
}
|
|
1637
1638
|
/**
|
|
@@ -1837,9 +1838,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1837
1838
|
}, {
|
|
1838
1839
|
key: "render",
|
|
1839
1840
|
value: function render() {
|
|
1840
|
-
return /*#__PURE__*/
|
|
1841
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1841
1842
|
className: this.props.containerClassName
|
|
1842
|
-
}, /*#__PURE__*/
|
|
1843
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1843
1844
|
id: this.props.id,
|
|
1844
1845
|
className: this.props.className,
|
|
1845
1846
|
ref: this.refContainer
|
|
@@ -1848,7 +1849,7 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1848
1849
|
}]);
|
|
1849
1850
|
|
|
1850
1851
|
return YouTube;
|
|
1851
|
-
}(
|
|
1852
|
+
}(React.Component);
|
|
1852
1853
|
|
|
1853
1854
|
_defineProperty(YouTube, "PlayerState", {
|
|
1854
1855
|
UNSTARTED: -1,
|
|
@@ -1933,7 +1934,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1933
1934
|
var queue = Math.floor(duration / 10);
|
|
1934
1935
|
var segment = Math.floor(current / queue);
|
|
1935
1936
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
1936
|
-
Segment.report_video_event('Video Ready',
|
|
1937
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1937
1938
|
};
|
|
1938
1939
|
|
|
1939
1940
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1944,7 +1945,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1944
1945
|
|
|
1945
1946
|
if (!queueProgress.includes(segment)) {
|
|
1946
1947
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
1947
|
-
Segment.report_video_event('Video Segment',
|
|
1948
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1948
1949
|
queueProgress.push(segment);
|
|
1949
1950
|
}
|
|
1950
1951
|
};
|
|
@@ -1958,7 +1959,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1958
1959
|
var segment = Math.floor(current / queue);
|
|
1959
1960
|
|
|
1960
1961
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
1961
|
-
Segment.report_video_event('Video Play',
|
|
1962
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1962
1963
|
|
|
1963
1964
|
if (!playReported) {
|
|
1964
1965
|
setPlayReported(true);
|
|
@@ -1978,7 +1979,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1978
1979
|
var segment = Math.floor(current / queue);
|
|
1979
1980
|
|
|
1980
1981
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
1981
|
-
Segment.report_video_event('Video End',
|
|
1982
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1982
1983
|
setEndReported(true);
|
|
1983
1984
|
clearInterval(intervalID);
|
|
1984
1985
|
}
|
|
@@ -1992,14 +1993,14 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1992
1993
|
var segment = Math.floor(current / queue);
|
|
1993
1994
|
|
|
1994
1995
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
1995
|
-
Segment.report_video_event('Video Pause',
|
|
1996
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1996
1997
|
};
|
|
1997
1998
|
|
|
1998
|
-
return
|
|
1999
|
+
return React.createElement(
|
|
1999
2000
|
'div',
|
|
2000
2001
|
{ id: 'fluid-video-container' },
|
|
2001
|
-
|
|
2002
|
-
|
|
2002
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2003
|
+
React.createElement(
|
|
2003
2004
|
'style',
|
|
2004
2005
|
{ jsx: 'true' },
|
|
2005
2006
|
'\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 '
|
|
@@ -2012,20 +2013,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2012
2013
|
content = _ref.content,
|
|
2013
2014
|
getSerializers = _ref.getSerializers;
|
|
2014
2015
|
|
|
2015
|
-
return
|
|
2016
|
+
return React.createElement(
|
|
2016
2017
|
'article',
|
|
2017
2018
|
{ className: 'sidebar' },
|
|
2018
|
-
|
|
2019
|
+
React.createElement(
|
|
2019
2020
|
'div',
|
|
2020
2021
|
null,
|
|
2021
|
-
|
|
2022
|
+
React.createElement(
|
|
2022
2023
|
'h3',
|
|
2023
2024
|
null,
|
|
2024
2025
|
caption
|
|
2025
2026
|
),
|
|
2026
|
-
|
|
2027
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2027
2028
|
),
|
|
2028
|
-
|
|
2029
|
+
React.createElement(
|
|
2029
2030
|
'style',
|
|
2030
2031
|
{ jsx: 'true' },
|
|
2031
2032
|
'\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 '
|
|
@@ -2036,18 +2037,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2036
2037
|
var TableShow = function TableShow(_ref) {
|
|
2037
2038
|
var rows = _ref.rows;
|
|
2038
2039
|
|
|
2039
|
-
return
|
|
2040
|
+
return React.createElement(
|
|
2040
2041
|
Table,
|
|
2041
2042
|
{ bordered: true, hover: true, responsive: true },
|
|
2042
|
-
|
|
2043
|
+
React.createElement(
|
|
2043
2044
|
'tbody',
|
|
2044
2045
|
null,
|
|
2045
2046
|
rows && rows.map(function (row) {
|
|
2046
|
-
return
|
|
2047
|
+
return React.createElement(
|
|
2047
2048
|
'tr',
|
|
2048
2049
|
{ key: row._key },
|
|
2049
2050
|
row.cells && row.cells.map(function (cell, index) {
|
|
2050
|
-
return cell &&
|
|
2051
|
+
return cell && React.createElement(
|
|
2051
2052
|
'td',
|
|
2052
2053
|
{ key: index },
|
|
2053
2054
|
cell
|
|
@@ -2145,25 +2146,25 @@ var Media = function Media(_ref) {
|
|
|
2145
2146
|
margin: imageMargin
|
|
2146
2147
|
};
|
|
2147
2148
|
|
|
2148
|
-
return
|
|
2149
|
+
return React.createElement(
|
|
2149
2150
|
Figure$1,
|
|
2150
2151
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2151
|
-
|
|
2152
|
+
React.createElement(
|
|
2152
2153
|
'a',
|
|
2153
2154
|
{ href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self' },
|
|
2154
|
-
|
|
2155
|
+
React.createElement(
|
|
2155
2156
|
LazyLoad,
|
|
2156
2157
|
{ once: true },
|
|
2157
|
-
|
|
2158
|
+
React.createElement(
|
|
2158
2159
|
'picture',
|
|
2159
2160
|
null,
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2161
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2162
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2163
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2164
|
+
React.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2164
2165
|
)
|
|
2165
2166
|
),
|
|
2166
|
-
caption &&
|
|
2167
|
+
caption && React.createElement(
|
|
2167
2168
|
Figure$1.Caption,
|
|
2168
2169
|
{ className: 'media-caption' },
|
|
2169
2170
|
caption
|
|
@@ -2171,7 +2172,7 @@ var Media = function Media(_ref) {
|
|
|
2171
2172
|
)
|
|
2172
2173
|
);
|
|
2173
2174
|
} else if (caption && caption !== '') {
|
|
2174
|
-
return
|
|
2175
|
+
return React.createElement(
|
|
2175
2176
|
'a',
|
|
2176
2177
|
_extends({}, uploadDoc.downloadMedia ? {
|
|
2177
2178
|
href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
|
|
@@ -2191,10 +2192,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2191
2192
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2192
2193
|
|
|
2193
2194
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2194
|
-
return
|
|
2195
|
+
return React.createElement(
|
|
2195
2196
|
'div',
|
|
2196
2197
|
{ className: 'd-block text-center mb-3' },
|
|
2197
|
-
|
|
2198
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2198
2199
|
);
|
|
2199
2200
|
};
|
|
2200
2201
|
|
|
@@ -2204,7 +2205,7 @@ var PopupMultiChoice = function PopupMultiChoice(_ref) {
|
|
|
2204
2205
|
handlePollAnswer = _ref.handlePollAnswer;
|
|
2205
2206
|
|
|
2206
2207
|
var choiceArray = choices.map(function (choice) {
|
|
2207
|
-
return
|
|
2208
|
+
return React.createElement(Form.Check, {
|
|
2208
2209
|
inline: true,
|
|
2209
2210
|
label: choice.choiceText,
|
|
2210
2211
|
value: choice.choiceText,
|
|
@@ -2214,19 +2215,19 @@ var PopupMultiChoice = function PopupMultiChoice(_ref) {
|
|
|
2214
2215
|
onClick: handlePollAnswer
|
|
2215
2216
|
});
|
|
2216
2217
|
});
|
|
2217
|
-
return
|
|
2218
|
+
return React.createElement(
|
|
2218
2219
|
'div',
|
|
2219
2220
|
{
|
|
2220
2221
|
key: 'inline-radio',
|
|
2221
2222
|
className: 'mb-3' },
|
|
2222
|
-
|
|
2223
|
+
React.createElement(
|
|
2223
2224
|
'h2',
|
|
2224
2225
|
{
|
|
2225
2226
|
className: 'radioLabelText'
|
|
2226
2227
|
},
|
|
2227
2228
|
question
|
|
2228
2229
|
),
|
|
2229
|
-
|
|
2230
|
+
React.createElement(
|
|
2230
2231
|
'div',
|
|
2231
2232
|
{
|
|
2232
2233
|
className: 'multiChoiceDiv'
|
|
@@ -2241,19 +2242,19 @@ var PopupPollTextInput = function PopupPollTextInput(_ref) {
|
|
|
2241
2242
|
textAnswer = _ref.textAnswer,
|
|
2242
2243
|
handleTextAnswer = _ref.handleTextAnswer;
|
|
2243
2244
|
|
|
2244
|
-
return
|
|
2245
|
+
return React.createElement(
|
|
2245
2246
|
'div',
|
|
2246
2247
|
{
|
|
2247
2248
|
className: 'textInputDiv'
|
|
2248
2249
|
},
|
|
2249
|
-
|
|
2250
|
+
React.createElement(
|
|
2250
2251
|
'h2',
|
|
2251
2252
|
{
|
|
2252
2253
|
className: 'textInputQuestion'
|
|
2253
2254
|
},
|
|
2254
2255
|
textInputQuestion
|
|
2255
2256
|
),
|
|
2256
|
-
|
|
2257
|
+
React.createElement(Form.Control, {
|
|
2257
2258
|
type: 'text',
|
|
2258
2259
|
className: 'textInput',
|
|
2259
2260
|
value: textAnswer,
|
|
@@ -2363,31 +2364,31 @@ var PopupPollModal = function PopupPollModal(props) {
|
|
|
2363
2364
|
var pollArray = [];
|
|
2364
2365
|
pollItems.forEach(function (item, ind) {
|
|
2365
2366
|
if (item.format === 'multiChoice') {
|
|
2366
|
-
pollArray.push(
|
|
2367
|
+
pollArray.push(React.createElement(PopupMultiChoice, { question: item.question, choices: item.choices, handlePollAnswer: handlePollAnswer, key: ind }));
|
|
2367
2368
|
}
|
|
2368
2369
|
if (item.format === 'textInput') {
|
|
2369
|
-
pollArray.push(
|
|
2370
|
+
pollArray.push(React.createElement(PopupPollTextInput, { textInputQuestion: item.question, textanswer: textAnswer, handleTextAnswer: handleTextAnswer, key: ind }));
|
|
2370
2371
|
}
|
|
2371
2372
|
});
|
|
2372
2373
|
|
|
2373
|
-
return
|
|
2374
|
+
return React.createElement(
|
|
2374
2375
|
'div',
|
|
2375
2376
|
{ className: 'modalDiv', id: 'modalDiv' },
|
|
2376
|
-
|
|
2377
|
+
React.createElement(
|
|
2377
2378
|
Modal.Dialog,
|
|
2378
2379
|
null,
|
|
2379
|
-
|
|
2380
|
+
React.createElement(
|
|
2380
2381
|
Modal.Body,
|
|
2381
2382
|
null,
|
|
2382
|
-
|
|
2383
|
+
React.createElement(
|
|
2383
2384
|
Form,
|
|
2384
2385
|
{ onSubmit: handleSubmit, className: 'modalForm' },
|
|
2385
2386
|
pollArray,
|
|
2386
|
-
textInputRender && !multiChoiceRender ?
|
|
2387
|
+
textInputRender && !multiChoiceRender ? React.createElement(
|
|
2387
2388
|
Button,
|
|
2388
2389
|
{ className: 'submitButton', type: 'submit', variant: 'success', disabled: !textAnswer },
|
|
2389
2390
|
'Submit'
|
|
2390
|
-
) :
|
|
2391
|
+
) : React.createElement(
|
|
2391
2392
|
Button,
|
|
2392
2393
|
{ className: 'submitButton', type: 'submit', variant: 'success', disabled: !pollAnswer },
|
|
2393
2394
|
'Submit'
|
|
@@ -2468,7 +2469,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2468
2469
|
var queue = Math.floor(duration / 10);
|
|
2469
2470
|
var segment = Math.floor(current / queue);
|
|
2470
2471
|
// Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
|
|
2471
|
-
Segment.report_video_event('Video Ready',
|
|
2472
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
2472
2473
|
};
|
|
2473
2474
|
|
|
2474
2475
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2478,7 +2479,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2478
2479
|
var segment = Math.floor(current / queue);
|
|
2479
2480
|
if (!queueProgress.includes(segment)) {
|
|
2480
2481
|
// Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
|
|
2481
|
-
Segment.report_video_event('Video Segment',
|
|
2482
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
2482
2483
|
queueProgress.push(segment);
|
|
2483
2484
|
}
|
|
2484
2485
|
};
|
|
@@ -2491,7 +2492,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2491
2492
|
var queue = Math.floor(duration / 10);
|
|
2492
2493
|
var segment = Math.floor(current / queue);
|
|
2493
2494
|
// Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
|
|
2494
|
-
Segment.report_video_event('Video Play',
|
|
2495
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
2495
2496
|
if (!playReported) {
|
|
2496
2497
|
event.persist();
|
|
2497
2498
|
setPlayReported(true);
|
|
@@ -2534,7 +2535,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2534
2535
|
var segment = Math.floor(current / queue);
|
|
2535
2536
|
clearInterval(intId);
|
|
2536
2537
|
// Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
|
|
2537
|
-
Segment.report_video_event('Video End',
|
|
2538
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
2538
2539
|
setEndReported(true);
|
|
2539
2540
|
clearInterval(intervalID);
|
|
2540
2541
|
}
|
|
@@ -2548,13 +2549,13 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2548
2549
|
var segment = Math.floor(current / queue);
|
|
2549
2550
|
clearInterval(intId);
|
|
2550
2551
|
// Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
|
|
2551
|
-
Segment.report_video_event('Video Pause',
|
|
2552
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2552
2553
|
};
|
|
2553
2554
|
|
|
2554
|
-
return
|
|
2555
|
+
return React.createElement(
|
|
2555
2556
|
'div',
|
|
2556
2557
|
null,
|
|
2557
|
-
isPollingTime ?
|
|
2558
|
+
isPollingTime ? React.createElement(PopupPollModal
|
|
2558
2559
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2559
2560
|
, { pollItems: pollItems
|
|
2560
2561
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -2568,7 +2569,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2568
2569
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2569
2570
|
, multiChoiceRender: multiChoiceRender
|
|
2570
2571
|
}) : null,
|
|
2571
|
-
vidLoaded &&
|
|
2572
|
+
vidLoaded && React.createElement(
|
|
2572
2573
|
'video',
|
|
2573
2574
|
{
|
|
2574
2575
|
poster: thumbnail || '',
|
|
@@ -2586,7 +2587,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2586
2587
|
onPlay: function onPlay(e) {
|
|
2587
2588
|
return handleOnPlay(e);
|
|
2588
2589
|
} },
|
|
2589
|
-
|
|
2590
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2590
2591
|
'Your browser does not support the video tag.'
|
|
2591
2592
|
)
|
|
2592
2593
|
);
|
|
@@ -2737,7 +2738,7 @@ var Video = function Video(_ref) {
|
|
|
2737
2738
|
}
|
|
2738
2739
|
|
|
2739
2740
|
// Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2740
|
-
Segment.report_video_event('Video Ready',
|
|
2741
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2741
2742
|
});
|
|
2742
2743
|
// let intId
|
|
2743
2744
|
// const convertTime = (timeStr) => {
|
|
@@ -2772,7 +2773,7 @@ var Video = function Video(_ref) {
|
|
|
2772
2773
|
}, 1000);
|
|
2773
2774
|
}
|
|
2774
2775
|
// Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2775
|
-
Segment.report_video_event('Video Play',
|
|
2776
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2776
2777
|
});
|
|
2777
2778
|
|
|
2778
2779
|
// pause
|
|
@@ -2783,7 +2784,7 @@ var Video = function Video(_ref) {
|
|
|
2783
2784
|
var segment = Math.floor(current / queue);
|
|
2784
2785
|
clearInterval(intId);
|
|
2785
2786
|
// Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2786
|
-
Segment.report_video_event('Video Pause',
|
|
2787
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2787
2788
|
});
|
|
2788
2789
|
|
|
2789
2790
|
// end
|
|
@@ -2794,7 +2795,7 @@ var Video = function Video(_ref) {
|
|
|
2794
2795
|
var segment = Math.floor(current / queue);
|
|
2795
2796
|
clearInterval(intId);
|
|
2796
2797
|
// Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2797
|
-
Segment.report_video_event('Video End',
|
|
2798
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2798
2799
|
// This is for old series format
|
|
2799
2800
|
autoplayNextVideo(evt);
|
|
2800
2801
|
if (nextVideo) {
|
|
@@ -2810,7 +2811,7 @@ var Video = function Video(_ref) {
|
|
|
2810
2811
|
var segment = Math.floor(current / queue);
|
|
2811
2812
|
if (!queueProgress.includes(segment)) {
|
|
2812
2813
|
// Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2813
|
-
Segment.report_video_event('Video Segment',
|
|
2814
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2814
2815
|
queueProgress.push(segment);
|
|
2815
2816
|
}
|
|
2816
2817
|
});
|
|
@@ -2822,7 +2823,7 @@ var Video = function Video(_ref) {
|
|
|
2822
2823
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2823
2824
|
|
|
2824
2825
|
// Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2825
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2826
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2826
2827
|
});
|
|
2827
2828
|
|
|
2828
2829
|
// ad ended
|
|
@@ -2831,16 +2832,16 @@ var Video = function Video(_ref) {
|
|
|
2831
2832
|
// const id = player.ads.ad.id
|
|
2832
2833
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2833
2834
|
// Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
|
|
2834
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2835
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2835
2836
|
});
|
|
2836
2837
|
};
|
|
2837
2838
|
|
|
2838
2839
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2839
2840
|
if (videoID) {
|
|
2840
|
-
return
|
|
2841
|
+
return React.createElement(
|
|
2841
2842
|
'div',
|
|
2842
2843
|
null,
|
|
2843
|
-
isPollingTime ?
|
|
2844
|
+
isPollingTime ? React.createElement(PopupPollModal
|
|
2844
2845
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2845
2846
|
, { pollItems: pollItems
|
|
2846
2847
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -2854,7 +2855,7 @@ var Video = function Video(_ref) {
|
|
|
2854
2855
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2855
2856
|
, multiChoiceRender: multiChoiceRender
|
|
2856
2857
|
}) : null,
|
|
2857
|
-
|
|
2858
|
+
React.createElement(ReactPlayerLoader, {
|
|
2858
2859
|
onSuccess: onVideoSuccess,
|
|
2859
2860
|
onFailure: onVideoFailure,
|
|
2860
2861
|
accountId: accountIDs.brightcove.accountId,
|
|
@@ -2862,17 +2863,17 @@ var Video = function Video(_ref) {
|
|
|
2862
2863
|
playerId: accountIDs.brightcove.playerId,
|
|
2863
2864
|
attrs: { className: 'brightcove-fluid', autoPlay: 'muted' }
|
|
2864
2865
|
}),
|
|
2865
|
-
|
|
2866
|
+
React.createElement(
|
|
2866
2867
|
'style',
|
|
2867
2868
|
{ jsx: 'true' },
|
|
2868
2869
|
'\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 '
|
|
2869
2870
|
)
|
|
2870
2871
|
);
|
|
2871
2872
|
} else if (playlistID) {
|
|
2872
|
-
return
|
|
2873
|
+
return React.createElement(
|
|
2873
2874
|
'div',
|
|
2874
2875
|
null,
|
|
2875
|
-
isPollingTime ?
|
|
2876
|
+
isPollingTime ? React.createElement(PopupPollModal
|
|
2876
2877
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2877
2878
|
, { pollItems: pollItems
|
|
2878
2879
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -2886,7 +2887,7 @@ var Video = function Video(_ref) {
|
|
|
2886
2887
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2887
2888
|
, multiChoiceRender: multiChoiceRender
|
|
2888
2889
|
}) : null,
|
|
2889
|
-
|
|
2890
|
+
React.createElement(ReactPlayerLoader, {
|
|
2890
2891
|
accountId: accountIDs.brightcove.accountId,
|
|
2891
2892
|
playlistId: playlistID,
|
|
2892
2893
|
playerId: accountIDs.brightcove.playerId,
|
|
@@ -2894,18 +2895,18 @@ var Video = function Video(_ref) {
|
|
|
2894
2895
|
onFailure: onVideoFailure,
|
|
2895
2896
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2896
2897
|
}),
|
|
2897
|
-
|
|
2898
|
+
React.createElement(
|
|
2898
2899
|
'style',
|
|
2899
2900
|
{ jsx: 'true' },
|
|
2900
2901
|
'\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 '
|
|
2901
2902
|
)
|
|
2902
2903
|
);
|
|
2903
2904
|
} else if (experienceID) {
|
|
2904
|
-
return
|
|
2905
|
+
return React.createElement(
|
|
2905
2906
|
'div',
|
|
2906
2907
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2907
|
-
|
|
2908
|
-
isPollingTime ?
|
|
2908
|
+
React.createElement('div', { 'data-experience': experienceID }),
|
|
2909
|
+
isPollingTime ? React.createElement(PopupPollModal
|
|
2909
2910
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2910
2911
|
, { pollItems: pollItems
|
|
2911
2912
|
// eslint-disable-next-line react/jsx-indent-props
|
|
@@ -2925,10 +2926,10 @@ var Video = function Video(_ref) {
|
|
|
2925
2926
|
}
|
|
2926
2927
|
|
|
2927
2928
|
if (source === 'mp4') {
|
|
2928
|
-
return
|
|
2929
|
+
return React.createElement(
|
|
2929
2930
|
'div',
|
|
2930
2931
|
null,
|
|
2931
|
-
|
|
2932
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true, polls: polls, modalTimes: modalTimes, targetingUrl: targeting.document_url[0] })
|
|
2932
2933
|
);
|
|
2933
2934
|
}
|
|
2934
2935
|
|
|
@@ -3139,9 +3140,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
3139
3140
|
});
|
|
3140
3141
|
|
|
3141
3142
|
unwrapExports(props);
|
|
3142
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
3143
|
-
props.defaultProps;
|
|
3144
|
-
props.propTypes;
|
|
3143
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
3144
|
+
var props_2 = props.defaultProps;
|
|
3145
|
+
var props_3 = props.propTypes;
|
|
3145
3146
|
|
|
3146
3147
|
var isMergeableObject = function isMergeableObject(value) {
|
|
3147
3148
|
return isNonNullObject(value)
|
|
@@ -3533,7 +3534,7 @@ function isEqual(a, b) {
|
|
|
3533
3534
|
return true;
|
|
3534
3535
|
}
|
|
3535
3536
|
|
|
3536
|
-
if ((0,
|
|
3537
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3537
3538
|
return true;
|
|
3538
3539
|
}
|
|
3539
3540
|
|
|
@@ -3576,17 +3577,17 @@ function isMediaStream(url) {
|
|
|
3576
3577
|
});
|
|
3577
3578
|
|
|
3578
3579
|
unwrapExports(utils);
|
|
3579
|
-
utils.parseStartTime;
|
|
3580
|
-
utils.parseEndTime;
|
|
3581
|
-
utils.randomString;
|
|
3582
|
-
utils.queryString;
|
|
3583
|
-
utils.getSDK;
|
|
3584
|
-
utils.getConfig;
|
|
3585
|
-
utils.omit;
|
|
3586
|
-
utils.callPlayer;
|
|
3587
|
-
utils.isObject;
|
|
3588
|
-
utils.isEqual;
|
|
3589
|
-
utils.isMediaStream;
|
|
3580
|
+
var utils_1 = utils.parseStartTime;
|
|
3581
|
+
var utils_2 = utils.parseEndTime;
|
|
3582
|
+
var utils_3 = utils.randomString;
|
|
3583
|
+
var utils_4 = utils.queryString;
|
|
3584
|
+
var utils_5 = utils.getSDK;
|
|
3585
|
+
var utils_6 = utils.getConfig;
|
|
3586
|
+
var utils_7 = utils.omit;
|
|
3587
|
+
var utils_8 = utils.callPlayer;
|
|
3588
|
+
var utils_9 = utils.isObject;
|
|
3589
|
+
var utils_10 = utils.isEqual;
|
|
3590
|
+
var utils_11 = utils.isMediaStream;
|
|
3590
3591
|
|
|
3591
3592
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3592
3593
|
|
|
@@ -3595,7 +3596,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3595
3596
|
});
|
|
3596
3597
|
exports["default"] = void 0;
|
|
3597
3598
|
|
|
3598
|
-
var _react = _interopRequireWildcard(
|
|
3599
|
+
var _react = _interopRequireWildcard(React);
|
|
3599
3600
|
|
|
3600
3601
|
|
|
3601
3602
|
|
|
@@ -4005,7 +4006,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4005
4006
|
});
|
|
4006
4007
|
exports["default"] = createSinglePlayer;
|
|
4007
4008
|
|
|
4008
|
-
var _react = _interopRequireWildcard(
|
|
4009
|
+
var _react = _interopRequireWildcard(React);
|
|
4009
4010
|
|
|
4010
4011
|
|
|
4011
4012
|
|
|
@@ -4163,7 +4164,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4163
4164
|
});
|
|
4164
4165
|
exports["default"] = exports.YouTube = void 0;
|
|
4165
4166
|
|
|
4166
|
-
var _react = _interopRequireWildcard(
|
|
4167
|
+
var _react = _interopRequireWildcard(React);
|
|
4167
4168
|
|
|
4168
4169
|
|
|
4169
4170
|
|
|
@@ -4463,7 +4464,7 @@ exports["default"] = _default;
|
|
|
4463
4464
|
});
|
|
4464
4465
|
|
|
4465
4466
|
unwrapExports(YouTube_1);
|
|
4466
|
-
YouTube_1.YouTube;
|
|
4467
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4467
4468
|
|
|
4468
4469
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4469
4470
|
|
|
@@ -4472,7 +4473,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4472
4473
|
});
|
|
4473
4474
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4474
4475
|
|
|
4475
|
-
var _react = _interopRequireWildcard(
|
|
4476
|
+
var _react = _interopRequireWildcard(React);
|
|
4476
4477
|
|
|
4477
4478
|
|
|
4478
4479
|
|
|
@@ -4680,7 +4681,7 @@ exports["default"] = _default;
|
|
|
4680
4681
|
});
|
|
4681
4682
|
|
|
4682
4683
|
unwrapExports(SoundCloud_1);
|
|
4683
|
-
SoundCloud_1.SoundCloud;
|
|
4684
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4684
4685
|
|
|
4685
4686
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4686
4687
|
|
|
@@ -4689,7 +4690,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4689
4690
|
});
|
|
4690
4691
|
exports["default"] = exports.Vimeo = void 0;
|
|
4691
4692
|
|
|
4692
|
-
var _react = _interopRequireWildcard(
|
|
4693
|
+
var _react = _interopRequireWildcard(React);
|
|
4693
4694
|
|
|
4694
4695
|
|
|
4695
4696
|
|
|
@@ -4936,7 +4937,7 @@ exports["default"] = _default;
|
|
|
4936
4937
|
});
|
|
4937
4938
|
|
|
4938
4939
|
unwrapExports(Vimeo_1);
|
|
4939
|
-
Vimeo_1.Vimeo;
|
|
4940
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4940
4941
|
|
|
4941
4942
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4942
4943
|
|
|
@@ -4945,7 +4946,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4945
4946
|
});
|
|
4946
4947
|
exports["default"] = exports.Facebook = void 0;
|
|
4947
4948
|
|
|
4948
|
-
var _react = _interopRequireWildcard(
|
|
4949
|
+
var _react = _interopRequireWildcard(React);
|
|
4949
4950
|
|
|
4950
4951
|
|
|
4951
4952
|
|
|
@@ -5148,7 +5149,7 @@ exports["default"] = _default;
|
|
|
5148
5149
|
});
|
|
5149
5150
|
|
|
5150
5151
|
unwrapExports(Facebook_1);
|
|
5151
|
-
Facebook_1.Facebook;
|
|
5152
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
5152
5153
|
|
|
5153
5154
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
5154
5155
|
|
|
@@ -5157,7 +5158,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5157
5158
|
});
|
|
5158
5159
|
exports["default"] = exports.Streamable = void 0;
|
|
5159
5160
|
|
|
5160
|
-
var _react = _interopRequireWildcard(
|
|
5161
|
+
var _react = _interopRequireWildcard(React);
|
|
5161
5162
|
|
|
5162
5163
|
|
|
5163
5164
|
|
|
@@ -5359,7 +5360,7 @@ exports["default"] = _default;
|
|
|
5359
5360
|
});
|
|
5360
5361
|
|
|
5361
5362
|
unwrapExports(Streamable_1);
|
|
5362
|
-
Streamable_1.Streamable;
|
|
5363
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
5363
5364
|
|
|
5364
5365
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
5365
5366
|
|
|
@@ -5368,7 +5369,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5368
5369
|
});
|
|
5369
5370
|
exports["default"] = exports.Wistia = void 0;
|
|
5370
5371
|
|
|
5371
|
-
var _react = _interopRequireWildcard(
|
|
5372
|
+
var _react = _interopRequireWildcard(React);
|
|
5372
5373
|
|
|
5373
5374
|
|
|
5374
5375
|
|
|
@@ -5602,7 +5603,7 @@ exports["default"] = _default;
|
|
|
5602
5603
|
});
|
|
5603
5604
|
|
|
5604
5605
|
unwrapExports(Wistia_1);
|
|
5605
|
-
Wistia_1.Wistia;
|
|
5606
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5606
5607
|
|
|
5607
5608
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5608
5609
|
|
|
@@ -5611,7 +5612,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5611
5612
|
});
|
|
5612
5613
|
exports["default"] = exports.Twitch = void 0;
|
|
5613
5614
|
|
|
5614
|
-
var _react = _interopRequireWildcard(
|
|
5615
|
+
var _react = _interopRequireWildcard(React);
|
|
5615
5616
|
|
|
5616
5617
|
|
|
5617
5618
|
|
|
@@ -5818,7 +5819,7 @@ exports["default"] = _default;
|
|
|
5818
5819
|
});
|
|
5819
5820
|
|
|
5820
5821
|
unwrapExports(Twitch_1);
|
|
5821
|
-
Twitch_1.Twitch;
|
|
5822
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5822
5823
|
|
|
5823
5824
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5824
5825
|
|
|
@@ -5827,7 +5828,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5827
5828
|
});
|
|
5828
5829
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5829
5830
|
|
|
5830
|
-
var _react = _interopRequireWildcard(
|
|
5831
|
+
var _react = _interopRequireWildcard(React);
|
|
5831
5832
|
|
|
5832
5833
|
|
|
5833
5834
|
|
|
@@ -6054,7 +6055,7 @@ exports["default"] = _default;
|
|
|
6054
6055
|
});
|
|
6055
6056
|
|
|
6056
6057
|
unwrapExports(DailyMotion_1);
|
|
6057
|
-
DailyMotion_1.DailyMotion;
|
|
6058
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
6058
6059
|
|
|
6059
6060
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
6060
6061
|
|
|
@@ -6063,7 +6064,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6063
6064
|
});
|
|
6064
6065
|
exports["default"] = exports.Mixcloud = void 0;
|
|
6065
6066
|
|
|
6066
|
-
var _react = _interopRequireWildcard(
|
|
6067
|
+
var _react = _interopRequireWildcard(React);
|
|
6067
6068
|
|
|
6068
6069
|
|
|
6069
6070
|
|
|
@@ -6253,7 +6254,7 @@ exports["default"] = _default;
|
|
|
6253
6254
|
});
|
|
6254
6255
|
|
|
6255
6256
|
unwrapExports(Mixcloud_1);
|
|
6256
|
-
Mixcloud_1.Mixcloud;
|
|
6257
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
6257
6258
|
|
|
6258
6259
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
6259
6260
|
|
|
@@ -6262,7 +6263,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6262
6263
|
});
|
|
6263
6264
|
exports["default"] = exports.FilePlayer = void 0;
|
|
6264
6265
|
|
|
6265
|
-
var _react = _interopRequireWildcard(
|
|
6266
|
+
var _react = _interopRequireWildcard(React);
|
|
6266
6267
|
|
|
6267
6268
|
|
|
6268
6269
|
|
|
@@ -6787,7 +6788,7 @@ exports["default"] = _default;
|
|
|
6787
6788
|
});
|
|
6788
6789
|
|
|
6789
6790
|
unwrapExports(FilePlayer_1);
|
|
6790
|
-
FilePlayer_1.FilePlayer;
|
|
6791
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6791
6792
|
|
|
6792
6793
|
var players = createCommonjsModule(function (module, exports) {
|
|
6793
6794
|
|
|
@@ -6829,7 +6830,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6829
6830
|
});
|
|
6830
6831
|
exports["default"] = void 0;
|
|
6831
6832
|
|
|
6832
|
-
var _react = _interopRequireWildcard(
|
|
6833
|
+
var _react = _interopRequireWildcard(React);
|
|
6833
6834
|
|
|
6834
6835
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6835
6836
|
|
|
@@ -7008,7 +7009,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7008
7009
|
});
|
|
7009
7010
|
exports["default"] = renderPreloadPlayers;
|
|
7010
7011
|
|
|
7011
|
-
var _react = _interopRequireDefault(
|
|
7012
|
+
var _react = _interopRequireDefault(React);
|
|
7012
7013
|
|
|
7013
7014
|
var _Player = _interopRequireDefault(Player_1);
|
|
7014
7015
|
|
|
@@ -7147,7 +7148,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
7147
7148
|
});
|
|
7148
7149
|
exports["default"] = void 0;
|
|
7149
7150
|
|
|
7150
|
-
var _react = _interopRequireWildcard(
|
|
7151
|
+
var _react = _interopRequireWildcard(React);
|
|
7151
7152
|
|
|
7152
7153
|
|
|
7153
7154
|
|
|
@@ -7492,10 +7493,10 @@ var Audio = function Audio(_ref) {
|
|
|
7492
7493
|
}));
|
|
7493
7494
|
};
|
|
7494
7495
|
if (node.uploadAudio) {
|
|
7495
|
-
return
|
|
7496
|
+
return React.createElement(
|
|
7496
7497
|
'div',
|
|
7497
7498
|
{ className: 'audio d-block text-center mb-3' },
|
|
7498
|
-
|
|
7499
|
+
React.createElement(
|
|
7499
7500
|
'audio',
|
|
7500
7501
|
{
|
|
7501
7502
|
controls: true, controlsList: 'nodownload',
|
|
@@ -7504,14 +7505,14 @@ var Audio = function Audio(_ref) {
|
|
|
7504
7505
|
onPause: reportPause,
|
|
7505
7506
|
onEnded: reportEnd
|
|
7506
7507
|
},
|
|
7507
|
-
|
|
7508
|
-
|
|
7508
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7509
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7509
7510
|
'Your browser does not support the audio element.'
|
|
7510
7511
|
),
|
|
7511
|
-
node.caption &&
|
|
7512
|
+
node.caption && React.createElement(
|
|
7512
7513
|
'p',
|
|
7513
7514
|
{ style: { fontSize: '.9rem' } },
|
|
7514
|
-
|
|
7515
|
+
React.createElement(
|
|
7515
7516
|
'em',
|
|
7516
7517
|
null,
|
|
7517
7518
|
node.caption
|
|
@@ -7521,15 +7522,15 @@ var Audio = function Audio(_ref) {
|
|
|
7521
7522
|
} else if (node.audioFilePth) {
|
|
7522
7523
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7523
7524
|
if (hostname === 'embeds.audioboom.com') {
|
|
7524
|
-
return
|
|
7525
|
+
return React.createElement(
|
|
7525
7526
|
'div',
|
|
7526
7527
|
null,
|
|
7527
|
-
|
|
7528
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7528
7529
|
' ',
|
|
7529
|
-
node.caption &&
|
|
7530
|
+
node.caption && React.createElement(
|
|
7530
7531
|
'p',
|
|
7531
7532
|
{ style: { fontSize: '.9rem' } },
|
|
7532
|
-
|
|
7533
|
+
React.createElement(
|
|
7533
7534
|
'em',
|
|
7534
7535
|
null,
|
|
7535
7536
|
node.caption
|
|
@@ -7537,10 +7538,10 @@ var Audio = function Audio(_ref) {
|
|
|
7537
7538
|
)
|
|
7538
7539
|
);
|
|
7539
7540
|
}
|
|
7540
|
-
return
|
|
7541
|
+
return React.createElement(
|
|
7541
7542
|
'div',
|
|
7542
7543
|
{ className: 'audio' },
|
|
7543
|
-
|
|
7544
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth,
|
|
7544
7545
|
onPlay: reportPlay,
|
|
7545
7546
|
onPause: reportPause,
|
|
7546
7547
|
onEnded: reportEnd,
|
|
@@ -7548,10 +7549,10 @@ var Audio = function Audio(_ref) {
|
|
|
7548
7549
|
width: '100%',
|
|
7549
7550
|
height: '100%'
|
|
7550
7551
|
}),
|
|
7551
|
-
node.caption &&
|
|
7552
|
+
node.caption && React.createElement(
|
|
7552
7553
|
'p',
|
|
7553
7554
|
{ style: { fontSize: '.9rem' } },
|
|
7554
|
-
|
|
7555
|
+
React.createElement(
|
|
7555
7556
|
'em',
|
|
7556
7557
|
null,
|
|
7557
7558
|
node.caption
|
|
@@ -7570,34 +7571,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7570
7571
|
var showAuthorDetails = arguments[7];
|
|
7571
7572
|
|
|
7572
7573
|
if (authorName && authorURL) {
|
|
7573
|
-
return
|
|
7574
|
+
return React.createElement(
|
|
7574
7575
|
'span',
|
|
7575
7576
|
null,
|
|
7576
|
-
|
|
7577
|
+
React.createElement(
|
|
7577
7578
|
'a',
|
|
7578
7579
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7579
7580
|
authorName
|
|
7580
7581
|
),
|
|
7581
|
-
showAuthorDetails &&
|
|
7582
|
+
showAuthorDetails && React.createElement(
|
|
7582
7583
|
Card,
|
|
7583
7584
|
{ className: 'author-details-card-' + index },
|
|
7584
|
-
|
|
7585
|
+
React.createElement(
|
|
7585
7586
|
Row,
|
|
7586
7587
|
null,
|
|
7587
|
-
profileImage &&
|
|
7588
|
+
profileImage && React.createElement(
|
|
7588
7589
|
Col,
|
|
7589
7590
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7590
|
-
|
|
7591
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7591
7592
|
),
|
|
7592
|
-
|
|
7593
|
+
React.createElement(
|
|
7593
7594
|
Col,
|
|
7594
7595
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7595
|
-
|
|
7596
|
+
React.createElement(
|
|
7596
7597
|
'div',
|
|
7597
7598
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7598
7599
|
authorName
|
|
7599
7600
|
),
|
|
7600
|
-
|
|
7601
|
+
React.createElement(
|
|
7601
7602
|
'p',
|
|
7602
7603
|
null,
|
|
7603
7604
|
biography
|
|
@@ -7605,7 +7606,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7605
7606
|
)
|
|
7606
7607
|
)
|
|
7607
7608
|
),
|
|
7608
|
-
|
|
7609
|
+
React.createElement(
|
|
7609
7610
|
'style',
|
|
7610
7611
|
{ jsx: 'true' },
|
|
7611
7612
|
'\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 '
|
|
@@ -7613,7 +7614,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7613
7614
|
length !== index + 1 && ', '
|
|
7614
7615
|
);
|
|
7615
7616
|
} else if (authorName) {
|
|
7616
|
-
return
|
|
7617
|
+
return React.createElement(
|
|
7617
7618
|
'span',
|
|
7618
7619
|
{ key: index },
|
|
7619
7620
|
authorName,
|
|
@@ -7769,7 +7770,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7769
7770
|
var queue = Math.floor(duration / 10);
|
|
7770
7771
|
var segment = Math.floor(current / queue);
|
|
7771
7772
|
//Beam.report_beam_video('Ready', deviceType, duration, current, segment)
|
|
7772
|
-
Segment.report_video_event('Video Ready',
|
|
7773
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
7773
7774
|
//autoplay
|
|
7774
7775
|
|
|
7775
7776
|
//Small pause before starting next video
|
|
@@ -7790,7 +7791,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7790
7791
|
var segment = Math.floor(current / queue);
|
|
7791
7792
|
|
|
7792
7793
|
//Beam.report_beam_video('End', deviceType, duration, current, segment)
|
|
7793
|
-
Segment.report_video_event('Video End',
|
|
7794
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
7794
7795
|
setEndReported(true);
|
|
7795
7796
|
clearInterval(intervalID);
|
|
7796
7797
|
}
|
|
@@ -7841,7 +7842,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7841
7842
|
var segment = Math.floor(current / queue);
|
|
7842
7843
|
if (!queueProgress.includes(segment)) {
|
|
7843
7844
|
//Beam.report_beam_video('Segment', deviceType, duration, current, segment)
|
|
7844
|
-
Segment.report_video_event('Video Segment',
|
|
7845
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
7845
7846
|
queueProgress.push(segment);
|
|
7846
7847
|
}
|
|
7847
7848
|
};
|
|
@@ -7855,7 +7856,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7855
7856
|
var segment = Math.floor(current / queue);
|
|
7856
7857
|
|
|
7857
7858
|
//Beam.report_beam_video('Play', deviceType, duration, current, segment)
|
|
7858
|
-
Segment.report_video_event('Video Play',
|
|
7859
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
7859
7860
|
|
|
7860
7861
|
if (!playReported) {
|
|
7861
7862
|
setPlayReported(true);
|
|
@@ -7874,7 +7875,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7874
7875
|
var segment = Math.floor(current / queue);
|
|
7875
7876
|
|
|
7876
7877
|
//Beam.report_beam_video('Pause', deviceType, duration, current, segment)
|
|
7877
|
-
Segment.report_video_event('Video Pause',
|
|
7878
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
7878
7879
|
};
|
|
7879
7880
|
|
|
7880
7881
|
// Youtube Options
|
|
@@ -7885,44 +7886,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7885
7886
|
}
|
|
7886
7887
|
};
|
|
7887
7888
|
|
|
7888
|
-
return
|
|
7889
|
+
return React.createElement(
|
|
7889
7890
|
'div',
|
|
7890
7891
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7891
|
-
|
|
7892
|
+
React.createElement(
|
|
7892
7893
|
'div',
|
|
7893
7894
|
{ className: 'mt-2 mb-5' },
|
|
7894
|
-
series &&
|
|
7895
|
+
series && React.createElement(
|
|
7895
7896
|
'div',
|
|
7896
7897
|
{ style: { fontSize: '0.9rem' } },
|
|
7897
7898
|
article.title,
|
|
7898
7899
|
' - Episode ',
|
|
7899
7900
|
series
|
|
7900
7901
|
),
|
|
7901
|
-
Videos[series - 1] &&
|
|
7902
|
+
Videos[series - 1] && React.createElement(
|
|
7902
7903
|
'h1',
|
|
7903
7904
|
{ className: 'mb-3' },
|
|
7904
7905
|
Videos[series - 1].title
|
|
7905
7906
|
),
|
|
7906
|
-
|
|
7907
|
+
React.createElement(
|
|
7907
7908
|
'div',
|
|
7908
7909
|
null,
|
|
7909
7910
|
moment(article.published).format('LL')
|
|
7910
7911
|
),
|
|
7911
|
-
|
|
7912
|
+
React.createElement(
|
|
7912
7913
|
'div',
|
|
7913
7914
|
{ className: 'mb-3' },
|
|
7914
7915
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7915
|
-
return
|
|
7916
|
+
return React.createElement(
|
|
7916
7917
|
'span',
|
|
7917
7918
|
{ key: index },
|
|
7918
7919
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7919
7920
|
);
|
|
7920
7921
|
})
|
|
7921
7922
|
),
|
|
7922
|
-
|
|
7923
|
+
React.createElement(
|
|
7923
7924
|
'p',
|
|
7924
7925
|
null,
|
|
7925
|
-
|
|
7926
|
+
React.createElement(SocialShare, {
|
|
7926
7927
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7927
7928
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7928
7929
|
shareVia: meta.shareVia,
|
|
@@ -7937,20 +7938,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7937
7938
|
hideFacebook: meta.hideFBShare
|
|
7938
7939
|
})
|
|
7939
7940
|
),
|
|
7940
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7941
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7941
7942
|
'p',
|
|
7942
7943
|
{ className: 'mb-3' },
|
|
7943
|
-
|
|
7944
|
+
React.createElement(
|
|
7944
7945
|
'em',
|
|
7945
7946
|
null,
|
|
7946
7947
|
Videos[series - 1].intro
|
|
7947
7948
|
)
|
|
7948
7949
|
)
|
|
7949
7950
|
),
|
|
7950
|
-
|
|
7951
|
+
React.createElement(
|
|
7951
7952
|
'div',
|
|
7952
7953
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7953
|
-
vidUrl && vidType == 'youtube' &&
|
|
7954
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7954
7955
|
className: 'fluid-iframe',
|
|
7955
7956
|
videoId: getYoutubeId(vidUrl),
|
|
7956
7957
|
opts: opts,
|
|
@@ -7961,10 +7962,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7961
7962
|
return handleOnEnd(e);
|
|
7962
7963
|
}
|
|
7963
7964
|
}),
|
|
7964
|
-
vidUrl && vidType == 'mp4' &&
|
|
7965
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7966
|
-
|
|
7967
|
-
series &&
|
|
7965
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7966
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7967
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7968
|
+
series && React.createElement(
|
|
7968
7969
|
'div',
|
|
7969
7970
|
{
|
|
7970
7971
|
className: 'vid-series',
|
|
@@ -7974,10 +7975,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7974
7975
|
maxHeight: '100%',
|
|
7975
7976
|
paddingBottom: '0'
|
|
7976
7977
|
} },
|
|
7977
|
-
|
|
7978
|
+
React.createElement(
|
|
7978
7979
|
'p',
|
|
7979
7980
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7980
|
-
|
|
7981
|
+
React.createElement(
|
|
7981
7982
|
'b',
|
|
7982
7983
|
{ style: { fontSize: '1.25em' } },
|
|
7983
7984
|
'Now Playing:'
|
|
@@ -7985,16 +7986,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7985
7986
|
' ',
|
|
7986
7987
|
seriesData[series ? series - 1 : 0].title
|
|
7987
7988
|
),
|
|
7988
|
-
vidUrl &&
|
|
7989
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7989
7990
|
)
|
|
7990
7991
|
),
|
|
7991
|
-
|
|
7992
|
-
|
|
7992
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7993
|
+
React.createElement(
|
|
7993
7994
|
'div',
|
|
7994
7995
|
{ className: 'vid-text' },
|
|
7995
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7996
|
+
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()))
|
|
7996
7997
|
),
|
|
7997
|
-
|
|
7998
|
+
React.createElement(
|
|
7998
7999
|
'style',
|
|
7999
8000
|
{ jsx: 'true' },
|
|
8000
8001
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -8002,14 +8003,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8002
8003
|
);
|
|
8003
8004
|
};
|
|
8004
8005
|
|
|
8005
|
-
var Poll
|
|
8006
|
-
var node = _ref.node
|
|
8007
|
-
_ref.client
|
|
8008
|
-
_ref.pageview
|
|
8009
|
-
_ref.videoAccountIDs
|
|
8010
|
-
|
|
8011
|
-
_ref.showVotes
|
|
8012
|
-
|
|
8006
|
+
var Poll = function Poll(_ref) {
|
|
8007
|
+
var node = _ref.node,
|
|
8008
|
+
client = _ref.client,
|
|
8009
|
+
pageview = _ref.pageview,
|
|
8010
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
8011
|
+
onVote = _ref.onVote,
|
|
8012
|
+
_ref$showVotes = _ref.showVotes,
|
|
8013
|
+
getSerializers = _ref.getSerializers;
|
|
8013
8014
|
|
|
8014
8015
|
var _useState = useState(null),
|
|
8015
8016
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8047,67 +8048,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8047
8048
|
return acc;
|
|
8048
8049
|
}
|
|
8049
8050
|
}, 0);
|
|
8050
|
-
return
|
|
8051
|
-
|
|
8051
|
+
return React.createElement(
|
|
8052
|
+
React.Fragment,
|
|
8052
8053
|
null,
|
|
8053
|
-
question &&
|
|
8054
|
+
question && React.createElement(
|
|
8054
8055
|
'p',
|
|
8055
8056
|
{ className: 'font-weight-bold' },
|
|
8056
8057
|
question
|
|
8057
8058
|
),
|
|
8058
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
8059
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
8059
8060
|
'form',
|
|
8060
8061
|
{ onSubmit: function onSubmit(e) {
|
|
8061
8062
|
return onSubmitPoll(e);
|
|
8062
8063
|
} },
|
|
8063
8064
|
choices && choices.map(function (choice) {
|
|
8064
|
-
return
|
|
8065
|
+
return React.createElement(
|
|
8065
8066
|
'div',
|
|
8066
8067
|
{ key: choice._key },
|
|
8067
|
-
|
|
8068
|
+
React.createElement(
|
|
8068
8069
|
'label',
|
|
8069
8070
|
{ className: 'pl-2' },
|
|
8070
|
-
|
|
8071
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
8071
8072
|
return setSelectedChoice(e.target.value);
|
|
8072
8073
|
} }),
|
|
8073
8074
|
' ' + choice.choiceText
|
|
8074
8075
|
)
|
|
8075
8076
|
);
|
|
8076
8077
|
}),
|
|
8077
|
-
|
|
8078
|
+
React.createElement(
|
|
8078
8079
|
Button$1,
|
|
8079
8080
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
8080
8081
|
'Vote'
|
|
8081
8082
|
)
|
|
8082
8083
|
),
|
|
8083
|
-
|
|
8084
|
+
React.createElement(
|
|
8084
8085
|
'div',
|
|
8085
8086
|
{ className: 'progress-container' },
|
|
8086
8087
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
8087
8088
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
8088
|
-
return
|
|
8089
|
+
return React.createElement(
|
|
8089
8090
|
'div',
|
|
8090
8091
|
{ key: choice._key, className: 'mb-3' },
|
|
8091
|
-
|
|
8092
|
+
React.createElement(
|
|
8092
8093
|
'div',
|
|
8093
8094
|
{ className: 'correct-answer' },
|
|
8094
|
-
|
|
8095
|
+
React.createElement(
|
|
8095
8096
|
'div',
|
|
8096
8097
|
null,
|
|
8097
8098
|
choice.choiceText
|
|
8098
8099
|
),
|
|
8099
|
-
choice.choiceAnswer === true &&
|
|
8100
|
+
choice.choiceAnswer === true && React.createElement(
|
|
8100
8101
|
'div',
|
|
8101
8102
|
null,
|
|
8102
|
-
|
|
8103
|
+
React.createElement(
|
|
8103
8104
|
'span',
|
|
8104
8105
|
{ style: { color: 'limegreen' } },
|
|
8105
8106
|
'Correct!'
|
|
8106
8107
|
)
|
|
8107
8108
|
)
|
|
8108
8109
|
),
|
|
8109
|
-
|
|
8110
|
-
|
|
8110
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
8111
|
+
React.createElement(
|
|
8111
8112
|
'span',
|
|
8112
8113
|
{ className: 'float-right' },
|
|
8113
8114
|
percentage,
|
|
@@ -8118,14 +8119,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8118
8119
|
);
|
|
8119
8120
|
})
|
|
8120
8121
|
),
|
|
8121
|
-
showAnswer &&
|
|
8122
|
+
showAnswer && React.createElement(
|
|
8122
8123
|
'h4',
|
|
8123
8124
|
{ className: 'text-center small p-3' },
|
|
8124
8125
|
'Total Votes: ',
|
|
8125
8126
|
choicesTotalCount
|
|
8126
8127
|
),
|
|
8127
|
-
showAnswer && response &&
|
|
8128
|
-
|
|
8128
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
8129
|
+
React.createElement(
|
|
8129
8130
|
'style',
|
|
8130
8131
|
{ jsx: 'true' },
|
|
8131
8132
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -8143,22 +8144,22 @@ _export(_export.S, 'Object', {
|
|
|
8143
8144
|
}
|
|
8144
8145
|
});
|
|
8145
8146
|
|
|
8146
|
-
var values
|
|
8147
|
+
var values = _core.Object.values;
|
|
8147
8148
|
|
|
8148
|
-
var values = createCommonjsModule(function (module) {
|
|
8149
|
-
module.exports = { "default": values
|
|
8149
|
+
var values$1 = createCommonjsModule(function (module) {
|
|
8150
|
+
module.exports = { "default": values, __esModule: true };
|
|
8150
8151
|
});
|
|
8151
8152
|
|
|
8152
|
-
var _Object$values = unwrapExports(values);
|
|
8153
|
+
var _Object$values = unwrapExports(values$1);
|
|
8153
8154
|
|
|
8154
|
-
var Poll = function Poll(_ref) {
|
|
8155
|
-
var node = _ref.node
|
|
8156
|
-
_ref.client
|
|
8157
|
-
_ref.pageview
|
|
8158
|
-
_ref.videoAccountIDs
|
|
8159
|
-
|
|
8160
|
-
_ref.showVotes
|
|
8161
|
-
|
|
8155
|
+
var Poll$1 = function Poll(_ref) {
|
|
8156
|
+
var node = _ref.node,
|
|
8157
|
+
client = _ref.client,
|
|
8158
|
+
pageview = _ref.pageview,
|
|
8159
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
8160
|
+
onVote = _ref.onVote,
|
|
8161
|
+
_ref$showVotes = _ref.showVotes,
|
|
8162
|
+
getSerializers = _ref.getSerializers;
|
|
8162
8163
|
|
|
8163
8164
|
var _useState = useState(null),
|
|
8164
8165
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8224,67 +8225,67 @@ var Poll = function Poll(_ref) {
|
|
|
8224
8225
|
return acc;
|
|
8225
8226
|
}
|
|
8226
8227
|
}, 0);
|
|
8227
|
-
return
|
|
8228
|
-
|
|
8228
|
+
return React.createElement(
|
|
8229
|
+
React.Fragment,
|
|
8229
8230
|
null,
|
|
8230
|
-
question &&
|
|
8231
|
+
question && React.createElement(
|
|
8231
8232
|
'p',
|
|
8232
8233
|
{ className: 'font-weight-bold' },
|
|
8233
8234
|
question
|
|
8234
8235
|
),
|
|
8235
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
8236
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
8236
8237
|
'form',
|
|
8237
8238
|
{ onSubmit: function onSubmit(e) {
|
|
8238
8239
|
return onSubmitPoll(e);
|
|
8239
8240
|
} },
|
|
8240
8241
|
choices && choices.map(function (choice) {
|
|
8241
|
-
return
|
|
8242
|
+
return React.createElement(
|
|
8242
8243
|
'div',
|
|
8243
8244
|
{ key: choice._key },
|
|
8244
|
-
|
|
8245
|
+
React.createElement(
|
|
8245
8246
|
'label',
|
|
8246
8247
|
{ className: 'pl-2' },
|
|
8247
|
-
|
|
8248
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
8248
8249
|
return setSelectedChoice(e.target.value);
|
|
8249
8250
|
} }),
|
|
8250
8251
|
' ' + choice.choiceText
|
|
8251
8252
|
)
|
|
8252
8253
|
);
|
|
8253
8254
|
}),
|
|
8254
|
-
|
|
8255
|
+
React.createElement(
|
|
8255
8256
|
Button$1,
|
|
8256
8257
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
8257
8258
|
'Vote'
|
|
8258
8259
|
)
|
|
8259
8260
|
),
|
|
8260
|
-
|
|
8261
|
+
React.createElement(
|
|
8261
8262
|
'div',
|
|
8262
8263
|
{ className: 'progress-container' },
|
|
8263
8264
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
8264
8265
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
8265
|
-
return
|
|
8266
|
+
return React.createElement(
|
|
8266
8267
|
'div',
|
|
8267
8268
|
{ key: choice._key, className: 'mb-3' },
|
|
8268
|
-
|
|
8269
|
+
React.createElement(
|
|
8269
8270
|
'div',
|
|
8270
8271
|
{ className: 'correct-answer' },
|
|
8271
|
-
|
|
8272
|
+
React.createElement(
|
|
8272
8273
|
'div',
|
|
8273
8274
|
null,
|
|
8274
8275
|
choice.choiceText
|
|
8275
8276
|
),
|
|
8276
|
-
choice.choiceAnswer === true &&
|
|
8277
|
+
choice.choiceAnswer === true && React.createElement(
|
|
8277
8278
|
'div',
|
|
8278
8279
|
null,
|
|
8279
|
-
|
|
8280
|
+
React.createElement(
|
|
8280
8281
|
'span',
|
|
8281
8282
|
{ style: { color: 'limegreen' } },
|
|
8282
8283
|
'Correct!'
|
|
8283
8284
|
)
|
|
8284
8285
|
)
|
|
8285
8286
|
),
|
|
8286
|
-
|
|
8287
|
-
|
|
8287
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
8288
|
+
React.createElement(
|
|
8288
8289
|
'span',
|
|
8289
8290
|
{ className: 'float-right' },
|
|
8290
8291
|
percentage,
|
|
@@ -8295,14 +8296,14 @@ var Poll = function Poll(_ref) {
|
|
|
8295
8296
|
);
|
|
8296
8297
|
})
|
|
8297
8298
|
),
|
|
8298
|
-
showAnswer &&
|
|
8299
|
+
showAnswer && React.createElement(
|
|
8299
8300
|
'h4',
|
|
8300
8301
|
{ className: 'text-center small p-3' },
|
|
8301
8302
|
'Total Votes: ',
|
|
8302
8303
|
choicesTotalCount
|
|
8303
8304
|
),
|
|
8304
|
-
showAnswer && response &&
|
|
8305
|
-
|
|
8305
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
8306
|
+
React.createElement(
|
|
8306
8307
|
'style',
|
|
8307
8308
|
{ jsx: 'true' },
|
|
8308
8309
|
'\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 '
|
|
@@ -8310,7 +8311,7 @@ var Poll = function Poll(_ref) {
|
|
|
8310
8311
|
);
|
|
8311
8312
|
};
|
|
8312
8313
|
|
|
8313
|
-
var numberOfPaginations =
|
|
8314
|
+
var numberOfPaginations = main_39 ? 4 : 10;
|
|
8314
8315
|
|
|
8315
8316
|
var Quiz = function Quiz(_ref) {
|
|
8316
8317
|
var quizzes = _ref.quizzes,
|
|
@@ -8444,20 +8445,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
8444
8445
|
};
|
|
8445
8446
|
|
|
8446
8447
|
var renderPagination = function renderPagination() {
|
|
8447
|
-
return
|
|
8448
|
+
return React.createElement(
|
|
8448
8449
|
Pagination,
|
|
8449
|
-
{ className: 'p-0 m-0', size:
|
|
8450
|
-
|
|
8450
|
+
{ className: 'p-0 m-0', size: main_39 && 'sm' },
|
|
8451
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
8451
8452
|
return changePage('first');
|
|
8452
8453
|
}, disabled: currentPage === 1 }),
|
|
8453
|
-
|
|
8454
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
8454
8455
|
return changePage('prev');
|
|
8455
8456
|
}, disabled: currentPage === 1 }),
|
|
8456
|
-
|
|
8457
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
8457
8458
|
return renderNewPages('prev');
|
|
8458
8459
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
8459
8460
|
pages.map(function (page) {
|
|
8460
|
-
return
|
|
8461
|
+
return React.createElement(
|
|
8461
8462
|
Pagination.Item,
|
|
8462
8463
|
{ key: page, active: page === parseInt(currentPage), onClick: function onClick() {
|
|
8463
8464
|
return changePage(page);
|
|
@@ -8465,13 +8466,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
8465
8466
|
page
|
|
8466
8467
|
);
|
|
8467
8468
|
}),
|
|
8468
|
-
|
|
8469
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
8469
8470
|
return renderNewPages('next');
|
|
8470
8471
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
8471
|
-
|
|
8472
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
8472
8473
|
return changePage('next');
|
|
8473
8474
|
}, disabled: currentPage === pageCount }),
|
|
8474
|
-
|
|
8475
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
8475
8476
|
return changePage('last');
|
|
8476
8477
|
}, disabled: currentPage === pageCount })
|
|
8477
8478
|
);
|
|
@@ -8582,49 +8583,49 @@ var Quiz = function Quiz(_ref) {
|
|
|
8582
8583
|
}
|
|
8583
8584
|
};
|
|
8584
8585
|
|
|
8585
|
-
return
|
|
8586
|
-
|
|
8586
|
+
return React.createElement(
|
|
8587
|
+
React.Fragment,
|
|
8587
8588
|
null,
|
|
8588
|
-
quizzes[currentPage - 1] &&
|
|
8589
|
-
|
|
8589
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8590
|
+
React.Fragment,
|
|
8590
8591
|
null,
|
|
8591
|
-
|
|
8592
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8592
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8593
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8593
8594
|
'form',
|
|
8594
8595
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8595
8596
|
return e.preventDefault();
|
|
8596
8597
|
} },
|
|
8597
8598
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8598
|
-
return
|
|
8599
|
+
return React.createElement(
|
|
8599
8600
|
'div',
|
|
8600
8601
|
{ key: answer._key },
|
|
8601
|
-
|
|
8602
|
+
React.createElement(
|
|
8602
8603
|
'label',
|
|
8603
8604
|
{ className: 'pl-2' },
|
|
8604
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8605
|
+
quizzes[currentPage - 1].multiAnswer ? React.createElement('input', { type: 'checkbox', id: 'male', disabled: showAnswer, name: answer._type, value: answer._key }) : React.createElement('input', { type: 'radio', id: 'male', disabled: showAnswer, name: answer._type, value: answer._key }),
|
|
8605
8606
|
' ' + answer.answerText
|
|
8606
8607
|
)
|
|
8607
8608
|
);
|
|
8608
8609
|
})
|
|
8609
8610
|
)
|
|
8610
8611
|
),
|
|
8611
|
-
!showAnswer &&
|
|
8612
|
+
!showAnswer && React.createElement(
|
|
8612
8613
|
Button,
|
|
8613
8614
|
{ onClick: function onClick(e) {
|
|
8614
8615
|
return checkAnswers(e);
|
|
8615
8616
|
}, variant: 'info', block: true },
|
|
8616
8617
|
'Please click here for answer'
|
|
8617
8618
|
),
|
|
8618
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8619
|
-
|
|
8619
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8620
|
+
React.Fragment,
|
|
8620
8621
|
null,
|
|
8621
|
-
quizzes[currentPage - 1].answer &&
|
|
8622
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8622
8623
|
),
|
|
8623
|
-
|
|
8624
|
-
firstRender &&
|
|
8625
|
-
|
|
8624
|
+
React.createElement('br', null),
|
|
8625
|
+
firstRender && React.createElement(
|
|
8626
|
+
React.Fragment,
|
|
8626
8627
|
null,
|
|
8627
|
-
pageCount > 1 && currentPage &&
|
|
8628
|
+
pageCount > 1 && currentPage && React.createElement(
|
|
8628
8629
|
'div',
|
|
8629
8630
|
{ className: 'd-flex justify-content-center' },
|
|
8630
8631
|
renderPagination()
|
|
@@ -8636,19 +8637,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8636
8637
|
var Leads = function Leads(_ref) {
|
|
8637
8638
|
var url = _ref.url;
|
|
8638
8639
|
|
|
8639
|
-
return
|
|
8640
|
+
return React.createElement(
|
|
8640
8641
|
'div',
|
|
8641
8642
|
{ className: 'd-block text-center mb-3' },
|
|
8642
|
-
|
|
8643
|
+
React.createElement(
|
|
8643
8644
|
'style',
|
|
8644
8645
|
{ jsx: 'true' },
|
|
8645
8646
|
'\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 '
|
|
8646
8647
|
),
|
|
8647
|
-
url &&
|
|
8648
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8648
8649
|
);
|
|
8649
8650
|
};
|
|
8650
8651
|
|
|
8651
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8652
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8652
8653
|
var slides = _ref.node.slides,
|
|
8653
8654
|
client = _ref.client,
|
|
8654
8655
|
pageview = _ref.pageview,
|
|
@@ -8686,49 +8687,49 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8686
8687
|
if (pageview) pageview(href);
|
|
8687
8688
|
};
|
|
8688
8689
|
|
|
8689
|
-
return
|
|
8690
|
+
return React.createElement(
|
|
8690
8691
|
'div',
|
|
8691
8692
|
{ className: 'mt-3 mb-4' },
|
|
8692
|
-
|
|
8693
|
+
React.createElement(
|
|
8693
8694
|
Carousel,
|
|
8694
8695
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8695
8696
|
slides && slides.map(function (slide) {
|
|
8696
8697
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8697
|
-
return
|
|
8698
|
+
return React.createElement(
|
|
8698
8699
|
Carousel.Item,
|
|
8699
8700
|
{ key: slide._key },
|
|
8700
|
-
|
|
8701
|
+
React.createElement(
|
|
8701
8702
|
'a',
|
|
8702
8703
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8703
|
-
|
|
8704
|
+
React.createElement(
|
|
8704
8705
|
'div',
|
|
8705
8706
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8706
|
-
|
|
8707
|
+
React.createElement(
|
|
8707
8708
|
'picture',
|
|
8708
8709
|
null,
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8710
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8711
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8712
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8713
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8713
8714
|
)
|
|
8714
8715
|
)
|
|
8715
8716
|
),
|
|
8716
|
-
|
|
8717
|
+
React.createElement(
|
|
8717
8718
|
'div',
|
|
8718
8719
|
{ className: 'p-2' },
|
|
8719
|
-
slide.slideshowImage.caption &&
|
|
8720
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8720
8721
|
'h3',
|
|
8721
8722
|
{ style: { padding: '0px' } },
|
|
8722
8723
|
slide.slideshowImage.caption
|
|
8723
8724
|
),
|
|
8724
|
-
slide.description &&
|
|
8725
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8725
8726
|
)
|
|
8726
8727
|
);
|
|
8727
8728
|
}
|
|
8728
8729
|
return null;
|
|
8729
8730
|
})
|
|
8730
8731
|
),
|
|
8731
|
-
|
|
8732
|
+
React.createElement(
|
|
8732
8733
|
'style',
|
|
8733
8734
|
{ jsx: 'true' },
|
|
8734
8735
|
'\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 '
|
|
@@ -8747,10 +8748,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8747
8748
|
sizes = _props$node.sizes,
|
|
8748
8749
|
sizeMapping = _props$node.sizeMapping;
|
|
8749
8750
|
|
|
8750
|
-
return
|
|
8751
|
+
return React.createElement(
|
|
8751
8752
|
'div',
|
|
8752
8753
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8753
|
-
|
|
8754
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8754
8755
|
);
|
|
8755
8756
|
};
|
|
8756
8757
|
|
|
@@ -8761,15 +8762,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8761
8762
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8762
8763
|
|
|
8763
8764
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8764
|
-
return
|
|
8765
|
+
return React.createElement(
|
|
8765
8766
|
'section',
|
|
8766
8767
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8767
|
-
Caption &&
|
|
8768
|
+
Caption && React.createElement(
|
|
8768
8769
|
'h4',
|
|
8769
8770
|
{ className: 'formstack-caption' },
|
|
8770
8771
|
Caption
|
|
8771
8772
|
),
|
|
8772
|
-
|
|
8773
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8773
8774
|
);
|
|
8774
8775
|
};
|
|
8775
8776
|
|
|
@@ -8785,36 +8786,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8785
8786
|
}
|
|
8786
8787
|
});
|
|
8787
8788
|
if (medias && medias.length > 0) {
|
|
8788
|
-
return
|
|
8789
|
+
return React.createElement(
|
|
8789
8790
|
'div',
|
|
8790
8791
|
{ className: 'multi-media-container' },
|
|
8791
|
-
|
|
8792
|
+
React.createElement(
|
|
8792
8793
|
Row$1,
|
|
8793
8794
|
{ noGutters: true },
|
|
8794
8795
|
medias.map(function (media) {
|
|
8795
|
-
return
|
|
8796
|
+
return React.createElement(
|
|
8796
8797
|
Col$1,
|
|
8797
8798
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8798
|
-
|
|
8799
|
+
React.createElement(
|
|
8799
8800
|
'a',
|
|
8800
8801
|
_extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
|
|
8801
8802
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8802
|
-
|
|
8803
|
+
React.createElement(
|
|
8803
8804
|
'div',
|
|
8804
8805
|
{ className: 'multi-media-image-container' },
|
|
8805
|
-
imageBox &&
|
|
8806
|
+
imageBox && React.createElement(
|
|
8806
8807
|
LazyLoad,
|
|
8807
8808
|
{ once: true },
|
|
8808
|
-
|
|
8809
|
+
React.createElement(
|
|
8809
8810
|
'picture',
|
|
8810
8811
|
null,
|
|
8811
|
-
|
|
8812
|
-
|
|
8813
|
-
|
|
8814
|
-
|
|
8812
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8813
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8814
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8815
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8815
8816
|
)
|
|
8816
8817
|
),
|
|
8817
|
-
media.caption &&
|
|
8818
|
+
media.caption && React.createElement(
|
|
8818
8819
|
'span',
|
|
8819
8820
|
{ className: 'multi-media-caption' },
|
|
8820
8821
|
media.caption
|
|
@@ -8824,7 +8825,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8824
8825
|
);
|
|
8825
8826
|
})
|
|
8826
8827
|
),
|
|
8827
|
-
|
|
8828
|
+
React.createElement(
|
|
8828
8829
|
'style',
|
|
8829
8830
|
{ jsx: 'true' },
|
|
8830
8831
|
'\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 '
|
|
@@ -8871,7 +8872,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8871
8872
|
}
|
|
8872
8873
|
};
|
|
8873
8874
|
|
|
8874
|
-
_this.wraperRef =
|
|
8875
|
+
_this.wraperRef = React.createRef();
|
|
8875
8876
|
_this.visible = false;
|
|
8876
8877
|
return _this;
|
|
8877
8878
|
}
|
|
@@ -8899,7 +8900,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8899
8900
|
_props$id = _props.id,
|
|
8900
8901
|
id = _props$id === undefined ? '' : _props$id;
|
|
8901
8902
|
|
|
8902
|
-
return
|
|
8903
|
+
return React.createElement(
|
|
8903
8904
|
'div',
|
|
8904
8905
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8905
8906
|
this.props.children
|
|
@@ -8908,16 +8909,16 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8908
8909
|
}]);
|
|
8909
8910
|
|
|
8910
8911
|
return InscreenSensor;
|
|
8911
|
-
}(
|
|
8912
|
+
}(React.Component);
|
|
8912
8913
|
|
|
8913
8914
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8914
8915
|
var nodes = _ref.nodes,
|
|
8915
8916
|
client = _ref.client,
|
|
8916
8917
|
pageview = _ref.pageview,
|
|
8917
8918
|
getSerializers = _ref.getSerializers,
|
|
8918
|
-
accountIDs = _ref.accountIDs
|
|
8919
|
-
_ref.Ads
|
|
8920
|
-
|
|
8919
|
+
accountIDs = _ref.accountIDs,
|
|
8920
|
+
Ads = _ref.Ads,
|
|
8921
|
+
rootArticle = _ref.rootArticle;
|
|
8921
8922
|
|
|
8922
8923
|
if (!nodes || !nodes.articles) {
|
|
8923
8924
|
return null;
|
|
@@ -8931,7 +8932,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8931
8932
|
var router = useRouter();
|
|
8932
8933
|
|
|
8933
8934
|
var refArray = useRef([]);
|
|
8934
|
-
useRef([]);
|
|
8935
|
+
var adRefArray = useRef([]);
|
|
8935
8936
|
var articleContainerRef = useRef(null);
|
|
8936
8937
|
var arrowRef = useRef(null);
|
|
8937
8938
|
|
|
@@ -9019,33 +9020,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9019
9020
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
9020
9021
|
var showReading = show ? 'showReading' : '';
|
|
9021
9022
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
9022
|
-
return
|
|
9023
|
+
return React.createElement(
|
|
9023
9024
|
'div',
|
|
9024
9025
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
9025
|
-
|
|
9026
|
+
React.createElement(
|
|
9026
9027
|
'a',
|
|
9027
9028
|
{ onClick: function onClick(e) {
|
|
9028
9029
|
return articleCardClickHandler(e);
|
|
9029
9030
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleindex': '' + index, 'data-articleid': '' + article.param.current },
|
|
9030
|
-
|
|
9031
|
+
React.createElement(
|
|
9031
9032
|
'div',
|
|
9032
9033
|
{ className: 'prevNext-thumbnail' },
|
|
9033
|
-
|
|
9034
|
-
|
|
9034
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
9035
|
+
React.createElement(
|
|
9035
9036
|
'div',
|
|
9036
9037
|
{ className: 'prevNext-reading ' + showReading },
|
|
9037
9038
|
articleLabel
|
|
9038
9039
|
)
|
|
9039
9040
|
),
|
|
9040
|
-
|
|
9041
|
+
React.createElement(
|
|
9041
9042
|
'div',
|
|
9042
9043
|
{ className: 'prevNext-summary' },
|
|
9043
|
-
|
|
9044
|
+
React.createElement(
|
|
9044
9045
|
'div',
|
|
9045
9046
|
{ className: 'prevNext-publishDate' },
|
|
9046
9047
|
moment(article.published).format('LL')
|
|
9047
9048
|
),
|
|
9048
|
-
|
|
9049
|
+
React.createElement(
|
|
9049
9050
|
'h2',
|
|
9050
9051
|
{ className: 'prevNext-title' },
|
|
9051
9052
|
article.title
|
|
@@ -9094,7 +9095,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9094
9095
|
|
|
9095
9096
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
9096
9097
|
if (biography) {
|
|
9097
|
-
return
|
|
9098
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
9098
9099
|
}
|
|
9099
9100
|
};
|
|
9100
9101
|
|
|
@@ -9180,7 +9181,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9180
9181
|
//console.log('useLayoutEffect')
|
|
9181
9182
|
if (!firstLoad) {
|
|
9182
9183
|
setUpArrowClicked(false);
|
|
9183
|
-
if (
|
|
9184
|
+
if (main_40) {
|
|
9184
9185
|
grabLoadedAds();
|
|
9185
9186
|
} else {
|
|
9186
9187
|
scrollToArticle();
|
|
@@ -9204,7 +9205,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9204
9205
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
9205
9206
|
if (pageview) pageview(path);
|
|
9206
9207
|
|
|
9207
|
-
if (!
|
|
9208
|
+
if (!main_40) {
|
|
9208
9209
|
lib_3.getGoogletag().then(function (googletag) {
|
|
9209
9210
|
if (window.googletag && googletag.pubadsReady) {
|
|
9210
9211
|
lib_3.refresh();
|
|
@@ -9212,7 +9213,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9212
9213
|
});
|
|
9213
9214
|
}
|
|
9214
9215
|
//Refresh leaderboard ad on mobile
|
|
9215
|
-
if (
|
|
9216
|
+
if (main_40) {
|
|
9216
9217
|
var leaderboardSlotId = '';
|
|
9217
9218
|
lib_3.getGoogletag().then(function (googletag) {
|
|
9218
9219
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -9252,40 +9253,40 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9252
9253
|
setSensorVisible(false);
|
|
9253
9254
|
};
|
|
9254
9255
|
|
|
9255
|
-
return
|
|
9256
|
-
|
|
9256
|
+
return React.createElement(
|
|
9257
|
+
React.Fragment,
|
|
9257
9258
|
null,
|
|
9258
|
-
|
|
9259
|
+
React.createElement(
|
|
9259
9260
|
'div',
|
|
9260
9261
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
9261
|
-
|
|
9262
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
9262
9263
|
return handleArrowClick();
|
|
9263
9264
|
} })
|
|
9264
9265
|
),
|
|
9265
|
-
|
|
9266
|
-
|
|
9266
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
9267
|
+
React.createElement(
|
|
9267
9268
|
'div',
|
|
9268
9269
|
{ className: 'objective-prevNext-Wrapper' },
|
|
9269
|
-
|
|
9270
|
+
React.createElement(
|
|
9270
9271
|
'h5',
|
|
9271
9272
|
{ className: 'objective-title' },
|
|
9272
9273
|
nodes.seriesTitle
|
|
9273
9274
|
),
|
|
9274
|
-
|
|
9275
|
+
React.createElement(
|
|
9275
9276
|
'div',
|
|
9276
9277
|
{ className: 'prevNextWrapper' },
|
|
9277
9278
|
PrevNextCards(false, -1)
|
|
9278
9279
|
)
|
|
9279
9280
|
),
|
|
9280
|
-
|
|
9281
|
-
|
|
9281
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
9282
|
+
React.createElement(
|
|
9282
9283
|
'div',
|
|
9283
9284
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
9284
9285
|
Articles.map(function (article, index) {
|
|
9285
|
-
return
|
|
9286
|
+
return React.createElement(
|
|
9286
9287
|
'div',
|
|
9287
9288
|
{ key: article.title },
|
|
9288
|
-
|
|
9289
|
+
React.createElement(
|
|
9289
9290
|
InscreenSensor,
|
|
9290
9291
|
{
|
|
9291
9292
|
visible: sensorVisible,
|
|
@@ -9303,82 +9304,82 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9303
9304
|
}
|
|
9304
9305
|
}
|
|
9305
9306
|
} },
|
|
9306
|
-
|
|
9307
|
+
React.createElement(
|
|
9307
9308
|
Head,
|
|
9308
9309
|
null,
|
|
9309
|
-
currentTitle !== null &&
|
|
9310
|
+
currentTitle !== null && React.createElement(
|
|
9310
9311
|
'title',
|
|
9311
9312
|
{ key: 'title' },
|
|
9312
9313
|
currentTitle
|
|
9313
9314
|
),
|
|
9314
|
-
currentSummary !== null &&
|
|
9315
|
-
currentURL !== null &&
|
|
9316
|
-
currentTitle !== null &&
|
|
9317
|
-
currentThumbnail !== null &&
|
|
9318
|
-
currentSummary !== null &&
|
|
9319
|
-
currentTitle !== null &&
|
|
9320
|
-
currentThumbnail !== null &&
|
|
9321
|
-
currentSummary !== null &&
|
|
9315
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
9316
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
9317
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
9318
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
9319
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
9320
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
9321
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
9322
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
9322
9323
|
),
|
|
9323
|
-
|
|
9324
|
+
React.createElement(
|
|
9324
9325
|
'article',
|
|
9325
9326
|
{ className: 'article-wrapper' },
|
|
9326
|
-
|
|
9327
|
+
React.createElement(
|
|
9327
9328
|
'div',
|
|
9328
9329
|
{ className: 'article-publishDate' },
|
|
9329
9330
|
moment(article.published).format('LL')
|
|
9330
9331
|
),
|
|
9331
|
-
|
|
9332
|
+
React.createElement(
|
|
9332
9333
|
'div',
|
|
9333
9334
|
{ className: 'author-details-wrapper' },
|
|
9334
9335
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
9335
|
-
return
|
|
9336
|
+
return React.createElement(
|
|
9336
9337
|
'span',
|
|
9337
9338
|
{ key: index },
|
|
9338
9339
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
9339
9340
|
);
|
|
9340
9341
|
})
|
|
9341
9342
|
),
|
|
9342
|
-
|
|
9343
|
+
React.createElement(
|
|
9343
9344
|
'h2',
|
|
9344
9345
|
{ className: 'article-title' },
|
|
9345
9346
|
article.title
|
|
9346
9347
|
),
|
|
9347
|
-
|
|
9348
|
+
React.createElement(
|
|
9348
9349
|
'div',
|
|
9349
9350
|
{ className: 'mt-2 mb-2' },
|
|
9350
|
-
|
|
9351
|
+
React.createElement(BlockContent, _extends({
|
|
9351
9352
|
serializers: getSerializers,
|
|
9352
9353
|
videoAccountIDs: accountIDs,
|
|
9353
9354
|
blocks: article.text,
|
|
9354
9355
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
9355
9356
|
}, client.config())),
|
|
9356
|
-
|
|
9357
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
9357
9358
|
),
|
|
9358
|
-
Articles.length > 1 &&
|
|
9359
|
-
|
|
9359
|
+
Articles.length > 1 && React.createElement(
|
|
9360
|
+
React.Fragment,
|
|
9360
9361
|
null,
|
|
9361
|
-
|
|
9362
|
+
React.createElement(
|
|
9362
9363
|
'div',
|
|
9363
9364
|
{ className: 'objective-prevNext-Wrapper' },
|
|
9364
|
-
|
|
9365
|
+
React.createElement(
|
|
9365
9366
|
'h5',
|
|
9366
9367
|
{ className: 'objective-title' },
|
|
9367
9368
|
nodes.seriesTitle
|
|
9368
9369
|
),
|
|
9369
|
-
|
|
9370
|
+
React.createElement(
|
|
9370
9371
|
'div',
|
|
9371
9372
|
{ className: 'prevNextWrapper' },
|
|
9372
9373
|
PrevNextCards(true, index)
|
|
9373
9374
|
)
|
|
9374
9375
|
),
|
|
9375
|
-
|
|
9376
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
9376
9377
|
)
|
|
9377
9378
|
)
|
|
9378
9379
|
)
|
|
9379
9380
|
);
|
|
9380
9381
|
}),
|
|
9381
|
-
|
|
9382
|
+
React.createElement(
|
|
9382
9383
|
'style',
|
|
9383
9384
|
{ jsx: 'true' },
|
|
9384
9385
|
'\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 '
|
|
@@ -9408,11 +9409,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
9408
9409
|
};
|
|
9409
9410
|
}, [handleClickOutside]);
|
|
9410
9411
|
|
|
9411
|
-
return
|
|
9412
|
+
return React.createElement(
|
|
9412
9413
|
'div',
|
|
9413
9414
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
9414
|
-
|
|
9415
|
-
|
|
9415
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
9416
|
+
React.createElement(
|
|
9416
9417
|
'style',
|
|
9417
9418
|
{ jsx: 'true' },
|
|
9418
9419
|
'\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 '
|
|
@@ -9426,7 +9427,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
9426
9427
|
}
|
|
9427
9428
|
};
|
|
9428
9429
|
|
|
9429
|
-
var FigureImage
|
|
9430
|
+
var FigureImage = React.memo(function (_ref2) {
|
|
9430
9431
|
var node = _ref2.node,
|
|
9431
9432
|
client = _ref2.client,
|
|
9432
9433
|
imgAlt = _ref2.imgAlt,
|
|
@@ -9434,13 +9435,13 @@ var FigureImage$1 = React__default.memo(function (_ref2) {
|
|
|
9434
9435
|
handleClickFigure = _ref2.handleClickFigure;
|
|
9435
9436
|
|
|
9436
9437
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9437
|
-
return
|
|
9438
|
+
return React.createElement(
|
|
9438
9439
|
'picture',
|
|
9439
9440
|
null,
|
|
9440
|
-
|
|
9441
|
-
|
|
9442
|
-
|
|
9443
|
-
|
|
9441
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9442
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9443
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9444
|
+
React.createElement('img', _extends({
|
|
9444
9445
|
style: figureImageStyle,
|
|
9445
9446
|
className: 'figure-image',
|
|
9446
9447
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9491,30 +9492,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9491
9492
|
|
|
9492
9493
|
var renderTooltip = function renderTooltip(props) {
|
|
9493
9494
|
if (infoBox[0].title) {
|
|
9494
|
-
return
|
|
9495
|
+
return React.createElement(
|
|
9495
9496
|
Popover,
|
|
9496
9497
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9497
|
-
|
|
9498
|
+
React.createElement(
|
|
9498
9499
|
Popover.Title,
|
|
9499
9500
|
{ as: 'h3' },
|
|
9500
9501
|
infoBox[0].title
|
|
9501
9502
|
),
|
|
9502
|
-
|
|
9503
|
+
React.createElement(
|
|
9503
9504
|
Popover.Content,
|
|
9504
9505
|
null,
|
|
9505
|
-
|
|
9506
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9506
9507
|
)
|
|
9507
9508
|
);
|
|
9508
9509
|
} else {
|
|
9509
|
-
return
|
|
9510
|
+
return React.createElement(
|
|
9510
9511
|
Tooltip,
|
|
9511
9512
|
_extends({ id: 'button-tooltip' }, props),
|
|
9512
|
-
|
|
9513
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9513
9514
|
);
|
|
9514
9515
|
}
|
|
9515
9516
|
};
|
|
9516
9517
|
|
|
9517
|
-
var FigureImageWOverLay =
|
|
9518
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9518
9519
|
var node = _ref3.node,
|
|
9519
9520
|
client = _ref3.client,
|
|
9520
9521
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9522,32 +9523,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9522
9523
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9523
9524
|
|
|
9524
9525
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9525
|
-
var triggerAction =
|
|
9526
|
-
var placementLocation =
|
|
9527
|
-
return
|
|
9526
|
+
var triggerAction = main_39 ? 'click' : 'hover';
|
|
9527
|
+
var placementLocation = main_39 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9528
|
+
return React.createElement(
|
|
9528
9529
|
'picture',
|
|
9529
9530
|
null,
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9531
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9532
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9533
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9534
|
+
main_39 && link ? React.createElement('img', _extends({
|
|
9534
9535
|
style: figureImageStyle,
|
|
9535
9536
|
className: 'figure-image',
|
|
9536
9537
|
src: urlFor({ source: node, client: client }),
|
|
9537
9538
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9538
|
-
}, !link && !
|
|
9539
|
+
}, !link && !main_39 && {
|
|
9539
9540
|
onClick: function onClick() {
|
|
9540
9541
|
return handleClickFigure(node, client);
|
|
9541
9542
|
}
|
|
9542
|
-
})) :
|
|
9543
|
+
})) : React.createElement(
|
|
9543
9544
|
OverlayTrigger,
|
|
9544
9545
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9545
|
-
|
|
9546
|
+
React.createElement('img', _extends({
|
|
9546
9547
|
style: figureImageStyle,
|
|
9547
9548
|
className: 'figure-image',
|
|
9548
9549
|
src: urlFor({ source: node, client: client }),
|
|
9549
9550
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9550
|
-
}, !link && !
|
|
9551
|
+
}, !link && !main_39 && {
|
|
9551
9552
|
onClick: function onClick() {
|
|
9552
9553
|
return handleClickFigure(node, client);
|
|
9553
9554
|
}
|
|
@@ -9596,13 +9597,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9596
9597
|
|
|
9597
9598
|
var FigureCaption = useCallback(function () {
|
|
9598
9599
|
if (imgcaption && imgcaption.length > 0) {
|
|
9599
|
-
return
|
|
9600
|
+
return React.createElement(
|
|
9600
9601
|
'div',
|
|
9601
9602
|
{ className: 'figure-caption' },
|
|
9602
|
-
|
|
9603
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9603
9604
|
);
|
|
9604
9605
|
} else if (caption) {
|
|
9605
|
-
return
|
|
9606
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9606
9607
|
} else return null;
|
|
9607
9608
|
}, [caption, imgcaption]);
|
|
9608
9609
|
|
|
@@ -9619,24 +9620,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9619
9620
|
setShowLightbox(true);
|
|
9620
9621
|
}, [node, client]);
|
|
9621
9622
|
|
|
9622
|
-
return
|
|
9623
|
-
|
|
9623
|
+
return React.createElement(
|
|
9624
|
+
React.Fragment,
|
|
9624
9625
|
null,
|
|
9625
|
-
infoBox.length >= 1 ?
|
|
9626
|
+
infoBox.length >= 1 ? React.createElement(
|
|
9626
9627
|
Figure$2,
|
|
9627
9628
|
{ className: '' + class_name, style: figureStyle },
|
|
9628
|
-
link ?
|
|
9629
|
+
link ? React.createElement(
|
|
9629
9630
|
'a',
|
|
9630
9631
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
) :
|
|
9634
|
-
|
|
9632
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9633
|
+
React.createElement(FigureCaption, null)
|
|
9634
|
+
) : React.createElement(
|
|
9635
|
+
React.Fragment,
|
|
9635
9636
|
null,
|
|
9636
|
-
|
|
9637
|
-
|
|
9637
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9638
|
+
React.createElement(FigureCaption, null)
|
|
9638
9639
|
),
|
|
9639
|
-
|
|
9640
|
+
React.createElement(LightBox, {
|
|
9640
9641
|
showLightbox: showLightbox,
|
|
9641
9642
|
lightboxImgSrc: lightboxImgSrc,
|
|
9642
9643
|
closeLightbox: function closeLightbox() {
|
|
@@ -9644,21 +9645,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9644
9645
|
setShowLightbox(false);
|
|
9645
9646
|
}
|
|
9646
9647
|
})
|
|
9647
|
-
) :
|
|
9648
|
+
) : React.createElement(
|
|
9648
9649
|
Figure$2,
|
|
9649
9650
|
{ className: '' + class_name, style: figureStyle },
|
|
9650
|
-
link ?
|
|
9651
|
+
link ? React.createElement(
|
|
9651
9652
|
'a',
|
|
9652
9653
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
) :
|
|
9656
|
-
|
|
9654
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9655
|
+
React.createElement(FigureCaption, null)
|
|
9656
|
+
) : React.createElement(
|
|
9657
|
+
React.Fragment,
|
|
9657
9658
|
null,
|
|
9658
|
-
|
|
9659
|
-
|
|
9659
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9660
|
+
React.createElement(FigureCaption, null)
|
|
9660
9661
|
),
|
|
9661
|
-
|
|
9662
|
+
React.createElement(LightBox, {
|
|
9662
9663
|
showLightbox: showLightbox,
|
|
9663
9664
|
lightboxImgSrc: lightboxImgSrc,
|
|
9664
9665
|
closeLightbox: function closeLightbox() {
|
|
@@ -9667,7 +9668,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9667
9668
|
}
|
|
9668
9669
|
})
|
|
9669
9670
|
),
|
|
9670
|
-
|
|
9671
|
+
React.createElement(
|
|
9671
9672
|
'style',
|
|
9672
9673
|
{ jsx: 'true' },
|
|
9673
9674
|
'\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 '
|
|
@@ -9675,7 +9676,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9675
9676
|
);
|
|
9676
9677
|
};
|
|
9677
9678
|
|
|
9678
|
-
var Figure =
|
|
9679
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9679
9680
|
|
|
9680
9681
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9681
9682
|
useEffect(function () {
|
|
@@ -9692,7 +9693,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9692
9693
|
}, [ref]);
|
|
9693
9694
|
}
|
|
9694
9695
|
|
|
9695
|
-
var FigureImage =
|
|
9696
|
+
var FigureImage$1 = React.memo(function (_ref) {
|
|
9696
9697
|
var imagesCount = _ref.imagesCount,
|
|
9697
9698
|
image = _ref.image,
|
|
9698
9699
|
client = _ref.client,
|
|
@@ -9700,13 +9701,13 @@ var FigureImage = React__default.memo(function (_ref) {
|
|
|
9700
9701
|
link = _ref.link,
|
|
9701
9702
|
handleClickFigure = _ref.handleClickFigure;
|
|
9702
9703
|
|
|
9703
|
-
return
|
|
9704
|
+
return React.createElement(
|
|
9704
9705
|
'picture',
|
|
9705
9706
|
null,
|
|
9706
|
-
|
|
9707
|
-
|
|
9708
|
-
|
|
9709
|
-
|
|
9707
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9708
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9709
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9710
|
+
React.createElement('img', _extends({
|
|
9710
9711
|
'images-count': imagesCount,
|
|
9711
9712
|
className: 'multi-figure-image',
|
|
9712
9713
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9743,13 +9744,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9743
9744
|
imgcaption = _ref2.imgcaption;
|
|
9744
9745
|
|
|
9745
9746
|
if (imgcaption && imgcaption.length > 0) {
|
|
9746
|
-
return
|
|
9747
|
+
return React.createElement(
|
|
9747
9748
|
'div',
|
|
9748
9749
|
{ className: 'multi-figure-caption' },
|
|
9749
|
-
|
|
9750
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9750
9751
|
);
|
|
9751
9752
|
} else if (caption) {
|
|
9752
|
-
return
|
|
9753
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9753
9754
|
} else return null;
|
|
9754
9755
|
};
|
|
9755
9756
|
|
|
@@ -9758,7 +9759,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9758
9759
|
setOpenImg(true);
|
|
9759
9760
|
}, [client]);
|
|
9760
9761
|
|
|
9761
|
-
var FigureImageWOverLay =
|
|
9762
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9762
9763
|
var imagesCount = _ref3.imagesCount,
|
|
9763
9764
|
image = _ref3.image,
|
|
9764
9765
|
client = _ref3.client,
|
|
@@ -9766,32 +9767,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9766
9767
|
link = _ref3.link,
|
|
9767
9768
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9768
9769
|
|
|
9769
|
-
var triggerAction =
|
|
9770
|
-
var placementLocation =
|
|
9771
|
-
return
|
|
9770
|
+
var triggerAction = main_39 ? 'click' : 'hover';
|
|
9771
|
+
var placementLocation = main_39 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9772
|
+
return React.createElement(
|
|
9772
9773
|
'picture',
|
|
9773
9774
|
null,
|
|
9774
|
-
|
|
9775
|
-
|
|
9776
|
-
|
|
9777
|
-
|
|
9775
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9776
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9777
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9778
|
+
main_39 && link ? React.createElement('img', _extends({
|
|
9778
9779
|
'images-count': imagesCount,
|
|
9779
9780
|
className: 'multi-figure-image',
|
|
9780
9781
|
src: urlFor({ source: image, client: client }),
|
|
9781
9782
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9782
|
-
}, !link && !
|
|
9783
|
+
}, !link && !main_39 && {
|
|
9783
9784
|
onClick: function onClick() {
|
|
9784
9785
|
return handleClickFigure(image, client);
|
|
9785
9786
|
}
|
|
9786
|
-
})) :
|
|
9787
|
+
})) : React.createElement(
|
|
9787
9788
|
OverlayTrigger,
|
|
9788
9789
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9789
|
-
|
|
9790
|
+
React.createElement('img', _extends({
|
|
9790
9791
|
'images-count': imagesCount,
|
|
9791
9792
|
className: 'multi-figure-image',
|
|
9792
9793
|
src: urlFor({ source: image, client: client }),
|
|
9793
9794
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9794
|
-
}, !link && !
|
|
9795
|
+
}, !link && !main_39 && {
|
|
9795
9796
|
onClick: function onClick() {
|
|
9796
9797
|
return handleClickFigure(image, client);
|
|
9797
9798
|
}
|
|
@@ -9802,102 +9803,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9802
9803
|
|
|
9803
9804
|
var renderTooltip = function renderTooltip(image) {
|
|
9804
9805
|
if (image.infoBox[0].title) {
|
|
9805
|
-
return
|
|
9806
|
+
return React.createElement(
|
|
9806
9807
|
Popover,
|
|
9807
9808
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9808
|
-
|
|
9809
|
+
React.createElement(
|
|
9809
9810
|
Popover.Title,
|
|
9810
9811
|
{ as: 'h3' },
|
|
9811
9812
|
image.infoBox[0].title
|
|
9812
9813
|
),
|
|
9813
|
-
|
|
9814
|
+
React.createElement(
|
|
9814
9815
|
Popover.Content,
|
|
9815
9816
|
null,
|
|
9816
|
-
|
|
9817
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9817
9818
|
)
|
|
9818
9819
|
);
|
|
9819
9820
|
} else {
|
|
9820
|
-
return
|
|
9821
|
+
return React.createElement(
|
|
9821
9822
|
Tooltip,
|
|
9822
9823
|
_extends({ id: 'button-tooltip' }, props),
|
|
9823
|
-
|
|
9824
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9824
9825
|
);
|
|
9825
9826
|
}
|
|
9826
9827
|
};
|
|
9827
9828
|
|
|
9828
9829
|
if (images && images.length > 0) {
|
|
9829
|
-
return
|
|
9830
|
+
return React.createElement(
|
|
9830
9831
|
'div',
|
|
9831
9832
|
{ className: 'multi-figure-container' },
|
|
9832
|
-
|
|
9833
|
+
React.createElement(
|
|
9833
9834
|
Row$1,
|
|
9834
9835
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9835
9836
|
images.map(function (image, index) {
|
|
9836
9837
|
if (image.infoBox) {
|
|
9837
|
-
return
|
|
9838
|
+
return React.createElement(
|
|
9838
9839
|
Col$1,
|
|
9839
9840
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9840
|
-
image.link ?
|
|
9841
|
+
image.link ? React.createElement(
|
|
9841
9842
|
'a',
|
|
9842
9843
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9843
|
-
|
|
9844
|
+
React.createElement(
|
|
9844
9845
|
'div',
|
|
9845
9846
|
{ className: 'multi-figure-image-container' },
|
|
9846
|
-
|
|
9847
|
+
React.createElement(
|
|
9847
9848
|
LazyLoad,
|
|
9848
9849
|
{ once: true },
|
|
9849
|
-
|
|
9850
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9850
9851
|
),
|
|
9851
|
-
|
|
9852
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9852
9853
|
)
|
|
9853
|
-
) :
|
|
9854
|
+
) : React.createElement(
|
|
9854
9855
|
'div',
|
|
9855
9856
|
{ className: 'multi-figure-image-container' },
|
|
9856
|
-
|
|
9857
|
+
React.createElement(
|
|
9857
9858
|
LazyLoad,
|
|
9858
9859
|
{ once: true },
|
|
9859
|
-
|
|
9860
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9860
9861
|
),
|
|
9861
|
-
|
|
9862
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9862
9863
|
)
|
|
9863
9864
|
);
|
|
9864
9865
|
} else {
|
|
9865
|
-
return
|
|
9866
|
+
return React.createElement(
|
|
9866
9867
|
Col$1,
|
|
9867
9868
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9868
|
-
image.link ?
|
|
9869
|
+
image.link ? React.createElement(
|
|
9869
9870
|
'a',
|
|
9870
9871
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9871
|
-
|
|
9872
|
+
React.createElement(
|
|
9872
9873
|
'div',
|
|
9873
9874
|
{ className: 'multi-figure-image-container' },
|
|
9874
|
-
|
|
9875
|
+
React.createElement(
|
|
9875
9876
|
LazyLoad,
|
|
9876
9877
|
{ once: true },
|
|
9877
|
-
|
|
9878
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9878
9879
|
),
|
|
9879
|
-
|
|
9880
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9880
9881
|
)
|
|
9881
|
-
) :
|
|
9882
|
+
) : React.createElement(
|
|
9882
9883
|
'div',
|
|
9883
9884
|
{ className: 'multi-figure-image-container' },
|
|
9884
|
-
|
|
9885
|
+
React.createElement(
|
|
9885
9886
|
LazyLoad,
|
|
9886
9887
|
{ once: true },
|
|
9887
|
-
|
|
9888
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9888
9889
|
),
|
|
9889
|
-
|
|
9890
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9890
9891
|
)
|
|
9891
9892
|
);
|
|
9892
9893
|
}
|
|
9893
9894
|
})
|
|
9894
9895
|
),
|
|
9895
|
-
|
|
9896
|
+
React.createElement(
|
|
9896
9897
|
'div',
|
|
9897
9898
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9898
|
-
|
|
9899
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9899
9900
|
),
|
|
9900
|
-
|
|
9901
|
+
React.createElement(
|
|
9901
9902
|
'style',
|
|
9902
9903
|
{ jsx: 'true' },
|
|
9903
9904
|
'\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 '
|
|
@@ -9946,23 +9947,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9946
9947
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9947
9948
|
}, []);
|
|
9948
9949
|
|
|
9949
|
-
return
|
|
9950
|
-
|
|
9950
|
+
return React.createElement(
|
|
9951
|
+
React.Fragment,
|
|
9951
9952
|
null,
|
|
9952
|
-
|
|
9953
|
+
React.createElement(
|
|
9953
9954
|
Head,
|
|
9954
9955
|
null,
|
|
9955
|
-
|
|
9956
|
+
React.createElement('script', {
|
|
9956
9957
|
dangerouslySetInnerHTML: {
|
|
9957
9958
|
__html: 'history.scrollRestoration = "manual"'
|
|
9958
9959
|
}
|
|
9959
9960
|
})
|
|
9960
9961
|
),
|
|
9961
|
-
|
|
9962
|
+
React.createElement(
|
|
9962
9963
|
'div',
|
|
9963
9964
|
{ id: elementId },
|
|
9964
|
-
|
|
9965
|
-
|
|
9965
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9966
|
+
React.createElement(
|
|
9966
9967
|
'style',
|
|
9967
9968
|
{ jsx: 'true' },
|
|
9968
9969
|
'\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 '
|
|
@@ -9971,258 +9972,6 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9971
9972
|
);
|
|
9972
9973
|
};
|
|
9973
9974
|
|
|
9974
|
-
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9975
|
-
|
|
9976
|
-
exports.__esModule = true;
|
|
9977
|
-
|
|
9978
|
-
exports.default = function (obj, keys) {
|
|
9979
|
-
var target = {};
|
|
9980
|
-
|
|
9981
|
-
for (var i in obj) {
|
|
9982
|
-
if (keys.indexOf(i) >= 0) continue;
|
|
9983
|
-
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9984
|
-
target[i] = obj[i];
|
|
9985
|
-
}
|
|
9986
|
-
|
|
9987
|
-
return target;
|
|
9988
|
-
};
|
|
9989
|
-
});
|
|
9990
|
-
|
|
9991
|
-
unwrapExports(objectWithoutProperties);
|
|
9992
|
-
|
|
9993
|
-
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9994
|
-
|
|
9995
|
-
exports.__esModule = true;
|
|
9996
|
-
|
|
9997
|
-
|
|
9998
|
-
|
|
9999
|
-
var _extends3 = _interopRequireDefault(_extends$1);
|
|
10000
|
-
|
|
10001
|
-
|
|
10002
|
-
|
|
10003
|
-
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
10004
|
-
|
|
10005
|
-
|
|
10006
|
-
|
|
10007
|
-
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10011
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
var _inherits3 = _interopRequireDefault(inherits);
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
var _react2 = _interopRequireDefault(React__default);
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
10024
|
-
|
|
10025
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10026
|
-
var noop = function noop() {};
|
|
10027
|
-
|
|
10028
|
-
var ScriptTag = function (_Component) {
|
|
10029
|
-
(0, _inherits3.default)(ScriptTag, _Component);
|
|
10030
|
-
|
|
10031
|
-
ScriptTag.removeNode = function removeNode(node) {
|
|
10032
|
-
if (node) {
|
|
10033
|
-
node.parentNode.removeChild(node);
|
|
10034
|
-
}
|
|
10035
|
-
};
|
|
10036
|
-
|
|
10037
|
-
function ScriptTag(props, context) {
|
|
10038
|
-
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
10039
|
-
|
|
10040
|
-
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
10041
|
-
|
|
10042
|
-
_this.domRef = null;
|
|
10043
|
-
_this.state = {
|
|
10044
|
-
isHydrated: props.isHydrating,
|
|
10045
|
-
additionalNode: null,
|
|
10046
|
-
removeAdditionalNode: null
|
|
10047
|
-
};
|
|
10048
|
-
return _this;
|
|
10049
|
-
}
|
|
10050
|
-
|
|
10051
|
-
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
10052
|
-
var _props = this.props,
|
|
10053
|
-
onError = _props.onError,
|
|
10054
|
-
onLoad = _props.onLoad,
|
|
10055
|
-
nonce = _props.nonce;
|
|
10056
|
-
|
|
10057
|
-
// Create a new HTML script element
|
|
10058
|
-
|
|
10059
|
-
var newElement = document.createElement("script");
|
|
10060
|
-
|
|
10061
|
-
// Copy all attribute values
|
|
10062
|
-
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
10063
|
-
var attr = this.domRef.attributes[i];
|
|
10064
|
-
if (attr.nodeName === 'nonce') {
|
|
10065
|
-
// The browser clears the nonce value - grab from props
|
|
10066
|
-
newElement.setAttribute(attr.nodeName, nonce);
|
|
10067
|
-
} else {
|
|
10068
|
-
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
10069
|
-
}
|
|
10070
|
-
}
|
|
10071
|
-
|
|
10072
|
-
// Copy the inner script
|
|
10073
|
-
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
10074
|
-
newElement.innerHTML = this.domRef.innerHTML;
|
|
10075
|
-
}
|
|
10076
|
-
|
|
10077
|
-
// Bind event listeners
|
|
10078
|
-
newElement.addEventListener('load', onLoad);
|
|
10079
|
-
newElement.addEventListener('error', onError);
|
|
10080
|
-
|
|
10081
|
-
// Append the new script tag
|
|
10082
|
-
this.domRef.parentNode.appendChild(newElement);
|
|
10083
|
-
return newElement;
|
|
10084
|
-
};
|
|
10085
|
-
|
|
10086
|
-
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
10087
|
-
var isHydrated = this.state.isHydrated;
|
|
10088
|
-
|
|
10089
|
-
if (isHydrated) {
|
|
10090
|
-
// was rendered on server, don't replace elements when hydrating
|
|
10091
|
-
return;
|
|
10092
|
-
}
|
|
10093
|
-
|
|
10094
|
-
this.setState({
|
|
10095
|
-
additionalNode: this.appendAdditionalElement(),
|
|
10096
|
-
removeAdditionalNode: null
|
|
10097
|
-
});
|
|
10098
|
-
};
|
|
10099
|
-
|
|
10100
|
-
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
10101
|
-
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
10102
|
-
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
10103
|
-
|
|
10104
|
-
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
10105
|
-
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
10106
|
-
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
10107
|
-
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
10108
|
-
// This really complicates the component - for now we'll leave it as is.
|
|
10109
|
-
var _props2 = this.props,
|
|
10110
|
-
src = _props2.src,
|
|
10111
|
-
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
10112
|
-
|
|
10113
|
-
if (src && src === nextProps.src) {
|
|
10114
|
-
// The 'src' attribute has not changed
|
|
10115
|
-
return;
|
|
10116
|
-
}
|
|
10117
|
-
|
|
10118
|
-
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
10119
|
-
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
10120
|
-
return;
|
|
10121
|
-
}
|
|
10122
|
-
|
|
10123
|
-
this.setState({
|
|
10124
|
-
removeAdditionalNode: this.state.additionalNode,
|
|
10125
|
-
additionalNode: null
|
|
10126
|
-
});
|
|
10127
|
-
};
|
|
10128
|
-
|
|
10129
|
-
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
10130
|
-
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
10131
|
-
};
|
|
10132
|
-
|
|
10133
|
-
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
10134
|
-
var _state = this.state,
|
|
10135
|
-
additionalNode = _state.additionalNode,
|
|
10136
|
-
removeAdditionalNode = _state.removeAdditionalNode;
|
|
10137
|
-
|
|
10138
|
-
if (additionalNode === null) {
|
|
10139
|
-
this.setState({
|
|
10140
|
-
additionalNode: this.appendAdditionalElement()
|
|
10141
|
-
});
|
|
10142
|
-
}
|
|
10143
|
-
|
|
10144
|
-
if (removeAdditionalNode !== null) {
|
|
10145
|
-
// Was removed in 'componentWillUpdate', but can not update state there
|
|
10146
|
-
this.setState({
|
|
10147
|
-
removeAdditionalNode: null
|
|
10148
|
-
});
|
|
10149
|
-
}
|
|
10150
|
-
};
|
|
10151
|
-
|
|
10152
|
-
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
10153
|
-
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
10154
|
-
ScriptTag.removeNode(this.state.additionalNode);
|
|
10155
|
-
};
|
|
10156
|
-
|
|
10157
|
-
ScriptTag.prototype.render = function render() {
|
|
10158
|
-
var _this2 = this;
|
|
10159
|
-
|
|
10160
|
-
var additionalNode = this.state.additionalNode;
|
|
10161
|
-
|
|
10162
|
-
if (additionalNode !== null) {
|
|
10163
|
-
return null;
|
|
10164
|
-
}
|
|
10165
|
-
|
|
10166
|
-
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
10167
|
-
// eslint-disable-next-line no-unused-vars
|
|
10168
|
-
var _props3 = this.props;
|
|
10169
|
-
_props3.isHydrating;
|
|
10170
|
-
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
10171
|
-
|
|
10172
|
-
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
10173
|
-
return _this2.domRef = tag;
|
|
10174
|
-
} }));
|
|
10175
|
-
};
|
|
10176
|
-
|
|
10177
|
-
return ScriptTag;
|
|
10178
|
-
}(React__default.Component);
|
|
10179
|
-
|
|
10180
|
-
ScriptTag.propTypes = {
|
|
10181
|
-
/**
|
|
10182
|
-
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
10183
|
-
*/
|
|
10184
|
-
isHydrating: _propTypes2.default.bool,
|
|
10185
|
-
|
|
10186
|
-
// Standard <script> tag props
|
|
10187
|
-
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
10188
|
-
crossOrigin: _propTypes2.default.string,
|
|
10189
|
-
defer: _propTypes2.default.bool,
|
|
10190
|
-
integrity: _propTypes2.default.string,
|
|
10191
|
-
nonce: _propTypes2.default.string,
|
|
10192
|
-
src: _propTypes2.default.string,
|
|
10193
|
-
text: _propTypes2.default.string,
|
|
10194
|
-
type: _propTypes2.default.string,
|
|
10195
|
-
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
10196
|
-
|
|
10197
|
-
// globals
|
|
10198
|
-
onError: _propTypes2.default.func,
|
|
10199
|
-
onLoad: _propTypes2.default.func
|
|
10200
|
-
};
|
|
10201
|
-
ScriptTag.defaultProps = {
|
|
10202
|
-
isHydrating: false,
|
|
10203
|
-
onError: noop,
|
|
10204
|
-
onLoad: noop
|
|
10205
|
-
};
|
|
10206
|
-
exports.default = ScriptTag;
|
|
10207
|
-
});
|
|
10208
|
-
|
|
10209
|
-
unwrapExports(ScriptTag_1);
|
|
10210
|
-
|
|
10211
|
-
var lib = createCommonjsModule(function (module, exports) {
|
|
10212
|
-
|
|
10213
|
-
exports.__esModule = true;
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
10218
|
-
|
|
10219
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10220
|
-
|
|
10221
|
-
exports.default = _ScriptTag2.default;
|
|
10222
|
-
});
|
|
10223
|
-
|
|
10224
|
-
var ScriptTag = unwrapExports(lib);
|
|
10225
|
-
|
|
10226
9975
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
10227
9976
|
|
|
10228
9977
|
var FormAssembly = function FormAssembly(props) {
|
|
@@ -10267,11 +10016,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
10267
10016
|
}, [anonymousID]);
|
|
10268
10017
|
|
|
10269
10018
|
if (iframeSrc) {
|
|
10270
|
-
return
|
|
10019
|
+
return React.createElement(
|
|
10271
10020
|
'section',
|
|
10272
10021
|
{ className: 'form-assembly' },
|
|
10273
|
-
iframeSrc &&
|
|
10274
|
-
|
|
10022
|
+
iframeSrc && React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
10023
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
10275
10024
|
);
|
|
10276
10025
|
}
|
|
10277
10026
|
|
|
@@ -10308,27 +10057,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
10308
10057
|
return window.removeEventListener('resize', handleResize);
|
|
10309
10058
|
};
|
|
10310
10059
|
}, []);
|
|
10311
|
-
return
|
|
10060
|
+
return React.createElement(
|
|
10312
10061
|
'div',
|
|
10313
10062
|
{ className: 'blockTableHolder', ref: holder },
|
|
10314
|
-
|
|
10063
|
+
React.createElement(
|
|
10315
10064
|
'div',
|
|
10316
10065
|
{ className: 'blockTable' },
|
|
10317
10066
|
rows && rows.map(function (row) {
|
|
10318
|
-
return
|
|
10067
|
+
return React.createElement(
|
|
10319
10068
|
'div',
|
|
10320
10069
|
{ className: 'blockTableRow' },
|
|
10321
10070
|
row.cells && row.cells.map(function (cell) {
|
|
10322
|
-
return
|
|
10071
|
+
return React.createElement(
|
|
10323
10072
|
'div',
|
|
10324
10073
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
10325
|
-
|
|
10074
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
10326
10075
|
);
|
|
10327
10076
|
})
|
|
10328
10077
|
);
|
|
10329
10078
|
})
|
|
10330
10079
|
),
|
|
10331
|
-
|
|
10080
|
+
React.createElement(
|
|
10332
10081
|
'style',
|
|
10333
10082
|
{ jsx: true },
|
|
10334
10083
|
'\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 '
|
|
@@ -10338,11 +10087,11 @@ var BlockTable = function BlockTable(props) {
|
|
|
10338
10087
|
|
|
10339
10088
|
var DigiohSmartTag = function DigiohSmartTag(props) {
|
|
10340
10089
|
var _props$node = props.node,
|
|
10341
|
-
FormID = _props$node.FormID
|
|
10342
|
-
_props$node.needSegmentSupport;
|
|
10090
|
+
FormID = _props$node.FormID,
|
|
10091
|
+
_props$node$needSegme = _props$node.needSegmentSupport;
|
|
10343
10092
|
|
|
10344
10093
|
|
|
10345
|
-
return
|
|
10094
|
+
return React.createElement('div', { id: FormID });
|
|
10346
10095
|
};
|
|
10347
10096
|
|
|
10348
10097
|
var siteArray = ['aestheticsauthority.com', 'ajmc.com', 'appliedclinicaltrialsonline.com', 'biopharminternational.com', 'cancernetwork.com', 'cannabissciencetech.com', 'centerforbiosimilars.com', 'chromatographyonline.com', 'contagionlive.com', 'contemporaryclinic.com', 'contemporaryobgyn.net', 'contemporarypediatrics.com', 'curetoday.com', 'dentalproductsreport.com', 'dermatologytimes.com', 'diagnosticimaging.com', 'drugtopics.com', 'dvm360.com', 'endocrinologynetwork.com', 'europe.ophthalmologytimes.com', 'formularywatch.com', 'hcplive.com', 'infectioncontroltoday.com', 'managedhealthcareexecutive.com', 'medicaleconomics.com', 'modernretina.com', 'neurologylive.com', 'nutritionaloutlook.com', 'onclive.com', 'oncnursingnews.com', 'ophthalmologytimes.com', 'optometrytimes.com', 'patientcareonline.com', 'pharmaceuticalcommerce.com', 'pharmacytimes.com', 'pharmexec.com', 'pharmtech.com', 'physicianspractice.com', 'practicalcardiology.com', 'psychiatrictimes.com', 'rheumatologynetwork.com', 'spectroscopyonline.com', 'targetedonc.com', 'turbomachinerymag.com', 'urologytimes.com'];
|
|
@@ -10374,7 +10123,8 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
10374
10123
|
href = _props$mark.href,
|
|
10375
10124
|
blank = _props$mark.blank,
|
|
10376
10125
|
color = _props$mark.color,
|
|
10377
|
-
nofollow = _props$mark.nofollow
|
|
10126
|
+
nofollow = _props$mark.nofollow,
|
|
10127
|
+
articleId = props.articleId;
|
|
10378
10128
|
|
|
10379
10129
|
var _useState = useState(null),
|
|
10380
10130
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -10410,7 +10160,7 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
10410
10160
|
if (href && href.charAt(0) === '#') {
|
|
10411
10161
|
var elementId = href.slice(1);
|
|
10412
10162
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10413
|
-
return
|
|
10163
|
+
return React.createElement(
|
|
10414
10164
|
'a',
|
|
10415
10165
|
{ onClick: function onClick() {
|
|
10416
10166
|
return ScrollToElement(elementId);
|
|
@@ -10420,11 +10170,11 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
10420
10170
|
}
|
|
10421
10171
|
|
|
10422
10172
|
var linkRel = (href && checkNoFollow(href, nofollow)) + ' ' + (href && blank && !checkBaseUrl(href) ? 'noreferrer noopener' : '');
|
|
10423
|
-
return href ? linkRel.trim().length > 0 ?
|
|
10173
|
+
return href ? linkRel.trim().length > 0 ? React.createElement(
|
|
10424
10174
|
'a',
|
|
10425
10175
|
_extends({ rel: linkRel.trim(), href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10426
10176
|
children
|
|
10427
|
-
) :
|
|
10177
|
+
) : React.createElement(
|
|
10428
10178
|
'a',
|
|
10429
10179
|
_extends({ href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10430
10180
|
children
|
|
@@ -10489,12 +10239,12 @@ var getSerializers = function getSerializers() {
|
|
|
10489
10239
|
var node = _ref.node;
|
|
10490
10240
|
var url = node.url;
|
|
10491
10241
|
|
|
10492
|
-
return
|
|
10242
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
10493
10243
|
},
|
|
10494
10244
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
10495
10245
|
var node = _ref2.node;
|
|
10496
10246
|
|
|
10497
|
-
return
|
|
10247
|
+
return React.createElement(YouTubeGallery, {
|
|
10498
10248
|
nodes: node,
|
|
10499
10249
|
article: article,
|
|
10500
10250
|
meta: meta,
|
|
@@ -10508,7 +10258,7 @@ var getSerializers = function getSerializers() {
|
|
|
10508
10258
|
articleSeries: function articleSeries(_ref3) {
|
|
10509
10259
|
var node = _ref3.node;
|
|
10510
10260
|
|
|
10511
|
-
return
|
|
10261
|
+
return React.createElement(ArticleSeries, {
|
|
10512
10262
|
nodes: node,
|
|
10513
10263
|
accountIDs: videoAccountIDs || {},
|
|
10514
10264
|
pageview: pageview,
|
|
@@ -10521,61 +10271,61 @@ var getSerializers = function getSerializers() {
|
|
|
10521
10271
|
figure: function figure(_ref4) {
|
|
10522
10272
|
var node = _ref4.node;
|
|
10523
10273
|
|
|
10524
|
-
return
|
|
10274
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
10525
10275
|
},
|
|
10526
10276
|
multifigure: function multifigure(_ref5) {
|
|
10527
10277
|
var node = _ref5.node;
|
|
10528
10278
|
|
|
10529
|
-
return
|
|
10279
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10530
10280
|
},
|
|
10531
10281
|
slideshow: function slideshow(_ref6) {
|
|
10532
10282
|
var node = _ref6.node;
|
|
10533
10283
|
var slides = node.slides;
|
|
10534
10284
|
|
|
10535
|
-
return
|
|
10285
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
10536
10286
|
},
|
|
10537
10287
|
sidebar: function sidebar(_ref7) {
|
|
10538
10288
|
var node = _ref7.node;
|
|
10539
10289
|
var caption = node.caption,
|
|
10540
10290
|
content = node.content;
|
|
10541
10291
|
|
|
10542
|
-
return
|
|
10292
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
10543
10293
|
},
|
|
10544
10294
|
datatable: function datatable(_ref8) {
|
|
10545
10295
|
var node = _ref8.node;
|
|
10546
10296
|
var table = node.table;
|
|
10547
10297
|
|
|
10548
|
-
return
|
|
10298
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
10549
10299
|
},
|
|
10550
10300
|
media: function media(_ref9) {
|
|
10551
10301
|
var node = _ref9.node;
|
|
10552
10302
|
|
|
10553
|
-
return
|
|
10303
|
+
return React.createElement(Media, { node: node, client: client });
|
|
10554
10304
|
},
|
|
10555
10305
|
iframe: function iframe(_ref10) {
|
|
10556
10306
|
var node = _ref10.node;
|
|
10557
10307
|
|
|
10558
|
-
return
|
|
10308
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10559
10309
|
},
|
|
10560
10310
|
video: function video(_ref11) {
|
|
10561
10311
|
var node = _ref11.node;
|
|
10562
10312
|
|
|
10563
|
-
return
|
|
10313
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
|
|
10564
10314
|
},
|
|
10565
10315
|
audio: function audio(_ref12) {
|
|
10566
10316
|
var node = _ref12.node;
|
|
10567
10317
|
|
|
10568
|
-
return
|
|
10318
|
+
return React.createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
|
|
10569
10319
|
},
|
|
10570
10320
|
poll: function poll(_ref13) {
|
|
10571
10321
|
var node = _ref13.node;
|
|
10572
10322
|
|
|
10573
|
-
return
|
|
10323
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10574
10324
|
},
|
|
10575
10325
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10576
10326
|
var node = _ref14.node;
|
|
10577
10327
|
|
|
10578
|
-
return
|
|
10328
|
+
return React.createElement(Poll$1, {
|
|
10579
10329
|
node: node,
|
|
10580
10330
|
client: client,
|
|
10581
10331
|
pageview: pageview,
|
|
@@ -10589,35 +10339,35 @@ var getSerializers = function getSerializers() {
|
|
|
10589
10339
|
var node = _ref15.node;
|
|
10590
10340
|
var quizzes = node.quizzes;
|
|
10591
10341
|
|
|
10592
|
-
return
|
|
10342
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10593
10343
|
},
|
|
10594
10344
|
leads: function leads(_ref16) {
|
|
10595
10345
|
var node = _ref16.node;
|
|
10596
10346
|
var leadID = node.leadID;
|
|
10597
10347
|
|
|
10598
10348
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10599
|
-
return
|
|
10349
|
+
return React.createElement(Leads, { url: url });
|
|
10600
10350
|
},
|
|
10601
10351
|
slideshows: function slideshows(_ref17) {
|
|
10602
10352
|
var node = _ref17.node;
|
|
10603
10353
|
|
|
10604
|
-
return
|
|
10354
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10605
10355
|
},
|
|
10606
10356
|
nativeAd: function nativeAd(_ref18) {
|
|
10607
10357
|
var node = _ref18.node;
|
|
10608
10358
|
|
|
10609
|
-
return
|
|
10359
|
+
return React.createElement(NativeAd, { node: node });
|
|
10610
10360
|
},
|
|
10611
10361
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10612
10362
|
var node = _ref19.node;
|
|
10613
10363
|
|
|
10614
|
-
return
|
|
10364
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10615
10365
|
},
|
|
10616
10366
|
hrtag: function hrtag() {
|
|
10617
|
-
return
|
|
10367
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10618
10368
|
},
|
|
10619
10369
|
brtag: function brtag() {
|
|
10620
|
-
return
|
|
10370
|
+
return React.createElement('br', { className: 'line-break' });
|
|
10621
10371
|
},
|
|
10622
10372
|
formstack: function formstack(_ref20) {
|
|
10623
10373
|
var node = _ref20.node;
|
|
@@ -10625,30 +10375,30 @@ var getSerializers = function getSerializers() {
|
|
|
10625
10375
|
Caption = node.Caption,
|
|
10626
10376
|
needSegmentSupport = node.needSegmentSupport;
|
|
10627
10377
|
|
|
10628
|
-
return
|
|
10378
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10629
10379
|
},
|
|
10630
10380
|
formassembly: FormAssembly,
|
|
10631
10381
|
digiohSmartTag: DigiohSmartTag,
|
|
10632
10382
|
multimedia: function multimedia(_ref21) {
|
|
10633
10383
|
var node = _ref21.node;
|
|
10634
10384
|
|
|
10635
|
-
return
|
|
10385
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
10636
10386
|
},
|
|
10637
10387
|
blockTable: function blockTable(_ref22) {
|
|
10638
10388
|
var node = _ref22.node;
|
|
10639
|
-
return
|
|
10389
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10640
10390
|
}
|
|
10641
10391
|
},
|
|
10642
10392
|
marks: {
|
|
10643
10393
|
superscript: function superscript(props) {
|
|
10644
|
-
return
|
|
10394
|
+
return React.createElement(
|
|
10645
10395
|
'sup',
|
|
10646
10396
|
null,
|
|
10647
10397
|
props.children
|
|
10648
10398
|
);
|
|
10649
10399
|
},
|
|
10650
10400
|
subscript: function subscript(props) {
|
|
10651
|
-
return
|
|
10401
|
+
return React.createElement(
|
|
10652
10402
|
'sub',
|
|
10653
10403
|
null,
|
|
10654
10404
|
props.children
|
|
@@ -10658,11 +10408,11 @@ var getSerializers = function getSerializers() {
|
|
|
10658
10408
|
var children = props.children,
|
|
10659
10409
|
mark = props.mark;
|
|
10660
10410
|
|
|
10661
|
-
return
|
|
10411
|
+
return React.createElement(ExternalLink, { children: children, mark: mark, articleId: articleId });
|
|
10662
10412
|
},
|
|
10663
10413
|
alignleft: function alignleft(_ref23) {
|
|
10664
10414
|
var children = _ref23.children;
|
|
10665
|
-
return
|
|
10415
|
+
return React.createElement(
|
|
10666
10416
|
'div',
|
|
10667
10417
|
{ style: { textAlign: 'left' } },
|
|
10668
10418
|
children
|
|
@@ -10670,7 +10420,7 @@ var getSerializers = function getSerializers() {
|
|
|
10670
10420
|
},
|
|
10671
10421
|
alignright: function alignright(_ref24) {
|
|
10672
10422
|
var children = _ref24.children;
|
|
10673
|
-
return
|
|
10423
|
+
return React.createElement(
|
|
10674
10424
|
'div',
|
|
10675
10425
|
{ style: { textAlign: 'right' } },
|
|
10676
10426
|
children
|
|
@@ -10678,7 +10428,7 @@ var getSerializers = function getSerializers() {
|
|
|
10678
10428
|
},
|
|
10679
10429
|
aligncenter: function aligncenter(_ref25) {
|
|
10680
10430
|
var children = _ref25.children;
|
|
10681
|
-
return
|
|
10431
|
+
return React.createElement(
|
|
10682
10432
|
'div',
|
|
10683
10433
|
{ style: { textAlign: 'center' } },
|
|
10684
10434
|
children
|
|
@@ -10686,7 +10436,7 @@ var getSerializers = function getSerializers() {
|
|
|
10686
10436
|
},
|
|
10687
10437
|
alignjustify: function alignjustify(_ref26) {
|
|
10688
10438
|
var children = _ref26.children;
|
|
10689
|
-
return
|
|
10439
|
+
return React.createElement(
|
|
10690
10440
|
'div',
|
|
10691
10441
|
{ style: { textAlign: 'justify' } },
|
|
10692
10442
|
children
|
|
@@ -10696,7 +10446,7 @@ var getSerializers = function getSerializers() {
|
|
|
10696
10446
|
var children = props.children,
|
|
10697
10447
|
color = props.mark.color;
|
|
10698
10448
|
|
|
10699
|
-
return
|
|
10449
|
+
return React.createElement(
|
|
10700
10450
|
'span',
|
|
10701
10451
|
{ style: { color: color ? color.hex : null } },
|
|
10702
10452
|
children
|