@mjhls/mjh-framework 1.0.989 → 1.0.990-next-12-01
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-b54f0bda.js → ADInfeed-cf54cb8a.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-4f0850ec.js → ADlgInfeed-d06624d8.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 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +29 -29
- package/dist/cjs/ArticleSeriesListing.js +30 -30
- 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 -47
- 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 +46 -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/HealthCareProfessionalModal.js +3 -3
- package/dist/cjs/Hero.js +7 -7
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +46 -48
- 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 -85
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +19 -19
- package/dist/cjs/MasterDeck.js +38 -38
- package/dist/cjs/MasterDeckPaginated.js +41 -41
- package/dist/cjs/{MediaSeriesCard-94c5bb79.js → MediaSeriesCard-36eab8b7.js} +646 -446
- package/dist/cjs/MediaSeriesLanding.js +54 -56
- package/dist/cjs/MediaSeriesLandingPaginated.js +60 -62
- package/dist/cjs/NavDvm.js +11 -11
- package/dist/cjs/NavMagazine.js +39 -39
- package/dist/cjs/NavNative.js +39 -39
- package/dist/cjs/OncliveHero.js +7 -7
- package/dist/cjs/OncliveLargeHero.js +11 -11
- package/dist/cjs/PageFilter.js +4 -4
- package/dist/cjs/{Pagination-7624a3bd.js → Pagination-1e0d5f1d.js} +3 -3
- package/dist/cjs/PartnerDetailListing.js +59 -60
- package/dist/cjs/PartnerDetailListingPaginated.js +59 -60
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PixelTracking.js +7 -7
- package/dist/cjs/PopUpModal.js +4 -4
- package/dist/cjs/PtceDeck.js +10 -10
- package/dist/cjs/PubSection.js +32 -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 +35 -35
- package/dist/cjs/QueueDeckExpandedPaginated.js +38 -38
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +38 -38
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Schema.js +10 -10
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +17 -17
- package/dist/cjs/{SeriesSlider-08699353.js → SeriesSlider-b94f1dd5.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 -46
- 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 -52
- 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 +115 -119
- 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 +325 -8
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getPtceActivities.js +27 -14
- package/dist/cjs/getRelatedArticle.js +343 -74
- package/dist/cjs/getRootDocGroup.js +4 -4
- package/dist/cjs/getSerializers.js +44 -46
- package/dist/cjs/{getTargeting-5eabd6e2.js → getTargeting-4439c99d.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-3c067d4f.js → index-7361fa72.js} +993 -171
- 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 +140 -148
- 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/{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-310d113c.js → ADInfeed-f684cac9.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-eeaa14e2.js → ADlgInfeed-8c438cee.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 -56
- package/dist/esm/ArticleSeriesLandingPage.js +35 -35
- package/dist/esm/ArticleSeriesListing.js +54 -54
- package/dist/esm/AuthWrapper.js +605 -27
- package/dist/esm/{AuthorComponent-b0a47123.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 +70 -70
- package/dist/esm/DeckQueuePaginated.js +63 -63
- package/dist/esm/{Dfp-e151d2de.js → Dfp-4b99f79d.js} +20 -20
- package/dist/esm/EventsDeck.js +103 -103
- package/dist/esm/ExternalResources.js +71 -73
- package/dist/esm/Feature.js +21 -21
- package/dist/esm/ForbesHero.js +33 -33
- package/dist/esm/GridContent.js +145 -145
- package/dist/esm/GridContentPaginated.js +133 -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/HealthCareProfessionalModal.js +13 -13
- package/dist/esm/Hero.js +13 -13
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +68 -70
- 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 -93
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +32 -32
- package/dist/esm/MasterDeck.js +71 -71
- package/dist/esm/MasterDeckPaginated.js +63 -63
- package/dist/esm/{MediaSeriesCard-4865e60f.js → MediaSeriesCard-99048e65.js} +907 -707
- package/dist/esm/MediaSeriesLanding.js +79 -81
- package/dist/esm/MediaSeriesLandingPaginated.js +83 -85
- package/dist/esm/NavDvm.js +54 -54
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +121 -121
- package/dist/esm/NavNative.js +110 -110
- package/dist/esm/OncliveHero.js +19 -19
- package/dist/esm/OncliveLargeHero.js +58 -58
- package/dist/esm/PageFilter.js +10 -10
- package/dist/esm/{Pagination-1e09918f.js → Pagination-cd21f8c2.js} +13 -13
- package/dist/esm/PartnerDetailListing.js +95 -96
- package/dist/esm/PartnerDetailListingPaginated.js +91 -92
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PixelTracking.js +16 -16
- package/dist/esm/PopUpModal.js +12 -12
- package/dist/esm/PtceDeck.js +23 -23
- package/dist/esm/PubSection.js +37 -37
- package/dist/esm/PubToc.js +10 -10
- package/dist/esm/PublicationDeck.js +42 -42
- package/dist/esm/{PublicationFeature-0379cc20.js → PublicationFeature-03500094.js} +23 -23
- package/dist/esm/PublicationLanding.js +101 -101
- package/dist/esm/QueueDeckExpanded.js +273 -273
- package/dist/esm/QueueDeckExpandedPaginated.js +253 -253
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +51 -51
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Schema.js +12 -12
- package/dist/esm/Search.js +10 -10
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +30 -30
- package/dist/esm/{SeriesSlider-b364d074.js → SeriesSlider-609f9d94.js} +35 -35
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-77a22145.js → SocialSearchComponent-1d8a9f59.js} +33 -33
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +44 -44
- package/dist/esm/TaxonomyDescription.js +48 -50
- 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 -64
- 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 +318 -322
- package/dist/esm/YahooHero.js +33 -33
- package/dist/esm/YoutubeGroup.js +52 -52
- package/dist/esm/{_is-array-31d40a83.js → _is-array-893ab020.js} +6 -6
- package/dist/esm/{_iter-detect-72edfd60.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-4201ccf6.js → _object-sap-169d6272.js} +1 -1
- package/dist/esm/{_object-to-array-fa0feeff.js → _object-to-array-50a6b9a3.js} +2 -2
- package/dist/esm/{asyncToGenerator-9c835201.js → asyncToGenerator-9716ae8d.js} +30 -30
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/{core.get-iterator-method-8c71f470.js → core.get-iterator-method-e903ff31.js} +36 -36
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-a8a00786.js → define-property-99e66838.js} +6 -6
- package/dist/esm/{defineProperty-3518b6fe.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-7fbbe94e.js → extends-dc6a71fd.js} +8 -8
- package/dist/esm/faundadb.js +323 -6
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getPtceActivities.js +27 -14
- package/dist/esm/getRelatedArticle.js +339 -70
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +44 -46
- package/dist/esm/{getTargeting-eed01f73.js → getTargeting-db566006.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-25f93396.js → index-c60f3bb6.js} +1396 -573
- 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 +166 -173
- package/dist/esm/{inherits-d26c739e.js → inherits-8a801a18.js} +19 -19
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/keys-425c8ab0.js +23 -0
- package/dist/esm/{lodash-ec8c6b48.js → lodash-f97fd99a.js} +58 -10
- package/dist/esm/main-1894c974.js +961 -0
- package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-9be47857.js} +20 -20
- package/dist/esm/{slicedToArray-99bcfd93.js → slicedToArray-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-47a5394a.js → toConsumableArray-7b1c0e23.js} +7 -7
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-d92ed6e0.js → typeof-83d9eb10.js} +34 -34
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{urlForFile-0fc42ed8.js → urlForFile-413f5ddb.js} +1 -1
- package/dist/esm/{ustream-api-cbba615a.js → ustream-api-41166338.js} +4 -4
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-406140e0.js → web.dom.iterable-fdf034f5.js} +2 -2
- package/package.json +115 -115
- package/dist/cjs/Auth.js +0 -3514
- package/dist/cjs/ImageSlider-10cd194f.js +0 -1383
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/cjs/main-7b5e57b0.js +0 -898
- package/dist/cjs/md5-e1ca5797.js +0 -323
- package/dist/cjs/util-f2c1b65b.js +0 -576
- package/dist/esm/Auth.js +0 -3494
- package/dist/esm/ImageSlider-5ae6287a.js +0 -1375
- package/dist/esm/index-db3bb315.js +0 -207
- package/dist/esm/keys-5e9bd229.js +0 -23
- package/dist/esm/main-43ca42fe.js +0 -886
- package/dist/esm/md5-4e42248e.js +0 -321
- package/dist/esm/stringify-0c65d837.js +0 -15
- package/dist/esm/util-7700fc59.js +0 -574
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
|
|
1
3
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
|
|
4
4
|
|
|
5
5
|
var HighlightenVideo = function HighlightenVideo(_ref) {
|
|
6
6
|
var highlightVideoOptions = _ref.highlightVideoOptions;
|
|
@@ -11,24 +11,24 @@ var HighlightenVideo = function HighlightenVideo(_ref) {
|
|
|
11
11
|
videoId = highlightVideoOptions.videoId;
|
|
12
12
|
|
|
13
13
|
if (accountId && experienceId) {
|
|
14
|
-
return
|
|
15
|
-
|
|
14
|
+
return React__default.createElement(
|
|
15
|
+
React__default.Fragment,
|
|
16
16
|
null,
|
|
17
|
-
|
|
17
|
+
React__default.createElement(
|
|
18
18
|
'div',
|
|
19
19
|
{ className: 'brightcove-experience-player' },
|
|
20
|
-
|
|
20
|
+
React__default.createElement(
|
|
21
21
|
'p',
|
|
22
22
|
{ style: { width: '100%' } },
|
|
23
23
|
'Highlighted Videos'
|
|
24
24
|
),
|
|
25
|
-
|
|
25
|
+
React__default.createElement(
|
|
26
26
|
'div',
|
|
27
27
|
{ className: 'playlist-player', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
28
|
-
|
|
28
|
+
React__default.createElement(
|
|
29
29
|
'div',
|
|
30
30
|
{ style: { paddingTop: '56.25%' } },
|
|
31
|
-
|
|
31
|
+
React__default.createElement('iframe', {
|
|
32
32
|
src: 'https://players.brightcove.net/' + accountId + '/' + experienceId + '/index.html',
|
|
33
33
|
allowFullScreen: true,
|
|
34
34
|
allow: 'encrypted-media',
|
|
@@ -37,23 +37,23 @@ var HighlightenVideo = function HighlightenVideo(_ref) {
|
|
|
37
37
|
)
|
|
38
38
|
)
|
|
39
39
|
),
|
|
40
|
-
|
|
40
|
+
React__default.createElement(
|
|
41
41
|
'style',
|
|
42
42
|
{ jsx: 'true' },
|
|
43
43
|
'\n @media (min-width: 320px) {\n .playlist-player {\n height: 290px;\n }\n }\n @media (min-width: 360px) {\n .playlist-player {\n height: 340px;\n }\n }\n @media (min-width: 480px) {\n .playlist-player {\n height: 400px;\n }\n }\n @media (min-width: 560px) {\n .playlist-player {\n height: 300px;\n }\n }\n @media (min-width: 768px) {\n .playlist-player {\n height: 400px;\n }\n }\n @media (min-width: 968px) {\n .playlist-player {\n height: 300px;\n }\n }\n @media (min-width: 992px) {\n .playlist-player {\n height: 350px;\n }\n }\n @media (min-width: 1192px) {\n .playlist-player {\n height: 300px;\n }\n }\n @media (min-width: 1400px) {\n .playlist-player {\n height: 400px;\n }\n }\n .brightcove-experience-player {\n margin-bottom: 10px;\n width: 100%;\n }\n .brightcove-experience-player p {\n padding: 10px;\n margin: 0;\n color: #fff;\n text-transform: uppercase;\n text-align: center;\n font-size: 1.5em;\n font-weight: 400;\n margin-bottom: 10px;\n }\n '
|
|
44
44
|
)
|
|
45
45
|
);
|
|
46
46
|
} else if (accountId && playerId && playlistId) {
|
|
47
|
-
return
|
|
47
|
+
return React__default.createElement(
|
|
48
48
|
'div',
|
|
49
49
|
{ className: 'brightcove-playlist-player' },
|
|
50
|
-
|
|
50
|
+
React__default.createElement(ReactPlayerLoader, { accountId: accountId, playerId: playerId, playlistId: playlistId, attrs: { className: 'brightcove' } })
|
|
51
51
|
);
|
|
52
52
|
} else if (accountId && playerId && videoId) {
|
|
53
|
-
return
|
|
53
|
+
return React__default.createElement(
|
|
54
54
|
'div',
|
|
55
55
|
{ className: 'brightcove-video-player' },
|
|
56
|
-
|
|
56
|
+
React__default.createElement(ReactPlayerLoader, { accountId: accountId, playerId: playerId, videoId: videoId, attrs: { className: 'brightcove' } })
|
|
57
57
|
);
|
|
58
58
|
} else {
|
|
59
59
|
return null;
|
|
@@ -1,65 +1,63 @@
|
|
|
1
|
+
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import ArticleCarousel from './ArticleCarousel.js';
|
|
4
|
+
import { I as IoIosArrowForward } from './index.esm-eb1e8e80.js';
|
|
5
|
+
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
6
|
+
import { g as getSerializers } from './index-c60f3bb6.js';
|
|
1
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './core.get-iterator-method-
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import
|
|
8
|
-
import './
|
|
9
|
-
import './inherits-d26c739e.js';
|
|
10
|
-
import './define-property-a8a00786.js';
|
|
11
|
-
import './web.dom.iterable-406140e0.js';
|
|
12
|
-
import './typeof-d92ed6e0.js';
|
|
13
|
-
import './_is-array-31d40a83.js';
|
|
14
|
-
import React from 'react';
|
|
15
|
-
import './index-1819118a.js';
|
|
16
|
-
import 'prop-types';
|
|
17
|
-
import 'react-bootstrap/Row';
|
|
18
|
-
import 'react-bootstrap/Col';
|
|
19
|
-
import './moment-b6f49411.js';
|
|
20
|
-
import 'next/router';
|
|
21
|
-
import './isSymbol-1981418f.js';
|
|
22
|
-
import './debounce-9207d8ee.js';
|
|
23
|
-
import './toNumber-2f7a84cd.js';
|
|
8
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
9
|
+
import './_object-pie-133f504a.js';
|
|
10
|
+
import './YoutubeGroup.js';
|
|
11
|
+
import './slicedToArray-ca2c8b8d.js';
|
|
12
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
13
|
+
import './index-c7e2ac95.js';
|
|
14
|
+
import './index-755f2cc2.js';
|
|
24
15
|
import 'react-dom';
|
|
25
|
-
import '
|
|
26
|
-
import './
|
|
16
|
+
import 'prop-types';
|
|
17
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
27
18
|
import './urlFor.js';
|
|
28
|
-
import './index-
|
|
29
|
-
import './main-
|
|
30
|
-
import './
|
|
31
|
-
import './stringify-0c65d837.js';
|
|
32
|
-
import './asyncToGenerator-9c835201.js';
|
|
33
|
-
import './Segment.js';
|
|
34
|
-
import './Beam.js';
|
|
35
|
-
import './AdSlot.js';
|
|
36
|
-
import 'react-bootstrap/Button';
|
|
37
|
-
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
38
|
-
import './index-c7e2ac95.js';
|
|
39
|
-
import './smoothscroll-0cd4c7a6.js';
|
|
40
|
-
import './GroupDeck.js';
|
|
41
|
-
import './YoutubeGroup.js';
|
|
19
|
+
import './index-0dbff1d1.js';
|
|
20
|
+
import './main-1894c974.js';
|
|
21
|
+
import './iconBase-ccc56b97.js';
|
|
42
22
|
import 'react-bootstrap';
|
|
43
|
-
import './
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import './
|
|
48
|
-
import './
|
|
49
|
-
import './
|
|
23
|
+
import './index-5cc7b406.js';
|
|
24
|
+
import 'next/router';
|
|
25
|
+
import './Beam.js';
|
|
26
|
+
import './stringify-c21932b3.js';
|
|
27
|
+
import './asyncToGenerator-9716ae8d.js';
|
|
28
|
+
import './_library-528f1934.js';
|
|
29
|
+
import './_iter-detect-f089461c.js';
|
|
30
|
+
import './Segment.js';
|
|
31
|
+
import './urlForFile-413f5ddb.js';
|
|
32
|
+
import './typeof-83d9eb10.js';
|
|
33
|
+
import './_is-array-893ab020.js';
|
|
34
|
+
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
50
35
|
import 'react-bootstrap/Modal';
|
|
36
|
+
import 'react-bootstrap/Button';
|
|
51
37
|
import 'react-bootstrap/Form';
|
|
52
38
|
import 'react-ga';
|
|
39
|
+
import './GroupDeck.js';
|
|
40
|
+
import './moment-bc12cb97.js';
|
|
41
|
+
import './SocialShare.js';
|
|
53
42
|
import 'next/head';
|
|
54
43
|
import 'react-share';
|
|
55
|
-
import './
|
|
56
|
-
import './
|
|
44
|
+
import './_object-to-array-50a6b9a3.js';
|
|
45
|
+
import './toConsumableArray-7b1c0e23.js';
|
|
57
46
|
import 'react-bootstrap/Pagination';
|
|
47
|
+
import './entities-932b50cf.js';
|
|
48
|
+
import './AdSlot.js';
|
|
49
|
+
import './debounce-533d9748.js';
|
|
50
|
+
import './isSymbol-a7e9aafe.js';
|
|
51
|
+
import './toNumber-5aeba6e7.js';
|
|
52
|
+
import 'react-bootstrap/Row';
|
|
53
|
+
import 'react-bootstrap/Col';
|
|
54
|
+
import './inherits-8a801a18.js';
|
|
55
|
+
import './_object-sap-169d6272.js';
|
|
56
|
+
import './define-property-99e66838.js';
|
|
58
57
|
import 'react-bootstrap/Figure';
|
|
59
58
|
import 'react-bootstrap/OverlayTrigger';
|
|
60
59
|
import 'react-bootstrap/Tooltip';
|
|
61
60
|
import 'react-bootstrap/Popover';
|
|
62
|
-
import 'react-script-tag';
|
|
63
61
|
|
|
64
62
|
function HorizontalArticleListing(_ref) {
|
|
65
63
|
var _ref$data = _ref.data,
|
|
@@ -76,59 +74,59 @@ function HorizontalArticleListing(_ref) {
|
|
|
76
74
|
// identifier: ...,
|
|
77
75
|
// data: Array of latest articles with videos
|
|
78
76
|
// }
|
|
79
|
-
return
|
|
77
|
+
return React__default.createElement(
|
|
80
78
|
'div',
|
|
81
79
|
null,
|
|
82
80
|
data.length > 0 ? data.map(function (taxonomy, index) {
|
|
83
|
-
return
|
|
84
|
-
|
|
81
|
+
return React__default.createElement(
|
|
82
|
+
React__default.Fragment,
|
|
85
83
|
null,
|
|
86
|
-
|
|
84
|
+
React__default.createElement(
|
|
87
85
|
'div',
|
|
88
86
|
{ key: 'articleCarousel_' + taxonomy.identifier + '_' + index, className: 'mb-3 horizontal-article' },
|
|
89
|
-
|
|
87
|
+
React__default.createElement(
|
|
90
88
|
'div',
|
|
91
89
|
{ className: 'horizontal-article-header', style: { borderBottom: '2px solid ' + color } },
|
|
92
|
-
|
|
90
|
+
React__default.createElement(
|
|
93
91
|
'div',
|
|
94
92
|
{ className: 'horizontal-article-title-wrapper' },
|
|
95
|
-
|
|
93
|
+
React__default.createElement(
|
|
96
94
|
'a',
|
|
97
95
|
{ href: '/' + taxonomy.identifier },
|
|
98
|
-
|
|
96
|
+
React__default.createElement(
|
|
99
97
|
'h4',
|
|
100
98
|
{ className: 'article-title-banner', style: { fontWeight: 'bold', color: 'var(--primary)', padding: '.25rem 0', margin: '0' } },
|
|
101
99
|
taxonomy.name
|
|
102
100
|
)
|
|
103
101
|
),
|
|
104
|
-
taxonomy.identifier &&
|
|
102
|
+
taxonomy.identifier && React__default.createElement(
|
|
105
103
|
'div',
|
|
106
104
|
{ style: { width: 'fit-content', whiteSpace: 'nowrap' } },
|
|
107
|
-
|
|
105
|
+
React__default.createElement(
|
|
108
106
|
'a',
|
|
109
107
|
{ href: '/' + taxonomy.identifier },
|
|
110
108
|
'View All ',
|
|
111
|
-
|
|
109
|
+
React__default.createElement(IoIosArrowForward, null)
|
|
112
110
|
)
|
|
113
111
|
)
|
|
114
112
|
),
|
|
115
|
-
taxonomy.summary &&
|
|
113
|
+
taxonomy.summary && React__default.createElement(
|
|
116
114
|
'div',
|
|
117
115
|
{ className: 'horizontal-article-summary' },
|
|
118
|
-
|
|
116
|
+
React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: taxonomy.summary, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
119
117
|
)
|
|
120
118
|
),
|
|
121
|
-
taxonomy.data.length > 0 ?
|
|
119
|
+
taxonomy.data.length > 0 ? React__default.createElement(
|
|
122
120
|
'div',
|
|
123
121
|
{ className: 'article-carousel' },
|
|
124
|
-
|
|
125
|
-
) :
|
|
122
|
+
React__default.createElement(ArticleCarousel, { articles: taxonomy.data, client: client })
|
|
123
|
+
) : React__default.createElement(
|
|
126
124
|
'div',
|
|
127
125
|
null,
|
|
128
|
-
|
|
126
|
+
React__default.createElement(
|
|
129
127
|
'h5',
|
|
130
128
|
{ className: 'mt-2' },
|
|
131
|
-
|
|
129
|
+
React__default.createElement(
|
|
132
130
|
'em',
|
|
133
131
|
{ className: 'pl-3' },
|
|
134
132
|
'New content coming soon, please check back later.'
|
|
@@ -136,19 +134,19 @@ function HorizontalArticleListing(_ref) {
|
|
|
136
134
|
)
|
|
137
135
|
)
|
|
138
136
|
),
|
|
139
|
-
|
|
137
|
+
React__default.createElement(
|
|
140
138
|
'style',
|
|
141
139
|
{ jsx: 'true' },
|
|
142
140
|
'\n .article-carousel {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .horizontal-article-title-wrapper {\n display: flex;\n flex-wrap: no-wrap;\n align-items: center;\n justify-content: space-between;\n }\n '
|
|
143
141
|
)
|
|
144
142
|
);
|
|
145
|
-
}) :
|
|
143
|
+
}) : React__default.createElement(
|
|
146
144
|
'div',
|
|
147
145
|
null,
|
|
148
|
-
|
|
146
|
+
React__default.createElement(
|
|
149
147
|
'h5',
|
|
150
148
|
null,
|
|
151
|
-
|
|
149
|
+
React__default.createElement(
|
|
152
150
|
'em',
|
|
153
151
|
{ className: 'pl-3' },
|
|
154
152
|
'New content coming soon, please check back later.'
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import './
|
|
3
|
-
import './web.dom.iterable-406140e0.js';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import './moment-b6f49411.js';
|
|
6
|
-
import './slicedToArray-99bcfd93.js';
|
|
7
|
-
import './index-51a80699.js';
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import './moment-bc12cb97.js';
|
|
8
3
|
import urlFor from './urlFor.js';
|
|
9
|
-
import './
|
|
10
|
-
import
|
|
4
|
+
import { a as FaLongArrowAltRight } from './index.esm-1bd8a0a8.js';
|
|
5
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
6
|
+
import './slicedToArray-ca2c8b8d.js';
|
|
7
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
8
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
9
|
+
import './index-0dbff1d1.js';
|
|
10
|
+
import './iconBase-ccc56b97.js';
|
|
11
11
|
|
|
12
12
|
var HorizontalHero = function HorizontalHero(props) {
|
|
13
13
|
var client = props.client;
|
|
@@ -32,44 +32,44 @@ var HorizontalHero = function HorizontalHero(props) {
|
|
|
32
32
|
topArticleThumbnail = props.thumbnail;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
return
|
|
35
|
+
return React__default.createElement(
|
|
36
36
|
'div',
|
|
37
37
|
{ className: 'horizontal-hero-container', style: { borderRight: '3px solid ' + borderColor, borderTop: '3px solid ' + borderColor } },
|
|
38
|
-
|
|
38
|
+
React__default.createElement(
|
|
39
39
|
'div',
|
|
40
40
|
{ className: 'horizontal-hero-title' },
|
|
41
|
-
|
|
41
|
+
React__default.createElement(
|
|
42
42
|
'h2',
|
|
43
43
|
null,
|
|
44
44
|
heroTitle
|
|
45
45
|
),
|
|
46
|
-
|
|
46
|
+
React__default.createElement('div', null)
|
|
47
47
|
),
|
|
48
|
-
|
|
48
|
+
React__default.createElement(
|
|
49
49
|
'div',
|
|
50
50
|
{ className: 'horizontal-hero-inner' },
|
|
51
|
-
|
|
51
|
+
React__default.createElement(
|
|
52
52
|
'a',
|
|
53
53
|
{ href: '/view/' + topArticle.url.current, className: 'horizontal-hero-img' },
|
|
54
|
-
|
|
54
|
+
React__default.createElement('img', { style: { objectFit: props.imageSize ? props.imageSize : 'cover' }, src: topArticleThumbnail, alt: topArticleAltText })
|
|
55
55
|
),
|
|
56
|
-
|
|
56
|
+
React__default.createElement(
|
|
57
57
|
'div',
|
|
58
58
|
{ className: 'horizontal-articles-wrap' },
|
|
59
|
-
|
|
59
|
+
React__default.createElement(
|
|
60
60
|
'a',
|
|
61
61
|
{ href: '/view/' + topArticle.url.current, className: 'horizontal-article' },
|
|
62
|
-
|
|
62
|
+
React__default.createElement(
|
|
63
63
|
'p',
|
|
64
64
|
null,
|
|
65
65
|
topArticle.title
|
|
66
66
|
)
|
|
67
67
|
),
|
|
68
68
|
subArticles.map(function (article, index) {
|
|
69
|
-
return
|
|
69
|
+
return React__default.createElement(
|
|
70
70
|
'a',
|
|
71
71
|
{ key: index, href: '/view/' + article.url.current, className: 'horizontal-article' },
|
|
72
|
-
|
|
72
|
+
React__default.createElement(
|
|
73
73
|
'p',
|
|
74
74
|
null,
|
|
75
75
|
article.title
|
|
@@ -78,23 +78,23 @@ var HorizontalHero = function HorizontalHero(props) {
|
|
|
78
78
|
})
|
|
79
79
|
)
|
|
80
80
|
),
|
|
81
|
-
props.linkTo &&
|
|
81
|
+
props.linkTo && React__default.createElement(
|
|
82
82
|
'div',
|
|
83
83
|
{ className: 'horizontal-view-more' },
|
|
84
|
-
|
|
84
|
+
React__default.createElement(
|
|
85
85
|
'a',
|
|
86
86
|
{ href: props.linkTo },
|
|
87
87
|
props.linkTitle ? props.linkTitle : 'View More' + heroTitle,
|
|
88
88
|
' ',
|
|
89
89
|
' ',
|
|
90
|
-
|
|
90
|
+
React__default.createElement(
|
|
91
91
|
'span',
|
|
92
92
|
null,
|
|
93
|
-
|
|
93
|
+
React__default.createElement(FaLongArrowAltRight, { color: 'var(--primary)' })
|
|
94
94
|
)
|
|
95
95
|
)
|
|
96
96
|
),
|
|
97
|
-
|
|
97
|
+
React__default.createElement(
|
|
98
98
|
'style',
|
|
99
99
|
{ jsx: 'true' },
|
|
100
100
|
'\n .horizontal-hero-container {\n margin-bottom: 3rem;\n margin-top: 2rem;\n position: relative;\n }\n .horizontal-hero-title {\n position: absolute;\n top: -25px;\n background: white;\n z-index: 2;\n padding-right: 1rem;\n font-weight: bold;\n }\n .horizontal-hero-inner {\n display: flex;\n flex-direction: row;\n padding-top: 0.75rem;\n margin-top: 0.75rem;\n }\n\n .horizontal-articles-wrap {\n padding: 0 1rem;\n flex-basis: 60%;\n }\n\n .horizontal-hero-img {\n flex-basis: 40%;\n }\n .horizontal-hero-img img {\n width: 100%;\n height: 100%;\n \n }\n .horizontal-article {\n border-bottom: 1px solid #ccc;\n display: block;\n margin-bottom: 0.5rem;\n }\n .horizontal-article:hover {\n background: #eee;\n }\n .horizontal-article p {\n font-size: 1.1rem;\n margin-bottom: 0.5rem;\n font-weight: bold;\n color: #252525;\n }\n .horizontal-view-more {\n position: absolute;\n right: 0;\n margin-top: 0.25rem;\n font-weight: bold;\n }\n .horizontal-view-more span {\n display: inline-block;\n color: rgb(81, 116, 153);\n font-size: 1.2rem;\n }\n @media screen and (max-width: 1191px){\n \n .horizontal-article > p {\n font-size: 1rem;\n }\n }\n \n @media screen and (max-width: 768px) {\n .horizontal-hero-img {\n display: none;\n }\n .horizontal-articles-wrap {\n \n flex-basis: 100%;\n }\n }\n @media screen and (max-width: 495px) {\n \n .horizontal-article > p {\n font-size: 1rem;\n }\n }\n '
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
2
|
+
import React__default, { useRef, useState, useEffect } from 'react';
|
|
3
|
+
import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
|
|
4
|
+
import urlFor from './urlFor.js';
|
|
5
|
+
|
|
6
|
+
var ImageSlider = function ImageSlider(props) {
|
|
7
|
+
var innerSlider = useRef(null);
|
|
8
|
+
var tile = useRef(null);
|
|
9
|
+
var viewableWindow = useRef(null);
|
|
10
|
+
|
|
11
|
+
var _useState = useState(0),
|
|
12
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
13
|
+
tileSize = _useState2[0],
|
|
14
|
+
setTileSize = _useState2[1];
|
|
15
|
+
|
|
16
|
+
var _useState3 = useState(false),
|
|
17
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
18
|
+
showScroller = _useState4[0],
|
|
19
|
+
setShowScroller = _useState4[1];
|
|
20
|
+
|
|
21
|
+
var _useState5 = useState(0),
|
|
22
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
23
|
+
scrollPosition = _useState6[0],
|
|
24
|
+
setScrollPosition = _useState6[1];
|
|
25
|
+
|
|
26
|
+
var client = props.client;
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
function scrollSlider(e, direction) {
|
|
30
|
+
var slide = e.target.parentElement;
|
|
31
|
+
var scrollOffset = scrollPosition;
|
|
32
|
+
var viewableWidth = slide.clientWidth;
|
|
33
|
+
//calculate viewable size / slide
|
|
34
|
+
var numberOfSlidesToScroll = Math.floor(tile.current.clientWidth + 25); //width of the tile plus margin
|
|
35
|
+
var scrollDirection = void 0;
|
|
36
|
+
if (direction === 'next') {
|
|
37
|
+
scrollDirection = scrollOffset + numberOfSlidesToScroll;
|
|
38
|
+
if (scrollOffset + viewableWidth + 25 >= innerSlider.current.offsetWidth) {
|
|
39
|
+
scrollDirection = 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (direction === 'prev') {
|
|
43
|
+
scrollDirection = scrollOffset - numberOfSlidesToScroll;
|
|
44
|
+
if (scrollOffset === 0) {
|
|
45
|
+
if (window.innerWidth > 1399) {
|
|
46
|
+
scrollDirection = innerSlider.current.offsetWidth - tileSize * 3 - 70;
|
|
47
|
+
}
|
|
48
|
+
if (window.innerWidth < 1399 && window.innerWidth > 592) {
|
|
49
|
+
scrollDirection = innerSlider.current.offsetWidth - tileSize * 2 - 40;
|
|
50
|
+
}
|
|
51
|
+
if (window.innerWidth < 592) {
|
|
52
|
+
scrollDirection = innerSlider.current.offsetWidth - tileSize * 1 - 24;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
slide.scrollTo({
|
|
57
|
+
left: scrollDirection,
|
|
58
|
+
behavior: 'smooth'
|
|
59
|
+
});
|
|
60
|
+
setScrollPosition(scrollDirection);
|
|
61
|
+
}
|
|
62
|
+
var setThumbSize = function setThumbSize() {
|
|
63
|
+
var thumbSize = void 0;
|
|
64
|
+
var scrollerVisible = false;
|
|
65
|
+
if (window.innerWidth > 1399) {
|
|
66
|
+
if (props.data.slides && props.data.slides.length < 3) {
|
|
67
|
+
thumbSize = Math.floor(viewableWindow.current.clientWidth / 2 - 40);
|
|
68
|
+
} else {
|
|
69
|
+
thumbSize = Math.floor(viewableWindow.current.clientWidth / 3 - 40);
|
|
70
|
+
}
|
|
71
|
+
if (props.data.slides.length > 3) {
|
|
72
|
+
scrollerVisible = true;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if (window.innerWidth < 1399 && window.innerWidth > 592) {
|
|
76
|
+
thumbSize = Math.floor(viewableWindow.current.clientWidth / 2 - 48);
|
|
77
|
+
if (props.data.slides.length > 2) {
|
|
78
|
+
scrollerVisible = true;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if (window.innerWidth < 592) {
|
|
82
|
+
thumbSize = Math.floor(viewableWindow.current.clientWidth / 1 - 64);
|
|
83
|
+
if (props.data.slides.length > 1) {
|
|
84
|
+
scrollerVisible = true;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
if (thumbSize !== tileSize) {
|
|
88
|
+
setTileSize(thumbSize);
|
|
89
|
+
setScrollPosition(0);
|
|
90
|
+
setShowScroller(scrollerVisible);
|
|
91
|
+
var videoRows = document.querySelectorAll('#vid-slider .row');
|
|
92
|
+
for (var i = 0; i < videoRows.length; i++) {
|
|
93
|
+
videoRows[i].scrollTo({
|
|
94
|
+
left: 0,
|
|
95
|
+
behavior: 'smooth'
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
useEffect(function () {
|
|
101
|
+
//IE11 Polyfill
|
|
102
|
+
smoothscroll.polyfill();
|
|
103
|
+
setThumbSize();
|
|
104
|
+
|
|
105
|
+
window.addEventListener('resize', setThumbSize);
|
|
106
|
+
|
|
107
|
+
return function () {
|
|
108
|
+
return window.removeEventListener('resize', setThumbSize);
|
|
109
|
+
};
|
|
110
|
+
}, []);
|
|
111
|
+
|
|
112
|
+
var variant = 'black';
|
|
113
|
+
return React__default.createElement(
|
|
114
|
+
React__default.Fragment,
|
|
115
|
+
null,
|
|
116
|
+
React__default.createElement(
|
|
117
|
+
'div',
|
|
118
|
+
{ ref: viewableWindow, id: 'vid-slider', className: 'col' },
|
|
119
|
+
React__default.createElement(
|
|
120
|
+
'div',
|
|
121
|
+
{ className: 'row' },
|
|
122
|
+
showScroller && React__default.createElement(
|
|
123
|
+
'div',
|
|
124
|
+
{ onClick: function onClick(e) {
|
|
125
|
+
return scrollSlider(e, 'prev');
|
|
126
|
+
}, className: 'tile__slider-prev', style: { color: variant } },
|
|
127
|
+
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow left' })
|
|
128
|
+
),
|
|
129
|
+
showScroller && React__default.createElement(
|
|
130
|
+
'div',
|
|
131
|
+
{ onClick: function onClick(e) {
|
|
132
|
+
return scrollSlider(e, 'next');
|
|
133
|
+
}, className: 'tile__slider-next', style: { color: variant } },
|
|
134
|
+
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow right' })
|
|
135
|
+
),
|
|
136
|
+
React__default.createElement(
|
|
137
|
+
'div',
|
|
138
|
+
{ ref: innerSlider, className: 'row__inner' },
|
|
139
|
+
props.data.slides.map(function (img, index) {
|
|
140
|
+
var thumbnail = urlFor({ client: client, source: img.slideshowImage, imageWidth: 250 });
|
|
141
|
+
if (!img.slideshowImage.link) {
|
|
142
|
+
return React__default.createElement(
|
|
143
|
+
'div',
|
|
144
|
+
{ ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
|
|
145
|
+
React__default.createElement(
|
|
146
|
+
'div',
|
|
147
|
+
{ className: 'tile__media' },
|
|
148
|
+
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px', maxHeight: '160px' } })
|
|
149
|
+
),
|
|
150
|
+
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
151
|
+
);
|
|
152
|
+
} else {
|
|
153
|
+
return React__default.createElement(
|
|
154
|
+
'a',
|
|
155
|
+
{ ref: tile, key: index, href: img.slideshowImage.link, target: img.slideshowImage.blank ? '_target' : '_self', className: 'tile', style: { width: tileSize + 'px' } },
|
|
156
|
+
React__default.createElement(
|
|
157
|
+
'div',
|
|
158
|
+
{ className: 'tile__media' },
|
|
159
|
+
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px', maxHeight: '160px' } })
|
|
160
|
+
),
|
|
161
|
+
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
})
|
|
165
|
+
)
|
|
166
|
+
),
|
|
167
|
+
React__default.createElement(
|
|
168
|
+
'style',
|
|
169
|
+
{ jsx: 'true' },
|
|
170
|
+
'\n #vid-slider * {\n box-sizing: border-box;\n -ms-overflow-style: none;\n }\n #vid-slider::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider {\n position: relative;\n -ms-overflow-style: none;\n padding: 0 1.5rem;\n margin-bottom: 0 !important;\n }\n #vid-slider .now-playing {\n position: absolute;\n top: 0.5rem;\n left: 1rem;\n color: white;\n background: rgba(0, 0, 0, 0.75);\n }\n #vid-slider h1,\n #vid-slider p {\n text-align: center;\n width: 100%;\n max-width: 500px;\n margin: auto;\n }\n #vid-slider,\n #vidHolder {\n max-width: 775px;\n margin: 0 auto;\n }\n #vid-slider a:link,\n #vid-slider a:hover,\n #vid-slider a:active,\n #vid-slider a:visited {\n transition: color 150ms;\n color: #95a5a6;\n text-decoration: none;\n }\n #vid-slider a:hover {\n color: #7f8c8d;\n text-decoration: underline;\n }\n #vid-slider .contain {\n width: 100%;\n }\n #vid-slider .row {\n overflow-x: scroll;\n width: 100%;\n -ms-overflow-style: none;\n overflow-y: hidden !important;\n }\n #vid-slider .tile__info {\n white-space: normal !important;\n position: absolute;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: 0.9rem;\n font-weight: bold;\n transition: opacity 0.25s;\n }\n #vid-slider .row__inner {\n transition: 450ms -webkit-transform;\n transition: 450ms transform;\n transition: 450ms transform, 450ms -webkit-transform;\n font-size: 0;\n white-space: nowrap;\n margin: 25px 0 70px !important;\n padding-bottom: 10px;\n padding-left: 0;\n }\n #vid-slider .tile {\n position: relative;\n display: inline-block;\n margin: 0 12px;\n font-size: 20px;\n transition: 450ms all;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n \n #vid-slider .tile:first-child {\n margin-left: 15px;\n }\n #vid-slider .tile__img {\n height: auto;\n -o-object-fit: contain;\n object-fit: contain;\n object-position: center;\n }\n #vid-slider .tile__details {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n font-size: 10px;\n opacity: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n transition: 450ms opacity;\n }\n #vid-slider .tile__details:after,\n #vid-slider .tile__details:before {\n content: \'\';\n \n position: absolute;\n top: 50%;\n left: 50%;\n display: #000;\n }\n #vid-slider .tile__details:after {\n margin-top: -25px;\n margin-left: -25px;\n width: 50px;\n height: 50px;\n border: 3px solid #ecf0f1;\n line-height: 50px;\n text-align: center;\n border-radius: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1;\n }\n #vid-slider .tile__details:before {\n content: \'\';\n background: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 64 64\' width=\'64\' height=\'64\' fill=\'white\'><path d=\'M26 46 L46 32 L26 18 Z\'/></svg>")\n no-repeat center center;\n left: 0;\n width: 100%;\n height: 3rem;\n font-size: 30px;\n margin-right: 12px;\n margin-top: -24px;\n text-align: center;\n z-index: 2;\n color: white;\n }\n \n #vid-slider .tile__title {\n position: absolute;\n bottom: 0;\n padding: 10px;\n max-width: 250px;\n }\n #vid-slider .tile__title_text {\n position: relative;\n left: 0;\n white-space: normal;\n }\n \n #vid-slider .tile__slider-prev,\n #vid-slider .tile__slider-next {\n width: 30px;\n background: transparent;\n border: none;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n z-index: 99;\n cursor: pointer;\n color: ' + (props.dark ? 'white' : 'black') + ';\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 2rem;\n }\n #vid-slider .tile__slider-prev {\n left: -0.5rem;\n padding: .5rem;\n }\n #vid-slider .tile__slider-next {\n right: -0.5rem;\n padding: .5rem;\n }\n #vid-slider,\n #vid-slider .row {\n margin: 0;\n }\n \n #vid-slider .row::-webkit-scrollbar-thumb {\n background-color: transparent !important;\n }\n #vid-slider i {\n border: solid ' + (props.dark ? 'white' : 'black') + ';\n border-width: 0 4px 4px 0;\n display: inline-block;\n padding: 4px;\n pointer-events: none;\n }\n #vid-slider .right {\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n }\n #vid-slider .left {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n }\n @media screen and (min-width: 1399px) {\n .block-content #vid-slider .tile__img {\n height: auto;\n }\n .block-content #vid-slider .tile {\n height: auto;\n }\n }\n \n @media screen and (max-width: 1399px) {\n #vid-slider,\n #vidHolder {\n max-width: 620px;\n }\n }\n @media screen and (max-width: 1200px) {\n #vid-slider,\n #vidHolder {\n max-width: 580px;\n }\n }\n @media screen and (max-width: 967px) {\n #vid-slider {\n max-width: 100%;\n }\n \n #vid-slider .row__inner {\n margin: 60px 0 50px !important;\n }\n }\n \n @media screen and (max-width: 768px) {\n #vidHolder {\n position: unset;\n width: 100%;\n }\n }\n @media screen and (max-width: 568px) {\n #vidHolder {\n position: unset;\n width: 100%;\n }\n \n #vid-slider .row__inner {\n margin: 30px 0 70px;\n }\n }\n '
|
|
171
|
+
)
|
|
172
|
+
)
|
|
173
|
+
);
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
export { ImageSlider as I };
|