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