@mjhls/mjh-framework 1.0.849 → 1.0.850-affiliatefix-v1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +24 -23
- package/dist/cjs/AD300x250x600.js +24 -23
- package/dist/cjs/AD728x90.js +27 -26
- package/dist/cjs/ADFloatingFooter.js +23 -22
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +23 -22
- package/dist/cjs/{ADInfeed-86e987a0.js → ADInfeed-859820d9.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +23 -22
- package/dist/cjs/ADSponsoredResources.js +23 -22
- package/dist/cjs/ADWebcast.js +23 -22
- package/dist/cjs/ADWelcome.js +20 -19
- package/dist/cjs/{ADlgInfeed-5d6f91d7.js → ADlgInfeed-da3a36a6.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +24 -91
- package/dist/cjs/AdSlotsProvider.js +18 -27
- package/dist/cjs/AlgoliaSearch.js +14088 -30
- package/dist/cjs/AlphabeticList.js +10 -10
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +50 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +32 -31
- package/dist/cjs/ArticleSeriesListing.js +33 -32
- package/dist/cjs/Auth.js +484 -348
- package/dist/cjs/AuthWrapper.js +1866 -15
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-c21aac7f.js} +1 -1
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-36e54d77.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +8 -8
- package/dist/cjs/CMEDeck.js +25 -24
- package/dist/cjs/Column2.js +16 -16
- package/dist/cjs/Column3.js +33 -32
- package/dist/cjs/ConferenceArticleCard.js +7 -7
- package/dist/cjs/DeckContent.js +34 -33
- package/dist/cjs/DeckQueue.js +33 -32
- package/dist/cjs/{Dfp-0bf098b5.js → Dfp-93399f8c.js} +15 -14
- package/dist/cjs/EventsDeck.js +28 -28
- package/dist/cjs/ExternalResources.js +47 -47
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +12 -12
- package/dist/cjs/GridContent.js +84 -202
- package/dist/cjs/GridHero.js +13 -13
- package/dist/cjs/GroupDeck.js +14 -14
- package/dist/cjs/HamMagazine.js +28 -28
- package/dist/cjs/Hero.js +4 -4
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +47 -47
- package/dist/cjs/HorizontalHero.js +5 -5
- package/dist/cjs/IssueContentDeck.js +13 -13
- package/dist/cjs/IssueDeck.js +16 -16
- package/dist/cjs/IssueLanding.js +56 -56
- package/dist/cjs/LeftNav.js +22 -21
- package/dist/cjs/MasterDeck.js +33 -32
- package/dist/cjs/MediaSeriesLanding.js +1054 -855
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +31 -31
- package/dist/cjs/NavNative.js +38 -38
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +13 -13
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +66 -1258
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +35 -34
- package/dist/cjs/PubToc.js +8 -8
- package/dist/cjs/PublicationDeck.js +8 -8
- package/dist/cjs/PublicationLanding.js +28 -28
- package/dist/cjs/QueueDeckExpanded.js +38 -37
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +7 -7
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +20 -19
- package/dist/cjs/{SeriesSlider-60fa1342.js → SeriesSlider-34c6cc2b.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +15 -15
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-948138c7.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +10 -10
- package/dist/cjs/TaxonomyDescription.js +46 -46
- package/dist/cjs/TemplateNormal.js +48 -47
- package/dist/cjs/ThumbnailCard.js +7 -7
- package/dist/cjs/Ustream.js +14 -14
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoProgramLandingPage.js +52 -52
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +38 -37
- package/dist/cjs/VideoSeriesListing.js +35 -36
- package/dist/cjs/View.js +91 -173
- package/dist/cjs/YahooHero.js +15 -15
- package/dist/cjs/YoutubeGroup.js +22 -22
- package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-60837c34.js → extends-29bdbc6d.js} +8 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +135 -71
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +46 -46
- package/dist/cjs/{getTargeting-3e45e4d4.js → getTargeting-be6168ad.js} +8 -17
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-80e98193.js → index-060c5d65.js} +438 -245
- package/dist/cjs/index-50be6759.js +105 -0
- package/dist/cjs/{index-9d365128.js → index-eadd5035.js} +7 -7
- package/dist/cjs/{index-b5eb3ff8.js → index-efca863c.js} +16 -11
- package/dist/cjs/{index-99edf08a.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index-44481153.js → index-fc2f1ca2.js} +42 -488
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-00a6aade.js} +1 -1
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-2bb721c8.js} +2 -2
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-c1e16606.js} +1 -1
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-f27f80d9.js} +1 -1
- package/dist/cjs/index.js +139 -137
- package/dist/cjs/{inherits-87492b40.js → inherits-c2065b95.js} +22 -19
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-f0783643.js} +58 -10
- package/dist/cjs/main-f1c77adb.js +973 -0
- package/dist/cjs/{moment-ca3bd9fb.js → moment-aca40de1.js} +1 -1
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-af932527.js} +17 -17
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5d1bc3b3.js} +14 -14
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/cjs/{typeof-9d7f610f.js → typeof-88a668c5.js} +35 -35
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-b2b9092f.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +27 -26
- package/dist/esm/AD300x250x600.js +27 -26
- package/dist/esm/AD728x90.js +30 -29
- package/dist/esm/ADFloatingFooter.js +29 -28
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -28
- package/dist/esm/{ADInfeed-4096aff2.js → ADInfeed-4bf3b2f9.js} +9 -9
- package/dist/esm/ADSkyscraper.js +29 -28
- package/dist/esm/ADSponsoredResources.js +29 -28
- package/dist/esm/ADWebcast.js +29 -28
- package/dist/esm/ADWelcome.js +30 -29
- package/dist/esm/{ADlgInfeed-8e4fcfbd.js → ADlgInfeed-a3377c4a.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +27 -94
- package/dist/esm/AdSlotsProvider.js +19 -28
- package/dist/esm/AlgoliaSearch.js +14108 -50
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +56 -56
- package/dist/esm/ArticleSeriesLandingPage.js +38 -37
- package/dist/esm/ArticleSeriesListing.js +57 -56
- package/dist/esm/Auth.js +554 -418
- package/dist/esm/AuthWrapper.js +1880 -28
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-30aeba69.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-c99c9a8d.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +80 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +27 -27
- package/dist/esm/Column3.js +52 -51
- package/dist/esm/ConferenceArticleCard.js +20 -20
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +79 -78
- package/dist/esm/DeckQueue.js +71 -70
- package/dist/esm/{Dfp-85c9513e.js → Dfp-2c43d2a0.js} +23 -22
- package/dist/esm/EventsDeck.js +88 -88
- package/dist/esm/ExternalResources.js +73 -73
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +144 -261
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +105 -105
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +69 -69
- package/dist/esm/HorizontalHero.js +23 -23
- package/dist/esm/IssueContentDeck.js +50 -50
- package/dist/esm/IssueDeck.js +47 -47
- package/dist/esm/IssueLanding.js +64 -64
- package/dist/esm/LeftNav.js +35 -34
- package/dist/esm/MasterDeck.js +66 -65
- package/dist/esm/MediaSeriesLanding.js +1073 -874
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -113
- package/dist/esm/NavNative.js +109 -109
- package/dist/esm/OncliveHero.js +16 -16
- package/dist/esm/OncliveLargeHero.js +60 -60
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +114 -1305
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +40 -39
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +39 -39
- package/dist/esm/PublicationLanding.js +75 -75
- package/dist/esm/QueueDeckExpanded.js +276 -275
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +20 -20
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +33 -32
- package/dist/esm/{SeriesSlider-05ecb544.js → SeriesSlider-5d5c08f4.js} +27 -27
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-db963c3e.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +42 -42
- package/dist/esm/TaxonomyDescription.js +50 -50
- package/dist/esm/TemplateNormal.js +68 -67
- package/dist/esm/ThumbnailCard.js +14 -14
- package/dist/esm/Ustream.js +27 -27
- package/dist/esm/VerticalHero.js +14 -14
- package/dist/esm/VideoProgramLandingPage.js +64 -64
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +43 -42
- package/dist/esm/VideoSeriesListing.js +75 -76
- package/dist/esm/View.js +243 -325
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +47 -47
- package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-eb69e8ac.js → extends-60e0e1c6.js} +8 -8
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +135 -71
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +46 -46
- package/dist/esm/{getTargeting-9cb7e014.js → getTargeting-68291ce9.js} +8 -17
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-295b6942.js → index-01d53c17.js} +759 -565
- package/dist/esm/{index-51a80699.js → index-0dbff1d1.js} +16 -11
- package/dist/esm/{index-6c12bdd5.js → index-755f2cc2.js} +10 -10
- package/dist/esm/{index-fa2ffe86.js → index-79cfd25c.js} +44 -45
- package/dist/esm/index-98ca9cec.js +100 -0
- package/dist/esm/{index-1819118a.js → index-f0fc23eb.js} +44 -490
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-c6715e80.js → index.esm-9b042655.js} +1 -1
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.js} +1 -1
- package/dist/esm/{index.esm-3fdda599.js → index.esm-f6156a57.js} +1 -1
- package/dist/esm/index.js +135 -133
- package/dist/esm/{inherits-0d8cda6e.js → inherits-a41fe93f.js} +20 -20
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-ec8c6b48.js → lodash-f97fd99a.js} +58 -10
- package/dist/esm/main-d4165069.js +961 -0
- package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-9be47857.js} +20 -20
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/dist/esm/{typeof-af9c50d8.js → typeof-a286cf0c.js} +35 -35
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-33a866b6.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/main-7b5e57b0.js +0 -898
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/main-747e7d25.js +0 -886
- package/dist/esm/stringify-4330ccdc.js +0 -15
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
|
@@ -1,1269 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator, _ as _Promise } from './asyncToGenerator-7f8f9219.js';
|
|
2
|
+
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
3
|
+
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
4
|
+
import React__default, { useRef, useState, useEffect } from 'react';
|
|
5
|
+
import { TwitterTimelineEmbed } from 'react-twitter-embed';
|
|
6
|
+
import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
|
|
7
|
+
import urlFor from './urlFor.js';
|
|
8
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
9
|
+
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
10
|
+
import Breadcrumbs from './Breadcrumbs.js';
|
|
11
|
+
import Feature from './Feature.js';
|
|
12
|
+
import { g as getSerializers } from './index-01d53c17.js';
|
|
13
|
+
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
14
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
15
|
+
import './es6.string.iterator-bc33758b.js';
|
|
16
|
+
import './_to-object-b50e61c3.js';
|
|
17
|
+
import './web.dom.iterable-4109ff68.js';
|
|
4
18
|
import './_library-528f1934.js';
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import
|
|
10
|
-
import '
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
13
|
-
import './web.dom.iterable-4439f05a.js';
|
|
14
|
-
import './typeof-af9c50d8.js';
|
|
15
|
-
import './_is-array-58e95429.js';
|
|
16
|
-
import React, { Component, useRef, useState, useEffect } from 'react';
|
|
17
|
-
import './index-1819118a.js';
|
|
18
|
-
import PropTypes from 'prop-types';
|
|
19
|
-
import 'react-bootstrap/Row';
|
|
20
|
-
import 'react-bootstrap/Col';
|
|
21
|
-
import 'react-bootstrap/Card';
|
|
22
|
-
import { m as moment } from './moment-b6f49411.js';
|
|
23
|
-
import 'next/router';
|
|
24
|
-
import './isSymbol-1981418f.js';
|
|
25
|
-
import './debounce-9207d8ee.js';
|
|
26
|
-
import './toNumber-2f7a84cd.js';
|
|
27
|
-
import './index.es-c6222053.js';
|
|
19
|
+
import './core.get-iterator-method-133dfacd.js';
|
|
20
|
+
import './_iter-detect-7e5e5ce2.js';
|
|
21
|
+
import './_object-pie-133f504a.js';
|
|
22
|
+
import './index-0dbff1d1.js';
|
|
23
|
+
import './toConsumableArray-6d9a4616.js';
|
|
24
|
+
import 'react-bootstrap';
|
|
25
|
+
import './index.es-a6137319.js';
|
|
26
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
28
27
|
import 'react-dom';
|
|
29
|
-
import './
|
|
30
|
-
import './
|
|
31
|
-
import
|
|
32
|
-
import '
|
|
33
|
-
import './
|
|
34
|
-
import './
|
|
35
|
-
import
|
|
36
|
-
import './
|
|
37
|
-
import
|
|
38
|
-
import './Segment.js';
|
|
39
|
-
import './Beam.js';
|
|
28
|
+
import './index-f0fc23eb.js';
|
|
29
|
+
import './events-6c3a7a63.js';
|
|
30
|
+
import 'prop-types';
|
|
31
|
+
import 'next/router';
|
|
32
|
+
import './index-755f2cc2.js';
|
|
33
|
+
import './main-d4165069.js';
|
|
34
|
+
import './entities-932b50cf.js';
|
|
35
|
+
import './ADInfeed-4bf3b2f9.js';
|
|
36
|
+
import 'react-bootstrap/Card';
|
|
40
37
|
import './AdSlot.js';
|
|
41
|
-
import './
|
|
42
|
-
import './
|
|
43
|
-
import './
|
|
38
|
+
import './debounce-533d9748.js';
|
|
39
|
+
import './isSymbol-a7e9aafe.js';
|
|
40
|
+
import './toNumber-5aeba6e7.js';
|
|
41
|
+
import './Beam.js';
|
|
42
|
+
import './stringify-59c8f690.js';
|
|
43
|
+
import './Segment.js';
|
|
44
|
+
import './AuthorComponent-30aeba69.js';
|
|
45
|
+
import './lodash-f97fd99a.js';
|
|
46
|
+
import './ADlgInfeed-a3377c4a.js';
|
|
44
47
|
import './getContentCategory-15dcc413.js';
|
|
45
|
-
import './
|
|
46
|
-
import 'react-bootstrap/
|
|
47
|
-
import
|
|
48
|
+
import './timeDifferenceCalc.js';
|
|
49
|
+
import 'react-bootstrap/Breadcrumb';
|
|
50
|
+
import 'react-bootstrap/Carousel';
|
|
48
51
|
import './index-c7e2ac95.js';
|
|
49
|
-
import
|
|
52
|
+
import './util-3ab476bf.js';
|
|
53
|
+
import './typeof-a286cf0c.js';
|
|
54
|
+
import './_is-array-3e99e06e.js';
|
|
55
|
+
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
50
56
|
import './GroupDeck.js';
|
|
51
|
-
import '
|
|
52
|
-
import './timeDifferenceCalc.js';
|
|
53
|
-
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
54
|
-
import './iconBase-602d52fe.js';
|
|
55
|
-
import './index.esm-3fdda599.js';
|
|
56
|
-
import { g as getSerializers } from './index-295b6942.js';
|
|
57
|
-
import './util-7700fc59.js';
|
|
58
|
-
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
57
|
+
import './SocialShare.js';
|
|
59
58
|
import 'next/head';
|
|
60
59
|
import 'react-share';
|
|
61
|
-
import './
|
|
62
|
-
import './_object-to-array-7e804fce.js';
|
|
60
|
+
import './_object-to-array-0f197f89.js';
|
|
63
61
|
import 'react-bootstrap/Pagination';
|
|
62
|
+
import 'react-bootstrap/Button';
|
|
63
|
+
import 'react-bootstrap/Row';
|
|
64
|
+
import 'react-bootstrap/Col';
|
|
65
|
+
import './inherits-a41fe93f.js';
|
|
66
|
+
import './_object-sap-f353c2a9.js';
|
|
67
|
+
import './define-property-fe54dc9f.js';
|
|
68
|
+
import './index.esm-f6156a57.js';
|
|
69
|
+
import './iconBase-ccc56b97.js';
|
|
64
70
|
import 'react-bootstrap/Figure';
|
|
65
|
-
import 'react-script-tag';
|
|
66
|
-
import 'react-bootstrap/Carousel';
|
|
67
|
-
import Feature from './Feature.js';
|
|
68
|
-
import 'react-bootstrap/Breadcrumb';
|
|
69
|
-
import Breadcrumbs from './Breadcrumbs.js';
|
|
70
|
-
|
|
71
|
-
function _classCallCheck(instance, Constructor) {
|
|
72
|
-
if (!(instance instanceof Constructor)) {
|
|
73
|
-
throw new TypeError("Cannot call a class as a function");
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
function _defineProperties(target, props) {
|
|
78
|
-
for (var i = 0; i < props.length; i++) {
|
|
79
|
-
var descriptor = props[i];
|
|
80
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
81
|
-
descriptor.configurable = true;
|
|
82
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
83
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
88
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
89
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
90
|
-
return Constructor;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function _typeof(obj) {
|
|
94
|
-
"@babel/helpers - typeof";
|
|
95
|
-
|
|
96
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
97
|
-
_typeof = function _typeof(obj) {
|
|
98
|
-
return typeof obj;
|
|
99
|
-
};
|
|
100
|
-
} else {
|
|
101
|
-
_typeof = function _typeof(obj) {
|
|
102
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
return _typeof(obj);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
function _assertThisInitialized(self) {
|
|
110
|
-
if (self === void 0) {
|
|
111
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
return self;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
function _possibleConstructorReturn(self, call) {
|
|
118
|
-
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
119
|
-
return call;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
return _assertThisInitialized(self);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
function _getPrototypeOf(o) {
|
|
126
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
127
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
128
|
-
};
|
|
129
|
-
return _getPrototypeOf(o);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
function _setPrototypeOf(o, p) {
|
|
133
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
134
|
-
o.__proto__ = p;
|
|
135
|
-
return o;
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
return _setPrototypeOf(o, p);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
function _inherits(subClass, superClass) {
|
|
142
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
143
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
147
|
-
constructor: {
|
|
148
|
-
value: subClass,
|
|
149
|
-
writable: true,
|
|
150
|
-
configurable: true
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
function _defineProperty(obj, key, value) {
|
|
157
|
-
if (key in obj) {
|
|
158
|
-
Object.defineProperty(obj, key, {
|
|
159
|
-
value: value,
|
|
160
|
-
enumerable: true,
|
|
161
|
-
configurable: true,
|
|
162
|
-
writable: true
|
|
163
|
-
});
|
|
164
|
-
} else {
|
|
165
|
-
obj[key] = value;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
return obj;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
var isRequiredIf_1 = createCommonjsModule(function (module, exports) {
|
|
172
|
-
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.
|
|
173
|
-
}};exports.default=isRequiredIf;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
var isRequiredIf = unwrapExports(isRequiredIf_1);
|
|
179
|
-
|
|
180
|
-
var exenv = createCommonjsModule(function (module) {
|
|
181
|
-
/*!
|
|
182
|
-
Copyright (c) 2015 Jed Watson.
|
|
183
|
-
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
184
|
-
All rights reserved.
|
|
185
|
-
*/
|
|
186
|
-
/* global define */
|
|
187
|
-
|
|
188
|
-
(function () {
|
|
189
|
-
|
|
190
|
-
var canUseDOM = !!(
|
|
191
|
-
typeof window !== 'undefined' &&
|
|
192
|
-
window.document &&
|
|
193
|
-
window.document.createElement
|
|
194
|
-
);
|
|
195
|
-
|
|
196
|
-
var ExecutionEnvironment = {
|
|
197
|
-
|
|
198
|
-
canUseDOM: canUseDOM,
|
|
199
|
-
|
|
200
|
-
canUseWorkers: typeof Worker !== 'undefined',
|
|
201
|
-
|
|
202
|
-
canUseEventListeners:
|
|
203
|
-
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
204
|
-
|
|
205
|
-
canUseViewport: canUseDOM && !!window.screen
|
|
206
|
-
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
if ( module.exports) {
|
|
210
|
-
module.exports = ExecutionEnvironment;
|
|
211
|
-
} else {
|
|
212
|
-
window.ExecutionEnvironment = ExecutionEnvironment;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
}());
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
var twitterWidgetJs = 'https://platform.twitter.com/widgets.js';
|
|
219
|
-
|
|
220
|
-
var TwitterTimelineEmbed =
|
|
221
|
-
/*#__PURE__*/
|
|
222
|
-
function (_Component) {
|
|
223
|
-
_inherits(TwitterTimelineEmbed, _Component);
|
|
224
|
-
|
|
225
|
-
function TwitterTimelineEmbed(props) {
|
|
226
|
-
var _this;
|
|
227
|
-
|
|
228
|
-
_classCallCheck(this, TwitterTimelineEmbed);
|
|
229
|
-
|
|
230
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTimelineEmbed).call(this, props));
|
|
231
|
-
_this.state = {
|
|
232
|
-
isLoading: true
|
|
233
|
-
};
|
|
234
|
-
return _this;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
_createClass(TwitterTimelineEmbed, [{
|
|
238
|
-
key: "buildChromeOptions",
|
|
239
|
-
value: function buildChromeOptions(options) {
|
|
240
|
-
options.chrome = '';
|
|
241
|
-
|
|
242
|
-
if (this.props.noHeader) {
|
|
243
|
-
options.chrome = options.chrome + ' noheader';
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
if (this.props.noFooter) {
|
|
247
|
-
options.chrome = options.chrome + ' nofooter';
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
if (this.props.noBorders) {
|
|
251
|
-
options.chrome = options.chrome + ' noborders';
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
if (this.props.noScrollbar) {
|
|
255
|
-
options.chrome = options.chrome + ' noscrollbar';
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
if (this.props.transparent) {
|
|
259
|
-
options.chrome = options.chrome + ' transparent';
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
return options;
|
|
263
|
-
}
|
|
264
|
-
}, {
|
|
265
|
-
key: "buildOptions",
|
|
266
|
-
value: function buildOptions() {
|
|
267
|
-
var options = Object.assign({}, this.props.options);
|
|
268
|
-
|
|
269
|
-
if (this.props.autoHeight) {
|
|
270
|
-
options.height = this.refs.embedContainer.parentNode.offsetHeight;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
options = Object.assign({}, options, {
|
|
274
|
-
theme: this.props.theme,
|
|
275
|
-
linkColor: this.props.linkColor,
|
|
276
|
-
borderColor: this.props.borderColor,
|
|
277
|
-
lang: this.props.lang
|
|
278
|
-
});
|
|
279
|
-
return options;
|
|
280
|
-
}
|
|
281
|
-
}, {
|
|
282
|
-
key: "renderWidget",
|
|
283
|
-
value: function renderWidget(options) {
|
|
284
|
-
var _this2 = this;
|
|
285
|
-
|
|
286
|
-
var onLoad = this.props.onLoad;
|
|
287
|
-
|
|
288
|
-
if (!this.isMountCanceled) {
|
|
289
|
-
window.twttr.widgets.createTimeline({
|
|
290
|
-
sourceType: this.props.sourceType,
|
|
291
|
-
screenName: this.props.screenName,
|
|
292
|
-
userId: this.props.userId,
|
|
293
|
-
ownerScreenName: this.props.ownerScreenName,
|
|
294
|
-
slug: this.props.slug,
|
|
295
|
-
id: this.props.id || this.props.widgetId,
|
|
296
|
-
url: this.props.url
|
|
297
|
-
}, this.refs.embedContainer, options).then(function (element) {
|
|
298
|
-
_this2.setState({
|
|
299
|
-
isLoading: false
|
|
300
|
-
});
|
|
301
|
-
|
|
302
|
-
if (onLoad) {
|
|
303
|
-
onLoad(element);
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}, {
|
|
309
|
-
key: "componentDidMount",
|
|
310
|
-
value: function componentDidMount() {
|
|
311
|
-
var _this3 = this;
|
|
312
|
-
|
|
313
|
-
if (exenv.canUseDOM) {
|
|
314
|
-
var script = require('scriptjs');
|
|
315
|
-
|
|
316
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
317
|
-
if (!window.twttr) {
|
|
318
|
-
console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.');
|
|
319
|
-
return;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
var options = _this3.buildOptions();
|
|
323
|
-
/** Append chrome options */
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
options = _this3.buildChromeOptions(options);
|
|
327
|
-
|
|
328
|
-
_this3.renderWidget(options);
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}, {
|
|
333
|
-
key: "componentWillUnmount",
|
|
334
|
-
value: function componentWillUnmount() {
|
|
335
|
-
this.isMountCanceled = true;
|
|
336
|
-
}
|
|
337
|
-
}, {
|
|
338
|
-
key: "render",
|
|
339
|
-
value: function render() {
|
|
340
|
-
var isLoading = this.state.isLoading;
|
|
341
|
-
var placeholder = this.props.placeholder;
|
|
342
|
-
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
343
|
-
ref: "embedContainer"
|
|
344
|
-
}));
|
|
345
|
-
}
|
|
346
|
-
}]);
|
|
347
|
-
|
|
348
|
-
return TwitterTimelineEmbed;
|
|
349
|
-
}(Component);
|
|
350
|
-
|
|
351
|
-
_defineProperty(TwitterTimelineEmbed, "propTypes", {
|
|
352
|
-
/**
|
|
353
|
-
* This can be either of profile, likes, list, collection, URL, widget
|
|
354
|
-
*/
|
|
355
|
-
sourceType: PropTypes.oneOf(['profile', 'likes', 'list', 'collection', 'url', 'widget']).isRequired,
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* username of twitter handle as String
|
|
359
|
-
*/
|
|
360
|
-
screenName: isRequiredIf(PropTypes.string, function (props) {
|
|
361
|
-
return !props.hasOwnProperty('userId') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
362
|
-
}),
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* UserId of twitter handle as number
|
|
366
|
-
*/
|
|
367
|
-
userId: isRequiredIf(PropTypes.number, function (props) {
|
|
368
|
-
return !props.hasOwnProperty('screenName') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
369
|
-
}),
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* To show list, used along with slug
|
|
373
|
-
*/
|
|
374
|
-
ownerScreenName: isRequiredIf(PropTypes.string, function (props) {
|
|
375
|
-
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
376
|
-
}),
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* To show list, used along with ownerScreenName
|
|
380
|
-
*/
|
|
381
|
-
slug: isRequiredIf(PropTypes.string, function (props) {
|
|
382
|
-
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
383
|
-
}),
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* To show list, unique list id
|
|
387
|
-
* Also used with collections, in that case its valid collection id
|
|
388
|
-
*/
|
|
389
|
-
id: isRequiredIf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]), function (props) {
|
|
390
|
-
return props.sourceType === 'list' && !props.hasOwnProperty('ownerScreenName') && !props.hasOwnProperty('slug') || props.sourceType === 'collection';
|
|
391
|
-
}),
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
* To show twitter content with url.
|
|
395
|
-
* Supported content includes profiles, likes, lists, and collections.
|
|
396
|
-
*/
|
|
397
|
-
url: isRequiredIf(PropTypes.string, function (props) {
|
|
398
|
-
return props.sourceType === 'url';
|
|
399
|
-
}),
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* To show custom widget
|
|
403
|
-
*/
|
|
404
|
-
widgetId: isRequiredIf(PropTypes.string, function (props) {
|
|
405
|
-
return props.sourceType === 'widget';
|
|
406
|
-
}),
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* Additional options to pass to twitter widget plugin
|
|
410
|
-
*/
|
|
411
|
-
options: PropTypes.object,
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
* Automatically fit into parent container height
|
|
415
|
-
*/
|
|
416
|
-
autoHeight: PropTypes.bool,
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
* With dark or light theme
|
|
420
|
-
*/
|
|
421
|
-
theme: PropTypes.oneOf(['dark', 'light']),
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* With custom link colors. Note: Only Hex colors are supported.
|
|
425
|
-
*/
|
|
426
|
-
linkColor: PropTypes.string,
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
* With custom border colors. Note: Only Hex colors are supported.
|
|
430
|
-
*/
|
|
431
|
-
borderColor: PropTypes.string,
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* Hide the header from timeline
|
|
435
|
-
*/
|
|
436
|
-
noHeader: PropTypes.bool,
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* Hide the footer from timeline
|
|
440
|
-
*/
|
|
441
|
-
noFooter: PropTypes.bool,
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* Hide the border from timeline
|
|
445
|
-
*/
|
|
446
|
-
noBorders: PropTypes.bool,
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* Hide the scrollbars
|
|
450
|
-
*/
|
|
451
|
-
noScrollbar: PropTypes.bool,
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* Enable Transparancy
|
|
455
|
-
*/
|
|
456
|
-
transparent: PropTypes.bool,
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* Custom language code. Supported codes here: https://developer.twitter.com/en/docs/twitter-for-websites/twitter-for-websites-supported-languages/overview.html
|
|
460
|
-
*/
|
|
461
|
-
lang: PropTypes.string,
|
|
462
|
-
|
|
463
|
-
/**
|
|
464
|
-
* Placeholder while tweet is loading
|
|
465
|
-
*/
|
|
466
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* Function to execute after load, return html element
|
|
470
|
-
*/
|
|
471
|
-
onLoad: PropTypes.func
|
|
472
|
-
});
|
|
473
|
-
|
|
474
|
-
var TwitterShareButton =
|
|
475
|
-
/*#__PURE__*/
|
|
476
|
-
function (_Component) {
|
|
477
|
-
_inherits(TwitterShareButton, _Component);
|
|
478
|
-
|
|
479
|
-
function TwitterShareButton(props) {
|
|
480
|
-
var _this;
|
|
481
|
-
|
|
482
|
-
_classCallCheck(this, TwitterShareButton);
|
|
483
|
-
|
|
484
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterShareButton).call(this, props));
|
|
485
|
-
_this.state = {
|
|
486
|
-
isLoading: true
|
|
487
|
-
};
|
|
488
|
-
return _this;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
_createClass(TwitterShareButton, [{
|
|
492
|
-
key: "componentDidMount",
|
|
493
|
-
value: function componentDidMount() {
|
|
494
|
-
var _this2 = this;
|
|
495
|
-
|
|
496
|
-
var onLoad = this.props.onLoad;
|
|
497
|
-
|
|
498
|
-
if (exenv.canUseDOM) {
|
|
499
|
-
var script = require('scriptjs');
|
|
500
|
-
|
|
501
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
502
|
-
if (!window.twttr) {
|
|
503
|
-
console.error('Failure to load window.twttr in TwitterShareButton, aborting load.');
|
|
504
|
-
return;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
if (!_this2.isMountCanceled) {
|
|
508
|
-
window.twttr.widgets.createShareButton(_this2.props.url, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
509
|
-
_this2.setState({
|
|
510
|
-
isLoading: false
|
|
511
|
-
});
|
|
512
|
-
|
|
513
|
-
if (onLoad) {
|
|
514
|
-
onLoad(element);
|
|
515
|
-
}
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
});
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
}, {
|
|
522
|
-
key: "componentWillUnmount",
|
|
523
|
-
value: function componentWillUnmount() {
|
|
524
|
-
this.isMountCanceled = true;
|
|
525
|
-
}
|
|
526
|
-
}, {
|
|
527
|
-
key: "render",
|
|
528
|
-
value: function render() {
|
|
529
|
-
var isLoading = this.state.isLoading;
|
|
530
|
-
var placeholder = this.props.placeholder;
|
|
531
|
-
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
532
|
-
ref: "embedContainer"
|
|
533
|
-
}));
|
|
534
|
-
}
|
|
535
|
-
}]);
|
|
536
|
-
|
|
537
|
-
return TwitterShareButton;
|
|
538
|
-
}(Component);
|
|
539
|
-
|
|
540
|
-
_defineProperty(TwitterShareButton, "propTypes", {
|
|
541
|
-
/**
|
|
542
|
-
* Url for sharing
|
|
543
|
-
*/
|
|
544
|
-
url: PropTypes.string.isRequired,
|
|
545
|
-
|
|
546
|
-
/**
|
|
547
|
-
* Additional options for overriding config. Details at : https://dev.twitter.com/web/tweet-button/parameters
|
|
548
|
-
*/
|
|
549
|
-
options: PropTypes.object,
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
* Placeholder while tweet is loading
|
|
553
|
-
*/
|
|
554
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* Function to execute after load, return html element
|
|
558
|
-
*/
|
|
559
|
-
onLoad: PropTypes.func
|
|
560
|
-
});
|
|
561
|
-
|
|
562
|
-
var TwitterFollowButton =
|
|
563
|
-
/*#__PURE__*/
|
|
564
|
-
function (_Component) {
|
|
565
|
-
_inherits(TwitterFollowButton, _Component);
|
|
566
|
-
|
|
567
|
-
function TwitterFollowButton(props) {
|
|
568
|
-
var _this;
|
|
569
|
-
|
|
570
|
-
_classCallCheck(this, TwitterFollowButton);
|
|
571
|
-
|
|
572
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterFollowButton).call(this, props));
|
|
573
|
-
_this.state = {
|
|
574
|
-
isLoading: true
|
|
575
|
-
};
|
|
576
|
-
return _this;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
_createClass(TwitterFollowButton, [{
|
|
580
|
-
key: "componentDidMount",
|
|
581
|
-
value: function componentDidMount() {
|
|
582
|
-
var _this2 = this;
|
|
583
|
-
|
|
584
|
-
var onLoad = this.props.onLoad;
|
|
585
|
-
|
|
586
|
-
if (exenv.canUseDOM) {
|
|
587
|
-
var script = require('scriptjs');
|
|
588
|
-
|
|
589
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
590
|
-
if (!window.twttr) {
|
|
591
|
-
console.error('Failure to load window.twttr in TwitterFollowButton, aborting load.');
|
|
592
|
-
return;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
if (!_this2.isMountCanceled) {
|
|
596
|
-
window.twttr.widgets.createFollowButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
597
|
-
_this2.setState({
|
|
598
|
-
isLoading: false
|
|
599
|
-
});
|
|
600
|
-
|
|
601
|
-
if (onLoad) {
|
|
602
|
-
onLoad(element);
|
|
603
|
-
}
|
|
604
|
-
});
|
|
605
|
-
}
|
|
606
|
-
});
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
}, {
|
|
610
|
-
key: "componentWillUnmount",
|
|
611
|
-
value: function componentWillUnmount() {
|
|
612
|
-
this.isMountCanceled = true;
|
|
613
|
-
}
|
|
614
|
-
}, {
|
|
615
|
-
key: "render",
|
|
616
|
-
value: function render() {
|
|
617
|
-
var isLoading = this.state.isLoading;
|
|
618
|
-
var placeholder = this.props.placeholder;
|
|
619
|
-
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
620
|
-
ref: "embedContainer"
|
|
621
|
-
}));
|
|
622
|
-
}
|
|
623
|
-
}]);
|
|
624
|
-
|
|
625
|
-
return TwitterFollowButton;
|
|
626
|
-
}(Component);
|
|
627
|
-
|
|
628
|
-
_defineProperty(TwitterFollowButton, "propTypes", {
|
|
629
|
-
/**
|
|
630
|
-
* Username of twitter user which will be followed on click
|
|
631
|
-
*/
|
|
632
|
-
screenName: PropTypes.string.isRequired,
|
|
633
|
-
|
|
634
|
-
/**
|
|
635
|
-
* Additional options to be added to the button
|
|
636
|
-
*/
|
|
637
|
-
options: PropTypes.object,
|
|
638
|
-
|
|
639
|
-
/**
|
|
640
|
-
* Placeholder while tweet is loading
|
|
641
|
-
*/
|
|
642
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
643
|
-
|
|
644
|
-
/**
|
|
645
|
-
* Function to execute after load, return html element
|
|
646
|
-
*/
|
|
647
|
-
onLoad: PropTypes.func
|
|
648
|
-
});
|
|
649
|
-
|
|
650
|
-
var TwitterHashtagButton =
|
|
651
|
-
/*#__PURE__*/
|
|
652
|
-
function (_Component) {
|
|
653
|
-
_inherits(TwitterHashtagButton, _Component);
|
|
654
|
-
|
|
655
|
-
function TwitterHashtagButton(props) {
|
|
656
|
-
var _this;
|
|
657
|
-
|
|
658
|
-
_classCallCheck(this, TwitterHashtagButton);
|
|
659
|
-
|
|
660
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterHashtagButton).call(this, props));
|
|
661
|
-
_this.state = {
|
|
662
|
-
isLoading: true
|
|
663
|
-
};
|
|
664
|
-
return _this;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
_createClass(TwitterHashtagButton, [{
|
|
668
|
-
key: "componentDidMount",
|
|
669
|
-
value: function componentDidMount() {
|
|
670
|
-
var _this2 = this;
|
|
671
|
-
|
|
672
|
-
var onLoad = this.props.onLoad;
|
|
673
|
-
|
|
674
|
-
if (exenv.canUseDOM) {
|
|
675
|
-
var script = require('scriptjs');
|
|
676
|
-
|
|
677
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
678
|
-
if (!window.twttr) {
|
|
679
|
-
console.error('Failure to load window.twttr in TwitterHashtagButton, aborting load.');
|
|
680
|
-
return;
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
if (!_this2.isMountCanceled) {
|
|
684
|
-
window.twttr.widgets.createHashtagButton(_this2.props.tag, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
685
|
-
_this2.setState({
|
|
686
|
-
isLoading: false
|
|
687
|
-
});
|
|
688
|
-
|
|
689
|
-
if (onLoad) {
|
|
690
|
-
onLoad(element);
|
|
691
|
-
}
|
|
692
|
-
});
|
|
693
|
-
}
|
|
694
|
-
});
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
}, {
|
|
698
|
-
key: "componentWillUnmount",
|
|
699
|
-
value: function componentWillUnmount() {
|
|
700
|
-
this.isMountCanceled = true;
|
|
701
|
-
}
|
|
702
|
-
}, {
|
|
703
|
-
key: "render",
|
|
704
|
-
value: function render() {
|
|
705
|
-
var isLoading = this.state.isLoading;
|
|
706
|
-
var placeholder = this.props.placeholder;
|
|
707
|
-
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
708
|
-
ref: "embedContainer"
|
|
709
|
-
}));
|
|
710
|
-
}
|
|
711
|
-
}]);
|
|
712
|
-
|
|
713
|
-
return TwitterHashtagButton;
|
|
714
|
-
}(Component);
|
|
715
|
-
|
|
716
|
-
_defineProperty(TwitterHashtagButton, "propTypes", {
|
|
717
|
-
/**
|
|
718
|
-
* Tag name for hashtag button
|
|
719
|
-
*/
|
|
720
|
-
tag: PropTypes.string.isRequired,
|
|
721
|
-
|
|
722
|
-
/**
|
|
723
|
-
* Additional options to be added to the button
|
|
724
|
-
*/
|
|
725
|
-
options: PropTypes.object,
|
|
726
|
-
|
|
727
|
-
/**
|
|
728
|
-
* Placeholder while tweet is loading
|
|
729
|
-
*/
|
|
730
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* Function to execute after load, return html element
|
|
734
|
-
*/
|
|
735
|
-
onLoad: PropTypes.func
|
|
736
|
-
});
|
|
737
|
-
|
|
738
|
-
var TwitterMentionButton =
|
|
739
|
-
/*#__PURE__*/
|
|
740
|
-
function (_Component) {
|
|
741
|
-
_inherits(TwitterMentionButton, _Component);
|
|
742
|
-
|
|
743
|
-
function TwitterMentionButton(props) {
|
|
744
|
-
var _this;
|
|
745
|
-
|
|
746
|
-
_classCallCheck(this, TwitterMentionButton);
|
|
747
|
-
|
|
748
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMentionButton).call(this, props));
|
|
749
|
-
_this.state = {
|
|
750
|
-
isLoading: true
|
|
751
|
-
};
|
|
752
|
-
return _this;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
_createClass(TwitterMentionButton, [{
|
|
756
|
-
key: "componentDidMount",
|
|
757
|
-
value: function componentDidMount() {
|
|
758
|
-
var _this2 = this;
|
|
759
|
-
|
|
760
|
-
var onLoad = this.props.onLoad;
|
|
761
|
-
|
|
762
|
-
if (exenv.canUseDOM) {
|
|
763
|
-
var script = require('scriptjs');
|
|
764
|
-
|
|
765
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
766
|
-
if (!window.twttr) {
|
|
767
|
-
console.error('Failure to load window.twttr in TwitterMentionButton, aborting load.');
|
|
768
|
-
return;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
if (!_this2.isMountCanceled) {
|
|
772
|
-
window.twttr.widgets.createMentionButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
773
|
-
_this2.setState({
|
|
774
|
-
isLoading: false
|
|
775
|
-
});
|
|
776
|
-
|
|
777
|
-
if (onLoad) {
|
|
778
|
-
onLoad(element);
|
|
779
|
-
}
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
});
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
}, {
|
|
786
|
-
key: "componentWillUnmount",
|
|
787
|
-
value: function componentWillUnmount() {
|
|
788
|
-
this.isMountCanceled = true;
|
|
789
|
-
}
|
|
790
|
-
}, {
|
|
791
|
-
key: "render",
|
|
792
|
-
value: function render() {
|
|
793
|
-
var isLoading = this.state.isLoading;
|
|
794
|
-
var placeholder = this.props.placeholder;
|
|
795
|
-
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
796
|
-
ref: "embedContainer"
|
|
797
|
-
}));
|
|
798
|
-
}
|
|
799
|
-
}]);
|
|
800
|
-
|
|
801
|
-
return TwitterMentionButton;
|
|
802
|
-
}(Component);
|
|
803
|
-
|
|
804
|
-
_defineProperty(TwitterMentionButton, "propTypes", {
|
|
805
|
-
/**
|
|
806
|
-
* Username to which you will need to tweet
|
|
807
|
-
*/
|
|
808
|
-
screenName: PropTypes.string.isRequired,
|
|
809
|
-
|
|
810
|
-
/**
|
|
811
|
-
* Additional options for overriding config.
|
|
812
|
-
*/
|
|
813
|
-
options: PropTypes.object,
|
|
814
|
-
|
|
815
|
-
/**
|
|
816
|
-
* Placeholder while tweet is loading
|
|
817
|
-
*/
|
|
818
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
819
|
-
|
|
820
|
-
/**
|
|
821
|
-
* Function to execute after load, return html element
|
|
822
|
-
*/
|
|
823
|
-
onLoad: PropTypes.func
|
|
824
|
-
});
|
|
825
|
-
|
|
826
|
-
var TwitterTweetEmbed =
|
|
827
|
-
/*#__PURE__*/
|
|
828
|
-
function (_Component) {
|
|
829
|
-
_inherits(TwitterTweetEmbed, _Component);
|
|
830
|
-
|
|
831
|
-
function TwitterTweetEmbed(props) {
|
|
832
|
-
var _this;
|
|
833
|
-
|
|
834
|
-
_classCallCheck(this, TwitterTweetEmbed);
|
|
835
|
-
|
|
836
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTweetEmbed).call(this, props));
|
|
837
|
-
_this.state = {
|
|
838
|
-
isLoading: true
|
|
839
|
-
};
|
|
840
|
-
return _this;
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
_createClass(TwitterTweetEmbed, [{
|
|
844
|
-
key: "renderWidget",
|
|
845
|
-
value: function renderWidget() {
|
|
846
|
-
var _this2 = this;
|
|
847
|
-
|
|
848
|
-
var onLoad = this.props.onLoad;
|
|
849
|
-
|
|
850
|
-
if (!window.twttr) {
|
|
851
|
-
console.error('Failure to load window.twttr in TwitterTweetEmbed, aborting load.');
|
|
852
|
-
return;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
if (!this.isMountCanceled) {
|
|
856
|
-
window.twttr.widgets.createTweet(this.props.tweetId, this.refs.embedContainer, this.props.options).then(function (element) {
|
|
857
|
-
_this2.setState({
|
|
858
|
-
isLoading: false
|
|
859
|
-
});
|
|
860
|
-
|
|
861
|
-
if (onLoad) {
|
|
862
|
-
onLoad(element);
|
|
863
|
-
}
|
|
864
|
-
});
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
}, {
|
|
868
|
-
key: "componentDidMount",
|
|
869
|
-
value: function componentDidMount() {
|
|
870
|
-
var _this3 = this;
|
|
871
|
-
|
|
872
|
-
if (exenv.canUseDOM) {
|
|
873
|
-
var script = require('scriptjs');
|
|
874
|
-
|
|
875
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
876
|
-
_this3.renderWidget();
|
|
877
|
-
});
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
}, {
|
|
881
|
-
key: "componentWillUnmount",
|
|
882
|
-
value: function componentWillUnmount() {
|
|
883
|
-
this.isMountCanceled = true;
|
|
884
|
-
}
|
|
885
|
-
}, {
|
|
886
|
-
key: "render",
|
|
887
|
-
value: function render() {
|
|
888
|
-
var isLoading = this.state.isLoading;
|
|
889
|
-
var placeholder = this.props.placeholder;
|
|
890
|
-
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
891
|
-
ref: "embedContainer"
|
|
892
|
-
}));
|
|
893
|
-
}
|
|
894
|
-
}]);
|
|
895
|
-
|
|
896
|
-
return TwitterTweetEmbed;
|
|
897
|
-
}(Component);
|
|
898
|
-
|
|
899
|
-
_defineProperty(TwitterTweetEmbed, "propTypes", {
|
|
900
|
-
/**
|
|
901
|
-
* Tweet id that needs to be shown
|
|
902
|
-
*/
|
|
903
|
-
tweetId: PropTypes.string.isRequired,
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* Additional options to pass to twitter widget plugin
|
|
907
|
-
*/
|
|
908
|
-
options: PropTypes.object,
|
|
909
|
-
|
|
910
|
-
/**
|
|
911
|
-
* Placeholder while tweet is loading
|
|
912
|
-
*/
|
|
913
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
914
|
-
|
|
915
|
-
/**
|
|
916
|
-
* Function to execute after load, return html element
|
|
917
|
-
*/
|
|
918
|
-
onLoad: PropTypes.func
|
|
919
|
-
});
|
|
920
|
-
|
|
921
|
-
var TwitterMomentShare =
|
|
922
|
-
/*#__PURE__*/
|
|
923
|
-
function (_Component) {
|
|
924
|
-
_inherits(TwitterMomentShare, _Component);
|
|
925
|
-
|
|
926
|
-
function TwitterMomentShare(props) {
|
|
927
|
-
var _this;
|
|
928
|
-
|
|
929
|
-
_classCallCheck(this, TwitterMomentShare);
|
|
930
|
-
|
|
931
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMomentShare).call(this, props));
|
|
932
|
-
_this.state = {
|
|
933
|
-
isLoading: true
|
|
934
|
-
};
|
|
935
|
-
return _this;
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
_createClass(TwitterMomentShare, [{
|
|
939
|
-
key: "componentDidMount",
|
|
940
|
-
value: function componentDidMount() {
|
|
941
|
-
var _this2 = this;
|
|
942
|
-
|
|
943
|
-
var onLoad = this.props.onLoad;
|
|
944
|
-
|
|
945
|
-
if (exenv.canUseDOM) {
|
|
946
|
-
var script = require('scriptjs');
|
|
947
|
-
|
|
948
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
949
|
-
if (!window.twttr) {
|
|
950
|
-
console.error('Failure to load window.twttr in TwitterMomentShare, aborting load.');
|
|
951
|
-
return;
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
if (!_this2.isMountCanceled) {
|
|
955
|
-
window.twttr.widgets.createMoment(_this2.props.momentId, _this2.refs.shareMoment, _this2.props.options).then(function (element) {
|
|
956
|
-
_this2.setState({
|
|
957
|
-
isLoading: false
|
|
958
|
-
});
|
|
959
|
-
|
|
960
|
-
if (onLoad) {
|
|
961
|
-
onLoad(element);
|
|
962
|
-
}
|
|
963
|
-
});
|
|
964
|
-
}
|
|
965
|
-
});
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
}, {
|
|
969
|
-
key: "componentWillUnmount",
|
|
970
|
-
value: function componentWillUnmount() {
|
|
971
|
-
this.isMountCanceled = true;
|
|
972
|
-
}
|
|
973
|
-
}, {
|
|
974
|
-
key: "render",
|
|
975
|
-
value: function render() {
|
|
976
|
-
var isLoading = this.state.isLoading;
|
|
977
|
-
var placeholder = this.props.placeholder;
|
|
978
|
-
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
979
|
-
ref: "shareMoment"
|
|
980
|
-
}));
|
|
981
|
-
}
|
|
982
|
-
}]);
|
|
983
|
-
|
|
984
|
-
return TwitterMomentShare;
|
|
985
|
-
}(Component);
|
|
986
|
-
|
|
987
|
-
_defineProperty(TwitterMomentShare, "propTypes", {
|
|
988
|
-
/**
|
|
989
|
-
* id of Twitter moment to show
|
|
990
|
-
*/
|
|
991
|
-
momentId: PropTypes.string.isRequired,
|
|
992
|
-
|
|
993
|
-
/**
|
|
994
|
-
* Additional options for overriding config.
|
|
995
|
-
*/
|
|
996
|
-
options: PropTypes.object,
|
|
997
|
-
|
|
998
|
-
/**
|
|
999
|
-
* Placeholder while tweet is loading
|
|
1000
|
-
*/
|
|
1001
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1002
|
-
|
|
1003
|
-
/**
|
|
1004
|
-
* Function to execute after load, return html element
|
|
1005
|
-
*/
|
|
1006
|
-
onLoad: PropTypes.func
|
|
1007
|
-
});
|
|
1008
|
-
|
|
1009
|
-
var TwitterDMButton =
|
|
1010
|
-
/*#__PURE__*/
|
|
1011
|
-
function (_Component) {
|
|
1012
|
-
_inherits(TwitterDMButton, _Component);
|
|
1013
|
-
|
|
1014
|
-
function TwitterDMButton(props) {
|
|
1015
|
-
var _this;
|
|
1016
|
-
|
|
1017
|
-
_classCallCheck(this, TwitterDMButton);
|
|
1018
|
-
|
|
1019
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterDMButton).call(this, props));
|
|
1020
|
-
_this.state = {
|
|
1021
|
-
isLoading: true
|
|
1022
|
-
};
|
|
1023
|
-
return _this;
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
_createClass(TwitterDMButton, [{
|
|
1027
|
-
key: "componentDidMount",
|
|
1028
|
-
value: function componentDidMount() {
|
|
1029
|
-
var _this2 = this;
|
|
1030
|
-
|
|
1031
|
-
var onLoad = this.props.onLoad;
|
|
1032
|
-
|
|
1033
|
-
if (exenv.canUseDOM) {
|
|
1034
|
-
var script = require('scriptjs');
|
|
1035
|
-
|
|
1036
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1037
|
-
if (!window.twttr) {
|
|
1038
|
-
console.error('Failure to load window.twttr in TwitterDMButton, aborting load.');
|
|
1039
|
-
return;
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
if (!_this2.isMountCanceled) {
|
|
1043
|
-
window.twttr.widgets.createDMButton(_this2.props.id, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1044
|
-
_this2.setState({
|
|
1045
|
-
isLoading: false
|
|
1046
|
-
});
|
|
1047
|
-
|
|
1048
|
-
if (onLoad) {
|
|
1049
|
-
onLoad(element);
|
|
1050
|
-
}
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
});
|
|
1054
|
-
}
|
|
1055
|
-
}
|
|
1056
|
-
}, {
|
|
1057
|
-
key: "componentWillUnmount",
|
|
1058
|
-
value: function componentWillUnmount() {
|
|
1059
|
-
this.isMountCanceled = true;
|
|
1060
|
-
}
|
|
1061
|
-
}, {
|
|
1062
|
-
key: "render",
|
|
1063
|
-
value: function render() {
|
|
1064
|
-
var isLoading = this.state.isLoading;
|
|
1065
|
-
var placeholder = this.props.placeholder;
|
|
1066
|
-
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
1067
|
-
ref: "embedContainer"
|
|
1068
|
-
}));
|
|
1069
|
-
}
|
|
1070
|
-
}]);
|
|
1071
|
-
|
|
1072
|
-
return TwitterDMButton;
|
|
1073
|
-
}(Component);
|
|
1074
|
-
|
|
1075
|
-
_defineProperty(TwitterDMButton, "propTypes", {
|
|
1076
|
-
/**
|
|
1077
|
-
* Twitter user id for DM button
|
|
1078
|
-
*/
|
|
1079
|
-
id: PropTypes.number.isRequired,
|
|
1080
|
-
|
|
1081
|
-
/**
|
|
1082
|
-
* Additional options to be added to the button
|
|
1083
|
-
*/
|
|
1084
|
-
options: PropTypes.object,
|
|
1085
|
-
|
|
1086
|
-
/**
|
|
1087
|
-
* Placeholder while tweet is loading
|
|
1088
|
-
*/
|
|
1089
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1090
|
-
|
|
1091
|
-
/**
|
|
1092
|
-
* Function to execute after load, return html element
|
|
1093
|
-
*/
|
|
1094
|
-
onLoad: PropTypes.func
|
|
1095
|
-
});
|
|
1096
|
-
|
|
1097
|
-
var TwitterVideoEmbed =
|
|
1098
|
-
/*#__PURE__*/
|
|
1099
|
-
function (_Component) {
|
|
1100
|
-
_inherits(TwitterVideoEmbed, _Component);
|
|
1101
|
-
|
|
1102
|
-
function TwitterVideoEmbed(props) {
|
|
1103
|
-
var _this;
|
|
1104
|
-
|
|
1105
|
-
_classCallCheck(this, TwitterVideoEmbed);
|
|
1106
|
-
|
|
1107
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterVideoEmbed).call(this, props));
|
|
1108
|
-
_this.state = {
|
|
1109
|
-
isLoading: true
|
|
1110
|
-
};
|
|
1111
|
-
return _this;
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
_createClass(TwitterVideoEmbed, [{
|
|
1115
|
-
key: "componentDidMount",
|
|
1116
|
-
value: function componentDidMount() {
|
|
1117
|
-
var _this2 = this;
|
|
1118
|
-
|
|
1119
|
-
var onLoad = this.props.onLoad;
|
|
1120
|
-
|
|
1121
|
-
if (exenv.canUseDOM) {
|
|
1122
|
-
var script = require('scriptjs');
|
|
1123
|
-
|
|
1124
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1125
|
-
if (!window.twttr) {
|
|
1126
|
-
console.error('Failure to load window.twttr in TwitterVideoEmbed, aborting load.');
|
|
1127
|
-
return;
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
if (!_this2.isMountCanceled) {
|
|
1131
|
-
window.twttr.widgets.createVideo(_this2.props.id, _this2.refs.embedContainer).then(function (element) {
|
|
1132
|
-
_this2.setState({
|
|
1133
|
-
isLoading: false
|
|
1134
|
-
});
|
|
1135
|
-
|
|
1136
|
-
if (onLoad) {
|
|
1137
|
-
onLoad(element);
|
|
1138
|
-
}
|
|
1139
|
-
});
|
|
1140
|
-
}
|
|
1141
|
-
});
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
}, {
|
|
1145
|
-
key: "componentWillUnmount",
|
|
1146
|
-
value: function componentWillUnmount() {
|
|
1147
|
-
this.isMountCanceled = true;
|
|
1148
|
-
}
|
|
1149
|
-
}, {
|
|
1150
|
-
key: "render",
|
|
1151
|
-
value: function render() {
|
|
1152
|
-
var isLoading = this.state.isLoading;
|
|
1153
|
-
var placeholder = this.props.placeholder;
|
|
1154
|
-
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
1155
|
-
ref: "embedContainer"
|
|
1156
|
-
}));
|
|
1157
|
-
}
|
|
1158
|
-
}]);
|
|
1159
|
-
|
|
1160
|
-
return TwitterVideoEmbed;
|
|
1161
|
-
}(Component);
|
|
1162
|
-
|
|
1163
|
-
_defineProperty(TwitterVideoEmbed, "propTypes", {
|
|
1164
|
-
/**
|
|
1165
|
-
* Id of video tweet.
|
|
1166
|
-
*/
|
|
1167
|
-
id: PropTypes.string.isRequired,
|
|
1168
|
-
|
|
1169
|
-
/**
|
|
1170
|
-
* Placeholder while tweet is loading
|
|
1171
|
-
*/
|
|
1172
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1173
|
-
|
|
1174
|
-
/**
|
|
1175
|
-
* Function to execute after load, return html element
|
|
1176
|
-
*/
|
|
1177
|
-
onLoad: PropTypes.func
|
|
1178
|
-
});
|
|
1179
|
-
|
|
1180
|
-
var TwitterOnAirButton =
|
|
1181
|
-
/*#__PURE__*/
|
|
1182
|
-
function (_Component) {
|
|
1183
|
-
_inherits(TwitterOnAirButton, _Component);
|
|
1184
|
-
|
|
1185
|
-
function TwitterOnAirButton(props) {
|
|
1186
|
-
var _this;
|
|
1187
|
-
|
|
1188
|
-
_classCallCheck(this, TwitterOnAirButton);
|
|
1189
|
-
|
|
1190
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterOnAirButton).call(this, props));
|
|
1191
|
-
_this.state = {
|
|
1192
|
-
isLoading: true
|
|
1193
|
-
};
|
|
1194
|
-
return _this;
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
_createClass(TwitterOnAirButton, [{
|
|
1198
|
-
key: "componentDidMount",
|
|
1199
|
-
value: function componentDidMount() {
|
|
1200
|
-
var _this2 = this;
|
|
1201
|
-
|
|
1202
|
-
var onLoad = this.props.onLoad;
|
|
1203
|
-
|
|
1204
|
-
if (exenv.canUseDOM) {
|
|
1205
|
-
var script = require('scriptjs');
|
|
1206
|
-
|
|
1207
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1208
|
-
if (!window.twttr) {
|
|
1209
|
-
console.error('Failure to load window.twttr in TwitterOnAirButton, aborting load.');
|
|
1210
|
-
return;
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
if (!_this2.isMountCanceled) {
|
|
1214
|
-
window.twttr.widgets.createPeriscopeOnAirButton(_this2.props.username, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1215
|
-
_this2.setState({
|
|
1216
|
-
isLoading: false
|
|
1217
|
-
});
|
|
1218
|
-
|
|
1219
|
-
if (onLoad) {
|
|
1220
|
-
onLoad(element);
|
|
1221
|
-
}
|
|
1222
|
-
});
|
|
1223
|
-
}
|
|
1224
|
-
});
|
|
1225
|
-
}
|
|
1226
|
-
}
|
|
1227
|
-
}, {
|
|
1228
|
-
key: "componentWillUnmount",
|
|
1229
|
-
value: function componentWillUnmount() {
|
|
1230
|
-
this.isMountCanceled = true;
|
|
1231
|
-
}
|
|
1232
|
-
}, {
|
|
1233
|
-
key: "render",
|
|
1234
|
-
value: function render() {
|
|
1235
|
-
var isLoading = this.state.isLoading;
|
|
1236
|
-
var placeholder = this.props.placeholder;
|
|
1237
|
-
return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
|
|
1238
|
-
ref: "embedContainer"
|
|
1239
|
-
}));
|
|
1240
|
-
}
|
|
1241
|
-
}]);
|
|
1242
|
-
|
|
1243
|
-
return TwitterOnAirButton;
|
|
1244
|
-
}(Component);
|
|
1245
|
-
|
|
1246
|
-
_defineProperty(TwitterOnAirButton, "propTypes", {
|
|
1247
|
-
/**
|
|
1248
|
-
* Username for which you require periscope on air button
|
|
1249
|
-
*/
|
|
1250
|
-
username: PropTypes.string.isRequired,
|
|
1251
|
-
|
|
1252
|
-
/**
|
|
1253
|
-
* Additional options for overriding config.
|
|
1254
|
-
*/
|
|
1255
|
-
options: PropTypes.object,
|
|
1256
|
-
|
|
1257
|
-
/**
|
|
1258
|
-
* Placeholder while tweet is loading
|
|
1259
|
-
*/
|
|
1260
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1261
|
-
|
|
1262
|
-
/**
|
|
1263
|
-
* Function to execute after load, return html element
|
|
1264
|
-
*/
|
|
1265
|
-
onLoad: PropTypes.func
|
|
1266
|
-
});
|
|
1267
71
|
|
|
1268
72
|
var ImageSlider = function ImageSlider(props) {
|
|
1269
73
|
var innerSlider = useRef(null);
|
|
@@ -1325,7 +129,11 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
1325
129
|
var thumbSize = void 0;
|
|
1326
130
|
var scrollerVisible = false;
|
|
1327
131
|
if (window.innerWidth > 1399) {
|
|
1328
|
-
|
|
132
|
+
if (props.data.slides && props.data.slides.length < 3) {
|
|
133
|
+
thumbSize = Math.floor(viewableWindow.current.clientWidth / 2 - 40);
|
|
134
|
+
} else {
|
|
135
|
+
thumbSize = Math.floor(viewableWindow.current.clientWidth / 3 - 40);
|
|
136
|
+
}
|
|
1329
137
|
if (props.data.slides.length > 3) {
|
|
1330
138
|
scrollerVisible = true;
|
|
1331
139
|
}
|
|
@@ -1342,6 +150,7 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
1342
150
|
scrollerVisible = true;
|
|
1343
151
|
}
|
|
1344
152
|
}
|
|
153
|
+
console.log('i am client width', viewableWindow.current.clientWidth);
|
|
1345
154
|
if (thumbSize !== tileSize) {
|
|
1346
155
|
setTileSize(thumbSize);
|
|
1347
156
|
setScrollPosition(0);
|
|
@@ -1368,61 +177,61 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
1368
177
|
}, []);
|
|
1369
178
|
|
|
1370
179
|
var variant = 'black';
|
|
1371
|
-
return
|
|
1372
|
-
|
|
180
|
+
return React__default.createElement(
|
|
181
|
+
React__default.Fragment,
|
|
1373
182
|
null,
|
|
1374
|
-
|
|
183
|
+
React__default.createElement(
|
|
1375
184
|
'div',
|
|
1376
185
|
{ ref: viewableWindow, id: 'vid-slider', className: 'col' },
|
|
1377
|
-
|
|
186
|
+
React__default.createElement(
|
|
1378
187
|
'div',
|
|
1379
188
|
{ className: 'row' },
|
|
1380
|
-
showScroller &&
|
|
189
|
+
showScroller && React__default.createElement(
|
|
1381
190
|
'div',
|
|
1382
191
|
{ onClick: function onClick(e) {
|
|
1383
192
|
return scrollSlider(e, 'prev');
|
|
1384
193
|
}, className: 'tile__slider-prev', style: { color: variant } },
|
|
1385
|
-
|
|
194
|
+
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow left' })
|
|
1386
195
|
),
|
|
1387
|
-
showScroller &&
|
|
196
|
+
showScroller && React__default.createElement(
|
|
1388
197
|
'div',
|
|
1389
198
|
{ onClick: function onClick(e) {
|
|
1390
199
|
return scrollSlider(e, 'next');
|
|
1391
200
|
}, className: 'tile__slider-next', style: { color: variant } },
|
|
1392
|
-
|
|
201
|
+
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow right' })
|
|
1393
202
|
),
|
|
1394
|
-
|
|
203
|
+
React__default.createElement(
|
|
1395
204
|
'div',
|
|
1396
205
|
{ ref: innerSlider, className: 'row__inner' },
|
|
1397
206
|
props.data.slides.map(function (img, index) {
|
|
1398
207
|
var thumbnail = urlFor({ client: client, source: img.slideshowImage, imageWidth: 250 });
|
|
1399
208
|
if (!img.slideshowImage.link) {
|
|
1400
|
-
return
|
|
209
|
+
return React__default.createElement(
|
|
1401
210
|
'div',
|
|
1402
211
|
{ ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
|
|
1403
|
-
|
|
212
|
+
React__default.createElement(
|
|
1404
213
|
'div',
|
|
1405
214
|
{ className: 'tile__media' },
|
|
1406
|
-
|
|
215
|
+
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
1407
216
|
),
|
|
1408
|
-
|
|
217
|
+
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
1409
218
|
);
|
|
1410
219
|
} else {
|
|
1411
|
-
return
|
|
220
|
+
return React__default.createElement(
|
|
1412
221
|
'a',
|
|
1413
222
|
{ ref: tile, key: index, href: img.slideshowImage.link, target: img.slideshowImage.blank ? '_target' : '_self', className: 'tile', style: { width: tileSize + 'px' } },
|
|
1414
|
-
|
|
223
|
+
React__default.createElement(
|
|
1415
224
|
'div',
|
|
1416
225
|
{ className: 'tile__media' },
|
|
1417
|
-
|
|
226
|
+
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
1418
227
|
),
|
|
1419
|
-
|
|
228
|
+
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
1420
229
|
);
|
|
1421
230
|
}
|
|
1422
231
|
})
|
|
1423
232
|
)
|
|
1424
233
|
),
|
|
1425
|
-
|
|
234
|
+
React__default.createElement(
|
|
1426
235
|
'style',
|
|
1427
236
|
{ jsx: 'true' },
|
|
1428
237
|
'\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: 805px;\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: 1rem;\n }\n #vid-slider .tile__slider-next {\n right: -0.5rem;\n padding: 1rem;\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 '
|
|
@@ -1445,95 +254,95 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
1445
254
|
pageview = _ref.pageview,
|
|
1446
255
|
page = _ref.page;
|
|
1447
256
|
|
|
1448
|
-
return
|
|
1449
|
-
|
|
257
|
+
return React__default.createElement(
|
|
258
|
+
React__default.Fragment,
|
|
1450
259
|
null,
|
|
1451
|
-
|
|
1452
|
-
|
|
260
|
+
React__default.createElement(Breadcrumbs, null),
|
|
261
|
+
React__default.createElement(
|
|
1453
262
|
'div',
|
|
1454
263
|
{ className: 'partners-page' },
|
|
1455
|
-
|
|
264
|
+
React__default.createElement(
|
|
1456
265
|
'div',
|
|
1457
266
|
{ className: 'my-5 partner-logo-wrap', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' } },
|
|
1458
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.link ?
|
|
267
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.link ? React__default.createElement(
|
|
1459
268
|
'a',
|
|
1460
269
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%' }, href: partnerDetails.thumbnail.link, target: partnerDetails.thumbnail.blank ? '_blank' : '' },
|
|
1461
|
-
|
|
270
|
+
React__default.createElement(
|
|
1462
271
|
'figure',
|
|
1463
272
|
{ style: { width: '100%', textAlign: 'center' } },
|
|
1464
|
-
|
|
273
|
+
React__default.createElement('img', {
|
|
1465
274
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
1466
275
|
style: { maxWidth: '100%' },
|
|
1467
276
|
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : '' }),
|
|
1468
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption &&
|
|
277
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default.createElement(
|
|
1469
278
|
'figcaption',
|
|
1470
279
|
null,
|
|
1471
280
|
partnerDetails.thumbnail.caption
|
|
1472
281
|
)
|
|
1473
282
|
)
|
|
1474
|
-
) :
|
|
283
|
+
) : React__default.createElement(
|
|
1475
284
|
'figure',
|
|
1476
285
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%', textAlign: 'center' } },
|
|
1477
|
-
|
|
286
|
+
React__default.createElement('img', {
|
|
1478
287
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
1479
288
|
style: { maxWidth: '100%' },
|
|
1480
289
|
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : '' }),
|
|
1481
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption &&
|
|
290
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default.createElement(
|
|
1482
291
|
'figcaption',
|
|
1483
292
|
null,
|
|
1484
293
|
partnerDetails.thumbnail.caption
|
|
1485
294
|
)
|
|
1486
295
|
),
|
|
1487
|
-
|
|
296
|
+
React__default.createElement(
|
|
1488
297
|
'style',
|
|
1489
298
|
{ jsx: 'true' },
|
|
1490
299
|
'\n @media screen and (max-width: 768px) {\n .partners-logo {\n width: 100%;\n min-width: 100%;\n }\n .partner-logo-wrap {\n flex-wrap: wrap;\n }\n .block-content-partners {\n padding-left: 0 !important;\n }\n }\n '
|
|
1491
300
|
),
|
|
1492
|
-
partnerDetails.description &&
|
|
301
|
+
partnerDetails.description && React__default.createElement(
|
|
1493
302
|
'div',
|
|
1494
303
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
1495
|
-
|
|
304
|
+
React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
1496
305
|
)
|
|
1497
306
|
),
|
|
1498
|
-
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides &&
|
|
307
|
+
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React__default.createElement(
|
|
1499
308
|
'div',
|
|
1500
309
|
{ className: 'mb-4', style: { padding: '0 15px' } },
|
|
1501
|
-
partnerDetails.affiliates[0].title &&
|
|
310
|
+
partnerDetails.affiliates[0].title && React__default.createElement(
|
|
1502
311
|
'h2',
|
|
1503
312
|
{ className: 'bb-gold' },
|
|
1504
313
|
partnerDetails.affiliates[0].title
|
|
1505
314
|
),
|
|
1506
|
-
|
|
315
|
+
React__default.createElement(ImageSlider, { client: client, data: partnerDetails.affiliates[0] })
|
|
1507
316
|
),
|
|
1508
|
-
features.length > 0 &&
|
|
317
|
+
features.length > 0 && React__default.createElement(
|
|
1509
318
|
'div',
|
|
1510
319
|
{ className: ' mb-5' },
|
|
1511
|
-
|
|
320
|
+
React__default.createElement(Feature, { dataset: features, client: client })
|
|
1512
321
|
),
|
|
1513
|
-
partnerDetails.twitter &&
|
|
1514
|
-
|
|
322
|
+
partnerDetails.twitter && React__default.createElement(
|
|
323
|
+
React__default.Fragment,
|
|
1515
324
|
null,
|
|
1516
|
-
|
|
325
|
+
React__default.createElement(
|
|
1517
326
|
'div',
|
|
1518
327
|
{ className: 'mb-5', style: { width: '100%', textAlign: 'center', padding: '0 15px', border: '2px solid #aaa', borderRadius: '15px' } },
|
|
1519
|
-
|
|
328
|
+
React__default.createElement(TwitterTimelineEmbed, { sourceType: 'url', url: partnerDetails.twitter, options: { height: 400 } })
|
|
1520
329
|
)
|
|
1521
330
|
),
|
|
1522
|
-
|
|
331
|
+
React__default.createElement(
|
|
1523
332
|
'div',
|
|
1524
333
|
null,
|
|
1525
|
-
posts && posts.length > 0 &&
|
|
1526
|
-
|
|
334
|
+
posts && posts.length > 0 && React__default.createElement(
|
|
335
|
+
React__default.Fragment,
|
|
1527
336
|
null,
|
|
1528
|
-
|
|
337
|
+
React__default.createElement(
|
|
1529
338
|
'h2',
|
|
1530
339
|
{ className: 'bb-gold mb-2' },
|
|
1531
340
|
'Latest from ',
|
|
1532
341
|
partnerDetails.name
|
|
1533
342
|
),
|
|
1534
|
-
|
|
343
|
+
React__default.createElement('hr', null)
|
|
1535
344
|
),
|
|
1536
|
-
|
|
345
|
+
React__default.createElement(QueueDeckExpanded, {
|
|
1537
346
|
client: client,
|
|
1538
347
|
mapping: Settings.mapping,
|
|
1539
348
|
dataRecord: posts,
|