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