@mjhls/mjh-framework 1.0.861 → 1.0.862
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +23 -23
- package/dist/cjs/AD300x250x600.js +23 -23
- package/dist/cjs/AD728x90.js +26 -26
- package/dist/cjs/ADFloatingFooter.js +22 -22
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +22 -22
- package/dist/cjs/{ADInfeed-ff26342c.js → ADInfeed-f8324b70.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +22 -22
- package/dist/cjs/ADSponsoredResources.js +22 -22
- package/dist/cjs/ADWebcast.js +22 -22
- package/dist/cjs/ADWelcome.js +19 -19
- package/dist/cjs/{ADlgInfeed-ad4953d4.js → ADlgInfeed-98d7c699.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +23 -23
- package/dist/cjs/AdSlotsProvider.js +13 -13
- package/dist/cjs/AlgoliaSearch.js +18 -18
- package/dist/cjs/AlphabeticList.js +10 -10
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +49 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +31 -31
- package/dist/cjs/ArticleSeriesListing.js +32 -32
- package/dist/cjs/Auth.js +484 -348
- package/dist/cjs/AuthWrapper.js +588 -11
- 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 +24 -24
- package/dist/cjs/Column2.js +16 -16
- package/dist/cjs/Column3.js +32 -32
- package/dist/cjs/ConferenceArticleCard.js +22 -22
- package/dist/cjs/DeckContent.js +41 -41
- package/dist/cjs/DeckQueue.js +30 -30
- package/dist/cjs/{Dfp-0bf098b5.js → Dfp-3f0ed4c8.js} +14 -14
- package/dist/cjs/EventsDeck.js +45 -45
- package/dist/cjs/ExternalResources.js +46 -47
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +12 -12
- package/dist/cjs/GridContent.js +46 -46
- package/dist/cjs/GridHero.js +13 -13
- package/dist/cjs/GroupDeck.js +14 -14
- package/dist/cjs/HamMagazine.js +37 -37
- package/dist/cjs/Hero.js +4 -4
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +46 -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 +84 -85
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +21 -21
- package/dist/cjs/MasterDeck.js +40 -40
- package/dist/cjs/MediaSeriesLanding.js +701 -502
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +41 -41
- package/dist/cjs/NavNative.js +41 -41
- 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 +88 -1267
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +34 -34
- package/dist/cjs/PubToc.js +8 -8
- package/dist/cjs/PublicationDeck.js +8 -8
- package/dist/cjs/PublicationLanding.js +55 -55
- package/dist/cjs/QueueDeckExpanded.js +37 -37
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +35 -35
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +19 -19
- package/dist/cjs/{SeriesSlider-60fa1342.js → SeriesSlider-e3e8ead7.js} +14 -14
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +17 -17
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-948138c7.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +10 -10
- package/dist/cjs/TaxonomyDescription.js +45 -46
- package/dist/cjs/TemplateNormal.js +47 -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 +51 -52
- package/dist/cjs/VideoSeriesCard.js +14 -14
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +37 -37
- package/dist/cjs/VideoSeriesListing.js +32 -32
- package/dist/cjs/View.js +90 -92
- package/dist/cjs/YahooHero.js +15 -15
- package/dist/cjs/YoutubeGroup.js +26 -26
- 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/{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/getRelatedArticle.js +135 -71
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +45 -46
- package/dist/cjs/{getTargeting-3e45e4d4.js → getTargeting-32d1c2e4.js} +11 -11
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-44481153.js → index-0e4427c8.js} +40 -21
- package/dist/cjs/{index-87d0db67.js → index-3c2fa34e.js} +425 -175
- package/dist/cjs/{index-9d365128.js → index-eadd5035.js} +7 -7
- package/dist/cjs/{index-b5eb3ff8.js → index-efca863c.js} +16 -11
- package/dist/cjs/{index-99edf08a.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index.esm-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 +141 -140
- 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-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 +26 -26
- package/dist/esm/AD300x250x600.js +26 -26
- package/dist/esm/AD728x90.js +29 -29
- package/dist/esm/ADFloatingFooter.js +28 -28
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +28 -28
- package/dist/esm/{ADInfeed-422ad6e6.js → ADInfeed-a71a3972.js} +9 -9
- package/dist/esm/ADSkyscraper.js +28 -28
- package/dist/esm/ADSponsoredResources.js +28 -28
- package/dist/esm/ADWebcast.js +28 -28
- package/dist/esm/ADWelcome.js +29 -29
- package/dist/esm/{ADlgInfeed-f7468db8.js → ADlgInfeed-d94f1437.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +26 -26
- package/dist/esm/AdSlotsProvider.js +14 -14
- package/dist/esm/AlgoliaSearch.js +44 -44
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +55 -56
- package/dist/esm/ArticleSeriesLandingPage.js +37 -37
- package/dist/esm/ArticleSeriesListing.js +56 -56
- package/dist/esm/Auth.js +554 -418
- package/dist/esm/AuthWrapper.js +607 -29
- 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 +79 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +27 -27
- package/dist/esm/Column3.js +51 -51
- package/dist/esm/ConferenceArticleCard.js +35 -35
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +86 -86
- package/dist/esm/DeckQueue.js +68 -68
- package/dist/esm/{Dfp-85c9513e.js → Dfp-be030f2a.js} +22 -22
- package/dist/esm/EventsDeck.js +105 -105
- package/dist/esm/ExternalResources.js +72 -73
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +163 -163
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +114 -114
- 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 +68 -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 +92 -93
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +34 -34
- package/dist/esm/MasterDeck.js +73 -73
- package/dist/esm/MediaSeriesLanding.js +986 -787
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +123 -123
- package/dist/esm/NavNative.js +112 -112
- 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 +131 -1309
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +39 -39
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +39 -39
- package/dist/esm/PublicationLanding.js +102 -102
- package/dist/esm/QueueDeckExpanded.js +275 -275
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +48 -48
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- 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 +32 -32
- package/dist/esm/{SeriesSlider-05ecb544.js → SeriesSlider-ae17159f.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +34 -34
- 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 +49 -50
- package/dist/esm/TemplateNormal.js +67 -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 +63 -64
- package/dist/esm/VideoSeriesCard.js +26 -26
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +42 -42
- package/dist/esm/VideoSeriesListing.js +72 -72
- package/dist/esm/View.js +246 -248
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +51 -51
- 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/{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/getRelatedArticle.js +135 -71
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -46
- package/dist/esm/{getTargeting-9cb7e014.js → getTargeting-cf2724e3.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-51a80699.js → index-0dbff1d1.js} +16 -11
- package/dist/esm/{index-1819118a.js → index-5cc7b406.js} +43 -24
- package/dist/esm/{index-6c12bdd5.js → index-755f2cc2.js} +10 -10
- package/dist/esm/{index-fa2ffe86.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index-20e503c9.js → index-fce5c5b6.js} +819 -568
- 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 +137 -136
- 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-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 +111 -110
- 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,1279 +1,83 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./
|
|
5
|
-
require('./
|
|
6
|
-
require('./_library-dd23b178.js');
|
|
7
|
-
require('./_iter-detect-60b2f026.js');
|
|
8
|
-
require('./toConsumableArray-9a3476fe.js');
|
|
9
|
-
require('./core.get-iterator-method-f62321d4.js');
|
|
10
|
-
require('./_object-pie-68c5bcbc.js');
|
|
11
|
-
var _extends = require('./extends-60837c34.js');
|
|
12
|
-
require('./_object-sap-5e74ba08.js');
|
|
13
|
-
require('./inherits-87492b40.js');
|
|
14
|
-
require('./define-property-f4d12f4e.js');
|
|
15
|
-
require('./web.dom.iterable-a0e279c1.js');
|
|
16
|
-
require('./typeof-9d7f610f.js');
|
|
17
|
-
require('./_is-array-754e012d.js');
|
|
3
|
+
var asyncToGenerator = require('./asyncToGenerator-58c289d9.js');
|
|
4
|
+
var slicedToArray = require('./slicedToArray-5d1bc3b3.js');
|
|
5
|
+
var _extends = require('./extends-29bdbc6d.js');
|
|
18
6
|
var React = require('react');
|
|
19
|
-
require('
|
|
20
|
-
var
|
|
21
|
-
require('react-
|
|
22
|
-
require('
|
|
23
|
-
require('
|
|
24
|
-
var moment = require('./moment-
|
|
25
|
-
require('
|
|
26
|
-
require('./
|
|
27
|
-
require('./
|
|
28
|
-
require('./
|
|
7
|
+
var reactTwitterEmbed = require('react-twitter-embed');
|
|
8
|
+
var reactFacebook = require('react-facebook');
|
|
9
|
+
var reactSocialIcons = require('./react-social-icons-af932527.js');
|
|
10
|
+
var smoothscroll = require('./smoothscroll-99df7f93.js');
|
|
11
|
+
var urlFor = require('./urlFor.js');
|
|
12
|
+
var moment = require('./moment-aca40de1.js');
|
|
13
|
+
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
14
|
+
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
15
|
+
var Feature = require('./Feature.js');
|
|
16
|
+
var getSerializers = require('./index-3c2fa34e.js');
|
|
17
|
+
var BlockContent = require('./BlockContent-36e54d77.js');
|
|
18
|
+
require('./_commonjsHelpers-06173234.js');
|
|
19
|
+
require('./es6.string.iterator-c2573ffd.js');
|
|
20
|
+
require('./_to-object-6de10e57.js');
|
|
21
|
+
require('./web.dom.iterable-46657b5c.js');
|
|
22
|
+
require('./_library-dd23b178.js');
|
|
23
|
+
require('./core.get-iterator-method-f474eacc.js');
|
|
24
|
+
require('./_iter-detect-55a5657a.js');
|
|
25
|
+
require('./_object-pie-083f2dd6.js');
|
|
26
|
+
require('prop-types');
|
|
27
|
+
require('./index-efca863c.js');
|
|
28
|
+
require('./toConsumableArray-ddb70795.js');
|
|
29
|
+
require('react-bootstrap');
|
|
29
30
|
require('./index.es-f3e47207.js');
|
|
30
|
-
require('react-dom');
|
|
31
31
|
require('./visibility-sensor-eb2c5b69.js');
|
|
32
|
-
require('
|
|
33
|
-
|
|
34
|
-
require('
|
|
35
|
-
require('./
|
|
36
|
-
require('./
|
|
37
|
-
|
|
38
|
-
require('./
|
|
39
|
-
|
|
40
|
-
require('./Segment.js');
|
|
41
|
-
require('./Beam.js');
|
|
32
|
+
require('react-dom');
|
|
33
|
+
require('./index-0e4427c8.js');
|
|
34
|
+
require('next/router');
|
|
35
|
+
require('./index-eadd5035.js');
|
|
36
|
+
require('./main-f1c77adb.js');
|
|
37
|
+
require('./entities-3f9d0f2f.js');
|
|
38
|
+
require('./ADInfeed-f8324b70.js');
|
|
39
|
+
require('react-bootstrap/Card');
|
|
42
40
|
require('./AdSlot.js');
|
|
43
|
-
require('./
|
|
44
|
-
require('./
|
|
45
|
-
require('./
|
|
41
|
+
require('./debounce-d4a2369b.js');
|
|
42
|
+
require('./isSymbol-03abbdf0.js');
|
|
43
|
+
require('./toNumber-5e1fac58.js');
|
|
44
|
+
require('./Beam.js');
|
|
45
|
+
require('./stringify-c9ac1214.js');
|
|
46
|
+
require('./Segment.js');
|
|
47
|
+
require('./AuthorComponent-c21aac7f.js');
|
|
48
|
+
require('./lodash-f0783643.js');
|
|
49
|
+
require('./ADlgInfeed-98d7c699.js');
|
|
46
50
|
require('./getContentCategory-f38a4c00.js');
|
|
47
|
-
require('./
|
|
48
|
-
require('react-bootstrap/
|
|
49
|
-
|
|
51
|
+
require('./timeDifferenceCalc.js');
|
|
52
|
+
require('react-bootstrap/Breadcrumb');
|
|
53
|
+
require('react-bootstrap/Carousel');
|
|
50
54
|
require('./index-187c967e.js');
|
|
51
|
-
|
|
55
|
+
require('./util-6f784d85.js');
|
|
56
|
+
require('./typeof-88a668c5.js');
|
|
57
|
+
require('./_is-array-6128bd56.js');
|
|
58
|
+
require('./brightcove-react-player-loader.es-a195642e.js');
|
|
52
59
|
require('./GroupDeck.js');
|
|
53
|
-
require('
|
|
54
|
-
require('./timeDifferenceCalc.js');
|
|
55
|
-
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
56
|
-
require('./iconBase-68959171.js');
|
|
57
|
-
require('./index.esm-974f47d9.js');
|
|
58
|
-
var getSerializers = require('./index-87d0db67.js');
|
|
59
|
-
require('./util-f2c1b65b.js');
|
|
60
|
-
require('./brightcove-react-player-loader.es-5c98aec7.js');
|
|
60
|
+
require('./SocialShare.js');
|
|
61
61
|
require('next/head');
|
|
62
62
|
require('react-share');
|
|
63
|
-
require('./
|
|
64
|
-
require('./_object-to-array-5762f850.js');
|
|
63
|
+
require('./_object-to-array-8fe5a54f.js');
|
|
65
64
|
require('react-bootstrap/Pagination');
|
|
65
|
+
require('react-bootstrap/Button');
|
|
66
|
+
require('react-bootstrap/Row');
|
|
67
|
+
require('react-bootstrap/Col');
|
|
68
|
+
require('./inherits-c2065b95.js');
|
|
69
|
+
require('./_object-sap-a175b4a9.js');
|
|
70
|
+
require('./define-property-c88be878.js');
|
|
71
|
+
require('./index.esm-00a6aade.js');
|
|
72
|
+
require('./iconBase-be4097c0.js');
|
|
66
73
|
require('react-bootstrap/Figure');
|
|
67
74
|
require('react-bootstrap/OverlayTrigger');
|
|
68
75
|
require('react-bootstrap/Tooltip');
|
|
69
76
|
require('react-bootstrap/Popover');
|
|
70
|
-
require('react-script-tag');
|
|
71
|
-
require('react-bootstrap/Carousel');
|
|
72
|
-
var Feature = require('./Feature.js');
|
|
73
|
-
require('react-bootstrap/Breadcrumb');
|
|
74
|
-
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
75
77
|
|
|
76
78
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
77
79
|
|
|
78
80
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
79
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
80
|
-
|
|
81
|
-
function _classCallCheck(instance, Constructor) {
|
|
82
|
-
if (!(instance instanceof Constructor)) {
|
|
83
|
-
throw new TypeError("Cannot call a class as a function");
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function _defineProperties(target, props) {
|
|
88
|
-
for (var i = 0; i < props.length; i++) {
|
|
89
|
-
var descriptor = props[i];
|
|
90
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
91
|
-
descriptor.configurable = true;
|
|
92
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
93
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
98
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
99
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
100
|
-
return Constructor;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
function _typeof(obj) {
|
|
104
|
-
"@babel/helpers - typeof";
|
|
105
|
-
|
|
106
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
107
|
-
_typeof = function _typeof(obj) {
|
|
108
|
-
return typeof obj;
|
|
109
|
-
};
|
|
110
|
-
} else {
|
|
111
|
-
_typeof = function _typeof(obj) {
|
|
112
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
return _typeof(obj);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
function _assertThisInitialized(self) {
|
|
120
|
-
if (self === void 0) {
|
|
121
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
return self;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
function _possibleConstructorReturn(self, call) {
|
|
128
|
-
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
129
|
-
return call;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
return _assertThisInitialized(self);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
function _getPrototypeOf(o) {
|
|
136
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
137
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
138
|
-
};
|
|
139
|
-
return _getPrototypeOf(o);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
function _setPrototypeOf(o, p) {
|
|
143
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
144
|
-
o.__proto__ = p;
|
|
145
|
-
return o;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
return _setPrototypeOf(o, p);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
function _inherits(subClass, superClass) {
|
|
152
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
153
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
157
|
-
constructor: {
|
|
158
|
-
value: subClass,
|
|
159
|
-
writable: true,
|
|
160
|
-
configurable: true
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
function _defineProperty(obj, key, value) {
|
|
167
|
-
if (key in obj) {
|
|
168
|
-
Object.defineProperty(obj, key, {
|
|
169
|
-
value: value,
|
|
170
|
-
enumerable: true,
|
|
171
|
-
configurable: true,
|
|
172
|
-
writable: true
|
|
173
|
-
});
|
|
174
|
-
} else {
|
|
175
|
-
obj[key] = value;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
return obj;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
var isRequiredIf_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
182
|
-
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.
|
|
183
|
-
}};exports.default=isRequiredIf;
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
var isRequiredIf = _commonjsHelpers.unwrapExports(isRequiredIf_1);
|
|
189
|
-
|
|
190
|
-
var exenv = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
191
|
-
/*!
|
|
192
|
-
Copyright (c) 2015 Jed Watson.
|
|
193
|
-
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
194
|
-
All rights reserved.
|
|
195
|
-
*/
|
|
196
|
-
/* global define */
|
|
197
|
-
|
|
198
|
-
(function () {
|
|
199
|
-
|
|
200
|
-
var canUseDOM = !!(
|
|
201
|
-
typeof window !== 'undefined' &&
|
|
202
|
-
window.document &&
|
|
203
|
-
window.document.createElement
|
|
204
|
-
);
|
|
205
|
-
|
|
206
|
-
var ExecutionEnvironment = {
|
|
207
|
-
|
|
208
|
-
canUseDOM: canUseDOM,
|
|
209
|
-
|
|
210
|
-
canUseWorkers: typeof Worker !== 'undefined',
|
|
211
|
-
|
|
212
|
-
canUseEventListeners:
|
|
213
|
-
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
214
|
-
|
|
215
|
-
canUseViewport: canUseDOM && !!window.screen
|
|
216
|
-
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
if ( module.exports) {
|
|
220
|
-
module.exports = ExecutionEnvironment;
|
|
221
|
-
} else {
|
|
222
|
-
window.ExecutionEnvironment = ExecutionEnvironment;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
}());
|
|
226
|
-
});
|
|
227
|
-
|
|
228
|
-
var twitterWidgetJs = 'https://platform.twitter.com/widgets.js';
|
|
229
|
-
|
|
230
|
-
var TwitterTimelineEmbed =
|
|
231
|
-
/*#__PURE__*/
|
|
232
|
-
function (_Component) {
|
|
233
|
-
_inherits(TwitterTimelineEmbed, _Component);
|
|
234
|
-
|
|
235
|
-
function TwitterTimelineEmbed(props) {
|
|
236
|
-
var _this;
|
|
237
|
-
|
|
238
|
-
_classCallCheck(this, TwitterTimelineEmbed);
|
|
239
|
-
|
|
240
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTimelineEmbed).call(this, props));
|
|
241
|
-
_this.state = {
|
|
242
|
-
isLoading: true
|
|
243
|
-
};
|
|
244
|
-
return _this;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
_createClass(TwitterTimelineEmbed, [{
|
|
248
|
-
key: "buildChromeOptions",
|
|
249
|
-
value: function buildChromeOptions(options) {
|
|
250
|
-
options.chrome = '';
|
|
251
|
-
|
|
252
|
-
if (this.props.noHeader) {
|
|
253
|
-
options.chrome = options.chrome + ' noheader';
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
if (this.props.noFooter) {
|
|
257
|
-
options.chrome = options.chrome + ' nofooter';
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
if (this.props.noBorders) {
|
|
261
|
-
options.chrome = options.chrome + ' noborders';
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
if (this.props.noScrollbar) {
|
|
265
|
-
options.chrome = options.chrome + ' noscrollbar';
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
if (this.props.transparent) {
|
|
269
|
-
options.chrome = options.chrome + ' transparent';
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
return options;
|
|
273
|
-
}
|
|
274
|
-
}, {
|
|
275
|
-
key: "buildOptions",
|
|
276
|
-
value: function buildOptions() {
|
|
277
|
-
var options = Object.assign({}, this.props.options);
|
|
278
|
-
|
|
279
|
-
if (this.props.autoHeight) {
|
|
280
|
-
options.height = this.refs.embedContainer.parentNode.offsetHeight;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
options = Object.assign({}, options, {
|
|
284
|
-
theme: this.props.theme,
|
|
285
|
-
linkColor: this.props.linkColor,
|
|
286
|
-
borderColor: this.props.borderColor,
|
|
287
|
-
lang: this.props.lang
|
|
288
|
-
});
|
|
289
|
-
return options;
|
|
290
|
-
}
|
|
291
|
-
}, {
|
|
292
|
-
key: "renderWidget",
|
|
293
|
-
value: function renderWidget(options) {
|
|
294
|
-
var _this2 = this;
|
|
295
|
-
|
|
296
|
-
var onLoad = this.props.onLoad;
|
|
297
|
-
|
|
298
|
-
if (!this.isMountCanceled) {
|
|
299
|
-
window.twttr.widgets.createTimeline({
|
|
300
|
-
sourceType: this.props.sourceType,
|
|
301
|
-
screenName: this.props.screenName,
|
|
302
|
-
userId: this.props.userId,
|
|
303
|
-
ownerScreenName: this.props.ownerScreenName,
|
|
304
|
-
slug: this.props.slug,
|
|
305
|
-
id: this.props.id || this.props.widgetId,
|
|
306
|
-
url: this.props.url
|
|
307
|
-
}, this.refs.embedContainer, options).then(function (element) {
|
|
308
|
-
_this2.setState({
|
|
309
|
-
isLoading: false
|
|
310
|
-
});
|
|
311
|
-
|
|
312
|
-
if (onLoad) {
|
|
313
|
-
onLoad(element);
|
|
314
|
-
}
|
|
315
|
-
});
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}, {
|
|
319
|
-
key: "componentDidMount",
|
|
320
|
-
value: function componentDidMount() {
|
|
321
|
-
var _this3 = this;
|
|
322
|
-
|
|
323
|
-
if (exenv.canUseDOM) {
|
|
324
|
-
var script = require('scriptjs');
|
|
325
|
-
|
|
326
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
327
|
-
if (!window.twttr) {
|
|
328
|
-
console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.');
|
|
329
|
-
return;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
var options = _this3.buildOptions();
|
|
333
|
-
/** Append chrome options */
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
options = _this3.buildChromeOptions(options);
|
|
337
|
-
|
|
338
|
-
_this3.renderWidget(options);
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}, {
|
|
343
|
-
key: "componentWillUnmount",
|
|
344
|
-
value: function componentWillUnmount() {
|
|
345
|
-
this.isMountCanceled = true;
|
|
346
|
-
}
|
|
347
|
-
}, {
|
|
348
|
-
key: "render",
|
|
349
|
-
value: function render() {
|
|
350
|
-
var isLoading = this.state.isLoading;
|
|
351
|
-
var placeholder = this.props.placeholder;
|
|
352
|
-
return React__default['default'].createElement(React__default['default'].Fragment, null, isLoading && placeholder, React__default['default'].createElement("div", {
|
|
353
|
-
ref: "embedContainer"
|
|
354
|
-
}));
|
|
355
|
-
}
|
|
356
|
-
}]);
|
|
357
|
-
|
|
358
|
-
return TwitterTimelineEmbed;
|
|
359
|
-
}(React.Component);
|
|
360
|
-
|
|
361
|
-
_defineProperty(TwitterTimelineEmbed, "propTypes", {
|
|
362
|
-
/**
|
|
363
|
-
* This can be either of profile, likes, list, collection, URL, widget
|
|
364
|
-
*/
|
|
365
|
-
sourceType: PropTypes__default['default'].oneOf(['profile', 'likes', 'list', 'collection', 'url', 'widget']).isRequired,
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* username of twitter handle as String
|
|
369
|
-
*/
|
|
370
|
-
screenName: isRequiredIf(PropTypes__default['default'].string, function (props) {
|
|
371
|
-
return !props.hasOwnProperty('userId') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
372
|
-
}),
|
|
373
|
-
|
|
374
|
-
/**
|
|
375
|
-
* UserId of twitter handle as number
|
|
376
|
-
*/
|
|
377
|
-
userId: isRequiredIf(PropTypes__default['default'].number, function (props) {
|
|
378
|
-
return !props.hasOwnProperty('screenName') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
379
|
-
}),
|
|
380
|
-
|
|
381
|
-
/**
|
|
382
|
-
* To show list, used along with slug
|
|
383
|
-
*/
|
|
384
|
-
ownerScreenName: isRequiredIf(PropTypes__default['default'].string, function (props) {
|
|
385
|
-
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
386
|
-
}),
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* To show list, used along with ownerScreenName
|
|
390
|
-
*/
|
|
391
|
-
slug: isRequiredIf(PropTypes__default['default'].string, function (props) {
|
|
392
|
-
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
393
|
-
}),
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* To show list, unique list id
|
|
397
|
-
* Also used with collections, in that case its valid collection id
|
|
398
|
-
*/
|
|
399
|
-
id: isRequiredIf(PropTypes__default['default'].oneOfType([PropTypes__default['default'].number, PropTypes__default['default'].string]), function (props) {
|
|
400
|
-
return props.sourceType === 'list' && !props.hasOwnProperty('ownerScreenName') && !props.hasOwnProperty('slug') || props.sourceType === 'collection';
|
|
401
|
-
}),
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
* To show twitter content with url.
|
|
405
|
-
* Supported content includes profiles, likes, lists, and collections.
|
|
406
|
-
*/
|
|
407
|
-
url: isRequiredIf(PropTypes__default['default'].string, function (props) {
|
|
408
|
-
return props.sourceType === 'url';
|
|
409
|
-
}),
|
|
410
|
-
|
|
411
|
-
/**
|
|
412
|
-
* To show custom widget
|
|
413
|
-
*/
|
|
414
|
-
widgetId: isRequiredIf(PropTypes__default['default'].string, function (props) {
|
|
415
|
-
return props.sourceType === 'widget';
|
|
416
|
-
}),
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
* Additional options to pass to twitter widget plugin
|
|
420
|
-
*/
|
|
421
|
-
options: PropTypes__default['default'].object,
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* Automatically fit into parent container height
|
|
425
|
-
*/
|
|
426
|
-
autoHeight: PropTypes__default['default'].bool,
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
* With dark or light theme
|
|
430
|
-
*/
|
|
431
|
-
theme: PropTypes__default['default'].oneOf(['dark', 'light']),
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* With custom link colors. Note: Only Hex colors are supported.
|
|
435
|
-
*/
|
|
436
|
-
linkColor: PropTypes__default['default'].string,
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* With custom border colors. Note: Only Hex colors are supported.
|
|
440
|
-
*/
|
|
441
|
-
borderColor: PropTypes__default['default'].string,
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* Hide the header from timeline
|
|
445
|
-
*/
|
|
446
|
-
noHeader: PropTypes__default['default'].bool,
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* Hide the footer from timeline
|
|
450
|
-
*/
|
|
451
|
-
noFooter: PropTypes__default['default'].bool,
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* Hide the border from timeline
|
|
455
|
-
*/
|
|
456
|
-
noBorders: PropTypes__default['default'].bool,
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* Hide the scrollbars
|
|
460
|
-
*/
|
|
461
|
-
noScrollbar: PropTypes__default['default'].bool,
|
|
462
|
-
|
|
463
|
-
/**
|
|
464
|
-
* Enable Transparancy
|
|
465
|
-
*/
|
|
466
|
-
transparent: PropTypes__default['default'].bool,
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* Custom language code. Supported codes here: https://developer.twitter.com/en/docs/twitter-for-websites/twitter-for-websites-supported-languages/overview.html
|
|
470
|
-
*/
|
|
471
|
-
lang: PropTypes__default['default'].string,
|
|
472
|
-
|
|
473
|
-
/**
|
|
474
|
-
* Placeholder while tweet is loading
|
|
475
|
-
*/
|
|
476
|
-
placeholder: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].element]),
|
|
477
|
-
|
|
478
|
-
/**
|
|
479
|
-
* Function to execute after load, return html element
|
|
480
|
-
*/
|
|
481
|
-
onLoad: PropTypes__default['default'].func
|
|
482
|
-
});
|
|
483
|
-
|
|
484
|
-
var TwitterShareButton =
|
|
485
|
-
/*#__PURE__*/
|
|
486
|
-
function (_Component) {
|
|
487
|
-
_inherits(TwitterShareButton, _Component);
|
|
488
|
-
|
|
489
|
-
function TwitterShareButton(props) {
|
|
490
|
-
var _this;
|
|
491
|
-
|
|
492
|
-
_classCallCheck(this, TwitterShareButton);
|
|
493
|
-
|
|
494
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterShareButton).call(this, props));
|
|
495
|
-
_this.state = {
|
|
496
|
-
isLoading: true
|
|
497
|
-
};
|
|
498
|
-
return _this;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
_createClass(TwitterShareButton, [{
|
|
502
|
-
key: "componentDidMount",
|
|
503
|
-
value: function componentDidMount() {
|
|
504
|
-
var _this2 = this;
|
|
505
|
-
|
|
506
|
-
var onLoad = this.props.onLoad;
|
|
507
|
-
|
|
508
|
-
if (exenv.canUseDOM) {
|
|
509
|
-
var script = require('scriptjs');
|
|
510
|
-
|
|
511
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
512
|
-
if (!window.twttr) {
|
|
513
|
-
console.error('Failure to load window.twttr in TwitterShareButton, aborting load.');
|
|
514
|
-
return;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
if (!_this2.isMountCanceled) {
|
|
518
|
-
window.twttr.widgets.createShareButton(_this2.props.url, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
519
|
-
_this2.setState({
|
|
520
|
-
isLoading: false
|
|
521
|
-
});
|
|
522
|
-
|
|
523
|
-
if (onLoad) {
|
|
524
|
-
onLoad(element);
|
|
525
|
-
}
|
|
526
|
-
});
|
|
527
|
-
}
|
|
528
|
-
});
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
}, {
|
|
532
|
-
key: "componentWillUnmount",
|
|
533
|
-
value: function componentWillUnmount() {
|
|
534
|
-
this.isMountCanceled = true;
|
|
535
|
-
}
|
|
536
|
-
}, {
|
|
537
|
-
key: "render",
|
|
538
|
-
value: function render() {
|
|
539
|
-
var isLoading = this.state.isLoading;
|
|
540
|
-
var placeholder = this.props.placeholder;
|
|
541
|
-
return React__default['default'].createElement(React__default['default'].Fragment, null, isLoading && placeholder, React__default['default'].createElement("div", {
|
|
542
|
-
ref: "embedContainer"
|
|
543
|
-
}));
|
|
544
|
-
}
|
|
545
|
-
}]);
|
|
546
|
-
|
|
547
|
-
return TwitterShareButton;
|
|
548
|
-
}(React.Component);
|
|
549
|
-
|
|
550
|
-
_defineProperty(TwitterShareButton, "propTypes", {
|
|
551
|
-
/**
|
|
552
|
-
* Url for sharing
|
|
553
|
-
*/
|
|
554
|
-
url: PropTypes__default['default'].string.isRequired,
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* Additional options for overriding config. Details at : https://dev.twitter.com/web/tweet-button/parameters
|
|
558
|
-
*/
|
|
559
|
-
options: PropTypes__default['default'].object,
|
|
560
|
-
|
|
561
|
-
/**
|
|
562
|
-
* Placeholder while tweet is loading
|
|
563
|
-
*/
|
|
564
|
-
placeholder: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].element]),
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* Function to execute after load, return html element
|
|
568
|
-
*/
|
|
569
|
-
onLoad: PropTypes__default['default'].func
|
|
570
|
-
});
|
|
571
|
-
|
|
572
|
-
var TwitterFollowButton =
|
|
573
|
-
/*#__PURE__*/
|
|
574
|
-
function (_Component) {
|
|
575
|
-
_inherits(TwitterFollowButton, _Component);
|
|
576
|
-
|
|
577
|
-
function TwitterFollowButton(props) {
|
|
578
|
-
var _this;
|
|
579
|
-
|
|
580
|
-
_classCallCheck(this, TwitterFollowButton);
|
|
581
|
-
|
|
582
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterFollowButton).call(this, props));
|
|
583
|
-
_this.state = {
|
|
584
|
-
isLoading: true
|
|
585
|
-
};
|
|
586
|
-
return _this;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
_createClass(TwitterFollowButton, [{
|
|
590
|
-
key: "componentDidMount",
|
|
591
|
-
value: function componentDidMount() {
|
|
592
|
-
var _this2 = this;
|
|
593
|
-
|
|
594
|
-
var onLoad = this.props.onLoad;
|
|
595
|
-
|
|
596
|
-
if (exenv.canUseDOM) {
|
|
597
|
-
var script = require('scriptjs');
|
|
598
|
-
|
|
599
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
600
|
-
if (!window.twttr) {
|
|
601
|
-
console.error('Failure to load window.twttr in TwitterFollowButton, aborting load.');
|
|
602
|
-
return;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
if (!_this2.isMountCanceled) {
|
|
606
|
-
window.twttr.widgets.createFollowButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
607
|
-
_this2.setState({
|
|
608
|
-
isLoading: false
|
|
609
|
-
});
|
|
610
|
-
|
|
611
|
-
if (onLoad) {
|
|
612
|
-
onLoad(element);
|
|
613
|
-
}
|
|
614
|
-
});
|
|
615
|
-
}
|
|
616
|
-
});
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
}, {
|
|
620
|
-
key: "componentWillUnmount",
|
|
621
|
-
value: function componentWillUnmount() {
|
|
622
|
-
this.isMountCanceled = true;
|
|
623
|
-
}
|
|
624
|
-
}, {
|
|
625
|
-
key: "render",
|
|
626
|
-
value: function render() {
|
|
627
|
-
var isLoading = this.state.isLoading;
|
|
628
|
-
var placeholder = this.props.placeholder;
|
|
629
|
-
return React__default['default'].createElement(React__default['default'].Fragment, null, isLoading && placeholder, React__default['default'].createElement("div", {
|
|
630
|
-
ref: "embedContainer"
|
|
631
|
-
}));
|
|
632
|
-
}
|
|
633
|
-
}]);
|
|
634
|
-
|
|
635
|
-
return TwitterFollowButton;
|
|
636
|
-
}(React.Component);
|
|
637
|
-
|
|
638
|
-
_defineProperty(TwitterFollowButton, "propTypes", {
|
|
639
|
-
/**
|
|
640
|
-
* Username of twitter user which will be followed on click
|
|
641
|
-
*/
|
|
642
|
-
screenName: PropTypes__default['default'].string.isRequired,
|
|
643
|
-
|
|
644
|
-
/**
|
|
645
|
-
* Additional options to be added to the button
|
|
646
|
-
*/
|
|
647
|
-
options: PropTypes__default['default'].object,
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
* Placeholder while tweet is loading
|
|
651
|
-
*/
|
|
652
|
-
placeholder: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].element]),
|
|
653
|
-
|
|
654
|
-
/**
|
|
655
|
-
* Function to execute after load, return html element
|
|
656
|
-
*/
|
|
657
|
-
onLoad: PropTypes__default['default'].func
|
|
658
|
-
});
|
|
659
|
-
|
|
660
|
-
var TwitterHashtagButton =
|
|
661
|
-
/*#__PURE__*/
|
|
662
|
-
function (_Component) {
|
|
663
|
-
_inherits(TwitterHashtagButton, _Component);
|
|
664
|
-
|
|
665
|
-
function TwitterHashtagButton(props) {
|
|
666
|
-
var _this;
|
|
667
|
-
|
|
668
|
-
_classCallCheck(this, TwitterHashtagButton);
|
|
669
|
-
|
|
670
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterHashtagButton).call(this, props));
|
|
671
|
-
_this.state = {
|
|
672
|
-
isLoading: true
|
|
673
|
-
};
|
|
674
|
-
return _this;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
_createClass(TwitterHashtagButton, [{
|
|
678
|
-
key: "componentDidMount",
|
|
679
|
-
value: function componentDidMount() {
|
|
680
|
-
var _this2 = this;
|
|
681
|
-
|
|
682
|
-
var onLoad = this.props.onLoad;
|
|
683
|
-
|
|
684
|
-
if (exenv.canUseDOM) {
|
|
685
|
-
var script = require('scriptjs');
|
|
686
|
-
|
|
687
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
688
|
-
if (!window.twttr) {
|
|
689
|
-
console.error('Failure to load window.twttr in TwitterHashtagButton, aborting load.');
|
|
690
|
-
return;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
if (!_this2.isMountCanceled) {
|
|
694
|
-
window.twttr.widgets.createHashtagButton(_this2.props.tag, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
695
|
-
_this2.setState({
|
|
696
|
-
isLoading: false
|
|
697
|
-
});
|
|
698
|
-
|
|
699
|
-
if (onLoad) {
|
|
700
|
-
onLoad(element);
|
|
701
|
-
}
|
|
702
|
-
});
|
|
703
|
-
}
|
|
704
|
-
});
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
}, {
|
|
708
|
-
key: "componentWillUnmount",
|
|
709
|
-
value: function componentWillUnmount() {
|
|
710
|
-
this.isMountCanceled = true;
|
|
711
|
-
}
|
|
712
|
-
}, {
|
|
713
|
-
key: "render",
|
|
714
|
-
value: function render() {
|
|
715
|
-
var isLoading = this.state.isLoading;
|
|
716
|
-
var placeholder = this.props.placeholder;
|
|
717
|
-
return React__default['default'].createElement(React__default['default'].Fragment, null, isLoading && placeholder, React__default['default'].createElement("div", {
|
|
718
|
-
ref: "embedContainer"
|
|
719
|
-
}));
|
|
720
|
-
}
|
|
721
|
-
}]);
|
|
722
|
-
|
|
723
|
-
return TwitterHashtagButton;
|
|
724
|
-
}(React.Component);
|
|
725
|
-
|
|
726
|
-
_defineProperty(TwitterHashtagButton, "propTypes", {
|
|
727
|
-
/**
|
|
728
|
-
* Tag name for hashtag button
|
|
729
|
-
*/
|
|
730
|
-
tag: PropTypes__default['default'].string.isRequired,
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* Additional options to be added to the button
|
|
734
|
-
*/
|
|
735
|
-
options: PropTypes__default['default'].object,
|
|
736
|
-
|
|
737
|
-
/**
|
|
738
|
-
* Placeholder while tweet is loading
|
|
739
|
-
*/
|
|
740
|
-
placeholder: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].element]),
|
|
741
|
-
|
|
742
|
-
/**
|
|
743
|
-
* Function to execute after load, return html element
|
|
744
|
-
*/
|
|
745
|
-
onLoad: PropTypes__default['default'].func
|
|
746
|
-
});
|
|
747
|
-
|
|
748
|
-
var TwitterMentionButton =
|
|
749
|
-
/*#__PURE__*/
|
|
750
|
-
function (_Component) {
|
|
751
|
-
_inherits(TwitterMentionButton, _Component);
|
|
752
|
-
|
|
753
|
-
function TwitterMentionButton(props) {
|
|
754
|
-
var _this;
|
|
755
|
-
|
|
756
|
-
_classCallCheck(this, TwitterMentionButton);
|
|
757
|
-
|
|
758
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMentionButton).call(this, props));
|
|
759
|
-
_this.state = {
|
|
760
|
-
isLoading: true
|
|
761
|
-
};
|
|
762
|
-
return _this;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
_createClass(TwitterMentionButton, [{
|
|
766
|
-
key: "componentDidMount",
|
|
767
|
-
value: function componentDidMount() {
|
|
768
|
-
var _this2 = this;
|
|
769
|
-
|
|
770
|
-
var onLoad = this.props.onLoad;
|
|
771
|
-
|
|
772
|
-
if (exenv.canUseDOM) {
|
|
773
|
-
var script = require('scriptjs');
|
|
774
|
-
|
|
775
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
776
|
-
if (!window.twttr) {
|
|
777
|
-
console.error('Failure to load window.twttr in TwitterMentionButton, aborting load.');
|
|
778
|
-
return;
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
if (!_this2.isMountCanceled) {
|
|
782
|
-
window.twttr.widgets.createMentionButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
783
|
-
_this2.setState({
|
|
784
|
-
isLoading: false
|
|
785
|
-
});
|
|
786
|
-
|
|
787
|
-
if (onLoad) {
|
|
788
|
-
onLoad(element);
|
|
789
|
-
}
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
});
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
}, {
|
|
796
|
-
key: "componentWillUnmount",
|
|
797
|
-
value: function componentWillUnmount() {
|
|
798
|
-
this.isMountCanceled = true;
|
|
799
|
-
}
|
|
800
|
-
}, {
|
|
801
|
-
key: "render",
|
|
802
|
-
value: function render() {
|
|
803
|
-
var isLoading = this.state.isLoading;
|
|
804
|
-
var placeholder = this.props.placeholder;
|
|
805
|
-
return React__default['default'].createElement(React__default['default'].Fragment, null, isLoading && placeholder, React__default['default'].createElement("div", {
|
|
806
|
-
ref: "embedContainer"
|
|
807
|
-
}));
|
|
808
|
-
}
|
|
809
|
-
}]);
|
|
810
|
-
|
|
811
|
-
return TwitterMentionButton;
|
|
812
|
-
}(React.Component);
|
|
813
|
-
|
|
814
|
-
_defineProperty(TwitterMentionButton, "propTypes", {
|
|
815
|
-
/**
|
|
816
|
-
* Username to which you will need to tweet
|
|
817
|
-
*/
|
|
818
|
-
screenName: PropTypes__default['default'].string.isRequired,
|
|
819
|
-
|
|
820
|
-
/**
|
|
821
|
-
* Additional options for overriding config.
|
|
822
|
-
*/
|
|
823
|
-
options: PropTypes__default['default'].object,
|
|
824
|
-
|
|
825
|
-
/**
|
|
826
|
-
* Placeholder while tweet is loading
|
|
827
|
-
*/
|
|
828
|
-
placeholder: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].element]),
|
|
829
|
-
|
|
830
|
-
/**
|
|
831
|
-
* Function to execute after load, return html element
|
|
832
|
-
*/
|
|
833
|
-
onLoad: PropTypes__default['default'].func
|
|
834
|
-
});
|
|
835
|
-
|
|
836
|
-
var TwitterTweetEmbed =
|
|
837
|
-
/*#__PURE__*/
|
|
838
|
-
function (_Component) {
|
|
839
|
-
_inherits(TwitterTweetEmbed, _Component);
|
|
840
|
-
|
|
841
|
-
function TwitterTweetEmbed(props) {
|
|
842
|
-
var _this;
|
|
843
|
-
|
|
844
|
-
_classCallCheck(this, TwitterTweetEmbed);
|
|
845
|
-
|
|
846
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTweetEmbed).call(this, props));
|
|
847
|
-
_this.state = {
|
|
848
|
-
isLoading: true
|
|
849
|
-
};
|
|
850
|
-
return _this;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
_createClass(TwitterTweetEmbed, [{
|
|
854
|
-
key: "renderWidget",
|
|
855
|
-
value: function renderWidget() {
|
|
856
|
-
var _this2 = this;
|
|
857
|
-
|
|
858
|
-
var onLoad = this.props.onLoad;
|
|
859
|
-
|
|
860
|
-
if (!window.twttr) {
|
|
861
|
-
console.error('Failure to load window.twttr in TwitterTweetEmbed, aborting load.');
|
|
862
|
-
return;
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
if (!this.isMountCanceled) {
|
|
866
|
-
window.twttr.widgets.createTweet(this.props.tweetId, this.refs.embedContainer, this.props.options).then(function (element) {
|
|
867
|
-
_this2.setState({
|
|
868
|
-
isLoading: false
|
|
869
|
-
});
|
|
870
|
-
|
|
871
|
-
if (onLoad) {
|
|
872
|
-
onLoad(element);
|
|
873
|
-
}
|
|
874
|
-
});
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
}, {
|
|
878
|
-
key: "componentDidMount",
|
|
879
|
-
value: function componentDidMount() {
|
|
880
|
-
var _this3 = this;
|
|
881
|
-
|
|
882
|
-
if (exenv.canUseDOM) {
|
|
883
|
-
var script = require('scriptjs');
|
|
884
|
-
|
|
885
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
886
|
-
_this3.renderWidget();
|
|
887
|
-
});
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
}, {
|
|
891
|
-
key: "componentWillUnmount",
|
|
892
|
-
value: function componentWillUnmount() {
|
|
893
|
-
this.isMountCanceled = true;
|
|
894
|
-
}
|
|
895
|
-
}, {
|
|
896
|
-
key: "render",
|
|
897
|
-
value: function render() {
|
|
898
|
-
var isLoading = this.state.isLoading;
|
|
899
|
-
var placeholder = this.props.placeholder;
|
|
900
|
-
return React__default['default'].createElement(React__default['default'].Fragment, null, isLoading && placeholder, React__default['default'].createElement("div", {
|
|
901
|
-
ref: "embedContainer"
|
|
902
|
-
}));
|
|
903
|
-
}
|
|
904
|
-
}]);
|
|
905
|
-
|
|
906
|
-
return TwitterTweetEmbed;
|
|
907
|
-
}(React.Component);
|
|
908
|
-
|
|
909
|
-
_defineProperty(TwitterTweetEmbed, "propTypes", {
|
|
910
|
-
/**
|
|
911
|
-
* Tweet id that needs to be shown
|
|
912
|
-
*/
|
|
913
|
-
tweetId: PropTypes__default['default'].string.isRequired,
|
|
914
|
-
|
|
915
|
-
/**
|
|
916
|
-
* Additional options to pass to twitter widget plugin
|
|
917
|
-
*/
|
|
918
|
-
options: PropTypes__default['default'].object,
|
|
919
|
-
|
|
920
|
-
/**
|
|
921
|
-
* Placeholder while tweet is loading
|
|
922
|
-
*/
|
|
923
|
-
placeholder: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].element]),
|
|
924
|
-
|
|
925
|
-
/**
|
|
926
|
-
* Function to execute after load, return html element
|
|
927
|
-
*/
|
|
928
|
-
onLoad: PropTypes__default['default'].func
|
|
929
|
-
});
|
|
930
|
-
|
|
931
|
-
var TwitterMomentShare =
|
|
932
|
-
/*#__PURE__*/
|
|
933
|
-
function (_Component) {
|
|
934
|
-
_inherits(TwitterMomentShare, _Component);
|
|
935
|
-
|
|
936
|
-
function TwitterMomentShare(props) {
|
|
937
|
-
var _this;
|
|
938
|
-
|
|
939
|
-
_classCallCheck(this, TwitterMomentShare);
|
|
940
|
-
|
|
941
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMomentShare).call(this, props));
|
|
942
|
-
_this.state = {
|
|
943
|
-
isLoading: true
|
|
944
|
-
};
|
|
945
|
-
return _this;
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
_createClass(TwitterMomentShare, [{
|
|
949
|
-
key: "componentDidMount",
|
|
950
|
-
value: function componentDidMount() {
|
|
951
|
-
var _this2 = this;
|
|
952
|
-
|
|
953
|
-
var onLoad = this.props.onLoad;
|
|
954
|
-
|
|
955
|
-
if (exenv.canUseDOM) {
|
|
956
|
-
var script = require('scriptjs');
|
|
957
|
-
|
|
958
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
959
|
-
if (!window.twttr) {
|
|
960
|
-
console.error('Failure to load window.twttr in TwitterMomentShare, aborting load.');
|
|
961
|
-
return;
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
if (!_this2.isMountCanceled) {
|
|
965
|
-
window.twttr.widgets.createMoment(_this2.props.momentId, _this2.refs.shareMoment, _this2.props.options).then(function (element) {
|
|
966
|
-
_this2.setState({
|
|
967
|
-
isLoading: false
|
|
968
|
-
});
|
|
969
|
-
|
|
970
|
-
if (onLoad) {
|
|
971
|
-
onLoad(element);
|
|
972
|
-
}
|
|
973
|
-
});
|
|
974
|
-
}
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
}, {
|
|
979
|
-
key: "componentWillUnmount",
|
|
980
|
-
value: function componentWillUnmount() {
|
|
981
|
-
this.isMountCanceled = true;
|
|
982
|
-
}
|
|
983
|
-
}, {
|
|
984
|
-
key: "render",
|
|
985
|
-
value: function render() {
|
|
986
|
-
var isLoading = this.state.isLoading;
|
|
987
|
-
var placeholder = this.props.placeholder;
|
|
988
|
-
return React__default['default'].createElement(React__default['default'].Fragment, null, isLoading && placeholder, React__default['default'].createElement("div", {
|
|
989
|
-
ref: "shareMoment"
|
|
990
|
-
}));
|
|
991
|
-
}
|
|
992
|
-
}]);
|
|
993
|
-
|
|
994
|
-
return TwitterMomentShare;
|
|
995
|
-
}(React.Component);
|
|
996
|
-
|
|
997
|
-
_defineProperty(TwitterMomentShare, "propTypes", {
|
|
998
|
-
/**
|
|
999
|
-
* id of Twitter moment to show
|
|
1000
|
-
*/
|
|
1001
|
-
momentId: PropTypes__default['default'].string.isRequired,
|
|
1002
|
-
|
|
1003
|
-
/**
|
|
1004
|
-
* Additional options for overriding config.
|
|
1005
|
-
*/
|
|
1006
|
-
options: PropTypes__default['default'].object,
|
|
1007
|
-
|
|
1008
|
-
/**
|
|
1009
|
-
* Placeholder while tweet is loading
|
|
1010
|
-
*/
|
|
1011
|
-
placeholder: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].element]),
|
|
1012
|
-
|
|
1013
|
-
/**
|
|
1014
|
-
* Function to execute after load, return html element
|
|
1015
|
-
*/
|
|
1016
|
-
onLoad: PropTypes__default['default'].func
|
|
1017
|
-
});
|
|
1018
|
-
|
|
1019
|
-
var TwitterDMButton =
|
|
1020
|
-
/*#__PURE__*/
|
|
1021
|
-
function (_Component) {
|
|
1022
|
-
_inherits(TwitterDMButton, _Component);
|
|
1023
|
-
|
|
1024
|
-
function TwitterDMButton(props) {
|
|
1025
|
-
var _this;
|
|
1026
|
-
|
|
1027
|
-
_classCallCheck(this, TwitterDMButton);
|
|
1028
|
-
|
|
1029
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterDMButton).call(this, props));
|
|
1030
|
-
_this.state = {
|
|
1031
|
-
isLoading: true
|
|
1032
|
-
};
|
|
1033
|
-
return _this;
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
_createClass(TwitterDMButton, [{
|
|
1037
|
-
key: "componentDidMount",
|
|
1038
|
-
value: function componentDidMount() {
|
|
1039
|
-
var _this2 = this;
|
|
1040
|
-
|
|
1041
|
-
var onLoad = this.props.onLoad;
|
|
1042
|
-
|
|
1043
|
-
if (exenv.canUseDOM) {
|
|
1044
|
-
var script = require('scriptjs');
|
|
1045
|
-
|
|
1046
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1047
|
-
if (!window.twttr) {
|
|
1048
|
-
console.error('Failure to load window.twttr in TwitterDMButton, aborting load.');
|
|
1049
|
-
return;
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
if (!_this2.isMountCanceled) {
|
|
1053
|
-
window.twttr.widgets.createDMButton(_this2.props.id, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1054
|
-
_this2.setState({
|
|
1055
|
-
isLoading: false
|
|
1056
|
-
});
|
|
1057
|
-
|
|
1058
|
-
if (onLoad) {
|
|
1059
|
-
onLoad(element);
|
|
1060
|
-
}
|
|
1061
|
-
});
|
|
1062
|
-
}
|
|
1063
|
-
});
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
}, {
|
|
1067
|
-
key: "componentWillUnmount",
|
|
1068
|
-
value: function componentWillUnmount() {
|
|
1069
|
-
this.isMountCanceled = true;
|
|
1070
|
-
}
|
|
1071
|
-
}, {
|
|
1072
|
-
key: "render",
|
|
1073
|
-
value: function render() {
|
|
1074
|
-
var isLoading = this.state.isLoading;
|
|
1075
|
-
var placeholder = this.props.placeholder;
|
|
1076
|
-
return React__default['default'].createElement(React__default['default'].Fragment, null, isLoading && placeholder, React__default['default'].createElement("div", {
|
|
1077
|
-
ref: "embedContainer"
|
|
1078
|
-
}));
|
|
1079
|
-
}
|
|
1080
|
-
}]);
|
|
1081
|
-
|
|
1082
|
-
return TwitterDMButton;
|
|
1083
|
-
}(React.Component);
|
|
1084
|
-
|
|
1085
|
-
_defineProperty(TwitterDMButton, "propTypes", {
|
|
1086
|
-
/**
|
|
1087
|
-
* Twitter user id for DM button
|
|
1088
|
-
*/
|
|
1089
|
-
id: PropTypes__default['default'].number.isRequired,
|
|
1090
|
-
|
|
1091
|
-
/**
|
|
1092
|
-
* Additional options to be added to the button
|
|
1093
|
-
*/
|
|
1094
|
-
options: PropTypes__default['default'].object,
|
|
1095
|
-
|
|
1096
|
-
/**
|
|
1097
|
-
* Placeholder while tweet is loading
|
|
1098
|
-
*/
|
|
1099
|
-
placeholder: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].element]),
|
|
1100
|
-
|
|
1101
|
-
/**
|
|
1102
|
-
* Function to execute after load, return html element
|
|
1103
|
-
*/
|
|
1104
|
-
onLoad: PropTypes__default['default'].func
|
|
1105
|
-
});
|
|
1106
|
-
|
|
1107
|
-
var TwitterVideoEmbed =
|
|
1108
|
-
/*#__PURE__*/
|
|
1109
|
-
function (_Component) {
|
|
1110
|
-
_inherits(TwitterVideoEmbed, _Component);
|
|
1111
|
-
|
|
1112
|
-
function TwitterVideoEmbed(props) {
|
|
1113
|
-
var _this;
|
|
1114
|
-
|
|
1115
|
-
_classCallCheck(this, TwitterVideoEmbed);
|
|
1116
|
-
|
|
1117
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterVideoEmbed).call(this, props));
|
|
1118
|
-
_this.state = {
|
|
1119
|
-
isLoading: true
|
|
1120
|
-
};
|
|
1121
|
-
return _this;
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
_createClass(TwitterVideoEmbed, [{
|
|
1125
|
-
key: "componentDidMount",
|
|
1126
|
-
value: function componentDidMount() {
|
|
1127
|
-
var _this2 = this;
|
|
1128
|
-
|
|
1129
|
-
var onLoad = this.props.onLoad;
|
|
1130
|
-
|
|
1131
|
-
if (exenv.canUseDOM) {
|
|
1132
|
-
var script = require('scriptjs');
|
|
1133
|
-
|
|
1134
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1135
|
-
if (!window.twttr) {
|
|
1136
|
-
console.error('Failure to load window.twttr in TwitterVideoEmbed, aborting load.');
|
|
1137
|
-
return;
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
if (!_this2.isMountCanceled) {
|
|
1141
|
-
window.twttr.widgets.createVideo(_this2.props.id, _this2.refs.embedContainer).then(function (element) {
|
|
1142
|
-
_this2.setState({
|
|
1143
|
-
isLoading: false
|
|
1144
|
-
});
|
|
1145
|
-
|
|
1146
|
-
if (onLoad) {
|
|
1147
|
-
onLoad(element);
|
|
1148
|
-
}
|
|
1149
|
-
});
|
|
1150
|
-
}
|
|
1151
|
-
});
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
}, {
|
|
1155
|
-
key: "componentWillUnmount",
|
|
1156
|
-
value: function componentWillUnmount() {
|
|
1157
|
-
this.isMountCanceled = true;
|
|
1158
|
-
}
|
|
1159
|
-
}, {
|
|
1160
|
-
key: "render",
|
|
1161
|
-
value: function render() {
|
|
1162
|
-
var isLoading = this.state.isLoading;
|
|
1163
|
-
var placeholder = this.props.placeholder;
|
|
1164
|
-
return React__default['default'].createElement(React__default['default'].Fragment, null, isLoading && placeholder, React__default['default'].createElement("div", {
|
|
1165
|
-
ref: "embedContainer"
|
|
1166
|
-
}));
|
|
1167
|
-
}
|
|
1168
|
-
}]);
|
|
1169
|
-
|
|
1170
|
-
return TwitterVideoEmbed;
|
|
1171
|
-
}(React.Component);
|
|
1172
|
-
|
|
1173
|
-
_defineProperty(TwitterVideoEmbed, "propTypes", {
|
|
1174
|
-
/**
|
|
1175
|
-
* Id of video tweet.
|
|
1176
|
-
*/
|
|
1177
|
-
id: PropTypes__default['default'].string.isRequired,
|
|
1178
|
-
|
|
1179
|
-
/**
|
|
1180
|
-
* Placeholder while tweet is loading
|
|
1181
|
-
*/
|
|
1182
|
-
placeholder: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].element]),
|
|
1183
|
-
|
|
1184
|
-
/**
|
|
1185
|
-
* Function to execute after load, return html element
|
|
1186
|
-
*/
|
|
1187
|
-
onLoad: PropTypes__default['default'].func
|
|
1188
|
-
});
|
|
1189
|
-
|
|
1190
|
-
var TwitterOnAirButton =
|
|
1191
|
-
/*#__PURE__*/
|
|
1192
|
-
function (_Component) {
|
|
1193
|
-
_inherits(TwitterOnAirButton, _Component);
|
|
1194
|
-
|
|
1195
|
-
function TwitterOnAirButton(props) {
|
|
1196
|
-
var _this;
|
|
1197
|
-
|
|
1198
|
-
_classCallCheck(this, TwitterOnAirButton);
|
|
1199
|
-
|
|
1200
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterOnAirButton).call(this, props));
|
|
1201
|
-
_this.state = {
|
|
1202
|
-
isLoading: true
|
|
1203
|
-
};
|
|
1204
|
-
return _this;
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
_createClass(TwitterOnAirButton, [{
|
|
1208
|
-
key: "componentDidMount",
|
|
1209
|
-
value: function componentDidMount() {
|
|
1210
|
-
var _this2 = this;
|
|
1211
|
-
|
|
1212
|
-
var onLoad = this.props.onLoad;
|
|
1213
|
-
|
|
1214
|
-
if (exenv.canUseDOM) {
|
|
1215
|
-
var script = require('scriptjs');
|
|
1216
|
-
|
|
1217
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1218
|
-
if (!window.twttr) {
|
|
1219
|
-
console.error('Failure to load window.twttr in TwitterOnAirButton, aborting load.');
|
|
1220
|
-
return;
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
if (!_this2.isMountCanceled) {
|
|
1224
|
-
window.twttr.widgets.createPeriscopeOnAirButton(_this2.props.username, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1225
|
-
_this2.setState({
|
|
1226
|
-
isLoading: false
|
|
1227
|
-
});
|
|
1228
|
-
|
|
1229
|
-
if (onLoad) {
|
|
1230
|
-
onLoad(element);
|
|
1231
|
-
}
|
|
1232
|
-
});
|
|
1233
|
-
}
|
|
1234
|
-
});
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
}, {
|
|
1238
|
-
key: "componentWillUnmount",
|
|
1239
|
-
value: function componentWillUnmount() {
|
|
1240
|
-
this.isMountCanceled = true;
|
|
1241
|
-
}
|
|
1242
|
-
}, {
|
|
1243
|
-
key: "render",
|
|
1244
|
-
value: function render() {
|
|
1245
|
-
var isLoading = this.state.isLoading;
|
|
1246
|
-
var placeholder = this.props.placeholder;
|
|
1247
|
-
return React__default['default'].createElement(React__default['default'].Fragment, null, isLoading && placeholder, React__default['default'].createElement("div", {
|
|
1248
|
-
ref: "embedContainer"
|
|
1249
|
-
}));
|
|
1250
|
-
}
|
|
1251
|
-
}]);
|
|
1252
|
-
|
|
1253
|
-
return TwitterOnAirButton;
|
|
1254
|
-
}(React.Component);
|
|
1255
|
-
|
|
1256
|
-
_defineProperty(TwitterOnAirButton, "propTypes", {
|
|
1257
|
-
/**
|
|
1258
|
-
* Username for which you require periscope on air button
|
|
1259
|
-
*/
|
|
1260
|
-
username: PropTypes__default['default'].string.isRequired,
|
|
1261
|
-
|
|
1262
|
-
/**
|
|
1263
|
-
* Additional options for overriding config.
|
|
1264
|
-
*/
|
|
1265
|
-
options: PropTypes__default['default'].object,
|
|
1266
|
-
|
|
1267
|
-
/**
|
|
1268
|
-
* Placeholder while tweet is loading
|
|
1269
|
-
*/
|
|
1270
|
-
placeholder: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].element]),
|
|
1271
|
-
|
|
1272
|
-
/**
|
|
1273
|
-
* Function to execute after load, return html element
|
|
1274
|
-
*/
|
|
1275
|
-
onLoad: PropTypes__default['default'].func
|
|
1276
|
-
});
|
|
1277
81
|
|
|
1278
82
|
var ImageSlider = function ImageSlider(props) {
|
|
1279
83
|
var innerSlider = React.useRef(null);
|
|
@@ -1503,10 +307,27 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
1503
307
|
{ jsx: 'true' },
|
|
1504
308
|
'\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 '
|
|
1505
309
|
),
|
|
1506
|
-
partnerDetails.description && React__default['default'].createElement(
|
|
310
|
+
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook) && React__default['default'].createElement(
|
|
1507
311
|
'div',
|
|
1508
312
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
1509
|
-
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers.getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
313
|
+
partnerDetails.description && React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers.getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
314
|
+
(partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook) && React__default['default'].createElement(
|
|
315
|
+
'div',
|
|
316
|
+
null,
|
|
317
|
+
React__default['default'].createElement(
|
|
318
|
+
'p',
|
|
319
|
+
{ 'class': 'd-inline-block font-weight-bold' },
|
|
320
|
+
'Connect with us:'
|
|
321
|
+
),
|
|
322
|
+
' ',
|
|
323
|
+
partnerDetails.linkedin && React__default['default'].createElement(reactSocialIcons.reactSocialIcons_1, {
|
|
324
|
+
url: '' + partnerDetails.linkedin + (partnerDetails.linkedin.slice(-1) === '/' ? '' : '/') + 'posts/?feedView=all',
|
|
325
|
+
target: '_blank',
|
|
326
|
+
rel: 'noopener noreferrer',
|
|
327
|
+
style: { height: 30, width: 30 }
|
|
328
|
+
}),
|
|
329
|
+
partnerDetails.twitter && partnerDetails.facebook && React__default['default'].createElement(reactSocialIcons.reactSocialIcons_1, { url: partnerDetails.facebook, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } })
|
|
330
|
+
)
|
|
1510
331
|
)
|
|
1511
332
|
),
|
|
1512
333
|
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React__default['default'].createElement(
|
|
@@ -1524,13 +345,13 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
1524
345
|
{ className: ' mb-5' },
|
|
1525
346
|
React__default['default'].createElement(Feature, { dataset: features, client: client })
|
|
1526
347
|
),
|
|
1527
|
-
partnerDetails.twitter && React__default['default'].createElement(
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
React__default['default'].createElement(
|
|
1531
|
-
|
|
1532
|
-
{
|
|
1533
|
-
React__default['default'].createElement(
|
|
348
|
+
(partnerDetails.twitter || partnerDetails.facebook) && React__default['default'].createElement(
|
|
349
|
+
'div',
|
|
350
|
+
{ className: 'mb-5', style: { width: '100%', maxWidth: '100%', textAlign: 'center', padding: '15px', border: '2px solid #aaa', borderRadius: '15px' } },
|
|
351
|
+
partnerDetails.twitter ? React__default['default'].createElement(reactTwitterEmbed.TwitterTimelineEmbed, { sourceType: 'url', url: partnerDetails.twitter, options: { height: 400 } }) : partnerDetails.facebook && React__default['default'].createElement(
|
|
352
|
+
reactFacebook.FacebookProvider,
|
|
353
|
+
{ appId: ' ' },
|
|
354
|
+
React__default['default'].createElement(reactFacebook.Page, { href: partnerDetails.facebook, tabs: 'timeline', width: '500', height: '500' })
|
|
1534
355
|
)
|
|
1535
356
|
),
|
|
1536
357
|
React__default['default'].createElement(
|
|
@@ -1581,14 +402,14 @@ PartnerDetails.returnGetInitialProps = function () {
|
|
|
1581
402
|
case 0:
|
|
1582
403
|
today = moment.moment().utc().format();
|
|
1583
404
|
featureQuery = '*[_type == \'feature\' && is_active == true && feature_url == \'/' + partnerPageUrl + '/' + (category ? category + '/' : null) + identifier + '\'] | order(_updatedAt asc)[0..5]{\n ...,\n \'feature_img\' : feature_img.asset->url\n }';
|
|
1584
|
-
partnerQuery = '*[_type == \'documentGroup\' \n && !(_id in path("drafts.**"))\n && references(\'' + partnerDocumentGroupID + '\')\n && identifier.current == \'' + identifier + '\'] | order(name asc) [0] {\n description,\n name,\n identifier,\n thumbnail,\n twitter,\n "affiliates": description[_type==\'slideshows\']{\n ...,\n slides->{...}\n }\n }';
|
|
405
|
+
partnerQuery = '*[_type == \'documentGroup\' \n && !(_id in path("drafts.**"))\n && references(\'' + partnerDocumentGroupID + '\')\n && identifier.current == \'' + identifier + '\'] | order(name asc) [0] {\n description,\n name,\n identifier,\n thumbnail,\n twitter,\n facebook,\n linkedin,\n "affiliates": description[_type==\'slideshows\']{\n ...,\n slides->{...}\n }\n }';
|
|
1585
406
|
|
|
1586
407
|
|
|
1587
408
|
if (category) {
|
|
1588
409
|
//if partners page has a sub category such as onclive
|
|
1589
410
|
//e.g. /sap-partner/[category]/[partner]
|
|
1590
411
|
|
|
1591
|
-
partnerQuery = '*[_type == \'documentGroup\' && !(_id in path("drafts.**")) && identifier.current == \'' + category + '\' && references(\'' + partnerDocumentGroupID + '\')] [0] {\n ...,\n \'partner\': *[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\' && references(^._id)] [0] {\n description,\n name,\n identifier,\n thumbnail,\n twitter,\n "affiliates": description[_type==\'slideshows\']{\n ...,\n slides->{...}\n }\n \n }\n }';
|
|
412
|
+
partnerQuery = '*[_type == \'documentGroup\' && !(_id in path("drafts.**")) && identifier.current == \'' + category + '\' && references(\'' + partnerDocumentGroupID + '\')] [0] {\n ...,\n \'partner\': *[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\' && references(^._id)] [0] {\n description,\n name,\n identifier,\n thumbnail,\n twitter,\n facebook,\n linkedin,\n "affiliates": description[_type==\'slideshows\']{\n ...,\n slides->{...}\n }\n \n }\n }';
|
|
1592
413
|
}
|
|
1593
414
|
|
|
1594
415
|
taxonomyQuery = '*[_type == \'documentGroup\' \n && !(_id in path("drafts.**"))\n && references(\'' + partnerDocumentGroupID + '\')\n && isShow != false\n && identifier.current == \'' + identifier + '\'] [0] {\n \'id\': _id,\n \'title\': name\n }';
|