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