@mjhls/mjh-framework 1.0.849 → 1.0.850-affiliatefix-v1
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 +1 -1
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +24 -23
- package/dist/cjs/AD300x250x600.js +24 -23
- package/dist/cjs/AD728x90.js +27 -26
- package/dist/cjs/ADFloatingFooter.js +23 -22
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +23 -22
- package/dist/cjs/{ADInfeed-86e987a0.js → ADInfeed-859820d9.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +23 -22
- package/dist/cjs/ADSponsoredResources.js +23 -22
- package/dist/cjs/ADWebcast.js +23 -22
- package/dist/cjs/ADWelcome.js +20 -19
- package/dist/cjs/{ADlgInfeed-5d6f91d7.js → ADlgInfeed-da3a36a6.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +24 -91
- package/dist/cjs/AdSlotsProvider.js +18 -27
- package/dist/cjs/AlgoliaSearch.js +14088 -30
- package/dist/cjs/AlphabeticList.js +10 -10
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +50 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +32 -31
- package/dist/cjs/ArticleSeriesListing.js +33 -32
- package/dist/cjs/Auth.js +484 -348
- package/dist/cjs/AuthWrapper.js +1866 -15
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-c21aac7f.js} +1 -1
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-36e54d77.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +8 -8
- package/dist/cjs/CMEDeck.js +25 -24
- package/dist/cjs/Column2.js +16 -16
- package/dist/cjs/Column3.js +33 -32
- package/dist/cjs/ConferenceArticleCard.js +7 -7
- package/dist/cjs/DeckContent.js +34 -33
- package/dist/cjs/DeckQueue.js +33 -32
- package/dist/cjs/{Dfp-0bf098b5.js → Dfp-93399f8c.js} +15 -14
- package/dist/cjs/EventsDeck.js +28 -28
- package/dist/cjs/ExternalResources.js +47 -47
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +12 -12
- package/dist/cjs/GridContent.js +84 -202
- package/dist/cjs/GridHero.js +13 -13
- package/dist/cjs/GroupDeck.js +14 -14
- package/dist/cjs/HamMagazine.js +28 -28
- package/dist/cjs/Hero.js +4 -4
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +47 -47
- package/dist/cjs/HorizontalHero.js +5 -5
- package/dist/cjs/IssueContentDeck.js +13 -13
- package/dist/cjs/IssueDeck.js +16 -16
- package/dist/cjs/IssueLanding.js +56 -56
- package/dist/cjs/LeftNav.js +22 -21
- package/dist/cjs/MasterDeck.js +33 -32
- package/dist/cjs/MediaSeriesLanding.js +1054 -855
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +31 -31
- package/dist/cjs/NavNative.js +38 -38
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +13 -13
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +66 -1258
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +35 -34
- package/dist/cjs/PubToc.js +8 -8
- package/dist/cjs/PublicationDeck.js +8 -8
- package/dist/cjs/PublicationLanding.js +28 -28
- package/dist/cjs/QueueDeckExpanded.js +38 -37
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +7 -7
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +20 -19
- package/dist/cjs/{SeriesSlider-60fa1342.js → SeriesSlider-34c6cc2b.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +15 -15
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-948138c7.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +10 -10
- package/dist/cjs/TaxonomyDescription.js +46 -46
- package/dist/cjs/TemplateNormal.js +48 -47
- package/dist/cjs/ThumbnailCard.js +7 -7
- package/dist/cjs/Ustream.js +14 -14
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoProgramLandingPage.js +52 -52
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +38 -37
- package/dist/cjs/VideoSeriesListing.js +35 -36
- package/dist/cjs/View.js +91 -173
- package/dist/cjs/YahooHero.js +15 -15
- package/dist/cjs/YoutubeGroup.js +22 -22
- package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-60837c34.js → extends-29bdbc6d.js} +8 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +135 -71
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +46 -46
- package/dist/cjs/{getTargeting-3e45e4d4.js → getTargeting-be6168ad.js} +8 -17
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-80e98193.js → index-060c5d65.js} +438 -245
- package/dist/cjs/index-50be6759.js +105 -0
- package/dist/cjs/{index-9d365128.js → index-eadd5035.js} +7 -7
- package/dist/cjs/{index-b5eb3ff8.js → index-efca863c.js} +16 -11
- 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-974f47d9.js → index.esm-00a6aade.js} +1 -1
- 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-05850a2f.js → index.esm-f27f80d9.js} +1 -1
- package/dist/cjs/index.js +139 -137
- package/dist/cjs/{inherits-87492b40.js → inherits-c2065b95.js} +22 -19
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- 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-8f385299.js → slicedToArray-5d1bc3b3.js} +14 -14
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/cjs/{typeof-9d7f610f.js → typeof-88a668c5.js} +35 -35
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-b2b9092f.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +27 -26
- package/dist/esm/AD300x250x600.js +27 -26
- package/dist/esm/AD728x90.js +30 -29
- package/dist/esm/ADFloatingFooter.js +29 -28
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -28
- package/dist/esm/{ADInfeed-4096aff2.js → ADInfeed-4bf3b2f9.js} +9 -9
- package/dist/esm/ADSkyscraper.js +29 -28
- package/dist/esm/ADSponsoredResources.js +29 -28
- package/dist/esm/ADWebcast.js +29 -28
- package/dist/esm/ADWelcome.js +30 -29
- package/dist/esm/{ADlgInfeed-8e4fcfbd.js → ADlgInfeed-a3377c4a.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +27 -94
- package/dist/esm/AdSlotsProvider.js +19 -28
- package/dist/esm/AlgoliaSearch.js +14108 -50
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +56 -56
- package/dist/esm/ArticleSeriesLandingPage.js +38 -37
- package/dist/esm/ArticleSeriesListing.js +57 -56
- package/dist/esm/Auth.js +554 -418
- package/dist/esm/AuthWrapper.js +1880 -28
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-30aeba69.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-c99c9a8d.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +80 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +27 -27
- package/dist/esm/Column3.js +52 -51
- package/dist/esm/ConferenceArticleCard.js +20 -20
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +79 -78
- package/dist/esm/DeckQueue.js +71 -70
- package/dist/esm/{Dfp-85c9513e.js → Dfp-2c43d2a0.js} +23 -22
- package/dist/esm/EventsDeck.js +88 -88
- package/dist/esm/ExternalResources.js +73 -73
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +144 -261
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +105 -105
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +69 -69
- package/dist/esm/HorizontalHero.js +23 -23
- package/dist/esm/IssueContentDeck.js +50 -50
- package/dist/esm/IssueDeck.js +47 -47
- package/dist/esm/IssueLanding.js +64 -64
- package/dist/esm/LeftNav.js +35 -34
- package/dist/esm/MasterDeck.js +66 -65
- package/dist/esm/MediaSeriesLanding.js +1073 -874
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -113
- package/dist/esm/NavNative.js +109 -109
- package/dist/esm/OncliveHero.js +16 -16
- package/dist/esm/OncliveLargeHero.js +60 -60
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +114 -1305
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +40 -39
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +39 -39
- package/dist/esm/PublicationLanding.js +75 -75
- package/dist/esm/QueueDeckExpanded.js +276 -275
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +20 -20
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +33 -32
- package/dist/esm/{SeriesSlider-05ecb544.js → SeriesSlider-5d5c08f4.js} +27 -27
- 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-47815365.js → SocialSearchComponent-db963c3e.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +42 -42
- package/dist/esm/TaxonomyDescription.js +50 -50
- package/dist/esm/TemplateNormal.js +68 -67
- package/dist/esm/ThumbnailCard.js +14 -14
- package/dist/esm/Ustream.js +27 -27
- package/dist/esm/VerticalHero.js +14 -14
- package/dist/esm/VideoProgramLandingPage.js +64 -64
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +43 -42
- package/dist/esm/VideoSeriesListing.js +75 -76
- package/dist/esm/View.js +243 -325
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +47 -47
- package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
- 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-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-eb69e8ac.js → extends-60e0e1c6.js} +8 -8
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +135 -71
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +46 -46
- package/dist/esm/{getTargeting-9cb7e014.js → getTargeting-68291ce9.js} +8 -17
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-295b6942.js → index-01d53c17.js} +759 -565
- package/dist/esm/{index-51a80699.js → index-0dbff1d1.js} +16 -11
- 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-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-a8ff922c.js → index.esm-d4932dea.js} +1 -1
- package/dist/esm/{index.esm-3fdda599.js → index.esm-f6156a57.js} +1 -1
- package/dist/esm/index.js +135 -133
- package/dist/esm/{inherits-0d8cda6e.js → inherits-a41fe93f.js} +20 -20
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-ec8c6b48.js → lodash-f97fd99a.js} +58 -10
- package/dist/esm/main-d4165069.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-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/dist/esm/{typeof-af9c50d8.js → typeof-a286cf0c.js} +35 -35
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-33a866b6.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/main-7b5e57b0.js +0 -898
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/main-747e7d25.js +0 -886
- package/dist/esm/stringify-4330ccdc.js +0 -15
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
3
|
-
import {
|
|
4
|
-
import { _ as _extends } from './extends-eb69e8ac.js';
|
|
5
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-0d8cda6e.js';
|
|
6
|
-
import { _ as _typeof$1 } from './typeof-af9c50d8.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';
|
|
1
|
+
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
2
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-be2f7a22.js';
|
|
3
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
14
4
|
import urlFor from './urlFor.js';
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
|
-
import Segment from './Segment.js';
|
|
20
|
-
import Beam from './Beam.js';
|
|
21
|
-
import DFPAdSlot from './AdSlot.js';
|
|
22
|
-
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
-
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';
|
|
24
7
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
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-3ab476bf.js';
|
|
11
|
+
import Beam from './Beam.js';
|
|
12
|
+
import Segment from './Segment.js';
|
|
13
|
+
import { d as main_18, b as main_42, m as main_43 } from './main-d4165069.js';
|
|
14
|
+
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
15
|
+
import { _ as _extends, b as _extends$1 } from './extends-60e0e1c6.js';
|
|
16
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
17
|
+
import { _ as _typeof$1 } from './typeof-a286cf0c.js';
|
|
18
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
|
|
25
19
|
import GroupDeck from './GroupDeck.js';
|
|
26
|
-
import {
|
|
27
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
28
|
-
import { u as util } from './util-7700fc59.js';
|
|
29
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
|
|
30
|
-
import Head from 'next/head';
|
|
20
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
31
21
|
import SocialShare from './SocialShare.js';
|
|
32
|
-
import { _ as
|
|
22
|
+
import { _ as _export, a as _core } from './_to-object-b50e61c3.js';
|
|
23
|
+
import { _ as _objectToArray } from './_object-to-array-0f197f89.js';
|
|
24
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
33
25
|
import Pagination from 'react-bootstrap/Pagination';
|
|
26
|
+
import Button$1 from 'react-bootstrap/Button';
|
|
27
|
+
import { h as html_decode_1 } from './entities-932b50cf.js';
|
|
28
|
+
import DFPAdSlot from './AdSlot.js';
|
|
29
|
+
import Row$1 from 'react-bootstrap/Row';
|
|
30
|
+
import Col$1 from 'react-bootstrap/Col';
|
|
31
|
+
import Head from 'next/head';
|
|
32
|
+
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-a41fe93f.js';
|
|
33
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-f6156a57.js';
|
|
34
34
|
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
|
-
import ScriptTag from 'react-script-tag';
|
|
36
35
|
|
|
37
36
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
38
37
|
var pageNumber = selectedIndex + 1;
|
|
@@ -40,7 +39,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
40
39
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
41
40
|
};
|
|
42
41
|
|
|
43
|
-
var Slideshow = function Slideshow(_ref) {
|
|
42
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
44
43
|
var slides = _ref.slides,
|
|
45
44
|
client = _ref.client,
|
|
46
45
|
pageview = _ref.pageview;
|
|
@@ -67,27 +66,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
67
66
|
if (pageview) pageview(router.asPath);
|
|
68
67
|
}, [router]);
|
|
69
68
|
|
|
70
|
-
return
|
|
69
|
+
return React__default.createElement(
|
|
71
70
|
'div',
|
|
72
71
|
{ className: 'mt-3 mb-3' },
|
|
73
|
-
|
|
72
|
+
React__default.createElement(
|
|
74
73
|
Carousel,
|
|
75
74
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
76
75
|
return onChangeSlide(selectedIndex, router);
|
|
77
76
|
}, interval: null },
|
|
78
77
|
slides && slides.map(function (slide) {
|
|
79
|
-
return
|
|
78
|
+
return React__default.createElement(
|
|
80
79
|
Carousel.Item,
|
|
81
80
|
{ key: slide._key },
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
null,
|
|
85
|
-
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
86
|
-
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
87
|
-
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
88
|
-
React.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
89
|
-
),
|
|
90
|
-
slide.caption && React.createElement(
|
|
81
|
+
React__default.createElement('img', { src: slide.asset && urlFor({ source: slide.asset, client: client }), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
82
|
+
slide.caption && React__default.createElement(
|
|
91
83
|
'p',
|
|
92
84
|
{ className: 'p-2' },
|
|
93
85
|
slide.caption
|
|
@@ -677,14 +669,14 @@ function coerce(val) {
|
|
|
677
669
|
return val;
|
|
678
670
|
}
|
|
679
671
|
});
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
672
|
+
debug.coerce;
|
|
673
|
+
debug.disable;
|
|
674
|
+
debug.enable;
|
|
675
|
+
debug.enabled;
|
|
676
|
+
debug.humanize;
|
|
677
|
+
debug.names;
|
|
678
|
+
debug.skips;
|
|
679
|
+
debug.formatters;
|
|
688
680
|
|
|
689
681
|
var browser = createCommonjsModule(function (module, exports) {
|
|
690
682
|
/**
|
|
@@ -873,13 +865,13 @@ function localstorage() {
|
|
|
873
865
|
} catch (e) {}
|
|
874
866
|
}
|
|
875
867
|
});
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
868
|
+
browser.log;
|
|
869
|
+
browser.formatArgs;
|
|
870
|
+
browser.save;
|
|
871
|
+
browser.load;
|
|
872
|
+
browser.useColors;
|
|
873
|
+
browser.storage;
|
|
874
|
+
browser.colors;
|
|
883
875
|
|
|
884
876
|
// MIT lisence
|
|
885
877
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1154,14 +1146,14 @@ function init (debug) {
|
|
|
1154
1146
|
|
|
1155
1147
|
exports.enable(load());
|
|
1156
1148
|
});
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1149
|
+
node.init;
|
|
1150
|
+
node.log;
|
|
1151
|
+
node.formatArgs;
|
|
1152
|
+
node.save;
|
|
1153
|
+
node.load;
|
|
1154
|
+
node.useColors;
|
|
1155
|
+
node.colors;
|
|
1156
|
+
node.inspectOpts;
|
|
1165
1157
|
|
|
1166
1158
|
var src = createCommonjsModule(function (module) {
|
|
1167
1159
|
/**
|
|
@@ -1619,11 +1611,11 @@ function shouldUpdateVideo(prevProps, props) {
|
|
|
1619
1611
|
|
|
1620
1612
|
function filterResetOptions(opts) {
|
|
1621
1613
|
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1622
|
-
playerVars: _objectSpread(
|
|
1614
|
+
playerVars: _objectSpread({
|
|
1623
1615
|
autoplay: 0,
|
|
1624
1616
|
start: 0,
|
|
1625
1617
|
end: 0
|
|
1626
|
-
})
|
|
1618
|
+
}, opts.playerVars)
|
|
1627
1619
|
});
|
|
1628
1620
|
}
|
|
1629
1621
|
/**
|
|
@@ -1829,9 +1821,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1829
1821
|
}, {
|
|
1830
1822
|
key: "render",
|
|
1831
1823
|
value: function render() {
|
|
1832
|
-
return /*#__PURE__*/
|
|
1824
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1833
1825
|
className: this.props.containerClassName
|
|
1834
|
-
}, /*#__PURE__*/
|
|
1826
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1835
1827
|
id: this.props.id,
|
|
1836
1828
|
className: this.props.className,
|
|
1837
1829
|
ref: this.refContainer
|
|
@@ -1840,7 +1832,7 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1840
1832
|
}]);
|
|
1841
1833
|
|
|
1842
1834
|
return YouTube;
|
|
1843
|
-
}(
|
|
1835
|
+
}(React__default.Component);
|
|
1844
1836
|
|
|
1845
1837
|
_defineProperty(YouTube, "PlayerState", {
|
|
1846
1838
|
UNSTARTED: -1,
|
|
@@ -1924,8 +1916,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1924
1916
|
var duration = player.getDuration();
|
|
1925
1917
|
var queue = Math.floor(duration / 10);
|
|
1926
1918
|
var segment = Math.floor(current / queue);
|
|
1927
|
-
Beam.report_beam_video('Ready',
|
|
1928
|
-
Segment.report_video_event('Video Ready',
|
|
1919
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
1920
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
1929
1921
|
};
|
|
1930
1922
|
|
|
1931
1923
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1935,8 +1927,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1935
1927
|
var segment = Math.floor(current / queue);
|
|
1936
1928
|
|
|
1937
1929
|
if (!queueProgress.includes(segment)) {
|
|
1938
|
-
Beam.report_beam_video('Segment',
|
|
1939
|
-
Segment.report_video_event('Video Segment',
|
|
1930
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
1931
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
1940
1932
|
queueProgress.push(segment);
|
|
1941
1933
|
}
|
|
1942
1934
|
};
|
|
@@ -1949,8 +1941,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1949
1941
|
var queue = Math.floor(duration / 10);
|
|
1950
1942
|
var segment = Math.floor(current / queue);
|
|
1951
1943
|
|
|
1952
|
-
Beam.report_beam_video('Play',
|
|
1953
|
-
Segment.report_video_event('Video Play',
|
|
1944
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
1945
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
1954
1946
|
|
|
1955
1947
|
if (!playReported) {
|
|
1956
1948
|
setPlayReported(true);
|
|
@@ -1969,8 +1961,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1969
1961
|
var queue = Math.floor(duration / 10);
|
|
1970
1962
|
var segment = Math.floor(current / queue);
|
|
1971
1963
|
|
|
1972
|
-
Beam.report_beam_video('End',
|
|
1973
|
-
Segment.report_video_event('Video End',
|
|
1964
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
1965
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
1974
1966
|
setEndReported(true);
|
|
1975
1967
|
clearInterval(intervalID);
|
|
1976
1968
|
}
|
|
@@ -1983,15 +1975,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1983
1975
|
var queue = Math.floor(duration / 10);
|
|
1984
1976
|
var segment = Math.floor(current / queue);
|
|
1985
1977
|
|
|
1986
|
-
Beam.report_beam_video('Pause',
|
|
1987
|
-
Segment.report_video_event('Video Pause',
|
|
1978
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
1979
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
1988
1980
|
};
|
|
1989
1981
|
|
|
1990
|
-
return
|
|
1982
|
+
return React__default.createElement(
|
|
1991
1983
|
'div',
|
|
1992
1984
|
{ id: 'fluid-video-container' },
|
|
1993
|
-
|
|
1994
|
-
|
|
1985
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1986
|
+
React__default.createElement(
|
|
1995
1987
|
'style',
|
|
1996
1988
|
{ jsx: 'true' },
|
|
1997
1989
|
'\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 '
|
|
@@ -2004,20 +1996,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2004
1996
|
content = _ref.content,
|
|
2005
1997
|
getSerializers = _ref.getSerializers;
|
|
2006
1998
|
|
|
2007
|
-
return
|
|
1999
|
+
return React__default.createElement(
|
|
2008
2000
|
'article',
|
|
2009
2001
|
{ className: 'sidebar' },
|
|
2010
|
-
|
|
2002
|
+
React__default.createElement(
|
|
2011
2003
|
'div',
|
|
2012
2004
|
null,
|
|
2013
|
-
|
|
2005
|
+
React__default.createElement(
|
|
2014
2006
|
'h3',
|
|
2015
2007
|
null,
|
|
2016
2008
|
caption
|
|
2017
2009
|
),
|
|
2018
|
-
|
|
2010
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2019
2011
|
),
|
|
2020
|
-
|
|
2012
|
+
React__default.createElement(
|
|
2021
2013
|
'style',
|
|
2022
2014
|
{ jsx: 'true' },
|
|
2023
2015
|
'\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 '
|
|
@@ -2028,18 +2020,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2028
2020
|
var TableShow = function TableShow(_ref) {
|
|
2029
2021
|
var rows = _ref.rows;
|
|
2030
2022
|
|
|
2031
|
-
return
|
|
2023
|
+
return React__default.createElement(
|
|
2032
2024
|
Table,
|
|
2033
2025
|
{ bordered: true, hover: true, responsive: true },
|
|
2034
|
-
|
|
2026
|
+
React__default.createElement(
|
|
2035
2027
|
'tbody',
|
|
2036
2028
|
null,
|
|
2037
2029
|
rows && rows.map(function (row) {
|
|
2038
|
-
return
|
|
2030
|
+
return React__default.createElement(
|
|
2039
2031
|
'tr',
|
|
2040
2032
|
{ key: row._key },
|
|
2041
2033
|
row.cells && row.cells.map(function (cell, index) {
|
|
2042
|
-
return cell &&
|
|
2034
|
+
return cell && React__default.createElement(
|
|
2043
2035
|
'td',
|
|
2044
2036
|
{ key: index },
|
|
2045
2037
|
cell
|
|
@@ -2137,25 +2129,18 @@ var Media = function Media(_ref) {
|
|
|
2137
2129
|
margin: imageMargin
|
|
2138
2130
|
};
|
|
2139
2131
|
|
|
2140
|
-
return
|
|
2132
|
+
return React__default.createElement(
|
|
2141
2133
|
Figure$1,
|
|
2142
2134
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2143
|
-
|
|
2135
|
+
React__default.createElement(
|
|
2144
2136
|
'a',
|
|
2145
2137
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2146
|
-
|
|
2138
|
+
React__default.createElement(
|
|
2147
2139
|
LazyLoad,
|
|
2148
2140
|
{ once: true },
|
|
2149
|
-
|
|
2150
|
-
'picture',
|
|
2151
|
-
null,
|
|
2152
|
-
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2153
|
-
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2154
|
-
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2155
|
-
React.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2156
|
-
)
|
|
2141
|
+
React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2157
2142
|
),
|
|
2158
|
-
caption &&
|
|
2143
|
+
caption && React__default.createElement(
|
|
2159
2144
|
Figure$1.Caption,
|
|
2160
2145
|
{ className: 'media-caption' },
|
|
2161
2146
|
caption
|
|
@@ -2163,7 +2148,7 @@ var Media = function Media(_ref) {
|
|
|
2163
2148
|
)
|
|
2164
2149
|
);
|
|
2165
2150
|
} else if (caption && caption !== '') {
|
|
2166
|
-
return
|
|
2151
|
+
return React__default.createElement(
|
|
2167
2152
|
'a',
|
|
2168
2153
|
_extends({}, uploadDoc.downloadMedia ? {
|
|
2169
2154
|
href: uploadDoc.asset.url + '?dl='
|
|
@@ -2183,10 +2168,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2183
2168
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2184
2169
|
|
|
2185
2170
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2186
|
-
return
|
|
2171
|
+
return React__default.createElement(
|
|
2187
2172
|
'div',
|
|
2188
2173
|
{ className: 'd-block text-center mb-3' },
|
|
2189
|
-
|
|
2174
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2190
2175
|
);
|
|
2191
2176
|
};
|
|
2192
2177
|
|
|
@@ -2220,8 +2205,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2220
2205
|
var duration = player.duration;
|
|
2221
2206
|
var queue = Math.floor(duration / 10);
|
|
2222
2207
|
var segment = Math.floor(current / queue);
|
|
2223
|
-
Beam.report_beam_video('Ready',
|
|
2224
|
-
Segment.report_video_event('Video Ready',
|
|
2208
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
|
|
2209
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
|
|
2225
2210
|
};
|
|
2226
2211
|
|
|
2227
2212
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2230,8 +2215,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2230
2215
|
var queue = Math.floor(duration / 10);
|
|
2231
2216
|
var segment = Math.floor(current / queue);
|
|
2232
2217
|
if (!queueProgress.includes(segment)) {
|
|
2233
|
-
Beam.report_beam_video('Segment',
|
|
2234
|
-
Segment.report_video_event('Video Segment',
|
|
2218
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
|
|
2219
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
|
|
2235
2220
|
queueProgress.push(segment);
|
|
2236
2221
|
}
|
|
2237
2222
|
};
|
|
@@ -2243,8 +2228,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2243
2228
|
var duration = player.duration;
|
|
2244
2229
|
var queue = Math.floor(duration / 10);
|
|
2245
2230
|
var segment = Math.floor(current / queue);
|
|
2246
|
-
Beam.report_beam_video('Play',
|
|
2247
|
-
Segment.report_video_event('Video Play',
|
|
2231
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
|
|
2232
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
|
|
2248
2233
|
|
|
2249
2234
|
if (!playReported) {
|
|
2250
2235
|
event.persist();
|
|
@@ -2264,8 +2249,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2264
2249
|
var queue = Math.floor(duration / 10);
|
|
2265
2250
|
var segment = Math.floor(current / queue);
|
|
2266
2251
|
|
|
2267
|
-
Beam.report_beam_video('End',
|
|
2268
|
-
Segment.report_video_event('Video End',
|
|
2252
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
|
|
2253
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
|
|
2269
2254
|
setEndReported(true);
|
|
2270
2255
|
clearInterval(intervalID);
|
|
2271
2256
|
}
|
|
@@ -2277,14 +2262,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2277
2262
|
var duration = player.duration - current;
|
|
2278
2263
|
var queue = Math.floor(duration / 10);
|
|
2279
2264
|
var segment = Math.floor(current / queue);
|
|
2280
|
-
Beam.report_beam_video('Pause',
|
|
2281
|
-
Segment.report_video_event('Video Pause',
|
|
2265
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
|
|
2266
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
|
|
2282
2267
|
};
|
|
2283
2268
|
|
|
2284
|
-
return
|
|
2269
|
+
return React__default.createElement(
|
|
2285
2270
|
'div',
|
|
2286
2271
|
null,
|
|
2287
|
-
vidLoaded &&
|
|
2272
|
+
vidLoaded && React__default.createElement(
|
|
2288
2273
|
'video',
|
|
2289
2274
|
{
|
|
2290
2275
|
poster: thumbnail || '',
|
|
@@ -2302,7 +2287,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2302
2287
|
onPlay: function onPlay(e) {
|
|
2303
2288
|
return handleOnPlay(e);
|
|
2304
2289
|
} },
|
|
2305
|
-
|
|
2290
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2306
2291
|
'Your browser does not support the video tag.'
|
|
2307
2292
|
)
|
|
2308
2293
|
);
|
|
@@ -2367,8 +2352,8 @@ var Video = function Video(_ref) {
|
|
|
2367
2352
|
player.pause();
|
|
2368
2353
|
}
|
|
2369
2354
|
|
|
2370
|
-
Beam.report_beam_video('Ready',
|
|
2371
|
-
Segment.report_video_event('Video Ready',
|
|
2355
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2356
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2372
2357
|
});
|
|
2373
2358
|
|
|
2374
2359
|
// play
|
|
@@ -2377,8 +2362,8 @@ var Video = function Video(_ref) {
|
|
|
2377
2362
|
var current = player.currentTime();
|
|
2378
2363
|
var queue = Math.floor(duration / 10);
|
|
2379
2364
|
var segment = Math.floor(current / queue);
|
|
2380
|
-
Beam.report_beam_video('Play',
|
|
2381
|
-
Segment.report_video_event('Video Play',
|
|
2365
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2366
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2382
2367
|
});
|
|
2383
2368
|
|
|
2384
2369
|
// pause
|
|
@@ -2387,8 +2372,8 @@ var Video = function Video(_ref) {
|
|
|
2387
2372
|
var current = player.currentTime();
|
|
2388
2373
|
var queue = Math.floor(duration / 10);
|
|
2389
2374
|
var segment = Math.floor(current / queue);
|
|
2390
|
-
Beam.report_beam_video('Pause',
|
|
2391
|
-
Segment.report_video_event('Video Pause',
|
|
2375
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2376
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2392
2377
|
});
|
|
2393
2378
|
|
|
2394
2379
|
// end
|
|
@@ -2397,8 +2382,8 @@ var Video = function Video(_ref) {
|
|
|
2397
2382
|
var current = player.currentTime();
|
|
2398
2383
|
var queue = Math.floor(duration / 10);
|
|
2399
2384
|
var segment = Math.floor(current / queue);
|
|
2400
|
-
Beam.report_beam_video('End',
|
|
2401
|
-
Segment.report_video_event('Video End',
|
|
2385
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2386
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2402
2387
|
autoplayNextVideo(evt);
|
|
2403
2388
|
});
|
|
2404
2389
|
|
|
@@ -2409,8 +2394,8 @@ var Video = function Video(_ref) {
|
|
|
2409
2394
|
var queue = Math.floor(duration / 10);
|
|
2410
2395
|
var segment = Math.floor(current / queue);
|
|
2411
2396
|
if (!queueProgress.includes(segment)) {
|
|
2412
|
-
Beam.report_beam_video('Segment',
|
|
2413
|
-
Segment.report_video_event('Video Segment',
|
|
2397
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2398
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2414
2399
|
queueProgress.push(segment);
|
|
2415
2400
|
}
|
|
2416
2401
|
});
|
|
@@ -2421,8 +2406,8 @@ var Video = function Video(_ref) {
|
|
|
2421
2406
|
var id = player.ads.ad.id;
|
|
2422
2407
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2423
2408
|
|
|
2424
|
-
Beam.report_beam_ad('AD Started',
|
|
2425
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2409
|
+
Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
|
|
2410
|
+
Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2426
2411
|
});
|
|
2427
2412
|
|
|
2428
2413
|
// ad ended
|
|
@@ -2430,60 +2415,60 @@ var Video = function Video(_ref) {
|
|
|
2430
2415
|
var duration = player.ads.ad.duration;
|
|
2431
2416
|
var id = player.ads.ad.id;
|
|
2432
2417
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2433
|
-
Beam.report_beam_ad('AD Ended',
|
|
2434
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2418
|
+
Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
|
|
2419
|
+
Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2435
2420
|
});
|
|
2436
2421
|
};
|
|
2437
2422
|
|
|
2438
2423
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2439
2424
|
if (videoID) {
|
|
2440
|
-
return
|
|
2425
|
+
return React__default.createElement(
|
|
2441
2426
|
'div',
|
|
2442
2427
|
null,
|
|
2443
|
-
|
|
2428
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2444
2429
|
onSuccess: onVideoSuccess,
|
|
2445
2430
|
accountId: accountIDs.brightcove.accountId,
|
|
2446
2431
|
videoId: videoID,
|
|
2447
2432
|
playerId: accountIDs.brightcove.playerId,
|
|
2448
2433
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2449
2434
|
}),
|
|
2450
|
-
|
|
2435
|
+
React__default.createElement(
|
|
2451
2436
|
'style',
|
|
2452
2437
|
{ jsx: 'true' },
|
|
2453
2438
|
'\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 '
|
|
2454
2439
|
)
|
|
2455
2440
|
);
|
|
2456
2441
|
} else if (playlistID) {
|
|
2457
|
-
return
|
|
2442
|
+
return React__default.createElement(
|
|
2458
2443
|
'div',
|
|
2459
2444
|
null,
|
|
2460
|
-
|
|
2445
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2461
2446
|
accountId: accountIDs.brightcove.accountId,
|
|
2462
2447
|
playlistId: playlistID,
|
|
2463
2448
|
playerId: accountIDs.brightcove.playerId,
|
|
2464
2449
|
onSuccess: onVideoSuccess,
|
|
2465
2450
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2466
2451
|
}),
|
|
2467
|
-
|
|
2452
|
+
React__default.createElement(
|
|
2468
2453
|
'style',
|
|
2469
2454
|
{ jsx: 'true' },
|
|
2470
2455
|
'\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 '
|
|
2471
2456
|
)
|
|
2472
2457
|
);
|
|
2473
2458
|
} else if (experienceID) {
|
|
2474
|
-
return
|
|
2459
|
+
return React__default.createElement(
|
|
2475
2460
|
'div',
|
|
2476
2461
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2477
|
-
videoLoaded &&
|
|
2462
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2478
2463
|
);
|
|
2479
2464
|
}
|
|
2480
2465
|
return null;
|
|
2481
2466
|
}
|
|
2482
2467
|
if (source === 'mp4') {
|
|
2483
|
-
return
|
|
2468
|
+
return React__default.createElement(
|
|
2484
2469
|
'div',
|
|
2485
2470
|
null,
|
|
2486
|
-
|
|
2471
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2487
2472
|
);
|
|
2488
2473
|
}
|
|
2489
2474
|
|
|
@@ -2694,9 +2679,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2694
2679
|
});
|
|
2695
2680
|
|
|
2696
2681
|
unwrapExports(props);
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2682
|
+
props.DEPRECATED_CONFIG_PROPS;
|
|
2683
|
+
props.defaultProps;
|
|
2684
|
+
props.propTypes;
|
|
2700
2685
|
|
|
2701
2686
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2702
2687
|
return isNonNullObject(value)
|
|
@@ -3088,7 +3073,7 @@ function isEqual(a, b) {
|
|
|
3088
3073
|
return true;
|
|
3089
3074
|
}
|
|
3090
3075
|
|
|
3091
|
-
if ((0,
|
|
3076
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3092
3077
|
return true;
|
|
3093
3078
|
}
|
|
3094
3079
|
|
|
@@ -3131,17 +3116,17 @@ function isMediaStream(url) {
|
|
|
3131
3116
|
});
|
|
3132
3117
|
|
|
3133
3118
|
unwrapExports(utils);
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3119
|
+
utils.parseStartTime;
|
|
3120
|
+
utils.parseEndTime;
|
|
3121
|
+
utils.randomString;
|
|
3122
|
+
utils.queryString;
|
|
3123
|
+
utils.getSDK;
|
|
3124
|
+
utils.getConfig;
|
|
3125
|
+
utils.omit;
|
|
3126
|
+
utils.callPlayer;
|
|
3127
|
+
utils.isObject;
|
|
3128
|
+
utils.isEqual;
|
|
3129
|
+
utils.isMediaStream;
|
|
3145
3130
|
|
|
3146
3131
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3147
3132
|
|
|
@@ -3150,7 +3135,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3150
3135
|
});
|
|
3151
3136
|
exports["default"] = void 0;
|
|
3152
3137
|
|
|
3153
|
-
var _react = _interopRequireWildcard(
|
|
3138
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3154
3139
|
|
|
3155
3140
|
|
|
3156
3141
|
|
|
@@ -3560,7 +3545,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3560
3545
|
});
|
|
3561
3546
|
exports["default"] = createSinglePlayer;
|
|
3562
3547
|
|
|
3563
|
-
var _react = _interopRequireWildcard(
|
|
3548
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3564
3549
|
|
|
3565
3550
|
|
|
3566
3551
|
|
|
@@ -3718,7 +3703,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3718
3703
|
});
|
|
3719
3704
|
exports["default"] = exports.YouTube = void 0;
|
|
3720
3705
|
|
|
3721
|
-
var _react = _interopRequireWildcard(
|
|
3706
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3722
3707
|
|
|
3723
3708
|
|
|
3724
3709
|
|
|
@@ -4018,7 +4003,7 @@ exports["default"] = _default;
|
|
|
4018
4003
|
});
|
|
4019
4004
|
|
|
4020
4005
|
unwrapExports(YouTube_1);
|
|
4021
|
-
|
|
4006
|
+
YouTube_1.YouTube;
|
|
4022
4007
|
|
|
4023
4008
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4024
4009
|
|
|
@@ -4027,7 +4012,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4027
4012
|
});
|
|
4028
4013
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4029
4014
|
|
|
4030
|
-
var _react = _interopRequireWildcard(
|
|
4015
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4031
4016
|
|
|
4032
4017
|
|
|
4033
4018
|
|
|
@@ -4235,7 +4220,7 @@ exports["default"] = _default;
|
|
|
4235
4220
|
});
|
|
4236
4221
|
|
|
4237
4222
|
unwrapExports(SoundCloud_1);
|
|
4238
|
-
|
|
4223
|
+
SoundCloud_1.SoundCloud;
|
|
4239
4224
|
|
|
4240
4225
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4241
4226
|
|
|
@@ -4244,7 +4229,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4244
4229
|
});
|
|
4245
4230
|
exports["default"] = exports.Vimeo = void 0;
|
|
4246
4231
|
|
|
4247
|
-
var _react = _interopRequireWildcard(
|
|
4232
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4248
4233
|
|
|
4249
4234
|
|
|
4250
4235
|
|
|
@@ -4491,7 +4476,7 @@ exports["default"] = _default;
|
|
|
4491
4476
|
});
|
|
4492
4477
|
|
|
4493
4478
|
unwrapExports(Vimeo_1);
|
|
4494
|
-
|
|
4479
|
+
Vimeo_1.Vimeo;
|
|
4495
4480
|
|
|
4496
4481
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4497
4482
|
|
|
@@ -4500,7 +4485,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4500
4485
|
});
|
|
4501
4486
|
exports["default"] = exports.Facebook = void 0;
|
|
4502
4487
|
|
|
4503
|
-
var _react = _interopRequireWildcard(
|
|
4488
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4504
4489
|
|
|
4505
4490
|
|
|
4506
4491
|
|
|
@@ -4703,7 +4688,7 @@ exports["default"] = _default;
|
|
|
4703
4688
|
});
|
|
4704
4689
|
|
|
4705
4690
|
unwrapExports(Facebook_1);
|
|
4706
|
-
|
|
4691
|
+
Facebook_1.Facebook;
|
|
4707
4692
|
|
|
4708
4693
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4709
4694
|
|
|
@@ -4712,7 +4697,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4712
4697
|
});
|
|
4713
4698
|
exports["default"] = exports.Streamable = void 0;
|
|
4714
4699
|
|
|
4715
|
-
var _react = _interopRequireWildcard(
|
|
4700
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4716
4701
|
|
|
4717
4702
|
|
|
4718
4703
|
|
|
@@ -4914,7 +4899,7 @@ exports["default"] = _default;
|
|
|
4914
4899
|
});
|
|
4915
4900
|
|
|
4916
4901
|
unwrapExports(Streamable_1);
|
|
4917
|
-
|
|
4902
|
+
Streamable_1.Streamable;
|
|
4918
4903
|
|
|
4919
4904
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4920
4905
|
|
|
@@ -4923,7 +4908,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4923
4908
|
});
|
|
4924
4909
|
exports["default"] = exports.Wistia = void 0;
|
|
4925
4910
|
|
|
4926
|
-
var _react = _interopRequireWildcard(
|
|
4911
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4927
4912
|
|
|
4928
4913
|
|
|
4929
4914
|
|
|
@@ -5157,7 +5142,7 @@ exports["default"] = _default;
|
|
|
5157
5142
|
});
|
|
5158
5143
|
|
|
5159
5144
|
unwrapExports(Wistia_1);
|
|
5160
|
-
|
|
5145
|
+
Wistia_1.Wistia;
|
|
5161
5146
|
|
|
5162
5147
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5163
5148
|
|
|
@@ -5166,7 +5151,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5166
5151
|
});
|
|
5167
5152
|
exports["default"] = exports.Twitch = void 0;
|
|
5168
5153
|
|
|
5169
|
-
var _react = _interopRequireWildcard(
|
|
5154
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5170
5155
|
|
|
5171
5156
|
|
|
5172
5157
|
|
|
@@ -5373,7 +5358,7 @@ exports["default"] = _default;
|
|
|
5373
5358
|
});
|
|
5374
5359
|
|
|
5375
5360
|
unwrapExports(Twitch_1);
|
|
5376
|
-
|
|
5361
|
+
Twitch_1.Twitch;
|
|
5377
5362
|
|
|
5378
5363
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5379
5364
|
|
|
@@ -5382,7 +5367,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5382
5367
|
});
|
|
5383
5368
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5384
5369
|
|
|
5385
|
-
var _react = _interopRequireWildcard(
|
|
5370
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5386
5371
|
|
|
5387
5372
|
|
|
5388
5373
|
|
|
@@ -5609,7 +5594,7 @@ exports["default"] = _default;
|
|
|
5609
5594
|
});
|
|
5610
5595
|
|
|
5611
5596
|
unwrapExports(DailyMotion_1);
|
|
5612
|
-
|
|
5597
|
+
DailyMotion_1.DailyMotion;
|
|
5613
5598
|
|
|
5614
5599
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5615
5600
|
|
|
@@ -5618,7 +5603,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5618
5603
|
});
|
|
5619
5604
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5620
5605
|
|
|
5621
|
-
var _react = _interopRequireWildcard(
|
|
5606
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5622
5607
|
|
|
5623
5608
|
|
|
5624
5609
|
|
|
@@ -5808,7 +5793,7 @@ exports["default"] = _default;
|
|
|
5808
5793
|
});
|
|
5809
5794
|
|
|
5810
5795
|
unwrapExports(Mixcloud_1);
|
|
5811
|
-
|
|
5796
|
+
Mixcloud_1.Mixcloud;
|
|
5812
5797
|
|
|
5813
5798
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5814
5799
|
|
|
@@ -5817,7 +5802,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5817
5802
|
});
|
|
5818
5803
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5819
5804
|
|
|
5820
|
-
var _react = _interopRequireWildcard(
|
|
5805
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5821
5806
|
|
|
5822
5807
|
|
|
5823
5808
|
|
|
@@ -6342,7 +6327,7 @@ exports["default"] = _default;
|
|
|
6342
6327
|
});
|
|
6343
6328
|
|
|
6344
6329
|
unwrapExports(FilePlayer_1);
|
|
6345
|
-
|
|
6330
|
+
FilePlayer_1.FilePlayer;
|
|
6346
6331
|
|
|
6347
6332
|
var players = createCommonjsModule(function (module, exports) {
|
|
6348
6333
|
|
|
@@ -6384,7 +6369,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6384
6369
|
});
|
|
6385
6370
|
exports["default"] = void 0;
|
|
6386
6371
|
|
|
6387
|
-
var _react = _interopRequireWildcard(
|
|
6372
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6388
6373
|
|
|
6389
6374
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6390
6375
|
|
|
@@ -6563,7 +6548,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6563
6548
|
});
|
|
6564
6549
|
exports["default"] = renderPreloadPlayers;
|
|
6565
6550
|
|
|
6566
|
-
var _react = _interopRequireDefault(
|
|
6551
|
+
var _react = _interopRequireDefault(React__default);
|
|
6567
6552
|
|
|
6568
6553
|
var _Player = _interopRequireDefault(Player_1);
|
|
6569
6554
|
|
|
@@ -6702,7 +6687,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6702
6687
|
});
|
|
6703
6688
|
exports["default"] = void 0;
|
|
6704
6689
|
|
|
6705
|
-
var _react = _interopRequireWildcard(
|
|
6690
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6706
6691
|
|
|
6707
6692
|
|
|
6708
6693
|
|
|
@@ -7016,20 +7001,20 @@ var Audio = function Audio(_ref) {
|
|
|
7016
7001
|
var node = _ref.node;
|
|
7017
7002
|
|
|
7018
7003
|
if (node.uploadAudio) {
|
|
7019
|
-
return
|
|
7004
|
+
return React__default.createElement(
|
|
7020
7005
|
'div',
|
|
7021
7006
|
{ className: 'audio d-block text-center mb-3' },
|
|
7022
|
-
|
|
7007
|
+
React__default.createElement(
|
|
7023
7008
|
'audio',
|
|
7024
7009
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7025
|
-
|
|
7026
|
-
|
|
7010
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7011
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7027
7012
|
'Your browser does not support the audio element.'
|
|
7028
7013
|
),
|
|
7029
|
-
node.caption &&
|
|
7014
|
+
node.caption && React__default.createElement(
|
|
7030
7015
|
'p',
|
|
7031
7016
|
{ style: { fontSize: '.9rem' } },
|
|
7032
|
-
|
|
7017
|
+
React__default.createElement(
|
|
7033
7018
|
'em',
|
|
7034
7019
|
null,
|
|
7035
7020
|
node.caption
|
|
@@ -7039,15 +7024,15 @@ var Audio = function Audio(_ref) {
|
|
|
7039
7024
|
} else if (node.audioFilePth) {
|
|
7040
7025
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7041
7026
|
if (hostname === 'embeds.audioboom.com') {
|
|
7042
|
-
return
|
|
7027
|
+
return React__default.createElement(
|
|
7043
7028
|
'div',
|
|
7044
7029
|
null,
|
|
7045
|
-
|
|
7030
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7046
7031
|
' ',
|
|
7047
|
-
node.caption &&
|
|
7032
|
+
node.caption && React__default.createElement(
|
|
7048
7033
|
'p',
|
|
7049
7034
|
{ style: { fontSize: '.9rem' } },
|
|
7050
|
-
|
|
7035
|
+
React__default.createElement(
|
|
7051
7036
|
'em',
|
|
7052
7037
|
null,
|
|
7053
7038
|
node.caption
|
|
@@ -7055,14 +7040,14 @@ var Audio = function Audio(_ref) {
|
|
|
7055
7040
|
)
|
|
7056
7041
|
);
|
|
7057
7042
|
}
|
|
7058
|
-
return
|
|
7043
|
+
return React__default.createElement(
|
|
7059
7044
|
'div',
|
|
7060
7045
|
{ className: 'audio' },
|
|
7061
|
-
|
|
7062
|
-
node.caption &&
|
|
7046
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7047
|
+
node.caption && React__default.createElement(
|
|
7063
7048
|
'p',
|
|
7064
7049
|
{ style: { fontSize: '.9rem' } },
|
|
7065
|
-
|
|
7050
|
+
React__default.createElement(
|
|
7066
7051
|
'em',
|
|
7067
7052
|
null,
|
|
7068
7053
|
node.caption
|
|
@@ -7080,34 +7065,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7080
7065
|
var profileImage = arguments[6];
|
|
7081
7066
|
|
|
7082
7067
|
if (authorName && authorURL) {
|
|
7083
|
-
return
|
|
7068
|
+
return React__default.createElement(
|
|
7084
7069
|
'span',
|
|
7085
7070
|
null,
|
|
7086
|
-
|
|
7071
|
+
React__default.createElement(
|
|
7087
7072
|
'a',
|
|
7088
7073
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7089
7074
|
authorName
|
|
7090
7075
|
),
|
|
7091
|
-
|
|
7076
|
+
React__default.createElement(
|
|
7092
7077
|
Card,
|
|
7093
7078
|
{ className: 'author-details-card-' + index },
|
|
7094
|
-
|
|
7079
|
+
React__default.createElement(
|
|
7095
7080
|
Row,
|
|
7096
7081
|
null,
|
|
7097
|
-
profileImage &&
|
|
7082
|
+
profileImage && React__default.createElement(
|
|
7098
7083
|
Col,
|
|
7099
7084
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7100
|
-
|
|
7085
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7101
7086
|
),
|
|
7102
|
-
|
|
7087
|
+
React__default.createElement(
|
|
7103
7088
|
Col,
|
|
7104
7089
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7105
|
-
|
|
7090
|
+
React__default.createElement(
|
|
7106
7091
|
'div',
|
|
7107
7092
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7108
7093
|
authorName
|
|
7109
7094
|
),
|
|
7110
|
-
|
|
7095
|
+
React__default.createElement(
|
|
7111
7096
|
'p',
|
|
7112
7097
|
null,
|
|
7113
7098
|
biography
|
|
@@ -7115,7 +7100,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7115
7100
|
)
|
|
7116
7101
|
)
|
|
7117
7102
|
),
|
|
7118
|
-
|
|
7103
|
+
React__default.createElement(
|
|
7119
7104
|
'style',
|
|
7120
7105
|
{ jsx: 'true' },
|
|
7121
7106
|
'\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 '
|
|
@@ -7123,7 +7108,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7123
7108
|
length !== index + 1 && ' , '
|
|
7124
7109
|
);
|
|
7125
7110
|
} else if (authorName) {
|
|
7126
|
-
return
|
|
7111
|
+
return React__default.createElement(
|
|
7127
7112
|
'span',
|
|
7128
7113
|
{ key: index },
|
|
7129
7114
|
authorName,
|
|
@@ -7278,8 +7263,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7278
7263
|
var duration = player.getDuration();
|
|
7279
7264
|
var queue = Math.floor(duration / 10);
|
|
7280
7265
|
var segment = Math.floor(current / queue);
|
|
7281
|
-
Beam.report_beam_video('Ready',
|
|
7282
|
-
Segment.report_video_event('Video Ready',
|
|
7266
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
7267
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
7283
7268
|
//autoplay
|
|
7284
7269
|
|
|
7285
7270
|
//Small pause before starting next video
|
|
@@ -7299,8 +7284,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7299
7284
|
var queue = Math.floor(duration / 10);
|
|
7300
7285
|
var segment = Math.floor(current / queue);
|
|
7301
7286
|
|
|
7302
|
-
Beam.report_beam_video('End',
|
|
7303
|
-
Segment.report_video_event('Video End',
|
|
7287
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
7288
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
7304
7289
|
setEndReported(true);
|
|
7305
7290
|
clearInterval(intervalID);
|
|
7306
7291
|
}
|
|
@@ -7350,8 +7335,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7350
7335
|
var queue = Math.floor(duration / 10);
|
|
7351
7336
|
var segment = Math.floor(current / queue);
|
|
7352
7337
|
if (!queueProgress.includes(segment)) {
|
|
7353
|
-
Beam.report_beam_video('Segment',
|
|
7354
|
-
Segment.report_video_event('Video Segment',
|
|
7338
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
7339
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
7355
7340
|
queueProgress.push(segment);
|
|
7356
7341
|
}
|
|
7357
7342
|
};
|
|
@@ -7364,8 +7349,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7364
7349
|
var queue = Math.floor(duration / 10);
|
|
7365
7350
|
var segment = Math.floor(current / queue);
|
|
7366
7351
|
|
|
7367
|
-
Beam.report_beam_video('Play',
|
|
7368
|
-
Segment.report_video_event('Video Play',
|
|
7352
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
7353
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
7369
7354
|
|
|
7370
7355
|
if (!playReported) {
|
|
7371
7356
|
setPlayReported(true);
|
|
@@ -7383,8 +7368,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7383
7368
|
var queue = Math.floor(duration / 10);
|
|
7384
7369
|
var segment = Math.floor(current / queue);
|
|
7385
7370
|
|
|
7386
|
-
Beam.report_beam_video('Pause',
|
|
7387
|
-
Segment.report_video_event('Video Pause',
|
|
7371
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
7372
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
7388
7373
|
};
|
|
7389
7374
|
|
|
7390
7375
|
// Youtube Options
|
|
@@ -7395,44 +7380,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7395
7380
|
}
|
|
7396
7381
|
};
|
|
7397
7382
|
|
|
7398
|
-
return
|
|
7383
|
+
return React__default.createElement(
|
|
7399
7384
|
'div',
|
|
7400
7385
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7401
|
-
|
|
7386
|
+
React__default.createElement(
|
|
7402
7387
|
'div',
|
|
7403
7388
|
{ className: 'mt-2 mb-5' },
|
|
7404
|
-
series &&
|
|
7389
|
+
series && React__default.createElement(
|
|
7405
7390
|
'div',
|
|
7406
7391
|
{ style: { fontSize: '0.9rem' } },
|
|
7407
7392
|
article.title,
|
|
7408
7393
|
' - Episode ',
|
|
7409
7394
|
series
|
|
7410
7395
|
),
|
|
7411
|
-
Videos[series - 1] &&
|
|
7396
|
+
Videos[series - 1] && React__default.createElement(
|
|
7412
7397
|
'h1',
|
|
7413
7398
|
{ className: 'mb-3' },
|
|
7414
7399
|
Videos[series - 1].title
|
|
7415
7400
|
),
|
|
7416
|
-
|
|
7401
|
+
React__default.createElement(
|
|
7417
7402
|
'div',
|
|
7418
7403
|
null,
|
|
7419
7404
|
moment(article.published).format('LL')
|
|
7420
7405
|
),
|
|
7421
|
-
|
|
7406
|
+
React__default.createElement(
|
|
7422
7407
|
'div',
|
|
7423
7408
|
{ className: 'mb-3' },
|
|
7424
7409
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7425
|
-
return
|
|
7410
|
+
return React__default.createElement(
|
|
7426
7411
|
'span',
|
|
7427
7412
|
{ key: index },
|
|
7428
7413
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7429
7414
|
);
|
|
7430
7415
|
})
|
|
7431
7416
|
),
|
|
7432
|
-
|
|
7417
|
+
React__default.createElement(
|
|
7433
7418
|
'p',
|
|
7434
7419
|
null,
|
|
7435
|
-
|
|
7420
|
+
React__default.createElement(SocialShare, {
|
|
7436
7421
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7437
7422
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7438
7423
|
shareVia: meta.shareVia,
|
|
@@ -7447,20 +7432,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7447
7432
|
hideFacebook: meta.hideFBShare
|
|
7448
7433
|
})
|
|
7449
7434
|
),
|
|
7450
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7435
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7451
7436
|
'p',
|
|
7452
7437
|
{ className: 'mb-3' },
|
|
7453
|
-
|
|
7438
|
+
React__default.createElement(
|
|
7454
7439
|
'em',
|
|
7455
7440
|
null,
|
|
7456
7441
|
Videos[series - 1].intro
|
|
7457
7442
|
)
|
|
7458
7443
|
)
|
|
7459
7444
|
),
|
|
7460
|
-
|
|
7445
|
+
React__default.createElement(
|
|
7461
7446
|
'div',
|
|
7462
7447
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7463
|
-
vidUrl && vidType == 'youtube' &&
|
|
7448
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7464
7449
|
className: 'fluid-iframe',
|
|
7465
7450
|
videoId: getYoutubeId(vidUrl),
|
|
7466
7451
|
opts: opts,
|
|
@@ -7471,10 +7456,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7471
7456
|
return handleOnEnd(e);
|
|
7472
7457
|
}
|
|
7473
7458
|
}),
|
|
7474
|
-
vidUrl && vidType == 'mp4' &&
|
|
7475
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7476
|
-
|
|
7477
|
-
series &&
|
|
7459
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7460
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7461
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7462
|
+
series && React__default.createElement(
|
|
7478
7463
|
'div',
|
|
7479
7464
|
{
|
|
7480
7465
|
className: 'vid-series',
|
|
@@ -7484,10 +7469,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7484
7469
|
maxHeight: '100%',
|
|
7485
7470
|
paddingBottom: '0'
|
|
7486
7471
|
} },
|
|
7487
|
-
|
|
7472
|
+
React__default.createElement(
|
|
7488
7473
|
'p',
|
|
7489
7474
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7490
|
-
|
|
7475
|
+
React__default.createElement(
|
|
7491
7476
|
'b',
|
|
7492
7477
|
{ style: { fontSize: '1.25em' } },
|
|
7493
7478
|
'Now Playing:'
|
|
@@ -7495,16 +7480,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7495
7480
|
' ',
|
|
7496
7481
|
seriesData[series ? series - 1 : 0].title
|
|
7497
7482
|
),
|
|
7498
|
-
vidUrl &&
|
|
7483
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7499
7484
|
)
|
|
7500
7485
|
),
|
|
7501
|
-
|
|
7502
|
-
|
|
7486
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7487
|
+
React__default.createElement(
|
|
7503
7488
|
'div',
|
|
7504
7489
|
{ className: 'vid-text' },
|
|
7505
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7490
|
+
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()))
|
|
7506
7491
|
),
|
|
7507
|
-
|
|
7492
|
+
React__default.createElement(
|
|
7508
7493
|
'style',
|
|
7509
7494
|
{ jsx: 'true' },
|
|
7510
7495
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7512,14 +7497,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7512
7497
|
);
|
|
7513
7498
|
};
|
|
7514
7499
|
|
|
7515
|
-
var Poll = function Poll(_ref) {
|
|
7516
|
-
var node = _ref.node
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
onVote = _ref.onVote
|
|
7521
|
-
_ref
|
|
7522
|
-
getSerializers = _ref.getSerializers;
|
|
7500
|
+
var Poll$1 = function Poll(_ref) {
|
|
7501
|
+
var node = _ref.node;
|
|
7502
|
+
_ref.client;
|
|
7503
|
+
_ref.pageview;
|
|
7504
|
+
_ref.videoAccountIDs;
|
|
7505
|
+
var onVote = _ref.onVote;
|
|
7506
|
+
_ref.showVotes;
|
|
7507
|
+
var getSerializers = _ref.getSerializers;
|
|
7523
7508
|
|
|
7524
7509
|
var _useState = useState(null),
|
|
7525
7510
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7557,67 +7542,67 @@ var Poll = function Poll(_ref) {
|
|
|
7557
7542
|
return acc;
|
|
7558
7543
|
}
|
|
7559
7544
|
}, 0);
|
|
7560
|
-
return
|
|
7561
|
-
|
|
7545
|
+
return React__default.createElement(
|
|
7546
|
+
React__default.Fragment,
|
|
7562
7547
|
null,
|
|
7563
|
-
question &&
|
|
7548
|
+
question && React__default.createElement(
|
|
7564
7549
|
'p',
|
|
7565
7550
|
{ className: 'font-weight-bold' },
|
|
7566
7551
|
question
|
|
7567
7552
|
),
|
|
7568
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7553
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7569
7554
|
'form',
|
|
7570
7555
|
{ onSubmit: function onSubmit(e) {
|
|
7571
7556
|
return onSubmitPoll(e);
|
|
7572
7557
|
} },
|
|
7573
7558
|
choices && choices.map(function (choice) {
|
|
7574
|
-
return
|
|
7559
|
+
return React__default.createElement(
|
|
7575
7560
|
'div',
|
|
7576
7561
|
{ key: choice._key },
|
|
7577
|
-
|
|
7562
|
+
React__default.createElement(
|
|
7578
7563
|
'label',
|
|
7579
7564
|
{ className: 'pl-2' },
|
|
7580
|
-
|
|
7565
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7581
7566
|
return setSelectedChoice(e.target.value);
|
|
7582
7567
|
} }),
|
|
7583
7568
|
' ' + choice.choiceText
|
|
7584
7569
|
)
|
|
7585
7570
|
);
|
|
7586
7571
|
}),
|
|
7587
|
-
|
|
7572
|
+
React__default.createElement(
|
|
7588
7573
|
Button,
|
|
7589
7574
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7590
7575
|
'Vote'
|
|
7591
7576
|
)
|
|
7592
7577
|
),
|
|
7593
|
-
|
|
7578
|
+
React__default.createElement(
|
|
7594
7579
|
'div',
|
|
7595
7580
|
{ className: 'progress-container' },
|
|
7596
7581
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7597
7582
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7598
|
-
return
|
|
7583
|
+
return React__default.createElement(
|
|
7599
7584
|
'div',
|
|
7600
7585
|
{ key: choice._key, className: 'mb-3' },
|
|
7601
|
-
|
|
7586
|
+
React__default.createElement(
|
|
7602
7587
|
'div',
|
|
7603
7588
|
{ className: 'correct-answer' },
|
|
7604
|
-
|
|
7589
|
+
React__default.createElement(
|
|
7605
7590
|
'div',
|
|
7606
7591
|
null,
|
|
7607
7592
|
choice.choiceText
|
|
7608
7593
|
),
|
|
7609
|
-
choice.choiceAnswer === true &&
|
|
7594
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7610
7595
|
'div',
|
|
7611
7596
|
null,
|
|
7612
|
-
|
|
7597
|
+
React__default.createElement(
|
|
7613
7598
|
'span',
|
|
7614
7599
|
{ style: { color: 'limegreen' } },
|
|
7615
7600
|
'Correct!'
|
|
7616
7601
|
)
|
|
7617
7602
|
)
|
|
7618
7603
|
),
|
|
7619
|
-
|
|
7620
|
-
|
|
7604
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7605
|
+
React__default.createElement(
|
|
7621
7606
|
'span',
|
|
7622
7607
|
{ className: 'float-right' },
|
|
7623
7608
|
percentage,
|
|
@@ -7628,14 +7613,14 @@ var Poll = function Poll(_ref) {
|
|
|
7628
7613
|
);
|
|
7629
7614
|
})
|
|
7630
7615
|
),
|
|
7631
|
-
showAnswer &&
|
|
7616
|
+
showAnswer && React__default.createElement(
|
|
7632
7617
|
'h4',
|
|
7633
7618
|
{ className: 'text-center small p-3' },
|
|
7634
7619
|
'Total Votes: ',
|
|
7635
7620
|
choicesTotalCount
|
|
7636
7621
|
),
|
|
7637
|
-
showAnswer && response &&
|
|
7638
|
-
|
|
7622
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7623
|
+
React__default.createElement(
|
|
7639
7624
|
'style',
|
|
7640
7625
|
{ jsx: 'true' },
|
|
7641
7626
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7653,22 +7638,22 @@ _export(_export.S, 'Object', {
|
|
|
7653
7638
|
}
|
|
7654
7639
|
});
|
|
7655
7640
|
|
|
7656
|
-
var values = _core.Object.values;
|
|
7641
|
+
var values$1 = _core.Object.values;
|
|
7657
7642
|
|
|
7658
|
-
var values
|
|
7659
|
-
module.exports = { "default": values, __esModule: true };
|
|
7643
|
+
var values = createCommonjsModule(function (module) {
|
|
7644
|
+
module.exports = { "default": values$1, __esModule: true };
|
|
7660
7645
|
});
|
|
7661
7646
|
|
|
7662
|
-
var _Object$values = unwrapExports(values
|
|
7647
|
+
var _Object$values = unwrapExports(values);
|
|
7663
7648
|
|
|
7664
|
-
var Poll
|
|
7665
|
-
var node = _ref.node
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
onVote = _ref.onVote
|
|
7670
|
-
_ref
|
|
7671
|
-
getSerializers = _ref.getSerializers;
|
|
7649
|
+
var Poll = function Poll(_ref) {
|
|
7650
|
+
var node = _ref.node;
|
|
7651
|
+
_ref.client;
|
|
7652
|
+
_ref.pageview;
|
|
7653
|
+
_ref.videoAccountIDs;
|
|
7654
|
+
var onVote = _ref.onVote;
|
|
7655
|
+
_ref.showVotes;
|
|
7656
|
+
var getSerializers = _ref.getSerializers;
|
|
7672
7657
|
|
|
7673
7658
|
var _useState = useState(null),
|
|
7674
7659
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7734,67 +7719,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7734
7719
|
return acc;
|
|
7735
7720
|
}
|
|
7736
7721
|
}, 0);
|
|
7737
|
-
return
|
|
7738
|
-
|
|
7722
|
+
return React__default.createElement(
|
|
7723
|
+
React__default.Fragment,
|
|
7739
7724
|
null,
|
|
7740
|
-
question &&
|
|
7725
|
+
question && React__default.createElement(
|
|
7741
7726
|
'p',
|
|
7742
7727
|
{ className: 'font-weight-bold' },
|
|
7743
7728
|
question
|
|
7744
7729
|
),
|
|
7745
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7730
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7746
7731
|
'form',
|
|
7747
7732
|
{ onSubmit: function onSubmit(e) {
|
|
7748
7733
|
return onSubmitPoll(e);
|
|
7749
7734
|
} },
|
|
7750
7735
|
choices && choices.map(function (choice) {
|
|
7751
|
-
return
|
|
7736
|
+
return React__default.createElement(
|
|
7752
7737
|
'div',
|
|
7753
7738
|
{ key: choice._key },
|
|
7754
|
-
|
|
7739
|
+
React__default.createElement(
|
|
7755
7740
|
'label',
|
|
7756
7741
|
{ className: 'pl-2' },
|
|
7757
|
-
|
|
7742
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7758
7743
|
return setSelectedChoice(e.target.value);
|
|
7759
7744
|
} }),
|
|
7760
7745
|
' ' + choice.choiceText
|
|
7761
7746
|
)
|
|
7762
7747
|
);
|
|
7763
7748
|
}),
|
|
7764
|
-
|
|
7749
|
+
React__default.createElement(
|
|
7765
7750
|
Button,
|
|
7766
7751
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7767
7752
|
'Vote'
|
|
7768
7753
|
)
|
|
7769
7754
|
),
|
|
7770
|
-
|
|
7755
|
+
React__default.createElement(
|
|
7771
7756
|
'div',
|
|
7772
7757
|
{ className: 'progress-container' },
|
|
7773
7758
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7774
7759
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7775
|
-
return
|
|
7760
|
+
return React__default.createElement(
|
|
7776
7761
|
'div',
|
|
7777
7762
|
{ key: choice._key, className: 'mb-3' },
|
|
7778
|
-
|
|
7763
|
+
React__default.createElement(
|
|
7779
7764
|
'div',
|
|
7780
7765
|
{ className: 'correct-answer' },
|
|
7781
|
-
|
|
7766
|
+
React__default.createElement(
|
|
7782
7767
|
'div',
|
|
7783
7768
|
null,
|
|
7784
7769
|
choice.choiceText
|
|
7785
7770
|
),
|
|
7786
|
-
choice.choiceAnswer === true &&
|
|
7771
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7787
7772
|
'div',
|
|
7788
7773
|
null,
|
|
7789
|
-
|
|
7774
|
+
React__default.createElement(
|
|
7790
7775
|
'span',
|
|
7791
7776
|
{ style: { color: 'limegreen' } },
|
|
7792
7777
|
'Correct!'
|
|
7793
7778
|
)
|
|
7794
7779
|
)
|
|
7795
7780
|
),
|
|
7796
|
-
|
|
7797
|
-
|
|
7781
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7782
|
+
React__default.createElement(
|
|
7798
7783
|
'span',
|
|
7799
7784
|
{ className: 'float-right' },
|
|
7800
7785
|
percentage,
|
|
@@ -7805,14 +7790,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7805
7790
|
);
|
|
7806
7791
|
})
|
|
7807
7792
|
),
|
|
7808
|
-
showAnswer &&
|
|
7793
|
+
showAnswer && React__default.createElement(
|
|
7809
7794
|
'h4',
|
|
7810
7795
|
{ className: 'text-center small p-3' },
|
|
7811
7796
|
'Total Votes: ',
|
|
7812
7797
|
choicesTotalCount
|
|
7813
7798
|
),
|
|
7814
|
-
showAnswer && response &&
|
|
7815
|
-
|
|
7799
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7800
|
+
React__default.createElement(
|
|
7816
7801
|
'style',
|
|
7817
7802
|
{ jsx: 'true' },
|
|
7818
7803
|
'\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 '
|
|
@@ -7820,7 +7805,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7820
7805
|
);
|
|
7821
7806
|
};
|
|
7822
7807
|
|
|
7823
|
-
var numberOfPaginations =
|
|
7808
|
+
var numberOfPaginations = main_42 ? 4 : 10;
|
|
7824
7809
|
|
|
7825
7810
|
var Quiz = function Quiz(_ref) {
|
|
7826
7811
|
var quizzes = _ref.quizzes,
|
|
@@ -7938,20 +7923,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7938
7923
|
};
|
|
7939
7924
|
|
|
7940
7925
|
var renderPagination = function renderPagination() {
|
|
7941
|
-
return
|
|
7926
|
+
return React__default.createElement(
|
|
7942
7927
|
Pagination,
|
|
7943
|
-
{ className: 'p-0 m-0', size:
|
|
7944
|
-
|
|
7928
|
+
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
7929
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7945
7930
|
return changePage('first');
|
|
7946
7931
|
}, disabled: currentPage === 1 }),
|
|
7947
|
-
|
|
7932
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7948
7933
|
return changePage('prev');
|
|
7949
7934
|
}, disabled: currentPage === 1 }),
|
|
7950
|
-
|
|
7935
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7951
7936
|
return renderNewPages('prev');
|
|
7952
7937
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7953
7938
|
pages.map(function (page) {
|
|
7954
|
-
return
|
|
7939
|
+
return React__default.createElement(
|
|
7955
7940
|
Pagination.Item,
|
|
7956
7941
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7957
7942
|
return changePage(page);
|
|
@@ -7959,13 +7944,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
7959
7944
|
page
|
|
7960
7945
|
);
|
|
7961
7946
|
}),
|
|
7962
|
-
|
|
7947
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7963
7948
|
return renderNewPages('next');
|
|
7964
7949
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7965
|
-
|
|
7950
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7966
7951
|
return changePage('next');
|
|
7967
7952
|
}, disabled: currentPage === pageCount }),
|
|
7968
|
-
|
|
7953
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7969
7954
|
return changePage('last');
|
|
7970
7955
|
}, disabled: currentPage === pageCount })
|
|
7971
7956
|
);
|
|
@@ -8048,51 +8033,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8048
8033
|
}
|
|
8049
8034
|
};
|
|
8050
8035
|
|
|
8051
|
-
return
|
|
8052
|
-
|
|
8036
|
+
return React__default.createElement(
|
|
8037
|
+
React__default.Fragment,
|
|
8053
8038
|
null,
|
|
8054
|
-
quizzes[currentPage - 1] &&
|
|
8055
|
-
|
|
8039
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8040
|
+
React__default.Fragment,
|
|
8056
8041
|
null,
|
|
8057
|
-
|
|
8058
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8042
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8043
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8059
8044
|
'form',
|
|
8060
8045
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8061
8046
|
return e.preventDefault();
|
|
8062
8047
|
} },
|
|
8063
8048
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8064
|
-
return
|
|
8049
|
+
return React__default.createElement(
|
|
8065
8050
|
'div',
|
|
8066
8051
|
{ key: answer._key },
|
|
8067
|
-
|
|
8052
|
+
React__default.createElement(
|
|
8068
8053
|
'label',
|
|
8069
8054
|
{ className: 'pl-2' },
|
|
8070
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8055
|
+
quizzes[currentPage - 1].multiAnswer ? React__default.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React__default.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8071
8056
|
' ' + answer.answerText
|
|
8072
8057
|
)
|
|
8073
8058
|
);
|
|
8074
8059
|
})
|
|
8075
8060
|
)
|
|
8076
8061
|
),
|
|
8077
|
-
!showAnswer &&
|
|
8062
|
+
!showAnswer && React__default.createElement(
|
|
8078
8063
|
Button$1,
|
|
8079
8064
|
{ onClick: function onClick() {
|
|
8080
8065
|
return checkAnswers();
|
|
8081
8066
|
}, variant: 'info', block: true },
|
|
8082
8067
|
'Please click here for answer'
|
|
8083
8068
|
),
|
|
8084
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8085
|
-
|
|
8069
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8070
|
+
React__default.Fragment,
|
|
8086
8071
|
null,
|
|
8087
|
-
|
|
8072
|
+
React__default.createElement(
|
|
8088
8073
|
'h4',
|
|
8089
8074
|
null,
|
|
8090
8075
|
'Answer:'
|
|
8091
8076
|
),
|
|
8092
|
-
quizzes[currentPage - 1].answer &&
|
|
8077
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8093
8078
|
),
|
|
8094
|
-
|
|
8095
|
-
pageCount > 1 &&
|
|
8079
|
+
React__default.createElement('br', null),
|
|
8080
|
+
pageCount > 1 && React__default.createElement(
|
|
8096
8081
|
'div',
|
|
8097
8082
|
{ className: 'd-flex justify-content-center' },
|
|
8098
8083
|
renderPagination()
|
|
@@ -8103,26 +8088,27 @@ var Quiz = function Quiz(_ref) {
|
|
|
8103
8088
|
var Leads = function Leads(_ref) {
|
|
8104
8089
|
var url = _ref.url;
|
|
8105
8090
|
|
|
8106
|
-
return
|
|
8091
|
+
return React__default.createElement(
|
|
8107
8092
|
'div',
|
|
8108
8093
|
{ className: 'd-block text-center mb-3' },
|
|
8109
|
-
url &&
|
|
8094
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8110
8095
|
);
|
|
8111
8096
|
};
|
|
8112
8097
|
|
|
8113
|
-
var Slideshow
|
|
8098
|
+
var Slideshow = function Slideshow(_ref) {
|
|
8114
8099
|
var slides = _ref.node.slides,
|
|
8115
8100
|
client = _ref.client,
|
|
8116
8101
|
pageview = _ref.pageview,
|
|
8117
8102
|
getSerializers = _ref.getSerializers;
|
|
8118
8103
|
|
|
8119
8104
|
var router = useRouter();
|
|
8105
|
+
var carouselRef = useRef(null);
|
|
8120
8106
|
var pageNumber = router && router.asPath && router.asPath.split('?page=')[1];
|
|
8121
8107
|
|
|
8122
8108
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8123
8109
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8124
|
-
carouselIndex = _useState2[0]
|
|
8125
|
-
|
|
8110
|
+
carouselIndex = _useState2[0];
|
|
8111
|
+
_useState2[1];
|
|
8126
8112
|
|
|
8127
8113
|
// useEffect(() => {
|
|
8128
8114
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8143,61 +8129,47 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8143
8129
|
var pageNumber = selectedIndex + 1;
|
|
8144
8130
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
8145
8131
|
router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
8146
|
-
|
|
8132
|
+
if (carouselRef) {
|
|
8133
|
+
carouselRef.current.scrollIntoView();
|
|
8134
|
+
}
|
|
8147
8135
|
};
|
|
8148
8136
|
|
|
8149
|
-
return
|
|
8137
|
+
return React__default.createElement(
|
|
8150
8138
|
'div',
|
|
8151
|
-
{ className: 'mt-3 mb-4' },
|
|
8152
|
-
|
|
8139
|
+
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8140
|
+
React__default.createElement(
|
|
8153
8141
|
Carousel,
|
|
8154
8142
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8155
8143
|
slides && slides.map(function (slide) {
|
|
8156
8144
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8157
|
-
return
|
|
8145
|
+
return React__default.createElement(
|
|
8158
8146
|
Carousel.Item,
|
|
8159
8147
|
{ key: slide._key },
|
|
8160
|
-
|
|
8148
|
+
React__default.createElement(
|
|
8161
8149
|
'a',
|
|
8162
8150
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
LazyLoad,
|
|
8168
|
-
null,
|
|
8169
|
-
React.createElement(
|
|
8170
|
-
'picture',
|
|
8171
|
-
null,
|
|
8172
|
-
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8173
|
-
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8174
|
-
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8175
|
-
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-responsive-item' })
|
|
8176
|
-
)
|
|
8177
|
-
),
|
|
8178
|
-
React.createElement(
|
|
8179
|
-
'style',
|
|
8180
|
-
{ jsx: 'true' },
|
|
8181
|
-
'\n .embed-responsive-slide::before {\n padding-top: ' + slide.slideshowImage.height / slide.slideshowImage.width * 100 + '%;\n }\n '
|
|
8182
|
-
)
|
|
8151
|
+
React__default.createElement(
|
|
8152
|
+
LazyLoad,
|
|
8153
|
+
null,
|
|
8154
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8183
8155
|
)
|
|
8184
8156
|
),
|
|
8185
|
-
|
|
8157
|
+
React__default.createElement(
|
|
8186
8158
|
'div',
|
|
8187
8159
|
{ className: 'p-2' },
|
|
8188
|
-
slide.slideshowImage.caption &&
|
|
8160
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8189
8161
|
'h3',
|
|
8190
8162
|
{ style: { padding: '0px' } },
|
|
8191
8163
|
slide.slideshowImage.caption
|
|
8192
8164
|
),
|
|
8193
|
-
slide.description &&
|
|
8165
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8194
8166
|
)
|
|
8195
8167
|
);
|
|
8196
8168
|
}
|
|
8197
8169
|
return null;
|
|
8198
8170
|
})
|
|
8199
8171
|
),
|
|
8200
|
-
|
|
8172
|
+
React__default.createElement(
|
|
8201
8173
|
'style',
|
|
8202
8174
|
{ jsx: 'true' },
|
|
8203
8175
|
'\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 '
|
|
@@ -8216,10 +8188,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8216
8188
|
sizes = _props$node.sizes,
|
|
8217
8189
|
sizeMapping = _props$node.sizeMapping;
|
|
8218
8190
|
|
|
8219
|
-
return
|
|
8191
|
+
return React__default.createElement(
|
|
8220
8192
|
'div',
|
|
8221
8193
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8222
|
-
|
|
8194
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8223
8195
|
);
|
|
8224
8196
|
};
|
|
8225
8197
|
|
|
@@ -8230,15 +8202,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8230
8202
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8231
8203
|
|
|
8232
8204
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8233
|
-
return
|
|
8205
|
+
return React__default.createElement(
|
|
8234
8206
|
'section',
|
|
8235
8207
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8236
|
-
Caption &&
|
|
8208
|
+
Caption && React__default.createElement(
|
|
8237
8209
|
'h4',
|
|
8238
8210
|
{ className: 'formstack-caption' },
|
|
8239
8211
|
Caption
|
|
8240
8212
|
),
|
|
8241
|
-
|
|
8213
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8242
8214
|
);
|
|
8243
8215
|
};
|
|
8244
8216
|
|
|
@@ -8254,36 +8226,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8254
8226
|
}
|
|
8255
8227
|
});
|
|
8256
8228
|
if (medias && medias.length > 0) {
|
|
8257
|
-
return
|
|
8229
|
+
return React__default.createElement(
|
|
8258
8230
|
'div',
|
|
8259
8231
|
{ className: 'multi-media-container' },
|
|
8260
|
-
|
|
8232
|
+
React__default.createElement(
|
|
8261
8233
|
Row$1,
|
|
8262
8234
|
{ noGutters: true },
|
|
8263
8235
|
medias.map(function (media) {
|
|
8264
|
-
return
|
|
8236
|
+
return React__default.createElement(
|
|
8265
8237
|
Col$1,
|
|
8266
8238
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8267
|
-
|
|
8239
|
+
React__default.createElement(
|
|
8268
8240
|
'a',
|
|
8269
8241
|
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8270
8242
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8271
|
-
|
|
8243
|
+
React__default.createElement(
|
|
8272
8244
|
'div',
|
|
8273
8245
|
{ className: 'multi-media-image-container' },
|
|
8274
|
-
imageBox &&
|
|
8246
|
+
imageBox && React__default.createElement(
|
|
8275
8247
|
LazyLoad,
|
|
8276
8248
|
{ once: true },
|
|
8277
|
-
|
|
8278
|
-
'picture',
|
|
8279
|
-
null,
|
|
8280
|
-
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8281
|
-
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8282
|
-
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8283
|
-
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8284
|
-
)
|
|
8249
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt })
|
|
8285
8250
|
),
|
|
8286
|
-
media.caption &&
|
|
8251
|
+
media.caption && React__default.createElement(
|
|
8287
8252
|
'span',
|
|
8288
8253
|
{ className: 'multi-media-caption' },
|
|
8289
8254
|
media.caption
|
|
@@ -8293,7 +8258,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8293
8258
|
);
|
|
8294
8259
|
})
|
|
8295
8260
|
),
|
|
8296
|
-
|
|
8261
|
+
React__default.createElement(
|
|
8297
8262
|
'style',
|
|
8298
8263
|
{ jsx: 'true' },
|
|
8299
8264
|
'\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 '
|
|
@@ -8340,7 +8305,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8340
8305
|
}
|
|
8341
8306
|
};
|
|
8342
8307
|
|
|
8343
|
-
_this.wraperRef =
|
|
8308
|
+
_this.wraperRef = React__default.createRef();
|
|
8344
8309
|
_this.visible = false;
|
|
8345
8310
|
return _this;
|
|
8346
8311
|
}
|
|
@@ -8368,7 +8333,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8368
8333
|
_props$id = _props.id,
|
|
8369
8334
|
id = _props$id === undefined ? '' : _props$id;
|
|
8370
8335
|
|
|
8371
|
-
return
|
|
8336
|
+
return React__default.createElement(
|
|
8372
8337
|
'div',
|
|
8373
8338
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8374
8339
|
this.props.children
|
|
@@ -8377,7 +8342,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8377
8342
|
}]);
|
|
8378
8343
|
|
|
8379
8344
|
return InscreenSensor;
|
|
8380
|
-
}(
|
|
8345
|
+
}(React__default.Component);
|
|
8381
8346
|
|
|
8382
8347
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8383
8348
|
var nodes = _ref.nodes,
|
|
@@ -8486,33 +8451,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8486
8451
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8487
8452
|
var showReading = show ? 'showReading' : '';
|
|
8488
8453
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8489
|
-
return
|
|
8454
|
+
return React__default.createElement(
|
|
8490
8455
|
'div',
|
|
8491
8456
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8492
|
-
|
|
8457
|
+
React__default.createElement(
|
|
8493
8458
|
'a',
|
|
8494
8459
|
{ onClick: function onClick(e) {
|
|
8495
8460
|
return articleCardClickHandler(e);
|
|
8496
8461
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8497
|
-
|
|
8462
|
+
React__default.createElement(
|
|
8498
8463
|
'div',
|
|
8499
8464
|
{ className: 'prevNext-thumbnail' },
|
|
8500
|
-
|
|
8501
|
-
|
|
8465
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8466
|
+
React__default.createElement(
|
|
8502
8467
|
'div',
|
|
8503
8468
|
{ className: 'prevNext-reading ' + showReading },
|
|
8504
8469
|
articleLabel
|
|
8505
8470
|
)
|
|
8506
8471
|
),
|
|
8507
|
-
|
|
8472
|
+
React__default.createElement(
|
|
8508
8473
|
'div',
|
|
8509
8474
|
{ className: 'prevNext-summary' },
|
|
8510
|
-
|
|
8475
|
+
React__default.createElement(
|
|
8511
8476
|
'div',
|
|
8512
8477
|
{ className: 'prevNext-publishDate' },
|
|
8513
8478
|
moment(article.published).format('LL')
|
|
8514
8479
|
),
|
|
8515
|
-
|
|
8480
|
+
React__default.createElement(
|
|
8516
8481
|
'h2',
|
|
8517
8482
|
{ className: 'prevNext-title' },
|
|
8518
8483
|
article.title
|
|
@@ -8561,7 +8526,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8561
8526
|
|
|
8562
8527
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8563
8528
|
if (biography) {
|
|
8564
|
-
return
|
|
8529
|
+
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8565
8530
|
}
|
|
8566
8531
|
};
|
|
8567
8532
|
|
|
@@ -8647,7 +8612,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8647
8612
|
//console.log('useLayoutEffect')
|
|
8648
8613
|
if (!firstLoad) {
|
|
8649
8614
|
setUpArrowClicked(false);
|
|
8650
|
-
if (
|
|
8615
|
+
if (main_43) {
|
|
8651
8616
|
grabLoadedAds();
|
|
8652
8617
|
} else {
|
|
8653
8618
|
scrollToArticle();
|
|
@@ -8671,7 +8636,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8671
8636
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8672
8637
|
if (pageview) pageview(path);
|
|
8673
8638
|
|
|
8674
|
-
if (!
|
|
8639
|
+
if (!main_43) {
|
|
8675
8640
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8676
8641
|
if (window.googletag && googletag.pubadsReady) {
|
|
8677
8642
|
lib_3.refresh();
|
|
@@ -8679,7 +8644,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8679
8644
|
});
|
|
8680
8645
|
}
|
|
8681
8646
|
//Refresh leaderboard ad on mobile
|
|
8682
|
-
if (
|
|
8647
|
+
if (main_43) {
|
|
8683
8648
|
var leaderboardSlotId = '';
|
|
8684
8649
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8685
8650
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8719,38 +8684,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8719
8684
|
setSensorVisible(false);
|
|
8720
8685
|
};
|
|
8721
8686
|
|
|
8722
|
-
return
|
|
8723
|
-
|
|
8687
|
+
return React__default.createElement(
|
|
8688
|
+
React__default.Fragment,
|
|
8724
8689
|
null,
|
|
8725
|
-
|
|
8690
|
+
React__default.createElement(
|
|
8726
8691
|
'div',
|
|
8727
8692
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8728
|
-
|
|
8693
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8729
8694
|
return handleArrowClick();
|
|
8730
8695
|
} })
|
|
8731
8696
|
),
|
|
8732
|
-
|
|
8733
|
-
|
|
8697
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8698
|
+
React__default.createElement(
|
|
8734
8699
|
'div',
|
|
8735
8700
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8736
|
-
|
|
8701
|
+
React__default.createElement(
|
|
8737
8702
|
'h5',
|
|
8738
8703
|
{ className: 'objective-title' },
|
|
8739
8704
|
nodes.seriesTitle
|
|
8740
8705
|
),
|
|
8741
|
-
|
|
8706
|
+
React__default.createElement(
|
|
8742
8707
|
'div',
|
|
8743
8708
|
{ className: 'prevNextWrapper' },
|
|
8744
8709
|
PrevNextCards(false, -1)
|
|
8745
8710
|
)
|
|
8746
8711
|
),
|
|
8747
|
-
|
|
8748
|
-
|
|
8712
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8713
|
+
React__default.createElement(
|
|
8749
8714
|
'div',
|
|
8750
8715
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8751
|
-
|
|
8716
|
+
main_43 && Ads.map(function (ad, index) {
|
|
8752
8717
|
if (index === 0) {
|
|
8753
|
-
return
|
|
8718
|
+
return React__default.createElement(
|
|
8754
8719
|
'div',
|
|
8755
8720
|
{
|
|
8756
8721
|
key: 'addid-1',
|
|
@@ -8770,14 +8735,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8770
8735
|
}
|
|
8771
8736
|
})
|
|
8772
8737
|
),
|
|
8773
|
-
|
|
8738
|
+
React__default.createElement(
|
|
8774
8739
|
'div',
|
|
8775
8740
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8776
8741
|
Articles.map(function (article, index) {
|
|
8777
|
-
return
|
|
8742
|
+
return React__default.createElement(
|
|
8778
8743
|
'div',
|
|
8779
8744
|
{ key: article.title },
|
|
8780
|
-
|
|
8745
|
+
React__default.createElement(
|
|
8781
8746
|
InscreenSensor,
|
|
8782
8747
|
{
|
|
8783
8748
|
visible: sensorVisible,
|
|
@@ -8795,84 +8760,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8795
8760
|
}
|
|
8796
8761
|
}
|
|
8797
8762
|
} },
|
|
8798
|
-
|
|
8763
|
+
React__default.createElement(
|
|
8799
8764
|
Head,
|
|
8800
8765
|
null,
|
|
8801
|
-
currentTitle !== null &&
|
|
8766
|
+
currentTitle !== null && React__default.createElement(
|
|
8802
8767
|
'title',
|
|
8803
8768
|
{ key: 'title' },
|
|
8804
8769
|
currentTitle
|
|
8805
8770
|
),
|
|
8806
|
-
currentSummary !== null &&
|
|
8807
|
-
currentURL !== null &&
|
|
8808
|
-
currentTitle !== null &&
|
|
8809
|
-
currentThumbnail !== null &&
|
|
8810
|
-
currentSummary !== null &&
|
|
8811
|
-
currentTitle !== null &&
|
|
8812
|
-
currentThumbnail !== null &&
|
|
8813
|
-
currentSummary !== null &&
|
|
8771
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8772
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8773
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8774
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8775
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8776
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8777
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8778
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8814
8779
|
),
|
|
8815
|
-
|
|
8780
|
+
React__default.createElement(
|
|
8816
8781
|
'article',
|
|
8817
8782
|
{ className: 'article-wrapper' },
|
|
8818
|
-
|
|
8783
|
+
React__default.createElement(
|
|
8819
8784
|
'div',
|
|
8820
8785
|
{ className: 'article-publishDate' },
|
|
8821
8786
|
moment(article.published).format('LL')
|
|
8822
8787
|
),
|
|
8823
|
-
|
|
8788
|
+
React__default.createElement(
|
|
8824
8789
|
'div',
|
|
8825
8790
|
{ className: 'author-details-wrapper' },
|
|
8826
8791
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8827
|
-
return
|
|
8792
|
+
return React__default.createElement(
|
|
8828
8793
|
'span',
|
|
8829
8794
|
{ key: index },
|
|
8830
8795
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8831
8796
|
);
|
|
8832
8797
|
})
|
|
8833
8798
|
),
|
|
8834
|
-
|
|
8799
|
+
React__default.createElement(
|
|
8835
8800
|
'h2',
|
|
8836
8801
|
{ className: 'article-title' },
|
|
8837
8802
|
article.title
|
|
8838
8803
|
),
|
|
8839
|
-
|
|
8804
|
+
React__default.createElement(
|
|
8840
8805
|
'div',
|
|
8841
8806
|
{ className: 'mt-2 mb-2' },
|
|
8842
|
-
|
|
8807
|
+
React__default.createElement(BlockContent, _extends({
|
|
8843
8808
|
serializers: getSerializers,
|
|
8844
8809
|
videoAccountIDs: accountIDs,
|
|
8845
8810
|
blocks: article.text,
|
|
8846
8811
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8847
8812
|
}, client.config())),
|
|
8848
|
-
|
|
8813
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8849
8814
|
),
|
|
8850
|
-
Articles.length > 1 &&
|
|
8851
|
-
|
|
8815
|
+
Articles.length > 1 && React__default.createElement(
|
|
8816
|
+
React__default.Fragment,
|
|
8852
8817
|
null,
|
|
8853
|
-
|
|
8818
|
+
React__default.createElement(
|
|
8854
8819
|
'div',
|
|
8855
8820
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8856
|
-
|
|
8821
|
+
React__default.createElement(
|
|
8857
8822
|
'h5',
|
|
8858
8823
|
{ className: 'objective-title' },
|
|
8859
8824
|
nodes.seriesTitle
|
|
8860
8825
|
),
|
|
8861
|
-
|
|
8826
|
+
React__default.createElement(
|
|
8862
8827
|
'div',
|
|
8863
8828
|
{ className: 'prevNextWrapper' },
|
|
8864
8829
|
PrevNextCards(true, index)
|
|
8865
8830
|
)
|
|
8866
8831
|
),
|
|
8867
|
-
|
|
8832
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8868
8833
|
)
|
|
8869
8834
|
),
|
|
8870
|
-
|
|
8835
|
+
React__default.createElement(
|
|
8871
8836
|
'div',
|
|
8872
8837
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8873
|
-
|
|
8838
|
+
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8874
8839
|
if (innerIndex === 0) {
|
|
8875
|
-
return
|
|
8840
|
+
return React__default.createElement(
|
|
8876
8841
|
'div',
|
|
8877
8842
|
{
|
|
8878
8843
|
key: 'addid-' + (index + 2),
|
|
@@ -8895,7 +8860,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8895
8860
|
)
|
|
8896
8861
|
);
|
|
8897
8862
|
}),
|
|
8898
|
-
|
|
8863
|
+
React__default.createElement(
|
|
8899
8864
|
'style',
|
|
8900
8865
|
{ jsx: 'true' },
|
|
8901
8866
|
'\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 '
|
|
@@ -8925,11 +8890,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8925
8890
|
};
|
|
8926
8891
|
}, [handleClickOutside]);
|
|
8927
8892
|
|
|
8928
|
-
return
|
|
8893
|
+
return React__default.createElement(
|
|
8929
8894
|
'div',
|
|
8930
8895
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8931
|
-
|
|
8932
|
-
|
|
8896
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8897
|
+
React__default.createElement(
|
|
8933
8898
|
'style',
|
|
8934
8899
|
{ jsx: 'true' },
|
|
8935
8900
|
'\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 '
|
|
@@ -8943,7 +8908,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8943
8908
|
}
|
|
8944
8909
|
};
|
|
8945
8910
|
|
|
8946
|
-
var FigureImage =
|
|
8911
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8947
8912
|
var node = _ref2.node,
|
|
8948
8913
|
client = _ref2.client,
|
|
8949
8914
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8951,13 +8916,13 @@ var FigureImage = React.memo(function (_ref2) {
|
|
|
8951
8916
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8952
8917
|
|
|
8953
8918
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8954
|
-
return
|
|
8919
|
+
return React__default.createElement(
|
|
8955
8920
|
'picture',
|
|
8956
8921
|
null,
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8922
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8923
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8924
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8925
|
+
React__default.createElement('img', _extends({
|
|
8961
8926
|
style: figureImageStyle,
|
|
8962
8927
|
className: 'figure-image',
|
|
8963
8928
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9045,13 +9010,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9045
9010
|
|
|
9046
9011
|
var FigureCaption = useCallback(function () {
|
|
9047
9012
|
if (imgcaption && imgcaption.length > 0) {
|
|
9048
|
-
return
|
|
9013
|
+
return React__default.createElement(
|
|
9049
9014
|
'div',
|
|
9050
9015
|
{ className: 'figure-caption' },
|
|
9051
|
-
|
|
9016
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9052
9017
|
);
|
|
9053
9018
|
} else if (caption) {
|
|
9054
|
-
return
|
|
9019
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9055
9020
|
} else return null;
|
|
9056
9021
|
}, [caption, imgcaption]);
|
|
9057
9022
|
|
|
@@ -9068,24 +9033,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9068
9033
|
setShowLightbox(true);
|
|
9069
9034
|
}, [node, client]);
|
|
9070
9035
|
|
|
9071
|
-
return
|
|
9072
|
-
|
|
9036
|
+
return React__default.createElement(
|
|
9037
|
+
React__default.Fragment,
|
|
9073
9038
|
null,
|
|
9074
|
-
|
|
9039
|
+
React__default.createElement(
|
|
9075
9040
|
Figure$2,
|
|
9076
9041
|
{ className: '' + class_name, style: figureStyle },
|
|
9077
|
-
link ?
|
|
9042
|
+
link ? React__default.createElement(
|
|
9078
9043
|
'a',
|
|
9079
9044
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
) :
|
|
9083
|
-
|
|
9045
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9046
|
+
React__default.createElement(FigureCaption, null)
|
|
9047
|
+
) : React__default.createElement(
|
|
9048
|
+
React__default.Fragment,
|
|
9084
9049
|
null,
|
|
9085
|
-
|
|
9086
|
-
|
|
9050
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9051
|
+
React__default.createElement(FigureCaption, null)
|
|
9087
9052
|
),
|
|
9088
|
-
|
|
9053
|
+
React__default.createElement(LightBox, {
|
|
9089
9054
|
showLightbox: showLightbox,
|
|
9090
9055
|
lightboxImgSrc: lightboxImgSrc,
|
|
9091
9056
|
closeLightbox: function closeLightbox() {
|
|
@@ -9094,7 +9059,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9094
9059
|
}
|
|
9095
9060
|
})
|
|
9096
9061
|
),
|
|
9097
|
-
|
|
9062
|
+
React__default.createElement(
|
|
9098
9063
|
'style',
|
|
9099
9064
|
{ jsx: 'true' },
|
|
9100
9065
|
'\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 '
|
|
@@ -9102,7 +9067,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9102
9067
|
);
|
|
9103
9068
|
};
|
|
9104
9069
|
|
|
9105
|
-
var Figure =
|
|
9070
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9106
9071
|
|
|
9107
9072
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9108
9073
|
useEffect(function () {
|
|
@@ -9119,33 +9084,6 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9119
9084
|
}, [ref]);
|
|
9120
9085
|
}
|
|
9121
9086
|
|
|
9122
|
-
var FigureImage$1 = React.memo(function (_ref) {
|
|
9123
|
-
var imagesCount = _ref.imagesCount,
|
|
9124
|
-
image = _ref.image,
|
|
9125
|
-
client = _ref.client,
|
|
9126
|
-
imgAlt = _ref.imgAlt,
|
|
9127
|
-
link = _ref.link,
|
|
9128
|
-
handleClickFigure = _ref.handleClickFigure;
|
|
9129
|
-
|
|
9130
|
-
return React.createElement(
|
|
9131
|
-
'picture',
|
|
9132
|
-
null,
|
|
9133
|
-
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9134
|
-
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9135
|
-
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9136
|
-
React.createElement('img', _extends({
|
|
9137
|
-
'images-count': imagesCount,
|
|
9138
|
-
className: 'multi-figure-image',
|
|
9139
|
-
src: urlFor({ source: image, client: client }),
|
|
9140
|
-
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9141
|
-
}, !link && {
|
|
9142
|
-
onClick: function onClick() {
|
|
9143
|
-
return handleClickFigure(image, client);
|
|
9144
|
-
}
|
|
9145
|
-
}))
|
|
9146
|
-
);
|
|
9147
|
-
});
|
|
9148
|
-
|
|
9149
9087
|
var MultiFigure = function MultiFigure(props) {
|
|
9150
9088
|
var images = props.node.images,
|
|
9151
9089
|
client = props.client,
|
|
@@ -9165,72 +9103,76 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9165
9103
|
var lightboxContainer = useRef(null);
|
|
9166
9104
|
useOutsideAlerter(lightboxImage, lightboxContainer, setOpenImg, setOpenImgSrc);
|
|
9167
9105
|
|
|
9168
|
-
var FigureCaption = function FigureCaption(
|
|
9169
|
-
var caption =
|
|
9170
|
-
imgcaption =
|
|
9106
|
+
var FigureCaption = function FigureCaption(_ref) {
|
|
9107
|
+
var caption = _ref.caption,
|
|
9108
|
+
imgcaption = _ref.imgcaption;
|
|
9171
9109
|
|
|
9172
9110
|
if (imgcaption && imgcaption.length > 0) {
|
|
9173
|
-
return
|
|
9111
|
+
return React__default.createElement(
|
|
9174
9112
|
'div',
|
|
9175
9113
|
{ className: 'multi-figure-caption' },
|
|
9176
|
-
|
|
9114
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9177
9115
|
);
|
|
9178
9116
|
} else if (caption) {
|
|
9179
|
-
return
|
|
9117
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9180
9118
|
} else return null;
|
|
9181
9119
|
};
|
|
9182
9120
|
|
|
9183
|
-
var handleClickFigure = useCallback(function (image, client) {
|
|
9184
|
-
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9185
|
-
setOpenImg(true);
|
|
9186
|
-
}, [client]);
|
|
9187
|
-
|
|
9188
9121
|
if (images && images.length > 0) {
|
|
9189
|
-
return
|
|
9122
|
+
return React__default.createElement(
|
|
9190
9123
|
'div',
|
|
9191
9124
|
{ className: 'multi-figure-container' },
|
|
9192
|
-
|
|
9125
|
+
React__default.createElement(
|
|
9193
9126
|
Row$1,
|
|
9194
9127
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9195
9128
|
images.map(function (image, index) {
|
|
9196
|
-
return
|
|
9129
|
+
return React__default.createElement(
|
|
9197
9130
|
Col$1,
|
|
9198
9131
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9199
|
-
image.link ?
|
|
9132
|
+
image.link ? React__default.createElement(
|
|
9200
9133
|
'a',
|
|
9201
9134
|
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9202
|
-
|
|
9135
|
+
React__default.createElement(
|
|
9203
9136
|
'div',
|
|
9204
9137
|
{ className: 'multi-figure-image-container' },
|
|
9205
|
-
|
|
9138
|
+
React__default.createElement(
|
|
9206
9139
|
LazyLoad,
|
|
9207
9140
|
{ once: true },
|
|
9208
|
-
|
|
9141
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor({ source: image.asset, client: client }), alt: image.alt })
|
|
9209
9142
|
),
|
|
9210
|
-
|
|
9143
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9211
9144
|
)
|
|
9212
|
-
) :
|
|
9145
|
+
) : React__default.createElement(
|
|
9213
9146
|
'div',
|
|
9214
9147
|
{ className: 'multi-figure-image-container' },
|
|
9215
|
-
|
|
9148
|
+
React__default.createElement(
|
|
9216
9149
|
LazyLoad,
|
|
9217
9150
|
{ once: true },
|
|
9218
|
-
|
|
9151
|
+
React__default.createElement('img', {
|
|
9152
|
+
'images-count': images.length,
|
|
9153
|
+
className: 'multi-figure-image',
|
|
9154
|
+
src: urlFor({ source: image.asset, client: client }),
|
|
9155
|
+
alt: image.alt,
|
|
9156
|
+
onClick: function onClick() {
|
|
9157
|
+
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9158
|
+
setOpenImg(true);
|
|
9159
|
+
}
|
|
9160
|
+
})
|
|
9219
9161
|
),
|
|
9220
|
-
|
|
9162
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9221
9163
|
)
|
|
9222
9164
|
);
|
|
9223
9165
|
})
|
|
9224
9166
|
),
|
|
9225
|
-
|
|
9167
|
+
React__default.createElement(
|
|
9226
9168
|
'div',
|
|
9227
9169
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9228
|
-
|
|
9170
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9229
9171
|
),
|
|
9230
|
-
|
|
9172
|
+
React__default.createElement(
|
|
9231
9173
|
'style',
|
|
9232
9174
|
{ jsx: 'true' },
|
|
9233
|
-
'\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
|
|
9175
|
+
'\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 }\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 '
|
|
9234
9176
|
)
|
|
9235
9177
|
);
|
|
9236
9178
|
}
|
|
@@ -9249,13 +9191,265 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9249
9191
|
|
|
9250
9192
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9251
9193
|
|
|
9252
|
-
return
|
|
9194
|
+
return React__default.createElement(
|
|
9253
9195
|
'div',
|
|
9254
9196
|
{ id: elementId },
|
|
9255
|
-
|
|
9197
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9256
9198
|
);
|
|
9257
9199
|
};
|
|
9258
9200
|
|
|
9201
|
+
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9202
|
+
|
|
9203
|
+
exports.__esModule = true;
|
|
9204
|
+
|
|
9205
|
+
exports.default = function (obj, keys) {
|
|
9206
|
+
var target = {};
|
|
9207
|
+
|
|
9208
|
+
for (var i in obj) {
|
|
9209
|
+
if (keys.indexOf(i) >= 0) continue;
|
|
9210
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9211
|
+
target[i] = obj[i];
|
|
9212
|
+
}
|
|
9213
|
+
|
|
9214
|
+
return target;
|
|
9215
|
+
};
|
|
9216
|
+
});
|
|
9217
|
+
|
|
9218
|
+
unwrapExports(objectWithoutProperties);
|
|
9219
|
+
|
|
9220
|
+
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9221
|
+
|
|
9222
|
+
exports.__esModule = true;
|
|
9223
|
+
|
|
9224
|
+
|
|
9225
|
+
|
|
9226
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9227
|
+
|
|
9228
|
+
|
|
9229
|
+
|
|
9230
|
+
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9231
|
+
|
|
9232
|
+
|
|
9233
|
+
|
|
9234
|
+
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
9235
|
+
|
|
9236
|
+
|
|
9237
|
+
|
|
9238
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
9239
|
+
|
|
9240
|
+
|
|
9241
|
+
|
|
9242
|
+
var _inherits3 = _interopRequireDefault(inherits);
|
|
9243
|
+
|
|
9244
|
+
|
|
9245
|
+
|
|
9246
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9247
|
+
|
|
9248
|
+
|
|
9249
|
+
|
|
9250
|
+
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
9251
|
+
|
|
9252
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9253
|
+
var noop = function noop() {};
|
|
9254
|
+
|
|
9255
|
+
var ScriptTag = function (_Component) {
|
|
9256
|
+
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9257
|
+
|
|
9258
|
+
ScriptTag.removeNode = function removeNode(node) {
|
|
9259
|
+
if (node) {
|
|
9260
|
+
node.parentNode.removeChild(node);
|
|
9261
|
+
}
|
|
9262
|
+
};
|
|
9263
|
+
|
|
9264
|
+
function ScriptTag(props, context) {
|
|
9265
|
+
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9266
|
+
|
|
9267
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9268
|
+
|
|
9269
|
+
_this.domRef = null;
|
|
9270
|
+
_this.state = {
|
|
9271
|
+
isHydrated: props.isHydrating,
|
|
9272
|
+
additionalNode: null,
|
|
9273
|
+
removeAdditionalNode: null
|
|
9274
|
+
};
|
|
9275
|
+
return _this;
|
|
9276
|
+
}
|
|
9277
|
+
|
|
9278
|
+
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9279
|
+
var _props = this.props,
|
|
9280
|
+
onError = _props.onError,
|
|
9281
|
+
onLoad = _props.onLoad,
|
|
9282
|
+
nonce = _props.nonce;
|
|
9283
|
+
|
|
9284
|
+
// Create a new HTML script element
|
|
9285
|
+
|
|
9286
|
+
var newElement = document.createElement("script");
|
|
9287
|
+
|
|
9288
|
+
// Copy all attribute values
|
|
9289
|
+
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9290
|
+
var attr = this.domRef.attributes[i];
|
|
9291
|
+
if (attr.nodeName === 'nonce') {
|
|
9292
|
+
// The browser clears the nonce value - grab from props
|
|
9293
|
+
newElement.setAttribute(attr.nodeName, nonce);
|
|
9294
|
+
} else {
|
|
9295
|
+
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9296
|
+
}
|
|
9297
|
+
}
|
|
9298
|
+
|
|
9299
|
+
// Copy the inner script
|
|
9300
|
+
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9301
|
+
newElement.innerHTML = this.domRef.innerHTML;
|
|
9302
|
+
}
|
|
9303
|
+
|
|
9304
|
+
// Bind event listeners
|
|
9305
|
+
newElement.addEventListener('load', onLoad);
|
|
9306
|
+
newElement.addEventListener('error', onError);
|
|
9307
|
+
|
|
9308
|
+
// Append the new script tag
|
|
9309
|
+
this.domRef.parentNode.appendChild(newElement);
|
|
9310
|
+
return newElement;
|
|
9311
|
+
};
|
|
9312
|
+
|
|
9313
|
+
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9314
|
+
var isHydrated = this.state.isHydrated;
|
|
9315
|
+
|
|
9316
|
+
if (isHydrated) {
|
|
9317
|
+
// was rendered on server, don't replace elements when hydrating
|
|
9318
|
+
return;
|
|
9319
|
+
}
|
|
9320
|
+
|
|
9321
|
+
this.setState({
|
|
9322
|
+
additionalNode: this.appendAdditionalElement(),
|
|
9323
|
+
removeAdditionalNode: null
|
|
9324
|
+
});
|
|
9325
|
+
};
|
|
9326
|
+
|
|
9327
|
+
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9328
|
+
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9329
|
+
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9330
|
+
|
|
9331
|
+
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9332
|
+
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9333
|
+
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9334
|
+
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9335
|
+
// This really complicates the component - for now we'll leave it as is.
|
|
9336
|
+
var _props2 = this.props,
|
|
9337
|
+
src = _props2.src,
|
|
9338
|
+
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9339
|
+
|
|
9340
|
+
if (src && src === nextProps.src) {
|
|
9341
|
+
// The 'src' attribute has not changed
|
|
9342
|
+
return;
|
|
9343
|
+
}
|
|
9344
|
+
|
|
9345
|
+
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9346
|
+
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9347
|
+
return;
|
|
9348
|
+
}
|
|
9349
|
+
|
|
9350
|
+
this.setState({
|
|
9351
|
+
removeAdditionalNode: this.state.additionalNode,
|
|
9352
|
+
additionalNode: null
|
|
9353
|
+
});
|
|
9354
|
+
};
|
|
9355
|
+
|
|
9356
|
+
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9357
|
+
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9358
|
+
};
|
|
9359
|
+
|
|
9360
|
+
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9361
|
+
var _state = this.state,
|
|
9362
|
+
additionalNode = _state.additionalNode,
|
|
9363
|
+
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9364
|
+
|
|
9365
|
+
if (additionalNode === null) {
|
|
9366
|
+
this.setState({
|
|
9367
|
+
additionalNode: this.appendAdditionalElement()
|
|
9368
|
+
});
|
|
9369
|
+
}
|
|
9370
|
+
|
|
9371
|
+
if (removeAdditionalNode !== null) {
|
|
9372
|
+
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9373
|
+
this.setState({
|
|
9374
|
+
removeAdditionalNode: null
|
|
9375
|
+
});
|
|
9376
|
+
}
|
|
9377
|
+
};
|
|
9378
|
+
|
|
9379
|
+
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9380
|
+
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9381
|
+
ScriptTag.removeNode(this.state.additionalNode);
|
|
9382
|
+
};
|
|
9383
|
+
|
|
9384
|
+
ScriptTag.prototype.render = function render() {
|
|
9385
|
+
var _this2 = this;
|
|
9386
|
+
|
|
9387
|
+
var additionalNode = this.state.additionalNode;
|
|
9388
|
+
|
|
9389
|
+
if (additionalNode !== null) {
|
|
9390
|
+
return null;
|
|
9391
|
+
}
|
|
9392
|
+
|
|
9393
|
+
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9394
|
+
// eslint-disable-next-line no-unused-vars
|
|
9395
|
+
var _props3 = this.props;
|
|
9396
|
+
_props3.isHydrating;
|
|
9397
|
+
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9398
|
+
|
|
9399
|
+
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9400
|
+
return _this2.domRef = tag;
|
|
9401
|
+
} }));
|
|
9402
|
+
};
|
|
9403
|
+
|
|
9404
|
+
return ScriptTag;
|
|
9405
|
+
}(React__default.Component);
|
|
9406
|
+
|
|
9407
|
+
ScriptTag.propTypes = {
|
|
9408
|
+
/**
|
|
9409
|
+
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9410
|
+
*/
|
|
9411
|
+
isHydrating: _propTypes2.default.bool,
|
|
9412
|
+
|
|
9413
|
+
// Standard <script> tag props
|
|
9414
|
+
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9415
|
+
crossOrigin: _propTypes2.default.string,
|
|
9416
|
+
defer: _propTypes2.default.bool,
|
|
9417
|
+
integrity: _propTypes2.default.string,
|
|
9418
|
+
nonce: _propTypes2.default.string,
|
|
9419
|
+
src: _propTypes2.default.string,
|
|
9420
|
+
text: _propTypes2.default.string,
|
|
9421
|
+
type: _propTypes2.default.string,
|
|
9422
|
+
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9423
|
+
|
|
9424
|
+
// globals
|
|
9425
|
+
onError: _propTypes2.default.func,
|
|
9426
|
+
onLoad: _propTypes2.default.func
|
|
9427
|
+
};
|
|
9428
|
+
ScriptTag.defaultProps = {
|
|
9429
|
+
isHydrating: false,
|
|
9430
|
+
onError: noop,
|
|
9431
|
+
onLoad: noop
|
|
9432
|
+
};
|
|
9433
|
+
exports.default = ScriptTag;
|
|
9434
|
+
});
|
|
9435
|
+
|
|
9436
|
+
unwrapExports(ScriptTag_1);
|
|
9437
|
+
|
|
9438
|
+
var lib = createCommonjsModule(function (module, exports) {
|
|
9439
|
+
|
|
9440
|
+
exports.__esModule = true;
|
|
9441
|
+
|
|
9442
|
+
|
|
9443
|
+
|
|
9444
|
+
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
9445
|
+
|
|
9446
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9447
|
+
|
|
9448
|
+
exports.default = _ScriptTag2.default;
|
|
9449
|
+
});
|
|
9450
|
+
|
|
9451
|
+
var ScriptTag = unwrapExports(lib);
|
|
9452
|
+
|
|
9259
9453
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
9260
9454
|
|
|
9261
9455
|
var FormAssembly = function FormAssembly(props) {
|
|
@@ -9273,7 +9467,7 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9273
9467
|
useEffect(function () {
|
|
9274
9468
|
if (FormID) {
|
|
9275
9469
|
var src = 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID;
|
|
9276
|
-
var anonymousID =
|
|
9470
|
+
var anonymousID = analytics.user() && analytics.user().anonymousId();
|
|
9277
9471
|
if (anonymousID && needSegmentSupport) {
|
|
9278
9472
|
src = src + '?tfa_1=' + anonymousID;
|
|
9279
9473
|
}
|
|
@@ -9287,11 +9481,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9287
9481
|
}, []);
|
|
9288
9482
|
|
|
9289
9483
|
if (iframeSrc) {
|
|
9290
|
-
return
|
|
9484
|
+
return React__default.createElement(
|
|
9291
9485
|
'section',
|
|
9292
9486
|
{ className: 'form-assembly' },
|
|
9293
|
-
|
|
9294
|
-
|
|
9487
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9488
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9295
9489
|
);
|
|
9296
9490
|
}
|
|
9297
9491
|
|
|
@@ -9328,27 +9522,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9328
9522
|
return window.removeEventListener('resize', handleResize);
|
|
9329
9523
|
};
|
|
9330
9524
|
}, []);
|
|
9331
|
-
return
|
|
9525
|
+
return React__default.createElement(
|
|
9332
9526
|
'div',
|
|
9333
9527
|
{ className: 'blockTableHolder', ref: holder },
|
|
9334
|
-
|
|
9528
|
+
React__default.createElement(
|
|
9335
9529
|
'div',
|
|
9336
9530
|
{ className: 'blockTable' },
|
|
9337
9531
|
rows && rows.map(function (row) {
|
|
9338
|
-
return
|
|
9532
|
+
return React__default.createElement(
|
|
9339
9533
|
'div',
|
|
9340
9534
|
{ className: 'blockTableRow' },
|
|
9341
9535
|
row.cells && row.cells.map(function (cell) {
|
|
9342
|
-
return
|
|
9536
|
+
return React__default.createElement(
|
|
9343
9537
|
'div',
|
|
9344
9538
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9345
|
-
|
|
9539
|
+
React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9346
9540
|
);
|
|
9347
9541
|
})
|
|
9348
9542
|
);
|
|
9349
9543
|
})
|
|
9350
9544
|
),
|
|
9351
|
-
|
|
9545
|
+
React__default.createElement(
|
|
9352
9546
|
'style',
|
|
9353
9547
|
{ jsx: true },
|
|
9354
9548
|
'\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 '
|
|
@@ -9427,12 +9621,12 @@ var getSerializers = function getSerializers() {
|
|
|
9427
9621
|
var node = _ref.node;
|
|
9428
9622
|
var url = node.url;
|
|
9429
9623
|
|
|
9430
|
-
return
|
|
9624
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9431
9625
|
},
|
|
9432
9626
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9433
9627
|
var node = _ref2.node;
|
|
9434
9628
|
|
|
9435
|
-
return
|
|
9629
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9436
9630
|
nodes: node,
|
|
9437
9631
|
article: article,
|
|
9438
9632
|
meta: meta,
|
|
@@ -9446,7 +9640,7 @@ var getSerializers = function getSerializers() {
|
|
|
9446
9640
|
articleSeries: function articleSeries(_ref3) {
|
|
9447
9641
|
var node = _ref3.node;
|
|
9448
9642
|
|
|
9449
|
-
return
|
|
9643
|
+
return React__default.createElement(ArticleSeries, {
|
|
9450
9644
|
nodes: node,
|
|
9451
9645
|
accountIDs: videoAccountIDs || {},
|
|
9452
9646
|
pageview: pageview,
|
|
@@ -9459,61 +9653,61 @@ var getSerializers = function getSerializers() {
|
|
|
9459
9653
|
figure: function figure(_ref4) {
|
|
9460
9654
|
var node = _ref4.node;
|
|
9461
9655
|
|
|
9462
|
-
return
|
|
9656
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9463
9657
|
},
|
|
9464
9658
|
multifigure: function multifigure(_ref5) {
|
|
9465
9659
|
var node = _ref5.node;
|
|
9466
9660
|
|
|
9467
|
-
return
|
|
9661
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9468
9662
|
},
|
|
9469
9663
|
slideshow: function slideshow(_ref6) {
|
|
9470
9664
|
var node = _ref6.node;
|
|
9471
9665
|
var slides = node.slides;
|
|
9472
9666
|
|
|
9473
|
-
return
|
|
9667
|
+
return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
9474
9668
|
},
|
|
9475
9669
|
sidebar: function sidebar(_ref7) {
|
|
9476
9670
|
var node = _ref7.node;
|
|
9477
9671
|
var caption = node.caption,
|
|
9478
9672
|
content = node.content;
|
|
9479
9673
|
|
|
9480
|
-
return
|
|
9674
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9481
9675
|
},
|
|
9482
9676
|
datatable: function datatable(_ref8) {
|
|
9483
9677
|
var node = _ref8.node;
|
|
9484
9678
|
var table = node.table;
|
|
9485
9679
|
|
|
9486
|
-
return
|
|
9680
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9487
9681
|
},
|
|
9488
9682
|
media: function media(_ref9) {
|
|
9489
9683
|
var node = _ref9.node;
|
|
9490
9684
|
|
|
9491
|
-
return
|
|
9685
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9492
9686
|
},
|
|
9493
9687
|
iframe: function iframe(_ref10) {
|
|
9494
9688
|
var node = _ref10.node;
|
|
9495
9689
|
|
|
9496
|
-
return
|
|
9690
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9497
9691
|
},
|
|
9498
9692
|
video: function video(_ref11) {
|
|
9499
9693
|
var node = _ref11.node;
|
|
9500
9694
|
|
|
9501
|
-
return
|
|
9695
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9502
9696
|
},
|
|
9503
9697
|
audio: function audio(_ref12) {
|
|
9504
9698
|
var node = _ref12.node;
|
|
9505
9699
|
|
|
9506
|
-
return
|
|
9700
|
+
return React__default.createElement(Audio, { node: node });
|
|
9507
9701
|
},
|
|
9508
9702
|
poll: function poll(_ref13) {
|
|
9509
9703
|
var node = _ref13.node;
|
|
9510
9704
|
|
|
9511
|
-
return
|
|
9705
|
+
return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9512
9706
|
},
|
|
9513
9707
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9514
9708
|
var node = _ref14.node;
|
|
9515
9709
|
|
|
9516
|
-
return
|
|
9710
|
+
return React__default.createElement(Poll, {
|
|
9517
9711
|
node: node,
|
|
9518
9712
|
client: client,
|
|
9519
9713
|
pageview: pageview,
|
|
@@ -9527,35 +9721,35 @@ var getSerializers = function getSerializers() {
|
|
|
9527
9721
|
var node = _ref15.node;
|
|
9528
9722
|
var quizzes = node.quizzes;
|
|
9529
9723
|
|
|
9530
|
-
return
|
|
9724
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9531
9725
|
},
|
|
9532
9726
|
leads: function leads(_ref16) {
|
|
9533
9727
|
var node = _ref16.node;
|
|
9534
9728
|
var leadID = node.leadID;
|
|
9535
9729
|
|
|
9536
9730
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9537
|
-
return
|
|
9731
|
+
return React__default.createElement(Leads, { url: url });
|
|
9538
9732
|
},
|
|
9539
9733
|
slideshows: function slideshows(_ref17) {
|
|
9540
9734
|
var node = _ref17.node;
|
|
9541
9735
|
|
|
9542
|
-
return
|
|
9736
|
+
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9543
9737
|
},
|
|
9544
9738
|
nativeAd: function nativeAd(_ref18) {
|
|
9545
9739
|
var node = _ref18.node;
|
|
9546
9740
|
|
|
9547
|
-
return
|
|
9741
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9548
9742
|
},
|
|
9549
9743
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9550
9744
|
var node = _ref19.node;
|
|
9551
9745
|
|
|
9552
|
-
return
|
|
9746
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9553
9747
|
},
|
|
9554
9748
|
hrtag: function hrtag() {
|
|
9555
|
-
return
|
|
9749
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9556
9750
|
},
|
|
9557
9751
|
brtag: function brtag() {
|
|
9558
|
-
return
|
|
9752
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9559
9753
|
},
|
|
9560
9754
|
formstack: function formstack(_ref20) {
|
|
9561
9755
|
var node = _ref20.node;
|
|
@@ -9563,29 +9757,29 @@ var getSerializers = function getSerializers() {
|
|
|
9563
9757
|
Caption = node.Caption,
|
|
9564
9758
|
needSegmentSupport = node.needSegmentSupport;
|
|
9565
9759
|
|
|
9566
|
-
return
|
|
9760
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9567
9761
|
},
|
|
9568
9762
|
formassembly: FormAssembly,
|
|
9569
9763
|
multimedia: function multimedia(_ref21) {
|
|
9570
9764
|
var node = _ref21.node;
|
|
9571
9765
|
|
|
9572
|
-
return
|
|
9766
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9573
9767
|
},
|
|
9574
9768
|
blockTable: function blockTable(_ref22) {
|
|
9575
9769
|
var node = _ref22.node;
|
|
9576
|
-
return
|
|
9770
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9577
9771
|
}
|
|
9578
9772
|
},
|
|
9579
9773
|
marks: {
|
|
9580
9774
|
superscript: function superscript(props) {
|
|
9581
|
-
return
|
|
9775
|
+
return React__default.createElement(
|
|
9582
9776
|
'sup',
|
|
9583
9777
|
null,
|
|
9584
9778
|
props.children
|
|
9585
9779
|
);
|
|
9586
9780
|
},
|
|
9587
9781
|
subscript: function subscript(props) {
|
|
9588
|
-
return
|
|
9782
|
+
return React__default.createElement(
|
|
9589
9783
|
'sub',
|
|
9590
9784
|
null,
|
|
9591
9785
|
props.children
|
|
@@ -9601,7 +9795,7 @@ var getSerializers = function getSerializers() {
|
|
|
9601
9795
|
if (href && href.charAt(0) === '#') {
|
|
9602
9796
|
var elementId = href.slice(1);
|
|
9603
9797
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9604
|
-
return
|
|
9798
|
+
return React__default.createElement(
|
|
9605
9799
|
'a',
|
|
9606
9800
|
{ onClick: function onClick() {
|
|
9607
9801
|
return ScrollToElement(elementId);
|
|
@@ -9611,7 +9805,7 @@ var getSerializers = function getSerializers() {
|
|
|
9611
9805
|
}
|
|
9612
9806
|
|
|
9613
9807
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9614
|
-
return
|
|
9808
|
+
return React__default.createElement(
|
|
9615
9809
|
'a',
|
|
9616
9810
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9617
9811
|
children
|
|
@@ -9619,7 +9813,7 @@ var getSerializers = function getSerializers() {
|
|
|
9619
9813
|
},
|
|
9620
9814
|
alignleft: function alignleft(_ref23) {
|
|
9621
9815
|
var children = _ref23.children;
|
|
9622
|
-
return
|
|
9816
|
+
return React__default.createElement(
|
|
9623
9817
|
'div',
|
|
9624
9818
|
{ style: { textAlign: 'left' } },
|
|
9625
9819
|
children
|
|
@@ -9627,7 +9821,7 @@ var getSerializers = function getSerializers() {
|
|
|
9627
9821
|
},
|
|
9628
9822
|
alignright: function alignright(_ref24) {
|
|
9629
9823
|
var children = _ref24.children;
|
|
9630
|
-
return
|
|
9824
|
+
return React__default.createElement(
|
|
9631
9825
|
'div',
|
|
9632
9826
|
{ style: { textAlign: 'right' } },
|
|
9633
9827
|
children
|
|
@@ -9635,7 +9829,7 @@ var getSerializers = function getSerializers() {
|
|
|
9635
9829
|
},
|
|
9636
9830
|
aligncenter: function aligncenter(_ref25) {
|
|
9637
9831
|
var children = _ref25.children;
|
|
9638
|
-
return
|
|
9832
|
+
return React__default.createElement(
|
|
9639
9833
|
'div',
|
|
9640
9834
|
{ style: { textAlign: 'center' } },
|
|
9641
9835
|
children
|
|
@@ -9643,7 +9837,7 @@ var getSerializers = function getSerializers() {
|
|
|
9643
9837
|
},
|
|
9644
9838
|
alignjustify: function alignjustify(_ref26) {
|
|
9645
9839
|
var children = _ref26.children;
|
|
9646
|
-
return
|
|
9840
|
+
return React__default.createElement(
|
|
9647
9841
|
'div',
|
|
9648
9842
|
{ style: { textAlign: 'justify' } },
|
|
9649
9843
|
children
|
|
@@ -9653,7 +9847,7 @@ var getSerializers = function getSerializers() {
|
|
|
9653
9847
|
var children = props.children,
|
|
9654
9848
|
color = props.mark.color;
|
|
9655
9849
|
|
|
9656
|
-
return
|
|
9850
|
+
return React__default.createElement(
|
|
9657
9851
|
'span',
|
|
9658
9852
|
{ style: { color: color ? color.hex : null } },
|
|
9659
9853
|
children
|