@mjhls/mjh-framework 1.0.1005-ce-test-v3 → 1.0.1005-next12-0001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +21 -22
- package/dist/cjs/AD300x250x600.js +21 -22
- package/dist/cjs/AD728x90.js +24 -25
- package/dist/cjs/ADFloatingFooter.js +20 -21
- package/dist/cjs/ADFooter.js +4 -4
- package/dist/cjs/ADGutter.js +20 -21
- package/dist/cjs/{ADInfeed-e87afe8a.js → ADInfeed-08a6ef56.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +20 -21
- package/dist/cjs/ADSponsoredResources.js +20 -21
- package/dist/cjs/ADWebcast.js +20 -21
- package/dist/cjs/ADWelcome.js +17 -18
- package/dist/cjs/{ADlgInfeed-b5a3d436.js → ADlgInfeed-f46139b2.js} +4 -4
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +19 -20
- package/dist/cjs/AdSlotsProvider.js +11 -12
- package/dist/cjs/AlgoliaSearch.js +31 -14300
- package/dist/cjs/AlphabeticList.js +8 -8
- package/dist/cjs/ArticleCarousel.js +13 -13
- package/dist/cjs/ArticleProgramLandingPage.js +52 -52
- package/dist/cjs/ArticleSeriesLandingPage.js +29 -30
- package/dist/cjs/ArticleSeriesListing.js +30 -31
- package/dist/cjs/Auth.js +355 -494
- package/dist/cjs/AuthWrapper.js +13 -1772
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-17e1c62b.js} +1 -1
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-8b494587.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +6 -6
- package/dist/cjs/CMEDeck.js +22 -27
- package/dist/cjs/Column1.js +1 -1
- package/dist/cjs/Column2.js +14 -14
- package/dist/cjs/Column3.js +30 -31
- package/dist/cjs/ConferenceArticleCard.js +10 -10
- package/dist/cjs/ContentCardPaginated.js +37 -37
- package/dist/cjs/DeckContent.js +31 -32
- package/dist/cjs/DeckQueue.js +29 -30
- package/dist/cjs/DeckQueuePaginated.js +33 -33
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-bcaa7e3f.js} +13 -14
- package/dist/cjs/EventsDeck.js +54 -27
- package/dist/cjs/ExternalResources.js +48 -48
- package/dist/cjs/Feature.js +7 -7
- package/dist/cjs/ForbesHero.js +10 -10
- package/dist/cjs/GridContent.js +45 -46
- package/dist/cjs/GridContentPaginated.js +47 -47
- package/dist/cjs/GridHero.js +11 -11
- package/dist/cjs/GroupDeck.js +12 -12
- package/dist/cjs/HamMagazine.js +28 -28
- package/dist/cjs/Header.js +1 -1
- package/dist/cjs/HealthCareProfessionalModal.js +2 -2
- package/dist/cjs/Hero.js +7 -7
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +50 -50
- package/dist/cjs/HorizontalHero.js +8 -8
- package/dist/cjs/ImageSlider-10cd194f.js +1383 -0
- package/dist/cjs/IssueContentDeck.js +11 -11
- package/dist/cjs/IssueDeck.js +14 -14
- package/dist/cjs/IssueLanding.js +58 -58
- package/dist/cjs/LeftNav.js +21 -22
- package/dist/cjs/MasterDeck.js +30 -31
- package/dist/cjs/MasterDeckPaginated.js +33 -33
- package/dist/cjs/{MediaSeriesCard-594c5edf.js → MediaSeriesCard-a6e3f32e.js} +5 -5
- package/dist/cjs/MediaSeriesLanding.js +54 -55
- package/dist/cjs/MediaSeriesLandingPaginated.js +60 -60
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +31 -31
- package/dist/cjs/NavNative.js +32 -32
- 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 +90 -0
- package/dist/cjs/PartnerDetailListing.js +64 -65
- package/dist/cjs/PartnerDetailListingPaginated.js +64 -64
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PixelTracking.js +7 -7
- package/dist/cjs/PodcastsLanding.js +63 -63
- package/dist/cjs/PopUpModal.js +4 -4
- package/dist/cjs/PtceDeck.js +10 -10
- package/dist/cjs/PubSection.js +32 -33
- package/dist/cjs/PubToc.js +6 -6
- package/dist/cjs/PublicationDeck.js +11 -11
- package/dist/cjs/{PublicationFeature-5ccf9b13.js → PublicationFeature-6f89fb97.js} +2 -2
- package/dist/cjs/PublicationLanding.js +27 -31
- package/dist/cjs/QueueDeckExpanded.js +35 -36
- package/dist/cjs/QueueDeckExpandedPaginated.js +38 -38
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +10 -10
- package/dist/cjs/Schema.js +10 -10
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +17 -18
- package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-08699353.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +11 -11
- package/dist/cjs/{SocialSearchComponent-d2ab3d62.js → SocialSearchComponent-59192efd.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +12 -12
- package/dist/cjs/TaxonomyDescription.js +48 -48
- package/dist/cjs/TemplateNormal.js +44 -45
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/{Tooltip-f075b7ef.js → Tooltip-7be5df78.js} +804 -1029
- package/dist/cjs/Ustream.js +21 -21
- package/dist/cjs/VerticalHero.js +6 -6
- package/dist/cjs/VideoProgramLandingPage.js +54 -54
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +35 -36
- package/dist/cjs/VideoSeriesListing.js +30 -31
- package/dist/cjs/View.js +120 -123
- package/dist/cjs/YahooHero.js +13 -13
- package/dist/cjs/YoutubeGroup.js +17 -17
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{entities-df1aed86.js → entities-310b46ee.js} +1 -5
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{extends-7c86182f.js → extends-7df78678.js} +7 -8
- package/dist/cjs/faundadb.js +5 -5
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getPtceActivities.js +4 -4
- package/dist/cjs/getRelatedArticle.js +68 -132
- package/dist/cjs/getRootDocGroup.js +4 -4
- package/dist/cjs/getSerializers.js +48 -48
- package/dist/cjs/{getTargeting-ba942d9a.js → getTargeting-5eabd6e2.js} +2 -2
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-fc2f1ca2.js → index-44481153.js} +488 -42
- package/dist/cjs/{index-f86bb269.js → index-99edf08a.js} +45 -44
- package/dist/cjs/{index-eadd5035.js → index-9d365128.js} +7 -7
- package/dist/cjs/{index-144b90c4.js → index-b278e08f.js} +167 -429
- package/dist/cjs/{index-d48b231c.js → index-b5eb3ff8.js} +6 -11
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-44f3e2d0.js} +1 -1
- package/dist/cjs/{index.esm-d81454e7.js → index.esm-48e0f0d8.js} +1 -1
- package/dist/cjs/{index.esm-1461604c.js → index.esm-f4cf6943.js} +2 -2
- package/dist/cjs/{index.esm-d51c9ac6.js → index.esm-f93506ac.js} +1 -1
- package/dist/cjs/index.js +146 -148
- package/dist/cjs/{inherits-de66ea16.js → inherits-420ee86f.js} +18 -21
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- package/dist/cjs/{lodash-f0783643.js → lodash-7fd85bcf.js} +10 -58
- package/dist/cjs/main-7b5e57b0.js +898 -0
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-ec08d471.js} +34 -34
- package/dist/cjs/urlFor.js +4 -4
- package/dist/cjs/{urlForFile-29d3815a.js → urlForFile-ad96158c.js} +1 -1
- package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +5 -5
- package/dist/cjs/{util-93a37fd0.js → util-f2c1b65b.js} +1 -12
- package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
- package/dist/esm/AD.js +8 -8
- package/dist/esm/AD300x250.js +25 -26
- package/dist/esm/AD300x250x600.js +25 -26
- package/dist/esm/AD728x90.js +28 -29
- package/dist/esm/ADFloatingFooter.js +27 -28
- package/dist/esm/ADFooter.js +10 -10
- package/dist/esm/ADGutter.js +27 -28
- package/dist/esm/{ADInfeed-5765a73a.js → ADInfeed-36973a76.js} +9 -9
- package/dist/esm/ADSkyscraper.js +27 -28
- package/dist/esm/ADSponsoredResources.js +27 -28
- package/dist/esm/ADWebcast.js +27 -28
- package/dist/esm/ADWelcome.js +28 -29
- package/dist/esm/{ADlgInfeed-5e36f317.js → ADlgInfeed-f6e898d5.js} +8 -8
- package/dist/esm/AccordionPanel.js +23 -23
- package/dist/esm/AdSlot.js +23 -24
- package/dist/esm/AdSlotsProvider.js +13 -14
- package/dist/esm/AlgoliaSearch.js +56 -14325
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +59 -59
- package/dist/esm/ArticleSeriesLandingPage.js +36 -37
- package/dist/esm/ArticleSeriesListing.js +55 -56
- package/dist/esm/Auth.js +427 -565
- package/dist/esm/AuthWrapper.js +27 -1787
- package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-b0a47123.js} +11 -11
- package/dist/esm/Beam.js +7 -7
- package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-d05b5b23.js} +35 -35
- package/dist/esm/Breadcrumbs.js +16 -16
- package/dist/esm/CMEDeck.js +78 -83
- package/dist/esm/Column1.js +7 -6
- package/dist/esm/Column2.js +25 -24
- package/dist/esm/Column3.js +50 -50
- package/dist/esm/ConferenceArticleCard.js +24 -24
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/ContentCardPaginated.js +73 -73
- package/dist/esm/DeckContent.js +77 -78
- package/dist/esm/DeckQueue.js +71 -72
- package/dist/esm/DeckQueuePaginated.js +64 -64
- package/dist/esm/{Dfp-102f0beb.js → Dfp-e151d2de.js} +21 -22
- package/dist/esm/EventsDeck.js +114 -87
- package/dist/esm/ExternalResources.js +76 -76
- package/dist/esm/Feature.js +22 -22
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +146 -147
- package/dist/esm/GridContentPaginated.js +135 -135
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +106 -105
- package/dist/esm/Header.js +10 -9
- package/dist/esm/HealthCareProfessionalModal.js +13 -13
- package/dist/esm/Hero.js +14 -14
- package/dist/esm/HighlightenVideo.js +15 -15
- package/dist/esm/HorizontalArticleListing.js +73 -73
- package/dist/esm/HorizontalHero.js +27 -27
- package/dist/esm/ImageSlider-5ae6287a.js +1375 -0
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +67 -67
- package/dist/esm/KMTracker.js +1 -1
- package/dist/esm/LeftNav.js +35 -35
- package/dist/esm/MasterDeck.js +64 -65
- package/dist/esm/MasterDeckPaginated.js +56 -56
- package/dist/esm/{MediaSeriesCard-f56c8274.js → MediaSeriesCard-66045ffb.js} +19 -19
- package/dist/esm/MediaSeriesLanding.js +80 -81
- package/dist/esm/MediaSeriesLandingPaginated.js +84 -84
- package/dist/esm/NavDvm.js +57 -56
- package/dist/esm/{NavFooter-3272e9cd.js → NavFooter-da30eae3.js} +12 -12
- package/dist/esm/NavMagazine.js +114 -113
- package/dist/esm/NavNative.js +104 -103
- package/dist/esm/OncliveHero.js +20 -20
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +11 -11
- package/dist/esm/Pagination-1e09918f.js +82 -0
- package/dist/esm/PartnerDetailListing.js +100 -101
- package/dist/esm/PartnerDetailListingPaginated.js +99 -99
- package/dist/esm/PdfDownload.js +8 -8
- package/dist/esm/PixelTracking.js +16 -16
- package/dist/esm/PodcastsLanding.js +75 -75
- package/dist/esm/PopUpModal.js +13 -13
- package/dist/esm/PtceDeck.js +24 -24
- package/dist/esm/PubSection.js +38 -39
- package/dist/esm/PubToc.js +11 -11
- package/dist/esm/PublicationDeck.js +43 -43
- package/dist/esm/{PublicationFeature-d88e76b9.js → PublicationFeature-0379cc20.js} +23 -23
- package/dist/esm/PublicationLanding.js +75 -79
- package/dist/esm/QueueDeckExpanded.js +274 -275
- package/dist/esm/QueueDeckExpandedPaginated.js +254 -254
- package/dist/esm/RecentNews.js +21 -21
- package/dist/esm/RelatedContent.js +24 -24
- package/dist/esm/RelatedTopicsDropdown.js +12 -12
- package/dist/esm/RolesDeck.js +14 -14
- package/dist/esm/Schema.js +13 -13
- package/dist/esm/Search.js +11 -11
- package/dist/esm/Segment.js +5 -5
- package/dist/esm/SeriesListingDeck.js +31 -32
- package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-b364d074.js} +31 -31
- package/dist/esm/SetCookie.js +2 -2
- package/dist/esm/SideFooter.js +30 -30
- package/dist/esm/SocialIcons.js +8 -8
- package/dist/esm/{SocialSearchComponent-165b4ae7.js → SocialSearchComponent-09b55779.js} +33 -33
- package/dist/esm/SocialShare.js +26 -26
- package/dist/esm/TaxonomyCard.js +45 -45
- package/dist/esm/TaxonomyDescription.js +53 -53
- package/dist/esm/TemplateNormal.js +65 -66
- package/dist/esm/ThumbnailCard.js +18 -18
- package/dist/esm/{Tooltip-95655b44.js → Tooltip-af3e4ee9.js} +792 -1017
- package/dist/esm/Ustream.js +30 -30
- package/dist/esm/VerticalHero.js +18 -18
- package/dist/esm/VideoProgramLandingPage.js +67 -67
- package/dist/esm/VideoSeriesCard.js +26 -26
- package/dist/esm/VideoSeriesFilter.js +14 -14
- package/dist/esm/VideoSeriesLandingPage.js +41 -42
- package/dist/esm/VideoSeriesListing.js +71 -72
- package/dist/esm/View.js +327 -331
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +49 -49
- package/dist/esm/{_is-array-8d21b9e3.js → _is-array-31d40a83.js} +6 -6
- package/dist/esm/{_iter-detect-98db3b07.js → _iter-detect-72edfd60.js} +7 -7
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-7cee6f84.js → _object-sap-4201ccf6.js} +1 -1
- package/dist/esm/{_object-to-array-2300e51b.js → _object-to-array-fa0feeff.js} +2 -2
- package/dist/esm/{asyncToGenerator-958ef5fc.js → asyncToGenerator-9c835201.js} +30 -30
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-4abff0b1.js} +3 -3
- package/dist/esm/{core.get-iterator-method-ea258bb1.js → core.get-iterator-method-8c71f470.js} +36 -36
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/define-property-a8a00786.js +18 -0
- package/dist/esm/{entities-6d9154b4.js → entities-7cc3bf45.js} +1 -5
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{extends-6d8e3924.js → extends-7fbbe94e.js} +8 -8
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getKeywords.js +1 -1
- package/dist/esm/getPtceActivities.js +4 -4
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +70 -134
- package/dist/esm/getRootDocGroup.js +5 -5
- package/dist/esm/getSerializers.js +48 -48
- package/dist/esm/getSeriesDetail.js +1 -1
- package/dist/esm/{getTargeting-9bd28724.js → getTargeting-eed01f73.js} +2 -2
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-f0fc23eb.js → index-1819118a.js} +490 -44
- package/dist/esm/{index-5d8b0a9d.js → index-3a7c5bbe.js} +581 -844
- package/dist/esm/{index-3f5c03b2.js → index-51a80699.js} +6 -11
- package/dist/esm/{index-755f2cc2.js → index-6c12bdd5.js} +10 -10
- package/dist/esm/{index-79cfd25c.js → index-fa2ffe86.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-eb1e8e80.js → index.esm-55f22b35.js} +1 -1
- package/dist/esm/{index.esm-07c37a92.js → index.esm-9d701385.js} +16 -16
- package/dist/esm/{index.esm-9b042655.js → index.esm-c6715e80.js} +1 -1
- package/dist/esm/{index.esm-1bd8a0a8.js → index.esm-d1125763.js} +1 -1
- package/dist/esm/index.js +172 -174
- package/dist/esm/{inherits-a6ba2ec4.js → inherits-d26c739e.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/keys-5e9bd229.js +23 -0
- package/dist/esm/{lodash-f97fd99a.js → lodash-ec8c6b48.js} +10 -58
- package/dist/esm/main-43ca42fe.js +886 -0
- package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-3822f1ce.js} +20 -20
- package/dist/esm/{slicedToArray-6ebcbfea.js → slicedToArray-99bcfd93.js} +12 -12
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-0c65d837.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +2 -2
- package/dist/esm/{toConsumableArray-f7074d7c.js → toConsumableArray-47a5394a.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-e9fc0c5d.js → typeof-d92ed6e0.js} +34 -34
- package/dist/esm/urlFor.js +5 -5
- package/dist/esm/{urlForFile-b69adffc.js → urlForFile-0fc42ed8.js} +1 -1
- package/dist/esm/{ustream-api-d3714624.js → ustream-api-cbba615a.js} +5 -5
- package/dist/esm/{util-8ed16d48.js → util-7700fc59.js} +1 -12
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-ab4dea5c.js → web.dom.iterable-406140e0.js} +2 -2
- package/package.json +3 -4
- package/dist/cjs/CEDeckSupabase.js +0 -450
- package/dist/cjs/ImageSlider-6c00b878.js +0 -2813
- package/dist/cjs/Pagination-2a3d0103.js +0 -97
- package/dist/cjs/defineProperty-9673846a.js +0 -34
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/getTIData.js +0 -92
- package/dist/cjs/index-50be6759.js +0 -105
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/CEDeckSupabase.js +0 -444
- package/dist/esm/ImageSlider-f84174cb.js +0 -2804
- package/dist/esm/Pagination-dc30727b.js +0 -90
- package/dist/esm/define-property-5f1bda73.js +0 -18
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/defineProperty-8c30428f.js +0 -32
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/getTIData.js +0 -90
- package/dist/esm/index-98ca9cec.js +0 -100
- package/dist/esm/keys-31dcdb31.js +0 -23
- package/dist/esm/main-1894c974.js +0 -961
- package/dist/esm/stringify-2b084bee.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-5c98aec7.js} +1 -1
|
@@ -0,0 +1,1375 @@
|
|
|
1
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import React, { Component, useRef, useState, useEffect } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { _ as _slicedToArray } from './slicedToArray-99bcfd93.js';
|
|
5
|
+
import urlFor from './urlFor.js';
|
|
6
|
+
import { s as smoothscroll } from './smoothscroll-0cd4c7a6.js';
|
|
7
|
+
|
|
8
|
+
function _classCallCheck(instance, Constructor) {
|
|
9
|
+
if (!(instance instanceof Constructor)) {
|
|
10
|
+
throw new TypeError("Cannot call a class as a function");
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function _defineProperties(target, props) {
|
|
15
|
+
for (var i = 0; i < props.length; i++) {
|
|
16
|
+
var descriptor = props[i];
|
|
17
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
18
|
+
descriptor.configurable = true;
|
|
19
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
20
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
25
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
26
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
27
|
+
return Constructor;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function _typeof(obj) {
|
|
31
|
+
"@babel/helpers - typeof";
|
|
32
|
+
|
|
33
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
34
|
+
_typeof = function _typeof(obj) {
|
|
35
|
+
return typeof obj;
|
|
36
|
+
};
|
|
37
|
+
} else {
|
|
38
|
+
_typeof = function _typeof(obj) {
|
|
39
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return _typeof(obj);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function _assertThisInitialized(self) {
|
|
47
|
+
if (self === void 0) {
|
|
48
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return self;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function _possibleConstructorReturn(self, call) {
|
|
55
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
56
|
+
return call;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return _assertThisInitialized(self);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function _getPrototypeOf(o) {
|
|
63
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
64
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
65
|
+
};
|
|
66
|
+
return _getPrototypeOf(o);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function _setPrototypeOf(o, p) {
|
|
70
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
71
|
+
o.__proto__ = p;
|
|
72
|
+
return o;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
return _setPrototypeOf(o, p);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function _inherits(subClass, superClass) {
|
|
79
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
80
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
84
|
+
constructor: {
|
|
85
|
+
value: subClass,
|
|
86
|
+
writable: true,
|
|
87
|
+
configurable: true
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function _defineProperty(obj, key, value) {
|
|
94
|
+
if (key in obj) {
|
|
95
|
+
Object.defineProperty(obj, key, {
|
|
96
|
+
value: value,
|
|
97
|
+
enumerable: true,
|
|
98
|
+
configurable: true,
|
|
99
|
+
writable: true
|
|
100
|
+
});
|
|
101
|
+
} else {
|
|
102
|
+
obj[key] = value;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return obj;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
var isRequiredIf_1 = createCommonjsModule(function (module, exports) {
|
|
109
|
+
Object.defineProperty(exports,'__esModule',{value:!0});var VALIDATOR_ARG_ERROR_MESSAGE='The typeValidator argument must be a function with the signature function(props, propName, componentName).',MESSAGE_ARG_ERROR_MESSAGE='The error message is optional, but must be a string if provided.',propIsRequired=function propIsRequired(a,b,c,d){if('boolean'==typeof a)return a;return 'function'==typeof a?a(b,c,d):!(!0!==!!a)&&!!a},propExists=function propExists(a,b){return Object.hasOwnProperty.call(a,b)},missingPropError=function missingPropError(a,b,c,d){return d?new Error(d):new Error('Required '+a[b]+' `'+b+'`'+(' was not specified in `'+c+'`.'))},guardAgainstInvalidArgTypes=function guardAgainstInvalidArgTypes(a,b){if('function'!=typeof a)throw new TypeError(VALIDATOR_ARG_ERROR_MESSAGE);if(!!b&&'string'!=typeof b)throw new TypeError(MESSAGE_ARG_ERROR_MESSAGE)},isRequiredIf=function isRequiredIf(a,b,c){return guardAgainstInvalidArgTypes(a,c),function(d,e,f){for(var _len=arguments.length,g=Array(3<_len?_len-3:0),_key=3;_key<_len;_key++)g[_key-3]=arguments[_key];return propIsRequired(b,d,e,f)?propExists(d,e)?a.apply(void 0,[d,e,f].concat(g)):missingPropError(d,e,f,c):a.apply(void 0,[d,e,f].concat(g));// Is not required, so just run typeValidator.
|
|
110
|
+
}};exports.default=isRequiredIf;
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
var isRequiredIf = unwrapExports(isRequiredIf_1);
|
|
116
|
+
|
|
117
|
+
var exenv = createCommonjsModule(function (module) {
|
|
118
|
+
/*!
|
|
119
|
+
Copyright (c) 2015 Jed Watson.
|
|
120
|
+
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
121
|
+
All rights reserved.
|
|
122
|
+
*/
|
|
123
|
+
/* global define */
|
|
124
|
+
|
|
125
|
+
(function () {
|
|
126
|
+
|
|
127
|
+
var canUseDOM = !!(
|
|
128
|
+
typeof window !== 'undefined' &&
|
|
129
|
+
window.document &&
|
|
130
|
+
window.document.createElement
|
|
131
|
+
);
|
|
132
|
+
|
|
133
|
+
var ExecutionEnvironment = {
|
|
134
|
+
|
|
135
|
+
canUseDOM: canUseDOM,
|
|
136
|
+
|
|
137
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
|
138
|
+
|
|
139
|
+
canUseEventListeners:
|
|
140
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
141
|
+
|
|
142
|
+
canUseViewport: canUseDOM && !!window.screen
|
|
143
|
+
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
if ( module.exports) {
|
|
147
|
+
module.exports = ExecutionEnvironment;
|
|
148
|
+
} else {
|
|
149
|
+
window.ExecutionEnvironment = ExecutionEnvironment;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
}());
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
var twitterWidgetJs = 'https://platform.twitter.com/widgets.js';
|
|
156
|
+
|
|
157
|
+
var TwitterTimelineEmbed =
|
|
158
|
+
/*#__PURE__*/
|
|
159
|
+
function (_Component) {
|
|
160
|
+
_inherits(TwitterTimelineEmbed, _Component);
|
|
161
|
+
|
|
162
|
+
function TwitterTimelineEmbed(props) {
|
|
163
|
+
var _this;
|
|
164
|
+
|
|
165
|
+
_classCallCheck(this, TwitterTimelineEmbed);
|
|
166
|
+
|
|
167
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTimelineEmbed).call(this, props));
|
|
168
|
+
_this.state = {
|
|
169
|
+
isLoading: true
|
|
170
|
+
};
|
|
171
|
+
return _this;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
_createClass(TwitterTimelineEmbed, [{
|
|
175
|
+
key: "buildChromeOptions",
|
|
176
|
+
value: function buildChromeOptions(options) {
|
|
177
|
+
options.chrome = '';
|
|
178
|
+
|
|
179
|
+
if (this.props.noHeader) {
|
|
180
|
+
options.chrome = options.chrome + ' noheader';
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (this.props.noFooter) {
|
|
184
|
+
options.chrome = options.chrome + ' nofooter';
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (this.props.noBorders) {
|
|
188
|
+
options.chrome = options.chrome + ' noborders';
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (this.props.noScrollbar) {
|
|
192
|
+
options.chrome = options.chrome + ' noscrollbar';
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
if (this.props.transparent) {
|
|
196
|
+
options.chrome = options.chrome + ' transparent';
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
return options;
|
|
200
|
+
}
|
|
201
|
+
}, {
|
|
202
|
+
key: "buildOptions",
|
|
203
|
+
value: function buildOptions() {
|
|
204
|
+
var options = Object.assign({}, this.props.options);
|
|
205
|
+
|
|
206
|
+
if (this.props.autoHeight) {
|
|
207
|
+
options.height = this.refs.embedContainer.parentNode.offsetHeight;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
options = Object.assign({}, options, {
|
|
211
|
+
theme: this.props.theme,
|
|
212
|
+
linkColor: this.props.linkColor,
|
|
213
|
+
borderColor: this.props.borderColor,
|
|
214
|
+
lang: this.props.lang
|
|
215
|
+
});
|
|
216
|
+
return options;
|
|
217
|
+
}
|
|
218
|
+
}, {
|
|
219
|
+
key: "renderWidget",
|
|
220
|
+
value: function renderWidget(options) {
|
|
221
|
+
var _this2 = this;
|
|
222
|
+
|
|
223
|
+
var onLoad = this.props.onLoad;
|
|
224
|
+
|
|
225
|
+
if (!this.isMountCanceled) {
|
|
226
|
+
window.twttr.widgets.createTimeline({
|
|
227
|
+
sourceType: this.props.sourceType,
|
|
228
|
+
screenName: this.props.screenName,
|
|
229
|
+
userId: this.props.userId,
|
|
230
|
+
ownerScreenName: this.props.ownerScreenName,
|
|
231
|
+
slug: this.props.slug,
|
|
232
|
+
id: this.props.id || this.props.widgetId,
|
|
233
|
+
url: this.props.url
|
|
234
|
+
}, this.refs.embedContainer, options).then(function (element) {
|
|
235
|
+
_this2.setState({
|
|
236
|
+
isLoading: false
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
if (onLoad) {
|
|
240
|
+
onLoad(element);
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}, {
|
|
246
|
+
key: "componentDidMount",
|
|
247
|
+
value: function componentDidMount() {
|
|
248
|
+
var _this3 = this;
|
|
249
|
+
|
|
250
|
+
if (exenv.canUseDOM) {
|
|
251
|
+
var script = require('scriptjs');
|
|
252
|
+
|
|
253
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
254
|
+
if (!window.twttr) {
|
|
255
|
+
console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.');
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
var options = _this3.buildOptions();
|
|
260
|
+
/** Append chrome options */
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
options = _this3.buildChromeOptions(options);
|
|
264
|
+
|
|
265
|
+
_this3.renderWidget(options);
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}, {
|
|
270
|
+
key: "componentWillUnmount",
|
|
271
|
+
value: function componentWillUnmount() {
|
|
272
|
+
this.isMountCanceled = true;
|
|
273
|
+
}
|
|
274
|
+
}, {
|
|
275
|
+
key: "render",
|
|
276
|
+
value: function render() {
|
|
277
|
+
var isLoading = this.state.isLoading;
|
|
278
|
+
var placeholder = this.props.placeholder;
|
|
279
|
+
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
280
|
+
ref: "embedContainer"
|
|
281
|
+
}));
|
|
282
|
+
}
|
|
283
|
+
}]);
|
|
284
|
+
|
|
285
|
+
return TwitterTimelineEmbed;
|
|
286
|
+
}(Component);
|
|
287
|
+
|
|
288
|
+
_defineProperty(TwitterTimelineEmbed, "propTypes", {
|
|
289
|
+
/**
|
|
290
|
+
* This can be either of profile, likes, list, collection, URL, widget
|
|
291
|
+
*/
|
|
292
|
+
sourceType: PropTypes.oneOf(['profile', 'likes', 'list', 'collection', 'url', 'widget']).isRequired,
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* username of twitter handle as String
|
|
296
|
+
*/
|
|
297
|
+
screenName: isRequiredIf(PropTypes.string, function (props) {
|
|
298
|
+
return !props.hasOwnProperty('userId') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
299
|
+
}),
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* UserId of twitter handle as number
|
|
303
|
+
*/
|
|
304
|
+
userId: isRequiredIf(PropTypes.number, function (props) {
|
|
305
|
+
return !props.hasOwnProperty('screenName') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
306
|
+
}),
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* To show list, used along with slug
|
|
310
|
+
*/
|
|
311
|
+
ownerScreenName: isRequiredIf(PropTypes.string, function (props) {
|
|
312
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
313
|
+
}),
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* To show list, used along with ownerScreenName
|
|
317
|
+
*/
|
|
318
|
+
slug: isRequiredIf(PropTypes.string, function (props) {
|
|
319
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
320
|
+
}),
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* To show list, unique list id
|
|
324
|
+
* Also used with collections, in that case its valid collection id
|
|
325
|
+
*/
|
|
326
|
+
id: isRequiredIf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]), function (props) {
|
|
327
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('ownerScreenName') && !props.hasOwnProperty('slug') || props.sourceType === 'collection';
|
|
328
|
+
}),
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* To show twitter content with url.
|
|
332
|
+
* Supported content includes profiles, likes, lists, and collections.
|
|
333
|
+
*/
|
|
334
|
+
url: isRequiredIf(PropTypes.string, function (props) {
|
|
335
|
+
return props.sourceType === 'url';
|
|
336
|
+
}),
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* To show custom widget
|
|
340
|
+
*/
|
|
341
|
+
widgetId: isRequiredIf(PropTypes.string, function (props) {
|
|
342
|
+
return props.sourceType === 'widget';
|
|
343
|
+
}),
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Additional options to pass to twitter widget plugin
|
|
347
|
+
*/
|
|
348
|
+
options: PropTypes.object,
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Automatically fit into parent container height
|
|
352
|
+
*/
|
|
353
|
+
autoHeight: PropTypes.bool,
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* With dark or light theme
|
|
357
|
+
*/
|
|
358
|
+
theme: PropTypes.oneOf(['dark', 'light']),
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* With custom link colors. Note: Only Hex colors are supported.
|
|
362
|
+
*/
|
|
363
|
+
linkColor: PropTypes.string,
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* With custom border colors. Note: Only Hex colors are supported.
|
|
367
|
+
*/
|
|
368
|
+
borderColor: PropTypes.string,
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Hide the header from timeline
|
|
372
|
+
*/
|
|
373
|
+
noHeader: PropTypes.bool,
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Hide the footer from timeline
|
|
377
|
+
*/
|
|
378
|
+
noFooter: PropTypes.bool,
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Hide the border from timeline
|
|
382
|
+
*/
|
|
383
|
+
noBorders: PropTypes.bool,
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Hide the scrollbars
|
|
387
|
+
*/
|
|
388
|
+
noScrollbar: PropTypes.bool,
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Enable Transparancy
|
|
392
|
+
*/
|
|
393
|
+
transparent: PropTypes.bool,
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Custom language code. Supported codes here: https://developer.twitter.com/en/docs/twitter-for-websites/twitter-for-websites-supported-languages/overview.html
|
|
397
|
+
*/
|
|
398
|
+
lang: PropTypes.string,
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Placeholder while tweet is loading
|
|
402
|
+
*/
|
|
403
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Function to execute after load, return html element
|
|
407
|
+
*/
|
|
408
|
+
onLoad: PropTypes.func
|
|
409
|
+
});
|
|
410
|
+
|
|
411
|
+
var TwitterShareButton =
|
|
412
|
+
/*#__PURE__*/
|
|
413
|
+
function (_Component) {
|
|
414
|
+
_inherits(TwitterShareButton, _Component);
|
|
415
|
+
|
|
416
|
+
function TwitterShareButton(props) {
|
|
417
|
+
var _this;
|
|
418
|
+
|
|
419
|
+
_classCallCheck(this, TwitterShareButton);
|
|
420
|
+
|
|
421
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterShareButton).call(this, props));
|
|
422
|
+
_this.state = {
|
|
423
|
+
isLoading: true
|
|
424
|
+
};
|
|
425
|
+
return _this;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
_createClass(TwitterShareButton, [{
|
|
429
|
+
key: "componentDidMount",
|
|
430
|
+
value: function componentDidMount() {
|
|
431
|
+
var _this2 = this;
|
|
432
|
+
|
|
433
|
+
var onLoad = this.props.onLoad;
|
|
434
|
+
|
|
435
|
+
if (exenv.canUseDOM) {
|
|
436
|
+
var script = require('scriptjs');
|
|
437
|
+
|
|
438
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
439
|
+
if (!window.twttr) {
|
|
440
|
+
console.error('Failure to load window.twttr in TwitterShareButton, aborting load.');
|
|
441
|
+
return;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
if (!_this2.isMountCanceled) {
|
|
445
|
+
window.twttr.widgets.createShareButton(_this2.props.url, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
446
|
+
_this2.setState({
|
|
447
|
+
isLoading: false
|
|
448
|
+
});
|
|
449
|
+
|
|
450
|
+
if (onLoad) {
|
|
451
|
+
onLoad(element);
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}, {
|
|
459
|
+
key: "componentWillUnmount",
|
|
460
|
+
value: function componentWillUnmount() {
|
|
461
|
+
this.isMountCanceled = true;
|
|
462
|
+
}
|
|
463
|
+
}, {
|
|
464
|
+
key: "render",
|
|
465
|
+
value: function render() {
|
|
466
|
+
var isLoading = this.state.isLoading;
|
|
467
|
+
var placeholder = this.props.placeholder;
|
|
468
|
+
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
469
|
+
ref: "embedContainer"
|
|
470
|
+
}));
|
|
471
|
+
}
|
|
472
|
+
}]);
|
|
473
|
+
|
|
474
|
+
return TwitterShareButton;
|
|
475
|
+
}(Component);
|
|
476
|
+
|
|
477
|
+
_defineProperty(TwitterShareButton, "propTypes", {
|
|
478
|
+
/**
|
|
479
|
+
* Url for sharing
|
|
480
|
+
*/
|
|
481
|
+
url: PropTypes.string.isRequired,
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Additional options for overriding config. Details at : https://dev.twitter.com/web/tweet-button/parameters
|
|
485
|
+
*/
|
|
486
|
+
options: PropTypes.object,
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Placeholder while tweet is loading
|
|
490
|
+
*/
|
|
491
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Function to execute after load, return html element
|
|
495
|
+
*/
|
|
496
|
+
onLoad: PropTypes.func
|
|
497
|
+
});
|
|
498
|
+
|
|
499
|
+
var TwitterFollowButton =
|
|
500
|
+
/*#__PURE__*/
|
|
501
|
+
function (_Component) {
|
|
502
|
+
_inherits(TwitterFollowButton, _Component);
|
|
503
|
+
|
|
504
|
+
function TwitterFollowButton(props) {
|
|
505
|
+
var _this;
|
|
506
|
+
|
|
507
|
+
_classCallCheck(this, TwitterFollowButton);
|
|
508
|
+
|
|
509
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterFollowButton).call(this, props));
|
|
510
|
+
_this.state = {
|
|
511
|
+
isLoading: true
|
|
512
|
+
};
|
|
513
|
+
return _this;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
_createClass(TwitterFollowButton, [{
|
|
517
|
+
key: "componentDidMount",
|
|
518
|
+
value: function componentDidMount() {
|
|
519
|
+
var _this2 = this;
|
|
520
|
+
|
|
521
|
+
var onLoad = this.props.onLoad;
|
|
522
|
+
|
|
523
|
+
if (exenv.canUseDOM) {
|
|
524
|
+
var script = require('scriptjs');
|
|
525
|
+
|
|
526
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
527
|
+
if (!window.twttr) {
|
|
528
|
+
console.error('Failure to load window.twttr in TwitterFollowButton, aborting load.');
|
|
529
|
+
return;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
if (!_this2.isMountCanceled) {
|
|
533
|
+
window.twttr.widgets.createFollowButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
534
|
+
_this2.setState({
|
|
535
|
+
isLoading: false
|
|
536
|
+
});
|
|
537
|
+
|
|
538
|
+
if (onLoad) {
|
|
539
|
+
onLoad(element);
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}, {
|
|
547
|
+
key: "componentWillUnmount",
|
|
548
|
+
value: function componentWillUnmount() {
|
|
549
|
+
this.isMountCanceled = true;
|
|
550
|
+
}
|
|
551
|
+
}, {
|
|
552
|
+
key: "render",
|
|
553
|
+
value: function render() {
|
|
554
|
+
var isLoading = this.state.isLoading;
|
|
555
|
+
var placeholder = this.props.placeholder;
|
|
556
|
+
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
557
|
+
ref: "embedContainer"
|
|
558
|
+
}));
|
|
559
|
+
}
|
|
560
|
+
}]);
|
|
561
|
+
|
|
562
|
+
return TwitterFollowButton;
|
|
563
|
+
}(Component);
|
|
564
|
+
|
|
565
|
+
_defineProperty(TwitterFollowButton, "propTypes", {
|
|
566
|
+
/**
|
|
567
|
+
* Username of twitter user which will be followed on click
|
|
568
|
+
*/
|
|
569
|
+
screenName: PropTypes.string.isRequired,
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Additional options to be added to the button
|
|
573
|
+
*/
|
|
574
|
+
options: PropTypes.object,
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Placeholder while tweet is loading
|
|
578
|
+
*/
|
|
579
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Function to execute after load, return html element
|
|
583
|
+
*/
|
|
584
|
+
onLoad: PropTypes.func
|
|
585
|
+
});
|
|
586
|
+
|
|
587
|
+
var TwitterHashtagButton =
|
|
588
|
+
/*#__PURE__*/
|
|
589
|
+
function (_Component) {
|
|
590
|
+
_inherits(TwitterHashtagButton, _Component);
|
|
591
|
+
|
|
592
|
+
function TwitterHashtagButton(props) {
|
|
593
|
+
var _this;
|
|
594
|
+
|
|
595
|
+
_classCallCheck(this, TwitterHashtagButton);
|
|
596
|
+
|
|
597
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterHashtagButton).call(this, props));
|
|
598
|
+
_this.state = {
|
|
599
|
+
isLoading: true
|
|
600
|
+
};
|
|
601
|
+
return _this;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
_createClass(TwitterHashtagButton, [{
|
|
605
|
+
key: "componentDidMount",
|
|
606
|
+
value: function componentDidMount() {
|
|
607
|
+
var _this2 = this;
|
|
608
|
+
|
|
609
|
+
var onLoad = this.props.onLoad;
|
|
610
|
+
|
|
611
|
+
if (exenv.canUseDOM) {
|
|
612
|
+
var script = require('scriptjs');
|
|
613
|
+
|
|
614
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
615
|
+
if (!window.twttr) {
|
|
616
|
+
console.error('Failure to load window.twttr in TwitterHashtagButton, aborting load.');
|
|
617
|
+
return;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
if (!_this2.isMountCanceled) {
|
|
621
|
+
window.twttr.widgets.createHashtagButton(_this2.props.tag, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
622
|
+
_this2.setState({
|
|
623
|
+
isLoading: false
|
|
624
|
+
});
|
|
625
|
+
|
|
626
|
+
if (onLoad) {
|
|
627
|
+
onLoad(element);
|
|
628
|
+
}
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}, {
|
|
635
|
+
key: "componentWillUnmount",
|
|
636
|
+
value: function componentWillUnmount() {
|
|
637
|
+
this.isMountCanceled = true;
|
|
638
|
+
}
|
|
639
|
+
}, {
|
|
640
|
+
key: "render",
|
|
641
|
+
value: function render() {
|
|
642
|
+
var isLoading = this.state.isLoading;
|
|
643
|
+
var placeholder = this.props.placeholder;
|
|
644
|
+
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
645
|
+
ref: "embedContainer"
|
|
646
|
+
}));
|
|
647
|
+
}
|
|
648
|
+
}]);
|
|
649
|
+
|
|
650
|
+
return TwitterHashtagButton;
|
|
651
|
+
}(Component);
|
|
652
|
+
|
|
653
|
+
_defineProperty(TwitterHashtagButton, "propTypes", {
|
|
654
|
+
/**
|
|
655
|
+
* Tag name for hashtag button
|
|
656
|
+
*/
|
|
657
|
+
tag: PropTypes.string.isRequired,
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Additional options to be added to the button
|
|
661
|
+
*/
|
|
662
|
+
options: PropTypes.object,
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* Placeholder while tweet is loading
|
|
666
|
+
*/
|
|
667
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Function to execute after load, return html element
|
|
671
|
+
*/
|
|
672
|
+
onLoad: PropTypes.func
|
|
673
|
+
});
|
|
674
|
+
|
|
675
|
+
var TwitterMentionButton =
|
|
676
|
+
/*#__PURE__*/
|
|
677
|
+
function (_Component) {
|
|
678
|
+
_inherits(TwitterMentionButton, _Component);
|
|
679
|
+
|
|
680
|
+
function TwitterMentionButton(props) {
|
|
681
|
+
var _this;
|
|
682
|
+
|
|
683
|
+
_classCallCheck(this, TwitterMentionButton);
|
|
684
|
+
|
|
685
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMentionButton).call(this, props));
|
|
686
|
+
_this.state = {
|
|
687
|
+
isLoading: true
|
|
688
|
+
};
|
|
689
|
+
return _this;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
_createClass(TwitterMentionButton, [{
|
|
693
|
+
key: "componentDidMount",
|
|
694
|
+
value: function componentDidMount() {
|
|
695
|
+
var _this2 = this;
|
|
696
|
+
|
|
697
|
+
var onLoad = this.props.onLoad;
|
|
698
|
+
|
|
699
|
+
if (exenv.canUseDOM) {
|
|
700
|
+
var script = require('scriptjs');
|
|
701
|
+
|
|
702
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
703
|
+
if (!window.twttr) {
|
|
704
|
+
console.error('Failure to load window.twttr in TwitterMentionButton, aborting load.');
|
|
705
|
+
return;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
if (!_this2.isMountCanceled) {
|
|
709
|
+
window.twttr.widgets.createMentionButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
710
|
+
_this2.setState({
|
|
711
|
+
isLoading: false
|
|
712
|
+
});
|
|
713
|
+
|
|
714
|
+
if (onLoad) {
|
|
715
|
+
onLoad(element);
|
|
716
|
+
}
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}, {
|
|
723
|
+
key: "componentWillUnmount",
|
|
724
|
+
value: function componentWillUnmount() {
|
|
725
|
+
this.isMountCanceled = true;
|
|
726
|
+
}
|
|
727
|
+
}, {
|
|
728
|
+
key: "render",
|
|
729
|
+
value: function render() {
|
|
730
|
+
var isLoading = this.state.isLoading;
|
|
731
|
+
var placeholder = this.props.placeholder;
|
|
732
|
+
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
733
|
+
ref: "embedContainer"
|
|
734
|
+
}));
|
|
735
|
+
}
|
|
736
|
+
}]);
|
|
737
|
+
|
|
738
|
+
return TwitterMentionButton;
|
|
739
|
+
}(Component);
|
|
740
|
+
|
|
741
|
+
_defineProperty(TwitterMentionButton, "propTypes", {
|
|
742
|
+
/**
|
|
743
|
+
* Username to which you will need to tweet
|
|
744
|
+
*/
|
|
745
|
+
screenName: PropTypes.string.isRequired,
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* Additional options for overriding config.
|
|
749
|
+
*/
|
|
750
|
+
options: PropTypes.object,
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Placeholder while tweet is loading
|
|
754
|
+
*/
|
|
755
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Function to execute after load, return html element
|
|
759
|
+
*/
|
|
760
|
+
onLoad: PropTypes.func
|
|
761
|
+
});
|
|
762
|
+
|
|
763
|
+
var TwitterTweetEmbed =
|
|
764
|
+
/*#__PURE__*/
|
|
765
|
+
function (_Component) {
|
|
766
|
+
_inherits(TwitterTweetEmbed, _Component);
|
|
767
|
+
|
|
768
|
+
function TwitterTweetEmbed(props) {
|
|
769
|
+
var _this;
|
|
770
|
+
|
|
771
|
+
_classCallCheck(this, TwitterTweetEmbed);
|
|
772
|
+
|
|
773
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTweetEmbed).call(this, props));
|
|
774
|
+
_this.state = {
|
|
775
|
+
isLoading: true
|
|
776
|
+
};
|
|
777
|
+
return _this;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
_createClass(TwitterTweetEmbed, [{
|
|
781
|
+
key: "renderWidget",
|
|
782
|
+
value: function renderWidget() {
|
|
783
|
+
var _this2 = this;
|
|
784
|
+
|
|
785
|
+
var onLoad = this.props.onLoad;
|
|
786
|
+
|
|
787
|
+
if (!window.twttr) {
|
|
788
|
+
console.error('Failure to load window.twttr in TwitterTweetEmbed, aborting load.');
|
|
789
|
+
return;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
if (!this.isMountCanceled) {
|
|
793
|
+
window.twttr.widgets.createTweet(this.props.tweetId, this.refs.embedContainer, this.props.options).then(function (element) {
|
|
794
|
+
_this2.setState({
|
|
795
|
+
isLoading: false
|
|
796
|
+
});
|
|
797
|
+
|
|
798
|
+
if (onLoad) {
|
|
799
|
+
onLoad(element);
|
|
800
|
+
}
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
}, {
|
|
805
|
+
key: "componentDidMount",
|
|
806
|
+
value: function componentDidMount() {
|
|
807
|
+
var _this3 = this;
|
|
808
|
+
|
|
809
|
+
if (exenv.canUseDOM) {
|
|
810
|
+
var script = require('scriptjs');
|
|
811
|
+
|
|
812
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
813
|
+
_this3.renderWidget();
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
}, {
|
|
818
|
+
key: "componentWillUnmount",
|
|
819
|
+
value: function componentWillUnmount() {
|
|
820
|
+
this.isMountCanceled = true;
|
|
821
|
+
}
|
|
822
|
+
}, {
|
|
823
|
+
key: "render",
|
|
824
|
+
value: function render() {
|
|
825
|
+
var isLoading = this.state.isLoading;
|
|
826
|
+
var placeholder = this.props.placeholder;
|
|
827
|
+
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
828
|
+
ref: "embedContainer"
|
|
829
|
+
}));
|
|
830
|
+
}
|
|
831
|
+
}]);
|
|
832
|
+
|
|
833
|
+
return TwitterTweetEmbed;
|
|
834
|
+
}(Component);
|
|
835
|
+
|
|
836
|
+
_defineProperty(TwitterTweetEmbed, "propTypes", {
|
|
837
|
+
/**
|
|
838
|
+
* Tweet id that needs to be shown
|
|
839
|
+
*/
|
|
840
|
+
tweetId: PropTypes.string.isRequired,
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Additional options to pass to twitter widget plugin
|
|
844
|
+
*/
|
|
845
|
+
options: PropTypes.object,
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* Placeholder while tweet is loading
|
|
849
|
+
*/
|
|
850
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* Function to execute after load, return html element
|
|
854
|
+
*/
|
|
855
|
+
onLoad: PropTypes.func
|
|
856
|
+
});
|
|
857
|
+
|
|
858
|
+
var TwitterMomentShare =
|
|
859
|
+
/*#__PURE__*/
|
|
860
|
+
function (_Component) {
|
|
861
|
+
_inherits(TwitterMomentShare, _Component);
|
|
862
|
+
|
|
863
|
+
function TwitterMomentShare(props) {
|
|
864
|
+
var _this;
|
|
865
|
+
|
|
866
|
+
_classCallCheck(this, TwitterMomentShare);
|
|
867
|
+
|
|
868
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMomentShare).call(this, props));
|
|
869
|
+
_this.state = {
|
|
870
|
+
isLoading: true
|
|
871
|
+
};
|
|
872
|
+
return _this;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
_createClass(TwitterMomentShare, [{
|
|
876
|
+
key: "componentDidMount",
|
|
877
|
+
value: function componentDidMount() {
|
|
878
|
+
var _this2 = this;
|
|
879
|
+
|
|
880
|
+
var onLoad = this.props.onLoad;
|
|
881
|
+
|
|
882
|
+
if (exenv.canUseDOM) {
|
|
883
|
+
var script = require('scriptjs');
|
|
884
|
+
|
|
885
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
886
|
+
if (!window.twttr) {
|
|
887
|
+
console.error('Failure to load window.twttr in TwitterMomentShare, aborting load.');
|
|
888
|
+
return;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
if (!_this2.isMountCanceled) {
|
|
892
|
+
window.twttr.widgets.createMoment(_this2.props.momentId, _this2.refs.shareMoment, _this2.props.options).then(function (element) {
|
|
893
|
+
_this2.setState({
|
|
894
|
+
isLoading: false
|
|
895
|
+
});
|
|
896
|
+
|
|
897
|
+
if (onLoad) {
|
|
898
|
+
onLoad(element);
|
|
899
|
+
}
|
|
900
|
+
});
|
|
901
|
+
}
|
|
902
|
+
});
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
}, {
|
|
906
|
+
key: "componentWillUnmount",
|
|
907
|
+
value: function componentWillUnmount() {
|
|
908
|
+
this.isMountCanceled = true;
|
|
909
|
+
}
|
|
910
|
+
}, {
|
|
911
|
+
key: "render",
|
|
912
|
+
value: function render() {
|
|
913
|
+
var isLoading = this.state.isLoading;
|
|
914
|
+
var placeholder = this.props.placeholder;
|
|
915
|
+
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
916
|
+
ref: "shareMoment"
|
|
917
|
+
}));
|
|
918
|
+
}
|
|
919
|
+
}]);
|
|
920
|
+
|
|
921
|
+
return TwitterMomentShare;
|
|
922
|
+
}(Component);
|
|
923
|
+
|
|
924
|
+
_defineProperty(TwitterMomentShare, "propTypes", {
|
|
925
|
+
/**
|
|
926
|
+
* id of Twitter moment to show
|
|
927
|
+
*/
|
|
928
|
+
momentId: PropTypes.string.isRequired,
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Additional options for overriding config.
|
|
932
|
+
*/
|
|
933
|
+
options: PropTypes.object,
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* Placeholder while tweet is loading
|
|
937
|
+
*/
|
|
938
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* Function to execute after load, return html element
|
|
942
|
+
*/
|
|
943
|
+
onLoad: PropTypes.func
|
|
944
|
+
});
|
|
945
|
+
|
|
946
|
+
var TwitterDMButton =
|
|
947
|
+
/*#__PURE__*/
|
|
948
|
+
function (_Component) {
|
|
949
|
+
_inherits(TwitterDMButton, _Component);
|
|
950
|
+
|
|
951
|
+
function TwitterDMButton(props) {
|
|
952
|
+
var _this;
|
|
953
|
+
|
|
954
|
+
_classCallCheck(this, TwitterDMButton);
|
|
955
|
+
|
|
956
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterDMButton).call(this, props));
|
|
957
|
+
_this.state = {
|
|
958
|
+
isLoading: true
|
|
959
|
+
};
|
|
960
|
+
return _this;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
_createClass(TwitterDMButton, [{
|
|
964
|
+
key: "componentDidMount",
|
|
965
|
+
value: function componentDidMount() {
|
|
966
|
+
var _this2 = this;
|
|
967
|
+
|
|
968
|
+
var onLoad = this.props.onLoad;
|
|
969
|
+
|
|
970
|
+
if (exenv.canUseDOM) {
|
|
971
|
+
var script = require('scriptjs');
|
|
972
|
+
|
|
973
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
974
|
+
if (!window.twttr) {
|
|
975
|
+
console.error('Failure to load window.twttr in TwitterDMButton, aborting load.');
|
|
976
|
+
return;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
if (!_this2.isMountCanceled) {
|
|
980
|
+
window.twttr.widgets.createDMButton(_this2.props.id, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
981
|
+
_this2.setState({
|
|
982
|
+
isLoading: false
|
|
983
|
+
});
|
|
984
|
+
|
|
985
|
+
if (onLoad) {
|
|
986
|
+
onLoad(element);
|
|
987
|
+
}
|
|
988
|
+
});
|
|
989
|
+
}
|
|
990
|
+
});
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
}, {
|
|
994
|
+
key: "componentWillUnmount",
|
|
995
|
+
value: function componentWillUnmount() {
|
|
996
|
+
this.isMountCanceled = true;
|
|
997
|
+
}
|
|
998
|
+
}, {
|
|
999
|
+
key: "render",
|
|
1000
|
+
value: function render() {
|
|
1001
|
+
var isLoading = this.state.isLoading;
|
|
1002
|
+
var placeholder = this.props.placeholder;
|
|
1003
|
+
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
1004
|
+
ref: "embedContainer"
|
|
1005
|
+
}));
|
|
1006
|
+
}
|
|
1007
|
+
}]);
|
|
1008
|
+
|
|
1009
|
+
return TwitterDMButton;
|
|
1010
|
+
}(Component);
|
|
1011
|
+
|
|
1012
|
+
_defineProperty(TwitterDMButton, "propTypes", {
|
|
1013
|
+
/**
|
|
1014
|
+
* Twitter user id for DM button
|
|
1015
|
+
*/
|
|
1016
|
+
id: PropTypes.number.isRequired,
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* Additional options to be added to the button
|
|
1020
|
+
*/
|
|
1021
|
+
options: PropTypes.object,
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* Placeholder while tweet is loading
|
|
1025
|
+
*/
|
|
1026
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* Function to execute after load, return html element
|
|
1030
|
+
*/
|
|
1031
|
+
onLoad: PropTypes.func
|
|
1032
|
+
});
|
|
1033
|
+
|
|
1034
|
+
var TwitterVideoEmbed =
|
|
1035
|
+
/*#__PURE__*/
|
|
1036
|
+
function (_Component) {
|
|
1037
|
+
_inherits(TwitterVideoEmbed, _Component);
|
|
1038
|
+
|
|
1039
|
+
function TwitterVideoEmbed(props) {
|
|
1040
|
+
var _this;
|
|
1041
|
+
|
|
1042
|
+
_classCallCheck(this, TwitterVideoEmbed);
|
|
1043
|
+
|
|
1044
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterVideoEmbed).call(this, props));
|
|
1045
|
+
_this.state = {
|
|
1046
|
+
isLoading: true
|
|
1047
|
+
};
|
|
1048
|
+
return _this;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
_createClass(TwitterVideoEmbed, [{
|
|
1052
|
+
key: "componentDidMount",
|
|
1053
|
+
value: function componentDidMount() {
|
|
1054
|
+
var _this2 = this;
|
|
1055
|
+
|
|
1056
|
+
var onLoad = this.props.onLoad;
|
|
1057
|
+
|
|
1058
|
+
if (exenv.canUseDOM) {
|
|
1059
|
+
var script = require('scriptjs');
|
|
1060
|
+
|
|
1061
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1062
|
+
if (!window.twttr) {
|
|
1063
|
+
console.error('Failure to load window.twttr in TwitterVideoEmbed, aborting load.');
|
|
1064
|
+
return;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
if (!_this2.isMountCanceled) {
|
|
1068
|
+
window.twttr.widgets.createVideo(_this2.props.id, _this2.refs.embedContainer).then(function (element) {
|
|
1069
|
+
_this2.setState({
|
|
1070
|
+
isLoading: false
|
|
1071
|
+
});
|
|
1072
|
+
|
|
1073
|
+
if (onLoad) {
|
|
1074
|
+
onLoad(element);
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}, {
|
|
1082
|
+
key: "componentWillUnmount",
|
|
1083
|
+
value: function componentWillUnmount() {
|
|
1084
|
+
this.isMountCanceled = true;
|
|
1085
|
+
}
|
|
1086
|
+
}, {
|
|
1087
|
+
key: "render",
|
|
1088
|
+
value: function render() {
|
|
1089
|
+
var isLoading = this.state.isLoading;
|
|
1090
|
+
var placeholder = this.props.placeholder;
|
|
1091
|
+
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
1092
|
+
ref: "embedContainer"
|
|
1093
|
+
}));
|
|
1094
|
+
}
|
|
1095
|
+
}]);
|
|
1096
|
+
|
|
1097
|
+
return TwitterVideoEmbed;
|
|
1098
|
+
}(Component);
|
|
1099
|
+
|
|
1100
|
+
_defineProperty(TwitterVideoEmbed, "propTypes", {
|
|
1101
|
+
/**
|
|
1102
|
+
* Id of video tweet.
|
|
1103
|
+
*/
|
|
1104
|
+
id: PropTypes.string.isRequired,
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* Placeholder while tweet is loading
|
|
1108
|
+
*/
|
|
1109
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Function to execute after load, return html element
|
|
1113
|
+
*/
|
|
1114
|
+
onLoad: PropTypes.func
|
|
1115
|
+
});
|
|
1116
|
+
|
|
1117
|
+
var TwitterOnAirButton =
|
|
1118
|
+
/*#__PURE__*/
|
|
1119
|
+
function (_Component) {
|
|
1120
|
+
_inherits(TwitterOnAirButton, _Component);
|
|
1121
|
+
|
|
1122
|
+
function TwitterOnAirButton(props) {
|
|
1123
|
+
var _this;
|
|
1124
|
+
|
|
1125
|
+
_classCallCheck(this, TwitterOnAirButton);
|
|
1126
|
+
|
|
1127
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterOnAirButton).call(this, props));
|
|
1128
|
+
_this.state = {
|
|
1129
|
+
isLoading: true
|
|
1130
|
+
};
|
|
1131
|
+
return _this;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
_createClass(TwitterOnAirButton, [{
|
|
1135
|
+
key: "componentDidMount",
|
|
1136
|
+
value: function componentDidMount() {
|
|
1137
|
+
var _this2 = this;
|
|
1138
|
+
|
|
1139
|
+
var onLoad = this.props.onLoad;
|
|
1140
|
+
|
|
1141
|
+
if (exenv.canUseDOM) {
|
|
1142
|
+
var script = require('scriptjs');
|
|
1143
|
+
|
|
1144
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1145
|
+
if (!window.twttr) {
|
|
1146
|
+
console.error('Failure to load window.twttr in TwitterOnAirButton, aborting load.');
|
|
1147
|
+
return;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
if (!_this2.isMountCanceled) {
|
|
1151
|
+
window.twttr.widgets.createPeriscopeOnAirButton(_this2.props.username, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1152
|
+
_this2.setState({
|
|
1153
|
+
isLoading: false
|
|
1154
|
+
});
|
|
1155
|
+
|
|
1156
|
+
if (onLoad) {
|
|
1157
|
+
onLoad(element);
|
|
1158
|
+
}
|
|
1159
|
+
});
|
|
1160
|
+
}
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
}, {
|
|
1165
|
+
key: "componentWillUnmount",
|
|
1166
|
+
value: function componentWillUnmount() {
|
|
1167
|
+
this.isMountCanceled = true;
|
|
1168
|
+
}
|
|
1169
|
+
}, {
|
|
1170
|
+
key: "render",
|
|
1171
|
+
value: function render() {
|
|
1172
|
+
var isLoading = this.state.isLoading;
|
|
1173
|
+
var placeholder = this.props.placeholder;
|
|
1174
|
+
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
1175
|
+
ref: "embedContainer"
|
|
1176
|
+
}));
|
|
1177
|
+
}
|
|
1178
|
+
}]);
|
|
1179
|
+
|
|
1180
|
+
return TwitterOnAirButton;
|
|
1181
|
+
}(Component);
|
|
1182
|
+
|
|
1183
|
+
_defineProperty(TwitterOnAirButton, "propTypes", {
|
|
1184
|
+
/**
|
|
1185
|
+
* Username for which you require periscope on air button
|
|
1186
|
+
*/
|
|
1187
|
+
username: PropTypes.string.isRequired,
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* Additional options for overriding config.
|
|
1191
|
+
*/
|
|
1192
|
+
options: PropTypes.object,
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* Placeholder while tweet is loading
|
|
1196
|
+
*/
|
|
1197
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* Function to execute after load, return html element
|
|
1201
|
+
*/
|
|
1202
|
+
onLoad: PropTypes.func
|
|
1203
|
+
});
|
|
1204
|
+
|
|
1205
|
+
var ImageSlider = function ImageSlider(props) {
|
|
1206
|
+
var innerSlider = useRef(null);
|
|
1207
|
+
var tile = useRef(null);
|
|
1208
|
+
var viewableWindow = useRef(null);
|
|
1209
|
+
|
|
1210
|
+
var _useState = useState(0),
|
|
1211
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1212
|
+
tileSize = _useState2[0],
|
|
1213
|
+
setTileSize = _useState2[1];
|
|
1214
|
+
|
|
1215
|
+
var _useState3 = useState(false),
|
|
1216
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
1217
|
+
showScroller = _useState4[0],
|
|
1218
|
+
setShowScroller = _useState4[1];
|
|
1219
|
+
|
|
1220
|
+
var _useState5 = useState(0),
|
|
1221
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
1222
|
+
scrollPosition = _useState6[0],
|
|
1223
|
+
setScrollPosition = _useState6[1];
|
|
1224
|
+
|
|
1225
|
+
var client = props.client;
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
function scrollSlider(e, direction) {
|
|
1229
|
+
var slide = e.target.parentElement;
|
|
1230
|
+
var scrollOffset = scrollPosition;
|
|
1231
|
+
var viewableWidth = slide.clientWidth;
|
|
1232
|
+
//calculate viewable size / slide
|
|
1233
|
+
var numberOfSlidesToScroll = Math.floor(tile.current.clientWidth + 25); //width of the tile plus margin
|
|
1234
|
+
var scrollDirection = void 0;
|
|
1235
|
+
if (direction === 'next') {
|
|
1236
|
+
scrollDirection = scrollOffset + numberOfSlidesToScroll;
|
|
1237
|
+
if (scrollOffset + viewableWidth + 25 >= innerSlider.current.offsetWidth) {
|
|
1238
|
+
scrollDirection = 0;
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
if (direction === 'prev') {
|
|
1242
|
+
scrollDirection = scrollOffset - numberOfSlidesToScroll;
|
|
1243
|
+
if (scrollOffset === 0) {
|
|
1244
|
+
if (window.innerWidth > 1399) {
|
|
1245
|
+
scrollDirection = innerSlider.current.offsetWidth - tileSize * 3 - 70;
|
|
1246
|
+
}
|
|
1247
|
+
if (window.innerWidth < 1399 && window.innerWidth > 592) {
|
|
1248
|
+
scrollDirection = innerSlider.current.offsetWidth - tileSize * 2 - 40;
|
|
1249
|
+
}
|
|
1250
|
+
if (window.innerWidth < 592) {
|
|
1251
|
+
scrollDirection = innerSlider.current.offsetWidth - tileSize * 1 - 24;
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
slide.scrollTo({
|
|
1256
|
+
left: scrollDirection,
|
|
1257
|
+
behavior: 'smooth'
|
|
1258
|
+
});
|
|
1259
|
+
setScrollPosition(scrollDirection);
|
|
1260
|
+
}
|
|
1261
|
+
var setThumbSize = function setThumbSize() {
|
|
1262
|
+
var thumbSize = void 0;
|
|
1263
|
+
var scrollerVisible = false;
|
|
1264
|
+
if (window.innerWidth > 1399) {
|
|
1265
|
+
if (props.data.slides && props.data.slides.length < 3) {
|
|
1266
|
+
thumbSize = Math.floor(viewableWindow.current.clientWidth / 2 - 40);
|
|
1267
|
+
} else {
|
|
1268
|
+
thumbSize = Math.floor(viewableWindow.current.clientWidth / 3 - 40);
|
|
1269
|
+
}
|
|
1270
|
+
if (props.data.slides.length > 3) {
|
|
1271
|
+
scrollerVisible = true;
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
if (window.innerWidth < 1399 && window.innerWidth > 592) {
|
|
1275
|
+
thumbSize = Math.floor(viewableWindow.current.clientWidth / 2 - 48);
|
|
1276
|
+
if (props.data.slides.length > 2) {
|
|
1277
|
+
scrollerVisible = true;
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
if (window.innerWidth < 592) {
|
|
1281
|
+
thumbSize = Math.floor(viewableWindow.current.clientWidth / 1 - 64);
|
|
1282
|
+
if (props.data.slides.length > 1) {
|
|
1283
|
+
scrollerVisible = true;
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
if (thumbSize !== tileSize) {
|
|
1287
|
+
setTileSize(thumbSize);
|
|
1288
|
+
setScrollPosition(0);
|
|
1289
|
+
setShowScroller(scrollerVisible);
|
|
1290
|
+
var videoRows = document.querySelectorAll('#vid-slider .row');
|
|
1291
|
+
for (var i = 0; i < videoRows.length; i++) {
|
|
1292
|
+
videoRows[i].scrollTo({
|
|
1293
|
+
left: 0,
|
|
1294
|
+
behavior: 'smooth'
|
|
1295
|
+
});
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
};
|
|
1299
|
+
useEffect(function () {
|
|
1300
|
+
//IE11 Polyfill
|
|
1301
|
+
smoothscroll.polyfill();
|
|
1302
|
+
setThumbSize();
|
|
1303
|
+
|
|
1304
|
+
window.addEventListener('resize', setThumbSize);
|
|
1305
|
+
|
|
1306
|
+
return function () {
|
|
1307
|
+
return window.removeEventListener('resize', setThumbSize);
|
|
1308
|
+
};
|
|
1309
|
+
}, []);
|
|
1310
|
+
|
|
1311
|
+
var variant = 'black';
|
|
1312
|
+
return React.createElement(
|
|
1313
|
+
React.Fragment,
|
|
1314
|
+
null,
|
|
1315
|
+
React.createElement(
|
|
1316
|
+
'div',
|
|
1317
|
+
{ ref: viewableWindow, id: 'vid-slider', className: 'col' },
|
|
1318
|
+
React.createElement(
|
|
1319
|
+
'div',
|
|
1320
|
+
{ className: 'row' },
|
|
1321
|
+
showScroller && React.createElement(
|
|
1322
|
+
'div',
|
|
1323
|
+
{ onClick: function onClick(e) {
|
|
1324
|
+
return scrollSlider(e, 'prev');
|
|
1325
|
+
}, className: 'tile__slider-prev', style: { color: variant } },
|
|
1326
|
+
React.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow left' })
|
|
1327
|
+
),
|
|
1328
|
+
showScroller && React.createElement(
|
|
1329
|
+
'div',
|
|
1330
|
+
{ onClick: function onClick(e) {
|
|
1331
|
+
return scrollSlider(e, 'next');
|
|
1332
|
+
}, className: 'tile__slider-next', style: { color: variant } },
|
|
1333
|
+
React.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow right' })
|
|
1334
|
+
),
|
|
1335
|
+
React.createElement(
|
|
1336
|
+
'div',
|
|
1337
|
+
{ ref: innerSlider, className: 'row__inner' },
|
|
1338
|
+
props.data.slides.map(function (img, index) {
|
|
1339
|
+
var thumbnail = urlFor({ client: client, source: img.slideshowImage, imageWidth: 250 });
|
|
1340
|
+
if (!img.slideshowImage.link) {
|
|
1341
|
+
return React.createElement(
|
|
1342
|
+
'div',
|
|
1343
|
+
{ ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
|
|
1344
|
+
React.createElement(
|
|
1345
|
+
'div',
|
|
1346
|
+
{ className: 'tile__media' },
|
|
1347
|
+
React.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px', maxHeight: '160px' } })
|
|
1348
|
+
),
|
|
1349
|
+
React.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
1350
|
+
);
|
|
1351
|
+
} else {
|
|
1352
|
+
return React.createElement(
|
|
1353
|
+
'a',
|
|
1354
|
+
{ ref: tile, key: index, href: img.slideshowImage.link, target: img.slideshowImage.blank ? '_target' : '_self', className: 'tile', style: { width: tileSize + 'px' } },
|
|
1355
|
+
React.createElement(
|
|
1356
|
+
'div',
|
|
1357
|
+
{ className: 'tile__media' },
|
|
1358
|
+
React.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px', maxHeight: '160px' } })
|
|
1359
|
+
),
|
|
1360
|
+
React.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
1361
|
+
);
|
|
1362
|
+
}
|
|
1363
|
+
})
|
|
1364
|
+
)
|
|
1365
|
+
),
|
|
1366
|
+
React.createElement(
|
|
1367
|
+
'style',
|
|
1368
|
+
{ jsx: 'true' },
|
|
1369
|
+
'\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 '
|
|
1370
|
+
)
|
|
1371
|
+
)
|
|
1372
|
+
);
|
|
1373
|
+
};
|
|
1374
|
+
|
|
1375
|
+
export { ImageSlider as I, TwitterTimelineEmbed as T };
|