@mjhls/mjh-framework 1.0.994-CypressV3 → 1.0.994-invalidelement-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 +168 -168
- package/dist/cjs/AD.js +6 -6
- package/dist/cjs/AD300x250.js +5 -5
- package/dist/cjs/AD300x250x600.js +5 -5
- package/dist/cjs/AD728x90.js +6 -6
- package/dist/cjs/ADFloatingFooter.js +8 -8
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +8 -8
- package/dist/cjs/{ADInfeed-e87afe8a.js → ADInfeed-f316b66a.js} +5 -5
- package/dist/cjs/ADSkyscraper.js +8 -8
- package/dist/cjs/ADSponsoredResources.js +8 -8
- package/dist/cjs/ADWebcast.js +8 -8
- package/dist/cjs/ADWelcome.js +12 -12
- package/dist/cjs/{ADlgInfeed-b5a3d436.js → ADlgInfeed-2003306e.js} +3 -3
- package/dist/cjs/AccordionPanel.js +17 -17
- package/dist/cjs/AdSlot.js +9 -9
- package/dist/cjs/AdSlotsProvider.js +7 -8
- package/dist/cjs/AlgoliaSearch.js +1214 -1129
- package/dist/cjs/AlphabeticList.js +12 -12
- package/dist/cjs/ArticleCarousel.js +5 -5
- package/dist/cjs/ArticleProgramLandingPage.js +16 -16
- package/dist/cjs/ArticleSeriesLandingPage.js +11 -11
- package/dist/cjs/ArticleSeriesListing.js +29 -29
- package/dist/cjs/Auth.js +23075 -242
- package/dist/cjs/AuthWrapper.js +120 -30
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-7d00f6d5.js} +9 -9
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-96b44364.js} +18 -18
- package/dist/cjs/Breadcrumbs.js +17 -17
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +7 -7
- package/dist/cjs/Column2.js +15 -15
- package/dist/cjs/Column3.js +27 -27
- package/dist/cjs/ConferenceArticleCard.js +27 -27
- package/dist/cjs/{ConferenceBanner-6c9e718a.js → ConferenceBanner-213003ce.js} +3 -3
- package/dist/cjs/ContentCardPaginated.js +49 -49
- package/dist/cjs/DeckContent.js +66 -66
- package/dist/cjs/DeckQueue.js +57 -57
- package/dist/cjs/DeckQueuePaginated.js +46 -46
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-c313a700.js} +17 -17
- package/dist/cjs/EventsDeck.js +107 -107
- package/dist/cjs/ExternalResources.js +36 -36
- package/dist/cjs/Feature.js +17 -17
- package/dist/cjs/ForbesHero.js +25 -25
- package/dist/cjs/GridContent.js +134 -134
- package/dist/cjs/GridContentPaginated.js +121 -121
- package/dist/cjs/GridHero.js +26 -26
- package/dist/cjs/GroupDeck.js +33 -33
- package/dist/cjs/HamMagazine.js +130 -130
- package/dist/cjs/Header.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +18 -18
- package/dist/cjs/Hero.js +5 -5
- package/dist/cjs/HighlightenVideo.js +13 -13
- package/dist/cjs/HorizontalArticleListing.js +30 -30
- package/dist/cjs/HorizontalHero.js +17 -17
- package/dist/cjs/{ImageSlider-6c00b878.js → ImageSlider-ca708da8.js} +1315 -176
- package/dist/cjs/IssueContentDeck.js +49 -49
- package/dist/cjs/IssueDeck.js +48 -48
- package/dist/cjs/IssueLanding.js +50 -50
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +17 -17
- package/dist/cjs/MasterDeck.js +47 -47
- package/dist/cjs/MasterDeckPaginated.js +37 -37
- package/dist/cjs/{Tooltip-f075b7ef.js → MediaSeriesCard-f6db8f70.js} +678 -531
- package/dist/cjs/MediaSeriesLanding.js +56 -57
- package/dist/cjs/MediaSeriesLandingPaginated.js +54 -55
- package/dist/cjs/NavDvm.js +57 -57
- package/dist/cjs/{NavFooter-4799de4b.js → NavFooter-880e9d87.js} +11 -11
- package/dist/cjs/NavMagazine.js +116 -116
- package/dist/cjs/NavNative.js +106 -106
- package/dist/cjs/OncliveHero.js +11 -11
- package/dist/cjs/OncliveLargeHero.js +49 -49
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/{Pagination-2a3d0103.js → Pagination-6359861a.js} +13 -13
- package/dist/cjs/PartnerDetailListing.js +52 -53
- package/dist/cjs/PartnerDetailListingPaginated.js +50 -73
- package/dist/cjs/PdfDownload.js +4 -4
- package/dist/cjs/PixelTracking.js +9 -9
- package/dist/cjs/PopUpModal.js +9 -9
- package/dist/cjs/PtceDeck.js +13 -13
- package/dist/cjs/PubSection.js +13 -13
- package/dist/cjs/PubToc.js +4 -4
- package/dist/cjs/PublicationDeck.js +44 -44
- package/dist/cjs/{PublicationFeature-5ccf9b13.js → PublicationFeature-a989a2b3.js} +29 -29
- package/dist/cjs/PublicationLanding.js +99 -99
- package/dist/cjs/QueueDeckExpanded.js +245 -245
- package/dist/cjs/QueueDeckExpandedPaginated.js +222 -222
- package/dist/cjs/RecentNews.js +15 -15
- package/dist/cjs/RelatedContent.js +42 -42
- package/dist/cjs/RelatedTopicsDropdown.js +24 -24
- package/dist/cjs/RolesDeck.js +20 -20
- package/dist/cjs/Schema.js +55 -52
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +18 -18
- package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-f5248377.js} +26 -26
- package/dist/cjs/SideFooter.js +20 -20
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-d2ab3d62.js → SocialSearchComponent-ca9c0c45.js} +28 -28
- package/dist/cjs/SocialShare.js +25 -25
- package/dist/cjs/TaxonomyCard.js +44 -44
- package/dist/cjs/TaxonomyDescription.js +13 -13
- package/dist/cjs/TemplateNormal.js +27 -27
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/Ustream.js +9 -9
- package/dist/cjs/VerticalHero.js +10 -10
- package/dist/cjs/VideoProgramLandingPage.js +30 -30
- package/dist/cjs/VideoSeriesCard.js +14 -14
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +11 -11
- package/dist/cjs/VideoSeriesListing.js +46 -46
- package/dist/cjs/View.js +261 -274
- package/dist/cjs/YahooHero.js +22 -22
- package/dist/cjs/YoutubeGroup.js +37 -37
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-4c7825a1.js} +2 -2
- package/dist/cjs/defineProperty-ad65f5f0.js +110 -0
- package/dist/{esm/util-8ed16d48.js → cjs/empty-559717f3.js} +146 -1
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getSerializers.js +8 -8
- package/dist/cjs/{getTargeting-ba942d9a.js → getTargeting-4439c99d.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-be4097c0.js +2 -4
- package/dist/cjs/index-0cf4c9fc.js +904 -0
- package/dist/cjs/{index-eadd5035.js → index-65621b6c.js} +5 -5
- package/dist/cjs/{index-f86bb269.js → index-96c331fd.js} +53 -52
- package/dist/cjs/{index-50be6759.js → index-9ec837cc.js} +9 -25
- package/dist/cjs/{index-f95a3c0f.js → index-b10d6863.js} +495 -511
- package/dist/cjs/{index-fc2f1ca2.js → index-d2a6ef75.js} +4 -4
- package/dist/cjs/{index.es-f3e47207.js → index.es-1ab8dda7.js} +4 -4
- package/dist/cjs/{index.esm-1461604c.js → index.esm-f59ef5b4.js} +14 -14
- package/dist/cjs/index.js +106 -111
- package/dist/cjs/{main-f1c77adb.js → main-6054981e.js} +17 -22
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-2c5c389a.js} +7 -7
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-56020df6.js} +1 -1
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +1 -1
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/ADSkyscraper.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlgoliaSearch.js +643 -558
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +4 -4
- package/dist/esm/ArticleSeriesLandingPage.js +3 -3
- package/dist/esm/ArticleSeriesListing.js +1 -1
- package/dist/esm/Auth.js +22999 -163
- package/dist/esm/AuthWrapper.js +93 -3
- package/dist/esm/CMEDeck.js +1 -1
- package/dist/esm/Column3.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +3 -3
- package/dist/esm/DeckContent.js +10 -10
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/DeckQueuePaginated.js +2 -2
- package/dist/esm/EventsDeck.js +19 -19
- package/dist/esm/ExternalResources.js +5 -5
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/GridContent.js +3 -3
- package/dist/esm/GridContentPaginated.js +4 -4
- package/dist/esm/HamMagazine.js +29 -29
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +4 -4
- package/dist/esm/{ImageSlider-f84174cb.js → ImageSlider-fada4f0c.js} +1257 -119
- package/dist/esm/IssueLanding.js +35 -35
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +1 -1
- package/dist/esm/MasterDeck.js +11 -11
- package/dist/esm/MasterDeckPaginated.js +12 -12
- package/dist/esm/{Tooltip-95655b44.js → MediaSeriesCard-96ac8ed4.js} +396 -250
- package/dist/esm/MediaSeriesLanding.js +18 -19
- package/dist/esm/MediaSeriesLandingPaginated.js +18 -19
- package/dist/esm/NavMagazine.js +12 -12
- package/dist/esm/NavNative.js +10 -10
- package/dist/esm/{Pagination-dc30727b.js → Pagination-9fe9f61d.js} +1 -1
- package/dist/esm/PartnerDetailListing.js +8 -9
- package/dist/esm/PartnerDetailListingPaginated.js +16 -39
- package/dist/esm/PubSection.js +3 -3
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpanded.js +3 -3
- package/dist/esm/QueueDeckExpandedPaginated.js +4 -4
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Schema.js +55 -52
- package/dist/esm/SeriesListingDeck.js +2 -2
- package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-4875823e.js} +5 -5
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/{SocialSearchComponent-165b4ae7.js → SocialSearchComponent-68d948b9.js} +1 -1
- package/dist/esm/TaxonomyDescription.js +4 -4
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +4 -4
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +3 -3
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/View.js +45 -58
- package/dist/esm/YoutubeGroup.js +5 -5
- package/dist/esm/defineProperty-50094484.js +101 -0
- package/dist/{cjs/util-93a37fd0.js → esm/empty-a8042e3c.js} +135 -3
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getSerializers.js +4 -4
- package/dist/esm/{getTargeting-9bd28724.js → getTargeting-c6884f34.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-04817712.js → index-076baa11.js} +12 -27
- package/dist/esm/{index-98ca9cec.js → index-0ce54f8a.js} +10 -25
- package/dist/esm/{index-79cfd25c.js → index-30a6257d.js} +53 -52
- package/dist/esm/index-e7075467.js +897 -0
- package/dist/esm/index.js +13 -18
- package/dist/esm/{main-1894c974.js → main-9f6806ea.js} +4 -9
- package/package.json +115 -115
- package/dist/cjs/CypressTesting.js +0 -53
- package/dist/cjs/MediaSeriesCard-2e5cd247.js +0 -81
- package/dist/cjs/PodcastsLanding.js +0 -235
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/CypressTesting.js +0 -47
- package/dist/esm/MediaSeriesCard-afb517a5.js +0 -75
- package/dist/esm/PodcastsLanding.js +0 -228
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/typeof-2f07d0e8.js +0 -30
- /package/dist/esm/{ADInfeed-5765a73a.js → ADInfeed-777bb0b3.js} +0 -0
- /package/dist/esm/{ADlgInfeed-5e36f317.js → ADlgInfeed-e7fd1bb6.js} +0 -0
|
@@ -1,17 +1,1169 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defineProperty = require('./defineProperty-
|
|
3
|
+
var defineProperty$1 = require('./defineProperty-ad65f5f0.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
5
|
var PropTypes = require('prop-types');
|
|
6
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
7
7
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
8
8
|
var smoothscroll = require('./smoothscroll-99df7f93.js');
|
|
9
9
|
var urlFor = require('./urlFor.js');
|
|
10
10
|
|
|
11
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
15
|
+
|
|
16
|
+
var isRequiredIf_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
17
|
+
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.
|
|
18
|
+
}};exports.default=isRequiredIf;
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
var isRequiredIf = _commonjsHelpers.unwrapExports(isRequiredIf_1);
|
|
24
|
+
|
|
25
|
+
var exenv = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
26
|
+
/*!
|
|
27
|
+
Copyright (c) 2015 Jed Watson.
|
|
28
|
+
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
29
|
+
All rights reserved.
|
|
30
|
+
*/
|
|
31
|
+
/* global define */
|
|
32
|
+
|
|
33
|
+
(function () {
|
|
34
|
+
|
|
35
|
+
var canUseDOM = !!(
|
|
36
|
+
typeof window !== 'undefined' &&
|
|
37
|
+
window.document &&
|
|
38
|
+
window.document.createElement
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
var ExecutionEnvironment = {
|
|
42
|
+
|
|
43
|
+
canUseDOM: canUseDOM,
|
|
44
|
+
|
|
45
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
|
46
|
+
|
|
47
|
+
canUseEventListeners:
|
|
48
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
49
|
+
|
|
50
|
+
canUseViewport: canUseDOM && !!window.screen
|
|
51
|
+
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
if (module.exports) {
|
|
55
|
+
module.exports = ExecutionEnvironment;
|
|
56
|
+
} else {
|
|
57
|
+
window.ExecutionEnvironment = ExecutionEnvironment;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
}());
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
var twitterWidgetJs = 'https://platform.twitter.com/widgets.js';
|
|
64
|
+
|
|
65
|
+
var TwitterTimelineEmbed =
|
|
66
|
+
/*#__PURE__*/
|
|
67
|
+
function (_Component) {
|
|
68
|
+
defineProperty$1._inherits(TwitterTimelineEmbed, _Component);
|
|
69
|
+
|
|
70
|
+
function TwitterTimelineEmbed(props) {
|
|
71
|
+
var _this;
|
|
72
|
+
|
|
73
|
+
defineProperty$1._classCallCheck(this, TwitterTimelineEmbed);
|
|
74
|
+
|
|
75
|
+
_this = defineProperty$1._possibleConstructorReturn(this, defineProperty$1._getPrototypeOf(TwitterTimelineEmbed).call(this, props));
|
|
76
|
+
_this.state = {
|
|
77
|
+
isLoading: true
|
|
78
|
+
};
|
|
79
|
+
return _this;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
defineProperty$1._createClass(TwitterTimelineEmbed, [{
|
|
83
|
+
key: "buildChromeOptions",
|
|
84
|
+
value: function buildChromeOptions(options) {
|
|
85
|
+
options.chrome = '';
|
|
86
|
+
|
|
87
|
+
if (this.props.noHeader) {
|
|
88
|
+
options.chrome = options.chrome + ' noheader';
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (this.props.noFooter) {
|
|
92
|
+
options.chrome = options.chrome + ' nofooter';
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if (this.props.noBorders) {
|
|
96
|
+
options.chrome = options.chrome + ' noborders';
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (this.props.noScrollbar) {
|
|
100
|
+
options.chrome = options.chrome + ' noscrollbar';
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (this.props.transparent) {
|
|
104
|
+
options.chrome = options.chrome + ' transparent';
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return options;
|
|
108
|
+
}
|
|
109
|
+
}, {
|
|
110
|
+
key: "buildOptions",
|
|
111
|
+
value: function buildOptions() {
|
|
112
|
+
var options = Object.assign({}, this.props.options);
|
|
113
|
+
|
|
114
|
+
if (this.props.autoHeight) {
|
|
115
|
+
options.height = this.refs.embedContainer.parentNode.offsetHeight;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
options = Object.assign({}, options, {
|
|
119
|
+
theme: this.props.theme,
|
|
120
|
+
linkColor: this.props.linkColor,
|
|
121
|
+
borderColor: this.props.borderColor,
|
|
122
|
+
lang: this.props.lang
|
|
123
|
+
});
|
|
124
|
+
return options;
|
|
125
|
+
}
|
|
126
|
+
}, {
|
|
127
|
+
key: "renderWidget",
|
|
128
|
+
value: function renderWidget(options) {
|
|
129
|
+
var _this2 = this;
|
|
130
|
+
|
|
131
|
+
var onLoad = this.props.onLoad;
|
|
132
|
+
|
|
133
|
+
if (!this.isMountCanceled) {
|
|
134
|
+
window.twttr.widgets.createTimeline({
|
|
135
|
+
sourceType: this.props.sourceType,
|
|
136
|
+
screenName: this.props.screenName,
|
|
137
|
+
userId: this.props.userId,
|
|
138
|
+
ownerScreenName: this.props.ownerScreenName,
|
|
139
|
+
slug: this.props.slug,
|
|
140
|
+
id: this.props.id || this.props.widgetId,
|
|
141
|
+
url: this.props.url
|
|
142
|
+
}, this.refs.embedContainer, options).then(function (element) {
|
|
143
|
+
_this2.setState({
|
|
144
|
+
isLoading: false
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
if (onLoad) {
|
|
148
|
+
onLoad(element);
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}, {
|
|
154
|
+
key: "componentDidMount",
|
|
155
|
+
value: function componentDidMount() {
|
|
156
|
+
var _this3 = this;
|
|
157
|
+
|
|
158
|
+
if (exenv.canUseDOM) {
|
|
159
|
+
var script = require('scriptjs');
|
|
160
|
+
|
|
161
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
162
|
+
if (!window.twttr) {
|
|
163
|
+
console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.');
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
var options = _this3.buildOptions();
|
|
168
|
+
/** Append chrome options */
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
options = _this3.buildChromeOptions(options);
|
|
172
|
+
|
|
173
|
+
_this3.renderWidget(options);
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}, {
|
|
178
|
+
key: "componentWillUnmount",
|
|
179
|
+
value: function componentWillUnmount() {
|
|
180
|
+
this.isMountCanceled = true;
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
key: "render",
|
|
184
|
+
value: function render() {
|
|
185
|
+
var isLoading = this.state.isLoading;
|
|
186
|
+
var placeholder = this.props.placeholder;
|
|
187
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, isLoading && placeholder, React__default["default"].createElement("div", {
|
|
188
|
+
ref: "embedContainer"
|
|
189
|
+
}));
|
|
190
|
+
}
|
|
191
|
+
}]);
|
|
192
|
+
|
|
193
|
+
return TwitterTimelineEmbed;
|
|
194
|
+
}(React.Component);
|
|
195
|
+
|
|
196
|
+
defineProperty$1._defineProperty(TwitterTimelineEmbed, "propTypes", {
|
|
197
|
+
/**
|
|
198
|
+
* This can be either of profile, likes, list, collection, URL, widget
|
|
199
|
+
*/
|
|
200
|
+
sourceType: PropTypes__default["default"].oneOf(['profile', 'likes', 'list', 'collection', 'url', 'widget']).isRequired,
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* username of twitter handle as String
|
|
204
|
+
*/
|
|
205
|
+
screenName: isRequiredIf(PropTypes__default["default"].string, function (props) {
|
|
206
|
+
return !props.hasOwnProperty('userId') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
207
|
+
}),
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* UserId of twitter handle as number
|
|
211
|
+
*/
|
|
212
|
+
userId: isRequiredIf(PropTypes__default["default"].number, function (props) {
|
|
213
|
+
return !props.hasOwnProperty('screenName') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
214
|
+
}),
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* To show list, used along with slug
|
|
218
|
+
*/
|
|
219
|
+
ownerScreenName: isRequiredIf(PropTypes__default["default"].string, function (props) {
|
|
220
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
221
|
+
}),
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* To show list, used along with ownerScreenName
|
|
225
|
+
*/
|
|
226
|
+
slug: isRequiredIf(PropTypes__default["default"].string, function (props) {
|
|
227
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
228
|
+
}),
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* To show list, unique list id
|
|
232
|
+
* Also used with collections, in that case its valid collection id
|
|
233
|
+
*/
|
|
234
|
+
id: isRequiredIf(PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string]), function (props) {
|
|
235
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('ownerScreenName') && !props.hasOwnProperty('slug') || props.sourceType === 'collection';
|
|
236
|
+
}),
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* To show twitter content with url.
|
|
240
|
+
* Supported content includes profiles, likes, lists, and collections.
|
|
241
|
+
*/
|
|
242
|
+
url: isRequiredIf(PropTypes__default["default"].string, function (props) {
|
|
243
|
+
return props.sourceType === 'url';
|
|
244
|
+
}),
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* To show custom widget
|
|
248
|
+
*/
|
|
249
|
+
widgetId: isRequiredIf(PropTypes__default["default"].string, function (props) {
|
|
250
|
+
return props.sourceType === 'widget';
|
|
251
|
+
}),
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Additional options to pass to twitter widget plugin
|
|
255
|
+
*/
|
|
256
|
+
options: PropTypes__default["default"].object,
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Automatically fit into parent container height
|
|
260
|
+
*/
|
|
261
|
+
autoHeight: PropTypes__default["default"].bool,
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* With dark or light theme
|
|
265
|
+
*/
|
|
266
|
+
theme: PropTypes__default["default"].oneOf(['dark', 'light']),
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* With custom link colors. Note: Only Hex colors are supported.
|
|
270
|
+
*/
|
|
271
|
+
linkColor: PropTypes__default["default"].string,
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* With custom border colors. Note: Only Hex colors are supported.
|
|
275
|
+
*/
|
|
276
|
+
borderColor: PropTypes__default["default"].string,
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Hide the header from timeline
|
|
280
|
+
*/
|
|
281
|
+
noHeader: PropTypes__default["default"].bool,
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Hide the footer from timeline
|
|
285
|
+
*/
|
|
286
|
+
noFooter: PropTypes__default["default"].bool,
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Hide the border from timeline
|
|
290
|
+
*/
|
|
291
|
+
noBorders: PropTypes__default["default"].bool,
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Hide the scrollbars
|
|
295
|
+
*/
|
|
296
|
+
noScrollbar: PropTypes__default["default"].bool,
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Enable Transparancy
|
|
300
|
+
*/
|
|
301
|
+
transparent: PropTypes__default["default"].bool,
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Custom language code. Supported codes here: https://developer.twitter.com/en/docs/twitter-for-websites/twitter-for-websites-supported-languages/overview.html
|
|
305
|
+
*/
|
|
306
|
+
lang: PropTypes__default["default"].string,
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Placeholder while tweet is loading
|
|
310
|
+
*/
|
|
311
|
+
placeholder: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].element]),
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Function to execute after load, return html element
|
|
315
|
+
*/
|
|
316
|
+
onLoad: PropTypes__default["default"].func
|
|
317
|
+
});
|
|
318
|
+
|
|
319
|
+
var TwitterShareButton =
|
|
320
|
+
/*#__PURE__*/
|
|
321
|
+
function (_Component) {
|
|
322
|
+
defineProperty$1._inherits(TwitterShareButton, _Component);
|
|
323
|
+
|
|
324
|
+
function TwitterShareButton(props) {
|
|
325
|
+
var _this;
|
|
326
|
+
|
|
327
|
+
defineProperty$1._classCallCheck(this, TwitterShareButton);
|
|
328
|
+
|
|
329
|
+
_this = defineProperty$1._possibleConstructorReturn(this, defineProperty$1._getPrototypeOf(TwitterShareButton).call(this, props));
|
|
330
|
+
_this.state = {
|
|
331
|
+
isLoading: true
|
|
332
|
+
};
|
|
333
|
+
return _this;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
defineProperty$1._createClass(TwitterShareButton, [{
|
|
337
|
+
key: "componentDidMount",
|
|
338
|
+
value: function componentDidMount() {
|
|
339
|
+
var _this2 = this;
|
|
340
|
+
|
|
341
|
+
var onLoad = this.props.onLoad;
|
|
342
|
+
|
|
343
|
+
if (exenv.canUseDOM) {
|
|
344
|
+
var script = require('scriptjs');
|
|
345
|
+
|
|
346
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
347
|
+
if (!window.twttr) {
|
|
348
|
+
console.error('Failure to load window.twttr in TwitterShareButton, aborting load.');
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
if (!_this2.isMountCanceled) {
|
|
353
|
+
window.twttr.widgets.createShareButton(_this2.props.url, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
354
|
+
_this2.setState({
|
|
355
|
+
isLoading: false
|
|
356
|
+
});
|
|
357
|
+
|
|
358
|
+
if (onLoad) {
|
|
359
|
+
onLoad(element);
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}, {
|
|
367
|
+
key: "componentWillUnmount",
|
|
368
|
+
value: function componentWillUnmount() {
|
|
369
|
+
this.isMountCanceled = true;
|
|
370
|
+
}
|
|
371
|
+
}, {
|
|
372
|
+
key: "render",
|
|
373
|
+
value: function render() {
|
|
374
|
+
var isLoading = this.state.isLoading;
|
|
375
|
+
var placeholder = this.props.placeholder;
|
|
376
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, isLoading && placeholder, React__default["default"].createElement("div", {
|
|
377
|
+
ref: "embedContainer"
|
|
378
|
+
}));
|
|
379
|
+
}
|
|
380
|
+
}]);
|
|
381
|
+
|
|
382
|
+
return TwitterShareButton;
|
|
383
|
+
}(React.Component);
|
|
384
|
+
|
|
385
|
+
defineProperty$1._defineProperty(TwitterShareButton, "propTypes", {
|
|
386
|
+
/**
|
|
387
|
+
* Url for sharing
|
|
388
|
+
*/
|
|
389
|
+
url: PropTypes__default["default"].string.isRequired,
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Additional options for overriding config. Details at : https://dev.twitter.com/web/tweet-button/parameters
|
|
393
|
+
*/
|
|
394
|
+
options: PropTypes__default["default"].object,
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Placeholder while tweet is loading
|
|
398
|
+
*/
|
|
399
|
+
placeholder: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].element]),
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* Function to execute after load, return html element
|
|
403
|
+
*/
|
|
404
|
+
onLoad: PropTypes__default["default"].func
|
|
405
|
+
});
|
|
406
|
+
|
|
407
|
+
var TwitterFollowButton =
|
|
408
|
+
/*#__PURE__*/
|
|
409
|
+
function (_Component) {
|
|
410
|
+
defineProperty$1._inherits(TwitterFollowButton, _Component);
|
|
411
|
+
|
|
412
|
+
function TwitterFollowButton(props) {
|
|
413
|
+
var _this;
|
|
414
|
+
|
|
415
|
+
defineProperty$1._classCallCheck(this, TwitterFollowButton);
|
|
416
|
+
|
|
417
|
+
_this = defineProperty$1._possibleConstructorReturn(this, defineProperty$1._getPrototypeOf(TwitterFollowButton).call(this, props));
|
|
418
|
+
_this.state = {
|
|
419
|
+
isLoading: true
|
|
420
|
+
};
|
|
421
|
+
return _this;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
defineProperty$1._createClass(TwitterFollowButton, [{
|
|
425
|
+
key: "componentDidMount",
|
|
426
|
+
value: function componentDidMount() {
|
|
427
|
+
var _this2 = this;
|
|
428
|
+
|
|
429
|
+
var onLoad = this.props.onLoad;
|
|
430
|
+
|
|
431
|
+
if (exenv.canUseDOM) {
|
|
432
|
+
var script = require('scriptjs');
|
|
433
|
+
|
|
434
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
435
|
+
if (!window.twttr) {
|
|
436
|
+
console.error('Failure to load window.twttr in TwitterFollowButton, aborting load.');
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
if (!_this2.isMountCanceled) {
|
|
441
|
+
window.twttr.widgets.createFollowButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
442
|
+
_this2.setState({
|
|
443
|
+
isLoading: false
|
|
444
|
+
});
|
|
445
|
+
|
|
446
|
+
if (onLoad) {
|
|
447
|
+
onLoad(element);
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}, {
|
|
455
|
+
key: "componentWillUnmount",
|
|
456
|
+
value: function componentWillUnmount() {
|
|
457
|
+
this.isMountCanceled = true;
|
|
458
|
+
}
|
|
459
|
+
}, {
|
|
460
|
+
key: "render",
|
|
461
|
+
value: function render() {
|
|
462
|
+
var isLoading = this.state.isLoading;
|
|
463
|
+
var placeholder = this.props.placeholder;
|
|
464
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, isLoading && placeholder, React__default["default"].createElement("div", {
|
|
465
|
+
ref: "embedContainer"
|
|
466
|
+
}));
|
|
467
|
+
}
|
|
468
|
+
}]);
|
|
469
|
+
|
|
470
|
+
return TwitterFollowButton;
|
|
471
|
+
}(React.Component);
|
|
472
|
+
|
|
473
|
+
defineProperty$1._defineProperty(TwitterFollowButton, "propTypes", {
|
|
474
|
+
/**
|
|
475
|
+
* Username of twitter user which will be followed on click
|
|
476
|
+
*/
|
|
477
|
+
screenName: PropTypes__default["default"].string.isRequired,
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Additional options to be added to the button
|
|
481
|
+
*/
|
|
482
|
+
options: PropTypes__default["default"].object,
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Placeholder while tweet is loading
|
|
486
|
+
*/
|
|
487
|
+
placeholder: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].element]),
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Function to execute after load, return html element
|
|
491
|
+
*/
|
|
492
|
+
onLoad: PropTypes__default["default"].func
|
|
493
|
+
});
|
|
494
|
+
|
|
495
|
+
var TwitterHashtagButton =
|
|
496
|
+
/*#__PURE__*/
|
|
497
|
+
function (_Component) {
|
|
498
|
+
defineProperty$1._inherits(TwitterHashtagButton, _Component);
|
|
499
|
+
|
|
500
|
+
function TwitterHashtagButton(props) {
|
|
501
|
+
var _this;
|
|
502
|
+
|
|
503
|
+
defineProperty$1._classCallCheck(this, TwitterHashtagButton);
|
|
504
|
+
|
|
505
|
+
_this = defineProperty$1._possibleConstructorReturn(this, defineProperty$1._getPrototypeOf(TwitterHashtagButton).call(this, props));
|
|
506
|
+
_this.state = {
|
|
507
|
+
isLoading: true
|
|
508
|
+
};
|
|
509
|
+
return _this;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
defineProperty$1._createClass(TwitterHashtagButton, [{
|
|
513
|
+
key: "componentDidMount",
|
|
514
|
+
value: function componentDidMount() {
|
|
515
|
+
var _this2 = this;
|
|
516
|
+
|
|
517
|
+
var onLoad = this.props.onLoad;
|
|
518
|
+
|
|
519
|
+
if (exenv.canUseDOM) {
|
|
520
|
+
var script = require('scriptjs');
|
|
521
|
+
|
|
522
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
523
|
+
if (!window.twttr) {
|
|
524
|
+
console.error('Failure to load window.twttr in TwitterHashtagButton, aborting load.');
|
|
525
|
+
return;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
if (!_this2.isMountCanceled) {
|
|
529
|
+
window.twttr.widgets.createHashtagButton(_this2.props.tag, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
530
|
+
_this2.setState({
|
|
531
|
+
isLoading: false
|
|
532
|
+
});
|
|
533
|
+
|
|
534
|
+
if (onLoad) {
|
|
535
|
+
onLoad(element);
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}, {
|
|
543
|
+
key: "componentWillUnmount",
|
|
544
|
+
value: function componentWillUnmount() {
|
|
545
|
+
this.isMountCanceled = true;
|
|
546
|
+
}
|
|
547
|
+
}, {
|
|
548
|
+
key: "render",
|
|
549
|
+
value: function render() {
|
|
550
|
+
var isLoading = this.state.isLoading;
|
|
551
|
+
var placeholder = this.props.placeholder;
|
|
552
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, isLoading && placeholder, React__default["default"].createElement("div", {
|
|
553
|
+
ref: "embedContainer"
|
|
554
|
+
}));
|
|
555
|
+
}
|
|
556
|
+
}]);
|
|
557
|
+
|
|
558
|
+
return TwitterHashtagButton;
|
|
559
|
+
}(React.Component);
|
|
560
|
+
|
|
561
|
+
defineProperty$1._defineProperty(TwitterHashtagButton, "propTypes", {
|
|
562
|
+
/**
|
|
563
|
+
* Tag name for hashtag button
|
|
564
|
+
*/
|
|
565
|
+
tag: PropTypes__default["default"].string.isRequired,
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Additional options to be added to the button
|
|
569
|
+
*/
|
|
570
|
+
options: PropTypes__default["default"].object,
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Placeholder while tweet is loading
|
|
574
|
+
*/
|
|
575
|
+
placeholder: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].element]),
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Function to execute after load, return html element
|
|
579
|
+
*/
|
|
580
|
+
onLoad: PropTypes__default["default"].func
|
|
581
|
+
});
|
|
582
|
+
|
|
583
|
+
var TwitterMentionButton =
|
|
584
|
+
/*#__PURE__*/
|
|
585
|
+
function (_Component) {
|
|
586
|
+
defineProperty$1._inherits(TwitterMentionButton, _Component);
|
|
587
|
+
|
|
588
|
+
function TwitterMentionButton(props) {
|
|
589
|
+
var _this;
|
|
590
|
+
|
|
591
|
+
defineProperty$1._classCallCheck(this, TwitterMentionButton);
|
|
592
|
+
|
|
593
|
+
_this = defineProperty$1._possibleConstructorReturn(this, defineProperty$1._getPrototypeOf(TwitterMentionButton).call(this, props));
|
|
594
|
+
_this.state = {
|
|
595
|
+
isLoading: true
|
|
596
|
+
};
|
|
597
|
+
return _this;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
defineProperty$1._createClass(TwitterMentionButton, [{
|
|
601
|
+
key: "componentDidMount",
|
|
602
|
+
value: function componentDidMount() {
|
|
603
|
+
var _this2 = this;
|
|
604
|
+
|
|
605
|
+
var onLoad = this.props.onLoad;
|
|
606
|
+
|
|
607
|
+
if (exenv.canUseDOM) {
|
|
608
|
+
var script = require('scriptjs');
|
|
609
|
+
|
|
610
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
611
|
+
if (!window.twttr) {
|
|
612
|
+
console.error('Failure to load window.twttr in TwitterMentionButton, aborting load.');
|
|
613
|
+
return;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
if (!_this2.isMountCanceled) {
|
|
617
|
+
window.twttr.widgets.createMentionButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
618
|
+
_this2.setState({
|
|
619
|
+
isLoading: false
|
|
620
|
+
});
|
|
621
|
+
|
|
622
|
+
if (onLoad) {
|
|
623
|
+
onLoad(element);
|
|
624
|
+
}
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
}, {
|
|
631
|
+
key: "componentWillUnmount",
|
|
632
|
+
value: function componentWillUnmount() {
|
|
633
|
+
this.isMountCanceled = true;
|
|
634
|
+
}
|
|
635
|
+
}, {
|
|
636
|
+
key: "render",
|
|
637
|
+
value: function render() {
|
|
638
|
+
var isLoading = this.state.isLoading;
|
|
639
|
+
var placeholder = this.props.placeholder;
|
|
640
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, isLoading && placeholder, React__default["default"].createElement("div", {
|
|
641
|
+
ref: "embedContainer"
|
|
642
|
+
}));
|
|
643
|
+
}
|
|
644
|
+
}]);
|
|
645
|
+
|
|
646
|
+
return TwitterMentionButton;
|
|
647
|
+
}(React.Component);
|
|
12
648
|
|
|
13
|
-
|
|
14
|
-
|
|
649
|
+
defineProperty$1._defineProperty(TwitterMentionButton, "propTypes", {
|
|
650
|
+
/**
|
|
651
|
+
* Username to which you will need to tweet
|
|
652
|
+
*/
|
|
653
|
+
screenName: PropTypes__default["default"].string.isRequired,
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* Additional options for overriding config.
|
|
657
|
+
*/
|
|
658
|
+
options: PropTypes__default["default"].object,
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Placeholder while tweet is loading
|
|
662
|
+
*/
|
|
663
|
+
placeholder: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].element]),
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* Function to execute after load, return html element
|
|
667
|
+
*/
|
|
668
|
+
onLoad: PropTypes__default["default"].func
|
|
669
|
+
});
|
|
670
|
+
|
|
671
|
+
var TwitterTweetEmbed =
|
|
672
|
+
/*#__PURE__*/
|
|
673
|
+
function (_Component) {
|
|
674
|
+
defineProperty$1._inherits(TwitterTweetEmbed, _Component);
|
|
675
|
+
|
|
676
|
+
function TwitterTweetEmbed(props) {
|
|
677
|
+
var _this;
|
|
678
|
+
|
|
679
|
+
defineProperty$1._classCallCheck(this, TwitterTweetEmbed);
|
|
680
|
+
|
|
681
|
+
_this = defineProperty$1._possibleConstructorReturn(this, defineProperty$1._getPrototypeOf(TwitterTweetEmbed).call(this, props));
|
|
682
|
+
_this.state = {
|
|
683
|
+
isLoading: true
|
|
684
|
+
};
|
|
685
|
+
return _this;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
defineProperty$1._createClass(TwitterTweetEmbed, [{
|
|
689
|
+
key: "renderWidget",
|
|
690
|
+
value: function renderWidget() {
|
|
691
|
+
var _this2 = this;
|
|
692
|
+
|
|
693
|
+
var onLoad = this.props.onLoad;
|
|
694
|
+
|
|
695
|
+
if (!window.twttr) {
|
|
696
|
+
console.error('Failure to load window.twttr in TwitterTweetEmbed, aborting load.');
|
|
697
|
+
return;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
if (!this.isMountCanceled) {
|
|
701
|
+
window.twttr.widgets.createTweet(this.props.tweetId, this.refs.embedContainer, this.props.options).then(function (element) {
|
|
702
|
+
_this2.setState({
|
|
703
|
+
isLoading: false
|
|
704
|
+
});
|
|
705
|
+
|
|
706
|
+
if (onLoad) {
|
|
707
|
+
onLoad(element);
|
|
708
|
+
}
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
}, {
|
|
713
|
+
key: "componentDidMount",
|
|
714
|
+
value: function componentDidMount() {
|
|
715
|
+
var _this3 = this;
|
|
716
|
+
|
|
717
|
+
if (exenv.canUseDOM) {
|
|
718
|
+
var script = require('scriptjs');
|
|
719
|
+
|
|
720
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
721
|
+
_this3.renderWidget();
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
}, {
|
|
726
|
+
key: "componentWillUnmount",
|
|
727
|
+
value: function componentWillUnmount() {
|
|
728
|
+
this.isMountCanceled = true;
|
|
729
|
+
}
|
|
730
|
+
}, {
|
|
731
|
+
key: "render",
|
|
732
|
+
value: function render() {
|
|
733
|
+
var isLoading = this.state.isLoading;
|
|
734
|
+
var placeholder = this.props.placeholder;
|
|
735
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, isLoading && placeholder, React__default["default"].createElement("div", {
|
|
736
|
+
ref: "embedContainer"
|
|
737
|
+
}));
|
|
738
|
+
}
|
|
739
|
+
}]);
|
|
740
|
+
|
|
741
|
+
return TwitterTweetEmbed;
|
|
742
|
+
}(React.Component);
|
|
743
|
+
|
|
744
|
+
defineProperty$1._defineProperty(TwitterTweetEmbed, "propTypes", {
|
|
745
|
+
/**
|
|
746
|
+
* Tweet id that needs to be shown
|
|
747
|
+
*/
|
|
748
|
+
tweetId: PropTypes__default["default"].string.isRequired,
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* Additional options to pass to twitter widget plugin
|
|
752
|
+
*/
|
|
753
|
+
options: PropTypes__default["default"].object,
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Placeholder while tweet is loading
|
|
757
|
+
*/
|
|
758
|
+
placeholder: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].element]),
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Function to execute after load, return html element
|
|
762
|
+
*/
|
|
763
|
+
onLoad: PropTypes__default["default"].func
|
|
764
|
+
});
|
|
765
|
+
|
|
766
|
+
var TwitterMomentShare =
|
|
767
|
+
/*#__PURE__*/
|
|
768
|
+
function (_Component) {
|
|
769
|
+
defineProperty$1._inherits(TwitterMomentShare, _Component);
|
|
770
|
+
|
|
771
|
+
function TwitterMomentShare(props) {
|
|
772
|
+
var _this;
|
|
773
|
+
|
|
774
|
+
defineProperty$1._classCallCheck(this, TwitterMomentShare);
|
|
775
|
+
|
|
776
|
+
_this = defineProperty$1._possibleConstructorReturn(this, defineProperty$1._getPrototypeOf(TwitterMomentShare).call(this, props));
|
|
777
|
+
_this.state = {
|
|
778
|
+
isLoading: true
|
|
779
|
+
};
|
|
780
|
+
return _this;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
defineProperty$1._createClass(TwitterMomentShare, [{
|
|
784
|
+
key: "componentDidMount",
|
|
785
|
+
value: function componentDidMount() {
|
|
786
|
+
var _this2 = this;
|
|
787
|
+
|
|
788
|
+
var onLoad = this.props.onLoad;
|
|
789
|
+
|
|
790
|
+
if (exenv.canUseDOM) {
|
|
791
|
+
var script = require('scriptjs');
|
|
792
|
+
|
|
793
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
794
|
+
if (!window.twttr) {
|
|
795
|
+
console.error('Failure to load window.twttr in TwitterMomentShare, aborting load.');
|
|
796
|
+
return;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
if (!_this2.isMountCanceled) {
|
|
800
|
+
window.twttr.widgets.createMoment(_this2.props.momentId, _this2.refs.shareMoment, _this2.props.options).then(function (element) {
|
|
801
|
+
_this2.setState({
|
|
802
|
+
isLoading: false
|
|
803
|
+
});
|
|
804
|
+
|
|
805
|
+
if (onLoad) {
|
|
806
|
+
onLoad(element);
|
|
807
|
+
}
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
});
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
}, {
|
|
814
|
+
key: "componentWillUnmount",
|
|
815
|
+
value: function componentWillUnmount() {
|
|
816
|
+
this.isMountCanceled = true;
|
|
817
|
+
}
|
|
818
|
+
}, {
|
|
819
|
+
key: "render",
|
|
820
|
+
value: function render() {
|
|
821
|
+
var isLoading = this.state.isLoading;
|
|
822
|
+
var placeholder = this.props.placeholder;
|
|
823
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, isLoading && placeholder, React__default["default"].createElement("div", {
|
|
824
|
+
ref: "shareMoment"
|
|
825
|
+
}));
|
|
826
|
+
}
|
|
827
|
+
}]);
|
|
828
|
+
|
|
829
|
+
return TwitterMomentShare;
|
|
830
|
+
}(React.Component);
|
|
831
|
+
|
|
832
|
+
defineProperty$1._defineProperty(TwitterMomentShare, "propTypes", {
|
|
833
|
+
/**
|
|
834
|
+
* id of Twitter moment to show
|
|
835
|
+
*/
|
|
836
|
+
momentId: PropTypes__default["default"].string.isRequired,
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* Additional options for overriding config.
|
|
840
|
+
*/
|
|
841
|
+
options: PropTypes__default["default"].object,
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
* Placeholder while tweet is loading
|
|
845
|
+
*/
|
|
846
|
+
placeholder: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].element]),
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* Function to execute after load, return html element
|
|
850
|
+
*/
|
|
851
|
+
onLoad: PropTypes__default["default"].func
|
|
852
|
+
});
|
|
853
|
+
|
|
854
|
+
var TwitterDMButton =
|
|
855
|
+
/*#__PURE__*/
|
|
856
|
+
function (_Component) {
|
|
857
|
+
defineProperty$1._inherits(TwitterDMButton, _Component);
|
|
858
|
+
|
|
859
|
+
function TwitterDMButton(props) {
|
|
860
|
+
var _this;
|
|
861
|
+
|
|
862
|
+
defineProperty$1._classCallCheck(this, TwitterDMButton);
|
|
863
|
+
|
|
864
|
+
_this = defineProperty$1._possibleConstructorReturn(this, defineProperty$1._getPrototypeOf(TwitterDMButton).call(this, props));
|
|
865
|
+
_this.state = {
|
|
866
|
+
isLoading: true
|
|
867
|
+
};
|
|
868
|
+
return _this;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
defineProperty$1._createClass(TwitterDMButton, [{
|
|
872
|
+
key: "componentDidMount",
|
|
873
|
+
value: function componentDidMount() {
|
|
874
|
+
var _this2 = this;
|
|
875
|
+
|
|
876
|
+
var onLoad = this.props.onLoad;
|
|
877
|
+
|
|
878
|
+
if (exenv.canUseDOM) {
|
|
879
|
+
var script = require('scriptjs');
|
|
880
|
+
|
|
881
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
882
|
+
if (!window.twttr) {
|
|
883
|
+
console.error('Failure to load window.twttr in TwitterDMButton, aborting load.');
|
|
884
|
+
return;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
if (!_this2.isMountCanceled) {
|
|
888
|
+
window.twttr.widgets.createDMButton(_this2.props.id, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
889
|
+
_this2.setState({
|
|
890
|
+
isLoading: false
|
|
891
|
+
});
|
|
892
|
+
|
|
893
|
+
if (onLoad) {
|
|
894
|
+
onLoad(element);
|
|
895
|
+
}
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
}, {
|
|
902
|
+
key: "componentWillUnmount",
|
|
903
|
+
value: function componentWillUnmount() {
|
|
904
|
+
this.isMountCanceled = true;
|
|
905
|
+
}
|
|
906
|
+
}, {
|
|
907
|
+
key: "render",
|
|
908
|
+
value: function render() {
|
|
909
|
+
var isLoading = this.state.isLoading;
|
|
910
|
+
var placeholder = this.props.placeholder;
|
|
911
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, isLoading && placeholder, React__default["default"].createElement("div", {
|
|
912
|
+
ref: "embedContainer"
|
|
913
|
+
}));
|
|
914
|
+
}
|
|
915
|
+
}]);
|
|
916
|
+
|
|
917
|
+
return TwitterDMButton;
|
|
918
|
+
}(React.Component);
|
|
919
|
+
|
|
920
|
+
defineProperty$1._defineProperty(TwitterDMButton, "propTypes", {
|
|
921
|
+
/**
|
|
922
|
+
* Twitter user id for DM button
|
|
923
|
+
*/
|
|
924
|
+
id: PropTypes__default["default"].number.isRequired,
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* Additional options to be added to the button
|
|
928
|
+
*/
|
|
929
|
+
options: PropTypes__default["default"].object,
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* Placeholder while tweet is loading
|
|
933
|
+
*/
|
|
934
|
+
placeholder: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].element]),
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Function to execute after load, return html element
|
|
938
|
+
*/
|
|
939
|
+
onLoad: PropTypes__default["default"].func
|
|
940
|
+
});
|
|
941
|
+
|
|
942
|
+
var TwitterVideoEmbed =
|
|
943
|
+
/*#__PURE__*/
|
|
944
|
+
function (_Component) {
|
|
945
|
+
defineProperty$1._inherits(TwitterVideoEmbed, _Component);
|
|
946
|
+
|
|
947
|
+
function TwitterVideoEmbed(props) {
|
|
948
|
+
var _this;
|
|
949
|
+
|
|
950
|
+
defineProperty$1._classCallCheck(this, TwitterVideoEmbed);
|
|
951
|
+
|
|
952
|
+
_this = defineProperty$1._possibleConstructorReturn(this, defineProperty$1._getPrototypeOf(TwitterVideoEmbed).call(this, props));
|
|
953
|
+
_this.state = {
|
|
954
|
+
isLoading: true
|
|
955
|
+
};
|
|
956
|
+
return _this;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
defineProperty$1._createClass(TwitterVideoEmbed, [{
|
|
960
|
+
key: "componentDidMount",
|
|
961
|
+
value: function componentDidMount() {
|
|
962
|
+
var _this2 = this;
|
|
963
|
+
|
|
964
|
+
var onLoad = this.props.onLoad;
|
|
965
|
+
|
|
966
|
+
if (exenv.canUseDOM) {
|
|
967
|
+
var script = require('scriptjs');
|
|
968
|
+
|
|
969
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
970
|
+
if (!window.twttr) {
|
|
971
|
+
console.error('Failure to load window.twttr in TwitterVideoEmbed, aborting load.');
|
|
972
|
+
return;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
if (!_this2.isMountCanceled) {
|
|
976
|
+
window.twttr.widgets.createVideo(_this2.props.id, _this2.refs.embedContainer).then(function (element) {
|
|
977
|
+
_this2.setState({
|
|
978
|
+
isLoading: false
|
|
979
|
+
});
|
|
980
|
+
|
|
981
|
+
if (onLoad) {
|
|
982
|
+
onLoad(element);
|
|
983
|
+
}
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
}, {
|
|
990
|
+
key: "componentWillUnmount",
|
|
991
|
+
value: function componentWillUnmount() {
|
|
992
|
+
this.isMountCanceled = true;
|
|
993
|
+
}
|
|
994
|
+
}, {
|
|
995
|
+
key: "render",
|
|
996
|
+
value: function render() {
|
|
997
|
+
var isLoading = this.state.isLoading;
|
|
998
|
+
var placeholder = this.props.placeholder;
|
|
999
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, isLoading && placeholder, React__default["default"].createElement("div", {
|
|
1000
|
+
ref: "embedContainer"
|
|
1001
|
+
}));
|
|
1002
|
+
}
|
|
1003
|
+
}]);
|
|
1004
|
+
|
|
1005
|
+
return TwitterVideoEmbed;
|
|
1006
|
+
}(React.Component);
|
|
1007
|
+
|
|
1008
|
+
defineProperty$1._defineProperty(TwitterVideoEmbed, "propTypes", {
|
|
1009
|
+
/**
|
|
1010
|
+
* Id of video tweet.
|
|
1011
|
+
*/
|
|
1012
|
+
id: PropTypes__default["default"].string.isRequired,
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* Placeholder while tweet is loading
|
|
1016
|
+
*/
|
|
1017
|
+
placeholder: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].element]),
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* Function to execute after load, return html element
|
|
1021
|
+
*/
|
|
1022
|
+
onLoad: PropTypes__default["default"].func
|
|
1023
|
+
});
|
|
1024
|
+
|
|
1025
|
+
var TwitterOnAirButton =
|
|
1026
|
+
/*#__PURE__*/
|
|
1027
|
+
function (_Component) {
|
|
1028
|
+
defineProperty$1._inherits(TwitterOnAirButton, _Component);
|
|
1029
|
+
|
|
1030
|
+
function TwitterOnAirButton(props) {
|
|
1031
|
+
var _this;
|
|
1032
|
+
|
|
1033
|
+
defineProperty$1._classCallCheck(this, TwitterOnAirButton);
|
|
1034
|
+
|
|
1035
|
+
_this = defineProperty$1._possibleConstructorReturn(this, defineProperty$1._getPrototypeOf(TwitterOnAirButton).call(this, props));
|
|
1036
|
+
_this.state = {
|
|
1037
|
+
isLoading: true
|
|
1038
|
+
};
|
|
1039
|
+
return _this;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
defineProperty$1._createClass(TwitterOnAirButton, [{
|
|
1043
|
+
key: "componentDidMount",
|
|
1044
|
+
value: function componentDidMount() {
|
|
1045
|
+
var _this2 = this;
|
|
1046
|
+
|
|
1047
|
+
var onLoad = this.props.onLoad;
|
|
1048
|
+
|
|
1049
|
+
if (exenv.canUseDOM) {
|
|
1050
|
+
var script = require('scriptjs');
|
|
1051
|
+
|
|
1052
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1053
|
+
if (!window.twttr) {
|
|
1054
|
+
console.error('Failure to load window.twttr in TwitterOnAirButton, aborting load.');
|
|
1055
|
+
return;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
if (!_this2.isMountCanceled) {
|
|
1059
|
+
window.twttr.widgets.createPeriscopeOnAirButton(_this2.props.username, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1060
|
+
_this2.setState({
|
|
1061
|
+
isLoading: false
|
|
1062
|
+
});
|
|
1063
|
+
|
|
1064
|
+
if (onLoad) {
|
|
1065
|
+
onLoad(element);
|
|
1066
|
+
}
|
|
1067
|
+
});
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
}, {
|
|
1073
|
+
key: "componentWillUnmount",
|
|
1074
|
+
value: function componentWillUnmount() {
|
|
1075
|
+
this.isMountCanceled = true;
|
|
1076
|
+
}
|
|
1077
|
+
}, {
|
|
1078
|
+
key: "render",
|
|
1079
|
+
value: function render() {
|
|
1080
|
+
var isLoading = this.state.isLoading;
|
|
1081
|
+
var placeholder = this.props.placeholder;
|
|
1082
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, isLoading && placeholder, React__default["default"].createElement("div", {
|
|
1083
|
+
ref: "embedContainer"
|
|
1084
|
+
}));
|
|
1085
|
+
}
|
|
1086
|
+
}]);
|
|
1087
|
+
|
|
1088
|
+
return TwitterOnAirButton;
|
|
1089
|
+
}(React.Component);
|
|
1090
|
+
|
|
1091
|
+
defineProperty$1._defineProperty(TwitterOnAirButton, "propTypes", {
|
|
1092
|
+
/**
|
|
1093
|
+
* Username for which you require periscope on air button
|
|
1094
|
+
*/
|
|
1095
|
+
username: PropTypes__default["default"].string.isRequired,
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Additional options for overriding config.
|
|
1099
|
+
*/
|
|
1100
|
+
options: PropTypes__default["default"].object,
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* Placeholder while tweet is loading
|
|
1104
|
+
*/
|
|
1105
|
+
placeholder: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].element]),
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* Function to execute after load, return html element
|
|
1109
|
+
*/
|
|
1110
|
+
onLoad: PropTypes__default["default"].func
|
|
1111
|
+
});
|
|
1112
|
+
|
|
1113
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1114
|
+
try {
|
|
1115
|
+
var info = gen[key](arg);
|
|
1116
|
+
var value = info.value;
|
|
1117
|
+
} catch (error) {
|
|
1118
|
+
reject(error);
|
|
1119
|
+
return;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
if (info.done) {
|
|
1123
|
+
resolve(value);
|
|
1124
|
+
} else {
|
|
1125
|
+
Promise.resolve(value).then(_next, _throw);
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
function _asyncToGenerator(fn) {
|
|
1130
|
+
return function () {
|
|
1131
|
+
var self = this,
|
|
1132
|
+
args = arguments;
|
|
1133
|
+
return new Promise(function (resolve, reject) {
|
|
1134
|
+
var gen = fn.apply(self, args);
|
|
1135
|
+
|
|
1136
|
+
function _next(value) {
|
|
1137
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
function _throw(err) {
|
|
1141
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
_next(undefined);
|
|
1145
|
+
});
|
|
1146
|
+
};
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
var asyncToGenerator = _asyncToGenerator;
|
|
1150
|
+
|
|
1151
|
+
function _defineProperty(obj, key, value) {
|
|
1152
|
+
if (key in obj) {
|
|
1153
|
+
Object.defineProperty(obj, key, {
|
|
1154
|
+
value: value,
|
|
1155
|
+
enumerable: true,
|
|
1156
|
+
configurable: true,
|
|
1157
|
+
writable: true
|
|
1158
|
+
});
|
|
1159
|
+
} else {
|
|
1160
|
+
obj[key] = value;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
return obj;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
var defineProperty = _defineProperty;
|
|
15
1167
|
|
|
16
1168
|
var canUseDOM = !!(
|
|
17
1169
|
typeof window !== 'undefined' &&
|
|
@@ -21,7 +1173,6 @@ var canUseDOM = !!(
|
|
|
21
1173
|
|
|
22
1174
|
var canUseDom = canUseDOM;
|
|
23
1175
|
|
|
24
|
-
var objectWithoutPropertiesLoose = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
25
1176
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
26
1177
|
if (source == null) return {};
|
|
27
1178
|
var target = {};
|
|
@@ -37,13 +1188,8 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
37
1188
|
return target;
|
|
38
1189
|
}
|
|
39
1190
|
|
|
40
|
-
|
|
41
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
_commonjsHelpers.unwrapExports(objectWithoutPropertiesLoose);
|
|
1191
|
+
var objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
|
|
45
1192
|
|
|
46
|
-
var objectWithoutProperties = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
47
1193
|
function _objectWithoutProperties(source, excluded) {
|
|
48
1194
|
if (source == null) return {};
|
|
49
1195
|
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
@@ -63,11 +1209,7 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
63
1209
|
return target;
|
|
64
1210
|
}
|
|
65
1211
|
|
|
66
|
-
|
|
67
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
var _objectWithoutProperties = _commonjsHelpers.unwrapExports(objectWithoutProperties);
|
|
1212
|
+
var objectWithoutProperties = _objectWithoutProperties;
|
|
71
1213
|
|
|
72
1214
|
var LoginStatus$1 = {
|
|
73
1215
|
CONNECTED: 'connected',
|
|
@@ -78,7 +1220,7 @@ var LoginStatus$1 = {
|
|
|
78
1220
|
|
|
79
1221
|
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
80
1222
|
|
|
81
|
-
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(source, true).forEach(function (key) { defineProperty
|
|
1223
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(source, true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
82
1224
|
const Method = {
|
|
83
1225
|
GET: 'get',
|
|
84
1226
|
POST: 'post',
|
|
@@ -114,7 +1256,7 @@ class Facebook$1 {
|
|
|
114
1256
|
init() {
|
|
115
1257
|
var _this = this;
|
|
116
1258
|
|
|
117
|
-
return
|
|
1259
|
+
return asyncToGenerator(function* () {
|
|
118
1260
|
if (_this.loadingPromise) {
|
|
119
1261
|
return _this.loadingPromise;
|
|
120
1262
|
}
|
|
@@ -127,7 +1269,7 @@ class Facebook$1 {
|
|
|
127
1269
|
debug,
|
|
128
1270
|
chatSupport
|
|
129
1271
|
} = _this$options,
|
|
130
|
-
restOptions =
|
|
1272
|
+
restOptions = objectWithoutProperties(_this$options, ["domain", "language", "debug", "chatSupport"]);
|
|
131
1273
|
|
|
132
1274
|
window.fbAsyncInit = () => {
|
|
133
1275
|
window.FB.init({
|
|
@@ -159,7 +1301,7 @@ class Facebook$1 {
|
|
|
159
1301
|
process(method, before = [], after = []) {
|
|
160
1302
|
var _this2 = this;
|
|
161
1303
|
|
|
162
|
-
return
|
|
1304
|
+
return asyncToGenerator(function* () {
|
|
163
1305
|
const fb = yield _this2.init();
|
|
164
1306
|
return new Promise((resolve, reject) => {
|
|
165
1307
|
fb[method](...before, response => {
|
|
@@ -187,7 +1329,7 @@ class Facebook$1 {
|
|
|
187
1329
|
ui(options) {
|
|
188
1330
|
var _this3 = this;
|
|
189
1331
|
|
|
190
|
-
return
|
|
1332
|
+
return asyncToGenerator(function* () {
|
|
191
1333
|
return _this3.process('ui', [options]);
|
|
192
1334
|
})();
|
|
193
1335
|
}
|
|
@@ -195,7 +1337,7 @@ class Facebook$1 {
|
|
|
195
1337
|
api(path, method = Method.GET, params = {}) {
|
|
196
1338
|
var _this4 = this;
|
|
197
1339
|
|
|
198
|
-
return
|
|
1340
|
+
return asyncToGenerator(function* () {
|
|
199
1341
|
return _this4.process('api', [path, method, params]);
|
|
200
1342
|
})();
|
|
201
1343
|
}
|
|
@@ -203,7 +1345,7 @@ class Facebook$1 {
|
|
|
203
1345
|
login(opts = null) {
|
|
204
1346
|
var _this5 = this;
|
|
205
1347
|
|
|
206
|
-
return
|
|
1348
|
+
return asyncToGenerator(function* () {
|
|
207
1349
|
return _this5.process('login', [], [opts]);
|
|
208
1350
|
})();
|
|
209
1351
|
}
|
|
@@ -211,7 +1353,7 @@ class Facebook$1 {
|
|
|
211
1353
|
logout() {
|
|
212
1354
|
var _this6 = this;
|
|
213
1355
|
|
|
214
|
-
return
|
|
1356
|
+
return asyncToGenerator(function* () {
|
|
215
1357
|
return _this6.process('logout');
|
|
216
1358
|
})();
|
|
217
1359
|
}
|
|
@@ -219,7 +1361,7 @@ class Facebook$1 {
|
|
|
219
1361
|
getLoginStatus() {
|
|
220
1362
|
var _this7 = this;
|
|
221
1363
|
|
|
222
|
-
return
|
|
1364
|
+
return asyncToGenerator(function* () {
|
|
223
1365
|
return _this7.process('getLoginStatus');
|
|
224
1366
|
})();
|
|
225
1367
|
}
|
|
@@ -227,7 +1369,7 @@ class Facebook$1 {
|
|
|
227
1369
|
getAuthResponse() {
|
|
228
1370
|
var _this8 = this;
|
|
229
1371
|
|
|
230
|
-
return
|
|
1372
|
+
return asyncToGenerator(function* () {
|
|
231
1373
|
return _this8.process('getAuthResponse');
|
|
232
1374
|
})();
|
|
233
1375
|
}
|
|
@@ -235,7 +1377,7 @@ class Facebook$1 {
|
|
|
235
1377
|
getTokenDetail(loginResponse) {
|
|
236
1378
|
var _this9 = this;
|
|
237
1379
|
|
|
238
|
-
return
|
|
1380
|
+
return asyncToGenerator(function* () {
|
|
239
1381
|
if (loginResponse.status === LoginStatus$1.CONNECTED && loginResponse.authResponse) {
|
|
240
1382
|
return loginResponse.authResponse;
|
|
241
1383
|
}
|
|
@@ -253,7 +1395,7 @@ class Facebook$1 {
|
|
|
253
1395
|
getProfile(params) {
|
|
254
1396
|
var _this10 = this;
|
|
255
1397
|
|
|
256
|
-
return
|
|
1398
|
+
return asyncToGenerator(function* () {
|
|
257
1399
|
return _this10.api('/me', Method.GET, params);
|
|
258
1400
|
})();
|
|
259
1401
|
}
|
|
@@ -261,7 +1403,7 @@ class Facebook$1 {
|
|
|
261
1403
|
getTokenDetailWithProfile(params, response) {
|
|
262
1404
|
var _this11 = this;
|
|
263
1405
|
|
|
264
|
-
return
|
|
1406
|
+
return asyncToGenerator(function* () {
|
|
265
1407
|
const tokenDetail = yield _this11.getTokenDetail(response);
|
|
266
1408
|
const profile = yield _this11.getProfile(params);
|
|
267
1409
|
return {
|
|
@@ -274,7 +1416,7 @@ class Facebook$1 {
|
|
|
274
1416
|
getToken() {
|
|
275
1417
|
var _this12 = this;
|
|
276
1418
|
|
|
277
|
-
return
|
|
1419
|
+
return asyncToGenerator(function* () {
|
|
278
1420
|
const authResponse = yield _this12.getTokenDetail();
|
|
279
1421
|
return authResponse.accessToken;
|
|
280
1422
|
})();
|
|
@@ -283,7 +1425,7 @@ class Facebook$1 {
|
|
|
283
1425
|
getUserId() {
|
|
284
1426
|
var _this13 = this;
|
|
285
1427
|
|
|
286
|
-
return
|
|
1428
|
+
return asyncToGenerator(function* () {
|
|
287
1429
|
const authResponse = yield _this13.getTokenDetail();
|
|
288
1430
|
return authResponse.userID;
|
|
289
1431
|
})();
|
|
@@ -292,7 +1434,7 @@ class Facebook$1 {
|
|
|
292
1434
|
sendInvite(to, options) {
|
|
293
1435
|
var _this14 = this;
|
|
294
1436
|
|
|
295
|
-
return
|
|
1437
|
+
return asyncToGenerator(function* () {
|
|
296
1438
|
return _this14.ui(_objectSpread$3({
|
|
297
1439
|
to,
|
|
298
1440
|
method: 'apprequests'
|
|
@@ -303,7 +1445,7 @@ class Facebook$1 {
|
|
|
303
1445
|
postAction(ogNamespace, ogAction, ogObject, ogObjectUrl, noFeedStory) {
|
|
304
1446
|
var _this15 = this;
|
|
305
1447
|
|
|
306
|
-
return
|
|
1448
|
+
return asyncToGenerator(function* () {
|
|
307
1449
|
let url = `/me/${ogNamespace}:${ogAction}?${ogObject}=${encodeURIComponent(ogObjectUrl)}`;
|
|
308
1450
|
|
|
309
1451
|
if (noFeedStory === true) {
|
|
@@ -317,7 +1459,7 @@ class Facebook$1 {
|
|
|
317
1459
|
getPermissions() {
|
|
318
1460
|
var _this16 = this;
|
|
319
1461
|
|
|
320
|
-
return
|
|
1462
|
+
return asyncToGenerator(function* () {
|
|
321
1463
|
const response = yield _this16.api('/me/permissions');
|
|
322
1464
|
return response.data;
|
|
323
1465
|
})();
|
|
@@ -326,7 +1468,7 @@ class Facebook$1 {
|
|
|
326
1468
|
hasPermissions(permissions) {
|
|
327
1469
|
var _this17 = this;
|
|
328
1470
|
|
|
329
|
-
return
|
|
1471
|
+
return asyncToGenerator(function* () {
|
|
330
1472
|
const usersPermissions = yield _this17.getPermissions();
|
|
331
1473
|
const findedPermissions = permissions.filter(p => {
|
|
332
1474
|
const currentPermission = usersPermissions.find(row => {
|
|
@@ -345,7 +1487,7 @@ class Facebook$1 {
|
|
|
345
1487
|
subscribe(eventName, callback) {
|
|
346
1488
|
var _this18 = this;
|
|
347
1489
|
|
|
348
|
-
return
|
|
1490
|
+
return asyncToGenerator(function* () {
|
|
349
1491
|
const fb = yield _this18.init();
|
|
350
1492
|
fb.Event.subscribe(eventName, callback);
|
|
351
1493
|
})();
|
|
@@ -354,7 +1496,7 @@ class Facebook$1 {
|
|
|
354
1496
|
unsubscribe(eventName, callback) {
|
|
355
1497
|
var _this19 = this;
|
|
356
1498
|
|
|
357
|
-
return
|
|
1499
|
+
return asyncToGenerator(function* () {
|
|
358
1500
|
const fb = yield _this19.init();
|
|
359
1501
|
fb.Event.unsubscribe(eventName, callback);
|
|
360
1502
|
})();
|
|
@@ -363,7 +1505,7 @@ class Facebook$1 {
|
|
|
363
1505
|
parse(parentNode) {
|
|
364
1506
|
var _this20 = this;
|
|
365
1507
|
|
|
366
|
-
return
|
|
1508
|
+
return asyncToGenerator(function* () {
|
|
367
1509
|
const fb = yield _this20.init();
|
|
368
1510
|
|
|
369
1511
|
if (typeof parentNode === 'undefined') {
|
|
@@ -377,7 +1519,7 @@ class Facebook$1 {
|
|
|
377
1519
|
getRequests() {
|
|
378
1520
|
var _this21 = this;
|
|
379
1521
|
|
|
380
|
-
return
|
|
1522
|
+
return asyncToGenerator(function* () {
|
|
381
1523
|
return _this21.api('/me/apprequests');
|
|
382
1524
|
})();
|
|
383
1525
|
}
|
|
@@ -385,7 +1527,7 @@ class Facebook$1 {
|
|
|
385
1527
|
removeRequest(requestID) {
|
|
386
1528
|
var _this22 = this;
|
|
387
1529
|
|
|
388
|
-
return
|
|
1530
|
+
return asyncToGenerator(function* () {
|
|
389
1531
|
return _this22.api(requestID, Method.DELETE);
|
|
390
1532
|
})();
|
|
391
1533
|
}
|
|
@@ -393,7 +1535,7 @@ class Facebook$1 {
|
|
|
393
1535
|
setAutoGrow() {
|
|
394
1536
|
var _this23 = this;
|
|
395
1537
|
|
|
396
|
-
return
|
|
1538
|
+
return asyncToGenerator(function* () {
|
|
397
1539
|
const fb = yield _this23.init();
|
|
398
1540
|
fb.Canvas.setAutoGrow();
|
|
399
1541
|
})();
|
|
@@ -402,7 +1544,7 @@ class Facebook$1 {
|
|
|
402
1544
|
paySimple(product, quantity = 1) {
|
|
403
1545
|
var _this24 = this;
|
|
404
1546
|
|
|
405
|
-
return
|
|
1547
|
+
return asyncToGenerator(function* () {
|
|
406
1548
|
return _this24.ui({
|
|
407
1549
|
method: 'pay',
|
|
408
1550
|
action: 'purchaseitem',
|
|
@@ -415,7 +1557,7 @@ class Facebook$1 {
|
|
|
415
1557
|
pay(product, options) {
|
|
416
1558
|
var _this25 = this;
|
|
417
1559
|
|
|
418
|
-
return
|
|
1560
|
+
return asyncToGenerator(function* () {
|
|
419
1561
|
return _this25.ui(_objectSpread$3({
|
|
420
1562
|
method: 'pay',
|
|
421
1563
|
action: 'purchaseitem',
|
|
@@ -706,13 +1848,13 @@ class Facebook extends React.Component {
|
|
|
706
1848
|
super(...args);
|
|
707
1849
|
_this = this;
|
|
708
1850
|
|
|
709
|
-
defineProperty
|
|
1851
|
+
defineProperty(this, "state", {
|
|
710
1852
|
isReady: false
|
|
711
1853
|
});
|
|
712
1854
|
|
|
713
|
-
defineProperty
|
|
1855
|
+
defineProperty(this, "handleInit",
|
|
714
1856
|
/*#__PURE__*/
|
|
715
|
-
|
|
1857
|
+
asyncToGenerator(function* () {
|
|
716
1858
|
// do not run if SSR
|
|
717
1859
|
if (!canUseDom) {
|
|
718
1860
|
throw new Error('You can not use Facebook without DOM');
|
|
@@ -794,14 +1936,14 @@ class Facebook extends React.Component {
|
|
|
794
1936
|
handleInit,
|
|
795
1937
|
api
|
|
796
1938
|
};
|
|
797
|
-
return React__default[
|
|
1939
|
+
return React__default["default"].createElement(FacebookContext.Provider, {
|
|
798
1940
|
value: value
|
|
799
1941
|
}, children);
|
|
800
1942
|
}
|
|
801
1943
|
|
|
802
1944
|
}
|
|
803
1945
|
|
|
804
|
-
defineProperty
|
|
1946
|
+
defineProperty(Facebook, "defaultProps", {
|
|
805
1947
|
version: 'v3.1',
|
|
806
1948
|
cookie: false,
|
|
807
1949
|
status: false,
|
|
@@ -831,16 +1973,12 @@ function _extends() {
|
|
|
831
1973
|
return target;
|
|
832
1974
|
};
|
|
833
1975
|
|
|
834
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
835
1976
|
return _extends.apply(this, arguments);
|
|
836
1977
|
}
|
|
837
1978
|
|
|
838
1979
|
module.exports = _extends;
|
|
839
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
840
1980
|
});
|
|
841
1981
|
|
|
842
|
-
var _extends = _commonjsHelpers.unwrapExports(_extends_1);
|
|
843
|
-
|
|
844
1982
|
class Initialize extends React.Component {
|
|
845
1983
|
componentDidMount() {
|
|
846
1984
|
this.$isMounted = true;
|
|
@@ -854,7 +1992,7 @@ class Initialize extends React.Component {
|
|
|
854
1992
|
prepare() {
|
|
855
1993
|
var _this = this;
|
|
856
1994
|
|
|
857
|
-
return
|
|
1995
|
+
return asyncToGenerator(function* () {
|
|
858
1996
|
const {
|
|
859
1997
|
onReady,
|
|
860
1998
|
handleInit
|
|
@@ -887,16 +2025,16 @@ class Initialize extends React.Component {
|
|
|
887
2025
|
|
|
888
2026
|
}
|
|
889
2027
|
|
|
890
|
-
defineProperty
|
|
2028
|
+
defineProperty(Initialize, "defaultProps", {
|
|
891
2029
|
onReady: undefined,
|
|
892
2030
|
api: undefined
|
|
893
2031
|
});
|
|
894
2032
|
|
|
895
|
-
var Initialize$1 = React.forwardRef((props, ref) => React__default[
|
|
2033
|
+
var Initialize$1 = React.forwardRef((props, ref) => React__default["default"].createElement(FacebookContext.Consumer, null, ({
|
|
896
2034
|
handleInit,
|
|
897
2035
|
isReady,
|
|
898
2036
|
api
|
|
899
|
-
}) => React__default[
|
|
2037
|
+
}) => React__default["default"].createElement(Initialize, _extends_1({}, props, {
|
|
900
2038
|
handleInit: handleInit,
|
|
901
2039
|
isReady: isReady,
|
|
902
2040
|
api: api,
|
|
@@ -907,21 +2045,21 @@ class Parser extends React.Component {
|
|
|
907
2045
|
constructor(...args) {
|
|
908
2046
|
super(...args);
|
|
909
2047
|
|
|
910
|
-
defineProperty
|
|
2048
|
+
defineProperty(this, "state", {});
|
|
911
2049
|
|
|
912
|
-
defineProperty
|
|
2050
|
+
defineProperty(this, "handleReady", api => {
|
|
913
2051
|
this.setState({
|
|
914
2052
|
api
|
|
915
2053
|
}, this.handleParse);
|
|
916
2054
|
});
|
|
917
2055
|
|
|
918
|
-
defineProperty
|
|
2056
|
+
defineProperty(this, "handleContainer", container => {
|
|
919
2057
|
this.setState({
|
|
920
2058
|
container
|
|
921
2059
|
}, this.handleParse);
|
|
922
2060
|
});
|
|
923
2061
|
|
|
924
|
-
defineProperty
|
|
2062
|
+
defineProperty(this, "handleParse", () => {
|
|
925
2063
|
const {
|
|
926
2064
|
api,
|
|
927
2065
|
container
|
|
@@ -940,10 +2078,10 @@ class Parser extends React.Component {
|
|
|
940
2078
|
className,
|
|
941
2079
|
children
|
|
942
2080
|
} = this.props;
|
|
943
|
-
return React__default[
|
|
2081
|
+
return React__default["default"].createElement("div", {
|
|
944
2082
|
className: className,
|
|
945
2083
|
ref: this.handleContainer
|
|
946
|
-
}, React__default[
|
|
2084
|
+
}, React__default["default"].createElement(Initialize$1, {
|
|
947
2085
|
onReady: this.handleReady
|
|
948
2086
|
}, children({
|
|
949
2087
|
handleParse: this.handleParse
|
|
@@ -952,7 +2090,7 @@ class Parser extends React.Component {
|
|
|
952
2090
|
|
|
953
2091
|
}
|
|
954
2092
|
|
|
955
|
-
defineProperty
|
|
2093
|
+
defineProperty(Parser, "defaultProps", {
|
|
956
2094
|
className: undefined
|
|
957
2095
|
});
|
|
958
2096
|
|
|
@@ -986,7 +2124,7 @@ class Like extends React.PureComponent {
|
|
|
986
2124
|
kidDirectedSite,
|
|
987
2125
|
referral
|
|
988
2126
|
} = this.props;
|
|
989
|
-
return React__default[
|
|
2127
|
+
return React__default["default"].createElement("div", {
|
|
990
2128
|
className: "fb-like",
|
|
991
2129
|
"data-ref": referral,
|
|
992
2130
|
"data-href": href,
|
|
@@ -1003,7 +2141,7 @@ class Like extends React.PureComponent {
|
|
|
1003
2141
|
|
|
1004
2142
|
}
|
|
1005
2143
|
|
|
1006
|
-
defineProperty
|
|
2144
|
+
defineProperty(Like, "defaultProps", {
|
|
1007
2145
|
layout: undefined,
|
|
1008
2146
|
showFaces: undefined,
|
|
1009
2147
|
colorScheme: undefined,
|
|
@@ -1017,9 +2155,9 @@ defineProperty._defineProperty(Like, "defaultProps", {
|
|
|
1017
2155
|
width: undefined
|
|
1018
2156
|
});
|
|
1019
2157
|
|
|
1020
|
-
React.forwardRef((props, ref) => React__default[
|
|
2158
|
+
React.forwardRef((props, ref) => React__default["default"].createElement(Parser, null, ({
|
|
1021
2159
|
handleParse
|
|
1022
|
-
}) => React__default[
|
|
2160
|
+
}) => React__default["default"].createElement(Like, _extends_1({}, props, {
|
|
1023
2161
|
handleParse: handleParse,
|
|
1024
2162
|
ref: ref
|
|
1025
2163
|
}))));
|
|
@@ -1047,14 +2185,14 @@ class Process extends React.Component {
|
|
|
1047
2185
|
super(...args);
|
|
1048
2186
|
_this = this;
|
|
1049
2187
|
|
|
1050
|
-
defineProperty
|
|
2188
|
+
defineProperty(this, "state", {
|
|
1051
2189
|
api: undefined
|
|
1052
2190
|
});
|
|
1053
2191
|
|
|
1054
|
-
defineProperty
|
|
2192
|
+
defineProperty(this, "handleProcess",
|
|
1055
2193
|
/*#__PURE__*/
|
|
1056
2194
|
function () {
|
|
1057
|
-
var _ref =
|
|
2195
|
+
var _ref = asyncToGenerator(function* (fn, handleSuccess = () => {}) {
|
|
1058
2196
|
_this.setState({
|
|
1059
2197
|
data: undefined,
|
|
1060
2198
|
error: undefined,
|
|
@@ -1093,7 +2231,7 @@ class Process extends React.Component {
|
|
|
1093
2231
|
};
|
|
1094
2232
|
}());
|
|
1095
2233
|
|
|
1096
|
-
defineProperty
|
|
2234
|
+
defineProperty(this, "handleReady", api => {
|
|
1097
2235
|
this.setState({
|
|
1098
2236
|
api
|
|
1099
2237
|
});
|
|
@@ -1110,7 +2248,7 @@ class Process extends React.Component {
|
|
|
1110
2248
|
data,
|
|
1111
2249
|
error
|
|
1112
2250
|
} = this.state;
|
|
1113
|
-
return React__default[
|
|
2251
|
+
return React__default["default"].createElement(Initialize$1, {
|
|
1114
2252
|
onReady: this.handleReady
|
|
1115
2253
|
}, children({
|
|
1116
2254
|
loading: !api || loading,
|
|
@@ -1129,10 +2267,10 @@ class Send extends React.Component {
|
|
|
1129
2267
|
super(...args);
|
|
1130
2268
|
_this = this;
|
|
1131
2269
|
|
|
1132
|
-
defineProperty
|
|
2270
|
+
defineProperty(this, "handleClick",
|
|
1133
2271
|
/*#__PURE__*/
|
|
1134
2272
|
function () {
|
|
1135
|
-
var _ref =
|
|
2273
|
+
var _ref = asyncToGenerator(function* (evn) {
|
|
1136
2274
|
evn.preventDefault();
|
|
1137
2275
|
const {
|
|
1138
2276
|
handleProcess
|
|
@@ -1140,7 +2278,7 @@ class Send extends React.Component {
|
|
|
1140
2278
|
return handleProcess(
|
|
1141
2279
|
/*#__PURE__*/
|
|
1142
2280
|
function () {
|
|
1143
|
-
var _ref2 =
|
|
2281
|
+
var _ref2 = asyncToGenerator(function* (api) {
|
|
1144
2282
|
const {
|
|
1145
2283
|
link = getCurrentHref(),
|
|
1146
2284
|
display,
|
|
@@ -1183,17 +2321,17 @@ class Send extends React.Component {
|
|
|
1183
2321
|
|
|
1184
2322
|
}
|
|
1185
2323
|
|
|
1186
|
-
defineProperty
|
|
2324
|
+
defineProperty(Send, "defaultProps", {
|
|
1187
2325
|
to: undefined,
|
|
1188
2326
|
display: undefined,
|
|
1189
2327
|
appId: undefined,
|
|
1190
2328
|
redirectURI: undefined
|
|
1191
2329
|
});
|
|
1192
2330
|
|
|
1193
|
-
React.forwardRef((props, ref) => React__default[
|
|
2331
|
+
React.forwardRef((props, ref) => React__default["default"].createElement(Process, null, ({
|
|
1194
2332
|
loading,
|
|
1195
2333
|
handleProcess
|
|
1196
|
-
}) => React__default[
|
|
2334
|
+
}) => React__default["default"].createElement(Send, _extends_1({}, props, {
|
|
1197
2335
|
loading: loading,
|
|
1198
2336
|
handleProcess: handleProcess,
|
|
1199
2337
|
ref: ref
|
|
@@ -1206,10 +2344,10 @@ class Share extends React.Component {
|
|
|
1206
2344
|
super(...args);
|
|
1207
2345
|
_this = this;
|
|
1208
2346
|
|
|
1209
|
-
defineProperty
|
|
2347
|
+
defineProperty(this, "handleClick",
|
|
1210
2348
|
/*#__PURE__*/
|
|
1211
2349
|
function () {
|
|
1212
|
-
var _ref =
|
|
2350
|
+
var _ref = asyncToGenerator(function* (evn) {
|
|
1213
2351
|
evn.preventDefault();
|
|
1214
2352
|
const {
|
|
1215
2353
|
handleProcess
|
|
@@ -1217,7 +2355,7 @@ class Share extends React.Component {
|
|
|
1217
2355
|
return handleProcess(
|
|
1218
2356
|
/*#__PURE__*/
|
|
1219
2357
|
function () {
|
|
1220
|
-
var _ref2 =
|
|
2358
|
+
var _ref2 = asyncToGenerator(function* (api) {
|
|
1221
2359
|
const {
|
|
1222
2360
|
href = getCurrentHref(),
|
|
1223
2361
|
display,
|
|
@@ -1268,7 +2406,7 @@ class Share extends React.Component {
|
|
|
1268
2406
|
|
|
1269
2407
|
}
|
|
1270
2408
|
|
|
1271
|
-
defineProperty
|
|
2409
|
+
defineProperty(Share, "defaultProps", {
|
|
1272
2410
|
href: undefined,
|
|
1273
2411
|
hashtag: undefined,
|
|
1274
2412
|
quote: undefined,
|
|
@@ -1278,12 +2416,12 @@ defineProperty._defineProperty(Share, "defaultProps", {
|
|
|
1278
2416
|
redirectURI: undefined
|
|
1279
2417
|
});
|
|
1280
2418
|
|
|
1281
|
-
var Share$1 = React.forwardRef((props, ref) => React__default[
|
|
2419
|
+
var Share$1 = React.forwardRef((props, ref) => React__default["default"].createElement(Process, null, ({
|
|
1282
2420
|
loading,
|
|
1283
2421
|
handleProcess,
|
|
1284
2422
|
data,
|
|
1285
2423
|
error
|
|
1286
|
-
}) => React__default[
|
|
2424
|
+
}) => React__default["default"].createElement(Share, _extends_1({}, props, {
|
|
1287
2425
|
loading: loading,
|
|
1288
2426
|
handleProcess: handleProcess,
|
|
1289
2427
|
data: data,
|
|
@@ -1293,7 +2431,7 @@ var Share$1 = React.forwardRef((props, ref) => React__default['default'].createE
|
|
|
1293
2431
|
|
|
1294
2432
|
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1295
2433
|
|
|
1296
|
-
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(source, true).forEach(function (key) { defineProperty
|
|
2434
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(source, true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1297
2435
|
_objectSpread$2({}, Share$1.defaultProps, {
|
|
1298
2436
|
className: undefined
|
|
1299
2437
|
});
|
|
@@ -1320,7 +2458,7 @@ class Page extends React.PureComponent {
|
|
|
1320
2458
|
adaptContainerWidth,
|
|
1321
2459
|
children
|
|
1322
2460
|
} = this.props;
|
|
1323
|
-
return React__default[
|
|
2461
|
+
return React__default["default"].createElement("div", {
|
|
1324
2462
|
className: "fb-page",
|
|
1325
2463
|
style: style,
|
|
1326
2464
|
"data-tabs": tabs,
|
|
@@ -1337,7 +2475,7 @@ class Page extends React.PureComponent {
|
|
|
1337
2475
|
|
|
1338
2476
|
}
|
|
1339
2477
|
|
|
1340
|
-
defineProperty
|
|
2478
|
+
defineProperty(Page, "defaultProps", {
|
|
1341
2479
|
width: undefined,
|
|
1342
2480
|
height: undefined,
|
|
1343
2481
|
tabs: undefined,
|
|
@@ -1351,9 +2489,9 @@ defineProperty._defineProperty(Page, "defaultProps", {
|
|
|
1351
2489
|
href: undefined
|
|
1352
2490
|
});
|
|
1353
2491
|
|
|
1354
|
-
var Page$1 = React.forwardRef((props, ref) => React__default[
|
|
2492
|
+
var Page$1 = React.forwardRef((props, ref) => React__default["default"].createElement(Parser, null, ({
|
|
1355
2493
|
handleParse
|
|
1356
|
-
}) => React__default[
|
|
2494
|
+
}) => React__default["default"].createElement(Page, _extends_1({}, props, {
|
|
1357
2495
|
handleParse: handleParse,
|
|
1358
2496
|
ref: ref
|
|
1359
2497
|
}))));
|
|
@@ -1363,7 +2501,7 @@ var Fields = ['id', 'first_name', 'last_name', 'middle_name', 'name', 'name_form
|
|
|
1363
2501
|
|
|
1364
2502
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1365
2503
|
|
|
1366
|
-
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(source, true).forEach(function (key) { defineProperty
|
|
2504
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(source, true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1367
2505
|
|
|
1368
2506
|
class Login extends React.Component {
|
|
1369
2507
|
constructor(...args) {
|
|
@@ -1372,10 +2510,10 @@ class Login extends React.Component {
|
|
|
1372
2510
|
super(...args);
|
|
1373
2511
|
_this = this;
|
|
1374
2512
|
|
|
1375
|
-
defineProperty
|
|
2513
|
+
defineProperty(this, "handleClick",
|
|
1376
2514
|
/*#__PURE__*/
|
|
1377
2515
|
function () {
|
|
1378
|
-
var _ref =
|
|
2516
|
+
var _ref = asyncToGenerator(function* (evn) {
|
|
1379
2517
|
evn.preventDefault();
|
|
1380
2518
|
const {
|
|
1381
2519
|
handleProcess,
|
|
@@ -1388,7 +2526,7 @@ class Login extends React.Component {
|
|
|
1388
2526
|
yield handleProcess(
|
|
1389
2527
|
/*#__PURE__*/
|
|
1390
2528
|
function () {
|
|
1391
|
-
var _ref2 =
|
|
2529
|
+
var _ref2 = asyncToGenerator(function* (api) {
|
|
1392
2530
|
const {
|
|
1393
2531
|
scope,
|
|
1394
2532
|
fields,
|
|
@@ -1471,7 +2609,7 @@ class Login extends React.Component {
|
|
|
1471
2609
|
|
|
1472
2610
|
}
|
|
1473
2611
|
|
|
1474
|
-
defineProperty
|
|
2612
|
+
defineProperty(Login, "defaultProps", {
|
|
1475
2613
|
scope: '',
|
|
1476
2614
|
fields: Fields,
|
|
1477
2615
|
returnScopes: false,
|
|
@@ -1482,12 +2620,12 @@ defineProperty._defineProperty(Login, "defaultProps", {
|
|
|
1482
2620
|
eventKey: undefined
|
|
1483
2621
|
});
|
|
1484
2622
|
|
|
1485
|
-
var Login$1 = React.forwardRef((props, ref) => React__default[
|
|
2623
|
+
var Login$1 = React.forwardRef((props, ref) => React__default["default"].createElement(Process, null, ({
|
|
1486
2624
|
loading,
|
|
1487
2625
|
handleProcess,
|
|
1488
2626
|
data,
|
|
1489
2627
|
error
|
|
1490
|
-
}) => React__default[
|
|
2628
|
+
}) => React__default["default"].createElement(Login, _extends_1({}, props, {
|
|
1491
2629
|
loading: loading,
|
|
1492
2630
|
handleProcess: handleProcess,
|
|
1493
2631
|
data: data,
|
|
@@ -1850,11 +2988,11 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
|
1850
2988
|
|
|
1851
2989
|
|
|
1852
2990
|
|
|
1853
|
-
var _react2 = _interopRequireDefault(React__default[
|
|
2991
|
+
var _react2 = _interopRequireDefault(React__default["default"]);
|
|
1854
2992
|
|
|
1855
2993
|
|
|
1856
2994
|
|
|
1857
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default[
|
|
2995
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default["default"]);
|
|
1858
2996
|
|
|
1859
2997
|
|
|
1860
2998
|
|
|
@@ -1917,7 +3055,7 @@ var Spinner = function (_Component) {
|
|
|
1917
3055
|
|
|
1918
3056
|
|
|
1919
3057
|
if (loaded) {
|
|
1920
|
-
return this.props.children ? React__default[
|
|
3058
|
+
return this.props.children ? React__default["default"].Children.only(this.props.children) : null;
|
|
1921
3059
|
}
|
|
1922
3060
|
|
|
1923
3061
|
return _react2.default.createElement('div', { className: className, ref: 'loader' });
|
|
@@ -1925,7 +3063,7 @@ var Spinner = function (_Component) {
|
|
|
1925
3063
|
}]);
|
|
1926
3064
|
|
|
1927
3065
|
return Spinner;
|
|
1928
|
-
}(React__default[
|
|
3066
|
+
}(React__default["default"].Component);
|
|
1929
3067
|
|
|
1930
3068
|
Spinner.propTypes = {
|
|
1931
3069
|
className: _propTypes2.default.string,
|
|
@@ -1945,7 +3083,7 @@ _commonjsHelpers.unwrapExports(dist);
|
|
|
1945
3083
|
|
|
1946
3084
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1947
3085
|
|
|
1948
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { defineProperty
|
|
3086
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1949
3087
|
_objectSpread({}, Login$1.defaultProps, {
|
|
1950
3088
|
className: undefined,
|
|
1951
3089
|
spinnerConfig: {},
|
|
@@ -1967,7 +3105,7 @@ class EmbeddedPost extends React.PureComponent {
|
|
|
1967
3105
|
showText,
|
|
1968
3106
|
children
|
|
1969
3107
|
} = this.props;
|
|
1970
|
-
return React__default[
|
|
3108
|
+
return React__default["default"].createElement("div", {
|
|
1971
3109
|
className: "fb-post",
|
|
1972
3110
|
"data-href": href,
|
|
1973
3111
|
"data-width": width,
|
|
@@ -1977,15 +3115,15 @@ class EmbeddedPost extends React.PureComponent {
|
|
|
1977
3115
|
|
|
1978
3116
|
}
|
|
1979
3117
|
|
|
1980
|
-
defineProperty
|
|
3118
|
+
defineProperty(EmbeddedPost, "defaultProps", {
|
|
1981
3119
|
width: undefined,
|
|
1982
3120
|
showText: undefined,
|
|
1983
3121
|
children: undefined
|
|
1984
3122
|
});
|
|
1985
3123
|
|
|
1986
|
-
React.forwardRef((props, ref) => React__default[
|
|
3124
|
+
React.forwardRef((props, ref) => React__default["default"].createElement(Parser, null, ({
|
|
1987
3125
|
handleParse
|
|
1988
|
-
}) => React__default[
|
|
3126
|
+
}) => React__default["default"].createElement(EmbeddedPost, _extends_1({}, props, {
|
|
1989
3127
|
handleParse: handleParse,
|
|
1990
3128
|
ref: ref
|
|
1991
3129
|
}))));
|
|
@@ -2008,7 +3146,7 @@ class EmbeddedVideo extends React.PureComponent {
|
|
|
2008
3146
|
showCaptions,
|
|
2009
3147
|
children
|
|
2010
3148
|
} = this.props;
|
|
2011
|
-
return React__default[
|
|
3149
|
+
return React__default["default"].createElement("div", {
|
|
2012
3150
|
className: "fb-video",
|
|
2013
3151
|
"data-href": href,
|
|
2014
3152
|
"data-width": width,
|
|
@@ -2021,7 +3159,7 @@ class EmbeddedVideo extends React.PureComponent {
|
|
|
2021
3159
|
|
|
2022
3160
|
}
|
|
2023
3161
|
|
|
2024
|
-
defineProperty
|
|
3162
|
+
defineProperty(EmbeddedVideo, "defaultProps", {
|
|
2025
3163
|
width: undefined,
|
|
2026
3164
|
showText: undefined,
|
|
2027
3165
|
allowFullScreen: undefined,
|
|
@@ -2030,9 +3168,9 @@ defineProperty._defineProperty(EmbeddedVideo, "defaultProps", {
|
|
|
2030
3168
|
children: undefined
|
|
2031
3169
|
});
|
|
2032
3170
|
|
|
2033
|
-
React.forwardRef((props, ref) => React__default[
|
|
3171
|
+
React.forwardRef((props, ref) => React__default["default"].createElement(Parser, null, ({
|
|
2034
3172
|
handleParse
|
|
2035
|
-
}) => React__default[
|
|
3173
|
+
}) => React__default["default"].createElement(EmbeddedVideo, _extends_1({}, props, {
|
|
2036
3174
|
handleParse: handleParse,
|
|
2037
3175
|
ref: ref
|
|
2038
3176
|
}))));
|
|
@@ -2055,7 +3193,7 @@ class Comments extends React.PureComponent {
|
|
|
2055
3193
|
children,
|
|
2056
3194
|
mobile
|
|
2057
3195
|
} = this.props;
|
|
2058
|
-
return React__default[
|
|
3196
|
+
return React__default["default"].createElement("div", {
|
|
2059
3197
|
className: "fb-comments",
|
|
2060
3198
|
"data-colorscheme": colorScheme,
|
|
2061
3199
|
"data-numposts": numPosts,
|
|
@@ -2069,7 +3207,7 @@ class Comments extends React.PureComponent {
|
|
|
2069
3207
|
|
|
2070
3208
|
}
|
|
2071
3209
|
|
|
2072
|
-
defineProperty
|
|
3210
|
+
defineProperty(Comments, "defaultProps", {
|
|
2073
3211
|
href: undefined,
|
|
2074
3212
|
numPosts: undefined,
|
|
2075
3213
|
orderBy: undefined,
|
|
@@ -2079,9 +3217,9 @@ defineProperty._defineProperty(Comments, "defaultProps", {
|
|
|
2079
3217
|
mobile: undefined
|
|
2080
3218
|
});
|
|
2081
3219
|
|
|
2082
|
-
React.forwardRef((props, ref) => React__default[
|
|
3220
|
+
React.forwardRef((props, ref) => React__default["default"].createElement(Parser, null, ({
|
|
2083
3221
|
handleParse
|
|
2084
|
-
}) => React__default[
|
|
3222
|
+
}) => React__default["default"].createElement(Comments, _extends_1({}, props, {
|
|
2085
3223
|
handleParse: handleParse,
|
|
2086
3224
|
ref: ref
|
|
2087
3225
|
}))));
|
|
@@ -2099,7 +3237,7 @@ class CommentsCount extends React.PureComponent {
|
|
|
2099
3237
|
href = getCurrentHref(),
|
|
2100
3238
|
children
|
|
2101
3239
|
} = this.props;
|
|
2102
|
-
return React__default[
|
|
3240
|
+
return React__default["default"].createElement("span", {
|
|
2103
3241
|
className: "fb-comments-count",
|
|
2104
3242
|
"data-href": href
|
|
2105
3243
|
}, children);
|
|
@@ -2107,14 +3245,14 @@ class CommentsCount extends React.PureComponent {
|
|
|
2107
3245
|
|
|
2108
3246
|
}
|
|
2109
3247
|
|
|
2110
|
-
defineProperty
|
|
3248
|
+
defineProperty(CommentsCount, "defaultProps", {
|
|
2111
3249
|
href: undefined,
|
|
2112
3250
|
children: undefined
|
|
2113
3251
|
});
|
|
2114
3252
|
|
|
2115
|
-
React.forwardRef((props, ref) => React__default[
|
|
3253
|
+
React.forwardRef((props, ref) => React__default["default"].createElement(Parser, null, ({
|
|
2116
3254
|
handleParse
|
|
2117
|
-
}) => React__default[
|
|
3255
|
+
}) => React__default["default"].createElement(CommentsCount, _extends_1({}, props, {
|
|
2118
3256
|
handleParse: handleParse,
|
|
2119
3257
|
ref: ref
|
|
2120
3258
|
}))));
|
|
@@ -2126,10 +3264,10 @@ class Feed extends React.Component {
|
|
|
2126
3264
|
super(...args);
|
|
2127
3265
|
_this = this;
|
|
2128
3266
|
|
|
2129
|
-
defineProperty
|
|
3267
|
+
defineProperty(this, "handleClick",
|
|
2130
3268
|
/*#__PURE__*/
|
|
2131
3269
|
function () {
|
|
2132
|
-
var _ref =
|
|
3270
|
+
var _ref = asyncToGenerator(function* (evn) {
|
|
2133
3271
|
evn.preventDefault();
|
|
2134
3272
|
const {
|
|
2135
3273
|
handleProcess
|
|
@@ -2137,7 +3275,7 @@ class Feed extends React.Component {
|
|
|
2137
3275
|
return handleProcess(
|
|
2138
3276
|
/*#__PURE__*/
|
|
2139
3277
|
function () {
|
|
2140
|
-
var _ref2 =
|
|
3278
|
+
var _ref2 = asyncToGenerator(function* (api) {
|
|
2141
3279
|
const {
|
|
2142
3280
|
link = getCurrentHref(),
|
|
2143
3281
|
display,
|
|
@@ -2198,7 +3336,7 @@ class Feed extends React.Component {
|
|
|
2198
3336
|
|
|
2199
3337
|
}
|
|
2200
3338
|
|
|
2201
|
-
defineProperty
|
|
3339
|
+
defineProperty(Feed, "defaultProps", {
|
|
2202
3340
|
link: undefined,
|
|
2203
3341
|
display: undefined,
|
|
2204
3342
|
appId: undefined,
|
|
@@ -2213,12 +3351,12 @@ defineProperty._defineProperty(Feed, "defaultProps", {
|
|
|
2213
3351
|
dataRef: undefined
|
|
2214
3352
|
});
|
|
2215
3353
|
|
|
2216
|
-
React.forwardRef((props, ref) => React__default[
|
|
3354
|
+
React.forwardRef((props, ref) => React__default["default"].createElement(Process, null, ({
|
|
2217
3355
|
loading,
|
|
2218
3356
|
handleProcess,
|
|
2219
3357
|
error,
|
|
2220
3358
|
data
|
|
2221
|
-
}) => React__default[
|
|
3359
|
+
}) => React__default["default"].createElement(Feed, _extends_1({}, props, {
|
|
2222
3360
|
loading: loading,
|
|
2223
3361
|
handleProcess: handleProcess,
|
|
2224
3362
|
data: data,
|
|
@@ -2244,7 +3382,7 @@ class Group extends React.PureComponent {
|
|
|
2244
3382
|
children,
|
|
2245
3383
|
skin
|
|
2246
3384
|
} = this.props;
|
|
2247
|
-
return React__default[
|
|
3385
|
+
return React__default["default"].createElement("div", {
|
|
2248
3386
|
className: "fb-group",
|
|
2249
3387
|
style: style,
|
|
2250
3388
|
"data-href": href,
|
|
@@ -2257,7 +3395,7 @@ class Group extends React.PureComponent {
|
|
|
2257
3395
|
|
|
2258
3396
|
}
|
|
2259
3397
|
|
|
2260
|
-
defineProperty
|
|
3398
|
+
defineProperty(Group, "defaultProps", {
|
|
2261
3399
|
showSocialContext: undefined,
|
|
2262
3400
|
showMetaData: undefined,
|
|
2263
3401
|
width: undefined,
|
|
@@ -2267,9 +3405,9 @@ defineProperty._defineProperty(Group, "defaultProps", {
|
|
|
2267
3405
|
skin: undefined
|
|
2268
3406
|
});
|
|
2269
3407
|
|
|
2270
|
-
React.forwardRef((props, ref) => React__default[
|
|
3408
|
+
React.forwardRef((props, ref) => React__default["default"].createElement(Parser, null, ({
|
|
2271
3409
|
handleParse
|
|
2272
|
-
}) => React__default[
|
|
3410
|
+
}) => React__default["default"].createElement(Group, _extends_1({}, props, {
|
|
2273
3411
|
handleParse: handleParse,
|
|
2274
3412
|
ref: ref
|
|
2275
3413
|
}))));
|
|
@@ -2281,12 +3419,12 @@ class LoginStatus extends React.Component {
|
|
|
2281
3419
|
super(..._args);
|
|
2282
3420
|
_this = this;
|
|
2283
3421
|
|
|
2284
|
-
defineProperty
|
|
3422
|
+
defineProperty(this, "state", {});
|
|
2285
3423
|
|
|
2286
|
-
defineProperty
|
|
3424
|
+
defineProperty(this, "handleReady",
|
|
2287
3425
|
/*#__PURE__*/
|
|
2288
3426
|
function () {
|
|
2289
|
-
var _ref =
|
|
3427
|
+
var _ref = asyncToGenerator(function* (api) {
|
|
2290
3428
|
const {
|
|
2291
3429
|
event
|
|
2292
3430
|
} = _this.props;
|
|
@@ -2303,7 +3441,7 @@ class LoginStatus extends React.Component {
|
|
|
2303
3441
|
};
|
|
2304
3442
|
}());
|
|
2305
3443
|
|
|
2306
|
-
defineProperty
|
|
3444
|
+
defineProperty(this, "handleChange", (...args) => {
|
|
2307
3445
|
const {
|
|
2308
3446
|
onChange
|
|
2309
3447
|
} = this.props;
|
|
@@ -2333,14 +3471,14 @@ class LoginStatus extends React.Component {
|
|
|
2333
3471
|
const {
|
|
2334
3472
|
children
|
|
2335
3473
|
} = this.props;
|
|
2336
|
-
return React__default[
|
|
3474
|
+
return React__default["default"].createElement(Initialize$1, {
|
|
2337
3475
|
onReady: this.handleReady
|
|
2338
3476
|
}, children);
|
|
2339
3477
|
}
|
|
2340
3478
|
|
|
2341
3479
|
}
|
|
2342
3480
|
|
|
2343
|
-
defineProperty
|
|
3481
|
+
defineProperty(LoginStatus, "defaultProps", {
|
|
2344
3482
|
onChange: undefined
|
|
2345
3483
|
});
|
|
2346
3484
|
|
|
@@ -2351,14 +3489,14 @@ class Profile extends React.Component {
|
|
|
2351
3489
|
super(...args);
|
|
2352
3490
|
_this = this;
|
|
2353
3491
|
|
|
2354
|
-
defineProperty
|
|
3492
|
+
defineProperty(this, "state", {
|
|
2355
3493
|
loading: true
|
|
2356
3494
|
});
|
|
2357
3495
|
|
|
2358
|
-
defineProperty
|
|
3496
|
+
defineProperty(this, "handleReady",
|
|
2359
3497
|
/*#__PURE__*/
|
|
2360
3498
|
function () {
|
|
2361
|
-
var _ref =
|
|
3499
|
+
var _ref = asyncToGenerator(function* (api) {
|
|
2362
3500
|
_this.api = api;
|
|
2363
3501
|
|
|
2364
3502
|
_this.updateProfile();
|
|
@@ -2369,7 +3507,7 @@ class Profile extends React.Component {
|
|
|
2369
3507
|
};
|
|
2370
3508
|
}());
|
|
2371
3509
|
|
|
2372
|
-
defineProperty
|
|
3510
|
+
defineProperty(this, "handleStatusChange", () => {
|
|
2373
3511
|
this.updateProfile();
|
|
2374
3512
|
});
|
|
2375
3513
|
}
|
|
@@ -2377,7 +3515,7 @@ class Profile extends React.Component {
|
|
|
2377
3515
|
updateProfile() {
|
|
2378
3516
|
var _this2 = this;
|
|
2379
3517
|
|
|
2380
|
-
return
|
|
3518
|
+
return asyncToGenerator(function* () {
|
|
2381
3519
|
const {
|
|
2382
3520
|
api,
|
|
2383
3521
|
props: {
|
|
@@ -2430,9 +3568,9 @@ class Profile extends React.Component {
|
|
|
2430
3568
|
loading,
|
|
2431
3569
|
error
|
|
2432
3570
|
} = this.state;
|
|
2433
|
-
return React__default[
|
|
3571
|
+
return React__default["default"].createElement(Initialize$1, {
|
|
2434
3572
|
onReady: this.handleReady
|
|
2435
|
-
}, React__default[
|
|
3573
|
+
}, React__default["default"].createElement(LoginStatus, {
|
|
2436
3574
|
event: "auth.statusChange",
|
|
2437
3575
|
onChange: this.handleStatusChange
|
|
2438
3576
|
}, children({
|
|
@@ -2444,7 +3582,7 @@ class Profile extends React.Component {
|
|
|
2444
3582
|
|
|
2445
3583
|
}
|
|
2446
3584
|
|
|
2447
|
-
defineProperty
|
|
3585
|
+
defineProperty(Profile, "defaultProps", {
|
|
2448
3586
|
fields: Fields
|
|
2449
3587
|
});
|
|
2450
3588
|
|
|
@@ -2467,7 +3605,7 @@ class CustomChat extends React.PureComponent {
|
|
|
2467
3605
|
greetingDialogDisplay,
|
|
2468
3606
|
greetingDialogDelay
|
|
2469
3607
|
} = this.props;
|
|
2470
|
-
return React__default[
|
|
3608
|
+
return React__default["default"].createElement("div", {
|
|
2471
3609
|
className: "fb-customerchat",
|
|
2472
3610
|
page_id: pageId,
|
|
2473
3611
|
theme_color: themeColor,
|
|
@@ -2481,7 +3619,7 @@ class CustomChat extends React.PureComponent {
|
|
|
2481
3619
|
|
|
2482
3620
|
}
|
|
2483
3621
|
|
|
2484
|
-
defineProperty
|
|
3622
|
+
defineProperty(CustomChat, "defaultProps", {
|
|
2485
3623
|
children: undefined,
|
|
2486
3624
|
themeColor: undefined,
|
|
2487
3625
|
loggedInGreeting: undefined,
|
|
@@ -2491,9 +3629,9 @@ defineProperty._defineProperty(CustomChat, "defaultProps", {
|
|
|
2491
3629
|
greetingDialogDelay: undefined
|
|
2492
3630
|
});
|
|
2493
3631
|
|
|
2494
|
-
React.forwardRef((props, ref) => React__default[
|
|
3632
|
+
React.forwardRef((props, ref) => React__default["default"].createElement(Parser, null, ({
|
|
2495
3633
|
handleParse
|
|
2496
|
-
}) => React__default[
|
|
3634
|
+
}) => React__default["default"].createElement(CustomChat, _extends_1({}, props, {
|
|
2497
3635
|
handleParse: handleParse,
|
|
2498
3636
|
ref: ref
|
|
2499
3637
|
}))));
|
|
@@ -2514,7 +3652,7 @@ class MessageUs extends React.PureComponent {
|
|
|
2514
3652
|
children,
|
|
2515
3653
|
size
|
|
2516
3654
|
} = this.props;
|
|
2517
|
-
return React__default[
|
|
3655
|
+
return React__default["default"].createElement("div", {
|
|
2518
3656
|
className: "fb-messengermessageus",
|
|
2519
3657
|
messenger_app_id: messengerAppId,
|
|
2520
3658
|
page_id: pageId,
|
|
@@ -2525,15 +3663,15 @@ class MessageUs extends React.PureComponent {
|
|
|
2525
3663
|
|
|
2526
3664
|
}
|
|
2527
3665
|
|
|
2528
|
-
defineProperty
|
|
3666
|
+
defineProperty(MessageUs, "defaultProps", {
|
|
2529
3667
|
color: undefined,
|
|
2530
3668
|
size: undefined,
|
|
2531
3669
|
children: undefined
|
|
2532
3670
|
});
|
|
2533
3671
|
|
|
2534
|
-
React.forwardRef((props, ref) => React__default[
|
|
3672
|
+
React.forwardRef((props, ref) => React__default["default"].createElement(Parser, null, ({
|
|
2535
3673
|
handleParse
|
|
2536
|
-
}) => React__default[
|
|
3674
|
+
}) => React__default["default"].createElement(MessageUs, _extends_1({}, props, {
|
|
2537
3675
|
handleParse: handleParse,
|
|
2538
3676
|
ref: ref
|
|
2539
3677
|
}))));
|
|
@@ -2559,7 +3697,7 @@ class MessengerCheckbox extends React.PureComponent {
|
|
|
2559
3697
|
centerAlign,
|
|
2560
3698
|
skin
|
|
2561
3699
|
} = this.props;
|
|
2562
|
-
return React__default[
|
|
3700
|
+
return React__default["default"].createElement("div", {
|
|
2563
3701
|
className: "fb-messenger-checkbox",
|
|
2564
3702
|
messenger_app_id: messengerAppId,
|
|
2565
3703
|
page_id: pageId,
|
|
@@ -2575,7 +3713,7 @@ class MessengerCheckbox extends React.PureComponent {
|
|
|
2575
3713
|
|
|
2576
3714
|
}
|
|
2577
3715
|
|
|
2578
|
-
defineProperty
|
|
3716
|
+
defineProperty(MessengerCheckbox, "defaultProps", {
|
|
2579
3717
|
size: undefined,
|
|
2580
3718
|
allowLogin: undefined,
|
|
2581
3719
|
prechecked: undefined,
|
|
@@ -2586,9 +3724,9 @@ defineProperty._defineProperty(MessengerCheckbox, "defaultProps", {
|
|
|
2586
3724
|
centerAlign: undefined
|
|
2587
3725
|
});
|
|
2588
3726
|
|
|
2589
|
-
React.forwardRef((props, ref) => React__default[
|
|
3727
|
+
React.forwardRef((props, ref) => React__default["default"].createElement(Parser, null, ({
|
|
2590
3728
|
handleParse
|
|
2591
|
-
}) => React__default[
|
|
3729
|
+
}) => React__default["default"].createElement(MessengerCheckbox, _extends_1({}, props, {
|
|
2592
3730
|
handleParse: handleParse,
|
|
2593
3731
|
ref: ref
|
|
2594
3732
|
}))));
|
|
@@ -2612,7 +3750,7 @@ class SendToMessenger extends React.PureComponent {
|
|
|
2612
3750
|
dataRef,
|
|
2613
3751
|
size
|
|
2614
3752
|
} = this.props;
|
|
2615
|
-
return React__default[
|
|
3753
|
+
return React__default["default"].createElement("div", {
|
|
2616
3754
|
className: "fb-send-to-messenger",
|
|
2617
3755
|
messenger_app_id: messengerAppId,
|
|
2618
3756
|
page_id: pageId,
|
|
@@ -2624,16 +3762,16 @@ class SendToMessenger extends React.PureComponent {
|
|
|
2624
3762
|
|
|
2625
3763
|
}
|
|
2626
3764
|
|
|
2627
|
-
defineProperty
|
|
3765
|
+
defineProperty(SendToMessenger, "defaultProps", {
|
|
2628
3766
|
color: undefined,
|
|
2629
3767
|
size: undefined,
|
|
2630
3768
|
dataRef: undefined,
|
|
2631
3769
|
children: undefined
|
|
2632
3770
|
});
|
|
2633
3771
|
|
|
2634
|
-
React.forwardRef((props, ref) => React__default[
|
|
3772
|
+
React.forwardRef((props, ref) => React__default["default"].createElement(Parser, null, ({
|
|
2635
3773
|
handleParse
|
|
2636
|
-
}) => React__default[
|
|
3774
|
+
}) => React__default["default"].createElement(SendToMessenger, _extends_1({}, props, {
|
|
2637
3775
|
handleParse: handleParse,
|
|
2638
3776
|
ref: ref
|
|
2639
3777
|
}))));
|
|
@@ -2745,61 +3883,61 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
2745
3883
|
}, []);
|
|
2746
3884
|
|
|
2747
3885
|
var variant = 'black';
|
|
2748
|
-
return React__default[
|
|
2749
|
-
React__default[
|
|
3886
|
+
return React__default["default"].createElement(
|
|
3887
|
+
React__default["default"].Fragment,
|
|
2750
3888
|
null,
|
|
2751
|
-
React__default[
|
|
3889
|
+
React__default["default"].createElement(
|
|
2752
3890
|
'div',
|
|
2753
3891
|
{ ref: viewableWindow, id: 'vid-slider', className: 'col' },
|
|
2754
|
-
React__default[
|
|
3892
|
+
React__default["default"].createElement(
|
|
2755
3893
|
'div',
|
|
2756
3894
|
{ className: 'row' },
|
|
2757
|
-
showScroller && React__default[
|
|
3895
|
+
showScroller && React__default["default"].createElement(
|
|
2758
3896
|
'div',
|
|
2759
3897
|
{ onClick: function onClick(e) {
|
|
2760
3898
|
return scrollSlider(e, 'prev');
|
|
2761
3899
|
}, className: 'tile__slider-prev', style: { color: variant } },
|
|
2762
|
-
React__default[
|
|
3900
|
+
React__default["default"].createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow left' })
|
|
2763
3901
|
),
|
|
2764
|
-
showScroller && React__default[
|
|
3902
|
+
showScroller && React__default["default"].createElement(
|
|
2765
3903
|
'div',
|
|
2766
3904
|
{ onClick: function onClick(e) {
|
|
2767
3905
|
return scrollSlider(e, 'next');
|
|
2768
3906
|
}, className: 'tile__slider-next', style: { color: variant } },
|
|
2769
|
-
React__default[
|
|
3907
|
+
React__default["default"].createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow right' })
|
|
2770
3908
|
),
|
|
2771
|
-
React__default[
|
|
3909
|
+
React__default["default"].createElement(
|
|
2772
3910
|
'div',
|
|
2773
3911
|
{ ref: innerSlider, className: 'row__inner' },
|
|
2774
3912
|
props.data.slides.map(function (img, index) {
|
|
2775
3913
|
var thumbnail = urlFor({ client: client, source: img.slideshowImage, imageWidth: 250 });
|
|
2776
3914
|
if (!img.slideshowImage.link) {
|
|
2777
|
-
return React__default[
|
|
3915
|
+
return React__default["default"].createElement(
|
|
2778
3916
|
'div',
|
|
2779
3917
|
{ ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
|
|
2780
|
-
React__default[
|
|
3918
|
+
React__default["default"].createElement(
|
|
2781
3919
|
'div',
|
|
2782
3920
|
{ className: 'tile__media' },
|
|
2783
|
-
React__default[
|
|
3921
|
+
React__default["default"].createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px', maxHeight: '160px' } })
|
|
2784
3922
|
),
|
|
2785
|
-
React__default[
|
|
3923
|
+
React__default["default"].createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
2786
3924
|
);
|
|
2787
3925
|
} else {
|
|
2788
|
-
return React__default[
|
|
3926
|
+
return React__default["default"].createElement(
|
|
2789
3927
|
'a',
|
|
2790
3928
|
{ ref: tile, key: index, href: img.slideshowImage.link, target: img.slideshowImage.blank ? '_target' : '_self', className: 'tile', style: { width: tileSize + 'px' } },
|
|
2791
|
-
React__default[
|
|
3929
|
+
React__default["default"].createElement(
|
|
2792
3930
|
'div',
|
|
2793
3931
|
{ className: 'tile__media' },
|
|
2794
|
-
React__default[
|
|
3932
|
+
React__default["default"].createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px', maxHeight: '160px' } })
|
|
2795
3933
|
),
|
|
2796
|
-
React__default[
|
|
3934
|
+
React__default["default"].createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
2797
3935
|
);
|
|
2798
3936
|
}
|
|
2799
3937
|
})
|
|
2800
3938
|
)
|
|
2801
3939
|
),
|
|
2802
|
-
React__default[
|
|
3940
|
+
React__default["default"].createElement(
|
|
2803
3941
|
'style',
|
|
2804
3942
|
{ jsx: 'true' },
|
|
2805
3943
|
'\n #vid-slider * {\n box-sizing: border-box;\n -ms-overflow-style: none;\n }\n #vid-slider::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider {\n position: relative;\n -ms-overflow-style: none;\n padding: 0 1.5rem;\n margin-bottom: 0 !important;\n }\n #vid-slider .now-playing {\n position: absolute;\n top: 0.5rem;\n left: 1rem;\n color: white;\n background: rgba(0, 0, 0, 0.75);\n }\n #vid-slider h1,\n #vid-slider p {\n text-align: center;\n width: 100%;\n max-width: 500px;\n margin: auto;\n }\n #vid-slider,\n #vidHolder {\n max-width: 775px;\n margin: 0 auto;\n }\n #vid-slider a:link,\n #vid-slider a:hover,\n #vid-slider a:active,\n #vid-slider a:visited {\n transition: color 150ms;\n color: #95a5a6;\n text-decoration: none;\n }\n #vid-slider a:hover {\n color: #7f8c8d;\n text-decoration: underline;\n }\n #vid-slider .contain {\n width: 100%;\n }\n #vid-slider .row {\n overflow-x: scroll;\n width: 100%;\n -ms-overflow-style: none;\n overflow-y: hidden !important;\n }\n #vid-slider .tile__info {\n white-space: normal !important;\n position: absolute;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: 0.9rem;\n font-weight: bold;\n transition: opacity 0.25s;\n }\n #vid-slider .row__inner {\n transition: 450ms -webkit-transform;\n transition: 450ms transform;\n transition: 450ms transform, 450ms -webkit-transform;\n font-size: 0;\n white-space: nowrap;\n margin: 25px 0 70px !important;\n padding-bottom: 10px;\n padding-left: 0;\n }\n #vid-slider .tile {\n position: relative;\n display: inline-block;\n margin: 0 12px;\n font-size: 20px;\n transition: 450ms all;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n \n #vid-slider .tile:first-child {\n margin-left: 15px;\n }\n #vid-slider .tile__img {\n height: auto;\n -o-object-fit: contain;\n object-fit: contain;\n object-position: center;\n }\n #vid-slider .tile__details {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n font-size: 10px;\n opacity: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n transition: 450ms opacity;\n }\n #vid-slider .tile__details:after,\n #vid-slider .tile__details:before {\n content: \'\';\n \n position: absolute;\n top: 50%;\n left: 50%;\n display: #000;\n }\n #vid-slider .tile__details:after {\n margin-top: -25px;\n margin-left: -25px;\n width: 50px;\n height: 50px;\n border: 3px solid #ecf0f1;\n line-height: 50px;\n text-align: center;\n border-radius: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1;\n }\n #vid-slider .tile__details:before {\n content: \'\';\n background: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 64 64\' width=\'64\' height=\'64\' fill=\'white\'><path d=\'M26 46 L46 32 L26 18 Z\'/></svg>")\n no-repeat center center;\n left: 0;\n width: 100%;\n height: 3rem;\n font-size: 30px;\n margin-right: 12px;\n margin-top: -24px;\n text-align: center;\n z-index: 2;\n color: white;\n }\n \n #vid-slider .tile__title {\n position: absolute;\n bottom: 0;\n padding: 10px;\n max-width: 250px;\n }\n #vid-slider .tile__title_text {\n position: relative;\n left: 0;\n white-space: normal;\n }\n \n #vid-slider .tile__slider-prev,\n #vid-slider .tile__slider-next {\n width: 30px;\n background: transparent;\n border: none;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n z-index: 99;\n cursor: pointer;\n color: ' + (props.dark ? 'white' : 'black') + ';\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 2rem;\n }\n #vid-slider .tile__slider-prev {\n left: -0.5rem;\n padding: .5rem;\n }\n #vid-slider .tile__slider-next {\n right: -0.5rem;\n padding: .5rem;\n }\n #vid-slider,\n #vid-slider .row {\n margin: 0;\n }\n \n #vid-slider .row::-webkit-scrollbar-thumb {\n background-color: transparent !important;\n }\n #vid-slider i {\n border: solid ' + (props.dark ? 'white' : 'black') + ';\n border-width: 0 4px 4px 0;\n display: inline-block;\n padding: 4px;\n pointer-events: none;\n }\n #vid-slider .right {\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n }\n #vid-slider .left {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n }\n @media screen and (min-width: 1399px) {\n .block-content #vid-slider .tile__img {\n height: auto;\n }\n .block-content #vid-slider .tile {\n height: auto;\n }\n }\n \n @media screen and (max-width: 1399px) {\n #vid-slider,\n #vidHolder {\n max-width: 620px;\n }\n }\n @media screen and (max-width: 1200px) {\n #vid-slider,\n #vidHolder {\n max-width: 580px;\n }\n }\n @media screen and (max-width: 967px) {\n #vid-slider {\n max-width: 100%;\n }\n \n #vid-slider .row__inner {\n margin: 60px 0 50px !important;\n }\n }\n \n @media screen and (max-width: 768px) {\n #vidHolder {\n position: unset;\n width: 100%;\n }\n }\n @media screen and (max-width: 568px) {\n #vidHolder {\n position: unset;\n width: 100%;\n }\n \n #vid-slider .row__inner {\n margin: 30px 0 70px;\n }\n }\n '
|
|
@@ -2811,3 +3949,4 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
2811
3949
|
exports.Facebook = Facebook;
|
|
2812
3950
|
exports.ImageSlider = ImageSlider;
|
|
2813
3951
|
exports.Page = Page$1;
|
|
3952
|
+
exports.TwitterTimelineEmbed = TwitterTimelineEmbed;
|