@mjhls/mjh-framework 1.0.862-beta.0 → 1.0.863-author-details-v1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +10 -9
- package/dist/cjs/AD300x250x600.js +10 -9
- package/dist/cjs/AD728x90.js +11 -10
- package/dist/cjs/ADFloatingFooter.js +12 -11
- package/dist/cjs/ADFooter.js +9 -8
- package/dist/cjs/ADGutter.js +12 -11
- package/dist/cjs/{ADInfeed-98c71bcd.js → ADInfeed-25d48cc2.js} +11 -9
- package/dist/cjs/ADSkyscraper.js +12 -11
- package/dist/cjs/ADSponsoredResources.js +12 -11
- package/dist/cjs/ADWebcast.js +12 -11
- package/dist/cjs/ADWelcome.js +16 -15
- package/dist/cjs/{ADlgInfeed-9de32585.js → ADlgInfeed-a535a768.js} +7 -6
- package/dist/cjs/AccordionPanel.js +24 -22
- package/dist/cjs/AdSlot.js +14 -13
- package/dist/cjs/AdSlotsProvider.js +11 -902
- package/dist/cjs/AlgoliaSearch.js +952 -842
- package/dist/cjs/AlphabeticList.js +16 -15
- package/dist/cjs/ArticleCarousel.js +11 -10
- package/dist/cjs/ArticleProgramLandingPage.js +28 -27
- package/dist/cjs/ArticleSeriesLandingPage.js +23 -22
- package/dist/cjs/ArticleSeriesListing.js +40 -39
- package/dist/cjs/Auth.js +237 -1197
- package/dist/cjs/AuthWrapper.js +124 -46
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-ac8972ce.js} +13 -12
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-8b494587.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +23 -21
- package/dist/cjs/CMEDeck.js +64 -64
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +22 -19
- package/dist/cjs/Column3.js +35 -32
- package/dist/cjs/ConferenceArticleCard.js +18 -17
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +76 -72
- package/dist/cjs/DeckQueue.js +72 -68
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-391fd124.js} +23 -22
- package/dist/cjs/EventsDeck.js +123 -116
- package/dist/cjs/ExternalResources.js +47 -46
- package/dist/cjs/Feature.js +25 -23
- package/dist/cjs/ForbesHero.js +35 -34
- package/dist/cjs/GridContent.js +208 -203
- package/dist/cjs/GridHero.js +36 -35
- package/dist/cjs/GroupDeck.js +49 -48
- package/dist/cjs/HamMagazine.js +121 -116
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +10 -9
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalArticleListing.js +37 -36
- package/dist/cjs/HorizontalHero.js +24 -23
- package/dist/cjs/IssueContentDeck.js +70 -65
- package/dist/cjs/IssueDeck.js +65 -60
- package/dist/cjs/IssueLanding.js +29 -28
- package/dist/cjs/LeftNav.js +22 -20
- package/dist/cjs/MasterDeck.js +50 -49
- package/dist/cjs/MediaSeriesLanding.js +733 -786
- package/dist/cjs/NavDvm.js +68 -63
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +121 -116
- package/dist/cjs/NavNative.js +116 -108
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +64 -63
- package/dist/cjs/PageFilter.js +9 -8
- package/dist/cjs/PartnerDetailListing.js +133 -1229
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +15 -13
- package/dist/cjs/PubSection.js +20 -19
- package/dist/cjs/PubToc.js +8 -7
- package/dist/cjs/PublicationDeck.js +64 -59
- package/dist/cjs/PublicationLanding.js +87 -83
- package/dist/cjs/QueueDeckExpanded.js +285 -285
- package/dist/cjs/RecentNews.js +20 -19
- package/dist/cjs/RelatedContent.js +23 -22
- package/dist/cjs/RelatedTopicsDropdown.js +22 -19
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +16 -12
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-8bbc989f.js → SeriesSlider-0d3bf265.js} +34 -33
- package/dist/cjs/SideFooter.js +24 -23
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-19548e2a.js} +38 -34
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +59 -54
- package/dist/cjs/TaxonomyDescription.js +22 -21
- package/dist/cjs/TemplateNormal.js +35 -34
- package/dist/cjs/ThumbnailCard.js +19 -17
- package/dist/cjs/Ustream.js +22 -21
- package/dist/cjs/VerticalHero.js +16 -15
- package/dist/cjs/VideoProgramLandingPage.js +47 -43
- package/dist/cjs/VideoSeriesCard.js +23 -22
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +28 -27
- package/dist/cjs/VideoSeriesListing.js +57 -56
- package/dist/cjs/View.js +207 -201
- package/dist/cjs/YahooHero.js +31 -30
- package/dist/cjs/YoutubeGroup.js +51 -50
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-5c98aec7.js} +10 -8
- package/dist/cjs/faundadb.js +16 -16
- package/dist/cjs/getRelatedArticle.js +67 -131
- package/dist/cjs/getRootDocGroup.js +3 -3
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-f1821260.js → getTargeting-a9a871f0.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-a1e54356.js → index-04a5a4a2.js} +961 -934
- package/dist/cjs/{index-98e01cb9.js → index-2cf30c83.js} +9 -8
- package/dist/cjs/{index-3294d3bc.js → index-6367b7bf.js} +16 -17
- package/dist/cjs/{index-96b3db50.js → index-9d365128.js} +12 -10
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-4d410430.js → index.esm-3ffa049c.js} +20 -20
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +63 -58
- package/dist/cjs/{inherits-1f5a1c72.js → inherits-0c7830c5.js} +3 -3
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-02daeefe.js → main-7b5e57b0.js} +90 -54
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-725500bc.js → typeof-9d7f610f.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- 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-1cc9d817.js → ADInfeed-56a3db8b.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-8c4f129e.js → ADlgInfeed-53edb995.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +10 -902
- package/dist/esm/AlgoliaSearch.js +347 -238
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- 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 +216 -1180
- package/dist/esm/AuthWrapper.js +121 -44
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-8ffd4679.js} +10 -10
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d05b5b23.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-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +68 -68
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-b7236041.js → Dfp-2f9796e1.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 +450 -506
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +93 -93
- package/dist/esm/NavNative.js +83 -83
- package/dist/esm/OncliveHero.js +14 -15
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +130 -1227
- 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-a866bb21.js → SeriesSlider-7d89f4d9.js} +24 -24
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-03c3e869.js → SocialSearchComponent-47815365.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 +184 -182
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +35 -35
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-4abff0b1.js} +7 -6
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getRelatedArticle.js +62 -126
- package/dist/esm/getSerializers.js +11 -11
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-5f7e79e7.js → index-6c12bdd5.js} +4 -4
- package/dist/esm/{index-ef6d5dcf.js → index-c00b0bbb.js} +16 -17
- package/dist/esm/{index-a1c5f00a.js → index-cf54da7f.js} +904 -887
- package/dist/esm/{index-41a678ea.js → index-f7fb1e25.js} +3 -3
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8ee5ff72.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
- package/dist/esm/index.js +51 -49
- package/dist/esm/{inherits-cf8dde54.js → inherits-75d45541.js} +1 -1
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-e4a934b2.js → main-747e7d25.js} +87 -52
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-6435ba1c.js → typeof-af9c50d8.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/esm/inherits-77d5e4fc.js +0 -101
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
-
|
|
5
3
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
4
|
require('./_to-object-329a650b.js');
|
|
7
5
|
require('./es6.string.iterator-cc0bbaa4.js');
|
|
@@ -10,34 +8,32 @@ require('./_iter-detect-60b2f026.js');
|
|
|
10
8
|
require('./toConsumableArray-9a3476fe.js');
|
|
11
9
|
require('./core.get-iterator-method-f62321d4.js');
|
|
12
10
|
require('./_object-pie-68c5bcbc.js');
|
|
13
|
-
var _extends
|
|
11
|
+
var _extends = require('./extends-0a918631.js');
|
|
14
12
|
require('./_object-sap-5e74ba08.js');
|
|
15
|
-
require('./inherits-
|
|
13
|
+
require('./inherits-0c7830c5.js');
|
|
16
14
|
require('./define-property-f4d12f4e.js');
|
|
17
15
|
require('./web.dom.iterable-a0e279c1.js');
|
|
18
|
-
require('./typeof-
|
|
16
|
+
require('./typeof-9d7f610f.js');
|
|
19
17
|
require('./_is-array-754e012d.js');
|
|
20
18
|
var React = require('react');
|
|
21
|
-
var React__default = _interopDefault(React);
|
|
22
19
|
require('./events-1b438fe7.js');
|
|
23
|
-
require('./index-
|
|
20
|
+
require('./index-2cf30c83.js');
|
|
24
21
|
var PropTypes = require('prop-types');
|
|
25
|
-
var PropTypes__default = _interopDefault(PropTypes);
|
|
26
22
|
require('react-bootstrap/Row');
|
|
27
23
|
require('react-bootstrap/Col');
|
|
28
24
|
require('react-bootstrap/Card');
|
|
29
|
-
var moment = require('./moment-
|
|
25
|
+
var moment = require('./moment-ca3bd9fb.js');
|
|
30
26
|
require('next/router');
|
|
31
27
|
require('./isSymbol-04666465.js');
|
|
32
28
|
require('./debounce-529c8d06.js');
|
|
33
29
|
require('./toNumber-36d1e7e5.js');
|
|
34
|
-
require('./index.es-
|
|
30
|
+
require('./index.es-f3e47207.js');
|
|
35
31
|
require('react-dom');
|
|
36
|
-
require('./visibility-sensor-
|
|
37
|
-
require('./index-
|
|
32
|
+
require('./visibility-sensor-eb2c5b69.js');
|
|
33
|
+
require('./index-b5eb3ff8.js');
|
|
38
34
|
var urlFor = require('./urlFor.js');
|
|
39
|
-
require('./index-
|
|
40
|
-
require('./main-
|
|
35
|
+
require('./index-9d365128.js');
|
|
36
|
+
require('./main-7b5e57b0.js');
|
|
41
37
|
require('./entities-310b46ee.js');
|
|
42
38
|
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
43
39
|
require('./stringify-7c5aff47.js');
|
|
@@ -45,14 +41,14 @@ var asyncToGenerator$1 = require('./asyncToGenerator-140e5f89.js');
|
|
|
45
41
|
require('./Segment.js');
|
|
46
42
|
require('./Beam.js');
|
|
47
43
|
require('./AdSlot.js');
|
|
48
|
-
require('./ADInfeed-
|
|
49
|
-
require('./lodash-
|
|
50
|
-
require('./ADlgInfeed-
|
|
44
|
+
require('./ADInfeed-25d48cc2.js');
|
|
45
|
+
require('./lodash-7fd85bcf.js');
|
|
46
|
+
require('./ADlgInfeed-a535a768.js');
|
|
51
47
|
require('./getContentCategory-f38a4c00.js');
|
|
52
|
-
require('./AuthorComponent-
|
|
48
|
+
require('./AuthorComponent-ac8972ce.js');
|
|
53
49
|
require('react-bootstrap/Button');
|
|
54
|
-
var BlockContent = require('./BlockContent-
|
|
55
|
-
var reactSocialIcons = require('./react-social-icons-
|
|
50
|
+
var BlockContent = require('./BlockContent-8b494587.js');
|
|
51
|
+
var reactSocialIcons = require('./react-social-icons-07939b41.js');
|
|
56
52
|
require('./index-187c967e.js');
|
|
57
53
|
var smoothscroll = require('./smoothscroll-5054361f.js');
|
|
58
54
|
require('./GroupDeck.js');
|
|
@@ -60,10 +56,10 @@ require('react-bootstrap');
|
|
|
60
56
|
require('./timeDifferenceCalc.js');
|
|
61
57
|
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
62
58
|
require('./iconBase-68959171.js');
|
|
63
|
-
require('./index.esm-
|
|
64
|
-
var getSerializers = require('./index-
|
|
59
|
+
require('./index.esm-974f47d9.js');
|
|
60
|
+
var getSerializers = require('./index-04a5a4a2.js');
|
|
65
61
|
require('./util-f2c1b65b.js');
|
|
66
|
-
require('./brightcove-react-player-loader.es-
|
|
62
|
+
require('./brightcove-react-player-loader.es-5c98aec7.js');
|
|
67
63
|
require('next/head');
|
|
68
64
|
require('react-share');
|
|
69
65
|
require('./SocialShare.js');
|
|
@@ -73,1108 +69,16 @@ require('react-bootstrap/Figure');
|
|
|
73
69
|
require('react-bootstrap/OverlayTrigger');
|
|
74
70
|
require('react-bootstrap/Tooltip');
|
|
75
71
|
require('react-bootstrap/Popover');
|
|
76
|
-
var inherits$1$1 = require('./inherits-8d29278d.js');
|
|
77
72
|
require('react-bootstrap/Carousel');
|
|
78
73
|
var Feature = require('./Feature.js');
|
|
79
74
|
require('react-bootstrap/Breadcrumb');
|
|
80
75
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
76
|
+
var reactTwitterEmbed = require('react-twitter-embed');
|
|
81
77
|
|
|
82
|
-
|
|
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
|
-
}
|
|
78
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
665
79
|
|
|
666
|
-
|
|
667
|
-
|
|
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
|
-
});
|
|
80
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
81
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
1178
82
|
|
|
1179
83
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1180
84
|
try {
|
|
@@ -2002,7 +906,7 @@ class Facebook$1 extends React.Component {
|
|
|
2002
906
|
handleInit,
|
|
2003
907
|
api
|
|
2004
908
|
};
|
|
2005
|
-
return React__default.createElement(FacebookContext.Provider, {
|
|
909
|
+
return React__default['default'].createElement(FacebookContext.Provider, {
|
|
2006
910
|
value: value
|
|
2007
911
|
}, children);
|
|
2008
912
|
}
|
|
@@ -2096,11 +1000,11 @@ defineProperty(Initialize, "defaultProps", {
|
|
|
2096
1000
|
api: undefined
|
|
2097
1001
|
});
|
|
2098
1002
|
|
|
2099
|
-
var Initialize$1 = React.forwardRef((props, ref) => React__default.createElement(FacebookContext.Consumer, null, ({
|
|
1003
|
+
var Initialize$1 = React.forwardRef((props, ref) => React__default['default'].createElement(FacebookContext.Consumer, null, ({
|
|
2100
1004
|
handleInit,
|
|
2101
1005
|
isReady,
|
|
2102
1006
|
api
|
|
2103
|
-
}) => React__default.createElement(Initialize, _extends_1({}, props, {
|
|
1007
|
+
}) => React__default['default'].createElement(Initialize, _extends_1({}, props, {
|
|
2104
1008
|
handleInit: handleInit,
|
|
2105
1009
|
isReady: isReady,
|
|
2106
1010
|
api: api,
|
|
@@ -2144,10 +1048,10 @@ class Parser extends React.Component {
|
|
|
2144
1048
|
className,
|
|
2145
1049
|
children
|
|
2146
1050
|
} = this.props;
|
|
2147
|
-
return React__default.createElement("div", {
|
|
1051
|
+
return React__default['default'].createElement("div", {
|
|
2148
1052
|
className: className,
|
|
2149
1053
|
ref: this.handleContainer
|
|
2150
|
-
}, React__default.createElement(Initialize$1, {
|
|
1054
|
+
}, React__default['default'].createElement(Initialize$1, {
|
|
2151
1055
|
onReady: this.handleReady
|
|
2152
1056
|
}, children({
|
|
2153
1057
|
handleParse: this.handleParse
|
|
@@ -2190,7 +1094,7 @@ class Like extends React.PureComponent {
|
|
|
2190
1094
|
kidDirectedSite,
|
|
2191
1095
|
referral
|
|
2192
1096
|
} = this.props;
|
|
2193
|
-
return React__default.createElement("div", {
|
|
1097
|
+
return React__default['default'].createElement("div", {
|
|
2194
1098
|
className: "fb-like",
|
|
2195
1099
|
"data-ref": referral,
|
|
2196
1100
|
"data-href": href,
|
|
@@ -2221,9 +1125,9 @@ defineProperty(Like, "defaultProps", {
|
|
|
2221
1125
|
width: undefined
|
|
2222
1126
|
});
|
|
2223
1127
|
|
|
2224
|
-
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
1128
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
2225
1129
|
handleParse
|
|
2226
|
-
}) => React__default.createElement(Like, _extends_1({}, props, {
|
|
1130
|
+
}) => React__default['default'].createElement(Like, _extends_1({}, props, {
|
|
2227
1131
|
handleParse: handleParse,
|
|
2228
1132
|
ref: ref
|
|
2229
1133
|
}))));
|
|
@@ -2314,7 +1218,7 @@ class Process extends React.Component {
|
|
|
2314
1218
|
data,
|
|
2315
1219
|
error
|
|
2316
1220
|
} = this.state;
|
|
2317
|
-
return React__default.createElement(Initialize$1, {
|
|
1221
|
+
return React__default['default'].createElement(Initialize$1, {
|
|
2318
1222
|
onReady: this.handleReady
|
|
2319
1223
|
}, children({
|
|
2320
1224
|
loading: !api || loading,
|
|
@@ -2394,10 +1298,10 @@ defineProperty(Send, "defaultProps", {
|
|
|
2394
1298
|
redirectURI: undefined
|
|
2395
1299
|
});
|
|
2396
1300
|
|
|
2397
|
-
React.forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
1301
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Process, null, ({
|
|
2398
1302
|
loading,
|
|
2399
1303
|
handleProcess
|
|
2400
|
-
}) => React__default.createElement(Send, _extends_1({}, props, {
|
|
1304
|
+
}) => React__default['default'].createElement(Send, _extends_1({}, props, {
|
|
2401
1305
|
loading: loading,
|
|
2402
1306
|
handleProcess: handleProcess,
|
|
2403
1307
|
ref: ref
|
|
@@ -2482,12 +1386,12 @@ defineProperty(Share, "defaultProps", {
|
|
|
2482
1386
|
redirectURI: undefined
|
|
2483
1387
|
});
|
|
2484
1388
|
|
|
2485
|
-
var Share$1 = React.forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
1389
|
+
var Share$1 = React.forwardRef((props, ref) => React__default['default'].createElement(Process, null, ({
|
|
2486
1390
|
loading,
|
|
2487
1391
|
handleProcess,
|
|
2488
1392
|
data,
|
|
2489
1393
|
error
|
|
2490
|
-
}) => React__default.createElement(Share, _extends_1({}, props, {
|
|
1394
|
+
}) => React__default['default'].createElement(Share, _extends_1({}, props, {
|
|
2491
1395
|
loading: loading,
|
|
2492
1396
|
handleProcess: handleProcess,
|
|
2493
1397
|
data: data,
|
|
@@ -2505,10 +1409,10 @@ function ShareButton(props) {
|
|
|
2505
1409
|
} = props,
|
|
2506
1410
|
rest = objectWithoutProperties(props, ["className", "children"]);
|
|
2507
1411
|
|
|
2508
|
-
return React__default.createElement(Share$1, rest, ({
|
|
1412
|
+
return React__default['default'].createElement(Share$1, rest, ({
|
|
2509
1413
|
loading,
|
|
2510
1414
|
handleClick
|
|
2511
|
-
}) => React__default.createElement("button", {
|
|
1415
|
+
}) => React__default['default'].createElement("button", {
|
|
2512
1416
|
type: "button",
|
|
2513
1417
|
disabled: loading,
|
|
2514
1418
|
className: className,
|
|
@@ -2541,7 +1445,7 @@ class Page extends React.PureComponent {
|
|
|
2541
1445
|
adaptContainerWidth,
|
|
2542
1446
|
children
|
|
2543
1447
|
} = this.props;
|
|
2544
|
-
return React__default.createElement("div", {
|
|
1448
|
+
return React__default['default'].createElement("div", {
|
|
2545
1449
|
className: "fb-page",
|
|
2546
1450
|
style: style,
|
|
2547
1451
|
"data-tabs": tabs,
|
|
@@ -2572,9 +1476,9 @@ defineProperty(Page, "defaultProps", {
|
|
|
2572
1476
|
href: undefined
|
|
2573
1477
|
});
|
|
2574
1478
|
|
|
2575
|
-
var Page$1 = React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
1479
|
+
var Page$1 = React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
2576
1480
|
handleParse
|
|
2577
|
-
}) => React__default.createElement(Page, _extends_1({}, props, {
|
|
1481
|
+
}) => React__default['default'].createElement(Page, _extends_1({}, props, {
|
|
2578
1482
|
handleParse: handleParse,
|
|
2579
1483
|
ref: ref
|
|
2580
1484
|
}))));
|
|
@@ -2703,12 +1607,12 @@ defineProperty(Login, "defaultProps", {
|
|
|
2703
1607
|
eventKey: undefined
|
|
2704
1608
|
});
|
|
2705
1609
|
|
|
2706
|
-
var Login$1 = React.forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
1610
|
+
var Login$1 = React.forwardRef((props, ref) => React__default['default'].createElement(Process, null, ({
|
|
2707
1611
|
loading,
|
|
2708
1612
|
handleProcess,
|
|
2709
1613
|
data,
|
|
2710
1614
|
error
|
|
2711
|
-
}) => React__default.createElement(Login, _extends_1({}, props, {
|
|
1615
|
+
}) => React__default['default'].createElement(Login, _extends_1({}, props, {
|
|
2712
1616
|
loading: loading,
|
|
2713
1617
|
handleProcess: handleProcess,
|
|
2714
1618
|
data: data,
|
|
@@ -3071,11 +1975,11 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
|
3071
1975
|
|
|
3072
1976
|
|
|
3073
1977
|
|
|
3074
|
-
var _react2 = _interopRequireDefault(React__default);
|
|
1978
|
+
var _react2 = _interopRequireDefault(React__default['default']);
|
|
3075
1979
|
|
|
3076
1980
|
|
|
3077
1981
|
|
|
3078
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default);
|
|
1982
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default['default']);
|
|
3079
1983
|
|
|
3080
1984
|
|
|
3081
1985
|
|
|
@@ -3138,7 +2042,7 @@ var Spinner = function (_Component) {
|
|
|
3138
2042
|
|
|
3139
2043
|
|
|
3140
2044
|
if (loaded) {
|
|
3141
|
-
return this.props.children ? React__default.Children.only(this.props.children) : null;
|
|
2045
|
+
return this.props.children ? React__default['default'].Children.only(this.props.children) : null;
|
|
3142
2046
|
}
|
|
3143
2047
|
|
|
3144
2048
|
return _react2.default.createElement('div', { className: className, ref: 'loader' });
|
|
@@ -3146,7 +2050,7 @@ var Spinner = function (_Component) {
|
|
|
3146
2050
|
}]);
|
|
3147
2051
|
|
|
3148
2052
|
return Spinner;
|
|
3149
|
-
}(React__default.Component);
|
|
2053
|
+
}(React__default['default'].Component);
|
|
3150
2054
|
|
|
3151
2055
|
Spinner.propTypes = {
|
|
3152
2056
|
className: _propTypes2.default.string,
|
|
@@ -3176,15 +2080,15 @@ function LoginButton(props) {
|
|
|
3176
2080
|
} = props,
|
|
3177
2081
|
rest = objectWithoutProperties(props, ["children", "className", "spinner", "spinnerConfig"]);
|
|
3178
2082
|
|
|
3179
|
-
return React__default.createElement(Login$1, rest, ({
|
|
2083
|
+
return React__default['default'].createElement(Login$1, rest, ({
|
|
3180
2084
|
loading,
|
|
3181
2085
|
handleClick
|
|
3182
|
-
}) => React__default.createElement("button", {
|
|
2086
|
+
}) => React__default['default'].createElement("button", {
|
|
3183
2087
|
type: "button",
|
|
3184
2088
|
className: className,
|
|
3185
2089
|
onClick: handleClick,
|
|
3186
2090
|
disabled: loading
|
|
3187
|
-
}, children, spinner && loading && React__default.createElement(Spinner, {
|
|
2091
|
+
}, children, spinner && loading && React__default['default'].createElement(Spinner, {
|
|
3188
2092
|
config: spinnerConfig
|
|
3189
2093
|
})));
|
|
3190
2094
|
}
|
|
@@ -3209,7 +2113,7 @@ class EmbeddedPost extends React.PureComponent {
|
|
|
3209
2113
|
showText,
|
|
3210
2114
|
children
|
|
3211
2115
|
} = this.props;
|
|
3212
|
-
return React__default.createElement("div", {
|
|
2116
|
+
return React__default['default'].createElement("div", {
|
|
3213
2117
|
className: "fb-post",
|
|
3214
2118
|
"data-href": href,
|
|
3215
2119
|
"data-width": width,
|
|
@@ -3225,9 +2129,9 @@ defineProperty(EmbeddedPost, "defaultProps", {
|
|
|
3225
2129
|
children: undefined
|
|
3226
2130
|
});
|
|
3227
2131
|
|
|
3228
|
-
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2132
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3229
2133
|
handleParse
|
|
3230
|
-
}) => React__default.createElement(EmbeddedPost, _extends_1({}, props, {
|
|
2134
|
+
}) => React__default['default'].createElement(EmbeddedPost, _extends_1({}, props, {
|
|
3231
2135
|
handleParse: handleParse,
|
|
3232
2136
|
ref: ref
|
|
3233
2137
|
}))));
|
|
@@ -3250,7 +2154,7 @@ class EmbeddedVideo extends React.PureComponent {
|
|
|
3250
2154
|
showCaptions,
|
|
3251
2155
|
children
|
|
3252
2156
|
} = this.props;
|
|
3253
|
-
return React__default.createElement("div", {
|
|
2157
|
+
return React__default['default'].createElement("div", {
|
|
3254
2158
|
className: "fb-video",
|
|
3255
2159
|
"data-href": href,
|
|
3256
2160
|
"data-width": width,
|
|
@@ -3272,9 +2176,9 @@ defineProperty(EmbeddedVideo, "defaultProps", {
|
|
|
3272
2176
|
children: undefined
|
|
3273
2177
|
});
|
|
3274
2178
|
|
|
3275
|
-
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2179
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3276
2180
|
handleParse
|
|
3277
|
-
}) => React__default.createElement(EmbeddedVideo, _extends_1({}, props, {
|
|
2181
|
+
}) => React__default['default'].createElement(EmbeddedVideo, _extends_1({}, props, {
|
|
3278
2182
|
handleParse: handleParse,
|
|
3279
2183
|
ref: ref
|
|
3280
2184
|
}))));
|
|
@@ -3297,7 +2201,7 @@ class Comments extends React.PureComponent {
|
|
|
3297
2201
|
children,
|
|
3298
2202
|
mobile
|
|
3299
2203
|
} = this.props;
|
|
3300
|
-
return React__default.createElement("div", {
|
|
2204
|
+
return React__default['default'].createElement("div", {
|
|
3301
2205
|
className: "fb-comments",
|
|
3302
2206
|
"data-colorscheme": colorScheme,
|
|
3303
2207
|
"data-numposts": numPosts,
|
|
@@ -3321,9 +2225,9 @@ defineProperty(Comments, "defaultProps", {
|
|
|
3321
2225
|
mobile: undefined
|
|
3322
2226
|
});
|
|
3323
2227
|
|
|
3324
|
-
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2228
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3325
2229
|
handleParse
|
|
3326
|
-
}) => React__default.createElement(Comments, _extends_1({}, props, {
|
|
2230
|
+
}) => React__default['default'].createElement(Comments, _extends_1({}, props, {
|
|
3327
2231
|
handleParse: handleParse,
|
|
3328
2232
|
ref: ref
|
|
3329
2233
|
}))));
|
|
@@ -3341,7 +2245,7 @@ class CommentsCount extends React.PureComponent {
|
|
|
3341
2245
|
href = getCurrentHref(),
|
|
3342
2246
|
children
|
|
3343
2247
|
} = this.props;
|
|
3344
|
-
return React__default.createElement("span", {
|
|
2248
|
+
return React__default['default'].createElement("span", {
|
|
3345
2249
|
className: "fb-comments-count",
|
|
3346
2250
|
"data-href": href
|
|
3347
2251
|
}, children);
|
|
@@ -3354,9 +2258,9 @@ defineProperty(CommentsCount, "defaultProps", {
|
|
|
3354
2258
|
children: undefined
|
|
3355
2259
|
});
|
|
3356
2260
|
|
|
3357
|
-
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2261
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3358
2262
|
handleParse
|
|
3359
|
-
}) => React__default.createElement(CommentsCount, _extends_1({}, props, {
|
|
2263
|
+
}) => React__default['default'].createElement(CommentsCount, _extends_1({}, props, {
|
|
3360
2264
|
handleParse: handleParse,
|
|
3361
2265
|
ref: ref
|
|
3362
2266
|
}))));
|
|
@@ -3455,12 +2359,12 @@ defineProperty(Feed, "defaultProps", {
|
|
|
3455
2359
|
dataRef: undefined
|
|
3456
2360
|
});
|
|
3457
2361
|
|
|
3458
|
-
React.forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
2362
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Process, null, ({
|
|
3459
2363
|
loading,
|
|
3460
2364
|
handleProcess,
|
|
3461
2365
|
error,
|
|
3462
2366
|
data
|
|
3463
|
-
}) => React__default.createElement(Feed, _extends_1({}, props, {
|
|
2367
|
+
}) => React__default['default'].createElement(Feed, _extends_1({}, props, {
|
|
3464
2368
|
loading: loading,
|
|
3465
2369
|
handleProcess: handleProcess,
|
|
3466
2370
|
data: data,
|
|
@@ -3486,7 +2390,7 @@ class Group extends React.PureComponent {
|
|
|
3486
2390
|
children,
|
|
3487
2391
|
skin
|
|
3488
2392
|
} = this.props;
|
|
3489
|
-
return React__default.createElement("div", {
|
|
2393
|
+
return React__default['default'].createElement("div", {
|
|
3490
2394
|
className: "fb-group",
|
|
3491
2395
|
style: style,
|
|
3492
2396
|
"data-href": href,
|
|
@@ -3509,9 +2413,9 @@ defineProperty(Group, "defaultProps", {
|
|
|
3509
2413
|
skin: undefined
|
|
3510
2414
|
});
|
|
3511
2415
|
|
|
3512
|
-
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2416
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3513
2417
|
handleParse
|
|
3514
|
-
}) => React__default.createElement(Group, _extends_1({}, props, {
|
|
2418
|
+
}) => React__default['default'].createElement(Group, _extends_1({}, props, {
|
|
3515
2419
|
handleParse: handleParse,
|
|
3516
2420
|
ref: ref
|
|
3517
2421
|
}))));
|
|
@@ -3575,7 +2479,7 @@ class LoginStatus$1 extends React.Component {
|
|
|
3575
2479
|
const {
|
|
3576
2480
|
children
|
|
3577
2481
|
} = this.props;
|
|
3578
|
-
return React__default.createElement(Initialize$1, {
|
|
2482
|
+
return React__default['default'].createElement(Initialize$1, {
|
|
3579
2483
|
onReady: this.handleReady
|
|
3580
2484
|
}, children);
|
|
3581
2485
|
}
|
|
@@ -3672,9 +2576,9 @@ class Profile extends React.Component {
|
|
|
3672
2576
|
loading,
|
|
3673
2577
|
error
|
|
3674
2578
|
} = this.state;
|
|
3675
|
-
return React__default.createElement(Initialize$1, {
|
|
2579
|
+
return React__default['default'].createElement(Initialize$1, {
|
|
3676
2580
|
onReady: this.handleReady
|
|
3677
|
-
}, React__default.createElement(LoginStatus$1, {
|
|
2581
|
+
}, React__default['default'].createElement(LoginStatus$1, {
|
|
3678
2582
|
event: "auth.statusChange",
|
|
3679
2583
|
onChange: this.handleStatusChange
|
|
3680
2584
|
}, children({
|
|
@@ -3709,7 +2613,7 @@ class CustomChat extends React.PureComponent {
|
|
|
3709
2613
|
greetingDialogDisplay,
|
|
3710
2614
|
greetingDialogDelay
|
|
3711
2615
|
} = this.props;
|
|
3712
|
-
return React__default.createElement("div", {
|
|
2616
|
+
return React__default['default'].createElement("div", {
|
|
3713
2617
|
className: "fb-customerchat",
|
|
3714
2618
|
page_id: pageId,
|
|
3715
2619
|
theme_color: themeColor,
|
|
@@ -3733,9 +2637,9 @@ defineProperty(CustomChat, "defaultProps", {
|
|
|
3733
2637
|
greetingDialogDelay: undefined
|
|
3734
2638
|
});
|
|
3735
2639
|
|
|
3736
|
-
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2640
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3737
2641
|
handleParse
|
|
3738
|
-
}) => React__default.createElement(CustomChat, _extends_1({}, props, {
|
|
2642
|
+
}) => React__default['default'].createElement(CustomChat, _extends_1({}, props, {
|
|
3739
2643
|
handleParse: handleParse,
|
|
3740
2644
|
ref: ref
|
|
3741
2645
|
}))));
|
|
@@ -3756,7 +2660,7 @@ class MessageUs extends React.PureComponent {
|
|
|
3756
2660
|
children,
|
|
3757
2661
|
size
|
|
3758
2662
|
} = this.props;
|
|
3759
|
-
return React__default.createElement("div", {
|
|
2663
|
+
return React__default['default'].createElement("div", {
|
|
3760
2664
|
className: "fb-messengermessageus",
|
|
3761
2665
|
messenger_app_id: messengerAppId,
|
|
3762
2666
|
page_id: pageId,
|
|
@@ -3773,9 +2677,9 @@ defineProperty(MessageUs, "defaultProps", {
|
|
|
3773
2677
|
children: undefined
|
|
3774
2678
|
});
|
|
3775
2679
|
|
|
3776
|
-
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2680
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3777
2681
|
handleParse
|
|
3778
|
-
}) => React__default.createElement(MessageUs, _extends_1({}, props, {
|
|
2682
|
+
}) => React__default['default'].createElement(MessageUs, _extends_1({}, props, {
|
|
3779
2683
|
handleParse: handleParse,
|
|
3780
2684
|
ref: ref
|
|
3781
2685
|
}))));
|
|
@@ -3801,7 +2705,7 @@ class MessengerCheckbox extends React.PureComponent {
|
|
|
3801
2705
|
centerAlign,
|
|
3802
2706
|
skin
|
|
3803
2707
|
} = this.props;
|
|
3804
|
-
return React__default.createElement("div", {
|
|
2708
|
+
return React__default['default'].createElement("div", {
|
|
3805
2709
|
className: "fb-messenger-checkbox",
|
|
3806
2710
|
messenger_app_id: messengerAppId,
|
|
3807
2711
|
page_id: pageId,
|
|
@@ -3828,9 +2732,9 @@ defineProperty(MessengerCheckbox, "defaultProps", {
|
|
|
3828
2732
|
centerAlign: undefined
|
|
3829
2733
|
});
|
|
3830
2734
|
|
|
3831
|
-
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2735
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3832
2736
|
handleParse
|
|
3833
|
-
}) => React__default.createElement(MessengerCheckbox, _extends_1({}, props, {
|
|
2737
|
+
}) => React__default['default'].createElement(MessengerCheckbox, _extends_1({}, props, {
|
|
3834
2738
|
handleParse: handleParse,
|
|
3835
2739
|
ref: ref
|
|
3836
2740
|
}))));
|
|
@@ -3854,7 +2758,7 @@ class SendToMessenger extends React.PureComponent {
|
|
|
3854
2758
|
dataRef,
|
|
3855
2759
|
size
|
|
3856
2760
|
} = this.props;
|
|
3857
|
-
return React__default.createElement("div", {
|
|
2761
|
+
return React__default['default'].createElement("div", {
|
|
3858
2762
|
className: "fb-send-to-messenger",
|
|
3859
2763
|
messenger_app_id: messengerAppId,
|
|
3860
2764
|
page_id: pageId,
|
|
@@ -3873,9 +2777,9 @@ defineProperty(SendToMessenger, "defaultProps", {
|
|
|
3873
2777
|
children: undefined
|
|
3874
2778
|
});
|
|
3875
2779
|
|
|
3876
|
-
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2780
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3877
2781
|
handleParse
|
|
3878
|
-
}) => React__default.createElement(SendToMessenger, _extends_1({}, props, {
|
|
2782
|
+
}) => React__default['default'].createElement(SendToMessenger, _extends_1({}, props, {
|
|
3879
2783
|
handleParse: handleParse,
|
|
3880
2784
|
ref: ref
|
|
3881
2785
|
}))));
|
|
@@ -3987,61 +2891,61 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
3987
2891
|
}, []);
|
|
3988
2892
|
|
|
3989
2893
|
var variant = 'black';
|
|
3990
|
-
return React__default.createElement(
|
|
3991
|
-
React__default.Fragment,
|
|
2894
|
+
return React__default['default'].createElement(
|
|
2895
|
+
React__default['default'].Fragment,
|
|
3992
2896
|
null,
|
|
3993
|
-
React__default.createElement(
|
|
2897
|
+
React__default['default'].createElement(
|
|
3994
2898
|
'div',
|
|
3995
2899
|
{ ref: viewableWindow, id: 'vid-slider', className: 'col' },
|
|
3996
|
-
React__default.createElement(
|
|
2900
|
+
React__default['default'].createElement(
|
|
3997
2901
|
'div',
|
|
3998
2902
|
{ className: 'row' },
|
|
3999
|
-
showScroller && React__default.createElement(
|
|
2903
|
+
showScroller && React__default['default'].createElement(
|
|
4000
2904
|
'div',
|
|
4001
2905
|
{ onClick: function onClick(e) {
|
|
4002
2906
|
return scrollSlider(e, 'prev');
|
|
4003
2907
|
}, className: 'tile__slider-prev', style: { color: variant } },
|
|
4004
|
-
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow left' })
|
|
2908
|
+
React__default['default'].createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow left' })
|
|
4005
2909
|
),
|
|
4006
|
-
showScroller && React__default.createElement(
|
|
2910
|
+
showScroller && React__default['default'].createElement(
|
|
4007
2911
|
'div',
|
|
4008
2912
|
{ onClick: function onClick(e) {
|
|
4009
2913
|
return scrollSlider(e, 'next');
|
|
4010
2914
|
}, className: 'tile__slider-next', style: { color: variant } },
|
|
4011
|
-
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow right' })
|
|
2915
|
+
React__default['default'].createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow right' })
|
|
4012
2916
|
),
|
|
4013
|
-
React__default.createElement(
|
|
2917
|
+
React__default['default'].createElement(
|
|
4014
2918
|
'div',
|
|
4015
2919
|
{ ref: innerSlider, className: 'row__inner' },
|
|
4016
2920
|
props.data.slides.map(function (img, index) {
|
|
4017
2921
|
var thumbnail = urlFor({ client: client, source: img.slideshowImage, imageWidth: 250 });
|
|
4018
2922
|
if (!img.slideshowImage.link) {
|
|
4019
|
-
return React__default.createElement(
|
|
2923
|
+
return React__default['default'].createElement(
|
|
4020
2924
|
'div',
|
|
4021
2925
|
{ ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
|
|
4022
|
-
React__default.createElement(
|
|
2926
|
+
React__default['default'].createElement(
|
|
4023
2927
|
'div',
|
|
4024
2928
|
{ className: 'tile__media' },
|
|
4025
|
-
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
2929
|
+
React__default['default'].createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
4026
2930
|
),
|
|
4027
|
-
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
2931
|
+
React__default['default'].createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
4028
2932
|
);
|
|
4029
2933
|
} else {
|
|
4030
|
-
return React__default.createElement(
|
|
2934
|
+
return React__default['default'].createElement(
|
|
4031
2935
|
'a',
|
|
4032
2936
|
{ ref: tile, key: index, href: img.slideshowImage.link, target: img.slideshowImage.blank ? '_target' : '_self', className: 'tile', style: { width: tileSize + 'px' } },
|
|
4033
|
-
React__default.createElement(
|
|
2937
|
+
React__default['default'].createElement(
|
|
4034
2938
|
'div',
|
|
4035
2939
|
{ className: 'tile__media' },
|
|
4036
|
-
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
2940
|
+
React__default['default'].createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
4037
2941
|
),
|
|
4038
|
-
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
2942
|
+
React__default['default'].createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
4039
2943
|
);
|
|
4040
2944
|
}
|
|
4041
2945
|
})
|
|
4042
2946
|
)
|
|
4043
2947
|
),
|
|
4044
|
-
React__default.createElement(
|
|
2948
|
+
React__default['default'].createElement(
|
|
4045
2949
|
'style',
|
|
4046
2950
|
{ jsx: 'true' },
|
|
4047
2951
|
'\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 '
|
|
@@ -4064,112 +2968,112 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
4064
2968
|
pageview = _ref.pageview,
|
|
4065
2969
|
page = _ref.page;
|
|
4066
2970
|
|
|
4067
|
-
return React__default.createElement(
|
|
4068
|
-
React__default.Fragment,
|
|
2971
|
+
return React__default['default'].createElement(
|
|
2972
|
+
React__default['default'].Fragment,
|
|
4069
2973
|
null,
|
|
4070
|
-
React__default.createElement(Breadcrumbs, null),
|
|
4071
|
-
React__default.createElement(
|
|
2974
|
+
React__default['default'].createElement(Breadcrumbs, null),
|
|
2975
|
+
React__default['default'].createElement(
|
|
4072
2976
|
'div',
|
|
4073
2977
|
{ className: 'partners-page' },
|
|
4074
|
-
React__default.createElement(
|
|
2978
|
+
React__default['default'].createElement(
|
|
4075
2979
|
'div',
|
|
4076
2980
|
{ className: 'my-5 partner-logo-wrap', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' } },
|
|
4077
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.link ? React__default.createElement(
|
|
2981
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.link ? React__default['default'].createElement(
|
|
4078
2982
|
'a',
|
|
4079
2983
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%' }, href: partnerDetails.thumbnail.link, target: partnerDetails.thumbnail.blank ? '_blank' : '' },
|
|
4080
|
-
React__default.createElement(
|
|
2984
|
+
React__default['default'].createElement(
|
|
4081
2985
|
'figure',
|
|
4082
2986
|
{ style: { width: '100%', textAlign: 'center' } },
|
|
4083
|
-
React__default.createElement('img', {
|
|
2987
|
+
React__default['default'].createElement('img', {
|
|
4084
2988
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
4085
2989
|
style: { maxWidth: '100%' },
|
|
4086
2990
|
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : '' }),
|
|
4087
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default.createElement(
|
|
2991
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default['default'].createElement(
|
|
4088
2992
|
'figcaption',
|
|
4089
2993
|
null,
|
|
4090
2994
|
partnerDetails.thumbnail.caption
|
|
4091
2995
|
)
|
|
4092
2996
|
)
|
|
4093
|
-
) : React__default.createElement(
|
|
2997
|
+
) : React__default['default'].createElement(
|
|
4094
2998
|
'figure',
|
|
4095
2999
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%', textAlign: 'center' } },
|
|
4096
|
-
React__default.createElement('img', {
|
|
3000
|
+
React__default['default'].createElement('img', {
|
|
4097
3001
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
4098
3002
|
style: { maxWidth: '100%' },
|
|
4099
3003
|
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : '' }),
|
|
4100
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default.createElement(
|
|
3004
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default['default'].createElement(
|
|
4101
3005
|
'figcaption',
|
|
4102
3006
|
null,
|
|
4103
3007
|
partnerDetails.thumbnail.caption
|
|
4104
3008
|
)
|
|
4105
3009
|
),
|
|
4106
|
-
React__default.createElement(
|
|
3010
|
+
React__default['default'].createElement(
|
|
4107
3011
|
'style',
|
|
4108
3012
|
{ jsx: 'true' },
|
|
4109
3013
|
'\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 '
|
|
4110
3014
|
),
|
|
4111
|
-
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook) && React__default.createElement(
|
|
3015
|
+
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook) && React__default['default'].createElement(
|
|
4112
3016
|
'div',
|
|
4113
3017
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
4114
|
-
partnerDetails.description && React__default.createElement(BlockContent.BlockContent, _extends
|
|
4115
|
-
(partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook) && React__default.createElement(
|
|
3018
|
+
partnerDetails.description && React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers.getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
3019
|
+
(partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook) && React__default['default'].createElement(
|
|
4116
3020
|
'div',
|
|
4117
3021
|
null,
|
|
4118
|
-
React__default.createElement(
|
|
3022
|
+
React__default['default'].createElement(
|
|
4119
3023
|
'p',
|
|
4120
3024
|
{ 'class': 'd-inline-block font-weight-bold' },
|
|
4121
3025
|
'Connect with us:'
|
|
4122
3026
|
),
|
|
4123
3027
|
' ',
|
|
4124
|
-
partnerDetails.linkedin && React__default.createElement(reactSocialIcons.reactSocialIcons_1, {
|
|
3028
|
+
partnerDetails.linkedin && React__default['default'].createElement(reactSocialIcons.reactSocialIcons_1, {
|
|
4125
3029
|
url: '' + partnerDetails.linkedin + (partnerDetails.linkedin.slice(-1) === '/' ? '' : '/') + 'posts/?feedView=all',
|
|
4126
3030
|
target: '_blank',
|
|
4127
3031
|
rel: 'noopener noreferrer',
|
|
4128
3032
|
style: { height: 30, width: 30 }
|
|
4129
3033
|
}),
|
|
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' } })
|
|
3034
|
+
partnerDetails.twitter && partnerDetails.facebook && React__default['default'].createElement(reactSocialIcons.reactSocialIcons_1, { url: partnerDetails.facebook, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } })
|
|
4131
3035
|
)
|
|
4132
3036
|
)
|
|
4133
3037
|
),
|
|
4134
|
-
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React__default.createElement(
|
|
3038
|
+
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React__default['default'].createElement(
|
|
4135
3039
|
'div',
|
|
4136
3040
|
{ className: 'mb-4', style: { padding: '0 15px' } },
|
|
4137
|
-
partnerDetails.affiliates[0].title && React__default.createElement(
|
|
3041
|
+
partnerDetails.affiliates[0].title && React__default['default'].createElement(
|
|
4138
3042
|
'h2',
|
|
4139
3043
|
{ className: 'bb-gold' },
|
|
4140
3044
|
partnerDetails.affiliates[0].title
|
|
4141
3045
|
),
|
|
4142
|
-
React__default.createElement(ImageSlider, { client: client, data: partnerDetails.affiliates[0] })
|
|
3046
|
+
React__default['default'].createElement(ImageSlider, { client: client, data: partnerDetails.affiliates[0] })
|
|
4143
3047
|
),
|
|
4144
|
-
features.length > 0 && React__default.createElement(
|
|
3048
|
+
features.length > 0 && React__default['default'].createElement(
|
|
4145
3049
|
'div',
|
|
4146
3050
|
{ className: ' mb-5' },
|
|
4147
|
-
React__default.createElement(Feature, { dataset: features, client: client })
|
|
3051
|
+
React__default['default'].createElement(Feature, { dataset: features, client: client })
|
|
4148
3052
|
),
|
|
4149
|
-
(partnerDetails.twitter || partnerDetails.facebook) && React__default.createElement(
|
|
3053
|
+
(partnerDetails.twitter || partnerDetails.facebook) && React__default['default'].createElement(
|
|
4150
3054
|
'div',
|
|
4151
3055
|
{ className: 'mb-5', style: { width: '100%', maxWidth: '100%', textAlign: 'center', padding: '15px', border: '2px solid #aaa', borderRadius: '15px' } },
|
|
4152
|
-
partnerDetails.twitter ? React__default.createElement(TwitterTimelineEmbed, { sourceType: 'url', url: partnerDetails.twitter, options: { height: 400 } }) : partnerDetails.facebook && React__default.createElement(
|
|
3056
|
+
partnerDetails.twitter ? React__default['default'].createElement(reactTwitterEmbed.TwitterTimelineEmbed, { sourceType: 'url', url: partnerDetails.twitter, options: { height: 400 } }) : partnerDetails.facebook && React__default['default'].createElement(
|
|
4153
3057
|
Facebook$1,
|
|
4154
3058
|
{ appId: ' ' },
|
|
4155
|
-
React__default.createElement(Page$1, { href: partnerDetails.facebook, tabs: 'timeline', width: '500', height: '500' })
|
|
3059
|
+
React__default['default'].createElement(Page$1, { href: partnerDetails.facebook, tabs: 'timeline', width: '500', height: '500' })
|
|
4156
3060
|
)
|
|
4157
3061
|
),
|
|
4158
|
-
React__default.createElement(
|
|
3062
|
+
React__default['default'].createElement(
|
|
4159
3063
|
'div',
|
|
4160
3064
|
null,
|
|
4161
|
-
posts && posts.length > 0 && React__default.createElement(
|
|
4162
|
-
React__default.Fragment,
|
|
3065
|
+
posts && posts.length > 0 && React__default['default'].createElement(
|
|
3066
|
+
React__default['default'].Fragment,
|
|
4163
3067
|
null,
|
|
4164
|
-
React__default.createElement(
|
|
3068
|
+
React__default['default'].createElement(
|
|
4165
3069
|
'h2',
|
|
4166
3070
|
{ className: 'bb-gold mb-2' },
|
|
4167
3071
|
'Latest from ',
|
|
4168
3072
|
partnerDetails.name
|
|
4169
3073
|
),
|
|
4170
|
-
React__default.createElement('hr', null)
|
|
3074
|
+
React__default['default'].createElement('hr', null)
|
|
4171
3075
|
),
|
|
4172
|
-
React__default.createElement(QueueDeckExpanded, {
|
|
3076
|
+
React__default['default'].createElement(QueueDeckExpanded, {
|
|
4173
3077
|
client: client,
|
|
4174
3078
|
mapping: Settings.mapping,
|
|
4175
3079
|
dataRecord: posts,
|