@mjhls/mjh-framework 1.0.881 → 1.0.883-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +11 -11
- package/dist/cjs/AD300x250x600.js +11 -11
- package/dist/cjs/AD728x90.js +12 -12
- package/dist/cjs/ADFloatingFooter.js +10 -10
- package/dist/cjs/ADFooter.js +3 -3
- package/dist/cjs/ADGutter.js +10 -10
- package/dist/cjs/{ADInfeed-4f661172.js → ADInfeed-2e48af77.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +10 -10
- package/dist/cjs/ADSponsoredResources.js +10 -10
- package/dist/cjs/ADWebcast.js +10 -10
- package/dist/cjs/ADWelcome.js +10 -10
- package/dist/cjs/{ADlgInfeed-6242e5b5.js → ADlgInfeed-c39c7131.js} +1 -1
- package/dist/cjs/AccordionPanel.js +4 -4
- package/dist/cjs/AdSlot.js +10 -10
- package/dist/cjs/AdSlotsProvider.js +903 -10
- package/dist/cjs/AlgoliaSearch.js +264 -391
- package/dist/cjs/AlphabeticList.js +6 -6
- package/dist/cjs/ArticleCarousel.js +6 -6
- package/dist/cjs/ArticleProgramLandingPage.js +25 -25
- package/dist/cjs/ArticleSeriesLandingPage.js +22 -22
- package/dist/cjs/ArticleSeriesListing.js +16 -16
- package/dist/cjs/Auth.js +1297 -469
- package/dist/cjs/AuthWrapper.js +390 -1697
- package/dist/cjs/{AuthorComponent-421d5ec1.js → AuthorComponent-02e827ae.js} +1 -1
- package/dist/cjs/Beam.js +5 -5
- package/dist/cjs/{BlockContent-bac780ac.js → BlockContent-091a991f.js} +1 -1
- package/dist/cjs/Breadcrumbs.js +3 -3
- package/dist/cjs/CMEDeck.js +12 -12
- package/dist/cjs/Column2.js +6 -6
- package/dist/cjs/Column3.js +14 -14
- package/dist/cjs/ConferenceArticleCard.js +20 -20
- package/dist/cjs/DeckContent.js +30 -30
- package/dist/cjs/DeckQueue.js +19 -19
- package/dist/cjs/DeckQueuePaginated.js +339 -0
- package/dist/cjs/{Dfp-ab12cd55.js → Dfp-f492f985.js} +8 -8
- package/dist/cjs/EventsDeck.js +31 -31
- package/dist/cjs/ExternalResources.js +25 -25
- package/dist/cjs/Feature.js +6 -6
- package/dist/cjs/ForbesHero.js +6 -6
- package/dist/cjs/GridContent.js +27 -27
- package/dist/cjs/GridHero.js +7 -7
- package/dist/cjs/GroupDeck.js +6 -6
- package/dist/cjs/HamMagazine.js +23 -23
- package/dist/cjs/Hero.js +5 -5
- package/dist/cjs/HighlightenVideo.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +24 -24
- package/dist/cjs/HorizontalHero.js +6 -6
- package/dist/cjs/IssueContentDeck.js +6 -6
- package/dist/cjs/IssueDeck.js +8 -8
- package/dist/cjs/IssueLanding.js +58 -58
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +10 -10
- package/dist/cjs/MasterDeck.js +30 -30
- package/dist/cjs/MasterDeckPaginated.js +443 -0
- package/dist/cjs/MediaSeriesCard-c6a6bfd3.js +9411 -0
- package/dist/cjs/MediaSeriesLanding.js +53 -9534
- package/dist/cjs/MediaSeriesLandingPaginated.js +521 -0
- package/dist/cjs/NavDvm.js +5 -5
- package/dist/cjs/NavMagazine.js +22 -22
- package/dist/cjs/NavNative.js +19 -19
- package/dist/cjs/OncliveHero.js +6 -5
- package/dist/cjs/OncliveLargeHero.js +7 -7
- package/dist/cjs/PageFilter.js +3 -3
- package/dist/cjs/Pagination-f3ef7bc1.js +59 -0
- package/dist/cjs/PartnerDetailListing.js +1233 -160
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +3 -3
- package/dist/cjs/PubSection.js +19 -19
- package/dist/cjs/PubToc.js +5 -5
- package/dist/cjs/PublicationDeck.js +5 -5
- package/dist/cjs/PublicationLanding.js +34 -34
- package/dist/cjs/QueueDeckExpanded.js +21 -21
- package/dist/cjs/QueueDeckExpandedPaginated.js +1377 -0
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +33 -33
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +3 -3
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +10 -10
- package/dist/cjs/{SeriesSlider-372e418f.js → SeriesSlider-49b81b0b.js} +11 -11
- package/dist/cjs/SideFooter.js +8 -8
- package/dist/cjs/{SocialSearchComponent-80a2130a.js → SocialSearchComponent-e8477ca3.js} +7 -7
- package/dist/cjs/TaxonomyCard.js +6 -6
- package/dist/cjs/TaxonomyDescription.js +24 -24
- package/dist/cjs/TemplateNormal.js +16 -16
- package/dist/cjs/ThumbnailCard.js +5 -5
- package/dist/cjs/Ustream.js +10 -10
- package/dist/cjs/VerticalHero.js +5 -5
- package/dist/cjs/VideoProgramLandingPage.js +25 -25
- package/dist/cjs/VideoSeriesCard.js +9 -9
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +23 -23
- package/dist/cjs/VideoSeriesListing.js +16 -16
- package/dist/cjs/View.js +63 -63
- package/dist/cjs/YahooHero.js +7 -7
- package/dist/cjs/YoutubeGroup.js +14 -14
- package/dist/cjs/{_is-array-bd978497.js → _is-array-aa52fa1e.js} +1 -1
- package/dist/cjs/{_iter-detect-ee3d4802.js → _iter-detect-05795553.js} +1 -1
- package/dist/cjs/{_object-sap-fee50a62.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-18379aba.js → _object-to-array-9bac8737.js} +1 -1
- package/dist/cjs/{asyncToGenerator-15014394.js → asyncToGenerator-df19209d.js} +3 -3
- package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-156bd4d6.js} +3 -4
- package/dist/cjs/{core.get-iterator-method-5cb3af28.js → core.get-iterator-method-f3c44602.js} +2 -2
- package/dist/cjs/{debounce-6191c8ee.js → debounce-529c8d06.js} +1 -1
- package/dist/cjs/{define-property-530a5e9e.js → define-property-21887c62.js} +1 -1
- package/dist/cjs/{defineProperty-5ca424cd.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-fb0c6568.js → entities-310b46ee.js} +0 -4
- package/dist/cjs/{extends-1d905ddb.js → extends-eed4f016.js} +1 -1
- package/dist/cjs/faundadb.js +5 -5
- package/dist/cjs/getRelatedArticle.js +4 -4
- package/dist/cjs/getRootDocGroup.js +4 -4
- package/dist/cjs/getSerializers.js +24 -24
- package/dist/cjs/{getTargeting-41f2f52d.js → getTargeting-8874437b.js} +11 -11
- package/dist/cjs/getTargeting.js +5 -5
- package/dist/cjs/{index-79eed652.js → index-3294d3bc.js} +40 -39
- package/dist/cjs/{index-d3451292.js → index-396089c0.js} +510 -514
- package/dist/cjs/{index-ff69979f.js → index-be0c82be.js} +22 -28
- package/dist/cjs/{index-53e27416.js → index-e2e62963.js} +9 -25
- package/dist/cjs/{index.es-e9d84959.js → index.es-9110add6.js} +5 -23
- package/dist/cjs/{index.esm-bf016399.js → index.esm-4d410430.js} +3 -2
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +41 -43
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{inherits-337c73a7.js → inherits-cba9c846.js} +7 -7
- package/dist/cjs/{keys-91f31941.js → keys-d207942e.js} +2 -2
- package/dist/cjs/{lodash-b5e0d5f6.js → lodash-fc2922d0.js} +30 -127
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{slicedToArray-0a78cdf3.js → slicedToArray-f6d4eaa8.js} +2 -2
- package/dist/cjs/{stringify-13405ce2.js → stringify-bbc68047.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-39fd0757.js → toConsumableArray-c9b8a0d0.js} +2 -2
- package/dist/cjs/{toNumber-f2f8744b.js → toNumber-36d1e7e5.js} +4 -39
- package/dist/cjs/{typeof-3dd6d3df.js → typeof-5f52cf64.js} +3 -3
- package/dist/cjs/urlFor.js +4 -4
- package/dist/cjs/{ustream-api-5619c1fa.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{web.dom.iterable-a9359910.js → web.dom.iterable-e34bf324.js} +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +11 -11
- package/dist/esm/AD300x250x600.js +11 -11
- package/dist/esm/AD728x90.js +12 -12
- package/dist/esm/ADFloatingFooter.js +10 -10
- package/dist/esm/ADFooter.js +3 -3
- package/dist/esm/ADGutter.js +10 -10
- package/dist/esm/{ADInfeed-7db96917.js → ADInfeed-d767ebe2.js} +3 -3
- package/dist/esm/ADSkyscraper.js +10 -10
- package/dist/esm/ADSponsoredResources.js +10 -10
- package/dist/esm/ADWebcast.js +10 -10
- package/dist/esm/ADWelcome.js +10 -10
- package/dist/esm/{ADlgInfeed-a3931e68.js → ADlgInfeed-cee95aa2.js} +1 -1
- package/dist/esm/AccordionPanel.js +4 -4
- package/dist/esm/AdSlot.js +10 -10
- package/dist/esm/AdSlotsProvider.js +905 -13
- package/dist/esm/AlgoliaSearch.js +32 -159
- package/dist/esm/AlphabeticList.js +6 -6
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +25 -25
- package/dist/esm/ArticleSeriesLandingPage.js +22 -22
- package/dist/esm/ArticleSeriesListing.js +18 -18
- package/dist/esm/Auth.js +1297 -469
- package/dist/esm/AuthWrapper.js +385 -1692
- package/dist/esm/{AuthorComponent-2277b67c.js → AuthorComponent-e6f95c2f.js} +1 -1
- package/dist/esm/Beam.js +5 -5
- package/dist/esm/{BlockContent-ea93e8f7.js → BlockContent-e9b4ddcf.js} +1 -1
- package/dist/esm/Breadcrumbs.js +3 -3
- package/dist/esm/CMEDeck.js +12 -12
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +11 -11
- package/dist/esm/Column3.js +20 -20
- package/dist/esm/ConferenceArticleCard.js +20 -20
- package/dist/esm/DeckContent.js +45 -45
- package/dist/esm/DeckQueue.js +37 -37
- package/dist/esm/DeckQueuePaginated.js +333 -0
- package/dist/esm/{Dfp-d6a5629f.js → Dfp-f867d061.js} +5 -5
- package/dist/esm/EventsDeck.js +57 -57
- package/dist/esm/ExternalResources.js +27 -27
- package/dist/esm/Feature.js +6 -6
- package/dist/esm/ForbesHero.js +6 -6
- package/dist/esm/GridContent.js +71 -71
- package/dist/esm/GridHero.js +7 -7
- package/dist/esm/GroupDeck.js +6 -6
- package/dist/esm/HamMagazine.js +26 -26
- package/dist/esm/Hero.js +5 -5
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +24 -24
- package/dist/esm/HorizontalHero.js +6 -6
- package/dist/esm/IssueContentDeck.js +20 -20
- package/dist/esm/IssueDeck.js +30 -30
- package/dist/esm/IssueLanding.js +58 -58
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +10 -10
- package/dist/esm/MasterDeck.js +33 -33
- package/dist/esm/MasterDeckPaginated.js +437 -0
- package/dist/esm/MediaSeriesCard-1dd7eae8.js +9403 -0
- package/dist/esm/MediaSeriesLanding.js +53 -9533
- package/dist/esm/MediaSeriesLandingPaginated.js +516 -0
- package/dist/esm/NavDvm.js +8 -8
- package/dist/esm/NavMagazine.js +25 -25
- package/dist/esm/NavNative.js +24 -24
- package/dist/esm/OncliveHero.js +6 -5
- package/dist/esm/OncliveLargeHero.js +7 -7
- package/dist/esm/PageFilter.js +3 -3
- package/dist/esm/Pagination-a24855d4.js +54 -0
- package/dist/esm/PartnerDetailListing.js +1234 -161
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +3 -3
- package/dist/esm/PubSection.js +19 -19
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +23 -23
- package/dist/esm/PublicationLanding.js +56 -56
- package/dist/esm/QueueDeckExpanded.js +21 -21
- package/dist/esm/QueueDeckExpandedPaginated.js +1371 -0
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +33 -33
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +10 -10
- package/dist/esm/{SeriesSlider-88c4133d.js → SeriesSlider-ce19fa25.js} +11 -11
- package/dist/esm/SideFooter.js +8 -8
- package/dist/esm/{SocialSearchComponent-7f3d6531.js → SocialSearchComponent-dca69151.js} +10 -10
- package/dist/esm/TaxonomyCard.js +22 -22
- package/dist/esm/TaxonomyDescription.js +24 -24
- package/dist/esm/TemplateNormal.js +19 -19
- package/dist/esm/ThumbnailCard.js +5 -5
- package/dist/esm/Ustream.js +10 -10
- package/dist/esm/VerticalHero.js +5 -5
- package/dist/esm/VideoProgramLandingPage.js +30 -30
- package/dist/esm/VideoSeriesCard.js +8 -8
- package/dist/esm/VideoSeriesFilter.js +5 -5
- package/dist/esm/VideoSeriesLandingPage.js +22 -22
- package/dist/esm/VideoSeriesListing.js +19 -19
- package/dist/esm/View.js +38 -38
- package/dist/esm/YahooHero.js +7 -7
- package/dist/esm/YoutubeGroup.js +14 -14
- package/dist/esm/{_is-array-8914b83f.js → _is-array-4df618a6.js} +1 -1
- package/dist/esm/{_iter-detect-13e31915.js → _iter-detect-130ee549.js} +1 -1
- package/dist/esm/{_object-sap-fc9da7e8.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-ee8f6d98.js → _object-to-array-c54dd835.js} +1 -1
- package/dist/esm/{asyncToGenerator-40371743.js → asyncToGenerator-7bf8bc4d.js} +3 -3
- package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -4
- package/dist/esm/{core.get-iterator-method-0fb60d94.js → core.get-iterator-method-86d4db69.js} +2 -2
- package/dist/esm/{debounce-89969f66.js → debounce-9207d8ee.js} +1 -1
- package/dist/esm/{define-property-73034847.js → define-property-6d26cb48.js} +1 -1
- package/dist/esm/{defineProperty-e66a2c7c.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/{entities-731f3fdb.js → entities-7cc3bf45.js} +0 -4
- package/dist/esm/{extends-9a61581c.js → extends-5b1796d4.js} +1 -1
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/getRelatedArticle.js +4 -4
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +24 -24
- package/dist/esm/{getTargeting-e6820763.js → getTargeting-277c801e.js} +11 -11
- package/dist/esm/getTargeting.js +5 -5
- package/dist/esm/{index-f7fdcc91.js → index-73819142.js} +22 -28
- package/dist/esm/{index-637e8f49.js → index-aaa2dae0.js} +10 -25
- package/dist/esm/{index-cf149780.js → index-d1476645.js} +529 -533
- package/dist/esm/{index-511bdaa5.js → index-ef6d5dcf.js} +40 -39
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-ed50151c.js → index.esm-fd746768.js} +3 -2
- package/dist/esm/index.js +46 -48
- package/dist/esm/{inherits-eeaf6740.js → inherits-2409637d.js} +4 -4
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{keys-a5ffafe7.js → keys-69989821.js} +2 -2
- package/dist/esm/{lodash-a818d390.js → lodash-17fdfebb.js} +30 -127
- package/dist/esm/main-c0612122.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{slicedToArray-9c3bb613.js → slicedToArray-67a08c9c.js} +2 -2
- package/dist/esm/{stringify-ebc16384.js → stringify-70b72959.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-e333293f.js → toConsumableArray-32282905.js} +2 -2
- package/dist/esm/{toNumber-e3dcad26.js → toNumber-2f7a84cd.js} +4 -39
- package/dist/esm/{typeof-938ae770.js → typeof-c05a82ba.js} +3 -3
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-d325d196.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{web.dom.iterable-6b037ff9.js → web.dom.iterable-f8f967cd.js} +1 -1
- package/package.json +112 -112
- package/dist/cjs/main-bc7d4bf8.js +0 -972
- package/dist/esm/main-ede573ee.js +0 -961
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './core.get-iterator-method-
|
|
2
|
+
import './core.get-iterator-method-86d4db69.js';
|
|
3
3
|
import './_library-528f1934.js';
|
|
4
|
-
import './_iter-detect-
|
|
5
|
-
import './toConsumableArray-
|
|
4
|
+
import './_iter-detect-130ee549.js';
|
|
5
|
+
import './toConsumableArray-32282905.js';
|
|
6
6
|
import './_object-pie-33c40e79.js';
|
|
7
|
-
import { _ as _extends
|
|
8
|
-
import './_object-sap-
|
|
9
|
-
import './inherits-
|
|
10
|
-
import './define-property-
|
|
11
|
-
import './web.dom.iterable-
|
|
12
|
-
import './typeof-
|
|
13
|
-
import './_is-array-
|
|
14
|
-
import React__default, {
|
|
7
|
+
import { _ as _extends } from './extends-5b1796d4.js';
|
|
8
|
+
import './_object-sap-8b8ea5a9.js';
|
|
9
|
+
import './inherits-2409637d.js';
|
|
10
|
+
import './define-property-6d26cb48.js';
|
|
11
|
+
import './web.dom.iterable-f8f967cd.js';
|
|
12
|
+
import './typeof-c05a82ba.js';
|
|
13
|
+
import './_is-array-4df618a6.js';
|
|
14
|
+
import React__default, { Component, createContext, forwardRef, PureComponent, useRef, useState, useEffect } from 'react';
|
|
15
15
|
import './events-6c3a7a63.js';
|
|
16
16
|
import './index-41a678ea.js';
|
|
17
17
|
import PropTypes from 'prop-types';
|
|
18
18
|
import 'react-bootstrap/Row';
|
|
19
19
|
import 'react-bootstrap/Col';
|
|
20
20
|
import 'react-bootstrap/Card';
|
|
21
|
-
import { m as moment } from './moment-
|
|
21
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
22
22
|
import 'next/router';
|
|
23
23
|
import './isSymbol-1981418f.js';
|
|
24
|
-
import './debounce-
|
|
25
|
-
import './toNumber-
|
|
26
|
-
import './index.es-
|
|
24
|
+
import './debounce-9207d8ee.js';
|
|
25
|
+
import './toNumber-2f7a84cd.js';
|
|
26
|
+
import './index.es-29c1cef5.js';
|
|
27
27
|
import 'react-dom';
|
|
28
28
|
import './visibility-sensor-72fd8f8b.js';
|
|
29
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
30
|
-
import './index-
|
|
29
|
+
import { _ as _slicedToArray } from './slicedToArray-67a08c9c.js';
|
|
30
|
+
import './index-73819142.js';
|
|
31
31
|
import urlFor from './urlFor.js';
|
|
32
32
|
import './index-5f7e79e7.js';
|
|
33
|
-
import './main-
|
|
34
|
-
import './entities-
|
|
35
|
-
import './stringify-
|
|
36
|
-
import { a as _asyncToGenerator$1, r as regenerator, _ as _Promise } from './asyncToGenerator-
|
|
33
|
+
import './main-c0612122.js';
|
|
34
|
+
import './entities-7cc3bf45.js';
|
|
35
|
+
import './stringify-70b72959.js';
|
|
36
|
+
import { a as _asyncToGenerator$1, r as regenerator, _ as _Promise } from './asyncToGenerator-7bf8bc4d.js';
|
|
37
37
|
import './Segment.js';
|
|
38
38
|
import './Beam.js';
|
|
39
39
|
import './AdSlot.js';
|
|
40
|
-
import './ADInfeed-
|
|
41
|
-
import './lodash-
|
|
42
|
-
import './ADlgInfeed-
|
|
40
|
+
import './ADInfeed-d767ebe2.js';
|
|
41
|
+
import './lodash-17fdfebb.js';
|
|
42
|
+
import './ADlgInfeed-cee95aa2.js';
|
|
43
43
|
import './getContentCategory-15dcc413.js';
|
|
44
|
-
import './AuthorComponent-
|
|
44
|
+
import './AuthorComponent-e6f95c2f.js';
|
|
45
45
|
import 'react-bootstrap/Button';
|
|
46
|
-
import { B as BlockContent } from './BlockContent-
|
|
46
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
47
47
|
import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
|
|
48
48
|
import './index-c7e2ac95.js';
|
|
49
49
|
import { s as smoothscroll } from './smoothscroll-0cd4c7a6.js';
|
|
@@ -52,26 +52,1122 @@ import 'react-bootstrap';
|
|
|
52
52
|
import './timeDifferenceCalc.js';
|
|
53
53
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
54
54
|
import './iconBase-602d52fe.js';
|
|
55
|
-
import './index.esm-
|
|
56
|
-
import { g as getSerializers } from './index-
|
|
55
|
+
import './index.esm-29e48d38.js';
|
|
56
|
+
import { g as getSerializers } from './index-d1476645.js';
|
|
57
57
|
import './util-7700fc59.js';
|
|
58
|
-
import './brightcove-react-player-loader.es-
|
|
58
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
59
59
|
import 'next/head';
|
|
60
60
|
import 'react-share';
|
|
61
61
|
import './SocialShare.js';
|
|
62
|
-
import './_object-to-array-
|
|
62
|
+
import './_object-to-array-c54dd835.js';
|
|
63
63
|
import 'react-bootstrap/Pagination';
|
|
64
64
|
import 'react-bootstrap/Figure';
|
|
65
65
|
import 'react-bootstrap/OverlayTrigger';
|
|
66
66
|
import 'react-bootstrap/Tooltip';
|
|
67
67
|
import 'react-bootstrap/Popover';
|
|
68
|
+
import { _ as _defineProperty$1, b as _inherits, c as _classCallCheck, d as _possibleConstructorReturn, e as _getPrototypeOf, g as _createClass } from './inherits-77d5e4fc.js';
|
|
68
69
|
import 'react-bootstrap/Carousel';
|
|
69
70
|
import Feature from './Feature.js';
|
|
70
71
|
import 'react-bootstrap/Breadcrumb';
|
|
71
72
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
72
|
-
import { TwitterTimelineEmbed } from 'react-twitter-embed';
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var isRequiredIf_1 = createCommonjsModule(function (module, exports) {
|
|
75
|
+
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.
|
|
76
|
+
}};exports.default=isRequiredIf;
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
var isRequiredIf = unwrapExports(isRequiredIf_1);
|
|
82
|
+
|
|
83
|
+
var exenv = createCommonjsModule(function (module) {
|
|
84
|
+
/*!
|
|
85
|
+
Copyright (c) 2015 Jed Watson.
|
|
86
|
+
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
87
|
+
All rights reserved.
|
|
88
|
+
*/
|
|
89
|
+
/* global define */
|
|
90
|
+
|
|
91
|
+
(function () {
|
|
92
|
+
|
|
93
|
+
var canUseDOM = !!(
|
|
94
|
+
typeof window !== 'undefined' &&
|
|
95
|
+
window.document &&
|
|
96
|
+
window.document.createElement
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
var ExecutionEnvironment = {
|
|
100
|
+
|
|
101
|
+
canUseDOM: canUseDOM,
|
|
102
|
+
|
|
103
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
|
104
|
+
|
|
105
|
+
canUseEventListeners:
|
|
106
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
107
|
+
|
|
108
|
+
canUseViewport: canUseDOM && !!window.screen
|
|
109
|
+
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
if ( module.exports) {
|
|
113
|
+
module.exports = ExecutionEnvironment;
|
|
114
|
+
} else {
|
|
115
|
+
window.ExecutionEnvironment = ExecutionEnvironment;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
}());
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
var twitterWidgetJs = 'https://platform.twitter.com/widgets.js';
|
|
122
|
+
|
|
123
|
+
var TwitterTimelineEmbed =
|
|
124
|
+
/*#__PURE__*/
|
|
125
|
+
function (_Component) {
|
|
126
|
+
_inherits(TwitterTimelineEmbed, _Component);
|
|
127
|
+
|
|
128
|
+
function TwitterTimelineEmbed(props) {
|
|
129
|
+
var _this;
|
|
130
|
+
|
|
131
|
+
_classCallCheck(this, TwitterTimelineEmbed);
|
|
132
|
+
|
|
133
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTimelineEmbed).call(this, props));
|
|
134
|
+
_this.state = {
|
|
135
|
+
isLoading: true
|
|
136
|
+
};
|
|
137
|
+
return _this;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
_createClass(TwitterTimelineEmbed, [{
|
|
141
|
+
key: "buildChromeOptions",
|
|
142
|
+
value: function buildChromeOptions(options) {
|
|
143
|
+
options.chrome = '';
|
|
144
|
+
|
|
145
|
+
if (this.props.noHeader) {
|
|
146
|
+
options.chrome = options.chrome + ' noheader';
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (this.props.noFooter) {
|
|
150
|
+
options.chrome = options.chrome + ' nofooter';
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (this.props.noBorders) {
|
|
154
|
+
options.chrome = options.chrome + ' noborders';
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (this.props.noScrollbar) {
|
|
158
|
+
options.chrome = options.chrome + ' noscrollbar';
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (this.props.transparent) {
|
|
162
|
+
options.chrome = options.chrome + ' transparent';
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return options;
|
|
166
|
+
}
|
|
167
|
+
}, {
|
|
168
|
+
key: "buildOptions",
|
|
169
|
+
value: function buildOptions() {
|
|
170
|
+
var options = Object.assign({}, this.props.options);
|
|
171
|
+
|
|
172
|
+
if (this.props.autoHeight) {
|
|
173
|
+
options.height = this.refs.embedContainer.parentNode.offsetHeight;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
options = Object.assign({}, options, {
|
|
177
|
+
theme: this.props.theme,
|
|
178
|
+
linkColor: this.props.linkColor,
|
|
179
|
+
borderColor: this.props.borderColor,
|
|
180
|
+
lang: this.props.lang
|
|
181
|
+
});
|
|
182
|
+
return options;
|
|
183
|
+
}
|
|
184
|
+
}, {
|
|
185
|
+
key: "renderWidget",
|
|
186
|
+
value: function renderWidget(options) {
|
|
187
|
+
var _this2 = this;
|
|
188
|
+
|
|
189
|
+
var onLoad = this.props.onLoad;
|
|
190
|
+
|
|
191
|
+
if (!this.isMountCanceled) {
|
|
192
|
+
window.twttr.widgets.createTimeline({
|
|
193
|
+
sourceType: this.props.sourceType,
|
|
194
|
+
screenName: this.props.screenName,
|
|
195
|
+
userId: this.props.userId,
|
|
196
|
+
ownerScreenName: this.props.ownerScreenName,
|
|
197
|
+
slug: this.props.slug,
|
|
198
|
+
id: this.props.id || this.props.widgetId,
|
|
199
|
+
url: this.props.url
|
|
200
|
+
}, this.refs.embedContainer, options).then(function (element) {
|
|
201
|
+
_this2.setState({
|
|
202
|
+
isLoading: false
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
if (onLoad) {
|
|
206
|
+
onLoad(element);
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}, {
|
|
212
|
+
key: "componentDidMount",
|
|
213
|
+
value: function componentDidMount() {
|
|
214
|
+
var _this3 = this;
|
|
215
|
+
|
|
216
|
+
if (exenv.canUseDOM) {
|
|
217
|
+
var script = require('scriptjs');
|
|
218
|
+
|
|
219
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
220
|
+
if (!window.twttr) {
|
|
221
|
+
console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.');
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
var options = _this3.buildOptions();
|
|
226
|
+
/** Append chrome options */
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
options = _this3.buildChromeOptions(options);
|
|
230
|
+
|
|
231
|
+
_this3.renderWidget(options);
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}, {
|
|
236
|
+
key: "componentWillUnmount",
|
|
237
|
+
value: function componentWillUnmount() {
|
|
238
|
+
this.isMountCanceled = true;
|
|
239
|
+
}
|
|
240
|
+
}, {
|
|
241
|
+
key: "render",
|
|
242
|
+
value: function render() {
|
|
243
|
+
var isLoading = this.state.isLoading;
|
|
244
|
+
var placeholder = this.props.placeholder;
|
|
245
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
246
|
+
ref: "embedContainer"
|
|
247
|
+
}));
|
|
248
|
+
}
|
|
249
|
+
}]);
|
|
250
|
+
|
|
251
|
+
return TwitterTimelineEmbed;
|
|
252
|
+
}(Component);
|
|
253
|
+
|
|
254
|
+
_defineProperty$1(TwitterTimelineEmbed, "propTypes", {
|
|
255
|
+
/**
|
|
256
|
+
* This can be either of profile, likes, list, collection, URL, widget
|
|
257
|
+
*/
|
|
258
|
+
sourceType: PropTypes.oneOf(['profile', 'likes', 'list', 'collection', 'url', 'widget']).isRequired,
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* username of twitter handle as String
|
|
262
|
+
*/
|
|
263
|
+
screenName: isRequiredIf(PropTypes.string, function (props) {
|
|
264
|
+
return !props.hasOwnProperty('userId') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
265
|
+
}),
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* UserId of twitter handle as number
|
|
269
|
+
*/
|
|
270
|
+
userId: isRequiredIf(PropTypes.number, function (props) {
|
|
271
|
+
return !props.hasOwnProperty('screenName') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
272
|
+
}),
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* To show list, used along with slug
|
|
276
|
+
*/
|
|
277
|
+
ownerScreenName: isRequiredIf(PropTypes.string, function (props) {
|
|
278
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
279
|
+
}),
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* To show list, used along with ownerScreenName
|
|
283
|
+
*/
|
|
284
|
+
slug: isRequiredIf(PropTypes.string, function (props) {
|
|
285
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
286
|
+
}),
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* To show list, unique list id
|
|
290
|
+
* Also used with collections, in that case its valid collection id
|
|
291
|
+
*/
|
|
292
|
+
id: isRequiredIf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]), function (props) {
|
|
293
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('ownerScreenName') && !props.hasOwnProperty('slug') || props.sourceType === 'collection';
|
|
294
|
+
}),
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* To show twitter content with url.
|
|
298
|
+
* Supported content includes profiles, likes, lists, and collections.
|
|
299
|
+
*/
|
|
300
|
+
url: isRequiredIf(PropTypes.string, function (props) {
|
|
301
|
+
return props.sourceType === 'url';
|
|
302
|
+
}),
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* To show custom widget
|
|
306
|
+
*/
|
|
307
|
+
widgetId: isRequiredIf(PropTypes.string, function (props) {
|
|
308
|
+
return props.sourceType === 'widget';
|
|
309
|
+
}),
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Additional options to pass to twitter widget plugin
|
|
313
|
+
*/
|
|
314
|
+
options: PropTypes.object,
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Automatically fit into parent container height
|
|
318
|
+
*/
|
|
319
|
+
autoHeight: PropTypes.bool,
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* With dark or light theme
|
|
323
|
+
*/
|
|
324
|
+
theme: PropTypes.oneOf(['dark', 'light']),
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* With custom link colors. Note: Only Hex colors are supported.
|
|
328
|
+
*/
|
|
329
|
+
linkColor: PropTypes.string,
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* With custom border colors. Note: Only Hex colors are supported.
|
|
333
|
+
*/
|
|
334
|
+
borderColor: PropTypes.string,
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Hide the header from timeline
|
|
338
|
+
*/
|
|
339
|
+
noHeader: PropTypes.bool,
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Hide the footer from timeline
|
|
343
|
+
*/
|
|
344
|
+
noFooter: PropTypes.bool,
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Hide the border from timeline
|
|
348
|
+
*/
|
|
349
|
+
noBorders: PropTypes.bool,
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Hide the scrollbars
|
|
353
|
+
*/
|
|
354
|
+
noScrollbar: PropTypes.bool,
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Enable Transparancy
|
|
358
|
+
*/
|
|
359
|
+
transparent: PropTypes.bool,
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Custom language code. Supported codes here: https://developer.twitter.com/en/docs/twitter-for-websites/twitter-for-websites-supported-languages/overview.html
|
|
363
|
+
*/
|
|
364
|
+
lang: PropTypes.string,
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Placeholder while tweet is loading
|
|
368
|
+
*/
|
|
369
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Function to execute after load, return html element
|
|
373
|
+
*/
|
|
374
|
+
onLoad: PropTypes.func
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
var TwitterShareButton =
|
|
378
|
+
/*#__PURE__*/
|
|
379
|
+
function (_Component) {
|
|
380
|
+
_inherits(TwitterShareButton, _Component);
|
|
381
|
+
|
|
382
|
+
function TwitterShareButton(props) {
|
|
383
|
+
var _this;
|
|
384
|
+
|
|
385
|
+
_classCallCheck(this, TwitterShareButton);
|
|
386
|
+
|
|
387
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterShareButton).call(this, props));
|
|
388
|
+
_this.state = {
|
|
389
|
+
isLoading: true
|
|
390
|
+
};
|
|
391
|
+
return _this;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
_createClass(TwitterShareButton, [{
|
|
395
|
+
key: "componentDidMount",
|
|
396
|
+
value: function componentDidMount() {
|
|
397
|
+
var _this2 = this;
|
|
398
|
+
|
|
399
|
+
var onLoad = this.props.onLoad;
|
|
400
|
+
|
|
401
|
+
if (exenv.canUseDOM) {
|
|
402
|
+
var script = require('scriptjs');
|
|
403
|
+
|
|
404
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
405
|
+
if (!window.twttr) {
|
|
406
|
+
console.error('Failure to load window.twttr in TwitterShareButton, aborting load.');
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
if (!_this2.isMountCanceled) {
|
|
411
|
+
window.twttr.widgets.createShareButton(_this2.props.url, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
412
|
+
_this2.setState({
|
|
413
|
+
isLoading: false
|
|
414
|
+
});
|
|
415
|
+
|
|
416
|
+
if (onLoad) {
|
|
417
|
+
onLoad(element);
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}, {
|
|
425
|
+
key: "componentWillUnmount",
|
|
426
|
+
value: function componentWillUnmount() {
|
|
427
|
+
this.isMountCanceled = true;
|
|
428
|
+
}
|
|
429
|
+
}, {
|
|
430
|
+
key: "render",
|
|
431
|
+
value: function render() {
|
|
432
|
+
var isLoading = this.state.isLoading;
|
|
433
|
+
var placeholder = this.props.placeholder;
|
|
434
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
435
|
+
ref: "embedContainer"
|
|
436
|
+
}));
|
|
437
|
+
}
|
|
438
|
+
}]);
|
|
439
|
+
|
|
440
|
+
return TwitterShareButton;
|
|
441
|
+
}(Component);
|
|
442
|
+
|
|
443
|
+
_defineProperty$1(TwitterShareButton, "propTypes", {
|
|
444
|
+
/**
|
|
445
|
+
* Url for sharing
|
|
446
|
+
*/
|
|
447
|
+
url: PropTypes.string.isRequired,
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Additional options for overriding config. Details at : https://dev.twitter.com/web/tweet-button/parameters
|
|
451
|
+
*/
|
|
452
|
+
options: PropTypes.object,
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Placeholder while tweet is loading
|
|
456
|
+
*/
|
|
457
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Function to execute after load, return html element
|
|
461
|
+
*/
|
|
462
|
+
onLoad: PropTypes.func
|
|
463
|
+
});
|
|
464
|
+
|
|
465
|
+
var TwitterFollowButton =
|
|
466
|
+
/*#__PURE__*/
|
|
467
|
+
function (_Component) {
|
|
468
|
+
_inherits(TwitterFollowButton, _Component);
|
|
469
|
+
|
|
470
|
+
function TwitterFollowButton(props) {
|
|
471
|
+
var _this;
|
|
472
|
+
|
|
473
|
+
_classCallCheck(this, TwitterFollowButton);
|
|
474
|
+
|
|
475
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterFollowButton).call(this, props));
|
|
476
|
+
_this.state = {
|
|
477
|
+
isLoading: true
|
|
478
|
+
};
|
|
479
|
+
return _this;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
_createClass(TwitterFollowButton, [{
|
|
483
|
+
key: "componentDidMount",
|
|
484
|
+
value: function componentDidMount() {
|
|
485
|
+
var _this2 = this;
|
|
486
|
+
|
|
487
|
+
var onLoad = this.props.onLoad;
|
|
488
|
+
|
|
489
|
+
if (exenv.canUseDOM) {
|
|
490
|
+
var script = require('scriptjs');
|
|
491
|
+
|
|
492
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
493
|
+
if (!window.twttr) {
|
|
494
|
+
console.error('Failure to load window.twttr in TwitterFollowButton, aborting load.');
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
if (!_this2.isMountCanceled) {
|
|
499
|
+
window.twttr.widgets.createFollowButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
500
|
+
_this2.setState({
|
|
501
|
+
isLoading: false
|
|
502
|
+
});
|
|
503
|
+
|
|
504
|
+
if (onLoad) {
|
|
505
|
+
onLoad(element);
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}, {
|
|
513
|
+
key: "componentWillUnmount",
|
|
514
|
+
value: function componentWillUnmount() {
|
|
515
|
+
this.isMountCanceled = true;
|
|
516
|
+
}
|
|
517
|
+
}, {
|
|
518
|
+
key: "render",
|
|
519
|
+
value: function render() {
|
|
520
|
+
var isLoading = this.state.isLoading;
|
|
521
|
+
var placeholder = this.props.placeholder;
|
|
522
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
523
|
+
ref: "embedContainer"
|
|
524
|
+
}));
|
|
525
|
+
}
|
|
526
|
+
}]);
|
|
527
|
+
|
|
528
|
+
return TwitterFollowButton;
|
|
529
|
+
}(Component);
|
|
530
|
+
|
|
531
|
+
_defineProperty$1(TwitterFollowButton, "propTypes", {
|
|
532
|
+
/**
|
|
533
|
+
* Username of twitter user which will be followed on click
|
|
534
|
+
*/
|
|
535
|
+
screenName: PropTypes.string.isRequired,
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Additional options to be added to the button
|
|
539
|
+
*/
|
|
540
|
+
options: PropTypes.object,
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Placeholder while tweet is loading
|
|
544
|
+
*/
|
|
545
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Function to execute after load, return html element
|
|
549
|
+
*/
|
|
550
|
+
onLoad: PropTypes.func
|
|
551
|
+
});
|
|
552
|
+
|
|
553
|
+
var TwitterHashtagButton =
|
|
554
|
+
/*#__PURE__*/
|
|
555
|
+
function (_Component) {
|
|
556
|
+
_inherits(TwitterHashtagButton, _Component);
|
|
557
|
+
|
|
558
|
+
function TwitterHashtagButton(props) {
|
|
559
|
+
var _this;
|
|
560
|
+
|
|
561
|
+
_classCallCheck(this, TwitterHashtagButton);
|
|
562
|
+
|
|
563
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterHashtagButton).call(this, props));
|
|
564
|
+
_this.state = {
|
|
565
|
+
isLoading: true
|
|
566
|
+
};
|
|
567
|
+
return _this;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
_createClass(TwitterHashtagButton, [{
|
|
571
|
+
key: "componentDidMount",
|
|
572
|
+
value: function componentDidMount() {
|
|
573
|
+
var _this2 = this;
|
|
574
|
+
|
|
575
|
+
var onLoad = this.props.onLoad;
|
|
576
|
+
|
|
577
|
+
if (exenv.canUseDOM) {
|
|
578
|
+
var script = require('scriptjs');
|
|
579
|
+
|
|
580
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
581
|
+
if (!window.twttr) {
|
|
582
|
+
console.error('Failure to load window.twttr in TwitterHashtagButton, aborting load.');
|
|
583
|
+
return;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
if (!_this2.isMountCanceled) {
|
|
587
|
+
window.twttr.widgets.createHashtagButton(_this2.props.tag, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
588
|
+
_this2.setState({
|
|
589
|
+
isLoading: false
|
|
590
|
+
});
|
|
591
|
+
|
|
592
|
+
if (onLoad) {
|
|
593
|
+
onLoad(element);
|
|
594
|
+
}
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}, {
|
|
601
|
+
key: "componentWillUnmount",
|
|
602
|
+
value: function componentWillUnmount() {
|
|
603
|
+
this.isMountCanceled = true;
|
|
604
|
+
}
|
|
605
|
+
}, {
|
|
606
|
+
key: "render",
|
|
607
|
+
value: function render() {
|
|
608
|
+
var isLoading = this.state.isLoading;
|
|
609
|
+
var placeholder = this.props.placeholder;
|
|
610
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
611
|
+
ref: "embedContainer"
|
|
612
|
+
}));
|
|
613
|
+
}
|
|
614
|
+
}]);
|
|
615
|
+
|
|
616
|
+
return TwitterHashtagButton;
|
|
617
|
+
}(Component);
|
|
618
|
+
|
|
619
|
+
_defineProperty$1(TwitterHashtagButton, "propTypes", {
|
|
620
|
+
/**
|
|
621
|
+
* Tag name for hashtag button
|
|
622
|
+
*/
|
|
623
|
+
tag: PropTypes.string.isRequired,
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Additional options to be added to the button
|
|
627
|
+
*/
|
|
628
|
+
options: PropTypes.object,
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Placeholder while tweet is loading
|
|
632
|
+
*/
|
|
633
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Function to execute after load, return html element
|
|
637
|
+
*/
|
|
638
|
+
onLoad: PropTypes.func
|
|
639
|
+
});
|
|
640
|
+
|
|
641
|
+
var TwitterMentionButton =
|
|
642
|
+
/*#__PURE__*/
|
|
643
|
+
function (_Component) {
|
|
644
|
+
_inherits(TwitterMentionButton, _Component);
|
|
645
|
+
|
|
646
|
+
function TwitterMentionButton(props) {
|
|
647
|
+
var _this;
|
|
648
|
+
|
|
649
|
+
_classCallCheck(this, TwitterMentionButton);
|
|
650
|
+
|
|
651
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMentionButton).call(this, props));
|
|
652
|
+
_this.state = {
|
|
653
|
+
isLoading: true
|
|
654
|
+
};
|
|
655
|
+
return _this;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
_createClass(TwitterMentionButton, [{
|
|
659
|
+
key: "componentDidMount",
|
|
660
|
+
value: function componentDidMount() {
|
|
661
|
+
var _this2 = this;
|
|
662
|
+
|
|
663
|
+
var onLoad = this.props.onLoad;
|
|
664
|
+
|
|
665
|
+
if (exenv.canUseDOM) {
|
|
666
|
+
var script = require('scriptjs');
|
|
667
|
+
|
|
668
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
669
|
+
if (!window.twttr) {
|
|
670
|
+
console.error('Failure to load window.twttr in TwitterMentionButton, aborting load.');
|
|
671
|
+
return;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
if (!_this2.isMountCanceled) {
|
|
675
|
+
window.twttr.widgets.createMentionButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
676
|
+
_this2.setState({
|
|
677
|
+
isLoading: false
|
|
678
|
+
});
|
|
679
|
+
|
|
680
|
+
if (onLoad) {
|
|
681
|
+
onLoad(element);
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
}, {
|
|
689
|
+
key: "componentWillUnmount",
|
|
690
|
+
value: function componentWillUnmount() {
|
|
691
|
+
this.isMountCanceled = true;
|
|
692
|
+
}
|
|
693
|
+
}, {
|
|
694
|
+
key: "render",
|
|
695
|
+
value: function render() {
|
|
696
|
+
var isLoading = this.state.isLoading;
|
|
697
|
+
var placeholder = this.props.placeholder;
|
|
698
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
699
|
+
ref: "embedContainer"
|
|
700
|
+
}));
|
|
701
|
+
}
|
|
702
|
+
}]);
|
|
703
|
+
|
|
704
|
+
return TwitterMentionButton;
|
|
705
|
+
}(Component);
|
|
706
|
+
|
|
707
|
+
_defineProperty$1(TwitterMentionButton, "propTypes", {
|
|
708
|
+
/**
|
|
709
|
+
* Username to which you will need to tweet
|
|
710
|
+
*/
|
|
711
|
+
screenName: PropTypes.string.isRequired,
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Additional options for overriding config.
|
|
715
|
+
*/
|
|
716
|
+
options: PropTypes.object,
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Placeholder while tweet is loading
|
|
720
|
+
*/
|
|
721
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Function to execute after load, return html element
|
|
725
|
+
*/
|
|
726
|
+
onLoad: PropTypes.func
|
|
727
|
+
});
|
|
728
|
+
|
|
729
|
+
var TwitterTweetEmbed =
|
|
730
|
+
/*#__PURE__*/
|
|
731
|
+
function (_Component) {
|
|
732
|
+
_inherits(TwitterTweetEmbed, _Component);
|
|
733
|
+
|
|
734
|
+
function TwitterTweetEmbed(props) {
|
|
735
|
+
var _this;
|
|
736
|
+
|
|
737
|
+
_classCallCheck(this, TwitterTweetEmbed);
|
|
738
|
+
|
|
739
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTweetEmbed).call(this, props));
|
|
740
|
+
_this.state = {
|
|
741
|
+
isLoading: true
|
|
742
|
+
};
|
|
743
|
+
return _this;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
_createClass(TwitterTweetEmbed, [{
|
|
747
|
+
key: "renderWidget",
|
|
748
|
+
value: function renderWidget() {
|
|
749
|
+
var _this2 = this;
|
|
750
|
+
|
|
751
|
+
var onLoad = this.props.onLoad;
|
|
752
|
+
|
|
753
|
+
if (!window.twttr) {
|
|
754
|
+
console.error('Failure to load window.twttr in TwitterTweetEmbed, aborting load.');
|
|
755
|
+
return;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
if (!this.isMountCanceled) {
|
|
759
|
+
window.twttr.widgets.createTweet(this.props.tweetId, this.refs.embedContainer, this.props.options).then(function (element) {
|
|
760
|
+
_this2.setState({
|
|
761
|
+
isLoading: false
|
|
762
|
+
});
|
|
763
|
+
|
|
764
|
+
if (onLoad) {
|
|
765
|
+
onLoad(element);
|
|
766
|
+
}
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
}, {
|
|
771
|
+
key: "componentDidMount",
|
|
772
|
+
value: function componentDidMount() {
|
|
773
|
+
var _this3 = this;
|
|
774
|
+
|
|
775
|
+
if (exenv.canUseDOM) {
|
|
776
|
+
var script = require('scriptjs');
|
|
777
|
+
|
|
778
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
779
|
+
_this3.renderWidget();
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
}, {
|
|
784
|
+
key: "componentWillUnmount",
|
|
785
|
+
value: function componentWillUnmount() {
|
|
786
|
+
this.isMountCanceled = true;
|
|
787
|
+
}
|
|
788
|
+
}, {
|
|
789
|
+
key: "render",
|
|
790
|
+
value: function render() {
|
|
791
|
+
var isLoading = this.state.isLoading;
|
|
792
|
+
var placeholder = this.props.placeholder;
|
|
793
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
794
|
+
ref: "embedContainer"
|
|
795
|
+
}));
|
|
796
|
+
}
|
|
797
|
+
}]);
|
|
798
|
+
|
|
799
|
+
return TwitterTweetEmbed;
|
|
800
|
+
}(Component);
|
|
801
|
+
|
|
802
|
+
_defineProperty$1(TwitterTweetEmbed, "propTypes", {
|
|
803
|
+
/**
|
|
804
|
+
* Tweet id that needs to be shown
|
|
805
|
+
*/
|
|
806
|
+
tweetId: PropTypes.string.isRequired,
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Additional options to pass to twitter widget plugin
|
|
810
|
+
*/
|
|
811
|
+
options: PropTypes.object,
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Placeholder while tweet is loading
|
|
815
|
+
*/
|
|
816
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* Function to execute after load, return html element
|
|
820
|
+
*/
|
|
821
|
+
onLoad: PropTypes.func
|
|
822
|
+
});
|
|
823
|
+
|
|
824
|
+
var TwitterMomentShare =
|
|
825
|
+
/*#__PURE__*/
|
|
826
|
+
function (_Component) {
|
|
827
|
+
_inherits(TwitterMomentShare, _Component);
|
|
828
|
+
|
|
829
|
+
function TwitterMomentShare(props) {
|
|
830
|
+
var _this;
|
|
831
|
+
|
|
832
|
+
_classCallCheck(this, TwitterMomentShare);
|
|
833
|
+
|
|
834
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMomentShare).call(this, props));
|
|
835
|
+
_this.state = {
|
|
836
|
+
isLoading: true
|
|
837
|
+
};
|
|
838
|
+
return _this;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
_createClass(TwitterMomentShare, [{
|
|
842
|
+
key: "componentDidMount",
|
|
843
|
+
value: function componentDidMount() {
|
|
844
|
+
var _this2 = this;
|
|
845
|
+
|
|
846
|
+
var onLoad = this.props.onLoad;
|
|
847
|
+
|
|
848
|
+
if (exenv.canUseDOM) {
|
|
849
|
+
var script = require('scriptjs');
|
|
850
|
+
|
|
851
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
852
|
+
if (!window.twttr) {
|
|
853
|
+
console.error('Failure to load window.twttr in TwitterMomentShare, aborting load.');
|
|
854
|
+
return;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
if (!_this2.isMountCanceled) {
|
|
858
|
+
window.twttr.widgets.createMoment(_this2.props.momentId, _this2.refs.shareMoment, _this2.props.options).then(function (element) {
|
|
859
|
+
_this2.setState({
|
|
860
|
+
isLoading: false
|
|
861
|
+
});
|
|
862
|
+
|
|
863
|
+
if (onLoad) {
|
|
864
|
+
onLoad(element);
|
|
865
|
+
}
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}, {
|
|
872
|
+
key: "componentWillUnmount",
|
|
873
|
+
value: function componentWillUnmount() {
|
|
874
|
+
this.isMountCanceled = true;
|
|
875
|
+
}
|
|
876
|
+
}, {
|
|
877
|
+
key: "render",
|
|
878
|
+
value: function render() {
|
|
879
|
+
var isLoading = this.state.isLoading;
|
|
880
|
+
var placeholder = this.props.placeholder;
|
|
881
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
882
|
+
ref: "shareMoment"
|
|
883
|
+
}));
|
|
884
|
+
}
|
|
885
|
+
}]);
|
|
886
|
+
|
|
887
|
+
return TwitterMomentShare;
|
|
888
|
+
}(Component);
|
|
889
|
+
|
|
890
|
+
_defineProperty$1(TwitterMomentShare, "propTypes", {
|
|
891
|
+
/**
|
|
892
|
+
* id of Twitter moment to show
|
|
893
|
+
*/
|
|
894
|
+
momentId: PropTypes.string.isRequired,
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Additional options for overriding config.
|
|
898
|
+
*/
|
|
899
|
+
options: PropTypes.object,
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Placeholder while tweet is loading
|
|
903
|
+
*/
|
|
904
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Function to execute after load, return html element
|
|
908
|
+
*/
|
|
909
|
+
onLoad: PropTypes.func
|
|
910
|
+
});
|
|
911
|
+
|
|
912
|
+
var TwitterDMButton =
|
|
913
|
+
/*#__PURE__*/
|
|
914
|
+
function (_Component) {
|
|
915
|
+
_inherits(TwitterDMButton, _Component);
|
|
916
|
+
|
|
917
|
+
function TwitterDMButton(props) {
|
|
918
|
+
var _this;
|
|
919
|
+
|
|
920
|
+
_classCallCheck(this, TwitterDMButton);
|
|
921
|
+
|
|
922
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterDMButton).call(this, props));
|
|
923
|
+
_this.state = {
|
|
924
|
+
isLoading: true
|
|
925
|
+
};
|
|
926
|
+
return _this;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
_createClass(TwitterDMButton, [{
|
|
930
|
+
key: "componentDidMount",
|
|
931
|
+
value: function componentDidMount() {
|
|
932
|
+
var _this2 = this;
|
|
933
|
+
|
|
934
|
+
var onLoad = this.props.onLoad;
|
|
935
|
+
|
|
936
|
+
if (exenv.canUseDOM) {
|
|
937
|
+
var script = require('scriptjs');
|
|
938
|
+
|
|
939
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
940
|
+
if (!window.twttr) {
|
|
941
|
+
console.error('Failure to load window.twttr in TwitterDMButton, aborting load.');
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
if (!_this2.isMountCanceled) {
|
|
946
|
+
window.twttr.widgets.createDMButton(_this2.props.id, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
947
|
+
_this2.setState({
|
|
948
|
+
isLoading: false
|
|
949
|
+
});
|
|
950
|
+
|
|
951
|
+
if (onLoad) {
|
|
952
|
+
onLoad(element);
|
|
953
|
+
}
|
|
954
|
+
});
|
|
955
|
+
}
|
|
956
|
+
});
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
}, {
|
|
960
|
+
key: "componentWillUnmount",
|
|
961
|
+
value: function componentWillUnmount() {
|
|
962
|
+
this.isMountCanceled = true;
|
|
963
|
+
}
|
|
964
|
+
}, {
|
|
965
|
+
key: "render",
|
|
966
|
+
value: function render() {
|
|
967
|
+
var isLoading = this.state.isLoading;
|
|
968
|
+
var placeholder = this.props.placeholder;
|
|
969
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
970
|
+
ref: "embedContainer"
|
|
971
|
+
}));
|
|
972
|
+
}
|
|
973
|
+
}]);
|
|
974
|
+
|
|
975
|
+
return TwitterDMButton;
|
|
976
|
+
}(Component);
|
|
977
|
+
|
|
978
|
+
_defineProperty$1(TwitterDMButton, "propTypes", {
|
|
979
|
+
/**
|
|
980
|
+
* Twitter user id for DM button
|
|
981
|
+
*/
|
|
982
|
+
id: PropTypes.number.isRequired,
|
|
983
|
+
|
|
984
|
+
/**
|
|
985
|
+
* Additional options to be added to the button
|
|
986
|
+
*/
|
|
987
|
+
options: PropTypes.object,
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* Placeholder while tweet is loading
|
|
991
|
+
*/
|
|
992
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* Function to execute after load, return html element
|
|
996
|
+
*/
|
|
997
|
+
onLoad: PropTypes.func
|
|
998
|
+
});
|
|
999
|
+
|
|
1000
|
+
var TwitterVideoEmbed =
|
|
1001
|
+
/*#__PURE__*/
|
|
1002
|
+
function (_Component) {
|
|
1003
|
+
_inherits(TwitterVideoEmbed, _Component);
|
|
1004
|
+
|
|
1005
|
+
function TwitterVideoEmbed(props) {
|
|
1006
|
+
var _this;
|
|
1007
|
+
|
|
1008
|
+
_classCallCheck(this, TwitterVideoEmbed);
|
|
1009
|
+
|
|
1010
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterVideoEmbed).call(this, props));
|
|
1011
|
+
_this.state = {
|
|
1012
|
+
isLoading: true
|
|
1013
|
+
};
|
|
1014
|
+
return _this;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
_createClass(TwitterVideoEmbed, [{
|
|
1018
|
+
key: "componentDidMount",
|
|
1019
|
+
value: function componentDidMount() {
|
|
1020
|
+
var _this2 = this;
|
|
1021
|
+
|
|
1022
|
+
var onLoad = this.props.onLoad;
|
|
1023
|
+
|
|
1024
|
+
if (exenv.canUseDOM) {
|
|
1025
|
+
var script = require('scriptjs');
|
|
1026
|
+
|
|
1027
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1028
|
+
if (!window.twttr) {
|
|
1029
|
+
console.error('Failure to load window.twttr in TwitterVideoEmbed, aborting load.');
|
|
1030
|
+
return;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
if (!_this2.isMountCanceled) {
|
|
1034
|
+
window.twttr.widgets.createVideo(_this2.props.id, _this2.refs.embedContainer).then(function (element) {
|
|
1035
|
+
_this2.setState({
|
|
1036
|
+
isLoading: false
|
|
1037
|
+
});
|
|
1038
|
+
|
|
1039
|
+
if (onLoad) {
|
|
1040
|
+
onLoad(element);
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
});
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
}, {
|
|
1048
|
+
key: "componentWillUnmount",
|
|
1049
|
+
value: function componentWillUnmount() {
|
|
1050
|
+
this.isMountCanceled = true;
|
|
1051
|
+
}
|
|
1052
|
+
}, {
|
|
1053
|
+
key: "render",
|
|
1054
|
+
value: function render() {
|
|
1055
|
+
var isLoading = this.state.isLoading;
|
|
1056
|
+
var placeholder = this.props.placeholder;
|
|
1057
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1058
|
+
ref: "embedContainer"
|
|
1059
|
+
}));
|
|
1060
|
+
}
|
|
1061
|
+
}]);
|
|
1062
|
+
|
|
1063
|
+
return TwitterVideoEmbed;
|
|
1064
|
+
}(Component);
|
|
1065
|
+
|
|
1066
|
+
_defineProperty$1(TwitterVideoEmbed, "propTypes", {
|
|
1067
|
+
/**
|
|
1068
|
+
* Id of video tweet.
|
|
1069
|
+
*/
|
|
1070
|
+
id: PropTypes.string.isRequired,
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Placeholder while tweet is loading
|
|
1074
|
+
*/
|
|
1075
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Function to execute after load, return html element
|
|
1079
|
+
*/
|
|
1080
|
+
onLoad: PropTypes.func
|
|
1081
|
+
});
|
|
1082
|
+
|
|
1083
|
+
var TwitterOnAirButton =
|
|
1084
|
+
/*#__PURE__*/
|
|
1085
|
+
function (_Component) {
|
|
1086
|
+
_inherits(TwitterOnAirButton, _Component);
|
|
1087
|
+
|
|
1088
|
+
function TwitterOnAirButton(props) {
|
|
1089
|
+
var _this;
|
|
1090
|
+
|
|
1091
|
+
_classCallCheck(this, TwitterOnAirButton);
|
|
1092
|
+
|
|
1093
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterOnAirButton).call(this, props));
|
|
1094
|
+
_this.state = {
|
|
1095
|
+
isLoading: true
|
|
1096
|
+
};
|
|
1097
|
+
return _this;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
_createClass(TwitterOnAirButton, [{
|
|
1101
|
+
key: "componentDidMount",
|
|
1102
|
+
value: function componentDidMount() {
|
|
1103
|
+
var _this2 = this;
|
|
1104
|
+
|
|
1105
|
+
var onLoad = this.props.onLoad;
|
|
1106
|
+
|
|
1107
|
+
if (exenv.canUseDOM) {
|
|
1108
|
+
var script = require('scriptjs');
|
|
1109
|
+
|
|
1110
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1111
|
+
if (!window.twttr) {
|
|
1112
|
+
console.error('Failure to load window.twttr in TwitterOnAirButton, aborting load.');
|
|
1113
|
+
return;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
if (!_this2.isMountCanceled) {
|
|
1117
|
+
window.twttr.widgets.createPeriscopeOnAirButton(_this2.props.username, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1118
|
+
_this2.setState({
|
|
1119
|
+
isLoading: false
|
|
1120
|
+
});
|
|
1121
|
+
|
|
1122
|
+
if (onLoad) {
|
|
1123
|
+
onLoad(element);
|
|
1124
|
+
}
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
});
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
}, {
|
|
1131
|
+
key: "componentWillUnmount",
|
|
1132
|
+
value: function componentWillUnmount() {
|
|
1133
|
+
this.isMountCanceled = true;
|
|
1134
|
+
}
|
|
1135
|
+
}, {
|
|
1136
|
+
key: "render",
|
|
1137
|
+
value: function render() {
|
|
1138
|
+
var isLoading = this.state.isLoading;
|
|
1139
|
+
var placeholder = this.props.placeholder;
|
|
1140
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1141
|
+
ref: "embedContainer"
|
|
1142
|
+
}));
|
|
1143
|
+
}
|
|
1144
|
+
}]);
|
|
1145
|
+
|
|
1146
|
+
return TwitterOnAirButton;
|
|
1147
|
+
}(Component);
|
|
1148
|
+
|
|
1149
|
+
_defineProperty$1(TwitterOnAirButton, "propTypes", {
|
|
1150
|
+
/**
|
|
1151
|
+
* Username for which you require periscope on air button
|
|
1152
|
+
*/
|
|
1153
|
+
username: PropTypes.string.isRequired,
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* Additional options for overriding config.
|
|
1157
|
+
*/
|
|
1158
|
+
options: PropTypes.object,
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Placeholder while tweet is loading
|
|
1162
|
+
*/
|
|
1163
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* Function to execute after load, return html element
|
|
1167
|
+
*/
|
|
1168
|
+
onLoad: PropTypes.func
|
|
1169
|
+
});
|
|
1170
|
+
|
|
75
1171
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
76
1172
|
try {
|
|
77
1173
|
var info = gen[key](arg);
|
|
@@ -108,13 +1204,8 @@ function _asyncToGenerator(fn) {
|
|
|
108
1204
|
};
|
|
109
1205
|
}
|
|
110
1206
|
|
|
111
|
-
|
|
112
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
var _asyncToGenerator = unwrapExports(asyncToGenerator);
|
|
1207
|
+
var asyncToGenerator = _asyncToGenerator;
|
|
116
1208
|
|
|
117
|
-
var defineProperty = createCommonjsModule(function (module) {
|
|
118
1209
|
function _defineProperty(obj, key, value) {
|
|
119
1210
|
if (key in obj) {
|
|
120
1211
|
Object.defineProperty(obj, key, {
|
|
@@ -130,11 +1221,7 @@ function _defineProperty(obj, key, value) {
|
|
|
130
1221
|
return obj;
|
|
131
1222
|
}
|
|
132
1223
|
|
|
133
|
-
|
|
134
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
var _defineProperty = unwrapExports(defineProperty);
|
|
1224
|
+
var defineProperty = _defineProperty;
|
|
138
1225
|
|
|
139
1226
|
var canUseDOM = !!(
|
|
140
1227
|
typeof window !== 'undefined' &&
|
|
@@ -144,7 +1231,6 @@ var canUseDOM = !!(
|
|
|
144
1231
|
|
|
145
1232
|
var canUseDom = canUseDOM;
|
|
146
1233
|
|
|
147
|
-
var objectWithoutPropertiesLoose = createCommonjsModule(function (module) {
|
|
148
1234
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
149
1235
|
if (source == null) return {};
|
|
150
1236
|
var target = {};
|
|
@@ -160,13 +1246,8 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
160
1246
|
return target;
|
|
161
1247
|
}
|
|
162
1248
|
|
|
163
|
-
|
|
164
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
unwrapExports(objectWithoutPropertiesLoose);
|
|
1249
|
+
var objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
|
|
168
1250
|
|
|
169
|
-
var objectWithoutProperties = createCommonjsModule(function (module) {
|
|
170
1251
|
function _objectWithoutProperties(source, excluded) {
|
|
171
1252
|
if (source == null) return {};
|
|
172
1253
|
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
@@ -186,11 +1267,7 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
186
1267
|
return target;
|
|
187
1268
|
}
|
|
188
1269
|
|
|
189
|
-
|
|
190
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
191
|
-
});
|
|
192
|
-
|
|
193
|
-
var _objectWithoutProperties = unwrapExports(objectWithoutProperties);
|
|
1270
|
+
var objectWithoutProperties = _objectWithoutProperties;
|
|
194
1271
|
|
|
195
1272
|
var LoginStatus = {
|
|
196
1273
|
CONNECTED: 'connected',
|
|
@@ -201,7 +1278,7 @@ var LoginStatus = {
|
|
|
201
1278
|
|
|
202
1279
|
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; }
|
|
203
1280
|
|
|
204
|
-
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) {
|
|
1281
|
+
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; }
|
|
205
1282
|
const Method = {
|
|
206
1283
|
GET: 'get',
|
|
207
1284
|
POST: 'post',
|
|
@@ -237,7 +1314,7 @@ class Facebook {
|
|
|
237
1314
|
init() {
|
|
238
1315
|
var _this = this;
|
|
239
1316
|
|
|
240
|
-
return
|
|
1317
|
+
return asyncToGenerator(function* () {
|
|
241
1318
|
if (_this.loadingPromise) {
|
|
242
1319
|
return _this.loadingPromise;
|
|
243
1320
|
}
|
|
@@ -250,7 +1327,7 @@ class Facebook {
|
|
|
250
1327
|
debug,
|
|
251
1328
|
chatSupport
|
|
252
1329
|
} = _this$options,
|
|
253
|
-
restOptions =
|
|
1330
|
+
restOptions = objectWithoutProperties(_this$options, ["domain", "language", "debug", "chatSupport"]);
|
|
254
1331
|
|
|
255
1332
|
window.fbAsyncInit = () => {
|
|
256
1333
|
window.FB.init({
|
|
@@ -282,7 +1359,7 @@ class Facebook {
|
|
|
282
1359
|
process(method, before = [], after = []) {
|
|
283
1360
|
var _this2 = this;
|
|
284
1361
|
|
|
285
|
-
return
|
|
1362
|
+
return asyncToGenerator(function* () {
|
|
286
1363
|
const fb = yield _this2.init();
|
|
287
1364
|
return new Promise((resolve, reject) => {
|
|
288
1365
|
fb[method](...before, response => {
|
|
@@ -310,7 +1387,7 @@ class Facebook {
|
|
|
310
1387
|
ui(options) {
|
|
311
1388
|
var _this3 = this;
|
|
312
1389
|
|
|
313
|
-
return
|
|
1390
|
+
return asyncToGenerator(function* () {
|
|
314
1391
|
return _this3.process('ui', [options]);
|
|
315
1392
|
})();
|
|
316
1393
|
}
|
|
@@ -318,7 +1395,7 @@ class Facebook {
|
|
|
318
1395
|
api(path, method = Method.GET, params = {}) {
|
|
319
1396
|
var _this4 = this;
|
|
320
1397
|
|
|
321
|
-
return
|
|
1398
|
+
return asyncToGenerator(function* () {
|
|
322
1399
|
return _this4.process('api', [path, method, params]);
|
|
323
1400
|
})();
|
|
324
1401
|
}
|
|
@@ -326,7 +1403,7 @@ class Facebook {
|
|
|
326
1403
|
login(opts = null) {
|
|
327
1404
|
var _this5 = this;
|
|
328
1405
|
|
|
329
|
-
return
|
|
1406
|
+
return asyncToGenerator(function* () {
|
|
330
1407
|
return _this5.process('login', [], [opts]);
|
|
331
1408
|
})();
|
|
332
1409
|
}
|
|
@@ -334,7 +1411,7 @@ class Facebook {
|
|
|
334
1411
|
logout() {
|
|
335
1412
|
var _this6 = this;
|
|
336
1413
|
|
|
337
|
-
return
|
|
1414
|
+
return asyncToGenerator(function* () {
|
|
338
1415
|
return _this6.process('logout');
|
|
339
1416
|
})();
|
|
340
1417
|
}
|
|
@@ -342,7 +1419,7 @@ class Facebook {
|
|
|
342
1419
|
getLoginStatus() {
|
|
343
1420
|
var _this7 = this;
|
|
344
1421
|
|
|
345
|
-
return
|
|
1422
|
+
return asyncToGenerator(function* () {
|
|
346
1423
|
return _this7.process('getLoginStatus');
|
|
347
1424
|
})();
|
|
348
1425
|
}
|
|
@@ -350,7 +1427,7 @@ class Facebook {
|
|
|
350
1427
|
getAuthResponse() {
|
|
351
1428
|
var _this8 = this;
|
|
352
1429
|
|
|
353
|
-
return
|
|
1430
|
+
return asyncToGenerator(function* () {
|
|
354
1431
|
return _this8.process('getAuthResponse');
|
|
355
1432
|
})();
|
|
356
1433
|
}
|
|
@@ -358,7 +1435,7 @@ class Facebook {
|
|
|
358
1435
|
getTokenDetail(loginResponse) {
|
|
359
1436
|
var _this9 = this;
|
|
360
1437
|
|
|
361
|
-
return
|
|
1438
|
+
return asyncToGenerator(function* () {
|
|
362
1439
|
if (loginResponse.status === LoginStatus.CONNECTED && loginResponse.authResponse) {
|
|
363
1440
|
return loginResponse.authResponse;
|
|
364
1441
|
}
|
|
@@ -376,7 +1453,7 @@ class Facebook {
|
|
|
376
1453
|
getProfile(params) {
|
|
377
1454
|
var _this10 = this;
|
|
378
1455
|
|
|
379
|
-
return
|
|
1456
|
+
return asyncToGenerator(function* () {
|
|
380
1457
|
return _this10.api('/me', Method.GET, params);
|
|
381
1458
|
})();
|
|
382
1459
|
}
|
|
@@ -384,7 +1461,7 @@ class Facebook {
|
|
|
384
1461
|
getTokenDetailWithProfile(params, response) {
|
|
385
1462
|
var _this11 = this;
|
|
386
1463
|
|
|
387
|
-
return
|
|
1464
|
+
return asyncToGenerator(function* () {
|
|
388
1465
|
const tokenDetail = yield _this11.getTokenDetail(response);
|
|
389
1466
|
const profile = yield _this11.getProfile(params);
|
|
390
1467
|
return {
|
|
@@ -397,7 +1474,7 @@ class Facebook {
|
|
|
397
1474
|
getToken() {
|
|
398
1475
|
var _this12 = this;
|
|
399
1476
|
|
|
400
|
-
return
|
|
1477
|
+
return asyncToGenerator(function* () {
|
|
401
1478
|
const authResponse = yield _this12.getTokenDetail();
|
|
402
1479
|
return authResponse.accessToken;
|
|
403
1480
|
})();
|
|
@@ -406,7 +1483,7 @@ class Facebook {
|
|
|
406
1483
|
getUserId() {
|
|
407
1484
|
var _this13 = this;
|
|
408
1485
|
|
|
409
|
-
return
|
|
1486
|
+
return asyncToGenerator(function* () {
|
|
410
1487
|
const authResponse = yield _this13.getTokenDetail();
|
|
411
1488
|
return authResponse.userID;
|
|
412
1489
|
})();
|
|
@@ -415,7 +1492,7 @@ class Facebook {
|
|
|
415
1492
|
sendInvite(to, options) {
|
|
416
1493
|
var _this14 = this;
|
|
417
1494
|
|
|
418
|
-
return
|
|
1495
|
+
return asyncToGenerator(function* () {
|
|
419
1496
|
return _this14.ui(_objectSpread({
|
|
420
1497
|
to,
|
|
421
1498
|
method: 'apprequests'
|
|
@@ -426,7 +1503,7 @@ class Facebook {
|
|
|
426
1503
|
postAction(ogNamespace, ogAction, ogObject, ogObjectUrl, noFeedStory) {
|
|
427
1504
|
var _this15 = this;
|
|
428
1505
|
|
|
429
|
-
return
|
|
1506
|
+
return asyncToGenerator(function* () {
|
|
430
1507
|
let url = `/me/${ogNamespace}:${ogAction}?${ogObject}=${encodeURIComponent(ogObjectUrl)}`;
|
|
431
1508
|
|
|
432
1509
|
if (noFeedStory === true) {
|
|
@@ -440,7 +1517,7 @@ class Facebook {
|
|
|
440
1517
|
getPermissions() {
|
|
441
1518
|
var _this16 = this;
|
|
442
1519
|
|
|
443
|
-
return
|
|
1520
|
+
return asyncToGenerator(function* () {
|
|
444
1521
|
const response = yield _this16.api('/me/permissions');
|
|
445
1522
|
return response.data;
|
|
446
1523
|
})();
|
|
@@ -449,7 +1526,7 @@ class Facebook {
|
|
|
449
1526
|
hasPermissions(permissions) {
|
|
450
1527
|
var _this17 = this;
|
|
451
1528
|
|
|
452
|
-
return
|
|
1529
|
+
return asyncToGenerator(function* () {
|
|
453
1530
|
const usersPermissions = yield _this17.getPermissions();
|
|
454
1531
|
const findedPermissions = permissions.filter(p => {
|
|
455
1532
|
const currentPermission = usersPermissions.find(row => {
|
|
@@ -468,7 +1545,7 @@ class Facebook {
|
|
|
468
1545
|
subscribe(eventName, callback) {
|
|
469
1546
|
var _this18 = this;
|
|
470
1547
|
|
|
471
|
-
return
|
|
1548
|
+
return asyncToGenerator(function* () {
|
|
472
1549
|
const fb = yield _this18.init();
|
|
473
1550
|
fb.Event.subscribe(eventName, callback);
|
|
474
1551
|
})();
|
|
@@ -477,7 +1554,7 @@ class Facebook {
|
|
|
477
1554
|
unsubscribe(eventName, callback) {
|
|
478
1555
|
var _this19 = this;
|
|
479
1556
|
|
|
480
|
-
return
|
|
1557
|
+
return asyncToGenerator(function* () {
|
|
481
1558
|
const fb = yield _this19.init();
|
|
482
1559
|
fb.Event.unsubscribe(eventName, callback);
|
|
483
1560
|
})();
|
|
@@ -486,7 +1563,7 @@ class Facebook {
|
|
|
486
1563
|
parse(parentNode) {
|
|
487
1564
|
var _this20 = this;
|
|
488
1565
|
|
|
489
|
-
return
|
|
1566
|
+
return asyncToGenerator(function* () {
|
|
490
1567
|
const fb = yield _this20.init();
|
|
491
1568
|
|
|
492
1569
|
if (typeof parentNode === 'undefined') {
|
|
@@ -500,7 +1577,7 @@ class Facebook {
|
|
|
500
1577
|
getRequests() {
|
|
501
1578
|
var _this21 = this;
|
|
502
1579
|
|
|
503
|
-
return
|
|
1580
|
+
return asyncToGenerator(function* () {
|
|
504
1581
|
return _this21.api('/me/apprequests');
|
|
505
1582
|
})();
|
|
506
1583
|
}
|
|
@@ -508,7 +1585,7 @@ class Facebook {
|
|
|
508
1585
|
removeRequest(requestID) {
|
|
509
1586
|
var _this22 = this;
|
|
510
1587
|
|
|
511
|
-
return
|
|
1588
|
+
return asyncToGenerator(function* () {
|
|
512
1589
|
return _this22.api(requestID, Method.DELETE);
|
|
513
1590
|
})();
|
|
514
1591
|
}
|
|
@@ -516,7 +1593,7 @@ class Facebook {
|
|
|
516
1593
|
setAutoGrow() {
|
|
517
1594
|
var _this23 = this;
|
|
518
1595
|
|
|
519
|
-
return
|
|
1596
|
+
return asyncToGenerator(function* () {
|
|
520
1597
|
const fb = yield _this23.init();
|
|
521
1598
|
fb.Canvas.setAutoGrow();
|
|
522
1599
|
})();
|
|
@@ -525,7 +1602,7 @@ class Facebook {
|
|
|
525
1602
|
paySimple(product, quantity = 1) {
|
|
526
1603
|
var _this24 = this;
|
|
527
1604
|
|
|
528
|
-
return
|
|
1605
|
+
return asyncToGenerator(function* () {
|
|
529
1606
|
return _this24.ui({
|
|
530
1607
|
method: 'pay',
|
|
531
1608
|
action: 'purchaseitem',
|
|
@@ -538,7 +1615,7 @@ class Facebook {
|
|
|
538
1615
|
pay(product, options) {
|
|
539
1616
|
var _this25 = this;
|
|
540
1617
|
|
|
541
|
-
return
|
|
1618
|
+
return asyncToGenerator(function* () {
|
|
542
1619
|
return _this25.ui(_objectSpread({
|
|
543
1620
|
method: 'pay',
|
|
544
1621
|
action: 'purchaseitem',
|
|
@@ -829,13 +1906,13 @@ class Facebook$1 extends Component {
|
|
|
829
1906
|
super(...args);
|
|
830
1907
|
_this = this;
|
|
831
1908
|
|
|
832
|
-
|
|
1909
|
+
defineProperty(this, "state", {
|
|
833
1910
|
isReady: false
|
|
834
1911
|
});
|
|
835
1912
|
|
|
836
|
-
|
|
1913
|
+
defineProperty(this, "handleInit",
|
|
837
1914
|
/*#__PURE__*/
|
|
838
|
-
|
|
1915
|
+
asyncToGenerator(function* () {
|
|
839
1916
|
// do not run if SSR
|
|
840
1917
|
if (!canUseDom) {
|
|
841
1918
|
throw new Error('You can not use Facebook without DOM');
|
|
@@ -924,7 +2001,7 @@ class Facebook$1 extends Component {
|
|
|
924
2001
|
|
|
925
2002
|
}
|
|
926
2003
|
|
|
927
|
-
|
|
2004
|
+
defineProperty(Facebook$1, "defaultProps", {
|
|
928
2005
|
version: 'v3.1',
|
|
929
2006
|
cookie: false,
|
|
930
2007
|
status: false,
|
|
@@ -954,16 +2031,12 @@ function _extends() {
|
|
|
954
2031
|
return target;
|
|
955
2032
|
};
|
|
956
2033
|
|
|
957
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
958
2034
|
return _extends.apply(this, arguments);
|
|
959
2035
|
}
|
|
960
2036
|
|
|
961
2037
|
module.exports = _extends;
|
|
962
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
963
2038
|
});
|
|
964
2039
|
|
|
965
|
-
var _extends = unwrapExports(_extends_1);
|
|
966
|
-
|
|
967
2040
|
class Initialize extends Component {
|
|
968
2041
|
componentDidMount() {
|
|
969
2042
|
this.$isMounted = true;
|
|
@@ -977,7 +2050,7 @@ class Initialize extends Component {
|
|
|
977
2050
|
prepare() {
|
|
978
2051
|
var _this = this;
|
|
979
2052
|
|
|
980
|
-
return
|
|
2053
|
+
return asyncToGenerator(function* () {
|
|
981
2054
|
const {
|
|
982
2055
|
onReady,
|
|
983
2056
|
handleInit
|
|
@@ -1010,7 +2083,7 @@ class Initialize extends Component {
|
|
|
1010
2083
|
|
|
1011
2084
|
}
|
|
1012
2085
|
|
|
1013
|
-
|
|
2086
|
+
defineProperty(Initialize, "defaultProps", {
|
|
1014
2087
|
onReady: undefined,
|
|
1015
2088
|
api: undefined
|
|
1016
2089
|
});
|
|
@@ -1019,7 +2092,7 @@ var Initialize$1 = forwardRef((props, ref) => React__default.createElement(Faceb
|
|
|
1019
2092
|
handleInit,
|
|
1020
2093
|
isReady,
|
|
1021
2094
|
api
|
|
1022
|
-
}) => React__default.createElement(Initialize,
|
|
2095
|
+
}) => React__default.createElement(Initialize, _extends_1({}, props, {
|
|
1023
2096
|
handleInit: handleInit,
|
|
1024
2097
|
isReady: isReady,
|
|
1025
2098
|
api: api,
|
|
@@ -1030,21 +2103,21 @@ class Parser extends Component {
|
|
|
1030
2103
|
constructor(...args) {
|
|
1031
2104
|
super(...args);
|
|
1032
2105
|
|
|
1033
|
-
|
|
2106
|
+
defineProperty(this, "state", {});
|
|
1034
2107
|
|
|
1035
|
-
|
|
2108
|
+
defineProperty(this, "handleReady", api => {
|
|
1036
2109
|
this.setState({
|
|
1037
2110
|
api
|
|
1038
2111
|
}, this.handleParse);
|
|
1039
2112
|
});
|
|
1040
2113
|
|
|
1041
|
-
|
|
2114
|
+
defineProperty(this, "handleContainer", container => {
|
|
1042
2115
|
this.setState({
|
|
1043
2116
|
container
|
|
1044
2117
|
}, this.handleParse);
|
|
1045
2118
|
});
|
|
1046
2119
|
|
|
1047
|
-
|
|
2120
|
+
defineProperty(this, "handleParse", () => {
|
|
1048
2121
|
const {
|
|
1049
2122
|
api,
|
|
1050
2123
|
container
|
|
@@ -1075,7 +2148,7 @@ class Parser extends Component {
|
|
|
1075
2148
|
|
|
1076
2149
|
}
|
|
1077
2150
|
|
|
1078
|
-
|
|
2151
|
+
defineProperty(Parser, "defaultProps", {
|
|
1079
2152
|
className: undefined
|
|
1080
2153
|
});
|
|
1081
2154
|
|
|
@@ -1126,7 +2199,7 @@ class Like extends PureComponent {
|
|
|
1126
2199
|
|
|
1127
2200
|
}
|
|
1128
2201
|
|
|
1129
|
-
|
|
2202
|
+
defineProperty(Like, "defaultProps", {
|
|
1130
2203
|
layout: undefined,
|
|
1131
2204
|
showFaces: undefined,
|
|
1132
2205
|
colorScheme: undefined,
|
|
@@ -1142,7 +2215,7 @@ _defineProperty(Like, "defaultProps", {
|
|
|
1142
2215
|
|
|
1143
2216
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
1144
2217
|
handleParse
|
|
1145
|
-
}) => React__default.createElement(Like,
|
|
2218
|
+
}) => React__default.createElement(Like, _extends_1({}, props, {
|
|
1146
2219
|
handleParse: handleParse,
|
|
1147
2220
|
ref: ref
|
|
1148
2221
|
}))));
|
|
@@ -1170,14 +2243,14 @@ class Process extends Component {
|
|
|
1170
2243
|
super(...args);
|
|
1171
2244
|
_this = this;
|
|
1172
2245
|
|
|
1173
|
-
|
|
2246
|
+
defineProperty(this, "state", {
|
|
1174
2247
|
api: undefined
|
|
1175
2248
|
});
|
|
1176
2249
|
|
|
1177
|
-
|
|
2250
|
+
defineProperty(this, "handleProcess",
|
|
1178
2251
|
/*#__PURE__*/
|
|
1179
2252
|
function () {
|
|
1180
|
-
var _ref =
|
|
2253
|
+
var _ref = asyncToGenerator(function* (fn, handleSuccess = () => {}) {
|
|
1181
2254
|
_this.setState({
|
|
1182
2255
|
data: undefined,
|
|
1183
2256
|
error: undefined,
|
|
@@ -1216,7 +2289,7 @@ class Process extends Component {
|
|
|
1216
2289
|
};
|
|
1217
2290
|
}());
|
|
1218
2291
|
|
|
1219
|
-
|
|
2292
|
+
defineProperty(this, "handleReady", api => {
|
|
1220
2293
|
this.setState({
|
|
1221
2294
|
api
|
|
1222
2295
|
});
|
|
@@ -1252,10 +2325,10 @@ class Send extends Component {
|
|
|
1252
2325
|
super(...args);
|
|
1253
2326
|
_this = this;
|
|
1254
2327
|
|
|
1255
|
-
|
|
2328
|
+
defineProperty(this, "handleClick",
|
|
1256
2329
|
/*#__PURE__*/
|
|
1257
2330
|
function () {
|
|
1258
|
-
var _ref =
|
|
2331
|
+
var _ref = asyncToGenerator(function* (evn) {
|
|
1259
2332
|
evn.preventDefault();
|
|
1260
2333
|
const {
|
|
1261
2334
|
handleProcess
|
|
@@ -1263,7 +2336,7 @@ class Send extends Component {
|
|
|
1263
2336
|
return handleProcess(
|
|
1264
2337
|
/*#__PURE__*/
|
|
1265
2338
|
function () {
|
|
1266
|
-
var _ref2 =
|
|
2339
|
+
var _ref2 = asyncToGenerator(function* (api) {
|
|
1267
2340
|
const {
|
|
1268
2341
|
link = getCurrentHref(),
|
|
1269
2342
|
display,
|
|
@@ -1306,7 +2379,7 @@ class Send extends Component {
|
|
|
1306
2379
|
|
|
1307
2380
|
}
|
|
1308
2381
|
|
|
1309
|
-
|
|
2382
|
+
defineProperty(Send, "defaultProps", {
|
|
1310
2383
|
to: undefined,
|
|
1311
2384
|
display: undefined,
|
|
1312
2385
|
appId: undefined,
|
|
@@ -1316,7 +2389,7 @@ _defineProperty(Send, "defaultProps", {
|
|
|
1316
2389
|
forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
1317
2390
|
loading,
|
|
1318
2391
|
handleProcess
|
|
1319
|
-
}) => React__default.createElement(Send,
|
|
2392
|
+
}) => React__default.createElement(Send, _extends_1({}, props, {
|
|
1320
2393
|
loading: loading,
|
|
1321
2394
|
handleProcess: handleProcess,
|
|
1322
2395
|
ref: ref
|
|
@@ -1329,10 +2402,10 @@ class Share extends Component {
|
|
|
1329
2402
|
super(...args);
|
|
1330
2403
|
_this = this;
|
|
1331
2404
|
|
|
1332
|
-
|
|
2405
|
+
defineProperty(this, "handleClick",
|
|
1333
2406
|
/*#__PURE__*/
|
|
1334
2407
|
function () {
|
|
1335
|
-
var _ref =
|
|
2408
|
+
var _ref = asyncToGenerator(function* (evn) {
|
|
1336
2409
|
evn.preventDefault();
|
|
1337
2410
|
const {
|
|
1338
2411
|
handleProcess
|
|
@@ -1340,7 +2413,7 @@ class Share extends Component {
|
|
|
1340
2413
|
return handleProcess(
|
|
1341
2414
|
/*#__PURE__*/
|
|
1342
2415
|
function () {
|
|
1343
|
-
var _ref2 =
|
|
2416
|
+
var _ref2 = asyncToGenerator(function* (api) {
|
|
1344
2417
|
const {
|
|
1345
2418
|
href = getCurrentHref(),
|
|
1346
2419
|
display,
|
|
@@ -1391,7 +2464,7 @@ class Share extends Component {
|
|
|
1391
2464
|
|
|
1392
2465
|
}
|
|
1393
2466
|
|
|
1394
|
-
|
|
2467
|
+
defineProperty(Share, "defaultProps", {
|
|
1395
2468
|
href: undefined,
|
|
1396
2469
|
hashtag: undefined,
|
|
1397
2470
|
quote: undefined,
|
|
@@ -1406,7 +2479,7 @@ var Share$1 = forwardRef((props, ref) => React__default.createElement(Process, n
|
|
|
1406
2479
|
handleProcess,
|
|
1407
2480
|
data,
|
|
1408
2481
|
error
|
|
1409
|
-
}) => React__default.createElement(Share,
|
|
2482
|
+
}) => React__default.createElement(Share, _extends_1({}, props, {
|
|
1410
2483
|
loading: loading,
|
|
1411
2484
|
handleProcess: handleProcess,
|
|
1412
2485
|
data: data,
|
|
@@ -1416,13 +2489,13 @@ var Share$1 = forwardRef((props, ref) => React__default.createElement(Process, n
|
|
|
1416
2489
|
|
|
1417
2490
|
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; }
|
|
1418
2491
|
|
|
1419
|
-
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) {
|
|
2492
|
+
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; }
|
|
1420
2493
|
function ShareButton(props) {
|
|
1421
2494
|
const {
|
|
1422
2495
|
className,
|
|
1423
2496
|
children
|
|
1424
2497
|
} = props,
|
|
1425
|
-
rest =
|
|
2498
|
+
rest = objectWithoutProperties(props, ["className", "children"]);
|
|
1426
2499
|
|
|
1427
2500
|
return React__default.createElement(Share$1, rest, ({
|
|
1428
2501
|
loading,
|
|
@@ -1477,7 +2550,7 @@ class Page extends PureComponent {
|
|
|
1477
2550
|
|
|
1478
2551
|
}
|
|
1479
2552
|
|
|
1480
|
-
|
|
2553
|
+
defineProperty(Page, "defaultProps", {
|
|
1481
2554
|
width: undefined,
|
|
1482
2555
|
height: undefined,
|
|
1483
2556
|
tabs: undefined,
|
|
@@ -1493,7 +2566,7 @@ _defineProperty(Page, "defaultProps", {
|
|
|
1493
2566
|
|
|
1494
2567
|
var Page$1 = forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
1495
2568
|
handleParse
|
|
1496
|
-
}) => React__default.createElement(Page,
|
|
2569
|
+
}) => React__default.createElement(Page, _extends_1({}, props, {
|
|
1497
2570
|
handleParse: handleParse,
|
|
1498
2571
|
ref: ref
|
|
1499
2572
|
}))));
|
|
@@ -1503,7 +2576,7 @@ var Fields = ['id', 'first_name', 'last_name', 'middle_name', 'name', 'name_form
|
|
|
1503
2576
|
|
|
1504
2577
|
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; }
|
|
1505
2578
|
|
|
1506
|
-
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) {
|
|
2579
|
+
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; }
|
|
1507
2580
|
|
|
1508
2581
|
class Login extends Component {
|
|
1509
2582
|
constructor(...args) {
|
|
@@ -1512,10 +2585,10 @@ class Login extends Component {
|
|
|
1512
2585
|
super(...args);
|
|
1513
2586
|
_this = this;
|
|
1514
2587
|
|
|
1515
|
-
|
|
2588
|
+
defineProperty(this, "handleClick",
|
|
1516
2589
|
/*#__PURE__*/
|
|
1517
2590
|
function () {
|
|
1518
|
-
var _ref =
|
|
2591
|
+
var _ref = asyncToGenerator(function* (evn) {
|
|
1519
2592
|
evn.preventDefault();
|
|
1520
2593
|
const {
|
|
1521
2594
|
handleProcess,
|
|
@@ -1528,7 +2601,7 @@ class Login extends Component {
|
|
|
1528
2601
|
yield handleProcess(
|
|
1529
2602
|
/*#__PURE__*/
|
|
1530
2603
|
function () {
|
|
1531
|
-
var _ref2 =
|
|
2604
|
+
var _ref2 = asyncToGenerator(function* (api) {
|
|
1532
2605
|
const {
|
|
1533
2606
|
scope,
|
|
1534
2607
|
fields,
|
|
@@ -1611,7 +2684,7 @@ class Login extends Component {
|
|
|
1611
2684
|
|
|
1612
2685
|
}
|
|
1613
2686
|
|
|
1614
|
-
|
|
2687
|
+
defineProperty(Login, "defaultProps", {
|
|
1615
2688
|
scope: '',
|
|
1616
2689
|
fields: Fields,
|
|
1617
2690
|
returnScopes: false,
|
|
@@ -1627,7 +2700,7 @@ var Login$1 = forwardRef((props, ref) => React__default.createElement(Process, n
|
|
|
1627
2700
|
handleProcess,
|
|
1628
2701
|
data,
|
|
1629
2702
|
error
|
|
1630
|
-
}) => React__default.createElement(Login,
|
|
2703
|
+
}) => React__default.createElement(Login, _extends_1({}, props, {
|
|
1631
2704
|
loading: loading,
|
|
1632
2705
|
handleProcess: handleProcess,
|
|
1633
2706
|
data: data,
|
|
@@ -2085,7 +3158,7 @@ var Spinner = unwrapExports(dist);
|
|
|
2085
3158
|
|
|
2086
3159
|
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; }
|
|
2087
3160
|
|
|
2088
|
-
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) {
|
|
3161
|
+
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; }
|
|
2089
3162
|
function LoginButton(props) {
|
|
2090
3163
|
const {
|
|
2091
3164
|
children,
|
|
@@ -2093,7 +3166,7 @@ function LoginButton(props) {
|
|
|
2093
3166
|
spinner,
|
|
2094
3167
|
spinnerConfig
|
|
2095
3168
|
} = props,
|
|
2096
|
-
rest =
|
|
3169
|
+
rest = objectWithoutProperties(props, ["children", "className", "spinner", "spinnerConfig"]);
|
|
2097
3170
|
|
|
2098
3171
|
return React__default.createElement(Login$1, rest, ({
|
|
2099
3172
|
loading,
|
|
@@ -2138,7 +3211,7 @@ class EmbeddedPost extends PureComponent {
|
|
|
2138
3211
|
|
|
2139
3212
|
}
|
|
2140
3213
|
|
|
2141
|
-
|
|
3214
|
+
defineProperty(EmbeddedPost, "defaultProps", {
|
|
2142
3215
|
width: undefined,
|
|
2143
3216
|
showText: undefined,
|
|
2144
3217
|
children: undefined
|
|
@@ -2146,7 +3219,7 @@ _defineProperty(EmbeddedPost, "defaultProps", {
|
|
|
2146
3219
|
|
|
2147
3220
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2148
3221
|
handleParse
|
|
2149
|
-
}) => React__default.createElement(EmbeddedPost,
|
|
3222
|
+
}) => React__default.createElement(EmbeddedPost, _extends_1({}, props, {
|
|
2150
3223
|
handleParse: handleParse,
|
|
2151
3224
|
ref: ref
|
|
2152
3225
|
}))));
|
|
@@ -2182,7 +3255,7 @@ class EmbeddedVideo extends PureComponent {
|
|
|
2182
3255
|
|
|
2183
3256
|
}
|
|
2184
3257
|
|
|
2185
|
-
|
|
3258
|
+
defineProperty(EmbeddedVideo, "defaultProps", {
|
|
2186
3259
|
width: undefined,
|
|
2187
3260
|
showText: undefined,
|
|
2188
3261
|
allowFullScreen: undefined,
|
|
@@ -2193,7 +3266,7 @@ _defineProperty(EmbeddedVideo, "defaultProps", {
|
|
|
2193
3266
|
|
|
2194
3267
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2195
3268
|
handleParse
|
|
2196
|
-
}) => React__default.createElement(EmbeddedVideo,
|
|
3269
|
+
}) => React__default.createElement(EmbeddedVideo, _extends_1({}, props, {
|
|
2197
3270
|
handleParse: handleParse,
|
|
2198
3271
|
ref: ref
|
|
2199
3272
|
}))));
|
|
@@ -2230,7 +3303,7 @@ class Comments extends PureComponent {
|
|
|
2230
3303
|
|
|
2231
3304
|
}
|
|
2232
3305
|
|
|
2233
|
-
|
|
3306
|
+
defineProperty(Comments, "defaultProps", {
|
|
2234
3307
|
href: undefined,
|
|
2235
3308
|
numPosts: undefined,
|
|
2236
3309
|
orderBy: undefined,
|
|
@@ -2242,7 +3315,7 @@ _defineProperty(Comments, "defaultProps", {
|
|
|
2242
3315
|
|
|
2243
3316
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2244
3317
|
handleParse
|
|
2245
|
-
}) => React__default.createElement(Comments,
|
|
3318
|
+
}) => React__default.createElement(Comments, _extends_1({}, props, {
|
|
2246
3319
|
handleParse: handleParse,
|
|
2247
3320
|
ref: ref
|
|
2248
3321
|
}))));
|
|
@@ -2268,14 +3341,14 @@ class CommentsCount extends PureComponent {
|
|
|
2268
3341
|
|
|
2269
3342
|
}
|
|
2270
3343
|
|
|
2271
|
-
|
|
3344
|
+
defineProperty(CommentsCount, "defaultProps", {
|
|
2272
3345
|
href: undefined,
|
|
2273
3346
|
children: undefined
|
|
2274
3347
|
});
|
|
2275
3348
|
|
|
2276
3349
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2277
3350
|
handleParse
|
|
2278
|
-
}) => React__default.createElement(CommentsCount,
|
|
3351
|
+
}) => React__default.createElement(CommentsCount, _extends_1({}, props, {
|
|
2279
3352
|
handleParse: handleParse,
|
|
2280
3353
|
ref: ref
|
|
2281
3354
|
}))));
|
|
@@ -2287,10 +3360,10 @@ class Feed extends Component {
|
|
|
2287
3360
|
super(...args);
|
|
2288
3361
|
_this = this;
|
|
2289
3362
|
|
|
2290
|
-
|
|
3363
|
+
defineProperty(this, "handleClick",
|
|
2291
3364
|
/*#__PURE__*/
|
|
2292
3365
|
function () {
|
|
2293
|
-
var _ref =
|
|
3366
|
+
var _ref = asyncToGenerator(function* (evn) {
|
|
2294
3367
|
evn.preventDefault();
|
|
2295
3368
|
const {
|
|
2296
3369
|
handleProcess
|
|
@@ -2298,7 +3371,7 @@ class Feed extends Component {
|
|
|
2298
3371
|
return handleProcess(
|
|
2299
3372
|
/*#__PURE__*/
|
|
2300
3373
|
function () {
|
|
2301
|
-
var _ref2 =
|
|
3374
|
+
var _ref2 = asyncToGenerator(function* (api) {
|
|
2302
3375
|
const {
|
|
2303
3376
|
link = getCurrentHref(),
|
|
2304
3377
|
display,
|
|
@@ -2359,7 +3432,7 @@ class Feed extends Component {
|
|
|
2359
3432
|
|
|
2360
3433
|
}
|
|
2361
3434
|
|
|
2362
|
-
|
|
3435
|
+
defineProperty(Feed, "defaultProps", {
|
|
2363
3436
|
link: undefined,
|
|
2364
3437
|
display: undefined,
|
|
2365
3438
|
appId: undefined,
|
|
@@ -2379,7 +3452,7 @@ forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
|
2379
3452
|
handleProcess,
|
|
2380
3453
|
error,
|
|
2381
3454
|
data
|
|
2382
|
-
}) => React__default.createElement(Feed,
|
|
3455
|
+
}) => React__default.createElement(Feed, _extends_1({}, props, {
|
|
2383
3456
|
loading: loading,
|
|
2384
3457
|
handleProcess: handleProcess,
|
|
2385
3458
|
data: data,
|
|
@@ -2418,7 +3491,7 @@ class Group extends PureComponent {
|
|
|
2418
3491
|
|
|
2419
3492
|
}
|
|
2420
3493
|
|
|
2421
|
-
|
|
3494
|
+
defineProperty(Group, "defaultProps", {
|
|
2422
3495
|
showSocialContext: undefined,
|
|
2423
3496
|
showMetaData: undefined,
|
|
2424
3497
|
width: undefined,
|
|
@@ -2430,7 +3503,7 @@ _defineProperty(Group, "defaultProps", {
|
|
|
2430
3503
|
|
|
2431
3504
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2432
3505
|
handleParse
|
|
2433
|
-
}) => React__default.createElement(Group,
|
|
3506
|
+
}) => React__default.createElement(Group, _extends_1({}, props, {
|
|
2434
3507
|
handleParse: handleParse,
|
|
2435
3508
|
ref: ref
|
|
2436
3509
|
}))));
|
|
@@ -2442,12 +3515,12 @@ class LoginStatus$1 extends Component {
|
|
|
2442
3515
|
super(..._args);
|
|
2443
3516
|
_this = this;
|
|
2444
3517
|
|
|
2445
|
-
|
|
3518
|
+
defineProperty(this, "state", {});
|
|
2446
3519
|
|
|
2447
|
-
|
|
3520
|
+
defineProperty(this, "handleReady",
|
|
2448
3521
|
/*#__PURE__*/
|
|
2449
3522
|
function () {
|
|
2450
|
-
var _ref =
|
|
3523
|
+
var _ref = asyncToGenerator(function* (api) {
|
|
2451
3524
|
const {
|
|
2452
3525
|
event
|
|
2453
3526
|
} = _this.props;
|
|
@@ -2464,7 +3537,7 @@ class LoginStatus$1 extends Component {
|
|
|
2464
3537
|
};
|
|
2465
3538
|
}());
|
|
2466
3539
|
|
|
2467
|
-
|
|
3540
|
+
defineProperty(this, "handleChange", (...args) => {
|
|
2468
3541
|
const {
|
|
2469
3542
|
onChange
|
|
2470
3543
|
} = this.props;
|
|
@@ -2501,7 +3574,7 @@ class LoginStatus$1 extends Component {
|
|
|
2501
3574
|
|
|
2502
3575
|
}
|
|
2503
3576
|
|
|
2504
|
-
|
|
3577
|
+
defineProperty(LoginStatus$1, "defaultProps", {
|
|
2505
3578
|
onChange: undefined
|
|
2506
3579
|
});
|
|
2507
3580
|
|
|
@@ -2512,14 +3585,14 @@ class Profile extends Component {
|
|
|
2512
3585
|
super(...args);
|
|
2513
3586
|
_this = this;
|
|
2514
3587
|
|
|
2515
|
-
|
|
3588
|
+
defineProperty(this, "state", {
|
|
2516
3589
|
loading: true
|
|
2517
3590
|
});
|
|
2518
3591
|
|
|
2519
|
-
|
|
3592
|
+
defineProperty(this, "handleReady",
|
|
2520
3593
|
/*#__PURE__*/
|
|
2521
3594
|
function () {
|
|
2522
|
-
var _ref =
|
|
3595
|
+
var _ref = asyncToGenerator(function* (api) {
|
|
2523
3596
|
_this.api = api;
|
|
2524
3597
|
|
|
2525
3598
|
_this.updateProfile();
|
|
@@ -2530,7 +3603,7 @@ class Profile extends Component {
|
|
|
2530
3603
|
};
|
|
2531
3604
|
}());
|
|
2532
3605
|
|
|
2533
|
-
|
|
3606
|
+
defineProperty(this, "handleStatusChange", () => {
|
|
2534
3607
|
this.updateProfile();
|
|
2535
3608
|
});
|
|
2536
3609
|
}
|
|
@@ -2538,7 +3611,7 @@ class Profile extends Component {
|
|
|
2538
3611
|
updateProfile() {
|
|
2539
3612
|
var _this2 = this;
|
|
2540
3613
|
|
|
2541
|
-
return
|
|
3614
|
+
return asyncToGenerator(function* () {
|
|
2542
3615
|
const {
|
|
2543
3616
|
api,
|
|
2544
3617
|
props: {
|
|
@@ -2605,7 +3678,7 @@ class Profile extends Component {
|
|
|
2605
3678
|
|
|
2606
3679
|
}
|
|
2607
3680
|
|
|
2608
|
-
|
|
3681
|
+
defineProperty(Profile, "defaultProps", {
|
|
2609
3682
|
fields: Fields
|
|
2610
3683
|
});
|
|
2611
3684
|
|
|
@@ -2642,7 +3715,7 @@ class CustomChat extends PureComponent {
|
|
|
2642
3715
|
|
|
2643
3716
|
}
|
|
2644
3717
|
|
|
2645
|
-
|
|
3718
|
+
defineProperty(CustomChat, "defaultProps", {
|
|
2646
3719
|
children: undefined,
|
|
2647
3720
|
themeColor: undefined,
|
|
2648
3721
|
loggedInGreeting: undefined,
|
|
@@ -2654,7 +3727,7 @@ _defineProperty(CustomChat, "defaultProps", {
|
|
|
2654
3727
|
|
|
2655
3728
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2656
3729
|
handleParse
|
|
2657
|
-
}) => React__default.createElement(CustomChat,
|
|
3730
|
+
}) => React__default.createElement(CustomChat, _extends_1({}, props, {
|
|
2658
3731
|
handleParse: handleParse,
|
|
2659
3732
|
ref: ref
|
|
2660
3733
|
}))));
|
|
@@ -2686,7 +3759,7 @@ class MessageUs extends PureComponent {
|
|
|
2686
3759
|
|
|
2687
3760
|
}
|
|
2688
3761
|
|
|
2689
|
-
|
|
3762
|
+
defineProperty(MessageUs, "defaultProps", {
|
|
2690
3763
|
color: undefined,
|
|
2691
3764
|
size: undefined,
|
|
2692
3765
|
children: undefined
|
|
@@ -2694,7 +3767,7 @@ _defineProperty(MessageUs, "defaultProps", {
|
|
|
2694
3767
|
|
|
2695
3768
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2696
3769
|
handleParse
|
|
2697
|
-
}) => React__default.createElement(MessageUs,
|
|
3770
|
+
}) => React__default.createElement(MessageUs, _extends_1({}, props, {
|
|
2698
3771
|
handleParse: handleParse,
|
|
2699
3772
|
ref: ref
|
|
2700
3773
|
}))));
|
|
@@ -2736,7 +3809,7 @@ class MessengerCheckbox extends PureComponent {
|
|
|
2736
3809
|
|
|
2737
3810
|
}
|
|
2738
3811
|
|
|
2739
|
-
|
|
3812
|
+
defineProperty(MessengerCheckbox, "defaultProps", {
|
|
2740
3813
|
size: undefined,
|
|
2741
3814
|
allowLogin: undefined,
|
|
2742
3815
|
prechecked: undefined,
|
|
@@ -2749,7 +3822,7 @@ _defineProperty(MessengerCheckbox, "defaultProps", {
|
|
|
2749
3822
|
|
|
2750
3823
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2751
3824
|
handleParse
|
|
2752
|
-
}) => React__default.createElement(MessengerCheckbox,
|
|
3825
|
+
}) => React__default.createElement(MessengerCheckbox, _extends_1({}, props, {
|
|
2753
3826
|
handleParse: handleParse,
|
|
2754
3827
|
ref: ref
|
|
2755
3828
|
}))));
|
|
@@ -2785,7 +3858,7 @@ class SendToMessenger extends PureComponent {
|
|
|
2785
3858
|
|
|
2786
3859
|
}
|
|
2787
3860
|
|
|
2788
|
-
|
|
3861
|
+
defineProperty(SendToMessenger, "defaultProps", {
|
|
2789
3862
|
color: undefined,
|
|
2790
3863
|
size: undefined,
|
|
2791
3864
|
dataRef: undefined,
|
|
@@ -2794,7 +3867,7 @@ _defineProperty(SendToMessenger, "defaultProps", {
|
|
|
2794
3867
|
|
|
2795
3868
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2796
3869
|
handleParse
|
|
2797
|
-
}) => React__default.createElement(SendToMessenger,
|
|
3870
|
+
}) => React__default.createElement(SendToMessenger, _extends_1({}, props, {
|
|
2798
3871
|
handleParse: handleParse,
|
|
2799
3872
|
ref: ref
|
|
2800
3873
|
}))));
|
|
@@ -3037,7 +4110,7 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
3037
4110
|
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(
|
|
3038
4111
|
'div',
|
|
3039
4112
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
3040
|
-
partnerDetails.description && React__default.createElement(BlockContent, _extends
|
|
4113
|
+
partnerDetails.description && React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
3041
4114
|
(partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(
|
|
3042
4115
|
'div',
|
|
3043
4116
|
null,
|