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