@mjhls/mjh-framework 1.0.881-beta.1 → 1.0.881-gtagfixv1
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 +10 -9
- package/dist/cjs/AD300x250.js +29 -28
- package/dist/cjs/AD300x250x600.js +29 -28
- package/dist/cjs/AD728x90.js +32 -31
- package/dist/cjs/ADFloatingFooter.js +31 -30
- package/dist/cjs/ADFooter.js +13 -12
- package/dist/cjs/ADGutter.js +31 -30
- package/dist/cjs/{ADInfeed-2e48af77.js → ADInfeed-bce0ba07.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +31 -30
- package/dist/cjs/ADSponsoredResources.js +31 -30
- package/dist/cjs/ADWebcast.js +31 -30
- package/dist/cjs/ADWelcome.js +32 -31
- package/dist/cjs/{ADlgInfeed-c39c7131.js → ADlgInfeed-950b414b.js} +11 -10
- package/dist/cjs/AccordionPanel.js +29 -27
- package/dist/cjs/AdSlot.js +32 -31
- package/dist/cjs/AdSlotsProvider.js +18 -909
- package/dist/cjs/AlgoliaSearch.js +1490 -1306
- package/dist/cjs/AlphabeticList.js +24 -23
- package/dist/cjs/ArticleCarousel.js +20 -19
- package/dist/cjs/ArticleProgramLandingPage.js +61 -60
- package/dist/cjs/ArticleSeriesLandingPage.js +41 -42
- package/dist/cjs/ArticleSeriesListing.js +60 -59
- package/dist/cjs/Auth.js +680 -1504
- package/dist/cjs/AuthWrapper.js +1637 -419
- package/dist/cjs/{AuthorComponent-02e827ae.js → AuthorComponent-39b37d84.js} +14 -13
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-9ebd251f.js} +56 -55
- package/dist/cjs/Breadcrumbs.js +27 -25
- package/dist/cjs/CMEDeck.js +81 -81
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +34 -31
- package/dist/cjs/Column3.js +60 -57
- package/dist/cjs/ConferenceArticleCard.js +41 -40
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +105 -101
- package/dist/cjs/DeckQueue.js +91 -388
- package/dist/cjs/{Dfp-14d2455c.js → Dfp-9be904d5.js} +33 -32
- package/dist/cjs/EventsDeck.js +157 -150
- package/dist/cjs/ExternalResources.js +79 -78
- package/dist/cjs/Feature.js +29 -27
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +236 -231
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +58 -57
- package/dist/cjs/HamMagazine.js +144 -139
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +16 -15
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +72 -71
- package/dist/cjs/HorizontalHero.js +29 -28
- package/dist/cjs/IssueContentDeck.js +76 -71
- package/dist/cjs/IssueDeck.js +75 -70
- package/dist/cjs/IssueLanding.js +94 -94
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -37
- package/dist/cjs/MasterDeck.js +80 -482
- package/dist/cjs/MediaSeriesLanding.js +1238 -1590
- package/dist/cjs/NavDvm.js +77 -72
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +151 -146
- package/dist/cjs/NavNative.js +145 -137
- package/dist/cjs/OncliveHero.js +22 -22
- package/dist/cjs/OncliveLargeHero.js +71 -70
- package/dist/cjs/PageFilter.js +13 -12
- package/dist/cjs/PartnerDetailListing.js +304 -1479
- package/dist/cjs/PdfDownload.js +10 -9
- package/dist/cjs/PopUpModal.js +19 -17
- package/dist/cjs/PubSection.js +41 -41
- package/dist/cjs/PubToc.js +14 -13
- package/dist/cjs/PublicationDeck.js +70 -65
- package/dist/cjs/PublicationLanding.js +141 -133
- package/dist/cjs/QueueDeckExpanded.js +322 -1654
- package/dist/cjs/RecentNews.js +23 -22
- package/dist/cjs/RelatedContent.js +58 -57
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +20 -16
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +36 -36
- package/dist/cjs/{SeriesSlider-49b81b0b.js → SeriesSlider-ba0c5d1a.js} +40 -39
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +37 -36
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-e8477ca3.js → SocialSearchComponent-4942ddfc.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +66 -61
- package/dist/cjs/TaxonomyDescription.js +54 -53
- package/dist/cjs/TemplateNormal.js +73 -72
- package/dist/cjs/ThumbnailCard.js +26 -24
- package/dist/cjs/Ustream.js +29 -28
- package/dist/cjs/VerticalHero.js +20 -19
- package/dist/cjs/VideoProgramLandingPage.js +78 -74
- package/dist/cjs/VideoSeriesCard.js +33 -32
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +50 -51
- package/dist/cjs/VideoSeriesListing.js +77 -76
- package/dist/cjs/View.js +274 -268
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +68 -67
- package/dist/cjs/{_is-array-aa52fa1e.js → _is-array-54228b29.js} +6 -6
- package/dist/cjs/{_iter-detect-05795553.js → _iter-detect-b1df62f0.js} +7 -7
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-171b9ea5.js → _object-sap-d1978572.js} +1 -1
- package/dist/cjs/{_object-to-array-9bac8737.js → _object-to-array-ce86cae7.js} +2 -2
- package/dist/cjs/{asyncToGenerator-df19209d.js → asyncToGenerator-77821af0.js} +30 -30
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f3c44602.js → core.get-iterator-method-5643aa10.js} +35 -35
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-21887c62.js → define-property-e8404b64.js} +6 -6
- package/dist/cjs/{defineProperty-77a37684.js → defineProperty-9673846a.js} +1 -1
- package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
- package/dist/cjs/{entities-310b46ee.js → entities-df1aed86.js} +5 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{extends-eed4f016.js → extends-7c86182f.js} +7 -7
- package/dist/cjs/faundadb.js +19 -19
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +16 -16
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-8874437b.js → getTargeting-9d509319.js} +12 -12
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-e2e62963.js → index-50be6759.js} +26 -10
- package/dist/cjs/{index-bf60a71c.js → index-6763511d.js} +1070 -1044
- package/dist/cjs/{index-be0c82be.js → index-d48b231c.js} +31 -25
- package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
- package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index-98e01cb9.js → index-fc2f1ca2.js} +13 -12
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-90433435.js → index.esm-00a6aade.js} +7 -16
- package/dist/cjs/{index.esm-4d410430.js → index.esm-2bb721c8.js} +21 -21
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-c1e16606.js} +4 -7
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-f27f80d9.js} +6 -13
- package/dist/cjs/index.js +171 -165
- package/dist/cjs/{inherits-cba9c846.js → inherits-de66ea16.js} +19 -19
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/{keys-d207942e.js → keys-e982b3fa.js} +6 -6
- package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
- package/dist/cjs/main-f1c77adb.js +973 -0
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-f6d4eaa8.js → slicedToArray-067dd3bc.js} +12 -12
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/{stringify-bbc68047.js → stringify-f7a37a8d.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-c9b8a0d0.js → toConsumableArray-d7797c2b.js} +7 -7
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/cjs/{typeof-5f52cf64.js → typeof-567e31ff.js} +35 -35
- package/dist/cjs/urlFor.js +6 -6
- package/dist/cjs/{ustream-api-9ebe112f.js → ustream-api-3819e4aa.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-93a37fd0.js} +12 -1
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-e34bf324.js → web.dom.iterable-d98303e0.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +22 -22
- package/dist/esm/AD300x250x600.js +22 -22
- package/dist/esm/AD728x90.js +25 -25
- package/dist/esm/ADFloatingFooter.js +21 -21
- package/dist/esm/ADFooter.js +4 -4
- package/dist/esm/ADGutter.js +21 -21
- package/dist/esm/{ADInfeed-0c13c803.js → ADInfeed-0a55cd2d.js} +6 -6
- package/dist/esm/ADSkyscraper.js +21 -21
- package/dist/esm/ADSponsoredResources.js +21 -21
- package/dist/esm/ADWebcast.js +21 -21
- package/dist/esm/ADWelcome.js +18 -18
- package/dist/esm/{ADlgInfeed-e4e2031a.js → ADlgInfeed-013e1f4a.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +20 -20
- package/dist/esm/AdSlotsProvider.js +14 -906
- package/dist/esm/AlgoliaSearch.js +717 -534
- package/dist/esm/AlphabeticList.js +8 -8
- package/dist/esm/ArticleCarousel.js +13 -13
- package/dist/esm/ArticleProgramLandingPage.js +48 -48
- package/dist/esm/ArticleSeriesLandingPage.js +30 -32
- package/dist/esm/ArticleSeriesListing.js +32 -32
- package/dist/esm/Auth.js +591 -1419
- package/dist/esm/AuthWrapper.js +1609 -392
- package/dist/esm/{AuthorComponent-e6f95c2f.js → AuthorComponent-11adff02.js} +1 -1
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-1e73bd2c.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +22 -22
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +19 -19
- package/dist/esm/Column3.js +37 -37
- package/dist/esm/ConferenceArticleCard.js +25 -25
- package/dist/esm/DeckContent.js +55 -55
- package/dist/esm/DeckQueue.js +48 -349
- package/dist/esm/{Dfp-f867d061.js → Dfp-102f0beb.js} +13 -13
- package/dist/esm/EventsDeck.js +67 -67
- package/dist/esm/ExternalResources.js +46 -46
- package/dist/esm/Feature.js +7 -7
- package/dist/esm/ForbesHero.js +10 -10
- package/dist/esm/GridContent.js +88 -88
- package/dist/esm/GridHero.js +11 -11
- package/dist/esm/GroupDeck.js +12 -12
- package/dist/esm/HamMagazine.js +37 -37
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +46 -46
- package/dist/esm/HorizontalHero.js +8 -8
- package/dist/esm/IssueContentDeck.js +25 -25
- package/dist/esm/IssueDeck.js +35 -35
- package/dist/esm/IssueLanding.js +82 -83
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +20 -20
- package/dist/esm/MasterDeck.js +45 -448
- package/dist/esm/MediaSeriesLanding.js +757 -1112
- package/dist/esm/NavDvm.js +14 -14
- package/dist/esm/NavMagazine.js +42 -42
- package/dist/esm/NavNative.js +41 -41
- package/dist/esm/OncliveHero.js +7 -8
- package/dist/esm/OncliveLargeHero.js +11 -11
- package/dist/esm/PageFilter.js +4 -4
- package/dist/esm/PartnerDetailListing.js +210 -1386
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +4 -4
- package/dist/esm/PubSection.js +32 -33
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +27 -27
- package/dist/esm/PublicationLanding.js +78 -74
- package/dist/esm/QueueDeckExpanded.js +64 -1396
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +38 -38
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +6 -6
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +18 -18
- package/dist/esm/{SeriesSlider-ce19fa25.js → SeriesSlider-45adb8dc.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialSearchComponent-b5be0e6c.js → SocialSearchComponent-8e0fcf66.js} +12 -12
- package/dist/esm/TaxonomyCard.js +27 -27
- package/dist/esm/TaxonomyDescription.js +44 -44
- package/dist/esm/TemplateNormal.js +48 -48
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +12 -12
- package/dist/esm/VerticalHero.js +6 -6
- package/dist/esm/VideoProgramLandingPage.js +52 -52
- package/dist/esm/VideoSeriesCard.js +14 -14
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +36 -38
- package/dist/esm/VideoSeriesListing.js +33 -33
- package/dist/esm/View.js +95 -93
- package/dist/esm/YahooHero.js +13 -13
- package/dist/esm/YoutubeGroup.js +21 -21
- package/dist/esm/{_is-array-4df618a6.js → _is-array-8d21b9e3.js} +6 -6
- package/dist/esm/{_iter-detect-130ee549.js → _iter-detect-98db3b07.js} +7 -7
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-8b8ea5a9.js → _object-sap-7cee6f84.js} +1 -1
- package/dist/esm/{_object-to-array-c54dd835.js → _object-to-array-2300e51b.js} +2 -2
- package/dist/esm/{asyncToGenerator-64812e90.js → asyncToGenerator-5ef104a7.js} +31 -31
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-57a70a56.js} +5 -4
- package/dist/esm/{core.get-iterator-method-86d4db69.js → core.get-iterator-method-ea258bb1.js} +36 -36
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/define-property-5f1bda73.js +18 -0
- package/dist/esm/defineProperty-23a8f8cd.js +68 -0
- package/dist/esm/{defineProperty-d7d9b577.js → defineProperty-8c30428f.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-6d9154b4.js} +5 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{extends-5b1796d4.js → extends-6d8e3924.js} +7 -7
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +11 -11
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-277c801e.js → getTargeting-4061f839.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -8
- package/dist/esm/{index-e495ac6f.js → index-3ccc6d4b.js} +634 -618
- package/dist/esm/{index-73819142.js → index-3f5c03b2.js} +31 -25
- package/dist/esm/{index-5f7e79e7.js → index-755f2cc2.js} +6 -6
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index-aaa2dae0.js → index-98ca9cec.js} +26 -11
- package/dist/esm/{index-41a678ea.js → index-f0fc23eb.js} +4 -4
- package/dist/esm/{index.es-29c1cef5.js → index.es-a6137319.js} +23 -5
- package/dist/esm/{index.esm-fd746768.js → index.esm-37268dca.js} +4 -5
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-9b042655.js} +4 -7
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-d4932dea.js} +6 -13
- package/dist/esm/{index.esm-29e48d38.js → index.esm-f6156a57.js} +7 -16
- package/dist/esm/index.js +126 -123
- package/dist/esm/{inherits-2409637d.js → inherits-a6ba2ec4.js} +18 -18
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-69989821.js → keys-31dcdb31.js} +6 -6
- package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
- package/dist/esm/main-1894c974.js +961 -0
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-9be47857.js} +16 -16
- package/dist/esm/{slicedToArray-67a08c9c.js → slicedToArray-6ebcbfea.js} +12 -12
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-2b084bee.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-32282905.js → toConsumableArray-f7074d7c.js} +7 -7
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/dist/esm/{typeof-c05a82ba.js → typeof-e9fc0c5d.js} +35 -35
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-4c4fe0ba.js → ustream-api-d3714624.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-8ed16d48.js} +12 -1
- package/dist/esm/{web.dom.iterable-f8f967cd.js → web.dom.iterable-ab4dea5c.js} +2 -2
- package/package.json +112 -112
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/Pagination-f3ef7bc1.js +0 -59
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/esm/Pagination-a24855d4.js +0 -54
- package/dist/esm/define-property-6d26cb48.js +0 -18
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- package/dist/esm/main-c0612122.js +0 -851
- package/dist/esm/stringify-70b72959.js +0 -15
|
@@ -1,1228 +1,76 @@
|
|
|
1
|
+
import { a as _asyncToGenerator$1, r as regenerator, _ as _Promise } from './asyncToGenerator-5ef104a7.js';
|
|
2
|
+
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
3
|
+
import { _ as _extends$1 } from './extends-6d8e3924.js';
|
|
4
|
+
import React__default, { createContext, Component, forwardRef, PureComponent, useRef, useState, useEffect } from 'react';
|
|
5
|
+
import { TwitterTimelineEmbed } from 'react-twitter-embed';
|
|
6
|
+
import { _ as _asyncToGenerator, a as _defineProperty } from './defineProperty-23a8f8cd.js';
|
|
1
7
|
import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import '
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
13
|
-
import './
|
|
14
|
-
import
|
|
15
|
-
import './
|
|
16
|
-
import './
|
|
17
|
-
import
|
|
18
|
-
import '
|
|
19
|
-
import 'react-bootstrap
|
|
20
|
-
import '
|
|
21
|
-
import
|
|
22
|
-
import '
|
|
23
|
-
import './
|
|
24
|
-
import './
|
|
25
|
-
import '
|
|
26
|
-
import './index
|
|
27
|
-
import '
|
|
28
|
-
import './
|
|
29
|
-
import
|
|
30
|
-
import '
|
|
31
|
-
import
|
|
32
|
-
import './
|
|
33
|
-
import './
|
|
34
|
-
import './
|
|
35
|
-
import './
|
|
36
|
-
import
|
|
37
|
-
import './Segment.js';
|
|
38
|
-
import './
|
|
39
|
-
import './
|
|
40
|
-
import './
|
|
41
|
-
import './
|
|
42
|
-
import './
|
|
43
|
-
import '
|
|
44
|
-
import '
|
|
45
|
-
import '
|
|
46
|
-
import './
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import './
|
|
50
|
-
import
|
|
51
|
-
import './
|
|
52
|
-
import '
|
|
53
|
-
import '
|
|
54
|
-
import
|
|
55
|
-
import '
|
|
56
|
-
import '
|
|
57
|
-
import
|
|
58
|
-
import '
|
|
59
|
-
import './
|
|
60
|
-
import '
|
|
61
|
-
import '
|
|
62
|
-
import './
|
|
63
|
-
import './
|
|
64
|
-
import 'react-bootstrap/
|
|
65
|
-
import 'react-bootstrap/
|
|
66
|
-
import 'react-bootstrap/
|
|
67
|
-
import 'react-bootstrap/
|
|
68
|
-
import 'react-bootstrap/Popover';
|
|
69
|
-
import { _ as _defineProperty$1, b as _inherits, c as _classCallCheck, d as _possibleConstructorReturn, e as _getPrototypeOf, g as _createClass } from './inherits-77d5e4fc.js';
|
|
70
|
-
import 'react-bootstrap/Carousel';
|
|
71
|
-
import Feature from './Feature.js';
|
|
72
|
-
import 'react-bootstrap/Breadcrumb';
|
|
73
|
-
import Breadcrumbs from './Breadcrumbs.js';
|
|
74
|
-
|
|
75
|
-
var isRequiredIf_1 = createCommonjsModule(function (module, exports) {
|
|
76
|
-
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.
|
|
77
|
-
}};exports.default=isRequiredIf;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
var isRequiredIf = unwrapExports(isRequiredIf_1);
|
|
83
|
-
|
|
84
|
-
var exenv = createCommonjsModule(function (module) {
|
|
85
|
-
/*!
|
|
86
|
-
Copyright (c) 2015 Jed Watson.
|
|
87
|
-
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
88
|
-
All rights reserved.
|
|
89
|
-
*/
|
|
90
|
-
/* global define */
|
|
91
|
-
|
|
92
|
-
(function () {
|
|
93
|
-
|
|
94
|
-
var canUseDOM = !!(
|
|
95
|
-
typeof window !== 'undefined' &&
|
|
96
|
-
window.document &&
|
|
97
|
-
window.document.createElement
|
|
98
|
-
);
|
|
99
|
-
|
|
100
|
-
var ExecutionEnvironment = {
|
|
101
|
-
|
|
102
|
-
canUseDOM: canUseDOM,
|
|
103
|
-
|
|
104
|
-
canUseWorkers: typeof Worker !== 'undefined',
|
|
105
|
-
|
|
106
|
-
canUseEventListeners:
|
|
107
|
-
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
108
|
-
|
|
109
|
-
canUseViewport: canUseDOM && !!window.screen
|
|
110
|
-
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
if ( module.exports) {
|
|
114
|
-
module.exports = ExecutionEnvironment;
|
|
115
|
-
} else {
|
|
116
|
-
window.ExecutionEnvironment = ExecutionEnvironment;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
}());
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
var twitterWidgetJs = 'https://platform.twitter.com/widgets.js';
|
|
123
|
-
|
|
124
|
-
var TwitterTimelineEmbed =
|
|
125
|
-
/*#__PURE__*/
|
|
126
|
-
function (_Component) {
|
|
127
|
-
_inherits(TwitterTimelineEmbed, _Component);
|
|
128
|
-
|
|
129
|
-
function TwitterTimelineEmbed(props) {
|
|
130
|
-
var _this;
|
|
131
|
-
|
|
132
|
-
_classCallCheck(this, TwitterTimelineEmbed);
|
|
133
|
-
|
|
134
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTimelineEmbed).call(this, props));
|
|
135
|
-
_this.state = {
|
|
136
|
-
isLoading: true
|
|
137
|
-
};
|
|
138
|
-
return _this;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
_createClass(TwitterTimelineEmbed, [{
|
|
142
|
-
key: "buildChromeOptions",
|
|
143
|
-
value: function buildChromeOptions(options) {
|
|
144
|
-
options.chrome = '';
|
|
145
|
-
|
|
146
|
-
if (this.props.noHeader) {
|
|
147
|
-
options.chrome = options.chrome + ' noheader';
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
if (this.props.noFooter) {
|
|
151
|
-
options.chrome = options.chrome + ' nofooter';
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
if (this.props.noBorders) {
|
|
155
|
-
options.chrome = options.chrome + ' noborders';
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
if (this.props.noScrollbar) {
|
|
159
|
-
options.chrome = options.chrome + ' noscrollbar';
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
if (this.props.transparent) {
|
|
163
|
-
options.chrome = options.chrome + ' transparent';
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
return options;
|
|
167
|
-
}
|
|
168
|
-
}, {
|
|
169
|
-
key: "buildOptions",
|
|
170
|
-
value: function buildOptions() {
|
|
171
|
-
var options = Object.assign({}, this.props.options);
|
|
172
|
-
|
|
173
|
-
if (this.props.autoHeight) {
|
|
174
|
-
options.height = this.refs.embedContainer.parentNode.offsetHeight;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
options = Object.assign({}, options, {
|
|
178
|
-
theme: this.props.theme,
|
|
179
|
-
linkColor: this.props.linkColor,
|
|
180
|
-
borderColor: this.props.borderColor,
|
|
181
|
-
lang: this.props.lang
|
|
182
|
-
});
|
|
183
|
-
return options;
|
|
184
|
-
}
|
|
185
|
-
}, {
|
|
186
|
-
key: "renderWidget",
|
|
187
|
-
value: function renderWidget(options) {
|
|
188
|
-
var _this2 = this;
|
|
189
|
-
|
|
190
|
-
var onLoad = this.props.onLoad;
|
|
191
|
-
|
|
192
|
-
if (!this.isMountCanceled) {
|
|
193
|
-
window.twttr.widgets.createTimeline({
|
|
194
|
-
sourceType: this.props.sourceType,
|
|
195
|
-
screenName: this.props.screenName,
|
|
196
|
-
userId: this.props.userId,
|
|
197
|
-
ownerScreenName: this.props.ownerScreenName,
|
|
198
|
-
slug: this.props.slug,
|
|
199
|
-
id: this.props.id || this.props.widgetId,
|
|
200
|
-
url: this.props.url
|
|
201
|
-
}, this.refs.embedContainer, options).then(function (element) {
|
|
202
|
-
_this2.setState({
|
|
203
|
-
isLoading: false
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
if (onLoad) {
|
|
207
|
-
onLoad(element);
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}, {
|
|
213
|
-
key: "componentDidMount",
|
|
214
|
-
value: function componentDidMount() {
|
|
215
|
-
var _this3 = this;
|
|
216
|
-
|
|
217
|
-
if (exenv.canUseDOM) {
|
|
218
|
-
var script = require('scriptjs');
|
|
219
|
-
|
|
220
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
221
|
-
if (!window.twttr) {
|
|
222
|
-
console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.');
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
var options = _this3.buildOptions();
|
|
227
|
-
/** Append chrome options */
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
options = _this3.buildChromeOptions(options);
|
|
231
|
-
|
|
232
|
-
_this3.renderWidget(options);
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}, {
|
|
237
|
-
key: "componentWillUnmount",
|
|
238
|
-
value: function componentWillUnmount() {
|
|
239
|
-
this.isMountCanceled = true;
|
|
240
|
-
}
|
|
241
|
-
}, {
|
|
242
|
-
key: "render",
|
|
243
|
-
value: function render() {
|
|
244
|
-
var isLoading = this.state.isLoading;
|
|
245
|
-
var placeholder = this.props.placeholder;
|
|
246
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
247
|
-
ref: "embedContainer"
|
|
248
|
-
}));
|
|
249
|
-
}
|
|
250
|
-
}]);
|
|
251
|
-
|
|
252
|
-
return TwitterTimelineEmbed;
|
|
253
|
-
}(Component);
|
|
254
|
-
|
|
255
|
-
_defineProperty$1(TwitterTimelineEmbed, "propTypes", {
|
|
256
|
-
/**
|
|
257
|
-
* This can be either of profile, likes, list, collection, URL, widget
|
|
258
|
-
*/
|
|
259
|
-
sourceType: PropTypes.oneOf(['profile', 'likes', 'list', 'collection', 'url', 'widget']).isRequired,
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* username of twitter handle as String
|
|
263
|
-
*/
|
|
264
|
-
screenName: isRequiredIf(PropTypes.string, function (props) {
|
|
265
|
-
return !props.hasOwnProperty('userId') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
266
|
-
}),
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* UserId of twitter handle as number
|
|
270
|
-
*/
|
|
271
|
-
userId: isRequiredIf(PropTypes.number, function (props) {
|
|
272
|
-
return !props.hasOwnProperty('screenName') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
273
|
-
}),
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* To show list, used along with slug
|
|
277
|
-
*/
|
|
278
|
-
ownerScreenName: isRequiredIf(PropTypes.string, function (props) {
|
|
279
|
-
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
280
|
-
}),
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* To show list, used along with ownerScreenName
|
|
284
|
-
*/
|
|
285
|
-
slug: isRequiredIf(PropTypes.string, function (props) {
|
|
286
|
-
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
287
|
-
}),
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* To show list, unique list id
|
|
291
|
-
* Also used with collections, in that case its valid collection id
|
|
292
|
-
*/
|
|
293
|
-
id: isRequiredIf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]), function (props) {
|
|
294
|
-
return props.sourceType === 'list' && !props.hasOwnProperty('ownerScreenName') && !props.hasOwnProperty('slug') || props.sourceType === 'collection';
|
|
295
|
-
}),
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* To show twitter content with url.
|
|
299
|
-
* Supported content includes profiles, likes, lists, and collections.
|
|
300
|
-
*/
|
|
301
|
-
url: isRequiredIf(PropTypes.string, function (props) {
|
|
302
|
-
return props.sourceType === 'url';
|
|
303
|
-
}),
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* To show custom widget
|
|
307
|
-
*/
|
|
308
|
-
widgetId: isRequiredIf(PropTypes.string, function (props) {
|
|
309
|
-
return props.sourceType === 'widget';
|
|
310
|
-
}),
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Additional options to pass to twitter widget plugin
|
|
314
|
-
*/
|
|
315
|
-
options: PropTypes.object,
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* Automatically fit into parent container height
|
|
319
|
-
*/
|
|
320
|
-
autoHeight: PropTypes.bool,
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* With dark or light theme
|
|
324
|
-
*/
|
|
325
|
-
theme: PropTypes.oneOf(['dark', 'light']),
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* With custom link colors. Note: Only Hex colors are supported.
|
|
329
|
-
*/
|
|
330
|
-
linkColor: PropTypes.string,
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* With custom border colors. Note: Only Hex colors are supported.
|
|
334
|
-
*/
|
|
335
|
-
borderColor: PropTypes.string,
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* Hide the header from timeline
|
|
339
|
-
*/
|
|
340
|
-
noHeader: PropTypes.bool,
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* Hide the footer from timeline
|
|
344
|
-
*/
|
|
345
|
-
noFooter: PropTypes.bool,
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* Hide the border from timeline
|
|
349
|
-
*/
|
|
350
|
-
noBorders: PropTypes.bool,
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* Hide the scrollbars
|
|
354
|
-
*/
|
|
355
|
-
noScrollbar: PropTypes.bool,
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* Enable Transparancy
|
|
359
|
-
*/
|
|
360
|
-
transparent: PropTypes.bool,
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Custom language code. Supported codes here: https://developer.twitter.com/en/docs/twitter-for-websites/twitter-for-websites-supported-languages/overview.html
|
|
364
|
-
*/
|
|
365
|
-
lang: PropTypes.string,
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* Placeholder while tweet is loading
|
|
369
|
-
*/
|
|
370
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* Function to execute after load, return html element
|
|
374
|
-
*/
|
|
375
|
-
onLoad: PropTypes.func
|
|
376
|
-
});
|
|
377
|
-
|
|
378
|
-
var TwitterShareButton =
|
|
379
|
-
/*#__PURE__*/
|
|
380
|
-
function (_Component) {
|
|
381
|
-
_inherits(TwitterShareButton, _Component);
|
|
382
|
-
|
|
383
|
-
function TwitterShareButton(props) {
|
|
384
|
-
var _this;
|
|
385
|
-
|
|
386
|
-
_classCallCheck(this, TwitterShareButton);
|
|
387
|
-
|
|
388
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterShareButton).call(this, props));
|
|
389
|
-
_this.state = {
|
|
390
|
-
isLoading: true
|
|
391
|
-
};
|
|
392
|
-
return _this;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
_createClass(TwitterShareButton, [{
|
|
396
|
-
key: "componentDidMount",
|
|
397
|
-
value: function componentDidMount() {
|
|
398
|
-
var _this2 = this;
|
|
399
|
-
|
|
400
|
-
var onLoad = this.props.onLoad;
|
|
401
|
-
|
|
402
|
-
if (exenv.canUseDOM) {
|
|
403
|
-
var script = require('scriptjs');
|
|
404
|
-
|
|
405
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
406
|
-
if (!window.twttr) {
|
|
407
|
-
console.error('Failure to load window.twttr in TwitterShareButton, aborting load.');
|
|
408
|
-
return;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
if (!_this2.isMountCanceled) {
|
|
412
|
-
window.twttr.widgets.createShareButton(_this2.props.url, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
413
|
-
_this2.setState({
|
|
414
|
-
isLoading: false
|
|
415
|
-
});
|
|
416
|
-
|
|
417
|
-
if (onLoad) {
|
|
418
|
-
onLoad(element);
|
|
419
|
-
}
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
}, {
|
|
426
|
-
key: "componentWillUnmount",
|
|
427
|
-
value: function componentWillUnmount() {
|
|
428
|
-
this.isMountCanceled = true;
|
|
429
|
-
}
|
|
430
|
-
}, {
|
|
431
|
-
key: "render",
|
|
432
|
-
value: function render() {
|
|
433
|
-
var isLoading = this.state.isLoading;
|
|
434
|
-
var placeholder = this.props.placeholder;
|
|
435
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
436
|
-
ref: "embedContainer"
|
|
437
|
-
}));
|
|
438
|
-
}
|
|
439
|
-
}]);
|
|
440
|
-
|
|
441
|
-
return TwitterShareButton;
|
|
442
|
-
}(Component);
|
|
443
|
-
|
|
444
|
-
_defineProperty$1(TwitterShareButton, "propTypes", {
|
|
445
|
-
/**
|
|
446
|
-
* Url for sharing
|
|
447
|
-
*/
|
|
448
|
-
url: PropTypes.string.isRequired,
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Additional options for overriding config. Details at : https://dev.twitter.com/web/tweet-button/parameters
|
|
452
|
-
*/
|
|
453
|
-
options: PropTypes.object,
|
|
454
|
-
|
|
455
|
-
/**
|
|
456
|
-
* Placeholder while tweet is loading
|
|
457
|
-
*/
|
|
458
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
459
|
-
|
|
460
|
-
/**
|
|
461
|
-
* Function to execute after load, return html element
|
|
462
|
-
*/
|
|
463
|
-
onLoad: PropTypes.func
|
|
464
|
-
});
|
|
465
|
-
|
|
466
|
-
var TwitterFollowButton =
|
|
467
|
-
/*#__PURE__*/
|
|
468
|
-
function (_Component) {
|
|
469
|
-
_inherits(TwitterFollowButton, _Component);
|
|
470
|
-
|
|
471
|
-
function TwitterFollowButton(props) {
|
|
472
|
-
var _this;
|
|
473
|
-
|
|
474
|
-
_classCallCheck(this, TwitterFollowButton);
|
|
475
|
-
|
|
476
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterFollowButton).call(this, props));
|
|
477
|
-
_this.state = {
|
|
478
|
-
isLoading: true
|
|
479
|
-
};
|
|
480
|
-
return _this;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
_createClass(TwitterFollowButton, [{
|
|
484
|
-
key: "componentDidMount",
|
|
485
|
-
value: function componentDidMount() {
|
|
486
|
-
var _this2 = this;
|
|
487
|
-
|
|
488
|
-
var onLoad = this.props.onLoad;
|
|
489
|
-
|
|
490
|
-
if (exenv.canUseDOM) {
|
|
491
|
-
var script = require('scriptjs');
|
|
492
|
-
|
|
493
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
494
|
-
if (!window.twttr) {
|
|
495
|
-
console.error('Failure to load window.twttr in TwitterFollowButton, aborting load.');
|
|
496
|
-
return;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
if (!_this2.isMountCanceled) {
|
|
500
|
-
window.twttr.widgets.createFollowButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
501
|
-
_this2.setState({
|
|
502
|
-
isLoading: false
|
|
503
|
-
});
|
|
504
|
-
|
|
505
|
-
if (onLoad) {
|
|
506
|
-
onLoad(element);
|
|
507
|
-
}
|
|
508
|
-
});
|
|
509
|
-
}
|
|
510
|
-
});
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
}, {
|
|
514
|
-
key: "componentWillUnmount",
|
|
515
|
-
value: function componentWillUnmount() {
|
|
516
|
-
this.isMountCanceled = true;
|
|
517
|
-
}
|
|
518
|
-
}, {
|
|
519
|
-
key: "render",
|
|
520
|
-
value: function render() {
|
|
521
|
-
var isLoading = this.state.isLoading;
|
|
522
|
-
var placeholder = this.props.placeholder;
|
|
523
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
524
|
-
ref: "embedContainer"
|
|
525
|
-
}));
|
|
526
|
-
}
|
|
527
|
-
}]);
|
|
528
|
-
|
|
529
|
-
return TwitterFollowButton;
|
|
530
|
-
}(Component);
|
|
531
|
-
|
|
532
|
-
_defineProperty$1(TwitterFollowButton, "propTypes", {
|
|
533
|
-
/**
|
|
534
|
-
* Username of twitter user which will be followed on click
|
|
535
|
-
*/
|
|
536
|
-
screenName: PropTypes.string.isRequired,
|
|
537
|
-
|
|
538
|
-
/**
|
|
539
|
-
* Additional options to be added to the button
|
|
540
|
-
*/
|
|
541
|
-
options: PropTypes.object,
|
|
542
|
-
|
|
543
|
-
/**
|
|
544
|
-
* Placeholder while tweet is loading
|
|
545
|
-
*/
|
|
546
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
547
|
-
|
|
548
|
-
/**
|
|
549
|
-
* Function to execute after load, return html element
|
|
550
|
-
*/
|
|
551
|
-
onLoad: PropTypes.func
|
|
552
|
-
});
|
|
553
|
-
|
|
554
|
-
var TwitterHashtagButton =
|
|
555
|
-
/*#__PURE__*/
|
|
556
|
-
function (_Component) {
|
|
557
|
-
_inherits(TwitterHashtagButton, _Component);
|
|
558
|
-
|
|
559
|
-
function TwitterHashtagButton(props) {
|
|
560
|
-
var _this;
|
|
561
|
-
|
|
562
|
-
_classCallCheck(this, TwitterHashtagButton);
|
|
563
|
-
|
|
564
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterHashtagButton).call(this, props));
|
|
565
|
-
_this.state = {
|
|
566
|
-
isLoading: true
|
|
567
|
-
};
|
|
568
|
-
return _this;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
_createClass(TwitterHashtagButton, [{
|
|
572
|
-
key: "componentDidMount",
|
|
573
|
-
value: function componentDidMount() {
|
|
574
|
-
var _this2 = this;
|
|
575
|
-
|
|
576
|
-
var onLoad = this.props.onLoad;
|
|
577
|
-
|
|
578
|
-
if (exenv.canUseDOM) {
|
|
579
|
-
var script = require('scriptjs');
|
|
580
|
-
|
|
581
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
582
|
-
if (!window.twttr) {
|
|
583
|
-
console.error('Failure to load window.twttr in TwitterHashtagButton, aborting load.');
|
|
584
|
-
return;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
if (!_this2.isMountCanceled) {
|
|
588
|
-
window.twttr.widgets.createHashtagButton(_this2.props.tag, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
589
|
-
_this2.setState({
|
|
590
|
-
isLoading: false
|
|
591
|
-
});
|
|
592
|
-
|
|
593
|
-
if (onLoad) {
|
|
594
|
-
onLoad(element);
|
|
595
|
-
}
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
}, {
|
|
602
|
-
key: "componentWillUnmount",
|
|
603
|
-
value: function componentWillUnmount() {
|
|
604
|
-
this.isMountCanceled = true;
|
|
605
|
-
}
|
|
606
|
-
}, {
|
|
607
|
-
key: "render",
|
|
608
|
-
value: function render() {
|
|
609
|
-
var isLoading = this.state.isLoading;
|
|
610
|
-
var placeholder = this.props.placeholder;
|
|
611
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
612
|
-
ref: "embedContainer"
|
|
613
|
-
}));
|
|
614
|
-
}
|
|
615
|
-
}]);
|
|
616
|
-
|
|
617
|
-
return TwitterHashtagButton;
|
|
618
|
-
}(Component);
|
|
619
|
-
|
|
620
|
-
_defineProperty$1(TwitterHashtagButton, "propTypes", {
|
|
621
|
-
/**
|
|
622
|
-
* Tag name for hashtag button
|
|
623
|
-
*/
|
|
624
|
-
tag: PropTypes.string.isRequired,
|
|
625
|
-
|
|
626
|
-
/**
|
|
627
|
-
* Additional options to be added to the button
|
|
628
|
-
*/
|
|
629
|
-
options: PropTypes.object,
|
|
630
|
-
|
|
631
|
-
/**
|
|
632
|
-
* Placeholder while tweet is loading
|
|
633
|
-
*/
|
|
634
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
635
|
-
|
|
636
|
-
/**
|
|
637
|
-
* Function to execute after load, return html element
|
|
638
|
-
*/
|
|
639
|
-
onLoad: PropTypes.func
|
|
640
|
-
});
|
|
641
|
-
|
|
642
|
-
var TwitterMentionButton =
|
|
643
|
-
/*#__PURE__*/
|
|
644
|
-
function (_Component) {
|
|
645
|
-
_inherits(TwitterMentionButton, _Component);
|
|
646
|
-
|
|
647
|
-
function TwitterMentionButton(props) {
|
|
648
|
-
var _this;
|
|
649
|
-
|
|
650
|
-
_classCallCheck(this, TwitterMentionButton);
|
|
651
|
-
|
|
652
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMentionButton).call(this, props));
|
|
653
|
-
_this.state = {
|
|
654
|
-
isLoading: true
|
|
655
|
-
};
|
|
656
|
-
return _this;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
_createClass(TwitterMentionButton, [{
|
|
660
|
-
key: "componentDidMount",
|
|
661
|
-
value: function componentDidMount() {
|
|
662
|
-
var _this2 = this;
|
|
663
|
-
|
|
664
|
-
var onLoad = this.props.onLoad;
|
|
665
|
-
|
|
666
|
-
if (exenv.canUseDOM) {
|
|
667
|
-
var script = require('scriptjs');
|
|
668
|
-
|
|
669
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
670
|
-
if (!window.twttr) {
|
|
671
|
-
console.error('Failure to load window.twttr in TwitterMentionButton, aborting load.');
|
|
672
|
-
return;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
if (!_this2.isMountCanceled) {
|
|
676
|
-
window.twttr.widgets.createMentionButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
677
|
-
_this2.setState({
|
|
678
|
-
isLoading: false
|
|
679
|
-
});
|
|
680
|
-
|
|
681
|
-
if (onLoad) {
|
|
682
|
-
onLoad(element);
|
|
683
|
-
}
|
|
684
|
-
});
|
|
685
|
-
}
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
}, {
|
|
690
|
-
key: "componentWillUnmount",
|
|
691
|
-
value: function componentWillUnmount() {
|
|
692
|
-
this.isMountCanceled = true;
|
|
693
|
-
}
|
|
694
|
-
}, {
|
|
695
|
-
key: "render",
|
|
696
|
-
value: function render() {
|
|
697
|
-
var isLoading = this.state.isLoading;
|
|
698
|
-
var placeholder = this.props.placeholder;
|
|
699
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
700
|
-
ref: "embedContainer"
|
|
701
|
-
}));
|
|
702
|
-
}
|
|
703
|
-
}]);
|
|
704
|
-
|
|
705
|
-
return TwitterMentionButton;
|
|
706
|
-
}(Component);
|
|
707
|
-
|
|
708
|
-
_defineProperty$1(TwitterMentionButton, "propTypes", {
|
|
709
|
-
/**
|
|
710
|
-
* Username to which you will need to tweet
|
|
711
|
-
*/
|
|
712
|
-
screenName: PropTypes.string.isRequired,
|
|
713
|
-
|
|
714
|
-
/**
|
|
715
|
-
* Additional options for overriding config.
|
|
716
|
-
*/
|
|
717
|
-
options: PropTypes.object,
|
|
718
|
-
|
|
719
|
-
/**
|
|
720
|
-
* Placeholder while tweet is loading
|
|
721
|
-
*/
|
|
722
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* Function to execute after load, return html element
|
|
726
|
-
*/
|
|
727
|
-
onLoad: PropTypes.func
|
|
728
|
-
});
|
|
729
|
-
|
|
730
|
-
var TwitterTweetEmbed =
|
|
731
|
-
/*#__PURE__*/
|
|
732
|
-
function (_Component) {
|
|
733
|
-
_inherits(TwitterTweetEmbed, _Component);
|
|
734
|
-
|
|
735
|
-
function TwitterTweetEmbed(props) {
|
|
736
|
-
var _this;
|
|
737
|
-
|
|
738
|
-
_classCallCheck(this, TwitterTweetEmbed);
|
|
739
|
-
|
|
740
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTweetEmbed).call(this, props));
|
|
741
|
-
_this.state = {
|
|
742
|
-
isLoading: true
|
|
743
|
-
};
|
|
744
|
-
return _this;
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
_createClass(TwitterTweetEmbed, [{
|
|
748
|
-
key: "renderWidget",
|
|
749
|
-
value: function renderWidget() {
|
|
750
|
-
var _this2 = this;
|
|
751
|
-
|
|
752
|
-
var onLoad = this.props.onLoad;
|
|
753
|
-
|
|
754
|
-
if (!window.twttr) {
|
|
755
|
-
console.error('Failure to load window.twttr in TwitterTweetEmbed, aborting load.');
|
|
756
|
-
return;
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
if (!this.isMountCanceled) {
|
|
760
|
-
window.twttr.widgets.createTweet(this.props.tweetId, this.refs.embedContainer, this.props.options).then(function (element) {
|
|
761
|
-
_this2.setState({
|
|
762
|
-
isLoading: false
|
|
763
|
-
});
|
|
764
|
-
|
|
765
|
-
if (onLoad) {
|
|
766
|
-
onLoad(element);
|
|
767
|
-
}
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
}, {
|
|
772
|
-
key: "componentDidMount",
|
|
773
|
-
value: function componentDidMount() {
|
|
774
|
-
var _this3 = this;
|
|
775
|
-
|
|
776
|
-
if (exenv.canUseDOM) {
|
|
777
|
-
var script = require('scriptjs');
|
|
778
|
-
|
|
779
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
780
|
-
_this3.renderWidget();
|
|
781
|
-
});
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
}, {
|
|
785
|
-
key: "componentWillUnmount",
|
|
786
|
-
value: function componentWillUnmount() {
|
|
787
|
-
this.isMountCanceled = true;
|
|
788
|
-
}
|
|
789
|
-
}, {
|
|
790
|
-
key: "render",
|
|
791
|
-
value: function render() {
|
|
792
|
-
var isLoading = this.state.isLoading;
|
|
793
|
-
var placeholder = this.props.placeholder;
|
|
794
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
795
|
-
ref: "embedContainer"
|
|
796
|
-
}));
|
|
797
|
-
}
|
|
798
|
-
}]);
|
|
799
|
-
|
|
800
|
-
return TwitterTweetEmbed;
|
|
801
|
-
}(Component);
|
|
802
|
-
|
|
803
|
-
_defineProperty$1(TwitterTweetEmbed, "propTypes", {
|
|
804
|
-
/**
|
|
805
|
-
* Tweet id that needs to be shown
|
|
806
|
-
*/
|
|
807
|
-
tweetId: PropTypes.string.isRequired,
|
|
808
|
-
|
|
809
|
-
/**
|
|
810
|
-
* Additional options to pass to twitter widget plugin
|
|
811
|
-
*/
|
|
812
|
-
options: PropTypes.object,
|
|
813
|
-
|
|
814
|
-
/**
|
|
815
|
-
* Placeholder while tweet is loading
|
|
816
|
-
*/
|
|
817
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
818
|
-
|
|
819
|
-
/**
|
|
820
|
-
* Function to execute after load, return html element
|
|
821
|
-
*/
|
|
822
|
-
onLoad: PropTypes.func
|
|
823
|
-
});
|
|
824
|
-
|
|
825
|
-
var TwitterMomentShare =
|
|
826
|
-
/*#__PURE__*/
|
|
827
|
-
function (_Component) {
|
|
828
|
-
_inherits(TwitterMomentShare, _Component);
|
|
829
|
-
|
|
830
|
-
function TwitterMomentShare(props) {
|
|
831
|
-
var _this;
|
|
832
|
-
|
|
833
|
-
_classCallCheck(this, TwitterMomentShare);
|
|
834
|
-
|
|
835
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMomentShare).call(this, props));
|
|
836
|
-
_this.state = {
|
|
837
|
-
isLoading: true
|
|
838
|
-
};
|
|
839
|
-
return _this;
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
_createClass(TwitterMomentShare, [{
|
|
843
|
-
key: "componentDidMount",
|
|
844
|
-
value: function componentDidMount() {
|
|
845
|
-
var _this2 = this;
|
|
846
|
-
|
|
847
|
-
var onLoad = this.props.onLoad;
|
|
848
|
-
|
|
849
|
-
if (exenv.canUseDOM) {
|
|
850
|
-
var script = require('scriptjs');
|
|
851
|
-
|
|
852
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
853
|
-
if (!window.twttr) {
|
|
854
|
-
console.error('Failure to load window.twttr in TwitterMomentShare, aborting load.');
|
|
855
|
-
return;
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
if (!_this2.isMountCanceled) {
|
|
859
|
-
window.twttr.widgets.createMoment(_this2.props.momentId, _this2.refs.shareMoment, _this2.props.options).then(function (element) {
|
|
860
|
-
_this2.setState({
|
|
861
|
-
isLoading: false
|
|
862
|
-
});
|
|
863
|
-
|
|
864
|
-
if (onLoad) {
|
|
865
|
-
onLoad(element);
|
|
866
|
-
}
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
});
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
}, {
|
|
873
|
-
key: "componentWillUnmount",
|
|
874
|
-
value: function componentWillUnmount() {
|
|
875
|
-
this.isMountCanceled = true;
|
|
876
|
-
}
|
|
877
|
-
}, {
|
|
878
|
-
key: "render",
|
|
879
|
-
value: function render() {
|
|
880
|
-
var isLoading = this.state.isLoading;
|
|
881
|
-
var placeholder = this.props.placeholder;
|
|
882
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
883
|
-
ref: "shareMoment"
|
|
884
|
-
}));
|
|
885
|
-
}
|
|
886
|
-
}]);
|
|
887
|
-
|
|
888
|
-
return TwitterMomentShare;
|
|
889
|
-
}(Component);
|
|
890
|
-
|
|
891
|
-
_defineProperty$1(TwitterMomentShare, "propTypes", {
|
|
892
|
-
/**
|
|
893
|
-
* id of Twitter moment to show
|
|
894
|
-
*/
|
|
895
|
-
momentId: PropTypes.string.isRequired,
|
|
896
|
-
|
|
897
|
-
/**
|
|
898
|
-
* Additional options for overriding config.
|
|
899
|
-
*/
|
|
900
|
-
options: PropTypes.object,
|
|
901
|
-
|
|
902
|
-
/**
|
|
903
|
-
* Placeholder while tweet is loading
|
|
904
|
-
*/
|
|
905
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
906
|
-
|
|
907
|
-
/**
|
|
908
|
-
* Function to execute after load, return html element
|
|
909
|
-
*/
|
|
910
|
-
onLoad: PropTypes.func
|
|
911
|
-
});
|
|
912
|
-
|
|
913
|
-
var TwitterDMButton =
|
|
914
|
-
/*#__PURE__*/
|
|
915
|
-
function (_Component) {
|
|
916
|
-
_inherits(TwitterDMButton, _Component);
|
|
917
|
-
|
|
918
|
-
function TwitterDMButton(props) {
|
|
919
|
-
var _this;
|
|
920
|
-
|
|
921
|
-
_classCallCheck(this, TwitterDMButton);
|
|
922
|
-
|
|
923
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterDMButton).call(this, props));
|
|
924
|
-
_this.state = {
|
|
925
|
-
isLoading: true
|
|
926
|
-
};
|
|
927
|
-
return _this;
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
_createClass(TwitterDMButton, [{
|
|
931
|
-
key: "componentDidMount",
|
|
932
|
-
value: function componentDidMount() {
|
|
933
|
-
var _this2 = this;
|
|
934
|
-
|
|
935
|
-
var onLoad = this.props.onLoad;
|
|
936
|
-
|
|
937
|
-
if (exenv.canUseDOM) {
|
|
938
|
-
var script = require('scriptjs');
|
|
939
|
-
|
|
940
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
941
|
-
if (!window.twttr) {
|
|
942
|
-
console.error('Failure to load window.twttr in TwitterDMButton, aborting load.');
|
|
943
|
-
return;
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
if (!_this2.isMountCanceled) {
|
|
947
|
-
window.twttr.widgets.createDMButton(_this2.props.id, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
948
|
-
_this2.setState({
|
|
949
|
-
isLoading: false
|
|
950
|
-
});
|
|
951
|
-
|
|
952
|
-
if (onLoad) {
|
|
953
|
-
onLoad(element);
|
|
954
|
-
}
|
|
955
|
-
});
|
|
956
|
-
}
|
|
957
|
-
});
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
}, {
|
|
961
|
-
key: "componentWillUnmount",
|
|
962
|
-
value: function componentWillUnmount() {
|
|
963
|
-
this.isMountCanceled = true;
|
|
964
|
-
}
|
|
965
|
-
}, {
|
|
966
|
-
key: "render",
|
|
967
|
-
value: function render() {
|
|
968
|
-
var isLoading = this.state.isLoading;
|
|
969
|
-
var placeholder = this.props.placeholder;
|
|
970
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
971
|
-
ref: "embedContainer"
|
|
972
|
-
}));
|
|
973
|
-
}
|
|
974
|
-
}]);
|
|
975
|
-
|
|
976
|
-
return TwitterDMButton;
|
|
977
|
-
}(Component);
|
|
978
|
-
|
|
979
|
-
_defineProperty$1(TwitterDMButton, "propTypes", {
|
|
980
|
-
/**
|
|
981
|
-
* Twitter user id for DM button
|
|
982
|
-
*/
|
|
983
|
-
id: PropTypes.number.isRequired,
|
|
984
|
-
|
|
985
|
-
/**
|
|
986
|
-
* Additional options to be added to the button
|
|
987
|
-
*/
|
|
988
|
-
options: PropTypes.object,
|
|
989
|
-
|
|
990
|
-
/**
|
|
991
|
-
* Placeholder while tweet is loading
|
|
992
|
-
*/
|
|
993
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
994
|
-
|
|
995
|
-
/**
|
|
996
|
-
* Function to execute after load, return html element
|
|
997
|
-
*/
|
|
998
|
-
onLoad: PropTypes.func
|
|
999
|
-
});
|
|
1000
|
-
|
|
1001
|
-
var TwitterVideoEmbed =
|
|
1002
|
-
/*#__PURE__*/
|
|
1003
|
-
function (_Component) {
|
|
1004
|
-
_inherits(TwitterVideoEmbed, _Component);
|
|
1005
|
-
|
|
1006
|
-
function TwitterVideoEmbed(props) {
|
|
1007
|
-
var _this;
|
|
1008
|
-
|
|
1009
|
-
_classCallCheck(this, TwitterVideoEmbed);
|
|
1010
|
-
|
|
1011
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterVideoEmbed).call(this, props));
|
|
1012
|
-
_this.state = {
|
|
1013
|
-
isLoading: true
|
|
1014
|
-
};
|
|
1015
|
-
return _this;
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
_createClass(TwitterVideoEmbed, [{
|
|
1019
|
-
key: "componentDidMount",
|
|
1020
|
-
value: function componentDidMount() {
|
|
1021
|
-
var _this2 = this;
|
|
1022
|
-
|
|
1023
|
-
var onLoad = this.props.onLoad;
|
|
1024
|
-
|
|
1025
|
-
if (exenv.canUseDOM) {
|
|
1026
|
-
var script = require('scriptjs');
|
|
1027
|
-
|
|
1028
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1029
|
-
if (!window.twttr) {
|
|
1030
|
-
console.error('Failure to load window.twttr in TwitterVideoEmbed, aborting load.');
|
|
1031
|
-
return;
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
if (!_this2.isMountCanceled) {
|
|
1035
|
-
window.twttr.widgets.createVideo(_this2.props.id, _this2.refs.embedContainer).then(function (element) {
|
|
1036
|
-
_this2.setState({
|
|
1037
|
-
isLoading: false
|
|
1038
|
-
});
|
|
1039
|
-
|
|
1040
|
-
if (onLoad) {
|
|
1041
|
-
onLoad(element);
|
|
1042
|
-
}
|
|
1043
|
-
});
|
|
1044
|
-
}
|
|
1045
|
-
});
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
}, {
|
|
1049
|
-
key: "componentWillUnmount",
|
|
1050
|
-
value: function componentWillUnmount() {
|
|
1051
|
-
this.isMountCanceled = true;
|
|
1052
|
-
}
|
|
1053
|
-
}, {
|
|
1054
|
-
key: "render",
|
|
1055
|
-
value: function render() {
|
|
1056
|
-
var isLoading = this.state.isLoading;
|
|
1057
|
-
var placeholder = this.props.placeholder;
|
|
1058
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1059
|
-
ref: "embedContainer"
|
|
1060
|
-
}));
|
|
1061
|
-
}
|
|
1062
|
-
}]);
|
|
1063
|
-
|
|
1064
|
-
return TwitterVideoEmbed;
|
|
1065
|
-
}(Component);
|
|
1066
|
-
|
|
1067
|
-
_defineProperty$1(TwitterVideoEmbed, "propTypes", {
|
|
1068
|
-
/**
|
|
1069
|
-
* Id of video tweet.
|
|
1070
|
-
*/
|
|
1071
|
-
id: PropTypes.string.isRequired,
|
|
1072
|
-
|
|
1073
|
-
/**
|
|
1074
|
-
* Placeholder while tweet is loading
|
|
1075
|
-
*/
|
|
1076
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1077
|
-
|
|
1078
|
-
/**
|
|
1079
|
-
* Function to execute after load, return html element
|
|
1080
|
-
*/
|
|
1081
|
-
onLoad: PropTypes.func
|
|
1082
|
-
});
|
|
1083
|
-
|
|
1084
|
-
var TwitterOnAirButton =
|
|
1085
|
-
/*#__PURE__*/
|
|
1086
|
-
function (_Component) {
|
|
1087
|
-
_inherits(TwitterOnAirButton, _Component);
|
|
1088
|
-
|
|
1089
|
-
function TwitterOnAirButton(props) {
|
|
1090
|
-
var _this;
|
|
1091
|
-
|
|
1092
|
-
_classCallCheck(this, TwitterOnAirButton);
|
|
1093
|
-
|
|
1094
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterOnAirButton).call(this, props));
|
|
1095
|
-
_this.state = {
|
|
1096
|
-
isLoading: true
|
|
1097
|
-
};
|
|
1098
|
-
return _this;
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
_createClass(TwitterOnAirButton, [{
|
|
1102
|
-
key: "componentDidMount",
|
|
1103
|
-
value: function componentDidMount() {
|
|
1104
|
-
var _this2 = this;
|
|
1105
|
-
|
|
1106
|
-
var onLoad = this.props.onLoad;
|
|
1107
|
-
|
|
1108
|
-
if (exenv.canUseDOM) {
|
|
1109
|
-
var script = require('scriptjs');
|
|
1110
|
-
|
|
1111
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1112
|
-
if (!window.twttr) {
|
|
1113
|
-
console.error('Failure to load window.twttr in TwitterOnAirButton, aborting load.');
|
|
1114
|
-
return;
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
if (!_this2.isMountCanceled) {
|
|
1118
|
-
window.twttr.widgets.createPeriscopeOnAirButton(_this2.props.username, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1119
|
-
_this2.setState({
|
|
1120
|
-
isLoading: false
|
|
1121
|
-
});
|
|
1122
|
-
|
|
1123
|
-
if (onLoad) {
|
|
1124
|
-
onLoad(element);
|
|
1125
|
-
}
|
|
1126
|
-
});
|
|
1127
|
-
}
|
|
1128
|
-
});
|
|
1129
|
-
}
|
|
1130
|
-
}
|
|
1131
|
-
}, {
|
|
1132
|
-
key: "componentWillUnmount",
|
|
1133
|
-
value: function componentWillUnmount() {
|
|
1134
|
-
this.isMountCanceled = true;
|
|
1135
|
-
}
|
|
1136
|
-
}, {
|
|
1137
|
-
key: "render",
|
|
1138
|
-
value: function render() {
|
|
1139
|
-
var isLoading = this.state.isLoading;
|
|
1140
|
-
var placeholder = this.props.placeholder;
|
|
1141
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1142
|
-
ref: "embedContainer"
|
|
1143
|
-
}));
|
|
1144
|
-
}
|
|
1145
|
-
}]);
|
|
1146
|
-
|
|
1147
|
-
return TwitterOnAirButton;
|
|
1148
|
-
}(Component);
|
|
1149
|
-
|
|
1150
|
-
_defineProperty$1(TwitterOnAirButton, "propTypes", {
|
|
1151
|
-
/**
|
|
1152
|
-
* Username for which you require periscope on air button
|
|
1153
|
-
*/
|
|
1154
|
-
username: PropTypes.string.isRequired,
|
|
1155
|
-
|
|
1156
|
-
/**
|
|
1157
|
-
* Additional options for overriding config.
|
|
1158
|
-
*/
|
|
1159
|
-
options: PropTypes.object,
|
|
1160
|
-
|
|
1161
|
-
/**
|
|
1162
|
-
* Placeholder while tweet is loading
|
|
1163
|
-
*/
|
|
1164
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1165
|
-
|
|
1166
|
-
/**
|
|
1167
|
-
* Function to execute after load, return html element
|
|
1168
|
-
*/
|
|
1169
|
-
onLoad: PropTypes.func
|
|
1170
|
-
});
|
|
1171
|
-
|
|
1172
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1173
|
-
try {
|
|
1174
|
-
var info = gen[key](arg);
|
|
1175
|
-
var value = info.value;
|
|
1176
|
-
} catch (error) {
|
|
1177
|
-
reject(error);
|
|
1178
|
-
return;
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
if (info.done) {
|
|
1182
|
-
resolve(value);
|
|
1183
|
-
} else {
|
|
1184
|
-
Promise.resolve(value).then(_next, _throw);
|
|
1185
|
-
}
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
function _asyncToGenerator(fn) {
|
|
1189
|
-
return function () {
|
|
1190
|
-
var self = this,
|
|
1191
|
-
args = arguments;
|
|
1192
|
-
return new Promise(function (resolve, reject) {
|
|
1193
|
-
var gen = fn.apply(self, args);
|
|
1194
|
-
|
|
1195
|
-
function _next(value) {
|
|
1196
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
function _throw(err) {
|
|
1200
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
_next(undefined);
|
|
1204
|
-
});
|
|
1205
|
-
};
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
var asyncToGenerator = _asyncToGenerator;
|
|
1209
|
-
|
|
1210
|
-
function _defineProperty(obj, key, value) {
|
|
1211
|
-
if (key in obj) {
|
|
1212
|
-
Object.defineProperty(obj, key, {
|
|
1213
|
-
value: value,
|
|
1214
|
-
enumerable: true,
|
|
1215
|
-
configurable: true,
|
|
1216
|
-
writable: true
|
|
1217
|
-
});
|
|
1218
|
-
} else {
|
|
1219
|
-
obj[key] = value;
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
return obj;
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
var defineProperty = _defineProperty;
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import { r as reactSocialIcons_1 } from './react-social-icons-9be47857.js';
|
|
10
|
+
import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
|
|
11
|
+
import urlFor from './urlFor.js';
|
|
12
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
13
|
+
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
14
|
+
import Breadcrumbs from './Breadcrumbs.js';
|
|
15
|
+
import Feature from './Feature.js';
|
|
16
|
+
import { g as getSerializers } from './index-3ccc6d4b.js';
|
|
17
|
+
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
18
|
+
import './core.get-iterator-method-ea258bb1.js';
|
|
19
|
+
import './web.dom.iterable-ab4dea5c.js';
|
|
20
|
+
import './_library-528f1934.js';
|
|
21
|
+
import './_iter-detect-98db3b07.js';
|
|
22
|
+
import './_object-pie-133f504a.js';
|
|
23
|
+
import './index-3f5c03b2.js';
|
|
24
|
+
import './toConsumableArray-f7074d7c.js';
|
|
25
|
+
import 'react-bootstrap';
|
|
26
|
+
import './index.es-a6137319.js';
|
|
27
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
28
|
+
import 'react-dom';
|
|
29
|
+
import './index-f0fc23eb.js';
|
|
30
|
+
import './events-6c3a7a63.js';
|
|
31
|
+
import 'next/router';
|
|
32
|
+
import './index-755f2cc2.js';
|
|
33
|
+
import './main-1894c974.js';
|
|
34
|
+
import './entities-6d9154b4.js';
|
|
35
|
+
import './ADInfeed-0a55cd2d.js';
|
|
36
|
+
import 'react-bootstrap/Card';
|
|
37
|
+
import './AdSlot.js';
|
|
38
|
+
import './debounce-533d9748.js';
|
|
39
|
+
import './isSymbol-a7e9aafe.js';
|
|
40
|
+
import './toNumber-5aeba6e7.js';
|
|
41
|
+
import './Beam.js';
|
|
42
|
+
import './stringify-2b084bee.js';
|
|
43
|
+
import './Segment.js';
|
|
44
|
+
import './AuthorComponent-11adff02.js';
|
|
45
|
+
import './lodash-f97fd99a.js';
|
|
46
|
+
import './ADlgInfeed-013e1f4a.js';
|
|
47
|
+
import './getContentCategory-15dcc413.js';
|
|
48
|
+
import './timeDifferenceCalc.js';
|
|
49
|
+
import 'react-bootstrap/Breadcrumb';
|
|
50
|
+
import 'react-bootstrap/Carousel';
|
|
51
|
+
import './index-c7e2ac95.js';
|
|
52
|
+
import './util-8ed16d48.js';
|
|
53
|
+
import './typeof-e9fc0c5d.js';
|
|
54
|
+
import './_is-array-8d21b9e3.js';
|
|
55
|
+
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
56
|
+
import './GroupDeck.js';
|
|
57
|
+
import './SocialShare.js';
|
|
58
|
+
import 'next/head';
|
|
59
|
+
import 'react-share';
|
|
60
|
+
import './_object-to-array-2300e51b.js';
|
|
61
|
+
import 'react-bootstrap/Pagination';
|
|
62
|
+
import 'react-bootstrap/Button';
|
|
63
|
+
import 'react-bootstrap/Row';
|
|
64
|
+
import 'react-bootstrap/Col';
|
|
65
|
+
import './inherits-a6ba2ec4.js';
|
|
66
|
+
import './_object-sap-7cee6f84.js';
|
|
67
|
+
import './define-property-5f1bda73.js';
|
|
68
|
+
import './index.esm-f6156a57.js';
|
|
69
|
+
import './iconBase-ccc56b97.js';
|
|
70
|
+
import 'react-bootstrap/Figure';
|
|
71
|
+
import 'react-bootstrap/OverlayTrigger';
|
|
72
|
+
import 'react-bootstrap/Tooltip';
|
|
73
|
+
import 'react-bootstrap/Popover';
|
|
1226
74
|
|
|
1227
75
|
var canUseDOM = !!(
|
|
1228
76
|
typeof window !== 'undefined' &&
|
|
@@ -1232,6 +80,7 @@ var canUseDOM = !!(
|
|
|
1232
80
|
|
|
1233
81
|
var canUseDom = canUseDOM;
|
|
1234
82
|
|
|
83
|
+
var objectWithoutPropertiesLoose = createCommonjsModule(function (module) {
|
|
1235
84
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1236
85
|
if (source == null) return {};
|
|
1237
86
|
var target = {};
|
|
@@ -1247,8 +96,13 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
1247
96
|
return target;
|
|
1248
97
|
}
|
|
1249
98
|
|
|
1250
|
-
|
|
99
|
+
module.exports = _objectWithoutPropertiesLoose;
|
|
100
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
unwrapExports(objectWithoutPropertiesLoose);
|
|
1251
104
|
|
|
105
|
+
var objectWithoutProperties = createCommonjsModule(function (module) {
|
|
1252
106
|
function _objectWithoutProperties(source, excluded) {
|
|
1253
107
|
if (source == null) return {};
|
|
1254
108
|
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
@@ -1268,26 +122,30 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
1268
122
|
return target;
|
|
1269
123
|
}
|
|
1270
124
|
|
|
1271
|
-
|
|
125
|
+
module.exports = _objectWithoutProperties;
|
|
126
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
var _objectWithoutProperties = unwrapExports(objectWithoutProperties);
|
|
1272
130
|
|
|
1273
|
-
var LoginStatus = {
|
|
131
|
+
var LoginStatus$1 = {
|
|
1274
132
|
CONNECTED: 'connected',
|
|
1275
133
|
AUTHORIZATION_EXPIRED: 'authorization_expired',
|
|
1276
134
|
NOT_AUTHORIZED: 'not_authorized',
|
|
1277
135
|
UNKNOWN: 'unknown'
|
|
1278
136
|
};
|
|
1279
137
|
|
|
1280
|
-
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; }
|
|
138
|
+
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; }
|
|
1281
139
|
|
|
1282
|
-
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) {
|
|
140
|
+
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; }
|
|
1283
141
|
const Method = {
|
|
1284
142
|
GET: 'get',
|
|
1285
143
|
POST: 'post',
|
|
1286
144
|
DELETE: 'delete'
|
|
1287
145
|
};
|
|
1288
|
-
class Facebook {
|
|
146
|
+
class Facebook$1 {
|
|
1289
147
|
constructor(options = {}) {
|
|
1290
|
-
this.options = _objectSpread({
|
|
148
|
+
this.options = _objectSpread$3({
|
|
1291
149
|
domain: 'connect.facebook.net',
|
|
1292
150
|
version: 'v3.2',
|
|
1293
151
|
cookie: false,
|
|
@@ -1315,7 +173,7 @@ class Facebook {
|
|
|
1315
173
|
init() {
|
|
1316
174
|
var _this = this;
|
|
1317
175
|
|
|
1318
|
-
return
|
|
176
|
+
return _asyncToGenerator(function* () {
|
|
1319
177
|
if (_this.loadingPromise) {
|
|
1320
178
|
return _this.loadingPromise;
|
|
1321
179
|
}
|
|
@@ -1328,7 +186,7 @@ class Facebook {
|
|
|
1328
186
|
debug,
|
|
1329
187
|
chatSupport
|
|
1330
188
|
} = _this$options,
|
|
1331
|
-
restOptions =
|
|
189
|
+
restOptions = _objectWithoutProperties(_this$options, ["domain", "language", "debug", "chatSupport"]);
|
|
1332
190
|
|
|
1333
191
|
window.fbAsyncInit = () => {
|
|
1334
192
|
window.FB.init({
|
|
@@ -1360,7 +218,7 @@ class Facebook {
|
|
|
1360
218
|
process(method, before = [], after = []) {
|
|
1361
219
|
var _this2 = this;
|
|
1362
220
|
|
|
1363
|
-
return
|
|
221
|
+
return _asyncToGenerator(function* () {
|
|
1364
222
|
const fb = yield _this2.init();
|
|
1365
223
|
return new Promise((resolve, reject) => {
|
|
1366
224
|
fb[method](...before, response => {
|
|
@@ -1388,7 +246,7 @@ class Facebook {
|
|
|
1388
246
|
ui(options) {
|
|
1389
247
|
var _this3 = this;
|
|
1390
248
|
|
|
1391
|
-
return
|
|
249
|
+
return _asyncToGenerator(function* () {
|
|
1392
250
|
return _this3.process('ui', [options]);
|
|
1393
251
|
})();
|
|
1394
252
|
}
|
|
@@ -1396,7 +254,7 @@ class Facebook {
|
|
|
1396
254
|
api(path, method = Method.GET, params = {}) {
|
|
1397
255
|
var _this4 = this;
|
|
1398
256
|
|
|
1399
|
-
return
|
|
257
|
+
return _asyncToGenerator(function* () {
|
|
1400
258
|
return _this4.process('api', [path, method, params]);
|
|
1401
259
|
})();
|
|
1402
260
|
}
|
|
@@ -1404,7 +262,7 @@ class Facebook {
|
|
|
1404
262
|
login(opts = null) {
|
|
1405
263
|
var _this5 = this;
|
|
1406
264
|
|
|
1407
|
-
return
|
|
265
|
+
return _asyncToGenerator(function* () {
|
|
1408
266
|
return _this5.process('login', [], [opts]);
|
|
1409
267
|
})();
|
|
1410
268
|
}
|
|
@@ -1412,7 +270,7 @@ class Facebook {
|
|
|
1412
270
|
logout() {
|
|
1413
271
|
var _this6 = this;
|
|
1414
272
|
|
|
1415
|
-
return
|
|
273
|
+
return _asyncToGenerator(function* () {
|
|
1416
274
|
return _this6.process('logout');
|
|
1417
275
|
})();
|
|
1418
276
|
}
|
|
@@ -1420,7 +278,7 @@ class Facebook {
|
|
|
1420
278
|
getLoginStatus() {
|
|
1421
279
|
var _this7 = this;
|
|
1422
280
|
|
|
1423
|
-
return
|
|
281
|
+
return _asyncToGenerator(function* () {
|
|
1424
282
|
return _this7.process('getLoginStatus');
|
|
1425
283
|
})();
|
|
1426
284
|
}
|
|
@@ -1428,7 +286,7 @@ class Facebook {
|
|
|
1428
286
|
getAuthResponse() {
|
|
1429
287
|
var _this8 = this;
|
|
1430
288
|
|
|
1431
|
-
return
|
|
289
|
+
return _asyncToGenerator(function* () {
|
|
1432
290
|
return _this8.process('getAuthResponse');
|
|
1433
291
|
})();
|
|
1434
292
|
}
|
|
@@ -1436,14 +294,14 @@ class Facebook {
|
|
|
1436
294
|
getTokenDetail(loginResponse) {
|
|
1437
295
|
var _this9 = this;
|
|
1438
296
|
|
|
1439
|
-
return
|
|
1440
|
-
if (loginResponse.status === LoginStatus.CONNECTED && loginResponse.authResponse) {
|
|
297
|
+
return _asyncToGenerator(function* () {
|
|
298
|
+
if (loginResponse.status === LoginStatus$1.CONNECTED && loginResponse.authResponse) {
|
|
1441
299
|
return loginResponse.authResponse;
|
|
1442
300
|
}
|
|
1443
301
|
|
|
1444
302
|
const response = yield _this9.getLoginStatus();
|
|
1445
303
|
|
|
1446
|
-
if (response.status === LoginStatus.CONNECTED && response.authResponse) {
|
|
304
|
+
if (response.status === LoginStatus$1.CONNECTED && response.authResponse) {
|
|
1447
305
|
return response.authResponse;
|
|
1448
306
|
}
|
|
1449
307
|
|
|
@@ -1454,7 +312,7 @@ class Facebook {
|
|
|
1454
312
|
getProfile(params) {
|
|
1455
313
|
var _this10 = this;
|
|
1456
314
|
|
|
1457
|
-
return
|
|
315
|
+
return _asyncToGenerator(function* () {
|
|
1458
316
|
return _this10.api('/me', Method.GET, params);
|
|
1459
317
|
})();
|
|
1460
318
|
}
|
|
@@ -1462,7 +320,7 @@ class Facebook {
|
|
|
1462
320
|
getTokenDetailWithProfile(params, response) {
|
|
1463
321
|
var _this11 = this;
|
|
1464
322
|
|
|
1465
|
-
return
|
|
323
|
+
return _asyncToGenerator(function* () {
|
|
1466
324
|
const tokenDetail = yield _this11.getTokenDetail(response);
|
|
1467
325
|
const profile = yield _this11.getProfile(params);
|
|
1468
326
|
return {
|
|
@@ -1475,7 +333,7 @@ class Facebook {
|
|
|
1475
333
|
getToken() {
|
|
1476
334
|
var _this12 = this;
|
|
1477
335
|
|
|
1478
|
-
return
|
|
336
|
+
return _asyncToGenerator(function* () {
|
|
1479
337
|
const authResponse = yield _this12.getTokenDetail();
|
|
1480
338
|
return authResponse.accessToken;
|
|
1481
339
|
})();
|
|
@@ -1484,7 +342,7 @@ class Facebook {
|
|
|
1484
342
|
getUserId() {
|
|
1485
343
|
var _this13 = this;
|
|
1486
344
|
|
|
1487
|
-
return
|
|
345
|
+
return _asyncToGenerator(function* () {
|
|
1488
346
|
const authResponse = yield _this13.getTokenDetail();
|
|
1489
347
|
return authResponse.userID;
|
|
1490
348
|
})();
|
|
@@ -1493,8 +351,8 @@ class Facebook {
|
|
|
1493
351
|
sendInvite(to, options) {
|
|
1494
352
|
var _this14 = this;
|
|
1495
353
|
|
|
1496
|
-
return
|
|
1497
|
-
return _this14.ui(_objectSpread({
|
|
354
|
+
return _asyncToGenerator(function* () {
|
|
355
|
+
return _this14.ui(_objectSpread$3({
|
|
1498
356
|
to,
|
|
1499
357
|
method: 'apprequests'
|
|
1500
358
|
}, options));
|
|
@@ -1504,7 +362,7 @@ class Facebook {
|
|
|
1504
362
|
postAction(ogNamespace, ogAction, ogObject, ogObjectUrl, noFeedStory) {
|
|
1505
363
|
var _this15 = this;
|
|
1506
364
|
|
|
1507
|
-
return
|
|
365
|
+
return _asyncToGenerator(function* () {
|
|
1508
366
|
let url = `/me/${ogNamespace}:${ogAction}?${ogObject}=${encodeURIComponent(ogObjectUrl)}`;
|
|
1509
367
|
|
|
1510
368
|
if (noFeedStory === true) {
|
|
@@ -1518,7 +376,7 @@ class Facebook {
|
|
|
1518
376
|
getPermissions() {
|
|
1519
377
|
var _this16 = this;
|
|
1520
378
|
|
|
1521
|
-
return
|
|
379
|
+
return _asyncToGenerator(function* () {
|
|
1522
380
|
const response = yield _this16.api('/me/permissions');
|
|
1523
381
|
return response.data;
|
|
1524
382
|
})();
|
|
@@ -1527,7 +385,7 @@ class Facebook {
|
|
|
1527
385
|
hasPermissions(permissions) {
|
|
1528
386
|
var _this17 = this;
|
|
1529
387
|
|
|
1530
|
-
return
|
|
388
|
+
return _asyncToGenerator(function* () {
|
|
1531
389
|
const usersPermissions = yield _this17.getPermissions();
|
|
1532
390
|
const findedPermissions = permissions.filter(p => {
|
|
1533
391
|
const currentPermission = usersPermissions.find(row => {
|
|
@@ -1546,7 +404,7 @@ class Facebook {
|
|
|
1546
404
|
subscribe(eventName, callback) {
|
|
1547
405
|
var _this18 = this;
|
|
1548
406
|
|
|
1549
|
-
return
|
|
407
|
+
return _asyncToGenerator(function* () {
|
|
1550
408
|
const fb = yield _this18.init();
|
|
1551
409
|
fb.Event.subscribe(eventName, callback);
|
|
1552
410
|
})();
|
|
@@ -1555,7 +413,7 @@ class Facebook {
|
|
|
1555
413
|
unsubscribe(eventName, callback) {
|
|
1556
414
|
var _this19 = this;
|
|
1557
415
|
|
|
1558
|
-
return
|
|
416
|
+
return _asyncToGenerator(function* () {
|
|
1559
417
|
const fb = yield _this19.init();
|
|
1560
418
|
fb.Event.unsubscribe(eventName, callback);
|
|
1561
419
|
})();
|
|
@@ -1564,7 +422,7 @@ class Facebook {
|
|
|
1564
422
|
parse(parentNode) {
|
|
1565
423
|
var _this20 = this;
|
|
1566
424
|
|
|
1567
|
-
return
|
|
425
|
+
return _asyncToGenerator(function* () {
|
|
1568
426
|
const fb = yield _this20.init();
|
|
1569
427
|
|
|
1570
428
|
if (typeof parentNode === 'undefined') {
|
|
@@ -1578,7 +436,7 @@ class Facebook {
|
|
|
1578
436
|
getRequests() {
|
|
1579
437
|
var _this21 = this;
|
|
1580
438
|
|
|
1581
|
-
return
|
|
439
|
+
return _asyncToGenerator(function* () {
|
|
1582
440
|
return _this21.api('/me/apprequests');
|
|
1583
441
|
})();
|
|
1584
442
|
}
|
|
@@ -1586,7 +444,7 @@ class Facebook {
|
|
|
1586
444
|
removeRequest(requestID) {
|
|
1587
445
|
var _this22 = this;
|
|
1588
446
|
|
|
1589
|
-
return
|
|
447
|
+
return _asyncToGenerator(function* () {
|
|
1590
448
|
return _this22.api(requestID, Method.DELETE);
|
|
1591
449
|
})();
|
|
1592
450
|
}
|
|
@@ -1594,7 +452,7 @@ class Facebook {
|
|
|
1594
452
|
setAutoGrow() {
|
|
1595
453
|
var _this23 = this;
|
|
1596
454
|
|
|
1597
|
-
return
|
|
455
|
+
return _asyncToGenerator(function* () {
|
|
1598
456
|
const fb = yield _this23.init();
|
|
1599
457
|
fb.Canvas.setAutoGrow();
|
|
1600
458
|
})();
|
|
@@ -1603,7 +461,7 @@ class Facebook {
|
|
|
1603
461
|
paySimple(product, quantity = 1) {
|
|
1604
462
|
var _this24 = this;
|
|
1605
463
|
|
|
1606
|
-
return
|
|
464
|
+
return _asyncToGenerator(function* () {
|
|
1607
465
|
return _this24.ui({
|
|
1608
466
|
method: 'pay',
|
|
1609
467
|
action: 'purchaseitem',
|
|
@@ -1616,8 +474,8 @@ class Facebook {
|
|
|
1616
474
|
pay(product, options) {
|
|
1617
475
|
var _this25 = this;
|
|
1618
476
|
|
|
1619
|
-
return
|
|
1620
|
-
return _this25.ui(_objectSpread({
|
|
477
|
+
return _asyncToGenerator(function* () {
|
|
478
|
+
return _this25.ui(_objectSpread$3({
|
|
1621
479
|
method: 'pay',
|
|
1622
480
|
action: 'purchaseitem',
|
|
1623
481
|
product
|
|
@@ -1900,20 +758,20 @@ class Facebook {
|
|
|
1900
758
|
var FacebookContext = createContext();
|
|
1901
759
|
|
|
1902
760
|
let api = null;
|
|
1903
|
-
class Facebook
|
|
761
|
+
class Facebook extends Component {
|
|
1904
762
|
constructor(...args) {
|
|
1905
763
|
var _this;
|
|
1906
764
|
|
|
1907
765
|
super(...args);
|
|
1908
766
|
_this = this;
|
|
1909
767
|
|
|
1910
|
-
|
|
768
|
+
_defineProperty(this, "state", {
|
|
1911
769
|
isReady: false
|
|
1912
770
|
});
|
|
1913
771
|
|
|
1914
|
-
|
|
772
|
+
_defineProperty(this, "handleInit",
|
|
1915
773
|
/*#__PURE__*/
|
|
1916
|
-
|
|
774
|
+
_asyncToGenerator(function* () {
|
|
1917
775
|
// do not run if SSR
|
|
1918
776
|
if (!canUseDom) {
|
|
1919
777
|
throw new Error('You can not use Facebook without DOM');
|
|
@@ -1941,7 +799,7 @@ class Facebook$1 extends Component {
|
|
|
1941
799
|
debug,
|
|
1942
800
|
chatSupport
|
|
1943
801
|
} = _this.props;
|
|
1944
|
-
api = new Facebook({
|
|
802
|
+
api = new Facebook$1({
|
|
1945
803
|
domain,
|
|
1946
804
|
appId,
|
|
1947
805
|
version,
|
|
@@ -2002,7 +860,7 @@ class Facebook$1 extends Component {
|
|
|
2002
860
|
|
|
2003
861
|
}
|
|
2004
862
|
|
|
2005
|
-
|
|
863
|
+
_defineProperty(Facebook, "defaultProps", {
|
|
2006
864
|
version: 'v3.1',
|
|
2007
865
|
cookie: false,
|
|
2008
866
|
status: false,
|
|
@@ -2032,12 +890,16 @@ function _extends() {
|
|
|
2032
890
|
return target;
|
|
2033
891
|
};
|
|
2034
892
|
|
|
893
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
2035
894
|
return _extends.apply(this, arguments);
|
|
2036
895
|
}
|
|
2037
896
|
|
|
2038
897
|
module.exports = _extends;
|
|
898
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
2039
899
|
});
|
|
2040
900
|
|
|
901
|
+
var _extends = unwrapExports(_extends_1);
|
|
902
|
+
|
|
2041
903
|
class Initialize extends Component {
|
|
2042
904
|
componentDidMount() {
|
|
2043
905
|
this.$isMounted = true;
|
|
@@ -2051,7 +913,7 @@ class Initialize extends Component {
|
|
|
2051
913
|
prepare() {
|
|
2052
914
|
var _this = this;
|
|
2053
915
|
|
|
2054
|
-
return
|
|
916
|
+
return _asyncToGenerator(function* () {
|
|
2055
917
|
const {
|
|
2056
918
|
onReady,
|
|
2057
919
|
handleInit
|
|
@@ -2084,7 +946,7 @@ class Initialize extends Component {
|
|
|
2084
946
|
|
|
2085
947
|
}
|
|
2086
948
|
|
|
2087
|
-
|
|
949
|
+
_defineProperty(Initialize, "defaultProps", {
|
|
2088
950
|
onReady: undefined,
|
|
2089
951
|
api: undefined
|
|
2090
952
|
});
|
|
@@ -2093,7 +955,7 @@ var Initialize$1 = forwardRef((props, ref) => React__default.createElement(Faceb
|
|
|
2093
955
|
handleInit,
|
|
2094
956
|
isReady,
|
|
2095
957
|
api
|
|
2096
|
-
}) => React__default.createElement(Initialize,
|
|
958
|
+
}) => React__default.createElement(Initialize, _extends({}, props, {
|
|
2097
959
|
handleInit: handleInit,
|
|
2098
960
|
isReady: isReady,
|
|
2099
961
|
api: api,
|
|
@@ -2104,21 +966,21 @@ class Parser extends Component {
|
|
|
2104
966
|
constructor(...args) {
|
|
2105
967
|
super(...args);
|
|
2106
968
|
|
|
2107
|
-
|
|
969
|
+
_defineProperty(this, "state", {});
|
|
2108
970
|
|
|
2109
|
-
|
|
971
|
+
_defineProperty(this, "handleReady", api => {
|
|
2110
972
|
this.setState({
|
|
2111
973
|
api
|
|
2112
974
|
}, this.handleParse);
|
|
2113
975
|
});
|
|
2114
976
|
|
|
2115
|
-
|
|
977
|
+
_defineProperty(this, "handleContainer", container => {
|
|
2116
978
|
this.setState({
|
|
2117
979
|
container
|
|
2118
980
|
}, this.handleParse);
|
|
2119
981
|
});
|
|
2120
982
|
|
|
2121
|
-
|
|
983
|
+
_defineProperty(this, "handleParse", () => {
|
|
2122
984
|
const {
|
|
2123
985
|
api,
|
|
2124
986
|
container
|
|
@@ -2149,7 +1011,7 @@ class Parser extends Component {
|
|
|
2149
1011
|
|
|
2150
1012
|
}
|
|
2151
1013
|
|
|
2152
|
-
|
|
1014
|
+
_defineProperty(Parser, "defaultProps", {
|
|
2153
1015
|
className: undefined
|
|
2154
1016
|
});
|
|
2155
1017
|
|
|
@@ -2200,7 +1062,7 @@ class Like extends PureComponent {
|
|
|
2200
1062
|
|
|
2201
1063
|
}
|
|
2202
1064
|
|
|
2203
|
-
|
|
1065
|
+
_defineProperty(Like, "defaultProps", {
|
|
2204
1066
|
layout: undefined,
|
|
2205
1067
|
showFaces: undefined,
|
|
2206
1068
|
colorScheme: undefined,
|
|
@@ -2216,7 +1078,7 @@ defineProperty(Like, "defaultProps", {
|
|
|
2216
1078
|
|
|
2217
1079
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2218
1080
|
handleParse
|
|
2219
|
-
}) => React__default.createElement(Like,
|
|
1081
|
+
}) => React__default.createElement(Like, _extends({}, props, {
|
|
2220
1082
|
handleParse: handleParse,
|
|
2221
1083
|
ref: ref
|
|
2222
1084
|
}))));
|
|
@@ -2244,14 +1106,14 @@ class Process extends Component {
|
|
|
2244
1106
|
super(...args);
|
|
2245
1107
|
_this = this;
|
|
2246
1108
|
|
|
2247
|
-
|
|
1109
|
+
_defineProperty(this, "state", {
|
|
2248
1110
|
api: undefined
|
|
2249
1111
|
});
|
|
2250
1112
|
|
|
2251
|
-
|
|
1113
|
+
_defineProperty(this, "handleProcess",
|
|
2252
1114
|
/*#__PURE__*/
|
|
2253
1115
|
function () {
|
|
2254
|
-
var _ref =
|
|
1116
|
+
var _ref = _asyncToGenerator(function* (fn, handleSuccess = () => {}) {
|
|
2255
1117
|
_this.setState({
|
|
2256
1118
|
data: undefined,
|
|
2257
1119
|
error: undefined,
|
|
@@ -2290,7 +1152,7 @@ class Process extends Component {
|
|
|
2290
1152
|
};
|
|
2291
1153
|
}());
|
|
2292
1154
|
|
|
2293
|
-
|
|
1155
|
+
_defineProperty(this, "handleReady", api => {
|
|
2294
1156
|
this.setState({
|
|
2295
1157
|
api
|
|
2296
1158
|
});
|
|
@@ -2326,10 +1188,10 @@ class Send extends Component {
|
|
|
2326
1188
|
super(...args);
|
|
2327
1189
|
_this = this;
|
|
2328
1190
|
|
|
2329
|
-
|
|
1191
|
+
_defineProperty(this, "handleClick",
|
|
2330
1192
|
/*#__PURE__*/
|
|
2331
1193
|
function () {
|
|
2332
|
-
var _ref =
|
|
1194
|
+
var _ref = _asyncToGenerator(function* (evn) {
|
|
2333
1195
|
evn.preventDefault();
|
|
2334
1196
|
const {
|
|
2335
1197
|
handleProcess
|
|
@@ -2337,7 +1199,7 @@ class Send extends Component {
|
|
|
2337
1199
|
return handleProcess(
|
|
2338
1200
|
/*#__PURE__*/
|
|
2339
1201
|
function () {
|
|
2340
|
-
var _ref2 =
|
|
1202
|
+
var _ref2 = _asyncToGenerator(function* (api) {
|
|
2341
1203
|
const {
|
|
2342
1204
|
link = getCurrentHref(),
|
|
2343
1205
|
display,
|
|
@@ -2380,7 +1242,7 @@ class Send extends Component {
|
|
|
2380
1242
|
|
|
2381
1243
|
}
|
|
2382
1244
|
|
|
2383
|
-
|
|
1245
|
+
_defineProperty(Send, "defaultProps", {
|
|
2384
1246
|
to: undefined,
|
|
2385
1247
|
display: undefined,
|
|
2386
1248
|
appId: undefined,
|
|
@@ -2390,7 +1252,7 @@ defineProperty(Send, "defaultProps", {
|
|
|
2390
1252
|
forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
2391
1253
|
loading,
|
|
2392
1254
|
handleProcess
|
|
2393
|
-
}) => React__default.createElement(Send,
|
|
1255
|
+
}) => React__default.createElement(Send, _extends({}, props, {
|
|
2394
1256
|
loading: loading,
|
|
2395
1257
|
handleProcess: handleProcess,
|
|
2396
1258
|
ref: ref
|
|
@@ -2403,10 +1265,10 @@ class Share extends Component {
|
|
|
2403
1265
|
super(...args);
|
|
2404
1266
|
_this = this;
|
|
2405
1267
|
|
|
2406
|
-
|
|
1268
|
+
_defineProperty(this, "handleClick",
|
|
2407
1269
|
/*#__PURE__*/
|
|
2408
1270
|
function () {
|
|
2409
|
-
var _ref =
|
|
1271
|
+
var _ref = _asyncToGenerator(function* (evn) {
|
|
2410
1272
|
evn.preventDefault();
|
|
2411
1273
|
const {
|
|
2412
1274
|
handleProcess
|
|
@@ -2414,7 +1276,7 @@ class Share extends Component {
|
|
|
2414
1276
|
return handleProcess(
|
|
2415
1277
|
/*#__PURE__*/
|
|
2416
1278
|
function () {
|
|
2417
|
-
var _ref2 =
|
|
1279
|
+
var _ref2 = _asyncToGenerator(function* (api) {
|
|
2418
1280
|
const {
|
|
2419
1281
|
href = getCurrentHref(),
|
|
2420
1282
|
display,
|
|
@@ -2465,7 +1327,7 @@ class Share extends Component {
|
|
|
2465
1327
|
|
|
2466
1328
|
}
|
|
2467
1329
|
|
|
2468
|
-
|
|
1330
|
+
_defineProperty(Share, "defaultProps", {
|
|
2469
1331
|
href: undefined,
|
|
2470
1332
|
hashtag: undefined,
|
|
2471
1333
|
quote: undefined,
|
|
@@ -2480,7 +1342,7 @@ var Share$1 = forwardRef((props, ref) => React__default.createElement(Process, n
|
|
|
2480
1342
|
handleProcess,
|
|
2481
1343
|
data,
|
|
2482
1344
|
error
|
|
2483
|
-
}) => React__default.createElement(Share,
|
|
1345
|
+
}) => React__default.createElement(Share, _extends({}, props, {
|
|
2484
1346
|
loading: loading,
|
|
2485
1347
|
handleProcess: handleProcess,
|
|
2486
1348
|
data: data,
|
|
@@ -2488,27 +1350,10 @@ var Share$1 = forwardRef((props, ref) => React__default.createElement(Process, n
|
|
|
2488
1350
|
ref: ref
|
|
2489
1351
|
}))));
|
|
2490
1352
|
|
|
2491
|
-
function ownKeys$
|
|
1353
|
+
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; }
|
|
2492
1354
|
|
|
2493
|
-
function _objectSpread$
|
|
2494
|
-
|
|
2495
|
-
const {
|
|
2496
|
-
className,
|
|
2497
|
-
children
|
|
2498
|
-
} = props,
|
|
2499
|
-
rest = objectWithoutProperties(props, ["className", "children"]);
|
|
2500
|
-
|
|
2501
|
-
return React__default.createElement(Share$1, rest, ({
|
|
2502
|
-
loading,
|
|
2503
|
-
handleClick
|
|
2504
|
-
}) => React__default.createElement("button", {
|
|
2505
|
-
type: "button",
|
|
2506
|
-
disabled: loading,
|
|
2507
|
-
className: className,
|
|
2508
|
-
onClick: handleClick
|
|
2509
|
-
}, children));
|
|
2510
|
-
}
|
|
2511
|
-
ShareButton.defaultProps = _objectSpread$1({}, Share$1.defaultProps, {
|
|
1355
|
+
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; }
|
|
1356
|
+
_objectSpread$2({}, Share$1.defaultProps, {
|
|
2512
1357
|
className: undefined
|
|
2513
1358
|
});
|
|
2514
1359
|
|
|
@@ -2551,7 +1396,7 @@ class Page extends PureComponent {
|
|
|
2551
1396
|
|
|
2552
1397
|
}
|
|
2553
1398
|
|
|
2554
|
-
|
|
1399
|
+
_defineProperty(Page, "defaultProps", {
|
|
2555
1400
|
width: undefined,
|
|
2556
1401
|
height: undefined,
|
|
2557
1402
|
tabs: undefined,
|
|
@@ -2567,7 +1412,7 @@ defineProperty(Page, "defaultProps", {
|
|
|
2567
1412
|
|
|
2568
1413
|
var Page$1 = forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2569
1414
|
handleParse
|
|
2570
|
-
}) => React__default.createElement(Page,
|
|
1415
|
+
}) => React__default.createElement(Page, _extends({}, props, {
|
|
2571
1416
|
handleParse: handleParse,
|
|
2572
1417
|
ref: ref
|
|
2573
1418
|
}))));
|
|
@@ -2575,9 +1420,9 @@ var Page$1 = forwardRef((props, ref) => React__default.createElement(Parser, nul
|
|
|
2575
1420
|
// 3.0 fields without app review https://developers.facebook.com/docs/facebook-login/permissions/?locale=en_US#reference-default
|
|
2576
1421
|
var Fields = ['id', 'first_name', 'last_name', 'middle_name', 'name', 'name_format', 'picture', 'short_name', 'email'];
|
|
2577
1422
|
|
|
2578
|
-
function ownKeys$
|
|
1423
|
+
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; }
|
|
2579
1424
|
|
|
2580
|
-
function _objectSpread$
|
|
1425
|
+
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; }
|
|
2581
1426
|
|
|
2582
1427
|
class Login extends Component {
|
|
2583
1428
|
constructor(...args) {
|
|
@@ -2586,10 +1431,10 @@ class Login extends Component {
|
|
|
2586
1431
|
super(...args);
|
|
2587
1432
|
_this = this;
|
|
2588
1433
|
|
|
2589
|
-
|
|
1434
|
+
_defineProperty(this, "handleClick",
|
|
2590
1435
|
/*#__PURE__*/
|
|
2591
1436
|
function () {
|
|
2592
|
-
var _ref =
|
|
1437
|
+
var _ref = _asyncToGenerator(function* (evn) {
|
|
2593
1438
|
evn.preventDefault();
|
|
2594
1439
|
const {
|
|
2595
1440
|
handleProcess,
|
|
@@ -2602,7 +1447,7 @@ class Login extends Component {
|
|
|
2602
1447
|
yield handleProcess(
|
|
2603
1448
|
/*#__PURE__*/
|
|
2604
1449
|
function () {
|
|
2605
|
-
var _ref2 =
|
|
1450
|
+
var _ref2 = _asyncToGenerator(function* (api) {
|
|
2606
1451
|
const {
|
|
2607
1452
|
scope,
|
|
2608
1453
|
fields,
|
|
@@ -2643,7 +1488,7 @@ class Login extends Component {
|
|
|
2643
1488
|
}, loginResponse);
|
|
2644
1489
|
|
|
2645
1490
|
if (onCompleted) {
|
|
2646
|
-
yield onCompleted(_objectSpread$
|
|
1491
|
+
yield onCompleted(_objectSpread$1({}, data, {
|
|
2647
1492
|
eventKey
|
|
2648
1493
|
}));
|
|
2649
1494
|
}
|
|
@@ -2685,7 +1530,7 @@ class Login extends Component {
|
|
|
2685
1530
|
|
|
2686
1531
|
}
|
|
2687
1532
|
|
|
2688
|
-
|
|
1533
|
+
_defineProperty(Login, "defaultProps", {
|
|
2689
1534
|
scope: '',
|
|
2690
1535
|
fields: Fields,
|
|
2691
1536
|
returnScopes: false,
|
|
@@ -2701,7 +1546,7 @@ var Login$1 = forwardRef((props, ref) => React__default.createElement(Process, n
|
|
|
2701
1546
|
handleProcess,
|
|
2702
1547
|
data,
|
|
2703
1548
|
error
|
|
2704
|
-
}) => React__default.createElement(Login,
|
|
1549
|
+
}) => React__default.createElement(Login, _extends({}, props, {
|
|
2705
1550
|
loading: loading,
|
|
2706
1551
|
handleProcess: handleProcess,
|
|
2707
1552
|
data: data,
|
|
@@ -2713,7 +1558,7 @@ var spin = createCommonjsModule(function (module) {
|
|
|
2713
1558
|
(function (root, factory) {
|
|
2714
1559
|
|
|
2715
1560
|
/* CommonJS */
|
|
2716
|
-
if (
|
|
1561
|
+
if (module.exports) module.exports = factory();
|
|
2717
1562
|
|
|
2718
1563
|
/* AMD module */
|
|
2719
1564
|
else root.Spinner = factory();
|
|
@@ -3155,33 +2000,12 @@ Spinner.defaultProps = {
|
|
|
3155
2000
|
exports.default = Spinner;
|
|
3156
2001
|
});
|
|
3157
2002
|
|
|
3158
|
-
|
|
2003
|
+
unwrapExports(dist);
|
|
3159
2004
|
|
|
3160
|
-
function ownKeys
|
|
2005
|
+
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; }
|
|
3161
2006
|
|
|
3162
|
-
function _objectSpread
|
|
3163
|
-
|
|
3164
|
-
const {
|
|
3165
|
-
children,
|
|
3166
|
-
className,
|
|
3167
|
-
spinner,
|
|
3168
|
-
spinnerConfig
|
|
3169
|
-
} = props,
|
|
3170
|
-
rest = objectWithoutProperties(props, ["children", "className", "spinner", "spinnerConfig"]);
|
|
3171
|
-
|
|
3172
|
-
return React__default.createElement(Login$1, rest, ({
|
|
3173
|
-
loading,
|
|
3174
|
-
handleClick
|
|
3175
|
-
}) => React__default.createElement("button", {
|
|
3176
|
-
type: "button",
|
|
3177
|
-
className: className,
|
|
3178
|
-
onClick: handleClick,
|
|
3179
|
-
disabled: loading
|
|
3180
|
-
}, children, spinner && loading && React__default.createElement(Spinner, {
|
|
3181
|
-
config: spinnerConfig
|
|
3182
|
-
})));
|
|
3183
|
-
}
|
|
3184
|
-
LoginButton.defaultProps = _objectSpread$3({}, Login$1.defaultProps, {
|
|
2007
|
+
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; }
|
|
2008
|
+
_objectSpread({}, Login$1.defaultProps, {
|
|
3185
2009
|
className: undefined,
|
|
3186
2010
|
spinnerConfig: {},
|
|
3187
2011
|
spinner: true
|
|
@@ -3212,7 +2036,7 @@ class EmbeddedPost extends PureComponent {
|
|
|
3212
2036
|
|
|
3213
2037
|
}
|
|
3214
2038
|
|
|
3215
|
-
|
|
2039
|
+
_defineProperty(EmbeddedPost, "defaultProps", {
|
|
3216
2040
|
width: undefined,
|
|
3217
2041
|
showText: undefined,
|
|
3218
2042
|
children: undefined
|
|
@@ -3220,7 +2044,7 @@ defineProperty(EmbeddedPost, "defaultProps", {
|
|
|
3220
2044
|
|
|
3221
2045
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
3222
2046
|
handleParse
|
|
3223
|
-
}) => React__default.createElement(EmbeddedPost,
|
|
2047
|
+
}) => React__default.createElement(EmbeddedPost, _extends({}, props, {
|
|
3224
2048
|
handleParse: handleParse,
|
|
3225
2049
|
ref: ref
|
|
3226
2050
|
}))));
|
|
@@ -3256,7 +2080,7 @@ class EmbeddedVideo extends PureComponent {
|
|
|
3256
2080
|
|
|
3257
2081
|
}
|
|
3258
2082
|
|
|
3259
|
-
|
|
2083
|
+
_defineProperty(EmbeddedVideo, "defaultProps", {
|
|
3260
2084
|
width: undefined,
|
|
3261
2085
|
showText: undefined,
|
|
3262
2086
|
allowFullScreen: undefined,
|
|
@@ -3267,7 +2091,7 @@ defineProperty(EmbeddedVideo, "defaultProps", {
|
|
|
3267
2091
|
|
|
3268
2092
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
3269
2093
|
handleParse
|
|
3270
|
-
}) => React__default.createElement(EmbeddedVideo,
|
|
2094
|
+
}) => React__default.createElement(EmbeddedVideo, _extends({}, props, {
|
|
3271
2095
|
handleParse: handleParse,
|
|
3272
2096
|
ref: ref
|
|
3273
2097
|
}))));
|
|
@@ -3304,7 +2128,7 @@ class Comments extends PureComponent {
|
|
|
3304
2128
|
|
|
3305
2129
|
}
|
|
3306
2130
|
|
|
3307
|
-
|
|
2131
|
+
_defineProperty(Comments, "defaultProps", {
|
|
3308
2132
|
href: undefined,
|
|
3309
2133
|
numPosts: undefined,
|
|
3310
2134
|
orderBy: undefined,
|
|
@@ -3316,7 +2140,7 @@ defineProperty(Comments, "defaultProps", {
|
|
|
3316
2140
|
|
|
3317
2141
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
3318
2142
|
handleParse
|
|
3319
|
-
}) => React__default.createElement(Comments,
|
|
2143
|
+
}) => React__default.createElement(Comments, _extends({}, props, {
|
|
3320
2144
|
handleParse: handleParse,
|
|
3321
2145
|
ref: ref
|
|
3322
2146
|
}))));
|
|
@@ -3342,14 +2166,14 @@ class CommentsCount extends PureComponent {
|
|
|
3342
2166
|
|
|
3343
2167
|
}
|
|
3344
2168
|
|
|
3345
|
-
|
|
2169
|
+
_defineProperty(CommentsCount, "defaultProps", {
|
|
3346
2170
|
href: undefined,
|
|
3347
2171
|
children: undefined
|
|
3348
2172
|
});
|
|
3349
2173
|
|
|
3350
2174
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
3351
2175
|
handleParse
|
|
3352
|
-
}) => React__default.createElement(CommentsCount,
|
|
2176
|
+
}) => React__default.createElement(CommentsCount, _extends({}, props, {
|
|
3353
2177
|
handleParse: handleParse,
|
|
3354
2178
|
ref: ref
|
|
3355
2179
|
}))));
|
|
@@ -3361,10 +2185,10 @@ class Feed extends Component {
|
|
|
3361
2185
|
super(...args);
|
|
3362
2186
|
_this = this;
|
|
3363
2187
|
|
|
3364
|
-
|
|
2188
|
+
_defineProperty(this, "handleClick",
|
|
3365
2189
|
/*#__PURE__*/
|
|
3366
2190
|
function () {
|
|
3367
|
-
var _ref =
|
|
2191
|
+
var _ref = _asyncToGenerator(function* (evn) {
|
|
3368
2192
|
evn.preventDefault();
|
|
3369
2193
|
const {
|
|
3370
2194
|
handleProcess
|
|
@@ -3372,7 +2196,7 @@ class Feed extends Component {
|
|
|
3372
2196
|
return handleProcess(
|
|
3373
2197
|
/*#__PURE__*/
|
|
3374
2198
|
function () {
|
|
3375
|
-
var _ref2 =
|
|
2199
|
+
var _ref2 = _asyncToGenerator(function* (api) {
|
|
3376
2200
|
const {
|
|
3377
2201
|
link = getCurrentHref(),
|
|
3378
2202
|
display,
|
|
@@ -3433,7 +2257,7 @@ class Feed extends Component {
|
|
|
3433
2257
|
|
|
3434
2258
|
}
|
|
3435
2259
|
|
|
3436
|
-
|
|
2260
|
+
_defineProperty(Feed, "defaultProps", {
|
|
3437
2261
|
link: undefined,
|
|
3438
2262
|
display: undefined,
|
|
3439
2263
|
appId: undefined,
|
|
@@ -3453,7 +2277,7 @@ forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
|
3453
2277
|
handleProcess,
|
|
3454
2278
|
error,
|
|
3455
2279
|
data
|
|
3456
|
-
}) => React__default.createElement(Feed,
|
|
2280
|
+
}) => React__default.createElement(Feed, _extends({}, props, {
|
|
3457
2281
|
loading: loading,
|
|
3458
2282
|
handleProcess: handleProcess,
|
|
3459
2283
|
data: data,
|
|
@@ -3492,7 +2316,7 @@ class Group extends PureComponent {
|
|
|
3492
2316
|
|
|
3493
2317
|
}
|
|
3494
2318
|
|
|
3495
|
-
|
|
2319
|
+
_defineProperty(Group, "defaultProps", {
|
|
3496
2320
|
showSocialContext: undefined,
|
|
3497
2321
|
showMetaData: undefined,
|
|
3498
2322
|
width: undefined,
|
|
@@ -3504,24 +2328,24 @@ defineProperty(Group, "defaultProps", {
|
|
|
3504
2328
|
|
|
3505
2329
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
3506
2330
|
handleParse
|
|
3507
|
-
}) => React__default.createElement(Group,
|
|
2331
|
+
}) => React__default.createElement(Group, _extends({}, props, {
|
|
3508
2332
|
handleParse: handleParse,
|
|
3509
2333
|
ref: ref
|
|
3510
2334
|
}))));
|
|
3511
2335
|
|
|
3512
|
-
class LoginStatus
|
|
2336
|
+
class LoginStatus extends Component {
|
|
3513
2337
|
constructor(..._args) {
|
|
3514
2338
|
var _this;
|
|
3515
2339
|
|
|
3516
2340
|
super(..._args);
|
|
3517
2341
|
_this = this;
|
|
3518
2342
|
|
|
3519
|
-
|
|
2343
|
+
_defineProperty(this, "state", {});
|
|
3520
2344
|
|
|
3521
|
-
|
|
2345
|
+
_defineProperty(this, "handleReady",
|
|
3522
2346
|
/*#__PURE__*/
|
|
3523
2347
|
function () {
|
|
3524
|
-
var _ref =
|
|
2348
|
+
var _ref = _asyncToGenerator(function* (api) {
|
|
3525
2349
|
const {
|
|
3526
2350
|
event
|
|
3527
2351
|
} = _this.props;
|
|
@@ -3538,7 +2362,7 @@ class LoginStatus$1 extends Component {
|
|
|
3538
2362
|
};
|
|
3539
2363
|
}());
|
|
3540
2364
|
|
|
3541
|
-
|
|
2365
|
+
_defineProperty(this, "handleChange", (...args) => {
|
|
3542
2366
|
const {
|
|
3543
2367
|
onChange
|
|
3544
2368
|
} = this.props;
|
|
@@ -3575,7 +2399,7 @@ class LoginStatus$1 extends Component {
|
|
|
3575
2399
|
|
|
3576
2400
|
}
|
|
3577
2401
|
|
|
3578
|
-
|
|
2402
|
+
_defineProperty(LoginStatus, "defaultProps", {
|
|
3579
2403
|
onChange: undefined
|
|
3580
2404
|
});
|
|
3581
2405
|
|
|
@@ -3586,14 +2410,14 @@ class Profile extends Component {
|
|
|
3586
2410
|
super(...args);
|
|
3587
2411
|
_this = this;
|
|
3588
2412
|
|
|
3589
|
-
|
|
2413
|
+
_defineProperty(this, "state", {
|
|
3590
2414
|
loading: true
|
|
3591
2415
|
});
|
|
3592
2416
|
|
|
3593
|
-
|
|
2417
|
+
_defineProperty(this, "handleReady",
|
|
3594
2418
|
/*#__PURE__*/
|
|
3595
2419
|
function () {
|
|
3596
|
-
var _ref =
|
|
2420
|
+
var _ref = _asyncToGenerator(function* (api) {
|
|
3597
2421
|
_this.api = api;
|
|
3598
2422
|
|
|
3599
2423
|
_this.updateProfile();
|
|
@@ -3604,7 +2428,7 @@ class Profile extends Component {
|
|
|
3604
2428
|
};
|
|
3605
2429
|
}());
|
|
3606
2430
|
|
|
3607
|
-
|
|
2431
|
+
_defineProperty(this, "handleStatusChange", () => {
|
|
3608
2432
|
this.updateProfile();
|
|
3609
2433
|
});
|
|
3610
2434
|
}
|
|
@@ -3612,7 +2436,7 @@ class Profile extends Component {
|
|
|
3612
2436
|
updateProfile() {
|
|
3613
2437
|
var _this2 = this;
|
|
3614
2438
|
|
|
3615
|
-
return
|
|
2439
|
+
return _asyncToGenerator(function* () {
|
|
3616
2440
|
const {
|
|
3617
2441
|
api,
|
|
3618
2442
|
props: {
|
|
@@ -3627,7 +2451,7 @@ class Profile extends Component {
|
|
|
3627
2451
|
try {
|
|
3628
2452
|
const response = yield api.getLoginStatus();
|
|
3629
2453
|
|
|
3630
|
-
if (response.status !== LoginStatus.CONNECTED) {
|
|
2454
|
+
if (response.status !== LoginStatus$1.CONNECTED) {
|
|
3631
2455
|
_this2.setState({
|
|
3632
2456
|
profile: undefined,
|
|
3633
2457
|
loading: false,
|
|
@@ -3667,7 +2491,7 @@ class Profile extends Component {
|
|
|
3667
2491
|
} = this.state;
|
|
3668
2492
|
return React__default.createElement(Initialize$1, {
|
|
3669
2493
|
onReady: this.handleReady
|
|
3670
|
-
}, React__default.createElement(LoginStatus
|
|
2494
|
+
}, React__default.createElement(LoginStatus, {
|
|
3671
2495
|
event: "auth.statusChange",
|
|
3672
2496
|
onChange: this.handleStatusChange
|
|
3673
2497
|
}, children({
|
|
@@ -3679,7 +2503,7 @@ class Profile extends Component {
|
|
|
3679
2503
|
|
|
3680
2504
|
}
|
|
3681
2505
|
|
|
3682
|
-
|
|
2506
|
+
_defineProperty(Profile, "defaultProps", {
|
|
3683
2507
|
fields: Fields
|
|
3684
2508
|
});
|
|
3685
2509
|
|
|
@@ -3716,7 +2540,7 @@ class CustomChat extends PureComponent {
|
|
|
3716
2540
|
|
|
3717
2541
|
}
|
|
3718
2542
|
|
|
3719
|
-
|
|
2543
|
+
_defineProperty(CustomChat, "defaultProps", {
|
|
3720
2544
|
children: undefined,
|
|
3721
2545
|
themeColor: undefined,
|
|
3722
2546
|
loggedInGreeting: undefined,
|
|
@@ -3728,7 +2552,7 @@ defineProperty(CustomChat, "defaultProps", {
|
|
|
3728
2552
|
|
|
3729
2553
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
3730
2554
|
handleParse
|
|
3731
|
-
}) => React__default.createElement(CustomChat,
|
|
2555
|
+
}) => React__default.createElement(CustomChat, _extends({}, props, {
|
|
3732
2556
|
handleParse: handleParse,
|
|
3733
2557
|
ref: ref
|
|
3734
2558
|
}))));
|
|
@@ -3760,7 +2584,7 @@ class MessageUs extends PureComponent {
|
|
|
3760
2584
|
|
|
3761
2585
|
}
|
|
3762
2586
|
|
|
3763
|
-
|
|
2587
|
+
_defineProperty(MessageUs, "defaultProps", {
|
|
3764
2588
|
color: undefined,
|
|
3765
2589
|
size: undefined,
|
|
3766
2590
|
children: undefined
|
|
@@ -3768,7 +2592,7 @@ defineProperty(MessageUs, "defaultProps", {
|
|
|
3768
2592
|
|
|
3769
2593
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
3770
2594
|
handleParse
|
|
3771
|
-
}) => React__default.createElement(MessageUs,
|
|
2595
|
+
}) => React__default.createElement(MessageUs, _extends({}, props, {
|
|
3772
2596
|
handleParse: handleParse,
|
|
3773
2597
|
ref: ref
|
|
3774
2598
|
}))));
|
|
@@ -3810,7 +2634,7 @@ class MessengerCheckbox extends PureComponent {
|
|
|
3810
2634
|
|
|
3811
2635
|
}
|
|
3812
2636
|
|
|
3813
|
-
|
|
2637
|
+
_defineProperty(MessengerCheckbox, "defaultProps", {
|
|
3814
2638
|
size: undefined,
|
|
3815
2639
|
allowLogin: undefined,
|
|
3816
2640
|
prechecked: undefined,
|
|
@@ -3823,7 +2647,7 @@ defineProperty(MessengerCheckbox, "defaultProps", {
|
|
|
3823
2647
|
|
|
3824
2648
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
3825
2649
|
handleParse
|
|
3826
|
-
}) => React__default.createElement(MessengerCheckbox,
|
|
2650
|
+
}) => React__default.createElement(MessengerCheckbox, _extends({}, props, {
|
|
3827
2651
|
handleParse: handleParse,
|
|
3828
2652
|
ref: ref
|
|
3829
2653
|
}))));
|
|
@@ -3859,7 +2683,7 @@ class SendToMessenger extends PureComponent {
|
|
|
3859
2683
|
|
|
3860
2684
|
}
|
|
3861
2685
|
|
|
3862
|
-
|
|
2686
|
+
_defineProperty(SendToMessenger, "defaultProps", {
|
|
3863
2687
|
color: undefined,
|
|
3864
2688
|
size: undefined,
|
|
3865
2689
|
dataRef: undefined,
|
|
@@ -3868,7 +2692,7 @@ defineProperty(SendToMessenger, "defaultProps", {
|
|
|
3868
2692
|
|
|
3869
2693
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
3870
2694
|
handleParse
|
|
3871
|
-
}) => React__default.createElement(SendToMessenger,
|
|
2695
|
+
}) => React__default.createElement(SendToMessenger, _extends({}, props, {
|
|
3872
2696
|
handleParse: handleParse,
|
|
3873
2697
|
ref: ref
|
|
3874
2698
|
}))));
|
|
@@ -4111,7 +2935,7 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
4111
2935
|
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(
|
|
4112
2936
|
'div',
|
|
4113
2937
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
4114
|
-
partnerDetails.description && React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
2938
|
+
partnerDetails.description && React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
4115
2939
|
(partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(
|
|
4116
2940
|
'div',
|
|
4117
2941
|
null,
|
|
@@ -4150,7 +2974,7 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
4150
2974
|
'div',
|
|
4151
2975
|
{ className: 'mb-5', style: { width: '100%', maxWidth: '100%', textAlign: 'center', padding: '15px', border: '2px solid #aaa', borderRadius: '15px' } },
|
|
4152
2976
|
partnerDetails.twitter ? React__default.createElement(TwitterTimelineEmbed, { sourceType: 'url', url: partnerDetails.twitter, options: { height: 400 } }) : partnerDetails.facebook && React__default.createElement(
|
|
4153
|
-
Facebook
|
|
2977
|
+
Facebook,
|
|
4154
2978
|
{ appId: ' ' },
|
|
4155
2979
|
React__default.createElement(Page$1, { href: partnerDetails.facebook, tabs: 'timeline', width: '500', height: '500' })
|
|
4156
2980
|
)
|