@mjhls/mjh-framework 1.0.875-v2customDimension → 1.0.876-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +28 -29
- package/dist/cjs/AD300x250x600.js +28 -29
- package/dist/cjs/AD728x90.js +31 -32
- package/dist/cjs/ADFloatingFooter.js +30 -31
- package/dist/cjs/ADFooter.js +12 -13
- package/dist/cjs/ADGutter.js +30 -31
- package/dist/cjs/{ADInfeed-8c452fcb.js → ADInfeed-c628363f.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +30 -31
- package/dist/cjs/ADSponsoredResources.js +30 -31
- package/dist/cjs/ADWebcast.js +30 -31
- package/dist/cjs/ADWelcome.js +31 -32
- package/dist/cjs/{ADlgInfeed-7997caf8.js → ADlgInfeed-a827d389.js} +10 -11
- package/dist/cjs/AccordionPanel.js +27 -29
- package/dist/cjs/AdSlot.js +33 -34
- package/dist/cjs/AdSlotsProvider.js +909 -18
- package/dist/cjs/AlgoliaSearch.js +1306 -1490
- package/dist/cjs/AlphabeticList.js +23 -24
- package/dist/cjs/ArticleCarousel.js +19 -20
- package/dist/cjs/ArticleProgramLandingPage.js +60 -61
- package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
- package/dist/cjs/ArticleSeriesListing.js +59 -60
- package/dist/cjs/Auth.js +1504 -680
- package/dist/cjs/AuthWrapper.js +419 -1637
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-02e827ae.js} +13 -14
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +25 -27
- package/dist/cjs/CMEDeck.js +81 -81
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +31 -34
- package/dist/cjs/Column3.js +57 -60
- package/dist/cjs/ConferenceArticleCard.js +40 -41
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +101 -105
- package/dist/cjs/DeckQueue.js +87 -91
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-14d2455c.js} +32 -33
- package/dist/cjs/EventsDeck.js +150 -157
- package/dist/cjs/ExternalResources.js +78 -79
- package/dist/cjs/Feature.js +27 -29
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +231 -236
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +57 -58
- package/dist/cjs/HamMagazine.js +139 -144
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +15 -16
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +71 -72
- package/dist/cjs/HorizontalHero.js +28 -29
- package/dist/cjs/IssueContentDeck.js +71 -76
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +91 -94
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +37 -39
- package/dist/cjs/MasterDeck.js +78 -79
- package/dist/cjs/MediaSeriesLanding.js +1138 -1233
- package/dist/cjs/NavDvm.js +72 -77
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +146 -151
- package/dist/cjs/NavNative.js +137 -145
- package/dist/cjs/OncliveHero.js +22 -22
- package/dist/cjs/OncliveLargeHero.js +70 -71
- package/dist/cjs/PageFilter.js +12 -13
- package/dist/cjs/PartnerDetailListing.js +1461 -289
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +17 -19
- package/dist/cjs/PubSection.js +38 -41
- package/dist/cjs/PubToc.js +13 -14
- package/dist/cjs/PublicationDeck.js +65 -70
- package/dist/cjs/PublicationLanding.js +133 -141
- package/dist/cjs/QueueDeckExpanded.js +1052 -1172
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +57 -58
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +16 -20
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +36 -36
- package/dist/cjs/{SeriesSlider-ba0c5d1a.js → SeriesSlider-49b81b0b.js} +39 -40
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -37
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-e8477ca3.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +61 -66
- package/dist/cjs/TaxonomyDescription.js +53 -54
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +24 -26
- package/dist/cjs/Ustream.js +28 -29
- package/dist/cjs/VerticalHero.js +19 -20
- package/dist/cjs/VideoProgramLandingPage.js +74 -78
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +49 -50
- package/dist/cjs/VideoSeriesListing.js +76 -77
- package/dist/cjs/View.js +300 -302
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +67 -68
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{defineProperty-9673846a.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-df1aed86.js → entities-310b46ee.js} +1 -5
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{extends-7c86182f.js → extends-eed4f016.js} +7 -7
- package/dist/cjs/faundadb.js +19 -19
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.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-9d509319.js → getTargeting-8874437b.js} +12 -12
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
- package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
- package/dist/cjs/{index-58b83e77.js → index-cdacba23.js} +1063 -1089
- package/dist/cjs/{index-50be6759.js → index-e2e62963.js} +10 -26
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
- package/dist/cjs/index.js +164 -171
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{inherits-de66ea16.js → inherits-cba9c846.js} +19 -19
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-5f52cf64.js} +35 -35
- package/dist/cjs/urlFor.js +6 -6
- package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{util-93a37fd0.js → util-f2c1b65b.js} +1 -12
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.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-2d1d8175.js → ADInfeed-35a2a91f.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-f9c737bb.js → ADlgInfeed-fd34a881.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +22 -22
- package/dist/esm/AdSlotsProvider.js +906 -14
- package/dist/esm/AlgoliaSearch.js +534 -717
- 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 +1419 -591
- package/dist/esm/AuthWrapper.js +392 -1609
- package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-e6f95c2f.js} +1 -1
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-e9b4ddcf.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-102f0beb.js → Dfp-f867d061.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 +80 -82
- 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 +660 -752
- 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 +8 -7
- package/dist/esm/OncliveLargeHero.js +11 -11
- package/dist/esm/PageFilter.js +4 -4
- package/dist/esm/PartnerDetailListing.js +1369 -196
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +4 -4
- package/dist/esm/PubSection.js +30 -32
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +27 -27
- package/dist/esm/PublicationLanding.js +74 -78
- package/dist/esm/QueueDeckExpanded.js +989 -1109
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +38 -38
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +6 -6
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +18 -18
- package/dist/esm/{SeriesSlider-06891e36.js → SeriesSlider-d555a1d2.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialSearchComponent-3aba5db2.js → SocialSearchComponent-d240935c.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 +136 -134
- package/dist/esm/YahooHero.js +13 -13
- package/dist/esm/YoutubeGroup.js +21 -21
- package/dist/esm/{_is-array-8d21b9e3.js → _is-array-4df618a6.js} +6 -6
- package/dist/esm/{_iter-detect-98db3b07.js → _iter-detect-130ee549.js} +7 -7
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-7cee6f84.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-2300e51b.js → _object-to-array-c54dd835.js} +2 -2
- package/dist/esm/{asyncToGenerator-5ef104a7.js → asyncToGenerator-64812e90.js} +31 -31
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
- package/dist/esm/{core.get-iterator-method-ea258bb1.js → core.get-iterator-method-86d4db69.js} +36 -36
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/define-property-6d26cb48.js +18 -0
- package/dist/esm/{defineProperty-8c30428f.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/{entities-6d9154b4.js → entities-7cc3bf45.js} +1 -5
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{extends-6d8e3924.js → extends-5b1796d4.js} +7 -7
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.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-4061f839.js → getTargeting-277c801e.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-f0fc23eb.js → index-41a678ea.js} +4 -4
- package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
- package/dist/esm/{index-7cb41586.js → index-604589b2.js} +637 -653
- package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
- package/dist/esm/{index-98ca9cec.js → index-aaa2dae0.js} +11 -26
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
- package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
- package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
- package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
- package/dist/esm/index.js +122 -126
- package/dist/esm/{inherits-a6ba2ec4.js → inherits-2409637d.js} +18 -18
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-31dcdb31.js → keys-69989821.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-6ebcbfea.js → slicedToArray-67a08c9c.js} +12 -12
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-70b72959.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-f7074d7c.js → toConsumableArray-32282905.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-e9fc0c5d.js → typeof-c05a82ba.js} +35 -35
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-d3714624.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{util-8ed16d48.js → util-7700fc59.js} +1 -12
- package/dist/esm/{web.dom.iterable-ab4dea5c.js → web.dom.iterable-f8f967cd.js} +2 -2
- package/package.json +112 -111
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/define-property-5f1bda73.js +0 -18
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/main-d4165069.js +0 -961
- package/dist/esm/stringify-2b084bee.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
|
@@ -1,83 +1,1231 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _extends$1 = require('./extends-7c86182f.js');
|
|
6
|
-
var React = require('react');
|
|
7
|
-
var reactTwitterEmbed = require('react-twitter-embed');
|
|
8
|
-
var defineProperty = require('./defineProperty-e0fb52c5.js');
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
9
5
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
10
|
-
|
|
11
|
-
var reactSocialIcons = require('./react-social-icons-af932527.js');
|
|
12
|
-
var smoothscroll = require('./smoothscroll-99df7f93.js');
|
|
13
|
-
var urlFor = require('./urlFor.js');
|
|
14
|
-
var moment = require('./moment-aca40de1.js');
|
|
15
|
-
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
16
|
-
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
17
|
-
var Feature = require('./Feature.js');
|
|
18
|
-
var getSerializers = require('./index-58b83e77.js');
|
|
19
|
-
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
20
|
-
require('./core.get-iterator-method-5643aa10.js');
|
|
21
|
-
require('./web.dom.iterable-d98303e0.js');
|
|
6
|
+
require('./core.get-iterator-method-f3c44602.js');
|
|
22
7
|
require('./_library-dd23b178.js');
|
|
23
|
-
require('./_iter-detect-
|
|
24
|
-
require('./
|
|
25
|
-
require('./
|
|
26
|
-
require('./
|
|
27
|
-
require('
|
|
28
|
-
require('./
|
|
29
|
-
require('./
|
|
30
|
-
require('
|
|
31
|
-
require('./
|
|
8
|
+
require('./_iter-detect-05795553.js');
|
|
9
|
+
require('./toConsumableArray-c9b8a0d0.js');
|
|
10
|
+
require('./_object-pie-68c5bcbc.js');
|
|
11
|
+
var _extends$1 = require('./extends-eed4f016.js');
|
|
12
|
+
require('./_object-sap-171b9ea5.js');
|
|
13
|
+
require('./inherits-cba9c846.js');
|
|
14
|
+
require('./define-property-21887c62.js');
|
|
15
|
+
require('./web.dom.iterable-e34bf324.js');
|
|
16
|
+
require('./typeof-5f52cf64.js');
|
|
17
|
+
require('./_is-array-aa52fa1e.js');
|
|
18
|
+
var React = require('react');
|
|
19
|
+
var React__default = _interopDefault(React);
|
|
32
20
|
require('./events-1b438fe7.js');
|
|
33
|
-
require('
|
|
34
|
-
require('
|
|
35
|
-
|
|
36
|
-
require('
|
|
37
|
-
require('
|
|
21
|
+
require('./index-98e01cb9.js');
|
|
22
|
+
var PropTypes = require('prop-types');
|
|
23
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
24
|
+
require('react-bootstrap/Row');
|
|
25
|
+
require('react-bootstrap/Col');
|
|
38
26
|
require('react-bootstrap/Card');
|
|
39
|
-
require('./
|
|
40
|
-
require('
|
|
41
|
-
require('./isSymbol-
|
|
42
|
-
require('./
|
|
43
|
-
require('./
|
|
44
|
-
require('
|
|
27
|
+
var moment = require('./moment-575fe24c.js');
|
|
28
|
+
require('next/router');
|
|
29
|
+
require('./isSymbol-04666465.js');
|
|
30
|
+
require('./debounce-529c8d06.js');
|
|
31
|
+
require('./toNumber-36d1e7e5.js');
|
|
32
|
+
require('react-dom');
|
|
33
|
+
var slicedToArray = require('./slicedToArray-f6d4eaa8.js');
|
|
34
|
+
require('./index-be0c82be.js');
|
|
35
|
+
var urlFor = require('./urlFor.js');
|
|
36
|
+
require('./index-96b3db50.js');
|
|
37
|
+
require('./main-02daeefe.js');
|
|
38
|
+
require('./entities-310b46ee.js');
|
|
39
|
+
require('./stringify-bbc68047.js');
|
|
40
|
+
var asyncToGenerator$1 = require('./asyncToGenerator-df19209d.js');
|
|
45
41
|
require('./Segment.js');
|
|
46
|
-
require('./
|
|
47
|
-
require('./
|
|
48
|
-
require('./
|
|
42
|
+
require('./Beam.js');
|
|
43
|
+
require('./AdSlot.js');
|
|
44
|
+
require('./ADInfeed-c628363f.js');
|
|
45
|
+
require('./lodash-fc2922d0.js');
|
|
46
|
+
require('./ADlgInfeed-a827d389.js');
|
|
49
47
|
require('./getContentCategory-f38a4c00.js');
|
|
50
|
-
require('./
|
|
51
|
-
require('react-bootstrap/
|
|
52
|
-
require('
|
|
48
|
+
require('./AuthorComponent-02e827ae.js');
|
|
49
|
+
require('react-bootstrap/Button');
|
|
50
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
51
|
+
var reactSocialIcons = require('./react-social-icons-f7f48f71.js');
|
|
53
52
|
require('./index-187c967e.js');
|
|
54
|
-
require('./
|
|
55
|
-
require('./typeof-567e31ff.js');
|
|
56
|
-
require('./_is-array-54228b29.js');
|
|
57
|
-
require('./brightcove-react-player-loader.es-a195642e.js');
|
|
53
|
+
var smoothscroll = require('./smoothscroll-5054361f.js');
|
|
58
54
|
require('./GroupDeck.js');
|
|
59
|
-
require('
|
|
55
|
+
require('react-bootstrap');
|
|
56
|
+
require('./timeDifferenceCalc.js');
|
|
57
|
+
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
58
|
+
require('./iconBase-68959171.js');
|
|
59
|
+
require('./index.esm-90433435.js');
|
|
60
|
+
var getSerializers = require('./index-cdacba23.js');
|
|
61
|
+
require('./util-f2c1b65b.js');
|
|
62
|
+
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
60
63
|
require('next/head');
|
|
61
64
|
require('react-share');
|
|
62
|
-
require('./
|
|
65
|
+
require('./SocialShare.js');
|
|
66
|
+
require('./_object-to-array-9bac8737.js');
|
|
63
67
|
require('react-bootstrap/Pagination');
|
|
64
|
-
require('react-bootstrap/Button');
|
|
65
|
-
require('react-bootstrap/Row');
|
|
66
|
-
require('react-bootstrap/Col');
|
|
67
|
-
require('./inherits-de66ea16.js');
|
|
68
|
-
require('./_object-sap-d1978572.js');
|
|
69
|
-
require('./define-property-e8404b64.js');
|
|
70
|
-
require('./index.esm-00a6aade.js');
|
|
71
|
-
require('./iconBase-be4097c0.js');
|
|
72
68
|
require('react-bootstrap/Figure');
|
|
73
69
|
require('react-bootstrap/OverlayTrigger');
|
|
74
70
|
require('react-bootstrap/Tooltip');
|
|
75
71
|
require('react-bootstrap/Popover');
|
|
72
|
+
var inherits$1$1 = require('./inherits-8d29278d.js');
|
|
73
|
+
require('react-bootstrap/Carousel');
|
|
74
|
+
var Feature = require('./Feature.js');
|
|
75
|
+
require('react-bootstrap/Breadcrumb');
|
|
76
|
+
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
77
|
+
|
|
78
|
+
var isRequiredIf_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
79
|
+
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.
|
|
80
|
+
}};exports.default=isRequiredIf;
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
var isRequiredIf = _commonjsHelpers.unwrapExports(isRequiredIf_1);
|
|
86
|
+
|
|
87
|
+
var exenv = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
88
|
+
/*!
|
|
89
|
+
Copyright (c) 2015 Jed Watson.
|
|
90
|
+
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
91
|
+
All rights reserved.
|
|
92
|
+
*/
|
|
93
|
+
/* global define */
|
|
94
|
+
|
|
95
|
+
(function () {
|
|
96
|
+
|
|
97
|
+
var canUseDOM = !!(
|
|
98
|
+
typeof window !== 'undefined' &&
|
|
99
|
+
window.document &&
|
|
100
|
+
window.document.createElement
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
var ExecutionEnvironment = {
|
|
104
|
+
|
|
105
|
+
canUseDOM: canUseDOM,
|
|
106
|
+
|
|
107
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
|
108
|
+
|
|
109
|
+
canUseEventListeners:
|
|
110
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
111
|
+
|
|
112
|
+
canUseViewport: canUseDOM && !!window.screen
|
|
113
|
+
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
if ( module.exports) {
|
|
117
|
+
module.exports = ExecutionEnvironment;
|
|
118
|
+
} else {
|
|
119
|
+
window.ExecutionEnvironment = ExecutionEnvironment;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
}());
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
var twitterWidgetJs = 'https://platform.twitter.com/widgets.js';
|
|
126
|
+
|
|
127
|
+
var TwitterTimelineEmbed =
|
|
128
|
+
/*#__PURE__*/
|
|
129
|
+
function (_Component) {
|
|
130
|
+
inherits$1$1._inherits(TwitterTimelineEmbed, _Component);
|
|
131
|
+
|
|
132
|
+
function TwitterTimelineEmbed(props) {
|
|
133
|
+
var _this;
|
|
134
|
+
|
|
135
|
+
inherits$1$1._classCallCheck(this, TwitterTimelineEmbed);
|
|
136
|
+
|
|
137
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterTimelineEmbed).call(this, props));
|
|
138
|
+
_this.state = {
|
|
139
|
+
isLoading: true
|
|
140
|
+
};
|
|
141
|
+
return _this;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
inherits$1$1._createClass(TwitterTimelineEmbed, [{
|
|
145
|
+
key: "buildChromeOptions",
|
|
146
|
+
value: function buildChromeOptions(options) {
|
|
147
|
+
options.chrome = '';
|
|
148
|
+
|
|
149
|
+
if (this.props.noHeader) {
|
|
150
|
+
options.chrome = options.chrome + ' noheader';
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (this.props.noFooter) {
|
|
154
|
+
options.chrome = options.chrome + ' nofooter';
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (this.props.noBorders) {
|
|
158
|
+
options.chrome = options.chrome + ' noborders';
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (this.props.noScrollbar) {
|
|
162
|
+
options.chrome = options.chrome + ' noscrollbar';
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (this.props.transparent) {
|
|
166
|
+
options.chrome = options.chrome + ' transparent';
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return options;
|
|
170
|
+
}
|
|
171
|
+
}, {
|
|
172
|
+
key: "buildOptions",
|
|
173
|
+
value: function buildOptions() {
|
|
174
|
+
var options = Object.assign({}, this.props.options);
|
|
175
|
+
|
|
176
|
+
if (this.props.autoHeight) {
|
|
177
|
+
options.height = this.refs.embedContainer.parentNode.offsetHeight;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
options = Object.assign({}, options, {
|
|
181
|
+
theme: this.props.theme,
|
|
182
|
+
linkColor: this.props.linkColor,
|
|
183
|
+
borderColor: this.props.borderColor,
|
|
184
|
+
lang: this.props.lang
|
|
185
|
+
});
|
|
186
|
+
return options;
|
|
187
|
+
}
|
|
188
|
+
}, {
|
|
189
|
+
key: "renderWidget",
|
|
190
|
+
value: function renderWidget(options) {
|
|
191
|
+
var _this2 = this;
|
|
192
|
+
|
|
193
|
+
var onLoad = this.props.onLoad;
|
|
194
|
+
|
|
195
|
+
if (!this.isMountCanceled) {
|
|
196
|
+
window.twttr.widgets.createTimeline({
|
|
197
|
+
sourceType: this.props.sourceType,
|
|
198
|
+
screenName: this.props.screenName,
|
|
199
|
+
userId: this.props.userId,
|
|
200
|
+
ownerScreenName: this.props.ownerScreenName,
|
|
201
|
+
slug: this.props.slug,
|
|
202
|
+
id: this.props.id || this.props.widgetId,
|
|
203
|
+
url: this.props.url
|
|
204
|
+
}, this.refs.embedContainer, options).then(function (element) {
|
|
205
|
+
_this2.setState({
|
|
206
|
+
isLoading: false
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
if (onLoad) {
|
|
210
|
+
onLoad(element);
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}, {
|
|
216
|
+
key: "componentDidMount",
|
|
217
|
+
value: function componentDidMount() {
|
|
218
|
+
var _this3 = this;
|
|
219
|
+
|
|
220
|
+
if (exenv.canUseDOM) {
|
|
221
|
+
var script = require('scriptjs');
|
|
222
|
+
|
|
223
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
224
|
+
if (!window.twttr) {
|
|
225
|
+
console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.');
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
var options = _this3.buildOptions();
|
|
230
|
+
/** Append chrome options */
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
options = _this3.buildChromeOptions(options);
|
|
234
|
+
|
|
235
|
+
_this3.renderWidget(options);
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}, {
|
|
240
|
+
key: "componentWillUnmount",
|
|
241
|
+
value: function componentWillUnmount() {
|
|
242
|
+
this.isMountCanceled = true;
|
|
243
|
+
}
|
|
244
|
+
}, {
|
|
245
|
+
key: "render",
|
|
246
|
+
value: function render() {
|
|
247
|
+
var isLoading = this.state.isLoading;
|
|
248
|
+
var placeholder = this.props.placeholder;
|
|
249
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
250
|
+
ref: "embedContainer"
|
|
251
|
+
}));
|
|
252
|
+
}
|
|
253
|
+
}]);
|
|
254
|
+
|
|
255
|
+
return TwitterTimelineEmbed;
|
|
256
|
+
}(React.Component);
|
|
257
|
+
|
|
258
|
+
inherits$1$1._defineProperty(TwitterTimelineEmbed, "propTypes", {
|
|
259
|
+
/**
|
|
260
|
+
* This can be either of profile, likes, list, collection, URL, widget
|
|
261
|
+
*/
|
|
262
|
+
sourceType: PropTypes__default.oneOf(['profile', 'likes', 'list', 'collection', 'url', 'widget']).isRequired,
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* username of twitter handle as String
|
|
266
|
+
*/
|
|
267
|
+
screenName: isRequiredIf(PropTypes__default.string, function (props) {
|
|
268
|
+
return !props.hasOwnProperty('userId') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
269
|
+
}),
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* UserId of twitter handle as number
|
|
273
|
+
*/
|
|
274
|
+
userId: isRequiredIf(PropTypes__default.number, function (props) {
|
|
275
|
+
return !props.hasOwnProperty('screenName') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
276
|
+
}),
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* To show list, used along with slug
|
|
280
|
+
*/
|
|
281
|
+
ownerScreenName: isRequiredIf(PropTypes__default.string, function (props) {
|
|
282
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
283
|
+
}),
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* To show list, used along with ownerScreenName
|
|
287
|
+
*/
|
|
288
|
+
slug: isRequiredIf(PropTypes__default.string, function (props) {
|
|
289
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
290
|
+
}),
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* To show list, unique list id
|
|
294
|
+
* Also used with collections, in that case its valid collection id
|
|
295
|
+
*/
|
|
296
|
+
id: isRequiredIf(PropTypes__default.oneOfType([PropTypes__default.number, PropTypes__default.string]), function (props) {
|
|
297
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('ownerScreenName') && !props.hasOwnProperty('slug') || props.sourceType === 'collection';
|
|
298
|
+
}),
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* To show twitter content with url.
|
|
302
|
+
* Supported content includes profiles, likes, lists, and collections.
|
|
303
|
+
*/
|
|
304
|
+
url: isRequiredIf(PropTypes__default.string, function (props) {
|
|
305
|
+
return props.sourceType === 'url';
|
|
306
|
+
}),
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* To show custom widget
|
|
310
|
+
*/
|
|
311
|
+
widgetId: isRequiredIf(PropTypes__default.string, function (props) {
|
|
312
|
+
return props.sourceType === 'widget';
|
|
313
|
+
}),
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Additional options to pass to twitter widget plugin
|
|
317
|
+
*/
|
|
318
|
+
options: PropTypes__default.object,
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Automatically fit into parent container height
|
|
322
|
+
*/
|
|
323
|
+
autoHeight: PropTypes__default.bool,
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* With dark or light theme
|
|
327
|
+
*/
|
|
328
|
+
theme: PropTypes__default.oneOf(['dark', 'light']),
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* With custom link colors. Note: Only Hex colors are supported.
|
|
332
|
+
*/
|
|
333
|
+
linkColor: PropTypes__default.string,
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* With custom border colors. Note: Only Hex colors are supported.
|
|
337
|
+
*/
|
|
338
|
+
borderColor: PropTypes__default.string,
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Hide the header from timeline
|
|
342
|
+
*/
|
|
343
|
+
noHeader: PropTypes__default.bool,
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Hide the footer from timeline
|
|
347
|
+
*/
|
|
348
|
+
noFooter: PropTypes__default.bool,
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Hide the border from timeline
|
|
352
|
+
*/
|
|
353
|
+
noBorders: PropTypes__default.bool,
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Hide the scrollbars
|
|
357
|
+
*/
|
|
358
|
+
noScrollbar: PropTypes__default.bool,
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Enable Transparancy
|
|
362
|
+
*/
|
|
363
|
+
transparent: PropTypes__default.bool,
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Custom language code. Supported codes here: https://developer.twitter.com/en/docs/twitter-for-websites/twitter-for-websites-supported-languages/overview.html
|
|
367
|
+
*/
|
|
368
|
+
lang: PropTypes__default.string,
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Placeholder while tweet is loading
|
|
372
|
+
*/
|
|
373
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Function to execute after load, return html element
|
|
377
|
+
*/
|
|
378
|
+
onLoad: PropTypes__default.func
|
|
379
|
+
});
|
|
380
|
+
|
|
381
|
+
var TwitterShareButton =
|
|
382
|
+
/*#__PURE__*/
|
|
383
|
+
function (_Component) {
|
|
384
|
+
inherits$1$1._inherits(TwitterShareButton, _Component);
|
|
385
|
+
|
|
386
|
+
function TwitterShareButton(props) {
|
|
387
|
+
var _this;
|
|
388
|
+
|
|
389
|
+
inherits$1$1._classCallCheck(this, TwitterShareButton);
|
|
390
|
+
|
|
391
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterShareButton).call(this, props));
|
|
392
|
+
_this.state = {
|
|
393
|
+
isLoading: true
|
|
394
|
+
};
|
|
395
|
+
return _this;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
inherits$1$1._createClass(TwitterShareButton, [{
|
|
399
|
+
key: "componentDidMount",
|
|
400
|
+
value: function componentDidMount() {
|
|
401
|
+
var _this2 = this;
|
|
402
|
+
|
|
403
|
+
var onLoad = this.props.onLoad;
|
|
404
|
+
|
|
405
|
+
if (exenv.canUseDOM) {
|
|
406
|
+
var script = require('scriptjs');
|
|
407
|
+
|
|
408
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
409
|
+
if (!window.twttr) {
|
|
410
|
+
console.error('Failure to load window.twttr in TwitterShareButton, aborting load.');
|
|
411
|
+
return;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
if (!_this2.isMountCanceled) {
|
|
415
|
+
window.twttr.widgets.createShareButton(_this2.props.url, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
416
|
+
_this2.setState({
|
|
417
|
+
isLoading: false
|
|
418
|
+
});
|
|
419
|
+
|
|
420
|
+
if (onLoad) {
|
|
421
|
+
onLoad(element);
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}, {
|
|
429
|
+
key: "componentWillUnmount",
|
|
430
|
+
value: function componentWillUnmount() {
|
|
431
|
+
this.isMountCanceled = true;
|
|
432
|
+
}
|
|
433
|
+
}, {
|
|
434
|
+
key: "render",
|
|
435
|
+
value: function render() {
|
|
436
|
+
var isLoading = this.state.isLoading;
|
|
437
|
+
var placeholder = this.props.placeholder;
|
|
438
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
439
|
+
ref: "embedContainer"
|
|
440
|
+
}));
|
|
441
|
+
}
|
|
442
|
+
}]);
|
|
443
|
+
|
|
444
|
+
return TwitterShareButton;
|
|
445
|
+
}(React.Component);
|
|
446
|
+
|
|
447
|
+
inherits$1$1._defineProperty(TwitterShareButton, "propTypes", {
|
|
448
|
+
/**
|
|
449
|
+
* Url for sharing
|
|
450
|
+
*/
|
|
451
|
+
url: PropTypes__default.string.isRequired,
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Additional options for overriding config. Details at : https://dev.twitter.com/web/tweet-button/parameters
|
|
455
|
+
*/
|
|
456
|
+
options: PropTypes__default.object,
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Placeholder while tweet is loading
|
|
460
|
+
*/
|
|
461
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Function to execute after load, return html element
|
|
465
|
+
*/
|
|
466
|
+
onLoad: PropTypes__default.func
|
|
467
|
+
});
|
|
468
|
+
|
|
469
|
+
var TwitterFollowButton =
|
|
470
|
+
/*#__PURE__*/
|
|
471
|
+
function (_Component) {
|
|
472
|
+
inherits$1$1._inherits(TwitterFollowButton, _Component);
|
|
473
|
+
|
|
474
|
+
function TwitterFollowButton(props) {
|
|
475
|
+
var _this;
|
|
476
|
+
|
|
477
|
+
inherits$1$1._classCallCheck(this, TwitterFollowButton);
|
|
478
|
+
|
|
479
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterFollowButton).call(this, props));
|
|
480
|
+
_this.state = {
|
|
481
|
+
isLoading: true
|
|
482
|
+
};
|
|
483
|
+
return _this;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
inherits$1$1._createClass(TwitterFollowButton, [{
|
|
487
|
+
key: "componentDidMount",
|
|
488
|
+
value: function componentDidMount() {
|
|
489
|
+
var _this2 = this;
|
|
490
|
+
|
|
491
|
+
var onLoad = this.props.onLoad;
|
|
492
|
+
|
|
493
|
+
if (exenv.canUseDOM) {
|
|
494
|
+
var script = require('scriptjs');
|
|
495
|
+
|
|
496
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
497
|
+
if (!window.twttr) {
|
|
498
|
+
console.error('Failure to load window.twttr in TwitterFollowButton, aborting load.');
|
|
499
|
+
return;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
if (!_this2.isMountCanceled) {
|
|
503
|
+
window.twttr.widgets.createFollowButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
504
|
+
_this2.setState({
|
|
505
|
+
isLoading: false
|
|
506
|
+
});
|
|
507
|
+
|
|
508
|
+
if (onLoad) {
|
|
509
|
+
onLoad(element);
|
|
510
|
+
}
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}, {
|
|
517
|
+
key: "componentWillUnmount",
|
|
518
|
+
value: function componentWillUnmount() {
|
|
519
|
+
this.isMountCanceled = true;
|
|
520
|
+
}
|
|
521
|
+
}, {
|
|
522
|
+
key: "render",
|
|
523
|
+
value: function render() {
|
|
524
|
+
var isLoading = this.state.isLoading;
|
|
525
|
+
var placeholder = this.props.placeholder;
|
|
526
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
527
|
+
ref: "embedContainer"
|
|
528
|
+
}));
|
|
529
|
+
}
|
|
530
|
+
}]);
|
|
531
|
+
|
|
532
|
+
return TwitterFollowButton;
|
|
533
|
+
}(React.Component);
|
|
534
|
+
|
|
535
|
+
inherits$1$1._defineProperty(TwitterFollowButton, "propTypes", {
|
|
536
|
+
/**
|
|
537
|
+
* Username of twitter user which will be followed on click
|
|
538
|
+
*/
|
|
539
|
+
screenName: PropTypes__default.string.isRequired,
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Additional options to be added to the button
|
|
543
|
+
*/
|
|
544
|
+
options: PropTypes__default.object,
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Placeholder while tweet is loading
|
|
548
|
+
*/
|
|
549
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Function to execute after load, return html element
|
|
553
|
+
*/
|
|
554
|
+
onLoad: PropTypes__default.func
|
|
555
|
+
});
|
|
556
|
+
|
|
557
|
+
var TwitterHashtagButton =
|
|
558
|
+
/*#__PURE__*/
|
|
559
|
+
function (_Component) {
|
|
560
|
+
inherits$1$1._inherits(TwitterHashtagButton, _Component);
|
|
561
|
+
|
|
562
|
+
function TwitterHashtagButton(props) {
|
|
563
|
+
var _this;
|
|
564
|
+
|
|
565
|
+
inherits$1$1._classCallCheck(this, TwitterHashtagButton);
|
|
566
|
+
|
|
567
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterHashtagButton).call(this, props));
|
|
568
|
+
_this.state = {
|
|
569
|
+
isLoading: true
|
|
570
|
+
};
|
|
571
|
+
return _this;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
inherits$1$1._createClass(TwitterHashtagButton, [{
|
|
575
|
+
key: "componentDidMount",
|
|
576
|
+
value: function componentDidMount() {
|
|
577
|
+
var _this2 = this;
|
|
578
|
+
|
|
579
|
+
var onLoad = this.props.onLoad;
|
|
580
|
+
|
|
581
|
+
if (exenv.canUseDOM) {
|
|
582
|
+
var script = require('scriptjs');
|
|
583
|
+
|
|
584
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
585
|
+
if (!window.twttr) {
|
|
586
|
+
console.error('Failure to load window.twttr in TwitterHashtagButton, aborting load.');
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
if (!_this2.isMountCanceled) {
|
|
591
|
+
window.twttr.widgets.createHashtagButton(_this2.props.tag, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
592
|
+
_this2.setState({
|
|
593
|
+
isLoading: false
|
|
594
|
+
});
|
|
595
|
+
|
|
596
|
+
if (onLoad) {
|
|
597
|
+
onLoad(element);
|
|
598
|
+
}
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}, {
|
|
605
|
+
key: "componentWillUnmount",
|
|
606
|
+
value: function componentWillUnmount() {
|
|
607
|
+
this.isMountCanceled = true;
|
|
608
|
+
}
|
|
609
|
+
}, {
|
|
610
|
+
key: "render",
|
|
611
|
+
value: function render() {
|
|
612
|
+
var isLoading = this.state.isLoading;
|
|
613
|
+
var placeholder = this.props.placeholder;
|
|
614
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
615
|
+
ref: "embedContainer"
|
|
616
|
+
}));
|
|
617
|
+
}
|
|
618
|
+
}]);
|
|
619
|
+
|
|
620
|
+
return TwitterHashtagButton;
|
|
621
|
+
}(React.Component);
|
|
622
|
+
|
|
623
|
+
inherits$1$1._defineProperty(TwitterHashtagButton, "propTypes", {
|
|
624
|
+
/**
|
|
625
|
+
* Tag name for hashtag button
|
|
626
|
+
*/
|
|
627
|
+
tag: PropTypes__default.string.isRequired,
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Additional options to be added to the button
|
|
631
|
+
*/
|
|
632
|
+
options: PropTypes__default.object,
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Placeholder while tweet is loading
|
|
636
|
+
*/
|
|
637
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Function to execute after load, return html element
|
|
641
|
+
*/
|
|
642
|
+
onLoad: PropTypes__default.func
|
|
643
|
+
});
|
|
644
|
+
|
|
645
|
+
var TwitterMentionButton =
|
|
646
|
+
/*#__PURE__*/
|
|
647
|
+
function (_Component) {
|
|
648
|
+
inherits$1$1._inherits(TwitterMentionButton, _Component);
|
|
649
|
+
|
|
650
|
+
function TwitterMentionButton(props) {
|
|
651
|
+
var _this;
|
|
652
|
+
|
|
653
|
+
inherits$1$1._classCallCheck(this, TwitterMentionButton);
|
|
654
|
+
|
|
655
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterMentionButton).call(this, props));
|
|
656
|
+
_this.state = {
|
|
657
|
+
isLoading: true
|
|
658
|
+
};
|
|
659
|
+
return _this;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
inherits$1$1._createClass(TwitterMentionButton, [{
|
|
663
|
+
key: "componentDidMount",
|
|
664
|
+
value: function componentDidMount() {
|
|
665
|
+
var _this2 = this;
|
|
666
|
+
|
|
667
|
+
var onLoad = this.props.onLoad;
|
|
668
|
+
|
|
669
|
+
if (exenv.canUseDOM) {
|
|
670
|
+
var script = require('scriptjs');
|
|
671
|
+
|
|
672
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
673
|
+
if (!window.twttr) {
|
|
674
|
+
console.error('Failure to load window.twttr in TwitterMentionButton, aborting load.');
|
|
675
|
+
return;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
if (!_this2.isMountCanceled) {
|
|
679
|
+
window.twttr.widgets.createMentionButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
680
|
+
_this2.setState({
|
|
681
|
+
isLoading: false
|
|
682
|
+
});
|
|
683
|
+
|
|
684
|
+
if (onLoad) {
|
|
685
|
+
onLoad(element);
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}, {
|
|
693
|
+
key: "componentWillUnmount",
|
|
694
|
+
value: function componentWillUnmount() {
|
|
695
|
+
this.isMountCanceled = true;
|
|
696
|
+
}
|
|
697
|
+
}, {
|
|
698
|
+
key: "render",
|
|
699
|
+
value: function render() {
|
|
700
|
+
var isLoading = this.state.isLoading;
|
|
701
|
+
var placeholder = this.props.placeholder;
|
|
702
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
703
|
+
ref: "embedContainer"
|
|
704
|
+
}));
|
|
705
|
+
}
|
|
706
|
+
}]);
|
|
707
|
+
|
|
708
|
+
return TwitterMentionButton;
|
|
709
|
+
}(React.Component);
|
|
710
|
+
|
|
711
|
+
inherits$1$1._defineProperty(TwitterMentionButton, "propTypes", {
|
|
712
|
+
/**
|
|
713
|
+
* Username to which you will need to tweet
|
|
714
|
+
*/
|
|
715
|
+
screenName: PropTypes__default.string.isRequired,
|
|
76
716
|
|
|
77
|
-
|
|
717
|
+
/**
|
|
718
|
+
* Additional options for overriding config.
|
|
719
|
+
*/
|
|
720
|
+
options: PropTypes__default.object,
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Placeholder while tweet is loading
|
|
724
|
+
*/
|
|
725
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Function to execute after load, return html element
|
|
729
|
+
*/
|
|
730
|
+
onLoad: PropTypes__default.func
|
|
731
|
+
});
|
|
732
|
+
|
|
733
|
+
var TwitterTweetEmbed =
|
|
734
|
+
/*#__PURE__*/
|
|
735
|
+
function (_Component) {
|
|
736
|
+
inherits$1$1._inherits(TwitterTweetEmbed, _Component);
|
|
737
|
+
|
|
738
|
+
function TwitterTweetEmbed(props) {
|
|
739
|
+
var _this;
|
|
740
|
+
|
|
741
|
+
inherits$1$1._classCallCheck(this, TwitterTweetEmbed);
|
|
742
|
+
|
|
743
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterTweetEmbed).call(this, props));
|
|
744
|
+
_this.state = {
|
|
745
|
+
isLoading: true
|
|
746
|
+
};
|
|
747
|
+
return _this;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
inherits$1$1._createClass(TwitterTweetEmbed, [{
|
|
751
|
+
key: "renderWidget",
|
|
752
|
+
value: function renderWidget() {
|
|
753
|
+
var _this2 = this;
|
|
754
|
+
|
|
755
|
+
var onLoad = this.props.onLoad;
|
|
756
|
+
|
|
757
|
+
if (!window.twttr) {
|
|
758
|
+
console.error('Failure to load window.twttr in TwitterTweetEmbed, aborting load.');
|
|
759
|
+
return;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
if (!this.isMountCanceled) {
|
|
763
|
+
window.twttr.widgets.createTweet(this.props.tweetId, this.refs.embedContainer, this.props.options).then(function (element) {
|
|
764
|
+
_this2.setState({
|
|
765
|
+
isLoading: false
|
|
766
|
+
});
|
|
767
|
+
|
|
768
|
+
if (onLoad) {
|
|
769
|
+
onLoad(element);
|
|
770
|
+
}
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
}, {
|
|
775
|
+
key: "componentDidMount",
|
|
776
|
+
value: function componentDidMount() {
|
|
777
|
+
var _this3 = this;
|
|
778
|
+
|
|
779
|
+
if (exenv.canUseDOM) {
|
|
780
|
+
var script = require('scriptjs');
|
|
781
|
+
|
|
782
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
783
|
+
_this3.renderWidget();
|
|
784
|
+
});
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
}, {
|
|
788
|
+
key: "componentWillUnmount",
|
|
789
|
+
value: function componentWillUnmount() {
|
|
790
|
+
this.isMountCanceled = true;
|
|
791
|
+
}
|
|
792
|
+
}, {
|
|
793
|
+
key: "render",
|
|
794
|
+
value: function render() {
|
|
795
|
+
var isLoading = this.state.isLoading;
|
|
796
|
+
var placeholder = this.props.placeholder;
|
|
797
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
798
|
+
ref: "embedContainer"
|
|
799
|
+
}));
|
|
800
|
+
}
|
|
801
|
+
}]);
|
|
802
|
+
|
|
803
|
+
return TwitterTweetEmbed;
|
|
804
|
+
}(React.Component);
|
|
805
|
+
|
|
806
|
+
inherits$1$1._defineProperty(TwitterTweetEmbed, "propTypes", {
|
|
807
|
+
/**
|
|
808
|
+
* Tweet id that needs to be shown
|
|
809
|
+
*/
|
|
810
|
+
tweetId: PropTypes__default.string.isRequired,
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Additional options to pass to twitter widget plugin
|
|
814
|
+
*/
|
|
815
|
+
options: PropTypes__default.object,
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* Placeholder while tweet is loading
|
|
819
|
+
*/
|
|
820
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Function to execute after load, return html element
|
|
824
|
+
*/
|
|
825
|
+
onLoad: PropTypes__default.func
|
|
826
|
+
});
|
|
827
|
+
|
|
828
|
+
var TwitterMomentShare =
|
|
829
|
+
/*#__PURE__*/
|
|
830
|
+
function (_Component) {
|
|
831
|
+
inherits$1$1._inherits(TwitterMomentShare, _Component);
|
|
832
|
+
|
|
833
|
+
function TwitterMomentShare(props) {
|
|
834
|
+
var _this;
|
|
835
|
+
|
|
836
|
+
inherits$1$1._classCallCheck(this, TwitterMomentShare);
|
|
837
|
+
|
|
838
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterMomentShare).call(this, props));
|
|
839
|
+
_this.state = {
|
|
840
|
+
isLoading: true
|
|
841
|
+
};
|
|
842
|
+
return _this;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
inherits$1$1._createClass(TwitterMomentShare, [{
|
|
846
|
+
key: "componentDidMount",
|
|
847
|
+
value: function componentDidMount() {
|
|
848
|
+
var _this2 = this;
|
|
849
|
+
|
|
850
|
+
var onLoad = this.props.onLoad;
|
|
851
|
+
|
|
852
|
+
if (exenv.canUseDOM) {
|
|
853
|
+
var script = require('scriptjs');
|
|
854
|
+
|
|
855
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
856
|
+
if (!window.twttr) {
|
|
857
|
+
console.error('Failure to load window.twttr in TwitterMomentShare, aborting load.');
|
|
858
|
+
return;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
if (!_this2.isMountCanceled) {
|
|
862
|
+
window.twttr.widgets.createMoment(_this2.props.momentId, _this2.refs.shareMoment, _this2.props.options).then(function (element) {
|
|
863
|
+
_this2.setState({
|
|
864
|
+
isLoading: false
|
|
865
|
+
});
|
|
866
|
+
|
|
867
|
+
if (onLoad) {
|
|
868
|
+
onLoad(element);
|
|
869
|
+
}
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
});
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
}, {
|
|
876
|
+
key: "componentWillUnmount",
|
|
877
|
+
value: function componentWillUnmount() {
|
|
878
|
+
this.isMountCanceled = true;
|
|
879
|
+
}
|
|
880
|
+
}, {
|
|
881
|
+
key: "render",
|
|
882
|
+
value: function render() {
|
|
883
|
+
var isLoading = this.state.isLoading;
|
|
884
|
+
var placeholder = this.props.placeholder;
|
|
885
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
886
|
+
ref: "shareMoment"
|
|
887
|
+
}));
|
|
888
|
+
}
|
|
889
|
+
}]);
|
|
890
|
+
|
|
891
|
+
return TwitterMomentShare;
|
|
892
|
+
}(React.Component);
|
|
893
|
+
|
|
894
|
+
inherits$1$1._defineProperty(TwitterMomentShare, "propTypes", {
|
|
895
|
+
/**
|
|
896
|
+
* id of Twitter moment to show
|
|
897
|
+
*/
|
|
898
|
+
momentId: PropTypes__default.string.isRequired,
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* Additional options for overriding config.
|
|
902
|
+
*/
|
|
903
|
+
options: PropTypes__default.object,
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
* Placeholder while tweet is loading
|
|
907
|
+
*/
|
|
908
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* Function to execute after load, return html element
|
|
912
|
+
*/
|
|
913
|
+
onLoad: PropTypes__default.func
|
|
914
|
+
});
|
|
915
|
+
|
|
916
|
+
var TwitterDMButton =
|
|
917
|
+
/*#__PURE__*/
|
|
918
|
+
function (_Component) {
|
|
919
|
+
inherits$1$1._inherits(TwitterDMButton, _Component);
|
|
920
|
+
|
|
921
|
+
function TwitterDMButton(props) {
|
|
922
|
+
var _this;
|
|
923
|
+
|
|
924
|
+
inherits$1$1._classCallCheck(this, TwitterDMButton);
|
|
925
|
+
|
|
926
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterDMButton).call(this, props));
|
|
927
|
+
_this.state = {
|
|
928
|
+
isLoading: true
|
|
929
|
+
};
|
|
930
|
+
return _this;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
inherits$1$1._createClass(TwitterDMButton, [{
|
|
934
|
+
key: "componentDidMount",
|
|
935
|
+
value: function componentDidMount() {
|
|
936
|
+
var _this2 = this;
|
|
937
|
+
|
|
938
|
+
var onLoad = this.props.onLoad;
|
|
939
|
+
|
|
940
|
+
if (exenv.canUseDOM) {
|
|
941
|
+
var script = require('scriptjs');
|
|
942
|
+
|
|
943
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
944
|
+
if (!window.twttr) {
|
|
945
|
+
console.error('Failure to load window.twttr in TwitterDMButton, aborting load.');
|
|
946
|
+
return;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
if (!_this2.isMountCanceled) {
|
|
950
|
+
window.twttr.widgets.createDMButton(_this2.props.id, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
951
|
+
_this2.setState({
|
|
952
|
+
isLoading: false
|
|
953
|
+
});
|
|
954
|
+
|
|
955
|
+
if (onLoad) {
|
|
956
|
+
onLoad(element);
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
}, {
|
|
964
|
+
key: "componentWillUnmount",
|
|
965
|
+
value: function componentWillUnmount() {
|
|
966
|
+
this.isMountCanceled = true;
|
|
967
|
+
}
|
|
968
|
+
}, {
|
|
969
|
+
key: "render",
|
|
970
|
+
value: function render() {
|
|
971
|
+
var isLoading = this.state.isLoading;
|
|
972
|
+
var placeholder = this.props.placeholder;
|
|
973
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
974
|
+
ref: "embedContainer"
|
|
975
|
+
}));
|
|
976
|
+
}
|
|
977
|
+
}]);
|
|
978
|
+
|
|
979
|
+
return TwitterDMButton;
|
|
980
|
+
}(React.Component);
|
|
78
981
|
|
|
79
|
-
|
|
80
|
-
|
|
982
|
+
inherits$1$1._defineProperty(TwitterDMButton, "propTypes", {
|
|
983
|
+
/**
|
|
984
|
+
* Twitter user id for DM button
|
|
985
|
+
*/
|
|
986
|
+
id: PropTypes__default.number.isRequired,
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Additional options to be added to the button
|
|
990
|
+
*/
|
|
991
|
+
options: PropTypes__default.object,
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Placeholder while tweet is loading
|
|
995
|
+
*/
|
|
996
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* Function to execute after load, return html element
|
|
1000
|
+
*/
|
|
1001
|
+
onLoad: PropTypes__default.func
|
|
1002
|
+
});
|
|
1003
|
+
|
|
1004
|
+
var TwitterVideoEmbed =
|
|
1005
|
+
/*#__PURE__*/
|
|
1006
|
+
function (_Component) {
|
|
1007
|
+
inherits$1$1._inherits(TwitterVideoEmbed, _Component);
|
|
1008
|
+
|
|
1009
|
+
function TwitterVideoEmbed(props) {
|
|
1010
|
+
var _this;
|
|
1011
|
+
|
|
1012
|
+
inherits$1$1._classCallCheck(this, TwitterVideoEmbed);
|
|
1013
|
+
|
|
1014
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterVideoEmbed).call(this, props));
|
|
1015
|
+
_this.state = {
|
|
1016
|
+
isLoading: true
|
|
1017
|
+
};
|
|
1018
|
+
return _this;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
inherits$1$1._createClass(TwitterVideoEmbed, [{
|
|
1022
|
+
key: "componentDidMount",
|
|
1023
|
+
value: function componentDidMount() {
|
|
1024
|
+
var _this2 = this;
|
|
1025
|
+
|
|
1026
|
+
var onLoad = this.props.onLoad;
|
|
1027
|
+
|
|
1028
|
+
if (exenv.canUseDOM) {
|
|
1029
|
+
var script = require('scriptjs');
|
|
1030
|
+
|
|
1031
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1032
|
+
if (!window.twttr) {
|
|
1033
|
+
console.error('Failure to load window.twttr in TwitterVideoEmbed, aborting load.');
|
|
1034
|
+
return;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
if (!_this2.isMountCanceled) {
|
|
1038
|
+
window.twttr.widgets.createVideo(_this2.props.id, _this2.refs.embedContainer).then(function (element) {
|
|
1039
|
+
_this2.setState({
|
|
1040
|
+
isLoading: false
|
|
1041
|
+
});
|
|
1042
|
+
|
|
1043
|
+
if (onLoad) {
|
|
1044
|
+
onLoad(element);
|
|
1045
|
+
}
|
|
1046
|
+
});
|
|
1047
|
+
}
|
|
1048
|
+
});
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
}, {
|
|
1052
|
+
key: "componentWillUnmount",
|
|
1053
|
+
value: function componentWillUnmount() {
|
|
1054
|
+
this.isMountCanceled = true;
|
|
1055
|
+
}
|
|
1056
|
+
}, {
|
|
1057
|
+
key: "render",
|
|
1058
|
+
value: function render() {
|
|
1059
|
+
var isLoading = this.state.isLoading;
|
|
1060
|
+
var placeholder = this.props.placeholder;
|
|
1061
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1062
|
+
ref: "embedContainer"
|
|
1063
|
+
}));
|
|
1064
|
+
}
|
|
1065
|
+
}]);
|
|
1066
|
+
|
|
1067
|
+
return TwitterVideoEmbed;
|
|
1068
|
+
}(React.Component);
|
|
1069
|
+
|
|
1070
|
+
inherits$1$1._defineProperty(TwitterVideoEmbed, "propTypes", {
|
|
1071
|
+
/**
|
|
1072
|
+
* Id of video tweet.
|
|
1073
|
+
*/
|
|
1074
|
+
id: PropTypes__default.string.isRequired,
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* Placeholder while tweet is loading
|
|
1078
|
+
*/
|
|
1079
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* Function to execute after load, return html element
|
|
1083
|
+
*/
|
|
1084
|
+
onLoad: PropTypes__default.func
|
|
1085
|
+
});
|
|
1086
|
+
|
|
1087
|
+
var TwitterOnAirButton =
|
|
1088
|
+
/*#__PURE__*/
|
|
1089
|
+
function (_Component) {
|
|
1090
|
+
inherits$1$1._inherits(TwitterOnAirButton, _Component);
|
|
1091
|
+
|
|
1092
|
+
function TwitterOnAirButton(props) {
|
|
1093
|
+
var _this;
|
|
1094
|
+
|
|
1095
|
+
inherits$1$1._classCallCheck(this, TwitterOnAirButton);
|
|
1096
|
+
|
|
1097
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterOnAirButton).call(this, props));
|
|
1098
|
+
_this.state = {
|
|
1099
|
+
isLoading: true
|
|
1100
|
+
};
|
|
1101
|
+
return _this;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
inherits$1$1._createClass(TwitterOnAirButton, [{
|
|
1105
|
+
key: "componentDidMount",
|
|
1106
|
+
value: function componentDidMount() {
|
|
1107
|
+
var _this2 = this;
|
|
1108
|
+
|
|
1109
|
+
var onLoad = this.props.onLoad;
|
|
1110
|
+
|
|
1111
|
+
if (exenv.canUseDOM) {
|
|
1112
|
+
var script = require('scriptjs');
|
|
1113
|
+
|
|
1114
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1115
|
+
if (!window.twttr) {
|
|
1116
|
+
console.error('Failure to load window.twttr in TwitterOnAirButton, aborting load.');
|
|
1117
|
+
return;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
if (!_this2.isMountCanceled) {
|
|
1121
|
+
window.twttr.widgets.createPeriscopeOnAirButton(_this2.props.username, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1122
|
+
_this2.setState({
|
|
1123
|
+
isLoading: false
|
|
1124
|
+
});
|
|
1125
|
+
|
|
1126
|
+
if (onLoad) {
|
|
1127
|
+
onLoad(element);
|
|
1128
|
+
}
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1131
|
+
});
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
}, {
|
|
1135
|
+
key: "componentWillUnmount",
|
|
1136
|
+
value: function componentWillUnmount() {
|
|
1137
|
+
this.isMountCanceled = true;
|
|
1138
|
+
}
|
|
1139
|
+
}, {
|
|
1140
|
+
key: "render",
|
|
1141
|
+
value: function render() {
|
|
1142
|
+
var isLoading = this.state.isLoading;
|
|
1143
|
+
var placeholder = this.props.placeholder;
|
|
1144
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1145
|
+
ref: "embedContainer"
|
|
1146
|
+
}));
|
|
1147
|
+
}
|
|
1148
|
+
}]);
|
|
1149
|
+
|
|
1150
|
+
return TwitterOnAirButton;
|
|
1151
|
+
}(React.Component);
|
|
1152
|
+
|
|
1153
|
+
inherits$1$1._defineProperty(TwitterOnAirButton, "propTypes", {
|
|
1154
|
+
/**
|
|
1155
|
+
* Username for which you require periscope on air button
|
|
1156
|
+
*/
|
|
1157
|
+
username: PropTypes__default.string.isRequired,
|
|
1158
|
+
|
|
1159
|
+
/**
|
|
1160
|
+
* Additional options for overriding config.
|
|
1161
|
+
*/
|
|
1162
|
+
options: PropTypes__default.object,
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* Placeholder while tweet is loading
|
|
1166
|
+
*/
|
|
1167
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
1168
|
+
|
|
1169
|
+
/**
|
|
1170
|
+
* Function to execute after load, return html element
|
|
1171
|
+
*/
|
|
1172
|
+
onLoad: PropTypes__default.func
|
|
1173
|
+
});
|
|
1174
|
+
|
|
1175
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1176
|
+
try {
|
|
1177
|
+
var info = gen[key](arg);
|
|
1178
|
+
var value = info.value;
|
|
1179
|
+
} catch (error) {
|
|
1180
|
+
reject(error);
|
|
1181
|
+
return;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
if (info.done) {
|
|
1185
|
+
resolve(value);
|
|
1186
|
+
} else {
|
|
1187
|
+
Promise.resolve(value).then(_next, _throw);
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
function _asyncToGenerator(fn) {
|
|
1192
|
+
return function () {
|
|
1193
|
+
var self = this,
|
|
1194
|
+
args = arguments;
|
|
1195
|
+
return new Promise(function (resolve, reject) {
|
|
1196
|
+
var gen = fn.apply(self, args);
|
|
1197
|
+
|
|
1198
|
+
function _next(value) {
|
|
1199
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
function _throw(err) {
|
|
1203
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
_next(undefined);
|
|
1207
|
+
});
|
|
1208
|
+
};
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
var asyncToGenerator = _asyncToGenerator;
|
|
1212
|
+
|
|
1213
|
+
function _defineProperty(obj, key, value) {
|
|
1214
|
+
if (key in obj) {
|
|
1215
|
+
Object.defineProperty(obj, key, {
|
|
1216
|
+
value: value,
|
|
1217
|
+
enumerable: true,
|
|
1218
|
+
configurable: true,
|
|
1219
|
+
writable: true
|
|
1220
|
+
});
|
|
1221
|
+
} else {
|
|
1222
|
+
obj[key] = value;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
return obj;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
var defineProperty = _defineProperty;
|
|
81
1229
|
|
|
82
1230
|
var canUseDOM = !!(
|
|
83
1231
|
typeof window !== 'undefined' &&
|
|
@@ -87,7 +1235,6 @@ var canUseDOM = !!(
|
|
|
87
1235
|
|
|
88
1236
|
var canUseDom = canUseDOM;
|
|
89
1237
|
|
|
90
|
-
var objectWithoutPropertiesLoose = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
91
1238
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
92
1239
|
if (source == null) return {};
|
|
93
1240
|
var target = {};
|
|
@@ -103,13 +1250,8 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
103
1250
|
return target;
|
|
104
1251
|
}
|
|
105
1252
|
|
|
106
|
-
|
|
107
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
_commonjsHelpers.unwrapExports(objectWithoutPropertiesLoose);
|
|
1253
|
+
var objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
|
|
111
1254
|
|
|
112
|
-
var objectWithoutProperties = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
113
1255
|
function _objectWithoutProperties(source, excluded) {
|
|
114
1256
|
if (source == null) return {};
|
|
115
1257
|
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
@@ -129,30 +1271,26 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
129
1271
|
return target;
|
|
130
1272
|
}
|
|
131
1273
|
|
|
132
|
-
|
|
133
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
var _objectWithoutProperties = _commonjsHelpers.unwrapExports(objectWithoutProperties);
|
|
1274
|
+
var objectWithoutProperties = _objectWithoutProperties;
|
|
137
1275
|
|
|
138
|
-
var LoginStatus
|
|
1276
|
+
var LoginStatus = {
|
|
139
1277
|
CONNECTED: 'connected',
|
|
140
1278
|
AUTHORIZATION_EXPIRED: 'authorization_expired',
|
|
141
1279
|
NOT_AUTHORIZED: 'not_authorized',
|
|
142
1280
|
UNKNOWN: 'unknown'
|
|
143
1281
|
};
|
|
144
1282
|
|
|
145
|
-
function ownKeys
|
|
1283
|
+
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; }
|
|
146
1284
|
|
|
147
|
-
function _objectSpread
|
|
1285
|
+
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; }
|
|
148
1286
|
const Method = {
|
|
149
1287
|
GET: 'get',
|
|
150
1288
|
POST: 'post',
|
|
151
1289
|
DELETE: 'delete'
|
|
152
1290
|
};
|
|
153
|
-
class Facebook
|
|
1291
|
+
class Facebook {
|
|
154
1292
|
constructor(options = {}) {
|
|
155
|
-
this.options = _objectSpread
|
|
1293
|
+
this.options = _objectSpread({
|
|
156
1294
|
domain: 'connect.facebook.net',
|
|
157
1295
|
version: 'v3.2',
|
|
158
1296
|
cookie: false,
|
|
@@ -180,7 +1318,7 @@ class Facebook$1 {
|
|
|
180
1318
|
init() {
|
|
181
1319
|
var _this = this;
|
|
182
1320
|
|
|
183
|
-
return
|
|
1321
|
+
return asyncToGenerator(function* () {
|
|
184
1322
|
if (_this.loadingPromise) {
|
|
185
1323
|
return _this.loadingPromise;
|
|
186
1324
|
}
|
|
@@ -193,7 +1331,7 @@ class Facebook$1 {
|
|
|
193
1331
|
debug,
|
|
194
1332
|
chatSupport
|
|
195
1333
|
} = _this$options,
|
|
196
|
-
restOptions =
|
|
1334
|
+
restOptions = objectWithoutProperties(_this$options, ["domain", "language", "debug", "chatSupport"]);
|
|
197
1335
|
|
|
198
1336
|
window.fbAsyncInit = () => {
|
|
199
1337
|
window.FB.init({
|
|
@@ -225,7 +1363,7 @@ class Facebook$1 {
|
|
|
225
1363
|
process(method, before = [], after = []) {
|
|
226
1364
|
var _this2 = this;
|
|
227
1365
|
|
|
228
|
-
return
|
|
1366
|
+
return asyncToGenerator(function* () {
|
|
229
1367
|
const fb = yield _this2.init();
|
|
230
1368
|
return new Promise((resolve, reject) => {
|
|
231
1369
|
fb[method](...before, response => {
|
|
@@ -253,7 +1391,7 @@ class Facebook$1 {
|
|
|
253
1391
|
ui(options) {
|
|
254
1392
|
var _this3 = this;
|
|
255
1393
|
|
|
256
|
-
return
|
|
1394
|
+
return asyncToGenerator(function* () {
|
|
257
1395
|
return _this3.process('ui', [options]);
|
|
258
1396
|
})();
|
|
259
1397
|
}
|
|
@@ -261,7 +1399,7 @@ class Facebook$1 {
|
|
|
261
1399
|
api(path, method = Method.GET, params = {}) {
|
|
262
1400
|
var _this4 = this;
|
|
263
1401
|
|
|
264
|
-
return
|
|
1402
|
+
return asyncToGenerator(function* () {
|
|
265
1403
|
return _this4.process('api', [path, method, params]);
|
|
266
1404
|
})();
|
|
267
1405
|
}
|
|
@@ -269,7 +1407,7 @@ class Facebook$1 {
|
|
|
269
1407
|
login(opts = null) {
|
|
270
1408
|
var _this5 = this;
|
|
271
1409
|
|
|
272
|
-
return
|
|
1410
|
+
return asyncToGenerator(function* () {
|
|
273
1411
|
return _this5.process('login', [], [opts]);
|
|
274
1412
|
})();
|
|
275
1413
|
}
|
|
@@ -277,7 +1415,7 @@ class Facebook$1 {
|
|
|
277
1415
|
logout() {
|
|
278
1416
|
var _this6 = this;
|
|
279
1417
|
|
|
280
|
-
return
|
|
1418
|
+
return asyncToGenerator(function* () {
|
|
281
1419
|
return _this6.process('logout');
|
|
282
1420
|
})();
|
|
283
1421
|
}
|
|
@@ -285,7 +1423,7 @@ class Facebook$1 {
|
|
|
285
1423
|
getLoginStatus() {
|
|
286
1424
|
var _this7 = this;
|
|
287
1425
|
|
|
288
|
-
return
|
|
1426
|
+
return asyncToGenerator(function* () {
|
|
289
1427
|
return _this7.process('getLoginStatus');
|
|
290
1428
|
})();
|
|
291
1429
|
}
|
|
@@ -293,7 +1431,7 @@ class Facebook$1 {
|
|
|
293
1431
|
getAuthResponse() {
|
|
294
1432
|
var _this8 = this;
|
|
295
1433
|
|
|
296
|
-
return
|
|
1434
|
+
return asyncToGenerator(function* () {
|
|
297
1435
|
return _this8.process('getAuthResponse');
|
|
298
1436
|
})();
|
|
299
1437
|
}
|
|
@@ -301,14 +1439,14 @@ class Facebook$1 {
|
|
|
301
1439
|
getTokenDetail(loginResponse) {
|
|
302
1440
|
var _this9 = this;
|
|
303
1441
|
|
|
304
|
-
return
|
|
305
|
-
if (loginResponse.status === LoginStatus
|
|
1442
|
+
return asyncToGenerator(function* () {
|
|
1443
|
+
if (loginResponse.status === LoginStatus.CONNECTED && loginResponse.authResponse) {
|
|
306
1444
|
return loginResponse.authResponse;
|
|
307
1445
|
}
|
|
308
1446
|
|
|
309
1447
|
const response = yield _this9.getLoginStatus();
|
|
310
1448
|
|
|
311
|
-
if (response.status === LoginStatus
|
|
1449
|
+
if (response.status === LoginStatus.CONNECTED && response.authResponse) {
|
|
312
1450
|
return response.authResponse;
|
|
313
1451
|
}
|
|
314
1452
|
|
|
@@ -319,7 +1457,7 @@ class Facebook$1 {
|
|
|
319
1457
|
getProfile(params) {
|
|
320
1458
|
var _this10 = this;
|
|
321
1459
|
|
|
322
|
-
return
|
|
1460
|
+
return asyncToGenerator(function* () {
|
|
323
1461
|
return _this10.api('/me', Method.GET, params);
|
|
324
1462
|
})();
|
|
325
1463
|
}
|
|
@@ -327,7 +1465,7 @@ class Facebook$1 {
|
|
|
327
1465
|
getTokenDetailWithProfile(params, response) {
|
|
328
1466
|
var _this11 = this;
|
|
329
1467
|
|
|
330
|
-
return
|
|
1468
|
+
return asyncToGenerator(function* () {
|
|
331
1469
|
const tokenDetail = yield _this11.getTokenDetail(response);
|
|
332
1470
|
const profile = yield _this11.getProfile(params);
|
|
333
1471
|
return {
|
|
@@ -340,7 +1478,7 @@ class Facebook$1 {
|
|
|
340
1478
|
getToken() {
|
|
341
1479
|
var _this12 = this;
|
|
342
1480
|
|
|
343
|
-
return
|
|
1481
|
+
return asyncToGenerator(function* () {
|
|
344
1482
|
const authResponse = yield _this12.getTokenDetail();
|
|
345
1483
|
return authResponse.accessToken;
|
|
346
1484
|
})();
|
|
@@ -349,7 +1487,7 @@ class Facebook$1 {
|
|
|
349
1487
|
getUserId() {
|
|
350
1488
|
var _this13 = this;
|
|
351
1489
|
|
|
352
|
-
return
|
|
1490
|
+
return asyncToGenerator(function* () {
|
|
353
1491
|
const authResponse = yield _this13.getTokenDetail();
|
|
354
1492
|
return authResponse.userID;
|
|
355
1493
|
})();
|
|
@@ -358,8 +1496,8 @@ class Facebook$1 {
|
|
|
358
1496
|
sendInvite(to, options) {
|
|
359
1497
|
var _this14 = this;
|
|
360
1498
|
|
|
361
|
-
return
|
|
362
|
-
return _this14.ui(_objectSpread
|
|
1499
|
+
return asyncToGenerator(function* () {
|
|
1500
|
+
return _this14.ui(_objectSpread({
|
|
363
1501
|
to,
|
|
364
1502
|
method: 'apprequests'
|
|
365
1503
|
}, options));
|
|
@@ -369,7 +1507,7 @@ class Facebook$1 {
|
|
|
369
1507
|
postAction(ogNamespace, ogAction, ogObject, ogObjectUrl, noFeedStory) {
|
|
370
1508
|
var _this15 = this;
|
|
371
1509
|
|
|
372
|
-
return
|
|
1510
|
+
return asyncToGenerator(function* () {
|
|
373
1511
|
let url = `/me/${ogNamespace}:${ogAction}?${ogObject}=${encodeURIComponent(ogObjectUrl)}`;
|
|
374
1512
|
|
|
375
1513
|
if (noFeedStory === true) {
|
|
@@ -383,7 +1521,7 @@ class Facebook$1 {
|
|
|
383
1521
|
getPermissions() {
|
|
384
1522
|
var _this16 = this;
|
|
385
1523
|
|
|
386
|
-
return
|
|
1524
|
+
return asyncToGenerator(function* () {
|
|
387
1525
|
const response = yield _this16.api('/me/permissions');
|
|
388
1526
|
return response.data;
|
|
389
1527
|
})();
|
|
@@ -392,7 +1530,7 @@ class Facebook$1 {
|
|
|
392
1530
|
hasPermissions(permissions) {
|
|
393
1531
|
var _this17 = this;
|
|
394
1532
|
|
|
395
|
-
return
|
|
1533
|
+
return asyncToGenerator(function* () {
|
|
396
1534
|
const usersPermissions = yield _this17.getPermissions();
|
|
397
1535
|
const findedPermissions = permissions.filter(p => {
|
|
398
1536
|
const currentPermission = usersPermissions.find(row => {
|
|
@@ -411,7 +1549,7 @@ class Facebook$1 {
|
|
|
411
1549
|
subscribe(eventName, callback) {
|
|
412
1550
|
var _this18 = this;
|
|
413
1551
|
|
|
414
|
-
return
|
|
1552
|
+
return asyncToGenerator(function* () {
|
|
415
1553
|
const fb = yield _this18.init();
|
|
416
1554
|
fb.Event.subscribe(eventName, callback);
|
|
417
1555
|
})();
|
|
@@ -420,7 +1558,7 @@ class Facebook$1 {
|
|
|
420
1558
|
unsubscribe(eventName, callback) {
|
|
421
1559
|
var _this19 = this;
|
|
422
1560
|
|
|
423
|
-
return
|
|
1561
|
+
return asyncToGenerator(function* () {
|
|
424
1562
|
const fb = yield _this19.init();
|
|
425
1563
|
fb.Event.unsubscribe(eventName, callback);
|
|
426
1564
|
})();
|
|
@@ -429,7 +1567,7 @@ class Facebook$1 {
|
|
|
429
1567
|
parse(parentNode) {
|
|
430
1568
|
var _this20 = this;
|
|
431
1569
|
|
|
432
|
-
return
|
|
1570
|
+
return asyncToGenerator(function* () {
|
|
433
1571
|
const fb = yield _this20.init();
|
|
434
1572
|
|
|
435
1573
|
if (typeof parentNode === 'undefined') {
|
|
@@ -443,7 +1581,7 @@ class Facebook$1 {
|
|
|
443
1581
|
getRequests() {
|
|
444
1582
|
var _this21 = this;
|
|
445
1583
|
|
|
446
|
-
return
|
|
1584
|
+
return asyncToGenerator(function* () {
|
|
447
1585
|
return _this21.api('/me/apprequests');
|
|
448
1586
|
})();
|
|
449
1587
|
}
|
|
@@ -451,7 +1589,7 @@ class Facebook$1 {
|
|
|
451
1589
|
removeRequest(requestID) {
|
|
452
1590
|
var _this22 = this;
|
|
453
1591
|
|
|
454
|
-
return
|
|
1592
|
+
return asyncToGenerator(function* () {
|
|
455
1593
|
return _this22.api(requestID, Method.DELETE);
|
|
456
1594
|
})();
|
|
457
1595
|
}
|
|
@@ -459,7 +1597,7 @@ class Facebook$1 {
|
|
|
459
1597
|
setAutoGrow() {
|
|
460
1598
|
var _this23 = this;
|
|
461
1599
|
|
|
462
|
-
return
|
|
1600
|
+
return asyncToGenerator(function* () {
|
|
463
1601
|
const fb = yield _this23.init();
|
|
464
1602
|
fb.Canvas.setAutoGrow();
|
|
465
1603
|
})();
|
|
@@ -468,7 +1606,7 @@ class Facebook$1 {
|
|
|
468
1606
|
paySimple(product, quantity = 1) {
|
|
469
1607
|
var _this24 = this;
|
|
470
1608
|
|
|
471
|
-
return
|
|
1609
|
+
return asyncToGenerator(function* () {
|
|
472
1610
|
return _this24.ui({
|
|
473
1611
|
method: 'pay',
|
|
474
1612
|
action: 'purchaseitem',
|
|
@@ -481,8 +1619,8 @@ class Facebook$1 {
|
|
|
481
1619
|
pay(product, options) {
|
|
482
1620
|
var _this25 = this;
|
|
483
1621
|
|
|
484
|
-
return
|
|
485
|
-
return _this25.ui(_objectSpread
|
|
1622
|
+
return asyncToGenerator(function* () {
|
|
1623
|
+
return _this25.ui(_objectSpread({
|
|
486
1624
|
method: 'pay',
|
|
487
1625
|
action: 'purchaseitem',
|
|
488
1626
|
product
|
|
@@ -765,20 +1903,20 @@ class Facebook$1 {
|
|
|
765
1903
|
var FacebookContext = React.createContext();
|
|
766
1904
|
|
|
767
1905
|
let api = null;
|
|
768
|
-
class Facebook extends React.Component {
|
|
1906
|
+
class Facebook$1 extends React.Component {
|
|
769
1907
|
constructor(...args) {
|
|
770
1908
|
var _this;
|
|
771
1909
|
|
|
772
1910
|
super(...args);
|
|
773
1911
|
_this = this;
|
|
774
1912
|
|
|
775
|
-
defineProperty
|
|
1913
|
+
defineProperty(this, "state", {
|
|
776
1914
|
isReady: false
|
|
777
1915
|
});
|
|
778
1916
|
|
|
779
|
-
defineProperty
|
|
1917
|
+
defineProperty(this, "handleInit",
|
|
780
1918
|
/*#__PURE__*/
|
|
781
|
-
|
|
1919
|
+
asyncToGenerator(function* () {
|
|
782
1920
|
// do not run if SSR
|
|
783
1921
|
if (!canUseDom) {
|
|
784
1922
|
throw new Error('You can not use Facebook without DOM');
|
|
@@ -806,7 +1944,7 @@ class Facebook extends React.Component {
|
|
|
806
1944
|
debug,
|
|
807
1945
|
chatSupport
|
|
808
1946
|
} = _this.props;
|
|
809
|
-
api = new Facebook
|
|
1947
|
+
api = new Facebook({
|
|
810
1948
|
domain,
|
|
811
1949
|
appId,
|
|
812
1950
|
version,
|
|
@@ -860,14 +1998,14 @@ class Facebook extends React.Component {
|
|
|
860
1998
|
handleInit,
|
|
861
1999
|
api
|
|
862
2000
|
};
|
|
863
|
-
return React__default
|
|
2001
|
+
return React__default.createElement(FacebookContext.Provider, {
|
|
864
2002
|
value: value
|
|
865
2003
|
}, children);
|
|
866
2004
|
}
|
|
867
2005
|
|
|
868
2006
|
}
|
|
869
2007
|
|
|
870
|
-
defineProperty
|
|
2008
|
+
defineProperty(Facebook$1, "defaultProps", {
|
|
871
2009
|
version: 'v3.1',
|
|
872
2010
|
cookie: false,
|
|
873
2011
|
status: false,
|
|
@@ -897,16 +2035,12 @@ function _extends() {
|
|
|
897
2035
|
return target;
|
|
898
2036
|
};
|
|
899
2037
|
|
|
900
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
901
2038
|
return _extends.apply(this, arguments);
|
|
902
2039
|
}
|
|
903
2040
|
|
|
904
2041
|
module.exports = _extends;
|
|
905
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
906
2042
|
});
|
|
907
2043
|
|
|
908
|
-
var _extends = _commonjsHelpers.unwrapExports(_extends_1);
|
|
909
|
-
|
|
910
2044
|
class Initialize extends React.Component {
|
|
911
2045
|
componentDidMount() {
|
|
912
2046
|
this.$isMounted = true;
|
|
@@ -920,7 +2054,7 @@ class Initialize extends React.Component {
|
|
|
920
2054
|
prepare() {
|
|
921
2055
|
var _this = this;
|
|
922
2056
|
|
|
923
|
-
return
|
|
2057
|
+
return asyncToGenerator(function* () {
|
|
924
2058
|
const {
|
|
925
2059
|
onReady,
|
|
926
2060
|
handleInit
|
|
@@ -953,16 +2087,16 @@ class Initialize extends React.Component {
|
|
|
953
2087
|
|
|
954
2088
|
}
|
|
955
2089
|
|
|
956
|
-
defineProperty
|
|
2090
|
+
defineProperty(Initialize, "defaultProps", {
|
|
957
2091
|
onReady: undefined,
|
|
958
2092
|
api: undefined
|
|
959
2093
|
});
|
|
960
2094
|
|
|
961
|
-
var Initialize$1 = React.forwardRef((props, ref) => React__default
|
|
2095
|
+
var Initialize$1 = React.forwardRef((props, ref) => React__default.createElement(FacebookContext.Consumer, null, ({
|
|
962
2096
|
handleInit,
|
|
963
2097
|
isReady,
|
|
964
2098
|
api
|
|
965
|
-
}) => React__default
|
|
2099
|
+
}) => React__default.createElement(Initialize, _extends_1({}, props, {
|
|
966
2100
|
handleInit: handleInit,
|
|
967
2101
|
isReady: isReady,
|
|
968
2102
|
api: api,
|
|
@@ -973,21 +2107,21 @@ class Parser extends React.Component {
|
|
|
973
2107
|
constructor(...args) {
|
|
974
2108
|
super(...args);
|
|
975
2109
|
|
|
976
|
-
defineProperty
|
|
2110
|
+
defineProperty(this, "state", {});
|
|
977
2111
|
|
|
978
|
-
defineProperty
|
|
2112
|
+
defineProperty(this, "handleReady", api => {
|
|
979
2113
|
this.setState({
|
|
980
2114
|
api
|
|
981
2115
|
}, this.handleParse);
|
|
982
2116
|
});
|
|
983
2117
|
|
|
984
|
-
defineProperty
|
|
2118
|
+
defineProperty(this, "handleContainer", container => {
|
|
985
2119
|
this.setState({
|
|
986
2120
|
container
|
|
987
2121
|
}, this.handleParse);
|
|
988
2122
|
});
|
|
989
2123
|
|
|
990
|
-
defineProperty
|
|
2124
|
+
defineProperty(this, "handleParse", () => {
|
|
991
2125
|
const {
|
|
992
2126
|
api,
|
|
993
2127
|
container
|
|
@@ -1006,10 +2140,10 @@ class Parser extends React.Component {
|
|
|
1006
2140
|
className,
|
|
1007
2141
|
children
|
|
1008
2142
|
} = this.props;
|
|
1009
|
-
return React__default
|
|
2143
|
+
return React__default.createElement("div", {
|
|
1010
2144
|
className: className,
|
|
1011
2145
|
ref: this.handleContainer
|
|
1012
|
-
}, React__default
|
|
2146
|
+
}, React__default.createElement(Initialize$1, {
|
|
1013
2147
|
onReady: this.handleReady
|
|
1014
2148
|
}, children({
|
|
1015
2149
|
handleParse: this.handleParse
|
|
@@ -1018,7 +2152,7 @@ class Parser extends React.Component {
|
|
|
1018
2152
|
|
|
1019
2153
|
}
|
|
1020
2154
|
|
|
1021
|
-
defineProperty
|
|
2155
|
+
defineProperty(Parser, "defaultProps", {
|
|
1022
2156
|
className: undefined
|
|
1023
2157
|
});
|
|
1024
2158
|
|
|
@@ -1052,7 +2186,7 @@ class Like extends React.PureComponent {
|
|
|
1052
2186
|
kidDirectedSite,
|
|
1053
2187
|
referral
|
|
1054
2188
|
} = this.props;
|
|
1055
|
-
return React__default
|
|
2189
|
+
return React__default.createElement("div", {
|
|
1056
2190
|
className: "fb-like",
|
|
1057
2191
|
"data-ref": referral,
|
|
1058
2192
|
"data-href": href,
|
|
@@ -1069,7 +2203,7 @@ class Like extends React.PureComponent {
|
|
|
1069
2203
|
|
|
1070
2204
|
}
|
|
1071
2205
|
|
|
1072
|
-
defineProperty
|
|
2206
|
+
defineProperty(Like, "defaultProps", {
|
|
1073
2207
|
layout: undefined,
|
|
1074
2208
|
showFaces: undefined,
|
|
1075
2209
|
colorScheme: undefined,
|
|
@@ -1083,9 +2217,9 @@ defineProperty._defineProperty(Like, "defaultProps", {
|
|
|
1083
2217
|
width: undefined
|
|
1084
2218
|
});
|
|
1085
2219
|
|
|
1086
|
-
React.forwardRef((props, ref) => React__default
|
|
2220
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
1087
2221
|
handleParse
|
|
1088
|
-
}) => React__default
|
|
2222
|
+
}) => React__default.createElement(Like, _extends_1({}, props, {
|
|
1089
2223
|
handleParse: handleParse,
|
|
1090
2224
|
ref: ref
|
|
1091
2225
|
}))));
|
|
@@ -1113,14 +2247,14 @@ class Process extends React.Component {
|
|
|
1113
2247
|
super(...args);
|
|
1114
2248
|
_this = this;
|
|
1115
2249
|
|
|
1116
|
-
defineProperty
|
|
2250
|
+
defineProperty(this, "state", {
|
|
1117
2251
|
api: undefined
|
|
1118
2252
|
});
|
|
1119
2253
|
|
|
1120
|
-
defineProperty
|
|
2254
|
+
defineProperty(this, "handleProcess",
|
|
1121
2255
|
/*#__PURE__*/
|
|
1122
2256
|
function () {
|
|
1123
|
-
var _ref =
|
|
2257
|
+
var _ref = asyncToGenerator(function* (fn, handleSuccess = () => {}) {
|
|
1124
2258
|
_this.setState({
|
|
1125
2259
|
data: undefined,
|
|
1126
2260
|
error: undefined,
|
|
@@ -1159,7 +2293,7 @@ class Process extends React.Component {
|
|
|
1159
2293
|
};
|
|
1160
2294
|
}());
|
|
1161
2295
|
|
|
1162
|
-
defineProperty
|
|
2296
|
+
defineProperty(this, "handleReady", api => {
|
|
1163
2297
|
this.setState({
|
|
1164
2298
|
api
|
|
1165
2299
|
});
|
|
@@ -1176,7 +2310,7 @@ class Process extends React.Component {
|
|
|
1176
2310
|
data,
|
|
1177
2311
|
error
|
|
1178
2312
|
} = this.state;
|
|
1179
|
-
return React__default
|
|
2313
|
+
return React__default.createElement(Initialize$1, {
|
|
1180
2314
|
onReady: this.handleReady
|
|
1181
2315
|
}, children({
|
|
1182
2316
|
loading: !api || loading,
|
|
@@ -1195,10 +2329,10 @@ class Send extends React.Component {
|
|
|
1195
2329
|
super(...args);
|
|
1196
2330
|
_this = this;
|
|
1197
2331
|
|
|
1198
|
-
defineProperty
|
|
2332
|
+
defineProperty(this, "handleClick",
|
|
1199
2333
|
/*#__PURE__*/
|
|
1200
2334
|
function () {
|
|
1201
|
-
var _ref =
|
|
2335
|
+
var _ref = asyncToGenerator(function* (evn) {
|
|
1202
2336
|
evn.preventDefault();
|
|
1203
2337
|
const {
|
|
1204
2338
|
handleProcess
|
|
@@ -1206,7 +2340,7 @@ class Send extends React.Component {
|
|
|
1206
2340
|
return handleProcess(
|
|
1207
2341
|
/*#__PURE__*/
|
|
1208
2342
|
function () {
|
|
1209
|
-
var _ref2 =
|
|
2343
|
+
var _ref2 = asyncToGenerator(function* (api) {
|
|
1210
2344
|
const {
|
|
1211
2345
|
link = getCurrentHref(),
|
|
1212
2346
|
display,
|
|
@@ -1249,17 +2383,17 @@ class Send extends React.Component {
|
|
|
1249
2383
|
|
|
1250
2384
|
}
|
|
1251
2385
|
|
|
1252
|
-
defineProperty
|
|
2386
|
+
defineProperty(Send, "defaultProps", {
|
|
1253
2387
|
to: undefined,
|
|
1254
2388
|
display: undefined,
|
|
1255
2389
|
appId: undefined,
|
|
1256
2390
|
redirectURI: undefined
|
|
1257
2391
|
});
|
|
1258
2392
|
|
|
1259
|
-
React.forwardRef((props, ref) => React__default
|
|
2393
|
+
React.forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
1260
2394
|
loading,
|
|
1261
2395
|
handleProcess
|
|
1262
|
-
}) => React__default
|
|
2396
|
+
}) => React__default.createElement(Send, _extends_1({}, props, {
|
|
1263
2397
|
loading: loading,
|
|
1264
2398
|
handleProcess: handleProcess,
|
|
1265
2399
|
ref: ref
|
|
@@ -1272,10 +2406,10 @@ class Share extends React.Component {
|
|
|
1272
2406
|
super(...args);
|
|
1273
2407
|
_this = this;
|
|
1274
2408
|
|
|
1275
|
-
defineProperty
|
|
2409
|
+
defineProperty(this, "handleClick",
|
|
1276
2410
|
/*#__PURE__*/
|
|
1277
2411
|
function () {
|
|
1278
|
-
var _ref =
|
|
2412
|
+
var _ref = asyncToGenerator(function* (evn) {
|
|
1279
2413
|
evn.preventDefault();
|
|
1280
2414
|
const {
|
|
1281
2415
|
handleProcess
|
|
@@ -1283,7 +2417,7 @@ class Share extends React.Component {
|
|
|
1283
2417
|
return handleProcess(
|
|
1284
2418
|
/*#__PURE__*/
|
|
1285
2419
|
function () {
|
|
1286
|
-
var _ref2 =
|
|
2420
|
+
var _ref2 = asyncToGenerator(function* (api) {
|
|
1287
2421
|
const {
|
|
1288
2422
|
href = getCurrentHref(),
|
|
1289
2423
|
display,
|
|
@@ -1334,7 +2468,7 @@ class Share extends React.Component {
|
|
|
1334
2468
|
|
|
1335
2469
|
}
|
|
1336
2470
|
|
|
1337
|
-
defineProperty
|
|
2471
|
+
defineProperty(Share, "defaultProps", {
|
|
1338
2472
|
href: undefined,
|
|
1339
2473
|
hashtag: undefined,
|
|
1340
2474
|
quote: undefined,
|
|
@@ -1344,12 +2478,12 @@ defineProperty._defineProperty(Share, "defaultProps", {
|
|
|
1344
2478
|
redirectURI: undefined
|
|
1345
2479
|
});
|
|
1346
2480
|
|
|
1347
|
-
var Share$1 = React.forwardRef((props, ref) => React__default
|
|
2481
|
+
var Share$1 = React.forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
1348
2482
|
loading,
|
|
1349
2483
|
handleProcess,
|
|
1350
2484
|
data,
|
|
1351
2485
|
error
|
|
1352
|
-
}) => React__default
|
|
2486
|
+
}) => React__default.createElement(Share, _extends_1({}, props, {
|
|
1353
2487
|
loading: loading,
|
|
1354
2488
|
handleProcess: handleProcess,
|
|
1355
2489
|
data: data,
|
|
@@ -1357,10 +2491,27 @@ var Share$1 = React.forwardRef((props, ref) => React__default['default'].createE
|
|
|
1357
2491
|
ref: ref
|
|
1358
2492
|
}))));
|
|
1359
2493
|
|
|
1360
|
-
function ownKeys$
|
|
2494
|
+
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; }
|
|
1361
2495
|
|
|
1362
|
-
function _objectSpread$
|
|
1363
|
-
|
|
2496
|
+
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; }
|
|
2497
|
+
function ShareButton(props) {
|
|
2498
|
+
const {
|
|
2499
|
+
className,
|
|
2500
|
+
children
|
|
2501
|
+
} = props,
|
|
2502
|
+
rest = objectWithoutProperties(props, ["className", "children"]);
|
|
2503
|
+
|
|
2504
|
+
return React__default.createElement(Share$1, rest, ({
|
|
2505
|
+
loading,
|
|
2506
|
+
handleClick
|
|
2507
|
+
}) => React__default.createElement("button", {
|
|
2508
|
+
type: "button",
|
|
2509
|
+
disabled: loading,
|
|
2510
|
+
className: className,
|
|
2511
|
+
onClick: handleClick
|
|
2512
|
+
}, children));
|
|
2513
|
+
}
|
|
2514
|
+
ShareButton.defaultProps = _objectSpread$1({}, Share$1.defaultProps, {
|
|
1364
2515
|
className: undefined
|
|
1365
2516
|
});
|
|
1366
2517
|
|
|
@@ -1386,7 +2537,7 @@ class Page extends React.PureComponent {
|
|
|
1386
2537
|
adaptContainerWidth,
|
|
1387
2538
|
children
|
|
1388
2539
|
} = this.props;
|
|
1389
|
-
return React__default
|
|
2540
|
+
return React__default.createElement("div", {
|
|
1390
2541
|
className: "fb-page",
|
|
1391
2542
|
style: style,
|
|
1392
2543
|
"data-tabs": tabs,
|
|
@@ -1403,7 +2554,7 @@ class Page extends React.PureComponent {
|
|
|
1403
2554
|
|
|
1404
2555
|
}
|
|
1405
2556
|
|
|
1406
|
-
defineProperty
|
|
2557
|
+
defineProperty(Page, "defaultProps", {
|
|
1407
2558
|
width: undefined,
|
|
1408
2559
|
height: undefined,
|
|
1409
2560
|
tabs: undefined,
|
|
@@ -1417,9 +2568,9 @@ defineProperty._defineProperty(Page, "defaultProps", {
|
|
|
1417
2568
|
href: undefined
|
|
1418
2569
|
});
|
|
1419
2570
|
|
|
1420
|
-
var Page$1 = React.forwardRef((props, ref) => React__default
|
|
2571
|
+
var Page$1 = React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
1421
2572
|
handleParse
|
|
1422
|
-
}) => React__default
|
|
2573
|
+
}) => React__default.createElement(Page, _extends_1({}, props, {
|
|
1423
2574
|
handleParse: handleParse,
|
|
1424
2575
|
ref: ref
|
|
1425
2576
|
}))));
|
|
@@ -1427,9 +2578,9 @@ var Page$1 = React.forwardRef((props, ref) => React__default['default'].createEl
|
|
|
1427
2578
|
// 3.0 fields without app review https://developers.facebook.com/docs/facebook-login/permissions/?locale=en_US#reference-default
|
|
1428
2579
|
var Fields = ['id', 'first_name', 'last_name', 'middle_name', 'name', 'name_format', 'picture', 'short_name', 'email'];
|
|
1429
2580
|
|
|
1430
|
-
function ownKeys$
|
|
2581
|
+
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; }
|
|
1431
2582
|
|
|
1432
|
-
function _objectSpread$
|
|
2583
|
+
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; }
|
|
1433
2584
|
|
|
1434
2585
|
class Login extends React.Component {
|
|
1435
2586
|
constructor(...args) {
|
|
@@ -1438,10 +2589,10 @@ class Login extends React.Component {
|
|
|
1438
2589
|
super(...args);
|
|
1439
2590
|
_this = this;
|
|
1440
2591
|
|
|
1441
|
-
defineProperty
|
|
2592
|
+
defineProperty(this, "handleClick",
|
|
1442
2593
|
/*#__PURE__*/
|
|
1443
2594
|
function () {
|
|
1444
|
-
var _ref =
|
|
2595
|
+
var _ref = asyncToGenerator(function* (evn) {
|
|
1445
2596
|
evn.preventDefault();
|
|
1446
2597
|
const {
|
|
1447
2598
|
handleProcess,
|
|
@@ -1454,7 +2605,7 @@ class Login extends React.Component {
|
|
|
1454
2605
|
yield handleProcess(
|
|
1455
2606
|
/*#__PURE__*/
|
|
1456
2607
|
function () {
|
|
1457
|
-
var _ref2 =
|
|
2608
|
+
var _ref2 = asyncToGenerator(function* (api) {
|
|
1458
2609
|
const {
|
|
1459
2610
|
scope,
|
|
1460
2611
|
fields,
|
|
@@ -1495,7 +2646,7 @@ class Login extends React.Component {
|
|
|
1495
2646
|
}, loginResponse);
|
|
1496
2647
|
|
|
1497
2648
|
if (onCompleted) {
|
|
1498
|
-
yield onCompleted(_objectSpread$
|
|
2649
|
+
yield onCompleted(_objectSpread$2({}, data, {
|
|
1499
2650
|
eventKey
|
|
1500
2651
|
}));
|
|
1501
2652
|
}
|
|
@@ -1537,7 +2688,7 @@ class Login extends React.Component {
|
|
|
1537
2688
|
|
|
1538
2689
|
}
|
|
1539
2690
|
|
|
1540
|
-
defineProperty
|
|
2691
|
+
defineProperty(Login, "defaultProps", {
|
|
1541
2692
|
scope: '',
|
|
1542
2693
|
fields: Fields,
|
|
1543
2694
|
returnScopes: false,
|
|
@@ -1548,12 +2699,12 @@ defineProperty._defineProperty(Login, "defaultProps", {
|
|
|
1548
2699
|
eventKey: undefined
|
|
1549
2700
|
});
|
|
1550
2701
|
|
|
1551
|
-
var Login$1 = React.forwardRef((props, ref) => React__default
|
|
2702
|
+
var Login$1 = React.forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
1552
2703
|
loading,
|
|
1553
2704
|
handleProcess,
|
|
1554
2705
|
data,
|
|
1555
2706
|
error
|
|
1556
|
-
}) => React__default
|
|
2707
|
+
}) => React__default.createElement(Login, _extends_1({}, props, {
|
|
1557
2708
|
loading: loading,
|
|
1558
2709
|
handleProcess: handleProcess,
|
|
1559
2710
|
data: data,
|
|
@@ -1565,7 +2716,7 @@ var spin = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
|
1565
2716
|
(function (root, factory) {
|
|
1566
2717
|
|
|
1567
2718
|
/* CommonJS */
|
|
1568
|
-
if (module.exports) module.exports = factory();
|
|
2719
|
+
if ( module.exports) module.exports = factory();
|
|
1569
2720
|
|
|
1570
2721
|
/* AMD module */
|
|
1571
2722
|
else root.Spinner = factory();
|
|
@@ -1916,11 +3067,11 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
|
1916
3067
|
|
|
1917
3068
|
|
|
1918
3069
|
|
|
1919
|
-
var _react2 = _interopRequireDefault(React__default
|
|
3070
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
1920
3071
|
|
|
1921
3072
|
|
|
1922
3073
|
|
|
1923
|
-
var _propTypes2 = _interopRequireDefault(PropTypes__default
|
|
3074
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default);
|
|
1924
3075
|
|
|
1925
3076
|
|
|
1926
3077
|
|
|
@@ -1983,7 +3134,7 @@ var Spinner = function (_Component) {
|
|
|
1983
3134
|
|
|
1984
3135
|
|
|
1985
3136
|
if (loaded) {
|
|
1986
|
-
return this.props.children ? React__default
|
|
3137
|
+
return this.props.children ? React__default.Children.only(this.props.children) : null;
|
|
1987
3138
|
}
|
|
1988
3139
|
|
|
1989
3140
|
return _react2.default.createElement('div', { className: className, ref: 'loader' });
|
|
@@ -1991,7 +3142,7 @@ var Spinner = function (_Component) {
|
|
|
1991
3142
|
}]);
|
|
1992
3143
|
|
|
1993
3144
|
return Spinner;
|
|
1994
|
-
}(React__default
|
|
3145
|
+
}(React__default.Component);
|
|
1995
3146
|
|
|
1996
3147
|
Spinner.propTypes = {
|
|
1997
3148
|
className: _propTypes2.default.string,
|
|
@@ -2007,12 +3158,33 @@ Spinner.defaultProps = {
|
|
|
2007
3158
|
exports.default = Spinner;
|
|
2008
3159
|
});
|
|
2009
3160
|
|
|
2010
|
-
_commonjsHelpers.unwrapExports(dist);
|
|
3161
|
+
var Spinner = _commonjsHelpers.unwrapExports(dist);
|
|
2011
3162
|
|
|
2012
|
-
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; }
|
|
3163
|
+
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; }
|
|
2013
3164
|
|
|
2014
|
-
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
|
|
2015
|
-
|
|
3165
|
+
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; }
|
|
3166
|
+
function LoginButton(props) {
|
|
3167
|
+
const {
|
|
3168
|
+
children,
|
|
3169
|
+
className,
|
|
3170
|
+
spinner,
|
|
3171
|
+
spinnerConfig
|
|
3172
|
+
} = props,
|
|
3173
|
+
rest = objectWithoutProperties(props, ["children", "className", "spinner", "spinnerConfig"]);
|
|
3174
|
+
|
|
3175
|
+
return React__default.createElement(Login$1, rest, ({
|
|
3176
|
+
loading,
|
|
3177
|
+
handleClick
|
|
3178
|
+
}) => React__default.createElement("button", {
|
|
3179
|
+
type: "button",
|
|
3180
|
+
className: className,
|
|
3181
|
+
onClick: handleClick,
|
|
3182
|
+
disabled: loading
|
|
3183
|
+
}, children, spinner && loading && React__default.createElement(Spinner, {
|
|
3184
|
+
config: spinnerConfig
|
|
3185
|
+
})));
|
|
3186
|
+
}
|
|
3187
|
+
LoginButton.defaultProps = _objectSpread$3({}, Login$1.defaultProps, {
|
|
2016
3188
|
className: undefined,
|
|
2017
3189
|
spinnerConfig: {},
|
|
2018
3190
|
spinner: true
|
|
@@ -2033,7 +3205,7 @@ class EmbeddedPost extends React.PureComponent {
|
|
|
2033
3205
|
showText,
|
|
2034
3206
|
children
|
|
2035
3207
|
} = this.props;
|
|
2036
|
-
return React__default
|
|
3208
|
+
return React__default.createElement("div", {
|
|
2037
3209
|
className: "fb-post",
|
|
2038
3210
|
"data-href": href,
|
|
2039
3211
|
"data-width": width,
|
|
@@ -2043,15 +3215,15 @@ class EmbeddedPost extends React.PureComponent {
|
|
|
2043
3215
|
|
|
2044
3216
|
}
|
|
2045
3217
|
|
|
2046
|
-
defineProperty
|
|
3218
|
+
defineProperty(EmbeddedPost, "defaultProps", {
|
|
2047
3219
|
width: undefined,
|
|
2048
3220
|
showText: undefined,
|
|
2049
3221
|
children: undefined
|
|
2050
3222
|
});
|
|
2051
3223
|
|
|
2052
|
-
React.forwardRef((props, ref) => React__default
|
|
3224
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2053
3225
|
handleParse
|
|
2054
|
-
}) => React__default
|
|
3226
|
+
}) => React__default.createElement(EmbeddedPost, _extends_1({}, props, {
|
|
2055
3227
|
handleParse: handleParse,
|
|
2056
3228
|
ref: ref
|
|
2057
3229
|
}))));
|
|
@@ -2074,7 +3246,7 @@ class EmbeddedVideo extends React.PureComponent {
|
|
|
2074
3246
|
showCaptions,
|
|
2075
3247
|
children
|
|
2076
3248
|
} = this.props;
|
|
2077
|
-
return React__default
|
|
3249
|
+
return React__default.createElement("div", {
|
|
2078
3250
|
className: "fb-video",
|
|
2079
3251
|
"data-href": href,
|
|
2080
3252
|
"data-width": width,
|
|
@@ -2087,7 +3259,7 @@ class EmbeddedVideo extends React.PureComponent {
|
|
|
2087
3259
|
|
|
2088
3260
|
}
|
|
2089
3261
|
|
|
2090
|
-
defineProperty
|
|
3262
|
+
defineProperty(EmbeddedVideo, "defaultProps", {
|
|
2091
3263
|
width: undefined,
|
|
2092
3264
|
showText: undefined,
|
|
2093
3265
|
allowFullScreen: undefined,
|
|
@@ -2096,9 +3268,9 @@ defineProperty._defineProperty(EmbeddedVideo, "defaultProps", {
|
|
|
2096
3268
|
children: undefined
|
|
2097
3269
|
});
|
|
2098
3270
|
|
|
2099
|
-
React.forwardRef((props, ref) => React__default
|
|
3271
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2100
3272
|
handleParse
|
|
2101
|
-
}) => React__default
|
|
3273
|
+
}) => React__default.createElement(EmbeddedVideo, _extends_1({}, props, {
|
|
2102
3274
|
handleParse: handleParse,
|
|
2103
3275
|
ref: ref
|
|
2104
3276
|
}))));
|
|
@@ -2121,7 +3293,7 @@ class Comments extends React.PureComponent {
|
|
|
2121
3293
|
children,
|
|
2122
3294
|
mobile
|
|
2123
3295
|
} = this.props;
|
|
2124
|
-
return React__default
|
|
3296
|
+
return React__default.createElement("div", {
|
|
2125
3297
|
className: "fb-comments",
|
|
2126
3298
|
"data-colorscheme": colorScheme,
|
|
2127
3299
|
"data-numposts": numPosts,
|
|
@@ -2135,7 +3307,7 @@ class Comments extends React.PureComponent {
|
|
|
2135
3307
|
|
|
2136
3308
|
}
|
|
2137
3309
|
|
|
2138
|
-
defineProperty
|
|
3310
|
+
defineProperty(Comments, "defaultProps", {
|
|
2139
3311
|
href: undefined,
|
|
2140
3312
|
numPosts: undefined,
|
|
2141
3313
|
orderBy: undefined,
|
|
@@ -2145,9 +3317,9 @@ defineProperty._defineProperty(Comments, "defaultProps", {
|
|
|
2145
3317
|
mobile: undefined
|
|
2146
3318
|
});
|
|
2147
3319
|
|
|
2148
|
-
React.forwardRef((props, ref) => React__default
|
|
3320
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2149
3321
|
handleParse
|
|
2150
|
-
}) => React__default
|
|
3322
|
+
}) => React__default.createElement(Comments, _extends_1({}, props, {
|
|
2151
3323
|
handleParse: handleParse,
|
|
2152
3324
|
ref: ref
|
|
2153
3325
|
}))));
|
|
@@ -2165,7 +3337,7 @@ class CommentsCount extends React.PureComponent {
|
|
|
2165
3337
|
href = getCurrentHref(),
|
|
2166
3338
|
children
|
|
2167
3339
|
} = this.props;
|
|
2168
|
-
return React__default
|
|
3340
|
+
return React__default.createElement("span", {
|
|
2169
3341
|
className: "fb-comments-count",
|
|
2170
3342
|
"data-href": href
|
|
2171
3343
|
}, children);
|
|
@@ -2173,14 +3345,14 @@ class CommentsCount extends React.PureComponent {
|
|
|
2173
3345
|
|
|
2174
3346
|
}
|
|
2175
3347
|
|
|
2176
|
-
defineProperty
|
|
3348
|
+
defineProperty(CommentsCount, "defaultProps", {
|
|
2177
3349
|
href: undefined,
|
|
2178
3350
|
children: undefined
|
|
2179
3351
|
});
|
|
2180
3352
|
|
|
2181
|
-
React.forwardRef((props, ref) => React__default
|
|
3353
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2182
3354
|
handleParse
|
|
2183
|
-
}) => React__default
|
|
3355
|
+
}) => React__default.createElement(CommentsCount, _extends_1({}, props, {
|
|
2184
3356
|
handleParse: handleParse,
|
|
2185
3357
|
ref: ref
|
|
2186
3358
|
}))));
|
|
@@ -2192,10 +3364,10 @@ class Feed extends React.Component {
|
|
|
2192
3364
|
super(...args);
|
|
2193
3365
|
_this = this;
|
|
2194
3366
|
|
|
2195
|
-
defineProperty
|
|
3367
|
+
defineProperty(this, "handleClick",
|
|
2196
3368
|
/*#__PURE__*/
|
|
2197
3369
|
function () {
|
|
2198
|
-
var _ref =
|
|
3370
|
+
var _ref = asyncToGenerator(function* (evn) {
|
|
2199
3371
|
evn.preventDefault();
|
|
2200
3372
|
const {
|
|
2201
3373
|
handleProcess
|
|
@@ -2203,7 +3375,7 @@ class Feed extends React.Component {
|
|
|
2203
3375
|
return handleProcess(
|
|
2204
3376
|
/*#__PURE__*/
|
|
2205
3377
|
function () {
|
|
2206
|
-
var _ref2 =
|
|
3378
|
+
var _ref2 = asyncToGenerator(function* (api) {
|
|
2207
3379
|
const {
|
|
2208
3380
|
link = getCurrentHref(),
|
|
2209
3381
|
display,
|
|
@@ -2264,7 +3436,7 @@ class Feed extends React.Component {
|
|
|
2264
3436
|
|
|
2265
3437
|
}
|
|
2266
3438
|
|
|
2267
|
-
defineProperty
|
|
3439
|
+
defineProperty(Feed, "defaultProps", {
|
|
2268
3440
|
link: undefined,
|
|
2269
3441
|
display: undefined,
|
|
2270
3442
|
appId: undefined,
|
|
@@ -2279,12 +3451,12 @@ defineProperty._defineProperty(Feed, "defaultProps", {
|
|
|
2279
3451
|
dataRef: undefined
|
|
2280
3452
|
});
|
|
2281
3453
|
|
|
2282
|
-
React.forwardRef((props, ref) => React__default
|
|
3454
|
+
React.forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
2283
3455
|
loading,
|
|
2284
3456
|
handleProcess,
|
|
2285
3457
|
error,
|
|
2286
3458
|
data
|
|
2287
|
-
}) => React__default
|
|
3459
|
+
}) => React__default.createElement(Feed, _extends_1({}, props, {
|
|
2288
3460
|
loading: loading,
|
|
2289
3461
|
handleProcess: handleProcess,
|
|
2290
3462
|
data: data,
|
|
@@ -2310,7 +3482,7 @@ class Group extends React.PureComponent {
|
|
|
2310
3482
|
children,
|
|
2311
3483
|
skin
|
|
2312
3484
|
} = this.props;
|
|
2313
|
-
return React__default
|
|
3485
|
+
return React__default.createElement("div", {
|
|
2314
3486
|
className: "fb-group",
|
|
2315
3487
|
style: style,
|
|
2316
3488
|
"data-href": href,
|
|
@@ -2323,7 +3495,7 @@ class Group extends React.PureComponent {
|
|
|
2323
3495
|
|
|
2324
3496
|
}
|
|
2325
3497
|
|
|
2326
|
-
defineProperty
|
|
3498
|
+
defineProperty(Group, "defaultProps", {
|
|
2327
3499
|
showSocialContext: undefined,
|
|
2328
3500
|
showMetaData: undefined,
|
|
2329
3501
|
width: undefined,
|
|
@@ -2333,26 +3505,26 @@ defineProperty._defineProperty(Group, "defaultProps", {
|
|
|
2333
3505
|
skin: undefined
|
|
2334
3506
|
});
|
|
2335
3507
|
|
|
2336
|
-
React.forwardRef((props, ref) => React__default
|
|
3508
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2337
3509
|
handleParse
|
|
2338
|
-
}) => React__default
|
|
3510
|
+
}) => React__default.createElement(Group, _extends_1({}, props, {
|
|
2339
3511
|
handleParse: handleParse,
|
|
2340
3512
|
ref: ref
|
|
2341
3513
|
}))));
|
|
2342
3514
|
|
|
2343
|
-
class LoginStatus extends React.Component {
|
|
3515
|
+
class LoginStatus$1 extends React.Component {
|
|
2344
3516
|
constructor(..._args) {
|
|
2345
3517
|
var _this;
|
|
2346
3518
|
|
|
2347
3519
|
super(..._args);
|
|
2348
3520
|
_this = this;
|
|
2349
3521
|
|
|
2350
|
-
defineProperty
|
|
3522
|
+
defineProperty(this, "state", {});
|
|
2351
3523
|
|
|
2352
|
-
defineProperty
|
|
3524
|
+
defineProperty(this, "handleReady",
|
|
2353
3525
|
/*#__PURE__*/
|
|
2354
3526
|
function () {
|
|
2355
|
-
var _ref =
|
|
3527
|
+
var _ref = asyncToGenerator(function* (api) {
|
|
2356
3528
|
const {
|
|
2357
3529
|
event
|
|
2358
3530
|
} = _this.props;
|
|
@@ -2369,7 +3541,7 @@ class LoginStatus extends React.Component {
|
|
|
2369
3541
|
};
|
|
2370
3542
|
}());
|
|
2371
3543
|
|
|
2372
|
-
defineProperty
|
|
3544
|
+
defineProperty(this, "handleChange", (...args) => {
|
|
2373
3545
|
const {
|
|
2374
3546
|
onChange
|
|
2375
3547
|
} = this.props;
|
|
@@ -2399,14 +3571,14 @@ class LoginStatus extends React.Component {
|
|
|
2399
3571
|
const {
|
|
2400
3572
|
children
|
|
2401
3573
|
} = this.props;
|
|
2402
|
-
return React__default
|
|
3574
|
+
return React__default.createElement(Initialize$1, {
|
|
2403
3575
|
onReady: this.handleReady
|
|
2404
3576
|
}, children);
|
|
2405
3577
|
}
|
|
2406
3578
|
|
|
2407
3579
|
}
|
|
2408
3580
|
|
|
2409
|
-
defineProperty
|
|
3581
|
+
defineProperty(LoginStatus$1, "defaultProps", {
|
|
2410
3582
|
onChange: undefined
|
|
2411
3583
|
});
|
|
2412
3584
|
|
|
@@ -2417,14 +3589,14 @@ class Profile extends React.Component {
|
|
|
2417
3589
|
super(...args);
|
|
2418
3590
|
_this = this;
|
|
2419
3591
|
|
|
2420
|
-
defineProperty
|
|
3592
|
+
defineProperty(this, "state", {
|
|
2421
3593
|
loading: true
|
|
2422
3594
|
});
|
|
2423
3595
|
|
|
2424
|
-
defineProperty
|
|
3596
|
+
defineProperty(this, "handleReady",
|
|
2425
3597
|
/*#__PURE__*/
|
|
2426
3598
|
function () {
|
|
2427
|
-
var _ref =
|
|
3599
|
+
var _ref = asyncToGenerator(function* (api) {
|
|
2428
3600
|
_this.api = api;
|
|
2429
3601
|
|
|
2430
3602
|
_this.updateProfile();
|
|
@@ -2435,7 +3607,7 @@ class Profile extends React.Component {
|
|
|
2435
3607
|
};
|
|
2436
3608
|
}());
|
|
2437
3609
|
|
|
2438
|
-
defineProperty
|
|
3610
|
+
defineProperty(this, "handleStatusChange", () => {
|
|
2439
3611
|
this.updateProfile();
|
|
2440
3612
|
});
|
|
2441
3613
|
}
|
|
@@ -2443,7 +3615,7 @@ class Profile extends React.Component {
|
|
|
2443
3615
|
updateProfile() {
|
|
2444
3616
|
var _this2 = this;
|
|
2445
3617
|
|
|
2446
|
-
return
|
|
3618
|
+
return asyncToGenerator(function* () {
|
|
2447
3619
|
const {
|
|
2448
3620
|
api,
|
|
2449
3621
|
props: {
|
|
@@ -2458,7 +3630,7 @@ class Profile extends React.Component {
|
|
|
2458
3630
|
try {
|
|
2459
3631
|
const response = yield api.getLoginStatus();
|
|
2460
3632
|
|
|
2461
|
-
if (response.status !== LoginStatus
|
|
3633
|
+
if (response.status !== LoginStatus.CONNECTED) {
|
|
2462
3634
|
_this2.setState({
|
|
2463
3635
|
profile: undefined,
|
|
2464
3636
|
loading: false,
|
|
@@ -2496,9 +3668,9 @@ class Profile extends React.Component {
|
|
|
2496
3668
|
loading,
|
|
2497
3669
|
error
|
|
2498
3670
|
} = this.state;
|
|
2499
|
-
return React__default
|
|
3671
|
+
return React__default.createElement(Initialize$1, {
|
|
2500
3672
|
onReady: this.handleReady
|
|
2501
|
-
}, React__default
|
|
3673
|
+
}, React__default.createElement(LoginStatus$1, {
|
|
2502
3674
|
event: "auth.statusChange",
|
|
2503
3675
|
onChange: this.handleStatusChange
|
|
2504
3676
|
}, children({
|
|
@@ -2510,7 +3682,7 @@ class Profile extends React.Component {
|
|
|
2510
3682
|
|
|
2511
3683
|
}
|
|
2512
3684
|
|
|
2513
|
-
defineProperty
|
|
3685
|
+
defineProperty(Profile, "defaultProps", {
|
|
2514
3686
|
fields: Fields
|
|
2515
3687
|
});
|
|
2516
3688
|
|
|
@@ -2533,7 +3705,7 @@ class CustomChat extends React.PureComponent {
|
|
|
2533
3705
|
greetingDialogDisplay,
|
|
2534
3706
|
greetingDialogDelay
|
|
2535
3707
|
} = this.props;
|
|
2536
|
-
return React__default
|
|
3708
|
+
return React__default.createElement("div", {
|
|
2537
3709
|
className: "fb-customerchat",
|
|
2538
3710
|
page_id: pageId,
|
|
2539
3711
|
theme_color: themeColor,
|
|
@@ -2547,7 +3719,7 @@ class CustomChat extends React.PureComponent {
|
|
|
2547
3719
|
|
|
2548
3720
|
}
|
|
2549
3721
|
|
|
2550
|
-
defineProperty
|
|
3722
|
+
defineProperty(CustomChat, "defaultProps", {
|
|
2551
3723
|
children: undefined,
|
|
2552
3724
|
themeColor: undefined,
|
|
2553
3725
|
loggedInGreeting: undefined,
|
|
@@ -2557,9 +3729,9 @@ defineProperty._defineProperty(CustomChat, "defaultProps", {
|
|
|
2557
3729
|
greetingDialogDelay: undefined
|
|
2558
3730
|
});
|
|
2559
3731
|
|
|
2560
|
-
React.forwardRef((props, ref) => React__default
|
|
3732
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2561
3733
|
handleParse
|
|
2562
|
-
}) => React__default
|
|
3734
|
+
}) => React__default.createElement(CustomChat, _extends_1({}, props, {
|
|
2563
3735
|
handleParse: handleParse,
|
|
2564
3736
|
ref: ref
|
|
2565
3737
|
}))));
|
|
@@ -2580,7 +3752,7 @@ class MessageUs extends React.PureComponent {
|
|
|
2580
3752
|
children,
|
|
2581
3753
|
size
|
|
2582
3754
|
} = this.props;
|
|
2583
|
-
return React__default
|
|
3755
|
+
return React__default.createElement("div", {
|
|
2584
3756
|
className: "fb-messengermessageus",
|
|
2585
3757
|
messenger_app_id: messengerAppId,
|
|
2586
3758
|
page_id: pageId,
|
|
@@ -2591,15 +3763,15 @@ class MessageUs extends React.PureComponent {
|
|
|
2591
3763
|
|
|
2592
3764
|
}
|
|
2593
3765
|
|
|
2594
|
-
defineProperty
|
|
3766
|
+
defineProperty(MessageUs, "defaultProps", {
|
|
2595
3767
|
color: undefined,
|
|
2596
3768
|
size: undefined,
|
|
2597
3769
|
children: undefined
|
|
2598
3770
|
});
|
|
2599
3771
|
|
|
2600
|
-
React.forwardRef((props, ref) => React__default
|
|
3772
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2601
3773
|
handleParse
|
|
2602
|
-
}) => React__default
|
|
3774
|
+
}) => React__default.createElement(MessageUs, _extends_1({}, props, {
|
|
2603
3775
|
handleParse: handleParse,
|
|
2604
3776
|
ref: ref
|
|
2605
3777
|
}))));
|
|
@@ -2625,7 +3797,7 @@ class MessengerCheckbox extends React.PureComponent {
|
|
|
2625
3797
|
centerAlign,
|
|
2626
3798
|
skin
|
|
2627
3799
|
} = this.props;
|
|
2628
|
-
return React__default
|
|
3800
|
+
return React__default.createElement("div", {
|
|
2629
3801
|
className: "fb-messenger-checkbox",
|
|
2630
3802
|
messenger_app_id: messengerAppId,
|
|
2631
3803
|
page_id: pageId,
|
|
@@ -2641,7 +3813,7 @@ class MessengerCheckbox extends React.PureComponent {
|
|
|
2641
3813
|
|
|
2642
3814
|
}
|
|
2643
3815
|
|
|
2644
|
-
defineProperty
|
|
3816
|
+
defineProperty(MessengerCheckbox, "defaultProps", {
|
|
2645
3817
|
size: undefined,
|
|
2646
3818
|
allowLogin: undefined,
|
|
2647
3819
|
prechecked: undefined,
|
|
@@ -2652,9 +3824,9 @@ defineProperty._defineProperty(MessengerCheckbox, "defaultProps", {
|
|
|
2652
3824
|
centerAlign: undefined
|
|
2653
3825
|
});
|
|
2654
3826
|
|
|
2655
|
-
React.forwardRef((props, ref) => React__default
|
|
3827
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2656
3828
|
handleParse
|
|
2657
|
-
}) => React__default
|
|
3829
|
+
}) => React__default.createElement(MessengerCheckbox, _extends_1({}, props, {
|
|
2658
3830
|
handleParse: handleParse,
|
|
2659
3831
|
ref: ref
|
|
2660
3832
|
}))));
|
|
@@ -2678,7 +3850,7 @@ class SendToMessenger extends React.PureComponent {
|
|
|
2678
3850
|
dataRef,
|
|
2679
3851
|
size
|
|
2680
3852
|
} = this.props;
|
|
2681
|
-
return React__default
|
|
3853
|
+
return React__default.createElement("div", {
|
|
2682
3854
|
className: "fb-send-to-messenger",
|
|
2683
3855
|
messenger_app_id: messengerAppId,
|
|
2684
3856
|
page_id: pageId,
|
|
@@ -2690,16 +3862,16 @@ class SendToMessenger extends React.PureComponent {
|
|
|
2690
3862
|
|
|
2691
3863
|
}
|
|
2692
3864
|
|
|
2693
|
-
defineProperty
|
|
3865
|
+
defineProperty(SendToMessenger, "defaultProps", {
|
|
2694
3866
|
color: undefined,
|
|
2695
3867
|
size: undefined,
|
|
2696
3868
|
dataRef: undefined,
|
|
2697
3869
|
children: undefined
|
|
2698
3870
|
});
|
|
2699
3871
|
|
|
2700
|
-
React.forwardRef((props, ref) => React__default
|
|
3872
|
+
React.forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2701
3873
|
handleParse
|
|
2702
|
-
}) => React__default
|
|
3874
|
+
}) => React__default.createElement(SendToMessenger, _extends_1({}, props, {
|
|
2703
3875
|
handleParse: handleParse,
|
|
2704
3876
|
ref: ref
|
|
2705
3877
|
}))));
|
|
@@ -2811,61 +3983,61 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
2811
3983
|
}, []);
|
|
2812
3984
|
|
|
2813
3985
|
var variant = 'black';
|
|
2814
|
-
return React__default
|
|
2815
|
-
React__default
|
|
3986
|
+
return React__default.createElement(
|
|
3987
|
+
React__default.Fragment,
|
|
2816
3988
|
null,
|
|
2817
|
-
React__default
|
|
3989
|
+
React__default.createElement(
|
|
2818
3990
|
'div',
|
|
2819
3991
|
{ ref: viewableWindow, id: 'vid-slider', className: 'col' },
|
|
2820
|
-
React__default
|
|
3992
|
+
React__default.createElement(
|
|
2821
3993
|
'div',
|
|
2822
3994
|
{ className: 'row' },
|
|
2823
|
-
showScroller && React__default
|
|
3995
|
+
showScroller && React__default.createElement(
|
|
2824
3996
|
'div',
|
|
2825
3997
|
{ onClick: function onClick(e) {
|
|
2826
3998
|
return scrollSlider(e, 'prev');
|
|
2827
3999
|
}, className: 'tile__slider-prev', style: { color: variant } },
|
|
2828
|
-
React__default
|
|
4000
|
+
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow left' })
|
|
2829
4001
|
),
|
|
2830
|
-
showScroller && React__default
|
|
4002
|
+
showScroller && React__default.createElement(
|
|
2831
4003
|
'div',
|
|
2832
4004
|
{ onClick: function onClick(e) {
|
|
2833
4005
|
return scrollSlider(e, 'next');
|
|
2834
4006
|
}, className: 'tile__slider-next', style: { color: variant } },
|
|
2835
|
-
React__default
|
|
4007
|
+
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow right' })
|
|
2836
4008
|
),
|
|
2837
|
-
React__default
|
|
4009
|
+
React__default.createElement(
|
|
2838
4010
|
'div',
|
|
2839
4011
|
{ ref: innerSlider, className: 'row__inner' },
|
|
2840
4012
|
props.data.slides.map(function (img, index) {
|
|
2841
4013
|
var thumbnail = urlFor({ client: client, source: img.slideshowImage, imageWidth: 250 });
|
|
2842
4014
|
if (!img.slideshowImage.link) {
|
|
2843
|
-
return React__default
|
|
4015
|
+
return React__default.createElement(
|
|
2844
4016
|
'div',
|
|
2845
4017
|
{ ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
|
|
2846
|
-
React__default
|
|
4018
|
+
React__default.createElement(
|
|
2847
4019
|
'div',
|
|
2848
4020
|
{ className: 'tile__media' },
|
|
2849
|
-
React__default
|
|
4021
|
+
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
2850
4022
|
),
|
|
2851
|
-
React__default
|
|
4023
|
+
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
2852
4024
|
);
|
|
2853
4025
|
} else {
|
|
2854
|
-
return React__default
|
|
4026
|
+
return React__default.createElement(
|
|
2855
4027
|
'a',
|
|
2856
4028
|
{ ref: tile, key: index, href: img.slideshowImage.link, target: img.slideshowImage.blank ? '_target' : '_self', className: 'tile', style: { width: tileSize + 'px' } },
|
|
2857
|
-
React__default
|
|
4029
|
+
React__default.createElement(
|
|
2858
4030
|
'div',
|
|
2859
4031
|
{ className: 'tile__media' },
|
|
2860
|
-
React__default
|
|
4032
|
+
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
2861
4033
|
),
|
|
2862
|
-
React__default
|
|
4034
|
+
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
2863
4035
|
);
|
|
2864
4036
|
}
|
|
2865
4037
|
})
|
|
2866
4038
|
)
|
|
2867
4039
|
),
|
|
2868
|
-
React__default
|
|
4040
|
+
React__default.createElement(
|
|
2869
4041
|
'style',
|
|
2870
4042
|
{ jsx: 'true' },
|
|
2871
4043
|
'\n #vid-slider * {\n box-sizing: border-box;\n -ms-overflow-style: none;\n }\n #vid-slider::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider {\n position: relative;\n -ms-overflow-style: none;\n padding: 0 1.5rem;\n margin-bottom: 0 !important;\n }\n #vid-slider .now-playing {\n position: absolute;\n top: 0.5rem;\n left: 1rem;\n color: white;\n background: rgba(0, 0, 0, 0.75);\n }\n #vid-slider h1,\n #vid-slider p {\n text-align: center;\n width: 100%;\n max-width: 500px;\n margin: auto;\n }\n #vid-slider,\n #vidHolder {\n max-width: 805px;\n }\n #vid-slider a:link,\n #vid-slider a:hover,\n #vid-slider a:active,\n #vid-slider a:visited {\n transition: color 150ms;\n color: #95a5a6;\n text-decoration: none;\n }\n #vid-slider a:hover {\n color: #7f8c8d;\n text-decoration: underline;\n }\n #vid-slider .contain {\n width: 100%;\n }\n #vid-slider .row {\n overflow-x: scroll;\n width: 100%;\n -ms-overflow-style: none;\n overflow-y: hidden !important;\n }\n #vid-slider .tile__info {\n white-space: normal !important;\n position: absolute;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: 0.9rem;\n font-weight: bold;\n transition: opacity 0.25s;\n }\n #vid-slider .row__inner {\n transition: 450ms -webkit-transform;\n transition: 450ms transform;\n transition: 450ms transform, 450ms -webkit-transform;\n font-size: 0;\n white-space: nowrap;\n margin: 25px 0 70px !important;\n padding-bottom: 10px;\n padding-left: 0;\n }\n #vid-slider .tile {\n position: relative;\n display: inline-block;\n margin: 0 12px;\n font-size: 20px;\n transition: 450ms all;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n \n #vid-slider .tile:first-child {\n margin-left: 15px;\n }\n #vid-slider .tile__img {\n height: auto;\n -o-object-fit: contain;\n object-fit: contain;\n object-position: center;\n }\n #vid-slider .tile__details {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n font-size: 10px;\n opacity: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n transition: 450ms opacity;\n }\n #vid-slider .tile__details:after,\n #vid-slider .tile__details:before {\n content: \'\';\n \n position: absolute;\n top: 50%;\n left: 50%;\n display: #000;\n }\n #vid-slider .tile__details:after {\n margin-top: -25px;\n margin-left: -25px;\n width: 50px;\n height: 50px;\n border: 3px solid #ecf0f1;\n line-height: 50px;\n text-align: center;\n border-radius: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1;\n }\n #vid-slider .tile__details:before {\n content: \'\';\n background: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 64 64\' width=\'64\' height=\'64\' fill=\'white\'><path d=\'M26 46 L46 32 L26 18 Z\'/></svg>")\n no-repeat center center;\n left: 0;\n width: 100%;\n height: 3rem;\n font-size: 30px;\n margin-right: 12px;\n margin-top: -24px;\n text-align: center;\n z-index: 2;\n color: white;\n }\n \n #vid-slider .tile__title {\n position: absolute;\n bottom: 0;\n padding: 10px;\n max-width: 250px;\n }\n #vid-slider .tile__title_text {\n position: relative;\n left: 0;\n white-space: normal;\n }\n \n #vid-slider .tile__slider-prev,\n #vid-slider .tile__slider-next {\n width: 30px;\n background: transparent;\n border: none;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n z-index: 99;\n cursor: pointer;\n color: ' + (props.dark ? 'white' : 'black') + ';\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 2rem;\n }\n #vid-slider .tile__slider-prev {\n left: -0.5rem;\n padding: 1rem;\n }\n #vid-slider .tile__slider-next {\n right: -0.5rem;\n padding: 1rem;\n }\n #vid-slider,\n #vid-slider .row {\n margin: 0;\n }\n \n #vid-slider .row::-webkit-scrollbar-thumb {\n background-color: transparent !important;\n }\n #vid-slider i {\n border: solid ' + (props.dark ? 'white' : 'black') + ';\n border-width: 0 4px 4px 0;\n display: inline-block;\n padding: 4px;\n pointer-events: none;\n }\n #vid-slider .right {\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n }\n #vid-slider .left {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n }\n @media screen and (min-width: 1399px) {\n .block-content #vid-slider .tile__img {\n height: auto;\n }\n .block-content #vid-slider .tile {\n height: auto;\n }\n }\n \n @media screen and (max-width: 1399px) {\n #vid-slider,\n #vidHolder {\n max-width: 620px;\n }\n }\n @media screen and (max-width: 1200px) {\n #vid-slider,\n #vidHolder {\n max-width: 580px;\n }\n }\n @media screen and (max-width: 967px) {\n #vid-slider {\n max-width: 100%;\n }\n \n #vid-slider .row__inner {\n margin: 60px 0 50px !important;\n }\n }\n \n @media screen and (max-width: 768px) {\n #vidHolder {\n position: unset;\n width: 100%;\n }\n }\n @media screen and (max-width: 568px) {\n #vidHolder {\n position: unset;\n width: 100%;\n }\n \n #vid-slider .row__inner {\n margin: 30px 0 70px;\n }\n }\n '
|
|
@@ -2893,114 +4065,114 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
2893
4065
|
pageview = _ref.pageview,
|
|
2894
4066
|
page = _ref.page;
|
|
2895
4067
|
|
|
2896
|
-
return React__default
|
|
2897
|
-
React__default
|
|
4068
|
+
return React__default.createElement(
|
|
4069
|
+
React__default.Fragment,
|
|
2898
4070
|
null,
|
|
2899
|
-
React__default
|
|
2900
|
-
React__default
|
|
4071
|
+
React__default.createElement(Breadcrumbs, null),
|
|
4072
|
+
React__default.createElement(
|
|
2901
4073
|
'div',
|
|
2902
4074
|
{ className: 'partners-page' },
|
|
2903
|
-
React__default
|
|
4075
|
+
React__default.createElement(
|
|
2904
4076
|
'div',
|
|
2905
4077
|
{ className: 'my-5 partner-logo-wrap', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' } },
|
|
2906
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.link ? React__default
|
|
4078
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.link ? React__default.createElement(
|
|
2907
4079
|
'a',
|
|
2908
4080
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%' }, href: partnerDetails.thumbnail.link, target: partnerDetails.thumbnail.blank ? '_blank' : '' },
|
|
2909
|
-
React__default
|
|
4081
|
+
React__default.createElement(
|
|
2910
4082
|
'figure',
|
|
2911
4083
|
{ style: { width: '100%', textAlign: 'center' } },
|
|
2912
|
-
React__default
|
|
4084
|
+
React__default.createElement('img', {
|
|
2913
4085
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
2914
4086
|
style: { maxWidth: '100%' },
|
|
2915
4087
|
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : ''
|
|
2916
4088
|
}),
|
|
2917
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default
|
|
4089
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default.createElement(
|
|
2918
4090
|
'figcaption',
|
|
2919
4091
|
null,
|
|
2920
4092
|
partnerDetails.thumbnail.caption
|
|
2921
4093
|
)
|
|
2922
4094
|
)
|
|
2923
|
-
) : React__default
|
|
4095
|
+
) : React__default.createElement(
|
|
2924
4096
|
'figure',
|
|
2925
4097
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%', textAlign: 'center' } },
|
|
2926
|
-
React__default
|
|
4098
|
+
React__default.createElement('img', {
|
|
2927
4099
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
2928
4100
|
style: { maxWidth: '100%' },
|
|
2929
4101
|
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : ''
|
|
2930
4102
|
}),
|
|
2931
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default
|
|
4103
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default.createElement(
|
|
2932
4104
|
'figcaption',
|
|
2933
4105
|
null,
|
|
2934
4106
|
partnerDetails.thumbnail.caption
|
|
2935
4107
|
)
|
|
2936
4108
|
),
|
|
2937
|
-
React__default
|
|
4109
|
+
React__default.createElement(
|
|
2938
4110
|
'style',
|
|
2939
4111
|
{ jsx: 'true' },
|
|
2940
4112
|
'\n @media screen and (max-width: 768px) {\n .partners-logo {\n width: 100%;\n min-width: 100%;\n }\n .partner-logo-wrap {\n flex-wrap: wrap;\n }\n .block-content-partners {\n padding-left: 0 !important;\n }\n }\n '
|
|
2941
4113
|
),
|
|
2942
|
-
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default
|
|
4114
|
+
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(
|
|
2943
4115
|
'div',
|
|
2944
4116
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
2945
|
-
partnerDetails.description && React__default
|
|
2946
|
-
(partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default
|
|
4117
|
+
partnerDetails.description && React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers.getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
4118
|
+
(partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(
|
|
2947
4119
|
'div',
|
|
2948
4120
|
null,
|
|
2949
|
-
React__default
|
|
4121
|
+
React__default.createElement(
|
|
2950
4122
|
'p',
|
|
2951
4123
|
{ className: 'd-inline-block font-weight-bold' },
|
|
2952
4124
|
'Connect with us:'
|
|
2953
4125
|
),
|
|
2954
4126
|
' ',
|
|
2955
|
-
partnerDetails.linkedin && React__default
|
|
4127
|
+
partnerDetails.linkedin && React__default.createElement(reactSocialIcons.reactSocialIcons_1, {
|
|
2956
4128
|
url: '' + partnerDetails.linkedin + (partnerDetails.linkedin.slice(-1) === '/' ? '' : '/') + 'posts/?feedView=all',
|
|
2957
4129
|
target: '_blank',
|
|
2958
4130
|
rel: 'noopener noreferrer',
|
|
2959
4131
|
style: { height: 30, width: 30 }
|
|
2960
4132
|
}),
|
|
2961
|
-
(partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default
|
|
4133
|
+
(partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(reactSocialIcons.reactSocialIcons_1, { url: partnerDetails.facebook, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } })
|
|
2962
4134
|
)
|
|
2963
4135
|
)
|
|
2964
4136
|
),
|
|
2965
|
-
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React__default
|
|
4137
|
+
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React__default.createElement(
|
|
2966
4138
|
'div',
|
|
2967
4139
|
{ className: 'mb-4', style: { padding: '0 15px' } },
|
|
2968
|
-
partnerDetails.affiliates[0].title && React__default
|
|
4140
|
+
partnerDetails.affiliates[0].title && React__default.createElement(
|
|
2969
4141
|
'h2',
|
|
2970
4142
|
{ className: 'bb-gold' },
|
|
2971
4143
|
partnerDetails.affiliates[0].title
|
|
2972
4144
|
),
|
|
2973
|
-
React__default
|
|
4145
|
+
React__default.createElement(ImageSlider, { client: client, data: partnerDetails.affiliates[0] })
|
|
2974
4146
|
),
|
|
2975
|
-
features.length > 0 && React__default
|
|
4147
|
+
features.length > 0 && React__default.createElement(
|
|
2976
4148
|
'div',
|
|
2977
4149
|
{ className: ' mb-5' },
|
|
2978
|
-
React__default
|
|
4150
|
+
React__default.createElement(Feature, { dataset: features, client: client })
|
|
2979
4151
|
),
|
|
2980
|
-
(partnerDetails.twitter || partnerDetails.facebook && !checkIsFacebookGroup(partnerDetails.facebook)) && React__default
|
|
4152
|
+
(partnerDetails.twitter || partnerDetails.facebook && !checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(
|
|
2981
4153
|
'div',
|
|
2982
4154
|
{ className: 'mb-5', style: { width: '100%', maxWidth: '100%', textAlign: 'center', padding: '15px', border: '2px solid #aaa', borderRadius: '15px' } },
|
|
2983
|
-
partnerDetails.twitter ? React__default
|
|
2984
|
-
Facebook,
|
|
4155
|
+
partnerDetails.twitter ? React__default.createElement(TwitterTimelineEmbed, { sourceType: 'url', url: partnerDetails.twitter, options: { height: 400 } }) : partnerDetails.facebook && React__default.createElement(
|
|
4156
|
+
Facebook$1,
|
|
2985
4157
|
{ appId: ' ' },
|
|
2986
|
-
React__default
|
|
4158
|
+
React__default.createElement(Page$1, { href: partnerDetails.facebook, tabs: 'timeline', width: '500', height: '500' })
|
|
2987
4159
|
)
|
|
2988
4160
|
),
|
|
2989
|
-
React__default
|
|
4161
|
+
React__default.createElement(
|
|
2990
4162
|
'div',
|
|
2991
4163
|
null,
|
|
2992
|
-
posts && posts.length > 0 && React__default
|
|
2993
|
-
React__default
|
|
4164
|
+
posts && posts.length > 0 && React__default.createElement(
|
|
4165
|
+
React__default.Fragment,
|
|
2994
4166
|
null,
|
|
2995
|
-
React__default
|
|
4167
|
+
React__default.createElement(
|
|
2996
4168
|
'h2',
|
|
2997
4169
|
{ className: 'bb-gold mb-2' },
|
|
2998
4170
|
'Latest from ',
|
|
2999
4171
|
partnerDetails.name
|
|
3000
4172
|
),
|
|
3001
|
-
React__default
|
|
4173
|
+
React__default.createElement('hr', null)
|
|
3002
4174
|
),
|
|
3003
|
-
React__default
|
|
4175
|
+
React__default.createElement(QueueDeckExpanded, {
|
|
3004
4176
|
client: client,
|
|
3005
4177
|
mapping: Settings.mapping,
|
|
3006
4178
|
dataRecord: posts,
|
|
@@ -3023,12 +4195,12 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
3023
4195
|
};
|
|
3024
4196
|
|
|
3025
4197
|
PartnerDetails.returnGetInitialProps = function () {
|
|
3026
|
-
var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(identifier, partnerPageUrl, partnerDocumentGroupID, params, currentPage, client) {
|
|
4198
|
+
var _ref2 = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee(identifier, partnerPageUrl, partnerDocumentGroupID, params, currentPage, client) {
|
|
3027
4199
|
var category = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
|
|
3028
4200
|
|
|
3029
4201
|
var today, featureQuery, partnerQuery, taxonomyQuery, _ref3, _ref4, features, partnerDetails, taxonomyDetails, articlesQuery, articles;
|
|
3030
4202
|
|
|
3031
|
-
return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
|
|
4203
|
+
return asyncToGenerator$1.regenerator.wrap(function _callee$(_context) {
|
|
3032
4204
|
while (1) {
|
|
3033
4205
|
switch (_context.prev = _context.next) {
|
|
3034
4206
|
case 0:
|
|
@@ -3050,7 +4222,7 @@ PartnerDetails.returnGetInitialProps = function () {
|
|
|
3050
4222
|
taxonomyQuery = '*[_type == \'documentGroup\' \n && !(_id in path("drafts.**"))\n && isShow != false\n && identifier.current == \'' + identifier + '\' && references(*[_type == \'documentGroup\' && identifier.current == \'' + category + '\' && references(\'' + partnerDocumentGroupID + '\')]._id)] [0] {\n \'id\': _id,\n \'title\': name\n }';
|
|
3051
4223
|
}
|
|
3052
4224
|
_context.next = 8;
|
|
3053
|
-
return asyncToGenerator._Promise.all([client.fetch(featureQuery), client.fetch(partnerQuery), client.fetch(taxonomyQuery)]);
|
|
4225
|
+
return asyncToGenerator$1._Promise.all([client.fetch(featureQuery), client.fetch(partnerQuery), client.fetch(taxonomyQuery)]);
|
|
3054
4226
|
|
|
3055
4227
|
case 8:
|
|
3056
4228
|
_ref3 = _context.sent;
|