@mjhls/mjh-framework 1.0.863-author-details-v2 → 1.0.863-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +9 -10
- package/dist/cjs/AD300x250x600.js +9 -10
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-25d48cc2.js → ADInfeed-98c71bcd.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +11 -12
- package/dist/cjs/ADWebcast.js +11 -12
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-a535a768.js → ADlgInfeed-9de32585.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -14
- package/dist/cjs/AdSlotsProvider.js +902 -11
- package/dist/cjs/AlgoliaSearch.js +842 -952
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleCarousel.js +9 -13
- package/dist/cjs/ArticleProgramLandingPage.js +27 -28
- package/dist/cjs/ArticleSeriesLandingPage.js +22 -23
- package/dist/cjs/ArticleSeriesListing.js +39 -40
- package/dist/cjs/Auth.js +1197 -237
- package/dist/cjs/AuthWrapper.js +38 -119
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-bb831b74.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +64 -64
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +17 -18
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +72 -76
- package/dist/cjs/DeckQueue.js +68 -72
- package/dist/cjs/{Dfp-391fd124.js → Dfp-26baccf1.js} +22 -23
- package/dist/cjs/EventsDeck.js +116 -123
- package/dist/cjs/ExternalResources.js +46 -47
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +34 -35
- package/dist/cjs/GridContent.js +203 -208
- package/dist/cjs/GridHero.js +35 -36
- package/dist/cjs/GroupDeck.js +48 -49
- package/dist/cjs/HamMagazine.js +116 -121
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +9 -10
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalArticleListing.js +36 -37
- package/dist/cjs/HorizontalHero.js +23 -24
- package/dist/cjs/IssueContentDeck.js +65 -70
- package/dist/cjs/IssueDeck.js +60 -65
- package/dist/cjs/IssueLanding.js +28 -29
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +49 -50
- package/dist/cjs/MediaSeriesLanding.js +786 -733
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +116 -121
- package/dist/cjs/NavNative.js +108 -116
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +63 -64
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +1229 -133
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +19 -20
- package/dist/cjs/PubToc.js +7 -8
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +83 -87
- package/dist/cjs/QueueDeckExpanded.js +285 -285
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +22 -23
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-0d3bf265.js → SeriesSlider-8bbc989f.js} +33 -34
- package/dist/cjs/SideFooter.js +23 -24
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-cea213aa.js} +34 -38
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TaxonomyDescription.js +21 -22
- package/dist/cjs/TemplateNormal.js +34 -35
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +21 -22
- package/dist/cjs/VerticalHero.js +15 -16
- package/dist/cjs/VideoProgramLandingPage.js +43 -47
- package/dist/cjs/VideoSeriesCard.js +22 -23
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +27 -28
- package/dist/cjs/VideoSeriesListing.js +56 -57
- package/dist/cjs/View.js +201 -207
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +67 -76
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/faundadb.js +16 -16
- package/dist/cjs/getRelatedArticle.js +131 -67
- package/dist/cjs/getRootDocGroup.js +3 -3
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-a9a871f0.js → getTargeting-f1821260.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-6367b7bf.js → index-3294d3bc.js} +17 -16
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-2cf30c83.js → index-98e01cb9.js} +8 -9
- package/dist/cjs/{index-04a5a4a2.js → index-a1e54356.js} +934 -961
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +58 -63
- package/dist/cjs/{inherits-0c7830c5.js → inherits-1f5a1c72.js} +3 -3
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-7b5e57b0.js → main-02daeefe.js} +54 -90
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-56a3db8b.js → ADInfeed-1cc9d817.js} +7 -7
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-53edb995.js → ADlgInfeed-8c4f129e.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +902 -10
- package/dist/esm/AlgoliaSearch.js +238 -347
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +7 -10
- package/dist/esm/ArticleProgramLandingPage.js +20 -20
- package/dist/esm/ArticleSeriesLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +1180 -216
- package/dist/esm/AuthWrapper.js +36 -116
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -61
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +30 -30
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +68 -68
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-b7236041.js} +10 -10
- package/dist/esm/EventsDeck.js +92 -92
- package/dist/esm/ExternalResources.js +41 -41
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +172 -172
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +91 -91
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +34 -34
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +54 -54
- package/dist/esm/IssueLanding.js +26 -26
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/MediaSeriesLanding.js +506 -450
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +93 -93
- package/dist/esm/NavNative.js +83 -83
- package/dist/esm/OncliveHero.js +15 -14
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +1227 -130
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -17
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +69 -69
- package/dist/esm/QueueDeckExpanded.js +251 -251
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +17 -17
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-7d89f4d9.js → SeriesSlider-a866bb21.js} +24 -24
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-03c3e869.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +50 -50
- package/dist/esm/TaxonomyDescription.js +16 -16
- package/dist/esm/TemplateNormal.js +31 -31
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +32 -32
- package/dist/esm/VideoSeriesCard.js +17 -17
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +17 -17
- package/dist/esm/VideoSeriesListing.js +53 -53
- package/dist/esm/View.js +182 -184
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +54 -62
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getRelatedArticle.js +126 -62
- package/dist/esm/getSerializers.js +11 -11
- package/dist/esm/{index-f7fb1e25.js → index-41a678ea.js} +3 -3
- package/dist/esm/{index-6c12bdd5.js → index-5f7e79e7.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-cf54da7f.js → index-a1c5f00a.js} +887 -904
- package/dist/esm/{index-c00b0bbb.js → index-ef6d5dcf.js} +17 -16
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +49 -51
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-75d45541.js → inherits-cf8dde54.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-747e7d25.js → main-e4a934b2.js} +52 -87
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-af9c50d8.js → typeof-6435ba1c.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
3
5
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
6
|
require('./_to-object-329a650b.js');
|
|
5
7
|
require('./es6.string.iterator-cc0bbaa4.js');
|
|
@@ -8,32 +10,34 @@ require('./_iter-detect-60b2f026.js');
|
|
|
8
10
|
require('./toConsumableArray-9a3476fe.js');
|
|
9
11
|
require('./core.get-iterator-method-f62321d4.js');
|
|
10
12
|
require('./_object-pie-68c5bcbc.js');
|
|
11
|
-
var _extends = require('./extends-0a918631.js');
|
|
13
|
+
var _extends$1 = require('./extends-0a918631.js');
|
|
12
14
|
require('./_object-sap-5e74ba08.js');
|
|
13
|
-
require('./inherits-
|
|
15
|
+
require('./inherits-1f5a1c72.js');
|
|
14
16
|
require('./define-property-f4d12f4e.js');
|
|
15
17
|
require('./web.dom.iterable-a0e279c1.js');
|
|
16
|
-
require('./typeof-
|
|
18
|
+
require('./typeof-725500bc.js');
|
|
17
19
|
require('./_is-array-754e012d.js');
|
|
18
20
|
var React = require('react');
|
|
21
|
+
var React__default = _interopDefault(React);
|
|
19
22
|
require('./events-1b438fe7.js');
|
|
20
|
-
require('./index-
|
|
23
|
+
require('./index-98e01cb9.js');
|
|
21
24
|
var PropTypes = require('prop-types');
|
|
25
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
22
26
|
require('react-bootstrap/Row');
|
|
23
27
|
require('react-bootstrap/Col');
|
|
24
28
|
require('react-bootstrap/Card');
|
|
25
|
-
var moment = require('./moment-
|
|
29
|
+
var moment = require('./moment-575fe24c.js');
|
|
26
30
|
require('next/router');
|
|
27
31
|
require('./isSymbol-04666465.js');
|
|
28
32
|
require('./debounce-529c8d06.js');
|
|
29
33
|
require('./toNumber-36d1e7e5.js');
|
|
30
|
-
require('./index.es-
|
|
34
|
+
require('./index.es-9110add6.js');
|
|
31
35
|
require('react-dom');
|
|
32
|
-
require('./visibility-sensor-
|
|
33
|
-
require('./index-
|
|
36
|
+
require('./visibility-sensor-ad5e3116.js');
|
|
37
|
+
require('./index-be0c82be.js');
|
|
34
38
|
var urlFor = require('./urlFor.js');
|
|
35
|
-
require('./index-
|
|
36
|
-
require('./main-
|
|
39
|
+
require('./index-96b3db50.js');
|
|
40
|
+
require('./main-02daeefe.js');
|
|
37
41
|
require('./entities-310b46ee.js');
|
|
38
42
|
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
39
43
|
require('./stringify-7c5aff47.js');
|
|
@@ -41,14 +45,14 @@ var asyncToGenerator$1 = require('./asyncToGenerator-140e5f89.js');
|
|
|
41
45
|
require('./Segment.js');
|
|
42
46
|
require('./Beam.js');
|
|
43
47
|
require('./AdSlot.js');
|
|
44
|
-
require('./ADInfeed-
|
|
45
|
-
require('./lodash-
|
|
46
|
-
require('./ADlgInfeed-
|
|
48
|
+
require('./ADInfeed-98c71bcd.js');
|
|
49
|
+
require('./lodash-fc2922d0.js');
|
|
50
|
+
require('./ADlgInfeed-9de32585.js');
|
|
47
51
|
require('./getContentCategory-f38a4c00.js');
|
|
48
|
-
require('./AuthorComponent-
|
|
52
|
+
require('./AuthorComponent-bb831b74.js');
|
|
49
53
|
require('react-bootstrap/Button');
|
|
50
|
-
var BlockContent = require('./BlockContent-
|
|
51
|
-
var reactSocialIcons = require('./react-social-icons-
|
|
54
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
55
|
+
var reactSocialIcons = require('./react-social-icons-f7f48f71.js');
|
|
52
56
|
require('./index-187c967e.js');
|
|
53
57
|
var smoothscroll = require('./smoothscroll-5054361f.js');
|
|
54
58
|
require('./GroupDeck.js');
|
|
@@ -56,10 +60,10 @@ require('react-bootstrap');
|
|
|
56
60
|
require('./timeDifferenceCalc.js');
|
|
57
61
|
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
58
62
|
require('./iconBase-68959171.js');
|
|
59
|
-
require('./index.esm-
|
|
60
|
-
var getSerializers = require('./index-
|
|
63
|
+
require('./index.esm-90433435.js');
|
|
64
|
+
var getSerializers = require('./index-a1e54356.js');
|
|
61
65
|
require('./util-f2c1b65b.js');
|
|
62
|
-
require('./brightcove-react-player-loader.es-
|
|
66
|
+
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
63
67
|
require('next/head');
|
|
64
68
|
require('react-share');
|
|
65
69
|
require('./SocialShare.js');
|
|
@@ -69,16 +73,1108 @@ require('react-bootstrap/Figure');
|
|
|
69
73
|
require('react-bootstrap/OverlayTrigger');
|
|
70
74
|
require('react-bootstrap/Tooltip');
|
|
71
75
|
require('react-bootstrap/Popover');
|
|
76
|
+
var inherits$1$1 = require('./inherits-8d29278d.js');
|
|
72
77
|
require('react-bootstrap/Carousel');
|
|
73
78
|
var Feature = require('./Feature.js');
|
|
74
79
|
require('react-bootstrap/Breadcrumb');
|
|
75
80
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
76
|
-
var reactTwitterEmbed = require('react-twitter-embed');
|
|
77
81
|
|
|
78
|
-
|
|
82
|
+
var isRequiredIf_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
83
|
+
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.
|
|
84
|
+
}};exports.default=isRequiredIf;
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
var isRequiredIf = _commonjsHelpers.unwrapExports(isRequiredIf_1);
|
|
90
|
+
|
|
91
|
+
var exenv = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
92
|
+
/*!
|
|
93
|
+
Copyright (c) 2015 Jed Watson.
|
|
94
|
+
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
95
|
+
All rights reserved.
|
|
96
|
+
*/
|
|
97
|
+
/* global define */
|
|
98
|
+
|
|
99
|
+
(function () {
|
|
100
|
+
|
|
101
|
+
var canUseDOM = !!(
|
|
102
|
+
typeof window !== 'undefined' &&
|
|
103
|
+
window.document &&
|
|
104
|
+
window.document.createElement
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
var ExecutionEnvironment = {
|
|
108
|
+
|
|
109
|
+
canUseDOM: canUseDOM,
|
|
110
|
+
|
|
111
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
|
112
|
+
|
|
113
|
+
canUseEventListeners:
|
|
114
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
115
|
+
|
|
116
|
+
canUseViewport: canUseDOM && !!window.screen
|
|
117
|
+
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
if ( module.exports) {
|
|
121
|
+
module.exports = ExecutionEnvironment;
|
|
122
|
+
} else {
|
|
123
|
+
window.ExecutionEnvironment = ExecutionEnvironment;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
}());
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
var twitterWidgetJs = 'https://platform.twitter.com/widgets.js';
|
|
130
|
+
|
|
131
|
+
var TwitterTimelineEmbed =
|
|
132
|
+
/*#__PURE__*/
|
|
133
|
+
function (_Component) {
|
|
134
|
+
inherits$1$1._inherits(TwitterTimelineEmbed, _Component);
|
|
135
|
+
|
|
136
|
+
function TwitterTimelineEmbed(props) {
|
|
137
|
+
var _this;
|
|
138
|
+
|
|
139
|
+
inherits$1$1._classCallCheck(this, TwitterTimelineEmbed);
|
|
140
|
+
|
|
141
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterTimelineEmbed).call(this, props));
|
|
142
|
+
_this.state = {
|
|
143
|
+
isLoading: true
|
|
144
|
+
};
|
|
145
|
+
return _this;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
inherits$1$1._createClass(TwitterTimelineEmbed, [{
|
|
149
|
+
key: "buildChromeOptions",
|
|
150
|
+
value: function buildChromeOptions(options) {
|
|
151
|
+
options.chrome = '';
|
|
152
|
+
|
|
153
|
+
if (this.props.noHeader) {
|
|
154
|
+
options.chrome = options.chrome + ' noheader';
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (this.props.noFooter) {
|
|
158
|
+
options.chrome = options.chrome + ' nofooter';
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (this.props.noBorders) {
|
|
162
|
+
options.chrome = options.chrome + ' noborders';
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (this.props.noScrollbar) {
|
|
166
|
+
options.chrome = options.chrome + ' noscrollbar';
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if (this.props.transparent) {
|
|
170
|
+
options.chrome = options.chrome + ' transparent';
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return options;
|
|
174
|
+
}
|
|
175
|
+
}, {
|
|
176
|
+
key: "buildOptions",
|
|
177
|
+
value: function buildOptions() {
|
|
178
|
+
var options = Object.assign({}, this.props.options);
|
|
179
|
+
|
|
180
|
+
if (this.props.autoHeight) {
|
|
181
|
+
options.height = this.refs.embedContainer.parentNode.offsetHeight;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
options = Object.assign({}, options, {
|
|
185
|
+
theme: this.props.theme,
|
|
186
|
+
linkColor: this.props.linkColor,
|
|
187
|
+
borderColor: this.props.borderColor,
|
|
188
|
+
lang: this.props.lang
|
|
189
|
+
});
|
|
190
|
+
return options;
|
|
191
|
+
}
|
|
192
|
+
}, {
|
|
193
|
+
key: "renderWidget",
|
|
194
|
+
value: function renderWidget(options) {
|
|
195
|
+
var _this2 = this;
|
|
196
|
+
|
|
197
|
+
var onLoad = this.props.onLoad;
|
|
198
|
+
|
|
199
|
+
if (!this.isMountCanceled) {
|
|
200
|
+
window.twttr.widgets.createTimeline({
|
|
201
|
+
sourceType: this.props.sourceType,
|
|
202
|
+
screenName: this.props.screenName,
|
|
203
|
+
userId: this.props.userId,
|
|
204
|
+
ownerScreenName: this.props.ownerScreenName,
|
|
205
|
+
slug: this.props.slug,
|
|
206
|
+
id: this.props.id || this.props.widgetId,
|
|
207
|
+
url: this.props.url
|
|
208
|
+
}, this.refs.embedContainer, options).then(function (element) {
|
|
209
|
+
_this2.setState({
|
|
210
|
+
isLoading: false
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
if (onLoad) {
|
|
214
|
+
onLoad(element);
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}, {
|
|
220
|
+
key: "componentDidMount",
|
|
221
|
+
value: function componentDidMount() {
|
|
222
|
+
var _this3 = this;
|
|
223
|
+
|
|
224
|
+
if (exenv.canUseDOM) {
|
|
225
|
+
var script = require('scriptjs');
|
|
226
|
+
|
|
227
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
228
|
+
if (!window.twttr) {
|
|
229
|
+
console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.');
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
var options = _this3.buildOptions();
|
|
234
|
+
/** Append chrome options */
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
options = _this3.buildChromeOptions(options);
|
|
238
|
+
|
|
239
|
+
_this3.renderWidget(options);
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}, {
|
|
244
|
+
key: "componentWillUnmount",
|
|
245
|
+
value: function componentWillUnmount() {
|
|
246
|
+
this.isMountCanceled = true;
|
|
247
|
+
}
|
|
248
|
+
}, {
|
|
249
|
+
key: "render",
|
|
250
|
+
value: function render() {
|
|
251
|
+
var isLoading = this.state.isLoading;
|
|
252
|
+
var placeholder = this.props.placeholder;
|
|
253
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
254
|
+
ref: "embedContainer"
|
|
255
|
+
}));
|
|
256
|
+
}
|
|
257
|
+
}]);
|
|
258
|
+
|
|
259
|
+
return TwitterTimelineEmbed;
|
|
260
|
+
}(React.Component);
|
|
261
|
+
|
|
262
|
+
inherits$1$1._defineProperty(TwitterTimelineEmbed, "propTypes", {
|
|
263
|
+
/**
|
|
264
|
+
* This can be either of profile, likes, list, collection, URL, widget
|
|
265
|
+
*/
|
|
266
|
+
sourceType: PropTypes__default.oneOf(['profile', 'likes', 'list', 'collection', 'url', 'widget']).isRequired,
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* username of twitter handle as String
|
|
270
|
+
*/
|
|
271
|
+
screenName: isRequiredIf(PropTypes__default.string, function (props) {
|
|
272
|
+
return !props.hasOwnProperty('userId') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
273
|
+
}),
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* UserId of twitter handle as number
|
|
277
|
+
*/
|
|
278
|
+
userId: isRequiredIf(PropTypes__default.number, function (props) {
|
|
279
|
+
return !props.hasOwnProperty('screenName') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
280
|
+
}),
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* To show list, used along with slug
|
|
284
|
+
*/
|
|
285
|
+
ownerScreenName: isRequiredIf(PropTypes__default.string, function (props) {
|
|
286
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
287
|
+
}),
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* To show list, used along with ownerScreenName
|
|
291
|
+
*/
|
|
292
|
+
slug: isRequiredIf(PropTypes__default.string, function (props) {
|
|
293
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
294
|
+
}),
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* To show list, unique list id
|
|
298
|
+
* Also used with collections, in that case its valid collection id
|
|
299
|
+
*/
|
|
300
|
+
id: isRequiredIf(PropTypes__default.oneOfType([PropTypes__default.number, PropTypes__default.string]), function (props) {
|
|
301
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('ownerScreenName') && !props.hasOwnProperty('slug') || props.sourceType === 'collection';
|
|
302
|
+
}),
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* To show twitter content with url.
|
|
306
|
+
* Supported content includes profiles, likes, lists, and collections.
|
|
307
|
+
*/
|
|
308
|
+
url: isRequiredIf(PropTypes__default.string, function (props) {
|
|
309
|
+
return props.sourceType === 'url';
|
|
310
|
+
}),
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* To show custom widget
|
|
314
|
+
*/
|
|
315
|
+
widgetId: isRequiredIf(PropTypes__default.string, function (props) {
|
|
316
|
+
return props.sourceType === 'widget';
|
|
317
|
+
}),
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Additional options to pass to twitter widget plugin
|
|
321
|
+
*/
|
|
322
|
+
options: PropTypes__default.object,
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Automatically fit into parent container height
|
|
326
|
+
*/
|
|
327
|
+
autoHeight: PropTypes__default.bool,
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* With dark or light theme
|
|
331
|
+
*/
|
|
332
|
+
theme: PropTypes__default.oneOf(['dark', 'light']),
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* With custom link colors. Note: Only Hex colors are supported.
|
|
336
|
+
*/
|
|
337
|
+
linkColor: PropTypes__default.string,
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* With custom border colors. Note: Only Hex colors are supported.
|
|
341
|
+
*/
|
|
342
|
+
borderColor: PropTypes__default.string,
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Hide the header from timeline
|
|
346
|
+
*/
|
|
347
|
+
noHeader: PropTypes__default.bool,
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Hide the footer from timeline
|
|
351
|
+
*/
|
|
352
|
+
noFooter: PropTypes__default.bool,
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Hide the border from timeline
|
|
356
|
+
*/
|
|
357
|
+
noBorders: PropTypes__default.bool,
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Hide the scrollbars
|
|
361
|
+
*/
|
|
362
|
+
noScrollbar: PropTypes__default.bool,
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Enable Transparancy
|
|
366
|
+
*/
|
|
367
|
+
transparent: PropTypes__default.bool,
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Custom language code. Supported codes here: https://developer.twitter.com/en/docs/twitter-for-websites/twitter-for-websites-supported-languages/overview.html
|
|
371
|
+
*/
|
|
372
|
+
lang: PropTypes__default.string,
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Placeholder while tweet is loading
|
|
376
|
+
*/
|
|
377
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Function to execute after load, return html element
|
|
381
|
+
*/
|
|
382
|
+
onLoad: PropTypes__default.func
|
|
383
|
+
});
|
|
384
|
+
|
|
385
|
+
var TwitterShareButton =
|
|
386
|
+
/*#__PURE__*/
|
|
387
|
+
function (_Component) {
|
|
388
|
+
inherits$1$1._inherits(TwitterShareButton, _Component);
|
|
389
|
+
|
|
390
|
+
function TwitterShareButton(props) {
|
|
391
|
+
var _this;
|
|
392
|
+
|
|
393
|
+
inherits$1$1._classCallCheck(this, TwitterShareButton);
|
|
394
|
+
|
|
395
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterShareButton).call(this, props));
|
|
396
|
+
_this.state = {
|
|
397
|
+
isLoading: true
|
|
398
|
+
};
|
|
399
|
+
return _this;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
inherits$1$1._createClass(TwitterShareButton, [{
|
|
403
|
+
key: "componentDidMount",
|
|
404
|
+
value: function componentDidMount() {
|
|
405
|
+
var _this2 = this;
|
|
406
|
+
|
|
407
|
+
var onLoad = this.props.onLoad;
|
|
408
|
+
|
|
409
|
+
if (exenv.canUseDOM) {
|
|
410
|
+
var script = require('scriptjs');
|
|
411
|
+
|
|
412
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
413
|
+
if (!window.twttr) {
|
|
414
|
+
console.error('Failure to load window.twttr in TwitterShareButton, aborting load.');
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
if (!_this2.isMountCanceled) {
|
|
419
|
+
window.twttr.widgets.createShareButton(_this2.props.url, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
420
|
+
_this2.setState({
|
|
421
|
+
isLoading: false
|
|
422
|
+
});
|
|
423
|
+
|
|
424
|
+
if (onLoad) {
|
|
425
|
+
onLoad(element);
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}, {
|
|
433
|
+
key: "componentWillUnmount",
|
|
434
|
+
value: function componentWillUnmount() {
|
|
435
|
+
this.isMountCanceled = true;
|
|
436
|
+
}
|
|
437
|
+
}, {
|
|
438
|
+
key: "render",
|
|
439
|
+
value: function render() {
|
|
440
|
+
var isLoading = this.state.isLoading;
|
|
441
|
+
var placeholder = this.props.placeholder;
|
|
442
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
443
|
+
ref: "embedContainer"
|
|
444
|
+
}));
|
|
445
|
+
}
|
|
446
|
+
}]);
|
|
447
|
+
|
|
448
|
+
return TwitterShareButton;
|
|
449
|
+
}(React.Component);
|
|
450
|
+
|
|
451
|
+
inherits$1$1._defineProperty(TwitterShareButton, "propTypes", {
|
|
452
|
+
/**
|
|
453
|
+
* Url for sharing
|
|
454
|
+
*/
|
|
455
|
+
url: PropTypes__default.string.isRequired,
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Additional options for overriding config. Details at : https://dev.twitter.com/web/tweet-button/parameters
|
|
459
|
+
*/
|
|
460
|
+
options: PropTypes__default.object,
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Placeholder while tweet is loading
|
|
464
|
+
*/
|
|
465
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Function to execute after load, return html element
|
|
469
|
+
*/
|
|
470
|
+
onLoad: PropTypes__default.func
|
|
471
|
+
});
|
|
472
|
+
|
|
473
|
+
var TwitterFollowButton =
|
|
474
|
+
/*#__PURE__*/
|
|
475
|
+
function (_Component) {
|
|
476
|
+
inherits$1$1._inherits(TwitterFollowButton, _Component);
|
|
477
|
+
|
|
478
|
+
function TwitterFollowButton(props) {
|
|
479
|
+
var _this;
|
|
480
|
+
|
|
481
|
+
inherits$1$1._classCallCheck(this, TwitterFollowButton);
|
|
482
|
+
|
|
483
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterFollowButton).call(this, props));
|
|
484
|
+
_this.state = {
|
|
485
|
+
isLoading: true
|
|
486
|
+
};
|
|
487
|
+
return _this;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
inherits$1$1._createClass(TwitterFollowButton, [{
|
|
491
|
+
key: "componentDidMount",
|
|
492
|
+
value: function componentDidMount() {
|
|
493
|
+
var _this2 = this;
|
|
494
|
+
|
|
495
|
+
var onLoad = this.props.onLoad;
|
|
496
|
+
|
|
497
|
+
if (exenv.canUseDOM) {
|
|
498
|
+
var script = require('scriptjs');
|
|
499
|
+
|
|
500
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
501
|
+
if (!window.twttr) {
|
|
502
|
+
console.error('Failure to load window.twttr in TwitterFollowButton, aborting load.');
|
|
503
|
+
return;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
if (!_this2.isMountCanceled) {
|
|
507
|
+
window.twttr.widgets.createFollowButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
508
|
+
_this2.setState({
|
|
509
|
+
isLoading: false
|
|
510
|
+
});
|
|
511
|
+
|
|
512
|
+
if (onLoad) {
|
|
513
|
+
onLoad(element);
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}, {
|
|
521
|
+
key: "componentWillUnmount",
|
|
522
|
+
value: function componentWillUnmount() {
|
|
523
|
+
this.isMountCanceled = true;
|
|
524
|
+
}
|
|
525
|
+
}, {
|
|
526
|
+
key: "render",
|
|
527
|
+
value: function render() {
|
|
528
|
+
var isLoading = this.state.isLoading;
|
|
529
|
+
var placeholder = this.props.placeholder;
|
|
530
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
531
|
+
ref: "embedContainer"
|
|
532
|
+
}));
|
|
533
|
+
}
|
|
534
|
+
}]);
|
|
535
|
+
|
|
536
|
+
return TwitterFollowButton;
|
|
537
|
+
}(React.Component);
|
|
538
|
+
|
|
539
|
+
inherits$1$1._defineProperty(TwitterFollowButton, "propTypes", {
|
|
540
|
+
/**
|
|
541
|
+
* Username of twitter user which will be followed on click
|
|
542
|
+
*/
|
|
543
|
+
screenName: PropTypes__default.string.isRequired,
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Additional options to be added to the button
|
|
547
|
+
*/
|
|
548
|
+
options: PropTypes__default.object,
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Placeholder while tweet is loading
|
|
552
|
+
*/
|
|
553
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Function to execute after load, return html element
|
|
557
|
+
*/
|
|
558
|
+
onLoad: PropTypes__default.func
|
|
559
|
+
});
|
|
560
|
+
|
|
561
|
+
var TwitterHashtagButton =
|
|
562
|
+
/*#__PURE__*/
|
|
563
|
+
function (_Component) {
|
|
564
|
+
inherits$1$1._inherits(TwitterHashtagButton, _Component);
|
|
565
|
+
|
|
566
|
+
function TwitterHashtagButton(props) {
|
|
567
|
+
var _this;
|
|
568
|
+
|
|
569
|
+
inherits$1$1._classCallCheck(this, TwitterHashtagButton);
|
|
570
|
+
|
|
571
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterHashtagButton).call(this, props));
|
|
572
|
+
_this.state = {
|
|
573
|
+
isLoading: true
|
|
574
|
+
};
|
|
575
|
+
return _this;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
inherits$1$1._createClass(TwitterHashtagButton, [{
|
|
579
|
+
key: "componentDidMount",
|
|
580
|
+
value: function componentDidMount() {
|
|
581
|
+
var _this2 = this;
|
|
582
|
+
|
|
583
|
+
var onLoad = this.props.onLoad;
|
|
584
|
+
|
|
585
|
+
if (exenv.canUseDOM) {
|
|
586
|
+
var script = require('scriptjs');
|
|
587
|
+
|
|
588
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
589
|
+
if (!window.twttr) {
|
|
590
|
+
console.error('Failure to load window.twttr in TwitterHashtagButton, aborting load.');
|
|
591
|
+
return;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
if (!_this2.isMountCanceled) {
|
|
595
|
+
window.twttr.widgets.createHashtagButton(_this2.props.tag, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
596
|
+
_this2.setState({
|
|
597
|
+
isLoading: false
|
|
598
|
+
});
|
|
599
|
+
|
|
600
|
+
if (onLoad) {
|
|
601
|
+
onLoad(element);
|
|
602
|
+
}
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}, {
|
|
609
|
+
key: "componentWillUnmount",
|
|
610
|
+
value: function componentWillUnmount() {
|
|
611
|
+
this.isMountCanceled = true;
|
|
612
|
+
}
|
|
613
|
+
}, {
|
|
614
|
+
key: "render",
|
|
615
|
+
value: function render() {
|
|
616
|
+
var isLoading = this.state.isLoading;
|
|
617
|
+
var placeholder = this.props.placeholder;
|
|
618
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
619
|
+
ref: "embedContainer"
|
|
620
|
+
}));
|
|
621
|
+
}
|
|
622
|
+
}]);
|
|
623
|
+
|
|
624
|
+
return TwitterHashtagButton;
|
|
625
|
+
}(React.Component);
|
|
626
|
+
|
|
627
|
+
inherits$1$1._defineProperty(TwitterHashtagButton, "propTypes", {
|
|
628
|
+
/**
|
|
629
|
+
* Tag name for hashtag button
|
|
630
|
+
*/
|
|
631
|
+
tag: PropTypes__default.string.isRequired,
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Additional options to be added to the button
|
|
635
|
+
*/
|
|
636
|
+
options: PropTypes__default.object,
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Placeholder while tweet is loading
|
|
640
|
+
*/
|
|
641
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Function to execute after load, return html element
|
|
645
|
+
*/
|
|
646
|
+
onLoad: PropTypes__default.func
|
|
647
|
+
});
|
|
648
|
+
|
|
649
|
+
var TwitterMentionButton =
|
|
650
|
+
/*#__PURE__*/
|
|
651
|
+
function (_Component) {
|
|
652
|
+
inherits$1$1._inherits(TwitterMentionButton, _Component);
|
|
653
|
+
|
|
654
|
+
function TwitterMentionButton(props) {
|
|
655
|
+
var _this;
|
|
656
|
+
|
|
657
|
+
inherits$1$1._classCallCheck(this, TwitterMentionButton);
|
|
658
|
+
|
|
659
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterMentionButton).call(this, props));
|
|
660
|
+
_this.state = {
|
|
661
|
+
isLoading: true
|
|
662
|
+
};
|
|
663
|
+
return _this;
|
|
664
|
+
}
|
|
79
665
|
|
|
80
|
-
|
|
81
|
-
|
|
666
|
+
inherits$1$1._createClass(TwitterMentionButton, [{
|
|
667
|
+
key: "componentDidMount",
|
|
668
|
+
value: function componentDidMount() {
|
|
669
|
+
var _this2 = this;
|
|
670
|
+
|
|
671
|
+
var onLoad = this.props.onLoad;
|
|
672
|
+
|
|
673
|
+
if (exenv.canUseDOM) {
|
|
674
|
+
var script = require('scriptjs');
|
|
675
|
+
|
|
676
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
677
|
+
if (!window.twttr) {
|
|
678
|
+
console.error('Failure to load window.twttr in TwitterMentionButton, aborting load.');
|
|
679
|
+
return;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
if (!_this2.isMountCanceled) {
|
|
683
|
+
window.twttr.widgets.createMentionButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
684
|
+
_this2.setState({
|
|
685
|
+
isLoading: false
|
|
686
|
+
});
|
|
687
|
+
|
|
688
|
+
if (onLoad) {
|
|
689
|
+
onLoad(element);
|
|
690
|
+
}
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
}, {
|
|
697
|
+
key: "componentWillUnmount",
|
|
698
|
+
value: function componentWillUnmount() {
|
|
699
|
+
this.isMountCanceled = true;
|
|
700
|
+
}
|
|
701
|
+
}, {
|
|
702
|
+
key: "render",
|
|
703
|
+
value: function render() {
|
|
704
|
+
var isLoading = this.state.isLoading;
|
|
705
|
+
var placeholder = this.props.placeholder;
|
|
706
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
707
|
+
ref: "embedContainer"
|
|
708
|
+
}));
|
|
709
|
+
}
|
|
710
|
+
}]);
|
|
711
|
+
|
|
712
|
+
return TwitterMentionButton;
|
|
713
|
+
}(React.Component);
|
|
714
|
+
|
|
715
|
+
inherits$1$1._defineProperty(TwitterMentionButton, "propTypes", {
|
|
716
|
+
/**
|
|
717
|
+
* Username to which you will need to tweet
|
|
718
|
+
*/
|
|
719
|
+
screenName: PropTypes__default.string.isRequired,
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Additional options for overriding config.
|
|
723
|
+
*/
|
|
724
|
+
options: PropTypes__default.object,
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Placeholder while tweet is loading
|
|
728
|
+
*/
|
|
729
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Function to execute after load, return html element
|
|
733
|
+
*/
|
|
734
|
+
onLoad: PropTypes__default.func
|
|
735
|
+
});
|
|
736
|
+
|
|
737
|
+
var TwitterTweetEmbed =
|
|
738
|
+
/*#__PURE__*/
|
|
739
|
+
function (_Component) {
|
|
740
|
+
inherits$1$1._inherits(TwitterTweetEmbed, _Component);
|
|
741
|
+
|
|
742
|
+
function TwitterTweetEmbed(props) {
|
|
743
|
+
var _this;
|
|
744
|
+
|
|
745
|
+
inherits$1$1._classCallCheck(this, TwitterTweetEmbed);
|
|
746
|
+
|
|
747
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterTweetEmbed).call(this, props));
|
|
748
|
+
_this.state = {
|
|
749
|
+
isLoading: true
|
|
750
|
+
};
|
|
751
|
+
return _this;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
inherits$1$1._createClass(TwitterTweetEmbed, [{
|
|
755
|
+
key: "renderWidget",
|
|
756
|
+
value: function renderWidget() {
|
|
757
|
+
var _this2 = this;
|
|
758
|
+
|
|
759
|
+
var onLoad = this.props.onLoad;
|
|
760
|
+
|
|
761
|
+
if (!window.twttr) {
|
|
762
|
+
console.error('Failure to load window.twttr in TwitterTweetEmbed, aborting load.');
|
|
763
|
+
return;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
if (!this.isMountCanceled) {
|
|
767
|
+
window.twttr.widgets.createTweet(this.props.tweetId, this.refs.embedContainer, this.props.options).then(function (element) {
|
|
768
|
+
_this2.setState({
|
|
769
|
+
isLoading: false
|
|
770
|
+
});
|
|
771
|
+
|
|
772
|
+
if (onLoad) {
|
|
773
|
+
onLoad(element);
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
}, {
|
|
779
|
+
key: "componentDidMount",
|
|
780
|
+
value: function componentDidMount() {
|
|
781
|
+
var _this3 = this;
|
|
782
|
+
|
|
783
|
+
if (exenv.canUseDOM) {
|
|
784
|
+
var script = require('scriptjs');
|
|
785
|
+
|
|
786
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
787
|
+
_this3.renderWidget();
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
}, {
|
|
792
|
+
key: "componentWillUnmount",
|
|
793
|
+
value: function componentWillUnmount() {
|
|
794
|
+
this.isMountCanceled = true;
|
|
795
|
+
}
|
|
796
|
+
}, {
|
|
797
|
+
key: "render",
|
|
798
|
+
value: function render() {
|
|
799
|
+
var isLoading = this.state.isLoading;
|
|
800
|
+
var placeholder = this.props.placeholder;
|
|
801
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
802
|
+
ref: "embedContainer"
|
|
803
|
+
}));
|
|
804
|
+
}
|
|
805
|
+
}]);
|
|
806
|
+
|
|
807
|
+
return TwitterTweetEmbed;
|
|
808
|
+
}(React.Component);
|
|
809
|
+
|
|
810
|
+
inherits$1$1._defineProperty(TwitterTweetEmbed, "propTypes", {
|
|
811
|
+
/**
|
|
812
|
+
* Tweet id that needs to be shown
|
|
813
|
+
*/
|
|
814
|
+
tweetId: PropTypes__default.string.isRequired,
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* Additional options to pass to twitter widget plugin
|
|
818
|
+
*/
|
|
819
|
+
options: PropTypes__default.object,
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* Placeholder while tweet is loading
|
|
823
|
+
*/
|
|
824
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* Function to execute after load, return html element
|
|
828
|
+
*/
|
|
829
|
+
onLoad: PropTypes__default.func
|
|
830
|
+
});
|
|
831
|
+
|
|
832
|
+
var TwitterMomentShare =
|
|
833
|
+
/*#__PURE__*/
|
|
834
|
+
function (_Component) {
|
|
835
|
+
inherits$1$1._inherits(TwitterMomentShare, _Component);
|
|
836
|
+
|
|
837
|
+
function TwitterMomentShare(props) {
|
|
838
|
+
var _this;
|
|
839
|
+
|
|
840
|
+
inherits$1$1._classCallCheck(this, TwitterMomentShare);
|
|
841
|
+
|
|
842
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterMomentShare).call(this, props));
|
|
843
|
+
_this.state = {
|
|
844
|
+
isLoading: true
|
|
845
|
+
};
|
|
846
|
+
return _this;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
inherits$1$1._createClass(TwitterMomentShare, [{
|
|
850
|
+
key: "componentDidMount",
|
|
851
|
+
value: function componentDidMount() {
|
|
852
|
+
var _this2 = this;
|
|
853
|
+
|
|
854
|
+
var onLoad = this.props.onLoad;
|
|
855
|
+
|
|
856
|
+
if (exenv.canUseDOM) {
|
|
857
|
+
var script = require('scriptjs');
|
|
858
|
+
|
|
859
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
860
|
+
if (!window.twttr) {
|
|
861
|
+
console.error('Failure to load window.twttr in TwitterMomentShare, aborting load.');
|
|
862
|
+
return;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
if (!_this2.isMountCanceled) {
|
|
866
|
+
window.twttr.widgets.createMoment(_this2.props.momentId, _this2.refs.shareMoment, _this2.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
|
+
}
|
|
879
|
+
}, {
|
|
880
|
+
key: "componentWillUnmount",
|
|
881
|
+
value: function componentWillUnmount() {
|
|
882
|
+
this.isMountCanceled = true;
|
|
883
|
+
}
|
|
884
|
+
}, {
|
|
885
|
+
key: "render",
|
|
886
|
+
value: function render() {
|
|
887
|
+
var isLoading = this.state.isLoading;
|
|
888
|
+
var placeholder = this.props.placeholder;
|
|
889
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
890
|
+
ref: "shareMoment"
|
|
891
|
+
}));
|
|
892
|
+
}
|
|
893
|
+
}]);
|
|
894
|
+
|
|
895
|
+
return TwitterMomentShare;
|
|
896
|
+
}(React.Component);
|
|
897
|
+
|
|
898
|
+
inherits$1$1._defineProperty(TwitterMomentShare, "propTypes", {
|
|
899
|
+
/**
|
|
900
|
+
* id of Twitter moment to show
|
|
901
|
+
*/
|
|
902
|
+
momentId: PropTypes__default.string.isRequired,
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* Additional options for overriding config.
|
|
906
|
+
*/
|
|
907
|
+
options: PropTypes__default.object,
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* Placeholder while tweet is loading
|
|
911
|
+
*/
|
|
912
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* Function to execute after load, return html element
|
|
916
|
+
*/
|
|
917
|
+
onLoad: PropTypes__default.func
|
|
918
|
+
});
|
|
919
|
+
|
|
920
|
+
var TwitterDMButton =
|
|
921
|
+
/*#__PURE__*/
|
|
922
|
+
function (_Component) {
|
|
923
|
+
inherits$1$1._inherits(TwitterDMButton, _Component);
|
|
924
|
+
|
|
925
|
+
function TwitterDMButton(props) {
|
|
926
|
+
var _this;
|
|
927
|
+
|
|
928
|
+
inherits$1$1._classCallCheck(this, TwitterDMButton);
|
|
929
|
+
|
|
930
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterDMButton).call(this, props));
|
|
931
|
+
_this.state = {
|
|
932
|
+
isLoading: true
|
|
933
|
+
};
|
|
934
|
+
return _this;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
inherits$1$1._createClass(TwitterDMButton, [{
|
|
938
|
+
key: "componentDidMount",
|
|
939
|
+
value: function componentDidMount() {
|
|
940
|
+
var _this2 = this;
|
|
941
|
+
|
|
942
|
+
var onLoad = this.props.onLoad;
|
|
943
|
+
|
|
944
|
+
if (exenv.canUseDOM) {
|
|
945
|
+
var script = require('scriptjs');
|
|
946
|
+
|
|
947
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
948
|
+
if (!window.twttr) {
|
|
949
|
+
console.error('Failure to load window.twttr in TwitterDMButton, aborting load.');
|
|
950
|
+
return;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
if (!_this2.isMountCanceled) {
|
|
954
|
+
window.twttr.widgets.createDMButton(_this2.props.id, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
955
|
+
_this2.setState({
|
|
956
|
+
isLoading: false
|
|
957
|
+
});
|
|
958
|
+
|
|
959
|
+
if (onLoad) {
|
|
960
|
+
onLoad(element);
|
|
961
|
+
}
|
|
962
|
+
});
|
|
963
|
+
}
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
}, {
|
|
968
|
+
key: "componentWillUnmount",
|
|
969
|
+
value: function componentWillUnmount() {
|
|
970
|
+
this.isMountCanceled = true;
|
|
971
|
+
}
|
|
972
|
+
}, {
|
|
973
|
+
key: "render",
|
|
974
|
+
value: function render() {
|
|
975
|
+
var isLoading = this.state.isLoading;
|
|
976
|
+
var placeholder = this.props.placeholder;
|
|
977
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
978
|
+
ref: "embedContainer"
|
|
979
|
+
}));
|
|
980
|
+
}
|
|
981
|
+
}]);
|
|
982
|
+
|
|
983
|
+
return TwitterDMButton;
|
|
984
|
+
}(React.Component);
|
|
985
|
+
|
|
986
|
+
inherits$1$1._defineProperty(TwitterDMButton, "propTypes", {
|
|
987
|
+
/**
|
|
988
|
+
* Twitter user id for DM button
|
|
989
|
+
*/
|
|
990
|
+
id: PropTypes__default.number.isRequired,
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* Additional options to be added to the button
|
|
994
|
+
*/
|
|
995
|
+
options: PropTypes__default.object,
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* Placeholder while tweet is loading
|
|
999
|
+
*/
|
|
1000
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
1001
|
+
|
|
1002
|
+
/**
|
|
1003
|
+
* Function to execute after load, return html element
|
|
1004
|
+
*/
|
|
1005
|
+
onLoad: PropTypes__default.func
|
|
1006
|
+
});
|
|
1007
|
+
|
|
1008
|
+
var TwitterVideoEmbed =
|
|
1009
|
+
/*#__PURE__*/
|
|
1010
|
+
function (_Component) {
|
|
1011
|
+
inherits$1$1._inherits(TwitterVideoEmbed, _Component);
|
|
1012
|
+
|
|
1013
|
+
function TwitterVideoEmbed(props) {
|
|
1014
|
+
var _this;
|
|
1015
|
+
|
|
1016
|
+
inherits$1$1._classCallCheck(this, TwitterVideoEmbed);
|
|
1017
|
+
|
|
1018
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterVideoEmbed).call(this, props));
|
|
1019
|
+
_this.state = {
|
|
1020
|
+
isLoading: true
|
|
1021
|
+
};
|
|
1022
|
+
return _this;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
inherits$1$1._createClass(TwitterVideoEmbed, [{
|
|
1026
|
+
key: "componentDidMount",
|
|
1027
|
+
value: function componentDidMount() {
|
|
1028
|
+
var _this2 = this;
|
|
1029
|
+
|
|
1030
|
+
var onLoad = this.props.onLoad;
|
|
1031
|
+
|
|
1032
|
+
if (exenv.canUseDOM) {
|
|
1033
|
+
var script = require('scriptjs');
|
|
1034
|
+
|
|
1035
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1036
|
+
if (!window.twttr) {
|
|
1037
|
+
console.error('Failure to load window.twttr in TwitterVideoEmbed, aborting load.');
|
|
1038
|
+
return;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
if (!_this2.isMountCanceled) {
|
|
1042
|
+
window.twttr.widgets.createVideo(_this2.props.id, _this2.refs.embedContainer).then(function (element) {
|
|
1043
|
+
_this2.setState({
|
|
1044
|
+
isLoading: false
|
|
1045
|
+
});
|
|
1046
|
+
|
|
1047
|
+
if (onLoad) {
|
|
1048
|
+
onLoad(element);
|
|
1049
|
+
}
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
}, {
|
|
1056
|
+
key: "componentWillUnmount",
|
|
1057
|
+
value: function componentWillUnmount() {
|
|
1058
|
+
this.isMountCanceled = true;
|
|
1059
|
+
}
|
|
1060
|
+
}, {
|
|
1061
|
+
key: "render",
|
|
1062
|
+
value: function render() {
|
|
1063
|
+
var isLoading = this.state.isLoading;
|
|
1064
|
+
var placeholder = this.props.placeholder;
|
|
1065
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1066
|
+
ref: "embedContainer"
|
|
1067
|
+
}));
|
|
1068
|
+
}
|
|
1069
|
+
}]);
|
|
1070
|
+
|
|
1071
|
+
return TwitterVideoEmbed;
|
|
1072
|
+
}(React.Component);
|
|
1073
|
+
|
|
1074
|
+
inherits$1$1._defineProperty(TwitterVideoEmbed, "propTypes", {
|
|
1075
|
+
/**
|
|
1076
|
+
* Id of video tweet.
|
|
1077
|
+
*/
|
|
1078
|
+
id: PropTypes__default.string.isRequired,
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* Placeholder while tweet is loading
|
|
1082
|
+
*/
|
|
1083
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* Function to execute after load, return html element
|
|
1087
|
+
*/
|
|
1088
|
+
onLoad: PropTypes__default.func
|
|
1089
|
+
});
|
|
1090
|
+
|
|
1091
|
+
var TwitterOnAirButton =
|
|
1092
|
+
/*#__PURE__*/
|
|
1093
|
+
function (_Component) {
|
|
1094
|
+
inherits$1$1._inherits(TwitterOnAirButton, _Component);
|
|
1095
|
+
|
|
1096
|
+
function TwitterOnAirButton(props) {
|
|
1097
|
+
var _this;
|
|
1098
|
+
|
|
1099
|
+
inherits$1$1._classCallCheck(this, TwitterOnAirButton);
|
|
1100
|
+
|
|
1101
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterOnAirButton).call(this, props));
|
|
1102
|
+
_this.state = {
|
|
1103
|
+
isLoading: true
|
|
1104
|
+
};
|
|
1105
|
+
return _this;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
inherits$1$1._createClass(TwitterOnAirButton, [{
|
|
1109
|
+
key: "componentDidMount",
|
|
1110
|
+
value: function componentDidMount() {
|
|
1111
|
+
var _this2 = this;
|
|
1112
|
+
|
|
1113
|
+
var onLoad = this.props.onLoad;
|
|
1114
|
+
|
|
1115
|
+
if (exenv.canUseDOM) {
|
|
1116
|
+
var script = require('scriptjs');
|
|
1117
|
+
|
|
1118
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1119
|
+
if (!window.twttr) {
|
|
1120
|
+
console.error('Failure to load window.twttr in TwitterOnAirButton, aborting load.');
|
|
1121
|
+
return;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
if (!_this2.isMountCanceled) {
|
|
1125
|
+
window.twttr.widgets.createPeriscopeOnAirButton(_this2.props.username, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1126
|
+
_this2.setState({
|
|
1127
|
+
isLoading: false
|
|
1128
|
+
});
|
|
1129
|
+
|
|
1130
|
+
if (onLoad) {
|
|
1131
|
+
onLoad(element);
|
|
1132
|
+
}
|
|
1133
|
+
});
|
|
1134
|
+
}
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
}, {
|
|
1139
|
+
key: "componentWillUnmount",
|
|
1140
|
+
value: function componentWillUnmount() {
|
|
1141
|
+
this.isMountCanceled = true;
|
|
1142
|
+
}
|
|
1143
|
+
}, {
|
|
1144
|
+
key: "render",
|
|
1145
|
+
value: function render() {
|
|
1146
|
+
var isLoading = this.state.isLoading;
|
|
1147
|
+
var placeholder = this.props.placeholder;
|
|
1148
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1149
|
+
ref: "embedContainer"
|
|
1150
|
+
}));
|
|
1151
|
+
}
|
|
1152
|
+
}]);
|
|
1153
|
+
|
|
1154
|
+
return TwitterOnAirButton;
|
|
1155
|
+
}(React.Component);
|
|
1156
|
+
|
|
1157
|
+
inherits$1$1._defineProperty(TwitterOnAirButton, "propTypes", {
|
|
1158
|
+
/**
|
|
1159
|
+
* Username for which you require periscope on air button
|
|
1160
|
+
*/
|
|
1161
|
+
username: PropTypes__default.string.isRequired,
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* Additional options for overriding config.
|
|
1165
|
+
*/
|
|
1166
|
+
options: PropTypes__default.object,
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* Placeholder while tweet is loading
|
|
1170
|
+
*/
|
|
1171
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* Function to execute after load, return html element
|
|
1175
|
+
*/
|
|
1176
|
+
onLoad: PropTypes__default.func
|
|
1177
|
+
});
|
|
82
1178
|
|
|
83
1179
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
84
1180
|
try {
|
|
@@ -906,7 +2002,7 @@ class Facebook$1 extends React.Component {
|
|
|
906
2002
|
handleInit,
|
|
907
2003
|
api
|
|
908
2004
|
};
|
|
909
|
-
return React__default
|
|
2005
|
+
return React__default.createElement(FacebookContext.Provider, {
|
|
910
2006
|
value: value
|
|
911
2007
|
}, children);
|
|
912
2008
|
}
|
|
@@ -1000,11 +2096,11 @@ defineProperty(Initialize, "defaultProps", {
|
|
|
1000
2096
|
api: undefined
|
|
1001
2097
|
});
|
|
1002
2098
|
|
|
1003
|
-
var Initialize$1 = React.forwardRef((props, ref) => React__default
|
|
2099
|
+
var Initialize$1 = React.forwardRef((props, ref) => React__default.createElement(FacebookContext.Consumer, null, ({
|
|
1004
2100
|
handleInit,
|
|
1005
2101
|
isReady,
|
|
1006
2102
|
api
|
|
1007
|
-
}) => React__default
|
|
2103
|
+
}) => React__default.createElement(Initialize, _extends_1({}, props, {
|
|
1008
2104
|
handleInit: handleInit,
|
|
1009
2105
|
isReady: isReady,
|
|
1010
2106
|
api: api,
|
|
@@ -1048,10 +2144,10 @@ class Parser extends React.Component {
|
|
|
1048
2144
|
className,
|
|
1049
2145
|
children
|
|
1050
2146
|
} = this.props;
|
|
1051
|
-
return React__default
|
|
2147
|
+
return React__default.createElement("div", {
|
|
1052
2148
|
className: className,
|
|
1053
2149
|
ref: this.handleContainer
|
|
1054
|
-
}, React__default
|
|
2150
|
+
}, React__default.createElement(Initialize$1, {
|
|
1055
2151
|
onReady: this.handleReady
|
|
1056
2152
|
}, children({
|
|
1057
2153
|
handleParse: this.handleParse
|
|
@@ -1094,7 +2190,7 @@ class Like extends React.PureComponent {
|
|
|
1094
2190
|
kidDirectedSite,
|
|
1095
2191
|
referral
|
|
1096
2192
|
} = this.props;
|
|
1097
|
-
return React__default
|
|
2193
|
+
return React__default.createElement("div", {
|
|
1098
2194
|
className: "fb-like",
|
|
1099
2195
|
"data-ref": referral,
|
|
1100
2196
|
"data-href": href,
|
|
@@ -1125,9 +2221,9 @@ defineProperty(Like, "defaultProps", {
|
|
|
1125
2221
|
width: undefined
|
|
1126
2222
|
});
|
|
1127
2223
|
|
|
1128
|
-
React.forwardRef((props, ref) => React__default
|
|
2224
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
1129
2225
|
handleParse
|
|
1130
|
-
}) => React__default
|
|
2226
|
+
}) => React__default.createElement(Like, _extends_1({}, props, {
|
|
1131
2227
|
handleParse: handleParse,
|
|
1132
2228
|
ref: ref
|
|
1133
2229
|
}))));
|
|
@@ -1218,7 +2314,7 @@ class Process extends React.Component {
|
|
|
1218
2314
|
data,
|
|
1219
2315
|
error
|
|
1220
2316
|
} = this.state;
|
|
1221
|
-
return React__default
|
|
2317
|
+
return React__default.createElement(Initialize$1, {
|
|
1222
2318
|
onReady: this.handleReady
|
|
1223
2319
|
}, children({
|
|
1224
2320
|
loading: !api || loading,
|
|
@@ -1298,10 +2394,10 @@ defineProperty(Send, "defaultProps", {
|
|
|
1298
2394
|
redirectURI: undefined
|
|
1299
2395
|
});
|
|
1300
2396
|
|
|
1301
|
-
React.forwardRef((props, ref) => React__default
|
|
2397
|
+
React.forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
1302
2398
|
loading,
|
|
1303
2399
|
handleProcess
|
|
1304
|
-
}) => React__default
|
|
2400
|
+
}) => React__default.createElement(Send, _extends_1({}, props, {
|
|
1305
2401
|
loading: loading,
|
|
1306
2402
|
handleProcess: handleProcess,
|
|
1307
2403
|
ref: ref
|
|
@@ -1386,12 +2482,12 @@ defineProperty(Share, "defaultProps", {
|
|
|
1386
2482
|
redirectURI: undefined
|
|
1387
2483
|
});
|
|
1388
2484
|
|
|
1389
|
-
var Share$1 = React.forwardRef((props, ref) => React__default
|
|
2485
|
+
var Share$1 = React.forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
1390
2486
|
loading,
|
|
1391
2487
|
handleProcess,
|
|
1392
2488
|
data,
|
|
1393
2489
|
error
|
|
1394
|
-
}) => React__default
|
|
2490
|
+
}) => React__default.createElement(Share, _extends_1({}, props, {
|
|
1395
2491
|
loading: loading,
|
|
1396
2492
|
handleProcess: handleProcess,
|
|
1397
2493
|
data: data,
|
|
@@ -1409,10 +2505,10 @@ function ShareButton(props) {
|
|
|
1409
2505
|
} = props,
|
|
1410
2506
|
rest = objectWithoutProperties(props, ["className", "children"]);
|
|
1411
2507
|
|
|
1412
|
-
return React__default
|
|
2508
|
+
return React__default.createElement(Share$1, rest, ({
|
|
1413
2509
|
loading,
|
|
1414
2510
|
handleClick
|
|
1415
|
-
}) => React__default
|
|
2511
|
+
}) => React__default.createElement("button", {
|
|
1416
2512
|
type: "button",
|
|
1417
2513
|
disabled: loading,
|
|
1418
2514
|
className: className,
|
|
@@ -1445,7 +2541,7 @@ class Page extends React.PureComponent {
|
|
|
1445
2541
|
adaptContainerWidth,
|
|
1446
2542
|
children
|
|
1447
2543
|
} = this.props;
|
|
1448
|
-
return React__default
|
|
2544
|
+
return React__default.createElement("div", {
|
|
1449
2545
|
className: "fb-page",
|
|
1450
2546
|
style: style,
|
|
1451
2547
|
"data-tabs": tabs,
|
|
@@ -1476,9 +2572,9 @@ defineProperty(Page, "defaultProps", {
|
|
|
1476
2572
|
href: undefined
|
|
1477
2573
|
});
|
|
1478
2574
|
|
|
1479
|
-
var Page$1 = React.forwardRef((props, ref) => React__default
|
|
2575
|
+
var Page$1 = React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
1480
2576
|
handleParse
|
|
1481
|
-
}) => React__default
|
|
2577
|
+
}) => React__default.createElement(Page, _extends_1({}, props, {
|
|
1482
2578
|
handleParse: handleParse,
|
|
1483
2579
|
ref: ref
|
|
1484
2580
|
}))));
|
|
@@ -1607,12 +2703,12 @@ defineProperty(Login, "defaultProps", {
|
|
|
1607
2703
|
eventKey: undefined
|
|
1608
2704
|
});
|
|
1609
2705
|
|
|
1610
|
-
var Login$1 = React.forwardRef((props, ref) => React__default
|
|
2706
|
+
var Login$1 = React.forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
1611
2707
|
loading,
|
|
1612
2708
|
handleProcess,
|
|
1613
2709
|
data,
|
|
1614
2710
|
error
|
|
1615
|
-
}) => React__default
|
|
2711
|
+
}) => React__default.createElement(Login, _extends_1({}, props, {
|
|
1616
2712
|
loading: loading,
|
|
1617
2713
|
handleProcess: handleProcess,
|
|
1618
2714
|
data: data,
|
|
@@ -1975,11 +3071,11 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
|
1975
3071
|
|
|
1976
3072
|
|
|
1977
3073
|
|
|
1978
|
-
var _react2 = _interopRequireDefault(React__default
|
|
3074
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
1979
3075
|
|
|
1980
3076
|
|
|
1981
3077
|
|
|
1982
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default
|
|
3078
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default);
|
|
1983
3079
|
|
|
1984
3080
|
|
|
1985
3081
|
|
|
@@ -2042,7 +3138,7 @@ var Spinner = function (_Component) {
|
|
|
2042
3138
|
|
|
2043
3139
|
|
|
2044
3140
|
if (loaded) {
|
|
2045
|
-
return this.props.children ? React__default
|
|
3141
|
+
return this.props.children ? React__default.Children.only(this.props.children) : null;
|
|
2046
3142
|
}
|
|
2047
3143
|
|
|
2048
3144
|
return _react2.default.createElement('div', { className: className, ref: 'loader' });
|
|
@@ -2050,7 +3146,7 @@ var Spinner = function (_Component) {
|
|
|
2050
3146
|
}]);
|
|
2051
3147
|
|
|
2052
3148
|
return Spinner;
|
|
2053
|
-
}(React__default
|
|
3149
|
+
}(React__default.Component);
|
|
2054
3150
|
|
|
2055
3151
|
Spinner.propTypes = {
|
|
2056
3152
|
className: _propTypes2.default.string,
|
|
@@ -2080,15 +3176,15 @@ function LoginButton(props) {
|
|
|
2080
3176
|
} = props,
|
|
2081
3177
|
rest = objectWithoutProperties(props, ["children", "className", "spinner", "spinnerConfig"]);
|
|
2082
3178
|
|
|
2083
|
-
return React__default
|
|
3179
|
+
return React__default.createElement(Login$1, rest, ({
|
|
2084
3180
|
loading,
|
|
2085
3181
|
handleClick
|
|
2086
|
-
}) => React__default
|
|
3182
|
+
}) => React__default.createElement("button", {
|
|
2087
3183
|
type: "button",
|
|
2088
3184
|
className: className,
|
|
2089
3185
|
onClick: handleClick,
|
|
2090
3186
|
disabled: loading
|
|
2091
|
-
}, children, spinner && loading && React__default
|
|
3187
|
+
}, children, spinner && loading && React__default.createElement(Spinner, {
|
|
2092
3188
|
config: spinnerConfig
|
|
2093
3189
|
})));
|
|
2094
3190
|
}
|
|
@@ -2113,7 +3209,7 @@ class EmbeddedPost extends React.PureComponent {
|
|
|
2113
3209
|
showText,
|
|
2114
3210
|
children
|
|
2115
3211
|
} = this.props;
|
|
2116
|
-
return React__default
|
|
3212
|
+
return React__default.createElement("div", {
|
|
2117
3213
|
className: "fb-post",
|
|
2118
3214
|
"data-href": href,
|
|
2119
3215
|
"data-width": width,
|
|
@@ -2129,9 +3225,9 @@ defineProperty(EmbeddedPost, "defaultProps", {
|
|
|
2129
3225
|
children: undefined
|
|
2130
3226
|
});
|
|
2131
3227
|
|
|
2132
|
-
React.forwardRef((props, ref) => React__default
|
|
3228
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2133
3229
|
handleParse
|
|
2134
|
-
}) => React__default
|
|
3230
|
+
}) => React__default.createElement(EmbeddedPost, _extends_1({}, props, {
|
|
2135
3231
|
handleParse: handleParse,
|
|
2136
3232
|
ref: ref
|
|
2137
3233
|
}))));
|
|
@@ -2154,7 +3250,7 @@ class EmbeddedVideo extends React.PureComponent {
|
|
|
2154
3250
|
showCaptions,
|
|
2155
3251
|
children
|
|
2156
3252
|
} = this.props;
|
|
2157
|
-
return React__default
|
|
3253
|
+
return React__default.createElement("div", {
|
|
2158
3254
|
className: "fb-video",
|
|
2159
3255
|
"data-href": href,
|
|
2160
3256
|
"data-width": width,
|
|
@@ -2176,9 +3272,9 @@ defineProperty(EmbeddedVideo, "defaultProps", {
|
|
|
2176
3272
|
children: undefined
|
|
2177
3273
|
});
|
|
2178
3274
|
|
|
2179
|
-
React.forwardRef((props, ref) => React__default
|
|
3275
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2180
3276
|
handleParse
|
|
2181
|
-
}) => React__default
|
|
3277
|
+
}) => React__default.createElement(EmbeddedVideo, _extends_1({}, props, {
|
|
2182
3278
|
handleParse: handleParse,
|
|
2183
3279
|
ref: ref
|
|
2184
3280
|
}))));
|
|
@@ -2201,7 +3297,7 @@ class Comments extends React.PureComponent {
|
|
|
2201
3297
|
children,
|
|
2202
3298
|
mobile
|
|
2203
3299
|
} = this.props;
|
|
2204
|
-
return React__default
|
|
3300
|
+
return React__default.createElement("div", {
|
|
2205
3301
|
className: "fb-comments",
|
|
2206
3302
|
"data-colorscheme": colorScheme,
|
|
2207
3303
|
"data-numposts": numPosts,
|
|
@@ -2225,9 +3321,9 @@ defineProperty(Comments, "defaultProps", {
|
|
|
2225
3321
|
mobile: undefined
|
|
2226
3322
|
});
|
|
2227
3323
|
|
|
2228
|
-
React.forwardRef((props, ref) => React__default
|
|
3324
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2229
3325
|
handleParse
|
|
2230
|
-
}) => React__default
|
|
3326
|
+
}) => React__default.createElement(Comments, _extends_1({}, props, {
|
|
2231
3327
|
handleParse: handleParse,
|
|
2232
3328
|
ref: ref
|
|
2233
3329
|
}))));
|
|
@@ -2245,7 +3341,7 @@ class CommentsCount extends React.PureComponent {
|
|
|
2245
3341
|
href = getCurrentHref(),
|
|
2246
3342
|
children
|
|
2247
3343
|
} = this.props;
|
|
2248
|
-
return React__default
|
|
3344
|
+
return React__default.createElement("span", {
|
|
2249
3345
|
className: "fb-comments-count",
|
|
2250
3346
|
"data-href": href
|
|
2251
3347
|
}, children);
|
|
@@ -2258,9 +3354,9 @@ defineProperty(CommentsCount, "defaultProps", {
|
|
|
2258
3354
|
children: undefined
|
|
2259
3355
|
});
|
|
2260
3356
|
|
|
2261
|
-
React.forwardRef((props, ref) => React__default
|
|
3357
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2262
3358
|
handleParse
|
|
2263
|
-
}) => React__default
|
|
3359
|
+
}) => React__default.createElement(CommentsCount, _extends_1({}, props, {
|
|
2264
3360
|
handleParse: handleParse,
|
|
2265
3361
|
ref: ref
|
|
2266
3362
|
}))));
|
|
@@ -2359,12 +3455,12 @@ defineProperty(Feed, "defaultProps", {
|
|
|
2359
3455
|
dataRef: undefined
|
|
2360
3456
|
});
|
|
2361
3457
|
|
|
2362
|
-
React.forwardRef((props, ref) => React__default
|
|
3458
|
+
React.forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
2363
3459
|
loading,
|
|
2364
3460
|
handleProcess,
|
|
2365
3461
|
error,
|
|
2366
3462
|
data
|
|
2367
|
-
}) => React__default
|
|
3463
|
+
}) => React__default.createElement(Feed, _extends_1({}, props, {
|
|
2368
3464
|
loading: loading,
|
|
2369
3465
|
handleProcess: handleProcess,
|
|
2370
3466
|
data: data,
|
|
@@ -2390,7 +3486,7 @@ class Group extends React.PureComponent {
|
|
|
2390
3486
|
children,
|
|
2391
3487
|
skin
|
|
2392
3488
|
} = this.props;
|
|
2393
|
-
return React__default
|
|
3489
|
+
return React__default.createElement("div", {
|
|
2394
3490
|
className: "fb-group",
|
|
2395
3491
|
style: style,
|
|
2396
3492
|
"data-href": href,
|
|
@@ -2413,9 +3509,9 @@ defineProperty(Group, "defaultProps", {
|
|
|
2413
3509
|
skin: undefined
|
|
2414
3510
|
});
|
|
2415
3511
|
|
|
2416
|
-
React.forwardRef((props, ref) => React__default
|
|
3512
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2417
3513
|
handleParse
|
|
2418
|
-
}) => React__default
|
|
3514
|
+
}) => React__default.createElement(Group, _extends_1({}, props, {
|
|
2419
3515
|
handleParse: handleParse,
|
|
2420
3516
|
ref: ref
|
|
2421
3517
|
}))));
|
|
@@ -2479,7 +3575,7 @@ class LoginStatus$1 extends React.Component {
|
|
|
2479
3575
|
const {
|
|
2480
3576
|
children
|
|
2481
3577
|
} = this.props;
|
|
2482
|
-
return React__default
|
|
3578
|
+
return React__default.createElement(Initialize$1, {
|
|
2483
3579
|
onReady: this.handleReady
|
|
2484
3580
|
}, children);
|
|
2485
3581
|
}
|
|
@@ -2576,9 +3672,9 @@ class Profile extends React.Component {
|
|
|
2576
3672
|
loading,
|
|
2577
3673
|
error
|
|
2578
3674
|
} = this.state;
|
|
2579
|
-
return React__default
|
|
3675
|
+
return React__default.createElement(Initialize$1, {
|
|
2580
3676
|
onReady: this.handleReady
|
|
2581
|
-
}, React__default
|
|
3677
|
+
}, React__default.createElement(LoginStatus$1, {
|
|
2582
3678
|
event: "auth.statusChange",
|
|
2583
3679
|
onChange: this.handleStatusChange
|
|
2584
3680
|
}, children({
|
|
@@ -2613,7 +3709,7 @@ class CustomChat extends React.PureComponent {
|
|
|
2613
3709
|
greetingDialogDisplay,
|
|
2614
3710
|
greetingDialogDelay
|
|
2615
3711
|
} = this.props;
|
|
2616
|
-
return React__default
|
|
3712
|
+
return React__default.createElement("div", {
|
|
2617
3713
|
className: "fb-customerchat",
|
|
2618
3714
|
page_id: pageId,
|
|
2619
3715
|
theme_color: themeColor,
|
|
@@ -2637,9 +3733,9 @@ defineProperty(CustomChat, "defaultProps", {
|
|
|
2637
3733
|
greetingDialogDelay: undefined
|
|
2638
3734
|
});
|
|
2639
3735
|
|
|
2640
|
-
React.forwardRef((props, ref) => React__default
|
|
3736
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2641
3737
|
handleParse
|
|
2642
|
-
}) => React__default
|
|
3738
|
+
}) => React__default.createElement(CustomChat, _extends_1({}, props, {
|
|
2643
3739
|
handleParse: handleParse,
|
|
2644
3740
|
ref: ref
|
|
2645
3741
|
}))));
|
|
@@ -2660,7 +3756,7 @@ class MessageUs extends React.PureComponent {
|
|
|
2660
3756
|
children,
|
|
2661
3757
|
size
|
|
2662
3758
|
} = this.props;
|
|
2663
|
-
return React__default
|
|
3759
|
+
return React__default.createElement("div", {
|
|
2664
3760
|
className: "fb-messengermessageus",
|
|
2665
3761
|
messenger_app_id: messengerAppId,
|
|
2666
3762
|
page_id: pageId,
|
|
@@ -2677,9 +3773,9 @@ defineProperty(MessageUs, "defaultProps", {
|
|
|
2677
3773
|
children: undefined
|
|
2678
3774
|
});
|
|
2679
3775
|
|
|
2680
|
-
React.forwardRef((props, ref) => React__default
|
|
3776
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2681
3777
|
handleParse
|
|
2682
|
-
}) => React__default
|
|
3778
|
+
}) => React__default.createElement(MessageUs, _extends_1({}, props, {
|
|
2683
3779
|
handleParse: handleParse,
|
|
2684
3780
|
ref: ref
|
|
2685
3781
|
}))));
|
|
@@ -2705,7 +3801,7 @@ class MessengerCheckbox extends React.PureComponent {
|
|
|
2705
3801
|
centerAlign,
|
|
2706
3802
|
skin
|
|
2707
3803
|
} = this.props;
|
|
2708
|
-
return React__default
|
|
3804
|
+
return React__default.createElement("div", {
|
|
2709
3805
|
className: "fb-messenger-checkbox",
|
|
2710
3806
|
messenger_app_id: messengerAppId,
|
|
2711
3807
|
page_id: pageId,
|
|
@@ -2732,9 +3828,9 @@ defineProperty(MessengerCheckbox, "defaultProps", {
|
|
|
2732
3828
|
centerAlign: undefined
|
|
2733
3829
|
});
|
|
2734
3830
|
|
|
2735
|
-
React.forwardRef((props, ref) => React__default
|
|
3831
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2736
3832
|
handleParse
|
|
2737
|
-
}) => React__default
|
|
3833
|
+
}) => React__default.createElement(MessengerCheckbox, _extends_1({}, props, {
|
|
2738
3834
|
handleParse: handleParse,
|
|
2739
3835
|
ref: ref
|
|
2740
3836
|
}))));
|
|
@@ -2758,7 +3854,7 @@ class SendToMessenger extends React.PureComponent {
|
|
|
2758
3854
|
dataRef,
|
|
2759
3855
|
size
|
|
2760
3856
|
} = this.props;
|
|
2761
|
-
return React__default
|
|
3857
|
+
return React__default.createElement("div", {
|
|
2762
3858
|
className: "fb-send-to-messenger",
|
|
2763
3859
|
messenger_app_id: messengerAppId,
|
|
2764
3860
|
page_id: pageId,
|
|
@@ -2777,9 +3873,9 @@ defineProperty(SendToMessenger, "defaultProps", {
|
|
|
2777
3873
|
children: undefined
|
|
2778
3874
|
});
|
|
2779
3875
|
|
|
2780
|
-
React.forwardRef((props, ref) => React__default
|
|
3876
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2781
3877
|
handleParse
|
|
2782
|
-
}) => React__default
|
|
3878
|
+
}) => React__default.createElement(SendToMessenger, _extends_1({}, props, {
|
|
2783
3879
|
handleParse: handleParse,
|
|
2784
3880
|
ref: ref
|
|
2785
3881
|
}))));
|
|
@@ -2891,61 +3987,61 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
2891
3987
|
}, []);
|
|
2892
3988
|
|
|
2893
3989
|
var variant = 'black';
|
|
2894
|
-
return React__default
|
|
2895
|
-
React__default
|
|
3990
|
+
return React__default.createElement(
|
|
3991
|
+
React__default.Fragment,
|
|
2896
3992
|
null,
|
|
2897
|
-
React__default
|
|
3993
|
+
React__default.createElement(
|
|
2898
3994
|
'div',
|
|
2899
3995
|
{ ref: viewableWindow, id: 'vid-slider', className: 'col' },
|
|
2900
|
-
React__default
|
|
3996
|
+
React__default.createElement(
|
|
2901
3997
|
'div',
|
|
2902
3998
|
{ className: 'row' },
|
|
2903
|
-
showScroller && React__default
|
|
3999
|
+
showScroller && React__default.createElement(
|
|
2904
4000
|
'div',
|
|
2905
4001
|
{ onClick: function onClick(e) {
|
|
2906
4002
|
return scrollSlider(e, 'prev');
|
|
2907
4003
|
}, className: 'tile__slider-prev', style: { color: variant } },
|
|
2908
|
-
React__default
|
|
4004
|
+
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow left' })
|
|
2909
4005
|
),
|
|
2910
|
-
showScroller && React__default
|
|
4006
|
+
showScroller && React__default.createElement(
|
|
2911
4007
|
'div',
|
|
2912
4008
|
{ onClick: function onClick(e) {
|
|
2913
4009
|
return scrollSlider(e, 'next');
|
|
2914
4010
|
}, className: 'tile__slider-next', style: { color: variant } },
|
|
2915
|
-
React__default
|
|
4011
|
+
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow right' })
|
|
2916
4012
|
),
|
|
2917
|
-
React__default
|
|
4013
|
+
React__default.createElement(
|
|
2918
4014
|
'div',
|
|
2919
4015
|
{ ref: innerSlider, className: 'row__inner' },
|
|
2920
4016
|
props.data.slides.map(function (img, index) {
|
|
2921
4017
|
var thumbnail = urlFor({ client: client, source: img.slideshowImage, imageWidth: 250 });
|
|
2922
4018
|
if (!img.slideshowImage.link) {
|
|
2923
|
-
return React__default
|
|
4019
|
+
return React__default.createElement(
|
|
2924
4020
|
'div',
|
|
2925
4021
|
{ ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
|
|
2926
|
-
React__default
|
|
4022
|
+
React__default.createElement(
|
|
2927
4023
|
'div',
|
|
2928
4024
|
{ className: 'tile__media' },
|
|
2929
|
-
React__default
|
|
4025
|
+
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
2930
4026
|
),
|
|
2931
|
-
React__default
|
|
4027
|
+
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
2932
4028
|
);
|
|
2933
4029
|
} else {
|
|
2934
|
-
return React__default
|
|
4030
|
+
return React__default.createElement(
|
|
2935
4031
|
'a',
|
|
2936
4032
|
{ ref: tile, key: index, href: img.slideshowImage.link, target: img.slideshowImage.blank ? '_target' : '_self', className: 'tile', style: { width: tileSize + 'px' } },
|
|
2937
|
-
React__default
|
|
4033
|
+
React__default.createElement(
|
|
2938
4034
|
'div',
|
|
2939
4035
|
{ className: 'tile__media' },
|
|
2940
|
-
React__default
|
|
4036
|
+
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
2941
4037
|
),
|
|
2942
|
-
React__default
|
|
4038
|
+
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
2943
4039
|
);
|
|
2944
4040
|
}
|
|
2945
4041
|
})
|
|
2946
4042
|
)
|
|
2947
4043
|
),
|
|
2948
|
-
React__default
|
|
4044
|
+
React__default.createElement(
|
|
2949
4045
|
'style',
|
|
2950
4046
|
{ jsx: 'true' },
|
|
2951
4047
|
'\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 '
|
|
@@ -2968,112 +4064,112 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
2968
4064
|
pageview = _ref.pageview,
|
|
2969
4065
|
page = _ref.page;
|
|
2970
4066
|
|
|
2971
|
-
return React__default
|
|
2972
|
-
React__default
|
|
4067
|
+
return React__default.createElement(
|
|
4068
|
+
React__default.Fragment,
|
|
2973
4069
|
null,
|
|
2974
|
-
React__default
|
|
2975
|
-
React__default
|
|
4070
|
+
React__default.createElement(Breadcrumbs, null),
|
|
4071
|
+
React__default.createElement(
|
|
2976
4072
|
'div',
|
|
2977
4073
|
{ className: 'partners-page' },
|
|
2978
|
-
React__default
|
|
4074
|
+
React__default.createElement(
|
|
2979
4075
|
'div',
|
|
2980
4076
|
{ className: 'my-5 partner-logo-wrap', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' } },
|
|
2981
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.link ? React__default
|
|
4077
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.link ? React__default.createElement(
|
|
2982
4078
|
'a',
|
|
2983
4079
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%' }, href: partnerDetails.thumbnail.link, target: partnerDetails.thumbnail.blank ? '_blank' : '' },
|
|
2984
|
-
React__default
|
|
4080
|
+
React__default.createElement(
|
|
2985
4081
|
'figure',
|
|
2986
4082
|
{ style: { width: '100%', textAlign: 'center' } },
|
|
2987
|
-
React__default
|
|
4083
|
+
React__default.createElement('img', {
|
|
2988
4084
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
2989
4085
|
style: { maxWidth: '100%' },
|
|
2990
4086
|
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : '' }),
|
|
2991
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default
|
|
4087
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default.createElement(
|
|
2992
4088
|
'figcaption',
|
|
2993
4089
|
null,
|
|
2994
4090
|
partnerDetails.thumbnail.caption
|
|
2995
4091
|
)
|
|
2996
4092
|
)
|
|
2997
|
-
) : React__default
|
|
4093
|
+
) : React__default.createElement(
|
|
2998
4094
|
'figure',
|
|
2999
4095
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%', textAlign: 'center' } },
|
|
3000
|
-
React__default
|
|
4096
|
+
React__default.createElement('img', {
|
|
3001
4097
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
3002
4098
|
style: { maxWidth: '100%' },
|
|
3003
4099
|
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : '' }),
|
|
3004
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default
|
|
4100
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default.createElement(
|
|
3005
4101
|
'figcaption',
|
|
3006
4102
|
null,
|
|
3007
4103
|
partnerDetails.thumbnail.caption
|
|
3008
4104
|
)
|
|
3009
4105
|
),
|
|
3010
|
-
React__default
|
|
4106
|
+
React__default.createElement(
|
|
3011
4107
|
'style',
|
|
3012
4108
|
{ jsx: 'true' },
|
|
3013
4109
|
'\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 '
|
|
3014
4110
|
),
|
|
3015
|
-
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook) && React__default
|
|
4111
|
+
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook) && React__default.createElement(
|
|
3016
4112
|
'div',
|
|
3017
4113
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
3018
|
-
partnerDetails.description && React__default
|
|
3019
|
-
(partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook) && React__default
|
|
4114
|
+
partnerDetails.description && React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers.getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
4115
|
+
(partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook) && React__default.createElement(
|
|
3020
4116
|
'div',
|
|
3021
4117
|
null,
|
|
3022
|
-
React__default
|
|
4118
|
+
React__default.createElement(
|
|
3023
4119
|
'p',
|
|
3024
4120
|
{ 'class': 'd-inline-block font-weight-bold' },
|
|
3025
4121
|
'Connect with us:'
|
|
3026
4122
|
),
|
|
3027
4123
|
' ',
|
|
3028
|
-
partnerDetails.linkedin && React__default
|
|
4124
|
+
partnerDetails.linkedin && React__default.createElement(reactSocialIcons.reactSocialIcons_1, {
|
|
3029
4125
|
url: '' + partnerDetails.linkedin + (partnerDetails.linkedin.slice(-1) === '/' ? '' : '/') + 'posts/?feedView=all',
|
|
3030
4126
|
target: '_blank',
|
|
3031
4127
|
rel: 'noopener noreferrer',
|
|
3032
4128
|
style: { height: 30, width: 30 }
|
|
3033
4129
|
}),
|
|
3034
|
-
partnerDetails.twitter && partnerDetails.facebook && React__default
|
|
4130
|
+
partnerDetails.twitter && partnerDetails.facebook && React__default.createElement(reactSocialIcons.reactSocialIcons_1, { url: partnerDetails.facebook, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } })
|
|
3035
4131
|
)
|
|
3036
4132
|
)
|
|
3037
4133
|
),
|
|
3038
|
-
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React__default
|
|
4134
|
+
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React__default.createElement(
|
|
3039
4135
|
'div',
|
|
3040
4136
|
{ className: 'mb-4', style: { padding: '0 15px' } },
|
|
3041
|
-
partnerDetails.affiliates[0].title && React__default
|
|
4137
|
+
partnerDetails.affiliates[0].title && React__default.createElement(
|
|
3042
4138
|
'h2',
|
|
3043
4139
|
{ className: 'bb-gold' },
|
|
3044
4140
|
partnerDetails.affiliates[0].title
|
|
3045
4141
|
),
|
|
3046
|
-
React__default
|
|
4142
|
+
React__default.createElement(ImageSlider, { client: client, data: partnerDetails.affiliates[0] })
|
|
3047
4143
|
),
|
|
3048
|
-
features.length > 0 && React__default
|
|
4144
|
+
features.length > 0 && React__default.createElement(
|
|
3049
4145
|
'div',
|
|
3050
4146
|
{ className: ' mb-5' },
|
|
3051
|
-
React__default
|
|
4147
|
+
React__default.createElement(Feature, { dataset: features, client: client })
|
|
3052
4148
|
),
|
|
3053
|
-
(partnerDetails.twitter || partnerDetails.facebook) && React__default
|
|
4149
|
+
(partnerDetails.twitter || partnerDetails.facebook) && React__default.createElement(
|
|
3054
4150
|
'div',
|
|
3055
4151
|
{ className: 'mb-5', style: { width: '100%', maxWidth: '100%', textAlign: 'center', padding: '15px', border: '2px solid #aaa', borderRadius: '15px' } },
|
|
3056
|
-
partnerDetails.twitter ? React__default
|
|
4152
|
+
partnerDetails.twitter ? React__default.createElement(TwitterTimelineEmbed, { sourceType: 'url', url: partnerDetails.twitter, options: { height: 400 } }) : partnerDetails.facebook && React__default.createElement(
|
|
3057
4153
|
Facebook$1,
|
|
3058
4154
|
{ appId: ' ' },
|
|
3059
|
-
React__default
|
|
4155
|
+
React__default.createElement(Page$1, { href: partnerDetails.facebook, tabs: 'timeline', width: '500', height: '500' })
|
|
3060
4156
|
)
|
|
3061
4157
|
),
|
|
3062
|
-
React__default
|
|
4158
|
+
React__default.createElement(
|
|
3063
4159
|
'div',
|
|
3064
4160
|
null,
|
|
3065
|
-
posts && posts.length > 0 && React__default
|
|
3066
|
-
React__default
|
|
4161
|
+
posts && posts.length > 0 && React__default.createElement(
|
|
4162
|
+
React__default.Fragment,
|
|
3067
4163
|
null,
|
|
3068
|
-
React__default
|
|
4164
|
+
React__default.createElement(
|
|
3069
4165
|
'h2',
|
|
3070
4166
|
{ className: 'bb-gold mb-2' },
|
|
3071
4167
|
'Latest from ',
|
|
3072
4168
|
partnerDetails.name
|
|
3073
4169
|
),
|
|
3074
|
-
React__default
|
|
4170
|
+
React__default.createElement('hr', null)
|
|
3075
4171
|
),
|
|
3076
|
-
React__default
|
|
4172
|
+
React__default.createElement(QueueDeckExpanded, {
|
|
3077
4173
|
client: client,
|
|
3078
4174
|
mapping: Settings.mapping,
|
|
3079
4175
|
dataRecord: posts,
|