@mjhls/mjh-framework 1.0.993-topelement-v6 → 1.0.994-Cypress
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-f316b66a.js → ADInfeed-e87afe8a.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-2003306e.js → ADlgInfeed-b5a3d436.js} +3 -3
- package/dist/cjs/AccordionPanel.js +17 -17
- package/dist/cjs/AdSlot.js +9 -9
- package/dist/cjs/AdSlotsProvider.js +8 -7
- package/dist/cjs/AlgoliaSearch.js +1129 -1214
- 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 +232 -23065
- package/dist/cjs/AuthWrapper.js +30 -120
- package/dist/cjs/{AuthorComponent-7d00f6d5.js → AuthorComponent-39b37d84.js} +9 -9
- package/dist/cjs/{BlockContent-96b44364.js → BlockContent-9ebd251f.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-213003ce.js → ConferenceBanner-6c9e718a.js} +3 -3
- package/dist/cjs/ContentCardPaginated.js +49 -49
- package/dist/cjs/CypressTesting.js +53 -0
- 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-c313a700.js → Dfp-9be904d5.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 +114 -114
- 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-ca708da8.js → ImageSlider-6c00b878.js} +180 -1319
- 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/{MediaSeriesCard-f6db8f70.js → MediaSeriesCard-cf144b71.js} +548 -622
- package/dist/cjs/MediaSeriesLanding.js +43 -43
- package/dist/cjs/MediaSeriesLandingPaginated.js +42 -42
- package/dist/cjs/NavDvm.js +57 -57
- package/dist/cjs/{NavFooter-880e9d87.js → NavFooter-4799de4b.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-6359861a.js → Pagination-2a3d0103.js} +13 -13
- package/dist/cjs/PartnerDetailListing.js +53 -52
- package/dist/cjs/PartnerDetailListingPaginated.js +49 -48
- 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-a989a2b3.js → PublicationFeature-5ccf9b13.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 +1 -1
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +18 -18
- package/dist/cjs/{SeriesSlider-f5248377.js → SeriesSlider-594b19eb.js} +26 -26
- package/dist/cjs/SideFooter.js +20 -20
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-ca9c0c45.js → SocialSearchComponent-d2ab3d62.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 +298 -292
- package/dist/cjs/YahooHero.js +22 -22
- package/dist/cjs/YoutubeGroup.js +37 -37
- package/dist/cjs/{brightcove-react-player-loader.es-4c7825a1.js → brightcove-react-player-loader.es-a195642e.js} +2 -2
- package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
- package/dist/cjs/getSerializers.js +8 -8
- package/dist/cjs/{getTargeting-4439c99d.js → getTargeting-ba942d9a.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-be4097c0.js +4 -2
- package/dist/cjs/{index-9ec837cc.js → index-50be6759.js} +25 -9
- package/dist/cjs/{index-b10d6863.js → index-e9d3f910.js} +492 -489
- package/dist/cjs/{index-65621b6c.js → index-eadd5035.js} +5 -5
- package/dist/cjs/{index-96c331fd.js → index-f86bb269.js} +52 -53
- package/dist/cjs/{index-d2a6ef75.js → index-fc2f1ca2.js} +4 -4
- package/dist/cjs/{index.es-1ab8dda7.js → index.es-f3e47207.js} +4 -4
- package/dist/cjs/{index.esm-f59ef5b4.js → index.esm-1461604c.js} +14 -14
- package/dist/cjs/index.js +111 -106
- package/dist/cjs/{main-6054981e.js → main-f1c77adb.js} +22 -17
- package/dist/cjs/{react-social-icons-2c5c389a.js → react-social-icons-af932527.js} +7 -7
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/{esm/empty-a8042e3c.js → cjs/util-93a37fd0.js} +3 -135
- package/dist/cjs/{visibility-sensor-56020df6.js → visibility-sensor-eb2c5b69.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 +558 -643
- 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 +153 -22989
- package/dist/esm/AuthWrapper.js +3 -93
- 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/CypressTesting.js +47 -0
- 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 +11 -11
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +4 -4
- package/dist/esm/{ImageSlider-fada4f0c.js → ImageSlider-f84174cb.js} +123 -1261
- 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/{MediaSeriesCard-96ac8ed4.js → MediaSeriesCard-2a65b9da.js} +251 -325
- package/dist/esm/MediaSeriesLanding.js +13 -13
- package/dist/esm/MediaSeriesLandingPaginated.js +14 -14
- package/dist/esm/NavMagazine.js +12 -12
- package/dist/esm/NavNative.js +10 -10
- package/dist/esm/{Pagination-9fe9f61d.js → Pagination-dc30727b.js} +1 -1
- package/dist/esm/PartnerDetailListing.js +9 -8
- package/dist/esm/PartnerDetailListingPaginated.js +10 -9
- 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 +1 -1
- package/dist/esm/SeriesListingDeck.js +2 -2
- package/dist/esm/{SeriesSlider-4875823e.js → SeriesSlider-f771e20d.js} +5 -5
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/{SocialSearchComponent-68d948b9.js → SocialSearchComponent-165b4ae7.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 +81 -75
- package/dist/esm/YoutubeGroup.js +5 -5
- package/dist/esm/defineProperty-23a8f8cd.js +68 -0
- package/dist/esm/getSerializers.js +4 -4
- package/dist/esm/{getTargeting-c6884f34.js → getTargeting-9bd28724.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-30a6257d.js → index-79cfd25c.js} +52 -53
- package/dist/esm/{index-0ce54f8a.js → index-98ca9cec.js} +25 -10
- package/dist/esm/{index-076baa11.js → index-9a58ca55.js} +7 -5
- package/dist/esm/index.js +18 -13
- package/dist/esm/{main-9f6806ea.js → main-1894c974.js} +9 -4
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/dist/{cjs/empty-559717f3.js → esm/util-8ed16d48.js} +1 -146
- package/package.json +114 -114
- package/dist/cjs/defineProperty-ad65f5f0.js +0 -110
- package/dist/cjs/index-0cf4c9fc.js +0 -904
- package/dist/esm/defineProperty-50094484.js +0 -101
- package/dist/esm/index-e7075467.js +0 -897
- /package/dist/esm/{ADInfeed-777bb0b3.js → ADInfeed-5765a73a.js} +0 -0
- /package/dist/esm/{ADlgInfeed-e7fd1bb6.js → ADlgInfeed-5e36f317.js} +0 -0
|
@@ -1,1169 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defineProperty
|
|
3
|
+
var defineProperty = require('./defineProperty-e0fb52c5.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
8
|
-
var smoothscroll = require('./smoothscroll-99df7f93.js');
|
|
9
|
-
var urlFor = require('./urlFor.js');
|
|
10
|
-
|
|
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);
|
|
648
|
-
|
|
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
|
-
}
|
|
5
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
|
+
var PropTypes = require('prop-types');
|
|
7
|
+
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
8
|
+
var smoothscroll = require('./smoothscroll-99df7f93.js');
|
|
9
|
+
var urlFor = require('./urlFor.js');
|
|
1162
10
|
|
|
1163
|
-
|
|
1164
|
-
}
|
|
11
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
1165
12
|
|
|
1166
|
-
var
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
1167
15
|
|
|
1168
16
|
var canUseDOM = !!(
|
|
1169
17
|
typeof window !== 'undefined' &&
|
|
@@ -1173,6 +21,7 @@ var canUseDOM = !!(
|
|
|
1173
21
|
|
|
1174
22
|
var canUseDom = canUseDOM;
|
|
1175
23
|
|
|
24
|
+
var objectWithoutPropertiesLoose = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
1176
25
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1177
26
|
if (source == null) return {};
|
|
1178
27
|
var target = {};
|
|
@@ -1188,8 +37,13 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
1188
37
|
return target;
|
|
1189
38
|
}
|
|
1190
39
|
|
|
1191
|
-
|
|
40
|
+
module.exports = _objectWithoutPropertiesLoose;
|
|
41
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
_commonjsHelpers.unwrapExports(objectWithoutPropertiesLoose);
|
|
1192
45
|
|
|
46
|
+
var objectWithoutProperties = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
1193
47
|
function _objectWithoutProperties(source, excluded) {
|
|
1194
48
|
if (source == null) return {};
|
|
1195
49
|
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
@@ -1209,7 +63,11 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
1209
63
|
return target;
|
|
1210
64
|
}
|
|
1211
65
|
|
|
1212
|
-
|
|
66
|
+
module.exports = _objectWithoutProperties;
|
|
67
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
var _objectWithoutProperties = _commonjsHelpers.unwrapExports(objectWithoutProperties);
|
|
1213
71
|
|
|
1214
72
|
var LoginStatus$1 = {
|
|
1215
73
|
CONNECTED: 'connected',
|
|
@@ -1220,7 +78,7 @@ var LoginStatus$1 = {
|
|
|
1220
78
|
|
|
1221
79
|
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; }
|
|
1222
80
|
|
|
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; }
|
|
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._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; }
|
|
1224
82
|
const Method = {
|
|
1225
83
|
GET: 'get',
|
|
1226
84
|
POST: 'post',
|
|
@@ -1256,7 +114,7 @@ class Facebook$1 {
|
|
|
1256
114
|
init() {
|
|
1257
115
|
var _this = this;
|
|
1258
116
|
|
|
1259
|
-
return
|
|
117
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1260
118
|
if (_this.loadingPromise) {
|
|
1261
119
|
return _this.loadingPromise;
|
|
1262
120
|
}
|
|
@@ -1269,7 +127,7 @@ class Facebook$1 {
|
|
|
1269
127
|
debug,
|
|
1270
128
|
chatSupport
|
|
1271
129
|
} = _this$options,
|
|
1272
|
-
restOptions =
|
|
130
|
+
restOptions = _objectWithoutProperties(_this$options, ["domain", "language", "debug", "chatSupport"]);
|
|
1273
131
|
|
|
1274
132
|
window.fbAsyncInit = () => {
|
|
1275
133
|
window.FB.init({
|
|
@@ -1301,7 +159,7 @@ class Facebook$1 {
|
|
|
1301
159
|
process(method, before = [], after = []) {
|
|
1302
160
|
var _this2 = this;
|
|
1303
161
|
|
|
1304
|
-
return
|
|
162
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1305
163
|
const fb = yield _this2.init();
|
|
1306
164
|
return new Promise((resolve, reject) => {
|
|
1307
165
|
fb[method](...before, response => {
|
|
@@ -1329,7 +187,7 @@ class Facebook$1 {
|
|
|
1329
187
|
ui(options) {
|
|
1330
188
|
var _this3 = this;
|
|
1331
189
|
|
|
1332
|
-
return
|
|
190
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1333
191
|
return _this3.process('ui', [options]);
|
|
1334
192
|
})();
|
|
1335
193
|
}
|
|
@@ -1337,7 +195,7 @@ class Facebook$1 {
|
|
|
1337
195
|
api(path, method = Method.GET, params = {}) {
|
|
1338
196
|
var _this4 = this;
|
|
1339
197
|
|
|
1340
|
-
return
|
|
198
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1341
199
|
return _this4.process('api', [path, method, params]);
|
|
1342
200
|
})();
|
|
1343
201
|
}
|
|
@@ -1345,7 +203,7 @@ class Facebook$1 {
|
|
|
1345
203
|
login(opts = null) {
|
|
1346
204
|
var _this5 = this;
|
|
1347
205
|
|
|
1348
|
-
return
|
|
206
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1349
207
|
return _this5.process('login', [], [opts]);
|
|
1350
208
|
})();
|
|
1351
209
|
}
|
|
@@ -1353,7 +211,7 @@ class Facebook$1 {
|
|
|
1353
211
|
logout() {
|
|
1354
212
|
var _this6 = this;
|
|
1355
213
|
|
|
1356
|
-
return
|
|
214
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1357
215
|
return _this6.process('logout');
|
|
1358
216
|
})();
|
|
1359
217
|
}
|
|
@@ -1361,7 +219,7 @@ class Facebook$1 {
|
|
|
1361
219
|
getLoginStatus() {
|
|
1362
220
|
var _this7 = this;
|
|
1363
221
|
|
|
1364
|
-
return
|
|
222
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1365
223
|
return _this7.process('getLoginStatus');
|
|
1366
224
|
})();
|
|
1367
225
|
}
|
|
@@ -1369,7 +227,7 @@ class Facebook$1 {
|
|
|
1369
227
|
getAuthResponse() {
|
|
1370
228
|
var _this8 = this;
|
|
1371
229
|
|
|
1372
|
-
return
|
|
230
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1373
231
|
return _this8.process('getAuthResponse');
|
|
1374
232
|
})();
|
|
1375
233
|
}
|
|
@@ -1377,7 +235,7 @@ class Facebook$1 {
|
|
|
1377
235
|
getTokenDetail(loginResponse) {
|
|
1378
236
|
var _this9 = this;
|
|
1379
237
|
|
|
1380
|
-
return
|
|
238
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1381
239
|
if (loginResponse.status === LoginStatus$1.CONNECTED && loginResponse.authResponse) {
|
|
1382
240
|
return loginResponse.authResponse;
|
|
1383
241
|
}
|
|
@@ -1395,7 +253,7 @@ class Facebook$1 {
|
|
|
1395
253
|
getProfile(params) {
|
|
1396
254
|
var _this10 = this;
|
|
1397
255
|
|
|
1398
|
-
return
|
|
256
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1399
257
|
return _this10.api('/me', Method.GET, params);
|
|
1400
258
|
})();
|
|
1401
259
|
}
|
|
@@ -1403,7 +261,7 @@ class Facebook$1 {
|
|
|
1403
261
|
getTokenDetailWithProfile(params, response) {
|
|
1404
262
|
var _this11 = this;
|
|
1405
263
|
|
|
1406
|
-
return
|
|
264
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1407
265
|
const tokenDetail = yield _this11.getTokenDetail(response);
|
|
1408
266
|
const profile = yield _this11.getProfile(params);
|
|
1409
267
|
return {
|
|
@@ -1416,7 +274,7 @@ class Facebook$1 {
|
|
|
1416
274
|
getToken() {
|
|
1417
275
|
var _this12 = this;
|
|
1418
276
|
|
|
1419
|
-
return
|
|
277
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1420
278
|
const authResponse = yield _this12.getTokenDetail();
|
|
1421
279
|
return authResponse.accessToken;
|
|
1422
280
|
})();
|
|
@@ -1425,7 +283,7 @@ class Facebook$1 {
|
|
|
1425
283
|
getUserId() {
|
|
1426
284
|
var _this13 = this;
|
|
1427
285
|
|
|
1428
|
-
return
|
|
286
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1429
287
|
const authResponse = yield _this13.getTokenDetail();
|
|
1430
288
|
return authResponse.userID;
|
|
1431
289
|
})();
|
|
@@ -1434,7 +292,7 @@ class Facebook$1 {
|
|
|
1434
292
|
sendInvite(to, options) {
|
|
1435
293
|
var _this14 = this;
|
|
1436
294
|
|
|
1437
|
-
return
|
|
295
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1438
296
|
return _this14.ui(_objectSpread$3({
|
|
1439
297
|
to,
|
|
1440
298
|
method: 'apprequests'
|
|
@@ -1445,7 +303,7 @@ class Facebook$1 {
|
|
|
1445
303
|
postAction(ogNamespace, ogAction, ogObject, ogObjectUrl, noFeedStory) {
|
|
1446
304
|
var _this15 = this;
|
|
1447
305
|
|
|
1448
|
-
return
|
|
306
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1449
307
|
let url = `/me/${ogNamespace}:${ogAction}?${ogObject}=${encodeURIComponent(ogObjectUrl)}`;
|
|
1450
308
|
|
|
1451
309
|
if (noFeedStory === true) {
|
|
@@ -1459,7 +317,7 @@ class Facebook$1 {
|
|
|
1459
317
|
getPermissions() {
|
|
1460
318
|
var _this16 = this;
|
|
1461
319
|
|
|
1462
|
-
return
|
|
320
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1463
321
|
const response = yield _this16.api('/me/permissions');
|
|
1464
322
|
return response.data;
|
|
1465
323
|
})();
|
|
@@ -1468,7 +326,7 @@ class Facebook$1 {
|
|
|
1468
326
|
hasPermissions(permissions) {
|
|
1469
327
|
var _this17 = this;
|
|
1470
328
|
|
|
1471
|
-
return
|
|
329
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1472
330
|
const usersPermissions = yield _this17.getPermissions();
|
|
1473
331
|
const findedPermissions = permissions.filter(p => {
|
|
1474
332
|
const currentPermission = usersPermissions.find(row => {
|
|
@@ -1487,7 +345,7 @@ class Facebook$1 {
|
|
|
1487
345
|
subscribe(eventName, callback) {
|
|
1488
346
|
var _this18 = this;
|
|
1489
347
|
|
|
1490
|
-
return
|
|
348
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1491
349
|
const fb = yield _this18.init();
|
|
1492
350
|
fb.Event.subscribe(eventName, callback);
|
|
1493
351
|
})();
|
|
@@ -1496,7 +354,7 @@ class Facebook$1 {
|
|
|
1496
354
|
unsubscribe(eventName, callback) {
|
|
1497
355
|
var _this19 = this;
|
|
1498
356
|
|
|
1499
|
-
return
|
|
357
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1500
358
|
const fb = yield _this19.init();
|
|
1501
359
|
fb.Event.unsubscribe(eventName, callback);
|
|
1502
360
|
})();
|
|
@@ -1505,7 +363,7 @@ class Facebook$1 {
|
|
|
1505
363
|
parse(parentNode) {
|
|
1506
364
|
var _this20 = this;
|
|
1507
365
|
|
|
1508
|
-
return
|
|
366
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1509
367
|
const fb = yield _this20.init();
|
|
1510
368
|
|
|
1511
369
|
if (typeof parentNode === 'undefined') {
|
|
@@ -1519,7 +377,7 @@ class Facebook$1 {
|
|
|
1519
377
|
getRequests() {
|
|
1520
378
|
var _this21 = this;
|
|
1521
379
|
|
|
1522
|
-
return
|
|
380
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1523
381
|
return _this21.api('/me/apprequests');
|
|
1524
382
|
})();
|
|
1525
383
|
}
|
|
@@ -1527,7 +385,7 @@ class Facebook$1 {
|
|
|
1527
385
|
removeRequest(requestID) {
|
|
1528
386
|
var _this22 = this;
|
|
1529
387
|
|
|
1530
|
-
return
|
|
388
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1531
389
|
return _this22.api(requestID, Method.DELETE);
|
|
1532
390
|
})();
|
|
1533
391
|
}
|
|
@@ -1535,7 +393,7 @@ class Facebook$1 {
|
|
|
1535
393
|
setAutoGrow() {
|
|
1536
394
|
var _this23 = this;
|
|
1537
395
|
|
|
1538
|
-
return
|
|
396
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1539
397
|
const fb = yield _this23.init();
|
|
1540
398
|
fb.Canvas.setAutoGrow();
|
|
1541
399
|
})();
|
|
@@ -1544,7 +402,7 @@ class Facebook$1 {
|
|
|
1544
402
|
paySimple(product, quantity = 1) {
|
|
1545
403
|
var _this24 = this;
|
|
1546
404
|
|
|
1547
|
-
return
|
|
405
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1548
406
|
return _this24.ui({
|
|
1549
407
|
method: 'pay',
|
|
1550
408
|
action: 'purchaseitem',
|
|
@@ -1557,7 +415,7 @@ class Facebook$1 {
|
|
|
1557
415
|
pay(product, options) {
|
|
1558
416
|
var _this25 = this;
|
|
1559
417
|
|
|
1560
|
-
return
|
|
418
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1561
419
|
return _this25.ui(_objectSpread$3({
|
|
1562
420
|
method: 'pay',
|
|
1563
421
|
action: 'purchaseitem',
|
|
@@ -1848,13 +706,13 @@ class Facebook extends React.Component {
|
|
|
1848
706
|
super(...args);
|
|
1849
707
|
_this = this;
|
|
1850
708
|
|
|
1851
|
-
defineProperty(this, "state", {
|
|
709
|
+
defineProperty._defineProperty(this, "state", {
|
|
1852
710
|
isReady: false
|
|
1853
711
|
});
|
|
1854
712
|
|
|
1855
|
-
defineProperty(this, "handleInit",
|
|
713
|
+
defineProperty._defineProperty(this, "handleInit",
|
|
1856
714
|
/*#__PURE__*/
|
|
1857
|
-
|
|
715
|
+
defineProperty._asyncToGenerator(function* () {
|
|
1858
716
|
// do not run if SSR
|
|
1859
717
|
if (!canUseDom) {
|
|
1860
718
|
throw new Error('You can not use Facebook without DOM');
|
|
@@ -1936,14 +794,14 @@ class Facebook extends React.Component {
|
|
|
1936
794
|
handleInit,
|
|
1937
795
|
api
|
|
1938
796
|
};
|
|
1939
|
-
return React__default[
|
|
797
|
+
return React__default['default'].createElement(FacebookContext.Provider, {
|
|
1940
798
|
value: value
|
|
1941
799
|
}, children);
|
|
1942
800
|
}
|
|
1943
801
|
|
|
1944
802
|
}
|
|
1945
803
|
|
|
1946
|
-
defineProperty(Facebook, "defaultProps", {
|
|
804
|
+
defineProperty._defineProperty(Facebook, "defaultProps", {
|
|
1947
805
|
version: 'v3.1',
|
|
1948
806
|
cookie: false,
|
|
1949
807
|
status: false,
|
|
@@ -1973,12 +831,16 @@ function _extends() {
|
|
|
1973
831
|
return target;
|
|
1974
832
|
};
|
|
1975
833
|
|
|
834
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1976
835
|
return _extends.apply(this, arguments);
|
|
1977
836
|
}
|
|
1978
837
|
|
|
1979
838
|
module.exports = _extends;
|
|
839
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1980
840
|
});
|
|
1981
841
|
|
|
842
|
+
var _extends = _commonjsHelpers.unwrapExports(_extends_1);
|
|
843
|
+
|
|
1982
844
|
class Initialize extends React.Component {
|
|
1983
845
|
componentDidMount() {
|
|
1984
846
|
this.$isMounted = true;
|
|
@@ -1992,7 +854,7 @@ class Initialize extends React.Component {
|
|
|
1992
854
|
prepare() {
|
|
1993
855
|
var _this = this;
|
|
1994
856
|
|
|
1995
|
-
return
|
|
857
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
1996
858
|
const {
|
|
1997
859
|
onReady,
|
|
1998
860
|
handleInit
|
|
@@ -2025,16 +887,16 @@ class Initialize extends React.Component {
|
|
|
2025
887
|
|
|
2026
888
|
}
|
|
2027
889
|
|
|
2028
|
-
defineProperty(Initialize, "defaultProps", {
|
|
890
|
+
defineProperty._defineProperty(Initialize, "defaultProps", {
|
|
2029
891
|
onReady: undefined,
|
|
2030
892
|
api: undefined
|
|
2031
893
|
});
|
|
2032
894
|
|
|
2033
|
-
var Initialize$1 = React.forwardRef((props, ref) => React__default[
|
|
895
|
+
var Initialize$1 = React.forwardRef((props, ref) => React__default['default'].createElement(FacebookContext.Consumer, null, ({
|
|
2034
896
|
handleInit,
|
|
2035
897
|
isReady,
|
|
2036
898
|
api
|
|
2037
|
-
}) => React__default[
|
|
899
|
+
}) => React__default['default'].createElement(Initialize, _extends({}, props, {
|
|
2038
900
|
handleInit: handleInit,
|
|
2039
901
|
isReady: isReady,
|
|
2040
902
|
api: api,
|
|
@@ -2045,21 +907,21 @@ class Parser extends React.Component {
|
|
|
2045
907
|
constructor(...args) {
|
|
2046
908
|
super(...args);
|
|
2047
909
|
|
|
2048
|
-
defineProperty(this, "state", {});
|
|
910
|
+
defineProperty._defineProperty(this, "state", {});
|
|
2049
911
|
|
|
2050
|
-
defineProperty(this, "handleReady", api => {
|
|
912
|
+
defineProperty._defineProperty(this, "handleReady", api => {
|
|
2051
913
|
this.setState({
|
|
2052
914
|
api
|
|
2053
915
|
}, this.handleParse);
|
|
2054
916
|
});
|
|
2055
917
|
|
|
2056
|
-
defineProperty(this, "handleContainer", container => {
|
|
918
|
+
defineProperty._defineProperty(this, "handleContainer", container => {
|
|
2057
919
|
this.setState({
|
|
2058
920
|
container
|
|
2059
921
|
}, this.handleParse);
|
|
2060
922
|
});
|
|
2061
923
|
|
|
2062
|
-
defineProperty(this, "handleParse", () => {
|
|
924
|
+
defineProperty._defineProperty(this, "handleParse", () => {
|
|
2063
925
|
const {
|
|
2064
926
|
api,
|
|
2065
927
|
container
|
|
@@ -2078,10 +940,10 @@ class Parser extends React.Component {
|
|
|
2078
940
|
className,
|
|
2079
941
|
children
|
|
2080
942
|
} = this.props;
|
|
2081
|
-
return React__default[
|
|
943
|
+
return React__default['default'].createElement("div", {
|
|
2082
944
|
className: className,
|
|
2083
945
|
ref: this.handleContainer
|
|
2084
|
-
}, React__default[
|
|
946
|
+
}, React__default['default'].createElement(Initialize$1, {
|
|
2085
947
|
onReady: this.handleReady
|
|
2086
948
|
}, children({
|
|
2087
949
|
handleParse: this.handleParse
|
|
@@ -2090,7 +952,7 @@ class Parser extends React.Component {
|
|
|
2090
952
|
|
|
2091
953
|
}
|
|
2092
954
|
|
|
2093
|
-
defineProperty(Parser, "defaultProps", {
|
|
955
|
+
defineProperty._defineProperty(Parser, "defaultProps", {
|
|
2094
956
|
className: undefined
|
|
2095
957
|
});
|
|
2096
958
|
|
|
@@ -2124,7 +986,7 @@ class Like extends React.PureComponent {
|
|
|
2124
986
|
kidDirectedSite,
|
|
2125
987
|
referral
|
|
2126
988
|
} = this.props;
|
|
2127
|
-
return React__default[
|
|
989
|
+
return React__default['default'].createElement("div", {
|
|
2128
990
|
className: "fb-like",
|
|
2129
991
|
"data-ref": referral,
|
|
2130
992
|
"data-href": href,
|
|
@@ -2141,7 +1003,7 @@ class Like extends React.PureComponent {
|
|
|
2141
1003
|
|
|
2142
1004
|
}
|
|
2143
1005
|
|
|
2144
|
-
defineProperty(Like, "defaultProps", {
|
|
1006
|
+
defineProperty._defineProperty(Like, "defaultProps", {
|
|
2145
1007
|
layout: undefined,
|
|
2146
1008
|
showFaces: undefined,
|
|
2147
1009
|
colorScheme: undefined,
|
|
@@ -2155,9 +1017,9 @@ defineProperty(Like, "defaultProps", {
|
|
|
2155
1017
|
width: undefined
|
|
2156
1018
|
});
|
|
2157
1019
|
|
|
2158
|
-
React.forwardRef((props, ref) => React__default[
|
|
1020
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
2159
1021
|
handleParse
|
|
2160
|
-
}) => React__default[
|
|
1022
|
+
}) => React__default['default'].createElement(Like, _extends({}, props, {
|
|
2161
1023
|
handleParse: handleParse,
|
|
2162
1024
|
ref: ref
|
|
2163
1025
|
}))));
|
|
@@ -2185,14 +1047,14 @@ class Process extends React.Component {
|
|
|
2185
1047
|
super(...args);
|
|
2186
1048
|
_this = this;
|
|
2187
1049
|
|
|
2188
|
-
defineProperty(this, "state", {
|
|
1050
|
+
defineProperty._defineProperty(this, "state", {
|
|
2189
1051
|
api: undefined
|
|
2190
1052
|
});
|
|
2191
1053
|
|
|
2192
|
-
defineProperty(this, "handleProcess",
|
|
1054
|
+
defineProperty._defineProperty(this, "handleProcess",
|
|
2193
1055
|
/*#__PURE__*/
|
|
2194
1056
|
function () {
|
|
2195
|
-
var _ref =
|
|
1057
|
+
var _ref = defineProperty._asyncToGenerator(function* (fn, handleSuccess = () => {}) {
|
|
2196
1058
|
_this.setState({
|
|
2197
1059
|
data: undefined,
|
|
2198
1060
|
error: undefined,
|
|
@@ -2231,7 +1093,7 @@ class Process extends React.Component {
|
|
|
2231
1093
|
};
|
|
2232
1094
|
}());
|
|
2233
1095
|
|
|
2234
|
-
defineProperty(this, "handleReady", api => {
|
|
1096
|
+
defineProperty._defineProperty(this, "handleReady", api => {
|
|
2235
1097
|
this.setState({
|
|
2236
1098
|
api
|
|
2237
1099
|
});
|
|
@@ -2248,7 +1110,7 @@ class Process extends React.Component {
|
|
|
2248
1110
|
data,
|
|
2249
1111
|
error
|
|
2250
1112
|
} = this.state;
|
|
2251
|
-
return React__default[
|
|
1113
|
+
return React__default['default'].createElement(Initialize$1, {
|
|
2252
1114
|
onReady: this.handleReady
|
|
2253
1115
|
}, children({
|
|
2254
1116
|
loading: !api || loading,
|
|
@@ -2267,10 +1129,10 @@ class Send extends React.Component {
|
|
|
2267
1129
|
super(...args);
|
|
2268
1130
|
_this = this;
|
|
2269
1131
|
|
|
2270
|
-
defineProperty(this, "handleClick",
|
|
1132
|
+
defineProperty._defineProperty(this, "handleClick",
|
|
2271
1133
|
/*#__PURE__*/
|
|
2272
1134
|
function () {
|
|
2273
|
-
var _ref =
|
|
1135
|
+
var _ref = defineProperty._asyncToGenerator(function* (evn) {
|
|
2274
1136
|
evn.preventDefault();
|
|
2275
1137
|
const {
|
|
2276
1138
|
handleProcess
|
|
@@ -2278,7 +1140,7 @@ class Send extends React.Component {
|
|
|
2278
1140
|
return handleProcess(
|
|
2279
1141
|
/*#__PURE__*/
|
|
2280
1142
|
function () {
|
|
2281
|
-
var _ref2 =
|
|
1143
|
+
var _ref2 = defineProperty._asyncToGenerator(function* (api) {
|
|
2282
1144
|
const {
|
|
2283
1145
|
link = getCurrentHref(),
|
|
2284
1146
|
display,
|
|
@@ -2321,17 +1183,17 @@ class Send extends React.Component {
|
|
|
2321
1183
|
|
|
2322
1184
|
}
|
|
2323
1185
|
|
|
2324
|
-
defineProperty(Send, "defaultProps", {
|
|
1186
|
+
defineProperty._defineProperty(Send, "defaultProps", {
|
|
2325
1187
|
to: undefined,
|
|
2326
1188
|
display: undefined,
|
|
2327
1189
|
appId: undefined,
|
|
2328
1190
|
redirectURI: undefined
|
|
2329
1191
|
});
|
|
2330
1192
|
|
|
2331
|
-
React.forwardRef((props, ref) => React__default[
|
|
1193
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Process, null, ({
|
|
2332
1194
|
loading,
|
|
2333
1195
|
handleProcess
|
|
2334
|
-
}) => React__default[
|
|
1196
|
+
}) => React__default['default'].createElement(Send, _extends({}, props, {
|
|
2335
1197
|
loading: loading,
|
|
2336
1198
|
handleProcess: handleProcess,
|
|
2337
1199
|
ref: ref
|
|
@@ -2344,10 +1206,10 @@ class Share extends React.Component {
|
|
|
2344
1206
|
super(...args);
|
|
2345
1207
|
_this = this;
|
|
2346
1208
|
|
|
2347
|
-
defineProperty(this, "handleClick",
|
|
1209
|
+
defineProperty._defineProperty(this, "handleClick",
|
|
2348
1210
|
/*#__PURE__*/
|
|
2349
1211
|
function () {
|
|
2350
|
-
var _ref =
|
|
1212
|
+
var _ref = defineProperty._asyncToGenerator(function* (evn) {
|
|
2351
1213
|
evn.preventDefault();
|
|
2352
1214
|
const {
|
|
2353
1215
|
handleProcess
|
|
@@ -2355,7 +1217,7 @@ class Share extends React.Component {
|
|
|
2355
1217
|
return handleProcess(
|
|
2356
1218
|
/*#__PURE__*/
|
|
2357
1219
|
function () {
|
|
2358
|
-
var _ref2 =
|
|
1220
|
+
var _ref2 = defineProperty._asyncToGenerator(function* (api) {
|
|
2359
1221
|
const {
|
|
2360
1222
|
href = getCurrentHref(),
|
|
2361
1223
|
display,
|
|
@@ -2406,7 +1268,7 @@ class Share extends React.Component {
|
|
|
2406
1268
|
|
|
2407
1269
|
}
|
|
2408
1270
|
|
|
2409
|
-
defineProperty(Share, "defaultProps", {
|
|
1271
|
+
defineProperty._defineProperty(Share, "defaultProps", {
|
|
2410
1272
|
href: undefined,
|
|
2411
1273
|
hashtag: undefined,
|
|
2412
1274
|
quote: undefined,
|
|
@@ -2416,12 +1278,12 @@ defineProperty(Share, "defaultProps", {
|
|
|
2416
1278
|
redirectURI: undefined
|
|
2417
1279
|
});
|
|
2418
1280
|
|
|
2419
|
-
var Share$1 = React.forwardRef((props, ref) => React__default[
|
|
1281
|
+
var Share$1 = React.forwardRef((props, ref) => React__default['default'].createElement(Process, null, ({
|
|
2420
1282
|
loading,
|
|
2421
1283
|
handleProcess,
|
|
2422
1284
|
data,
|
|
2423
1285
|
error
|
|
2424
|
-
}) => React__default[
|
|
1286
|
+
}) => React__default['default'].createElement(Share, _extends({}, props, {
|
|
2425
1287
|
loading: loading,
|
|
2426
1288
|
handleProcess: handleProcess,
|
|
2427
1289
|
data: data,
|
|
@@ -2431,7 +1293,7 @@ var Share$1 = React.forwardRef((props, ref) => React__default["default"].createE
|
|
|
2431
1293
|
|
|
2432
1294
|
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; }
|
|
2433
1295
|
|
|
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; }
|
|
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._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; }
|
|
2435
1297
|
_objectSpread$2({}, Share$1.defaultProps, {
|
|
2436
1298
|
className: undefined
|
|
2437
1299
|
});
|
|
@@ -2458,7 +1320,7 @@ class Page extends React.PureComponent {
|
|
|
2458
1320
|
adaptContainerWidth,
|
|
2459
1321
|
children
|
|
2460
1322
|
} = this.props;
|
|
2461
|
-
return React__default[
|
|
1323
|
+
return React__default['default'].createElement("div", {
|
|
2462
1324
|
className: "fb-page",
|
|
2463
1325
|
style: style,
|
|
2464
1326
|
"data-tabs": tabs,
|
|
@@ -2475,7 +1337,7 @@ class Page extends React.PureComponent {
|
|
|
2475
1337
|
|
|
2476
1338
|
}
|
|
2477
1339
|
|
|
2478
|
-
defineProperty(Page, "defaultProps", {
|
|
1340
|
+
defineProperty._defineProperty(Page, "defaultProps", {
|
|
2479
1341
|
width: undefined,
|
|
2480
1342
|
height: undefined,
|
|
2481
1343
|
tabs: undefined,
|
|
@@ -2489,9 +1351,9 @@ defineProperty(Page, "defaultProps", {
|
|
|
2489
1351
|
href: undefined
|
|
2490
1352
|
});
|
|
2491
1353
|
|
|
2492
|
-
var Page$1 = React.forwardRef((props, ref) => React__default[
|
|
1354
|
+
var Page$1 = React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
2493
1355
|
handleParse
|
|
2494
|
-
}) => React__default[
|
|
1356
|
+
}) => React__default['default'].createElement(Page, _extends({}, props, {
|
|
2495
1357
|
handleParse: handleParse,
|
|
2496
1358
|
ref: ref
|
|
2497
1359
|
}))));
|
|
@@ -2501,7 +1363,7 @@ var Fields = ['id', 'first_name', 'last_name', 'middle_name', 'name', 'name_form
|
|
|
2501
1363
|
|
|
2502
1364
|
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; }
|
|
2503
1365
|
|
|
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; }
|
|
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._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; }
|
|
2505
1367
|
|
|
2506
1368
|
class Login extends React.Component {
|
|
2507
1369
|
constructor(...args) {
|
|
@@ -2510,10 +1372,10 @@ class Login extends React.Component {
|
|
|
2510
1372
|
super(...args);
|
|
2511
1373
|
_this = this;
|
|
2512
1374
|
|
|
2513
|
-
defineProperty(this, "handleClick",
|
|
1375
|
+
defineProperty._defineProperty(this, "handleClick",
|
|
2514
1376
|
/*#__PURE__*/
|
|
2515
1377
|
function () {
|
|
2516
|
-
var _ref =
|
|
1378
|
+
var _ref = defineProperty._asyncToGenerator(function* (evn) {
|
|
2517
1379
|
evn.preventDefault();
|
|
2518
1380
|
const {
|
|
2519
1381
|
handleProcess,
|
|
@@ -2526,7 +1388,7 @@ class Login extends React.Component {
|
|
|
2526
1388
|
yield handleProcess(
|
|
2527
1389
|
/*#__PURE__*/
|
|
2528
1390
|
function () {
|
|
2529
|
-
var _ref2 =
|
|
1391
|
+
var _ref2 = defineProperty._asyncToGenerator(function* (api) {
|
|
2530
1392
|
const {
|
|
2531
1393
|
scope,
|
|
2532
1394
|
fields,
|
|
@@ -2609,7 +1471,7 @@ class Login extends React.Component {
|
|
|
2609
1471
|
|
|
2610
1472
|
}
|
|
2611
1473
|
|
|
2612
|
-
defineProperty(Login, "defaultProps", {
|
|
1474
|
+
defineProperty._defineProperty(Login, "defaultProps", {
|
|
2613
1475
|
scope: '',
|
|
2614
1476
|
fields: Fields,
|
|
2615
1477
|
returnScopes: false,
|
|
@@ -2620,12 +1482,12 @@ defineProperty(Login, "defaultProps", {
|
|
|
2620
1482
|
eventKey: undefined
|
|
2621
1483
|
});
|
|
2622
1484
|
|
|
2623
|
-
var Login$1 = React.forwardRef((props, ref) => React__default[
|
|
1485
|
+
var Login$1 = React.forwardRef((props, ref) => React__default['default'].createElement(Process, null, ({
|
|
2624
1486
|
loading,
|
|
2625
1487
|
handleProcess,
|
|
2626
1488
|
data,
|
|
2627
1489
|
error
|
|
2628
|
-
}) => React__default[
|
|
1490
|
+
}) => React__default['default'].createElement(Login, _extends({}, props, {
|
|
2629
1491
|
loading: loading,
|
|
2630
1492
|
handleProcess: handleProcess,
|
|
2631
1493
|
data: data,
|
|
@@ -2988,11 +1850,11 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
|
2988
1850
|
|
|
2989
1851
|
|
|
2990
1852
|
|
|
2991
|
-
var _react2 = _interopRequireDefault(React__default[
|
|
1853
|
+
var _react2 = _interopRequireDefault(React__default['default']);
|
|
2992
1854
|
|
|
2993
1855
|
|
|
2994
1856
|
|
|
2995
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default[
|
|
1857
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default['default']);
|
|
2996
1858
|
|
|
2997
1859
|
|
|
2998
1860
|
|
|
@@ -3055,7 +1917,7 @@ var Spinner = function (_Component) {
|
|
|
3055
1917
|
|
|
3056
1918
|
|
|
3057
1919
|
if (loaded) {
|
|
3058
|
-
return this.props.children ? React__default[
|
|
1920
|
+
return this.props.children ? React__default['default'].Children.only(this.props.children) : null;
|
|
3059
1921
|
}
|
|
3060
1922
|
|
|
3061
1923
|
return _react2.default.createElement('div', { className: className, ref: 'loader' });
|
|
@@ -3063,7 +1925,7 @@ var Spinner = function (_Component) {
|
|
|
3063
1925
|
}]);
|
|
3064
1926
|
|
|
3065
1927
|
return Spinner;
|
|
3066
|
-
}(React__default[
|
|
1928
|
+
}(React__default['default'].Component);
|
|
3067
1929
|
|
|
3068
1930
|
Spinner.propTypes = {
|
|
3069
1931
|
className: _propTypes2.default.string,
|
|
@@ -3083,7 +1945,7 @@ _commonjsHelpers.unwrapExports(dist);
|
|
|
3083
1945
|
|
|
3084
1946
|
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; }
|
|
3085
1947
|
|
|
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; }
|
|
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._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; }
|
|
3087
1949
|
_objectSpread({}, Login$1.defaultProps, {
|
|
3088
1950
|
className: undefined,
|
|
3089
1951
|
spinnerConfig: {},
|
|
@@ -3105,7 +1967,7 @@ class EmbeddedPost extends React.PureComponent {
|
|
|
3105
1967
|
showText,
|
|
3106
1968
|
children
|
|
3107
1969
|
} = this.props;
|
|
3108
|
-
return React__default[
|
|
1970
|
+
return React__default['default'].createElement("div", {
|
|
3109
1971
|
className: "fb-post",
|
|
3110
1972
|
"data-href": href,
|
|
3111
1973
|
"data-width": width,
|
|
@@ -3115,15 +1977,15 @@ class EmbeddedPost extends React.PureComponent {
|
|
|
3115
1977
|
|
|
3116
1978
|
}
|
|
3117
1979
|
|
|
3118
|
-
defineProperty(EmbeddedPost, "defaultProps", {
|
|
1980
|
+
defineProperty._defineProperty(EmbeddedPost, "defaultProps", {
|
|
3119
1981
|
width: undefined,
|
|
3120
1982
|
showText: undefined,
|
|
3121
1983
|
children: undefined
|
|
3122
1984
|
});
|
|
3123
1985
|
|
|
3124
|
-
React.forwardRef((props, ref) => React__default[
|
|
1986
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3125
1987
|
handleParse
|
|
3126
|
-
}) => React__default[
|
|
1988
|
+
}) => React__default['default'].createElement(EmbeddedPost, _extends({}, props, {
|
|
3127
1989
|
handleParse: handleParse,
|
|
3128
1990
|
ref: ref
|
|
3129
1991
|
}))));
|
|
@@ -3146,7 +2008,7 @@ class EmbeddedVideo extends React.PureComponent {
|
|
|
3146
2008
|
showCaptions,
|
|
3147
2009
|
children
|
|
3148
2010
|
} = this.props;
|
|
3149
|
-
return React__default[
|
|
2011
|
+
return React__default['default'].createElement("div", {
|
|
3150
2012
|
className: "fb-video",
|
|
3151
2013
|
"data-href": href,
|
|
3152
2014
|
"data-width": width,
|
|
@@ -3159,7 +2021,7 @@ class EmbeddedVideo extends React.PureComponent {
|
|
|
3159
2021
|
|
|
3160
2022
|
}
|
|
3161
2023
|
|
|
3162
|
-
defineProperty(EmbeddedVideo, "defaultProps", {
|
|
2024
|
+
defineProperty._defineProperty(EmbeddedVideo, "defaultProps", {
|
|
3163
2025
|
width: undefined,
|
|
3164
2026
|
showText: undefined,
|
|
3165
2027
|
allowFullScreen: undefined,
|
|
@@ -3168,9 +2030,9 @@ defineProperty(EmbeddedVideo, "defaultProps", {
|
|
|
3168
2030
|
children: undefined
|
|
3169
2031
|
});
|
|
3170
2032
|
|
|
3171
|
-
React.forwardRef((props, ref) => React__default[
|
|
2033
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3172
2034
|
handleParse
|
|
3173
|
-
}) => React__default[
|
|
2035
|
+
}) => React__default['default'].createElement(EmbeddedVideo, _extends({}, props, {
|
|
3174
2036
|
handleParse: handleParse,
|
|
3175
2037
|
ref: ref
|
|
3176
2038
|
}))));
|
|
@@ -3193,7 +2055,7 @@ class Comments extends React.PureComponent {
|
|
|
3193
2055
|
children,
|
|
3194
2056
|
mobile
|
|
3195
2057
|
} = this.props;
|
|
3196
|
-
return React__default[
|
|
2058
|
+
return React__default['default'].createElement("div", {
|
|
3197
2059
|
className: "fb-comments",
|
|
3198
2060
|
"data-colorscheme": colorScheme,
|
|
3199
2061
|
"data-numposts": numPosts,
|
|
@@ -3207,7 +2069,7 @@ class Comments extends React.PureComponent {
|
|
|
3207
2069
|
|
|
3208
2070
|
}
|
|
3209
2071
|
|
|
3210
|
-
defineProperty(Comments, "defaultProps", {
|
|
2072
|
+
defineProperty._defineProperty(Comments, "defaultProps", {
|
|
3211
2073
|
href: undefined,
|
|
3212
2074
|
numPosts: undefined,
|
|
3213
2075
|
orderBy: undefined,
|
|
@@ -3217,9 +2079,9 @@ defineProperty(Comments, "defaultProps", {
|
|
|
3217
2079
|
mobile: undefined
|
|
3218
2080
|
});
|
|
3219
2081
|
|
|
3220
|
-
React.forwardRef((props, ref) => React__default[
|
|
2082
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3221
2083
|
handleParse
|
|
3222
|
-
}) => React__default[
|
|
2084
|
+
}) => React__default['default'].createElement(Comments, _extends({}, props, {
|
|
3223
2085
|
handleParse: handleParse,
|
|
3224
2086
|
ref: ref
|
|
3225
2087
|
}))));
|
|
@@ -3237,7 +2099,7 @@ class CommentsCount extends React.PureComponent {
|
|
|
3237
2099
|
href = getCurrentHref(),
|
|
3238
2100
|
children
|
|
3239
2101
|
} = this.props;
|
|
3240
|
-
return React__default[
|
|
2102
|
+
return React__default['default'].createElement("span", {
|
|
3241
2103
|
className: "fb-comments-count",
|
|
3242
2104
|
"data-href": href
|
|
3243
2105
|
}, children);
|
|
@@ -3245,14 +2107,14 @@ class CommentsCount extends React.PureComponent {
|
|
|
3245
2107
|
|
|
3246
2108
|
}
|
|
3247
2109
|
|
|
3248
|
-
defineProperty(CommentsCount, "defaultProps", {
|
|
2110
|
+
defineProperty._defineProperty(CommentsCount, "defaultProps", {
|
|
3249
2111
|
href: undefined,
|
|
3250
2112
|
children: undefined
|
|
3251
2113
|
});
|
|
3252
2114
|
|
|
3253
|
-
React.forwardRef((props, ref) => React__default[
|
|
2115
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3254
2116
|
handleParse
|
|
3255
|
-
}) => React__default[
|
|
2117
|
+
}) => React__default['default'].createElement(CommentsCount, _extends({}, props, {
|
|
3256
2118
|
handleParse: handleParse,
|
|
3257
2119
|
ref: ref
|
|
3258
2120
|
}))));
|
|
@@ -3264,10 +2126,10 @@ class Feed extends React.Component {
|
|
|
3264
2126
|
super(...args);
|
|
3265
2127
|
_this = this;
|
|
3266
2128
|
|
|
3267
|
-
defineProperty(this, "handleClick",
|
|
2129
|
+
defineProperty._defineProperty(this, "handleClick",
|
|
3268
2130
|
/*#__PURE__*/
|
|
3269
2131
|
function () {
|
|
3270
|
-
var _ref =
|
|
2132
|
+
var _ref = defineProperty._asyncToGenerator(function* (evn) {
|
|
3271
2133
|
evn.preventDefault();
|
|
3272
2134
|
const {
|
|
3273
2135
|
handleProcess
|
|
@@ -3275,7 +2137,7 @@ class Feed extends React.Component {
|
|
|
3275
2137
|
return handleProcess(
|
|
3276
2138
|
/*#__PURE__*/
|
|
3277
2139
|
function () {
|
|
3278
|
-
var _ref2 =
|
|
2140
|
+
var _ref2 = defineProperty._asyncToGenerator(function* (api) {
|
|
3279
2141
|
const {
|
|
3280
2142
|
link = getCurrentHref(),
|
|
3281
2143
|
display,
|
|
@@ -3336,7 +2198,7 @@ class Feed extends React.Component {
|
|
|
3336
2198
|
|
|
3337
2199
|
}
|
|
3338
2200
|
|
|
3339
|
-
defineProperty(Feed, "defaultProps", {
|
|
2201
|
+
defineProperty._defineProperty(Feed, "defaultProps", {
|
|
3340
2202
|
link: undefined,
|
|
3341
2203
|
display: undefined,
|
|
3342
2204
|
appId: undefined,
|
|
@@ -3351,12 +2213,12 @@ defineProperty(Feed, "defaultProps", {
|
|
|
3351
2213
|
dataRef: undefined
|
|
3352
2214
|
});
|
|
3353
2215
|
|
|
3354
|
-
React.forwardRef((props, ref) => React__default[
|
|
2216
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Process, null, ({
|
|
3355
2217
|
loading,
|
|
3356
2218
|
handleProcess,
|
|
3357
2219
|
error,
|
|
3358
2220
|
data
|
|
3359
|
-
}) => React__default[
|
|
2221
|
+
}) => React__default['default'].createElement(Feed, _extends({}, props, {
|
|
3360
2222
|
loading: loading,
|
|
3361
2223
|
handleProcess: handleProcess,
|
|
3362
2224
|
data: data,
|
|
@@ -3382,7 +2244,7 @@ class Group extends React.PureComponent {
|
|
|
3382
2244
|
children,
|
|
3383
2245
|
skin
|
|
3384
2246
|
} = this.props;
|
|
3385
|
-
return React__default[
|
|
2247
|
+
return React__default['default'].createElement("div", {
|
|
3386
2248
|
className: "fb-group",
|
|
3387
2249
|
style: style,
|
|
3388
2250
|
"data-href": href,
|
|
@@ -3395,7 +2257,7 @@ class Group extends React.PureComponent {
|
|
|
3395
2257
|
|
|
3396
2258
|
}
|
|
3397
2259
|
|
|
3398
|
-
defineProperty(Group, "defaultProps", {
|
|
2260
|
+
defineProperty._defineProperty(Group, "defaultProps", {
|
|
3399
2261
|
showSocialContext: undefined,
|
|
3400
2262
|
showMetaData: undefined,
|
|
3401
2263
|
width: undefined,
|
|
@@ -3405,9 +2267,9 @@ defineProperty(Group, "defaultProps", {
|
|
|
3405
2267
|
skin: undefined
|
|
3406
2268
|
});
|
|
3407
2269
|
|
|
3408
|
-
React.forwardRef((props, ref) => React__default[
|
|
2270
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3409
2271
|
handleParse
|
|
3410
|
-
}) => React__default[
|
|
2272
|
+
}) => React__default['default'].createElement(Group, _extends({}, props, {
|
|
3411
2273
|
handleParse: handleParse,
|
|
3412
2274
|
ref: ref
|
|
3413
2275
|
}))));
|
|
@@ -3419,12 +2281,12 @@ class LoginStatus extends React.Component {
|
|
|
3419
2281
|
super(..._args);
|
|
3420
2282
|
_this = this;
|
|
3421
2283
|
|
|
3422
|
-
defineProperty(this, "state", {});
|
|
2284
|
+
defineProperty._defineProperty(this, "state", {});
|
|
3423
2285
|
|
|
3424
|
-
defineProperty(this, "handleReady",
|
|
2286
|
+
defineProperty._defineProperty(this, "handleReady",
|
|
3425
2287
|
/*#__PURE__*/
|
|
3426
2288
|
function () {
|
|
3427
|
-
var _ref =
|
|
2289
|
+
var _ref = defineProperty._asyncToGenerator(function* (api) {
|
|
3428
2290
|
const {
|
|
3429
2291
|
event
|
|
3430
2292
|
} = _this.props;
|
|
@@ -3441,7 +2303,7 @@ class LoginStatus extends React.Component {
|
|
|
3441
2303
|
};
|
|
3442
2304
|
}());
|
|
3443
2305
|
|
|
3444
|
-
defineProperty(this, "handleChange", (...args) => {
|
|
2306
|
+
defineProperty._defineProperty(this, "handleChange", (...args) => {
|
|
3445
2307
|
const {
|
|
3446
2308
|
onChange
|
|
3447
2309
|
} = this.props;
|
|
@@ -3471,14 +2333,14 @@ class LoginStatus extends React.Component {
|
|
|
3471
2333
|
const {
|
|
3472
2334
|
children
|
|
3473
2335
|
} = this.props;
|
|
3474
|
-
return React__default[
|
|
2336
|
+
return React__default['default'].createElement(Initialize$1, {
|
|
3475
2337
|
onReady: this.handleReady
|
|
3476
2338
|
}, children);
|
|
3477
2339
|
}
|
|
3478
2340
|
|
|
3479
2341
|
}
|
|
3480
2342
|
|
|
3481
|
-
defineProperty(LoginStatus, "defaultProps", {
|
|
2343
|
+
defineProperty._defineProperty(LoginStatus, "defaultProps", {
|
|
3482
2344
|
onChange: undefined
|
|
3483
2345
|
});
|
|
3484
2346
|
|
|
@@ -3489,14 +2351,14 @@ class Profile extends React.Component {
|
|
|
3489
2351
|
super(...args);
|
|
3490
2352
|
_this = this;
|
|
3491
2353
|
|
|
3492
|
-
defineProperty(this, "state", {
|
|
2354
|
+
defineProperty._defineProperty(this, "state", {
|
|
3493
2355
|
loading: true
|
|
3494
2356
|
});
|
|
3495
2357
|
|
|
3496
|
-
defineProperty(this, "handleReady",
|
|
2358
|
+
defineProperty._defineProperty(this, "handleReady",
|
|
3497
2359
|
/*#__PURE__*/
|
|
3498
2360
|
function () {
|
|
3499
|
-
var _ref =
|
|
2361
|
+
var _ref = defineProperty._asyncToGenerator(function* (api) {
|
|
3500
2362
|
_this.api = api;
|
|
3501
2363
|
|
|
3502
2364
|
_this.updateProfile();
|
|
@@ -3507,7 +2369,7 @@ class Profile extends React.Component {
|
|
|
3507
2369
|
};
|
|
3508
2370
|
}());
|
|
3509
2371
|
|
|
3510
|
-
defineProperty(this, "handleStatusChange", () => {
|
|
2372
|
+
defineProperty._defineProperty(this, "handleStatusChange", () => {
|
|
3511
2373
|
this.updateProfile();
|
|
3512
2374
|
});
|
|
3513
2375
|
}
|
|
@@ -3515,7 +2377,7 @@ class Profile extends React.Component {
|
|
|
3515
2377
|
updateProfile() {
|
|
3516
2378
|
var _this2 = this;
|
|
3517
2379
|
|
|
3518
|
-
return
|
|
2380
|
+
return defineProperty._asyncToGenerator(function* () {
|
|
3519
2381
|
const {
|
|
3520
2382
|
api,
|
|
3521
2383
|
props: {
|
|
@@ -3568,9 +2430,9 @@ class Profile extends React.Component {
|
|
|
3568
2430
|
loading,
|
|
3569
2431
|
error
|
|
3570
2432
|
} = this.state;
|
|
3571
|
-
return React__default[
|
|
2433
|
+
return React__default['default'].createElement(Initialize$1, {
|
|
3572
2434
|
onReady: this.handleReady
|
|
3573
|
-
}, React__default[
|
|
2435
|
+
}, React__default['default'].createElement(LoginStatus, {
|
|
3574
2436
|
event: "auth.statusChange",
|
|
3575
2437
|
onChange: this.handleStatusChange
|
|
3576
2438
|
}, children({
|
|
@@ -3582,7 +2444,7 @@ class Profile extends React.Component {
|
|
|
3582
2444
|
|
|
3583
2445
|
}
|
|
3584
2446
|
|
|
3585
|
-
defineProperty(Profile, "defaultProps", {
|
|
2447
|
+
defineProperty._defineProperty(Profile, "defaultProps", {
|
|
3586
2448
|
fields: Fields
|
|
3587
2449
|
});
|
|
3588
2450
|
|
|
@@ -3605,7 +2467,7 @@ class CustomChat extends React.PureComponent {
|
|
|
3605
2467
|
greetingDialogDisplay,
|
|
3606
2468
|
greetingDialogDelay
|
|
3607
2469
|
} = this.props;
|
|
3608
|
-
return React__default[
|
|
2470
|
+
return React__default['default'].createElement("div", {
|
|
3609
2471
|
className: "fb-customerchat",
|
|
3610
2472
|
page_id: pageId,
|
|
3611
2473
|
theme_color: themeColor,
|
|
@@ -3619,7 +2481,7 @@ class CustomChat extends React.PureComponent {
|
|
|
3619
2481
|
|
|
3620
2482
|
}
|
|
3621
2483
|
|
|
3622
|
-
defineProperty(CustomChat, "defaultProps", {
|
|
2484
|
+
defineProperty._defineProperty(CustomChat, "defaultProps", {
|
|
3623
2485
|
children: undefined,
|
|
3624
2486
|
themeColor: undefined,
|
|
3625
2487
|
loggedInGreeting: undefined,
|
|
@@ -3629,9 +2491,9 @@ defineProperty(CustomChat, "defaultProps", {
|
|
|
3629
2491
|
greetingDialogDelay: undefined
|
|
3630
2492
|
});
|
|
3631
2493
|
|
|
3632
|
-
React.forwardRef((props, ref) => React__default[
|
|
2494
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3633
2495
|
handleParse
|
|
3634
|
-
}) => React__default[
|
|
2496
|
+
}) => React__default['default'].createElement(CustomChat, _extends({}, props, {
|
|
3635
2497
|
handleParse: handleParse,
|
|
3636
2498
|
ref: ref
|
|
3637
2499
|
}))));
|
|
@@ -3652,7 +2514,7 @@ class MessageUs extends React.PureComponent {
|
|
|
3652
2514
|
children,
|
|
3653
2515
|
size
|
|
3654
2516
|
} = this.props;
|
|
3655
|
-
return React__default[
|
|
2517
|
+
return React__default['default'].createElement("div", {
|
|
3656
2518
|
className: "fb-messengermessageus",
|
|
3657
2519
|
messenger_app_id: messengerAppId,
|
|
3658
2520
|
page_id: pageId,
|
|
@@ -3663,15 +2525,15 @@ class MessageUs extends React.PureComponent {
|
|
|
3663
2525
|
|
|
3664
2526
|
}
|
|
3665
2527
|
|
|
3666
|
-
defineProperty(MessageUs, "defaultProps", {
|
|
2528
|
+
defineProperty._defineProperty(MessageUs, "defaultProps", {
|
|
3667
2529
|
color: undefined,
|
|
3668
2530
|
size: undefined,
|
|
3669
2531
|
children: undefined
|
|
3670
2532
|
});
|
|
3671
2533
|
|
|
3672
|
-
React.forwardRef((props, ref) => React__default[
|
|
2534
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3673
2535
|
handleParse
|
|
3674
|
-
}) => React__default[
|
|
2536
|
+
}) => React__default['default'].createElement(MessageUs, _extends({}, props, {
|
|
3675
2537
|
handleParse: handleParse,
|
|
3676
2538
|
ref: ref
|
|
3677
2539
|
}))));
|
|
@@ -3697,7 +2559,7 @@ class MessengerCheckbox extends React.PureComponent {
|
|
|
3697
2559
|
centerAlign,
|
|
3698
2560
|
skin
|
|
3699
2561
|
} = this.props;
|
|
3700
|
-
return React__default[
|
|
2562
|
+
return React__default['default'].createElement("div", {
|
|
3701
2563
|
className: "fb-messenger-checkbox",
|
|
3702
2564
|
messenger_app_id: messengerAppId,
|
|
3703
2565
|
page_id: pageId,
|
|
@@ -3713,7 +2575,7 @@ class MessengerCheckbox extends React.PureComponent {
|
|
|
3713
2575
|
|
|
3714
2576
|
}
|
|
3715
2577
|
|
|
3716
|
-
defineProperty(MessengerCheckbox, "defaultProps", {
|
|
2578
|
+
defineProperty._defineProperty(MessengerCheckbox, "defaultProps", {
|
|
3717
2579
|
size: undefined,
|
|
3718
2580
|
allowLogin: undefined,
|
|
3719
2581
|
prechecked: undefined,
|
|
@@ -3724,9 +2586,9 @@ defineProperty(MessengerCheckbox, "defaultProps", {
|
|
|
3724
2586
|
centerAlign: undefined
|
|
3725
2587
|
});
|
|
3726
2588
|
|
|
3727
|
-
React.forwardRef((props, ref) => React__default[
|
|
2589
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3728
2590
|
handleParse
|
|
3729
|
-
}) => React__default[
|
|
2591
|
+
}) => React__default['default'].createElement(MessengerCheckbox, _extends({}, props, {
|
|
3730
2592
|
handleParse: handleParse,
|
|
3731
2593
|
ref: ref
|
|
3732
2594
|
}))));
|
|
@@ -3750,7 +2612,7 @@ class SendToMessenger extends React.PureComponent {
|
|
|
3750
2612
|
dataRef,
|
|
3751
2613
|
size
|
|
3752
2614
|
} = this.props;
|
|
3753
|
-
return React__default[
|
|
2615
|
+
return React__default['default'].createElement("div", {
|
|
3754
2616
|
className: "fb-send-to-messenger",
|
|
3755
2617
|
messenger_app_id: messengerAppId,
|
|
3756
2618
|
page_id: pageId,
|
|
@@ -3762,16 +2624,16 @@ class SendToMessenger extends React.PureComponent {
|
|
|
3762
2624
|
|
|
3763
2625
|
}
|
|
3764
2626
|
|
|
3765
|
-
defineProperty(SendToMessenger, "defaultProps", {
|
|
2627
|
+
defineProperty._defineProperty(SendToMessenger, "defaultProps", {
|
|
3766
2628
|
color: undefined,
|
|
3767
2629
|
size: undefined,
|
|
3768
2630
|
dataRef: undefined,
|
|
3769
2631
|
children: undefined
|
|
3770
2632
|
});
|
|
3771
2633
|
|
|
3772
|
-
React.forwardRef((props, ref) => React__default[
|
|
2634
|
+
React.forwardRef((props, ref) => React__default['default'].createElement(Parser, null, ({
|
|
3773
2635
|
handleParse
|
|
3774
|
-
}) => React__default[
|
|
2636
|
+
}) => React__default['default'].createElement(SendToMessenger, _extends({}, props, {
|
|
3775
2637
|
handleParse: handleParse,
|
|
3776
2638
|
ref: ref
|
|
3777
2639
|
}))));
|
|
@@ -3883,61 +2745,61 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
3883
2745
|
}, []);
|
|
3884
2746
|
|
|
3885
2747
|
var variant = 'black';
|
|
3886
|
-
return React__default[
|
|
3887
|
-
React__default[
|
|
2748
|
+
return React__default['default'].createElement(
|
|
2749
|
+
React__default['default'].Fragment,
|
|
3888
2750
|
null,
|
|
3889
|
-
React__default[
|
|
2751
|
+
React__default['default'].createElement(
|
|
3890
2752
|
'div',
|
|
3891
2753
|
{ ref: viewableWindow, id: 'vid-slider', className: 'col' },
|
|
3892
|
-
React__default[
|
|
2754
|
+
React__default['default'].createElement(
|
|
3893
2755
|
'div',
|
|
3894
2756
|
{ className: 'row' },
|
|
3895
|
-
showScroller && React__default[
|
|
2757
|
+
showScroller && React__default['default'].createElement(
|
|
3896
2758
|
'div',
|
|
3897
2759
|
{ onClick: function onClick(e) {
|
|
3898
2760
|
return scrollSlider(e, 'prev');
|
|
3899
2761
|
}, className: 'tile__slider-prev', style: { color: variant } },
|
|
3900
|
-
React__default[
|
|
2762
|
+
React__default['default'].createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow left' })
|
|
3901
2763
|
),
|
|
3902
|
-
showScroller && React__default[
|
|
2764
|
+
showScroller && React__default['default'].createElement(
|
|
3903
2765
|
'div',
|
|
3904
2766
|
{ onClick: function onClick(e) {
|
|
3905
2767
|
return scrollSlider(e, 'next');
|
|
3906
2768
|
}, className: 'tile__slider-next', style: { color: variant } },
|
|
3907
|
-
React__default[
|
|
2769
|
+
React__default['default'].createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow right' })
|
|
3908
2770
|
),
|
|
3909
|
-
React__default[
|
|
2771
|
+
React__default['default'].createElement(
|
|
3910
2772
|
'div',
|
|
3911
2773
|
{ ref: innerSlider, className: 'row__inner' },
|
|
3912
2774
|
props.data.slides.map(function (img, index) {
|
|
3913
2775
|
var thumbnail = urlFor({ client: client, source: img.slideshowImage, imageWidth: 250 });
|
|
3914
2776
|
if (!img.slideshowImage.link) {
|
|
3915
|
-
return React__default[
|
|
2777
|
+
return React__default['default'].createElement(
|
|
3916
2778
|
'div',
|
|
3917
2779
|
{ ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
|
|
3918
|
-
React__default[
|
|
2780
|
+
React__default['default'].createElement(
|
|
3919
2781
|
'div',
|
|
3920
2782
|
{ className: 'tile__media' },
|
|
3921
|
-
React__default[
|
|
2783
|
+
React__default['default'].createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px', maxHeight: '160px' } })
|
|
3922
2784
|
),
|
|
3923
|
-
React__default[
|
|
2785
|
+
React__default['default'].createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
3924
2786
|
);
|
|
3925
2787
|
} else {
|
|
3926
|
-
return React__default[
|
|
2788
|
+
return React__default['default'].createElement(
|
|
3927
2789
|
'a',
|
|
3928
2790
|
{ ref: tile, key: index, href: img.slideshowImage.link, target: img.slideshowImage.blank ? '_target' : '_self', className: 'tile', style: { width: tileSize + 'px' } },
|
|
3929
|
-
React__default[
|
|
2791
|
+
React__default['default'].createElement(
|
|
3930
2792
|
'div',
|
|
3931
2793
|
{ className: 'tile__media' },
|
|
3932
|
-
React__default[
|
|
2794
|
+
React__default['default'].createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px', maxHeight: '160px' } })
|
|
3933
2795
|
),
|
|
3934
|
-
React__default[
|
|
2796
|
+
React__default['default'].createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
3935
2797
|
);
|
|
3936
2798
|
}
|
|
3937
2799
|
})
|
|
3938
2800
|
)
|
|
3939
2801
|
),
|
|
3940
|
-
React__default[
|
|
2802
|
+
React__default['default'].createElement(
|
|
3941
2803
|
'style',
|
|
3942
2804
|
{ jsx: 'true' },
|
|
3943
2805
|
'\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 '
|
|
@@ -3949,4 +2811,3 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
3949
2811
|
exports.Facebook = Facebook;
|
|
3950
2812
|
exports.ImageSlider = ImageSlider;
|
|
3951
2813
|
exports.Page = Page$1;
|
|
3952
|
-
exports.TwitterTimelineEmbed = TwitterTimelineEmbed;
|