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