@mjhls/mjh-framework 1.0.866-beta.0 → 1.0.866-d4d665.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +19 -16
- package/dist/cjs/AD300x250x600.js +19 -16
- package/dist/cjs/AD728x90.js +20 -17
- package/dist/cjs/ADFloatingFooter.js +21 -18
- package/dist/cjs/ADFooter.js +14 -11
- package/dist/cjs/ADGutter.js +21 -18
- package/dist/cjs/{ADInfeed-7c09edba.js → ADInfeed-799275aa.js} +12 -10
- package/dist/cjs/ADSkyscraper.js +21 -18
- package/dist/cjs/ADSponsoredResources.js +21 -18
- package/dist/cjs/ADWebcast.js +21 -18
- package/dist/cjs/ADWelcome.js +25 -22
- package/dist/cjs/{ADlgInfeed-2e7effc7.js → ADlgInfeed-591d014e.js} +8 -7
- package/dist/cjs/AccordionPanel.js +29 -25
- package/dist/cjs/AdSlot.js +23 -20
- package/dist/cjs/AdSlotsProvider.js +18 -907
- package/dist/cjs/AlgoliaSearch.js +978 -850
- package/dist/cjs/AlphabeticList.js +24 -21
- package/dist/cjs/ArticleCarousel.js +16 -13
- package/dist/cjs/ArticleProgramLandingPage.js +40 -37
- package/dist/cjs/ArticleSeriesLandingPage.js +35 -32
- package/dist/cjs/ArticleSeriesListing.js +49 -46
- package/dist/cjs/Auth.js +205 -1198
- package/dist/cjs/AuthWrapper.js +306 -262
- package/dist/cjs/{AuthorComponent-02e827ae.js → AuthorComponent-ac8972ce.js} +14 -13
- package/dist/cjs/Beam.js +7 -5
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-8b494587.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +28 -24
- package/dist/cjs/CMEDeck.js +73 -71
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +30 -25
- package/dist/cjs/Column3.js +46 -41
- package/dist/cjs/ConferenceArticleCard.js +33 -35
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +97 -91
- package/dist/cjs/DeckQueue.js +82 -77
- package/dist/cjs/{Dfp-14d2455c.js → Dfp-391fd124.js} +28 -25
- package/dist/cjs/EventsDeck.js +153 -144
- package/dist/cjs/ExternalResources.js +61 -58
- package/dist/cjs/Feature.js +25 -26
- package/dist/cjs/ForbesHero.js +40 -37
- package/dist/cjs/GridContent.js +221 -214
- package/dist/cjs/GridHero.js +41 -38
- package/dist/cjs/GroupDeck.js +55 -52
- package/dist/cjs/HamMagazine.js +137 -130
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +10 -12
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalArticleListing.js +51 -48
- package/dist/cjs/HorizontalHero.js +24 -26
- package/dist/cjs/IssueContentDeck.js +75 -68
- package/dist/cjs/IssueDeck.js +73 -66
- package/dist/cjs/IssueLanding.js +72 -69
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +31 -27
- package/dist/cjs/MasterDeck.js +71 -68
- package/dist/cjs/MediaSeriesLanding.js +855 -862
- package/dist/cjs/NavDvm.js +75 -68
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +138 -131
- package/dist/cjs/NavNative.js +132 -122
- package/dist/cjs/OncliveHero.js +17 -20
- package/dist/cjs/OncliveLargeHero.js +69 -66
- package/dist/cjs/PageFilter.js +14 -11
- package/dist/cjs/PartnerDetailListing.js +259 -1329
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +20 -16
- package/dist/cjs/PubSection.js +30 -27
- package/dist/cjs/PubToc.js +15 -12
- package/dist/cjs/PublicationDeck.js +64 -62
- package/dist/cjs/PublicationLanding.js +150 -144
- package/dist/cjs/QueueDeckExpanded.js +297 -295
- package/dist/cjs/RecentNews.js +20 -19
- package/dist/cjs/RelatedContent.js +51 -53
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +21 -15
- package/dist/cjs/Segment.js +6 -4
- package/dist/cjs/SeriesListingDeck.js +33 -31
- package/dist/cjs/{SeriesSlider-49b81b0b.js → SeriesSlider-d38767ae.js} +39 -38
- package/dist/cjs/SideFooter.js +33 -30
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-650f6101.js → SocialSearchComponent-9a9d6f8c.js} +39 -35
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +61 -58
- package/dist/cjs/TaxonomyDescription.js +36 -33
- package/dist/cjs/TemplateNormal.js +46 -43
- package/dist/cjs/ThumbnailCard.js +19 -20
- package/dist/cjs/Ustream.js +29 -26
- package/dist/cjs/VerticalHero.js +16 -18
- package/dist/cjs/VideoProgramLandingPage.js +59 -53
- package/dist/cjs/VideoSeriesCard.js +28 -27
- package/dist/cjs/VideoSeriesFilter.js +16 -14
- package/dist/cjs/VideoSeriesLandingPage.js +40 -37
- package/dist/cjs/VideoSeriesListing.js +66 -63
- package/dist/cjs/View.js +220 -214
- package/dist/cjs/YahooHero.js +36 -33
- package/dist/cjs/YoutubeGroup.js +59 -56
- package/dist/cjs/{_is-array-aa52fa1e.js → _is-array-754e012d.js} +9 -9
- package/dist/cjs/{_iter-detect-05795553.js → _iter-detect-60b2f026.js} +7 -6
- package/dist/cjs/_object-sap-5e74ba08.js +16 -0
- package/dist/cjs/{_object-to-array-9bac8737.js → _object-to-array-5762f850.js} +4 -4
- package/dist/cjs/{core.get-iterator-method-f3c44602.js → _to-object-329a650b.js} +3 -239
- package/dist/cjs/{asyncToGenerator-df19209d.js → asyncToGenerator-140e5f89.js} +67 -65
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-4ba0d3d5.js} +6 -5
- package/dist/cjs/core.get-iterator-method-f62321d4.js +39 -0
- package/dist/cjs/{define-property-21887c62.js → define-property-f4d12f4e.js} +3 -3
- package/dist/cjs/{defineProperty-77a37684.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/es6.string.iterator-cc0bbaa4.js +210 -0
- package/dist/cjs/{extends-eed4f016.js → extends-0a918631.js} +8 -8
- package/dist/cjs/faundadb.js +21 -19
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +12 -10
- package/dist/cjs/getRootDocGroup.js +8 -6
- package/dist/cjs/getSerializers.js +25 -23
- package/dist/cjs/{getTargeting-8874437b.js → getTargeting-21103688.js} +12 -12
- package/dist/cjs/getTargeting.js +7 -5
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-98e01cb9.js → index-2cf30c83.js} +9 -8
- package/dist/cjs/{index-59af05c4.js → index-4990e6c9.js} +970 -965
- package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
- package/dist/cjs/{index-96b3db50.js → index-9d365128.js} +12 -10
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/{index-e2e62963.js → index-f0677b9d.js} +10 -0
- package/dist/cjs/{index.es-9110add6.js → index.es-13533f24.js} +11 -8
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-4d410430.js → index.esm-3ffa049c.js} +20 -20
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +80 -73
- package/dist/cjs/{inherits-cba9c846.js → inherits-0c7830c5.js} +15 -14
- package/dist/cjs/{keys-d207942e.js → keys-a586b7a0.js} +4 -4
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-02daeefe.js → main-11ec04d2.js} +85 -53
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/{slicedToArray-f6d4eaa8.js → slicedToArray-8f385299.js} +9 -7
- package/dist/cjs/{stringify-bbc68047.js → stringify-7c5aff47.js} +2 -2
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-c9b8a0d0.js → toConsumableArray-9a3476fe.js} +10 -8
- package/dist/cjs/{typeof-5f52cf64.js → typeof-9d7f610f.js} +74 -73
- package/dist/cjs/urlFor.js +4 -21
- package/dist/cjs/{ustream-api-9ebe112f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-e34bf324.js → web.dom.iterable-a0e279c1.js} +9 -8
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +16 -14
- package/dist/esm/AD300x250x600.js +16 -14
- package/dist/esm/AD728x90.js +17 -15
- package/dist/esm/ADFloatingFooter.js +18 -16
- package/dist/esm/ADFooter.js +11 -9
- package/dist/esm/ADGutter.js +18 -16
- package/dist/esm/{ADInfeed-bfd129d9.js → ADInfeed-4b8902ae.js} +8 -8
- package/dist/esm/ADSkyscraper.js +18 -16
- package/dist/esm/ADSponsoredResources.js +18 -16
- package/dist/esm/ADWebcast.js +18 -16
- package/dist/esm/ADWelcome.js +22 -20
- package/dist/esm/{ADlgInfeed-0489335b.js → ADlgInfeed-5193b48f.js} +5 -5
- package/dist/esm/AccordionPanel.js +22 -20
- package/dist/esm/AdSlot.js +14 -12
- package/dist/esm/AdSlotsProvider.js +16 -906
- package/dist/esm/AlgoliaSearch.js +376 -249
- package/dist/esm/AlphabeticList.js +21 -19
- package/dist/esm/ArticleCarousel.js +13 -11
- package/dist/esm/ArticleProgramLandingPage.js +34 -32
- package/dist/esm/ArticleSeriesLandingPage.js +30 -28
- package/dist/esm/ArticleSeriesListing.js +45 -43
- package/dist/esm/Auth.js +184 -1181
- package/dist/esm/AuthWrapper.js +303 -260
- package/dist/esm/{AuthorComponent-e6f95c2f.js → AuthorComponent-8ffd4679.js} +11 -11
- package/dist/esm/Beam.js +7 -5
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d05b5b23.js} +4 -4
- package/dist/esm/Breadcrumbs.js +16 -14
- package/dist/esm/CMEDeck.js +70 -68
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +25 -23
- package/dist/esm/Column3.js +41 -39
- package/dist/esm/ConferenceArticleCard.js +30 -33
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +89 -87
- package/dist/esm/DeckQueue.js +74 -73
- package/dist/esm/{Dfp-f867d061.js → Dfp-2f9796e1.js} +15 -13
- package/dist/esm/EventsDeck.js +121 -119
- package/dist/esm/ExternalResources.js +55 -53
- package/dist/esm/Feature.js +17 -20
- package/dist/esm/ForbesHero.js +33 -31
- package/dist/esm/GridContent.js +185 -183
- package/dist/esm/GridHero.js +34 -32
- package/dist/esm/GroupDeck.js +42 -40
- package/dist/esm/HamMagazine.js +107 -105
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +48 -46
- package/dist/esm/HorizontalHero.js +21 -24
- package/dist/esm/IssueContentDeck.js +58 -56
- package/dist/esm/IssueDeck.js +62 -60
- package/dist/esm/IssueLanding.js +69 -67
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +25 -23
- package/dist/esm/MasterDeck.js +67 -65
- package/dist/esm/MediaSeriesLanding.js +574 -584
- package/dist/esm/NavDvm.js +53 -51
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +110 -108
- package/dist/esm/NavNative.js +99 -97
- package/dist/esm/OncliveHero.js +14 -18
- package/dist/esm/OncliveLargeHero.js +57 -55
- package/dist/esm/PageFilter.js +11 -9
- package/dist/esm/PartnerDetailListing.js +256 -1327
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +13 -11
- package/dist/esm/PubSection.js +27 -25
- package/dist/esm/PubToc.js +12 -10
- package/dist/esm/PublicationDeck.js +51 -54
- package/dist/esm/PublicationLanding.js +105 -103
- package/dist/esm/QueueDeckExpanded.js +263 -261
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +45 -48
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +12 -10
- package/dist/esm/Segment.js +6 -4
- package/dist/esm/SeriesListingDeck.js +28 -26
- package/dist/esm/{SeriesSlider-d555a1d2.js → SeriesSlider-b8cc1baa.js} +29 -29
- package/dist/esm/SideFooter.js +29 -27
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-d7dec0c2.js → SocialSearchComponent-c54d43cb.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +52 -54
- package/dist/esm/TaxonomyDescription.js +30 -28
- package/dist/esm/TemplateNormal.js +42 -40
- package/dist/esm/ThumbnailCard.js +10 -13
- package/dist/esm/Ustream.js +26 -24
- package/dist/esm/VerticalHero.js +13 -16
- package/dist/esm/VideoProgramLandingPage.js +46 -44
- package/dist/esm/VideoSeriesCard.js +22 -22
- package/dist/esm/VideoSeriesFilter.js +13 -11
- package/dist/esm/VideoSeriesLandingPage.js +30 -28
- package/dist/esm/VideoSeriesListing.js +62 -60
- package/dist/esm/View.js +198 -196
- package/dist/esm/YahooHero.js +30 -28
- package/dist/esm/YoutubeGroup.js +43 -41
- package/dist/esm/{_is-array-4df618a6.js → _is-array-58e95429.js} +1 -1
- package/dist/esm/{_iter-detect-130ee549.js → _iter-detect-5d49a330.js} +2 -1
- package/dist/esm/{_object-sap-8b8ea5a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-c54dd835.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{core.get-iterator-method-86d4db69.js → _to-object-a4107da3.js} +1 -230
- package/dist/esm/{asyncToGenerator-7bf8bc4d.js → asyncToGenerator-fc1c2e29.js} +5 -3
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-e1c6b0f2.js} +3 -3
- package/dist/esm/core.get-iterator-method-e1de7503.js +36 -0
- package/dist/esm/{define-property-6d26cb48.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-d7d9b577.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/es6.string.iterator-c990c18c.js +201 -0
- package/dist/esm/{extends-5b1796d4.js → extends-6f2fcc99.js} +1 -1
- package/dist/esm/faundadb.js +7 -5
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +6 -4
- package/dist/esm/getRootDocGroup.js +6 -4
- package/dist/esm/getSerializers.js +25 -23
- package/dist/esm/{getTargeting-277c801e.js → getTargeting-88d69971.js} +11 -11
- package/dist/esm/getTargeting.js +7 -5
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-5f7e79e7.js → index-6c12bdd5.js} +4 -4
- package/dist/esm/{index-aaa2dae0.js → index-b68072f5.js} +10 -1
- package/dist/esm/{index-efc23b2b.js → index-bec35c6c.js} +911 -916
- package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index-41a678ea.js → index-f7fb1e25.js} +3 -3
- package/dist/esm/{index.es-29c1cef5.js → index.es-7dda2f0a.js} +8 -6
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8ee5ff72.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
- package/dist/esm/index.js +69 -65
- package/dist/esm/{inherits-2409637d.js → inherits-75d45541.js} +5 -4
- package/dist/esm/{keys-69989821.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-e4a934b2.js → main-aef58dbc.js} +81 -50
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/{slicedToArray-67a08c9c.js → slicedToArray-641f241f.js} +4 -2
- package/dist/esm/{stringify-70b72959.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-32282905.js → toConsumableArray-43aa614d.js} +4 -2
- package/dist/esm/{typeof-c05a82ba.js → typeof-af9c50d8.js} +5 -4
- package/dist/esm/urlFor.js +2 -19
- package/dist/esm/{ustream-api-4c4fe0ba.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-f8f967cd.js → web.dom.iterable-4439f05a.js} +2 -1
- package/package.json +111 -111
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/_object-sap-171b9ea5.js +0 -16
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/esm/inherits-77d5e4fc.js +0 -101
|
@@ -1,50 +1,52 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
3
4
|
import './_library-528f1934.js';
|
|
4
|
-
import './_iter-detect-
|
|
5
|
-
import './toConsumableArray-
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import './toConsumableArray-43aa614d.js';
|
|
7
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
6
8
|
import './_object-pie-33c40e79.js';
|
|
7
|
-
import { _ as _extends } from './extends-
|
|
8
|
-
import './_object-sap-
|
|
9
|
-
import './inherits-
|
|
10
|
-
import './define-property-
|
|
11
|
-
import './web.dom.iterable-
|
|
12
|
-
import './typeof-
|
|
13
|
-
import './_is-array-
|
|
14
|
-
import
|
|
9
|
+
import { _ as _extends$1 } from './extends-6f2fcc99.js';
|
|
10
|
+
import './_object-sap-964b6feb.js';
|
|
11
|
+
import './inherits-75d45541.js';
|
|
12
|
+
import './define-property-8af5f002.js';
|
|
13
|
+
import './web.dom.iterable-4439f05a.js';
|
|
14
|
+
import './typeof-af9c50d8.js';
|
|
15
|
+
import './_is-array-58e95429.js';
|
|
16
|
+
import React, { createContext, Component, forwardRef, PureComponent, useRef, useState, useEffect } from 'react';
|
|
15
17
|
import './events-6c3a7a63.js';
|
|
16
|
-
import './index-
|
|
18
|
+
import './index-f7fb1e25.js';
|
|
17
19
|
import PropTypes from 'prop-types';
|
|
18
20
|
import 'react-bootstrap/Row';
|
|
19
21
|
import 'react-bootstrap/Col';
|
|
20
22
|
import 'react-bootstrap/Card';
|
|
21
|
-
import { m as moment } from './moment-
|
|
23
|
+
import { m as moment } from './moment-12415288.js';
|
|
22
24
|
import 'next/router';
|
|
23
25
|
import './isSymbol-1981418f.js';
|
|
24
26
|
import './debounce-9207d8ee.js';
|
|
25
27
|
import './toNumber-2f7a84cd.js';
|
|
26
|
-
import './index.es-
|
|
28
|
+
import './index.es-7dda2f0a.js';
|
|
27
29
|
import 'react-dom';
|
|
28
|
-
import './visibility-sensor-
|
|
29
|
-
import
|
|
30
|
-
import './index-73819142.js';
|
|
30
|
+
import './visibility-sensor-f40c2564.js';
|
|
31
|
+
import './index-51a80699.js';
|
|
31
32
|
import urlFor from './urlFor.js';
|
|
32
|
-
import './index-
|
|
33
|
-
import './main-
|
|
33
|
+
import './index-6c12bdd5.js';
|
|
34
|
+
import './main-aef58dbc.js';
|
|
34
35
|
import './entities-7cc3bf45.js';
|
|
35
|
-
import './
|
|
36
|
-
import
|
|
36
|
+
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
37
|
+
import './stringify-4330ccdc.js';
|
|
38
|
+
import { a as _asyncToGenerator$1, r as regenerator, _ as _Promise } from './asyncToGenerator-fc1c2e29.js';
|
|
37
39
|
import './Segment.js';
|
|
38
40
|
import './Beam.js';
|
|
39
41
|
import './AdSlot.js';
|
|
40
|
-
import './ADInfeed-
|
|
41
|
-
import './lodash-
|
|
42
|
-
import './ADlgInfeed-
|
|
42
|
+
import './ADInfeed-4b8902ae.js';
|
|
43
|
+
import './lodash-ec8c6b48.js';
|
|
44
|
+
import './ADlgInfeed-5193b48f.js';
|
|
43
45
|
import './getContentCategory-15dcc413.js';
|
|
44
|
-
import './AuthorComponent-
|
|
46
|
+
import './AuthorComponent-8ffd4679.js';
|
|
45
47
|
import 'react-bootstrap/Button';
|
|
46
|
-
import { B as BlockContent } from './BlockContent-
|
|
47
|
-
import { r as reactSocialIcons_1 } from './react-social-icons-
|
|
48
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
49
|
+
import { r as reactSocialIcons_1 } from './react-social-icons-3822f1ce.js';
|
|
48
50
|
import './index-c7e2ac95.js';
|
|
49
51
|
import { s as smoothscroll } from './smoothscroll-0cd4c7a6.js';
|
|
50
52
|
import './GroupDeck.js';
|
|
@@ -52,1122 +54,26 @@ import 'react-bootstrap';
|
|
|
52
54
|
import './timeDifferenceCalc.js';
|
|
53
55
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
54
56
|
import './iconBase-602d52fe.js';
|
|
55
|
-
import './index.esm-
|
|
56
|
-
import { g as getSerializers } from './index-
|
|
57
|
+
import './index.esm-3fdda599.js';
|
|
58
|
+
import { g as getSerializers } from './index-bec35c6c.js';
|
|
57
59
|
import './util-7700fc59.js';
|
|
58
|
-
import './brightcove-react-player-loader.es-
|
|
60
|
+
import './brightcove-react-player-loader.es-e1c6b0f2.js';
|
|
59
61
|
import 'next/head';
|
|
60
62
|
import 'react-share';
|
|
61
63
|
import './SocialShare.js';
|
|
62
|
-
import './_object-to-array-
|
|
64
|
+
import './_object-to-array-7e804fce.js';
|
|
63
65
|
import 'react-bootstrap/Pagination';
|
|
64
66
|
import 'react-bootstrap/Figure';
|
|
65
67
|
import 'react-bootstrap/OverlayTrigger';
|
|
66
68
|
import 'react-bootstrap/Tooltip';
|
|
67
69
|
import 'react-bootstrap/Popover';
|
|
68
|
-
import { _ as _defineProperty$1, b as _inherits, c as _classCallCheck, d as _possibleConstructorReturn, e as _getPrototypeOf, g as _createClass } from './inherits-77d5e4fc.js';
|
|
69
70
|
import 'react-bootstrap/Carousel';
|
|
70
71
|
import Feature from './Feature.js';
|
|
71
72
|
import 'react-bootstrap/Breadcrumb';
|
|
72
73
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
74
|
+
import { TwitterTimelineEmbed } from 'react-twitter-embed';
|
|
73
75
|
|
|
74
|
-
var
|
|
75
|
-
Object.defineProperty(exports,'__esModule',{value:!0});var VALIDATOR_ARG_ERROR_MESSAGE='The typeValidator argument must be a function with the signature function(props, propName, componentName).',MESSAGE_ARG_ERROR_MESSAGE='The error message is optional, but must be a string if provided.',propIsRequired=function propIsRequired(a,b,c,d){if('boolean'==typeof a)return a;return 'function'==typeof a?a(b,c,d):!(!0!==!!a)&&!!a},propExists=function propExists(a,b){return Object.hasOwnProperty.call(a,b)},missingPropError=function missingPropError(a,b,c,d){return d?new Error(d):new Error('Required '+a[b]+' `'+b+'`'+(' was not specified in `'+c+'`.'))},guardAgainstInvalidArgTypes=function guardAgainstInvalidArgTypes(a,b){if('function'!=typeof a)throw new TypeError(VALIDATOR_ARG_ERROR_MESSAGE);if(!!b&&'string'!=typeof b)throw new TypeError(MESSAGE_ARG_ERROR_MESSAGE)},isRequiredIf=function isRequiredIf(a,b,c){return guardAgainstInvalidArgTypes(a,c),function(d,e,f){for(var _len=arguments.length,g=Array(3<_len?_len-3:0),_key=3;_key<_len;_key++)g[_key-3]=arguments[_key];return propIsRequired(b,d,e,f)?propExists(d,e)?a.apply(void 0,[d,e,f].concat(g)):missingPropError(d,e,f,c):a.apply(void 0,[d,e,f].concat(g));// Is not required, so just run typeValidator.
|
|
76
|
-
}};exports.default=isRequiredIf;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
var isRequiredIf = unwrapExports(isRequiredIf_1);
|
|
82
|
-
|
|
83
|
-
var exenv = createCommonjsModule(function (module) {
|
|
84
|
-
/*!
|
|
85
|
-
Copyright (c) 2015 Jed Watson.
|
|
86
|
-
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
87
|
-
All rights reserved.
|
|
88
|
-
*/
|
|
89
|
-
/* global define */
|
|
90
|
-
|
|
91
|
-
(function () {
|
|
92
|
-
|
|
93
|
-
var canUseDOM = !!(
|
|
94
|
-
typeof window !== 'undefined' &&
|
|
95
|
-
window.document &&
|
|
96
|
-
window.document.createElement
|
|
97
|
-
);
|
|
98
|
-
|
|
99
|
-
var ExecutionEnvironment = {
|
|
100
|
-
|
|
101
|
-
canUseDOM: canUseDOM,
|
|
102
|
-
|
|
103
|
-
canUseWorkers: typeof Worker !== 'undefined',
|
|
104
|
-
|
|
105
|
-
canUseEventListeners:
|
|
106
|
-
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
107
|
-
|
|
108
|
-
canUseViewport: canUseDOM && !!window.screen
|
|
109
|
-
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
if ( module.exports) {
|
|
113
|
-
module.exports = ExecutionEnvironment;
|
|
114
|
-
} else {
|
|
115
|
-
window.ExecutionEnvironment = ExecutionEnvironment;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
}());
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
var twitterWidgetJs = 'https://platform.twitter.com/widgets.js';
|
|
122
|
-
|
|
123
|
-
var TwitterTimelineEmbed =
|
|
124
|
-
/*#__PURE__*/
|
|
125
|
-
function (_Component) {
|
|
126
|
-
_inherits(TwitterTimelineEmbed, _Component);
|
|
127
|
-
|
|
128
|
-
function TwitterTimelineEmbed(props) {
|
|
129
|
-
var _this;
|
|
130
|
-
|
|
131
|
-
_classCallCheck(this, TwitterTimelineEmbed);
|
|
132
|
-
|
|
133
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTimelineEmbed).call(this, props));
|
|
134
|
-
_this.state = {
|
|
135
|
-
isLoading: true
|
|
136
|
-
};
|
|
137
|
-
return _this;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
_createClass(TwitterTimelineEmbed, [{
|
|
141
|
-
key: "buildChromeOptions",
|
|
142
|
-
value: function buildChromeOptions(options) {
|
|
143
|
-
options.chrome = '';
|
|
144
|
-
|
|
145
|
-
if (this.props.noHeader) {
|
|
146
|
-
options.chrome = options.chrome + ' noheader';
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
if (this.props.noFooter) {
|
|
150
|
-
options.chrome = options.chrome + ' nofooter';
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
if (this.props.noBorders) {
|
|
154
|
-
options.chrome = options.chrome + ' noborders';
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
if (this.props.noScrollbar) {
|
|
158
|
-
options.chrome = options.chrome + ' noscrollbar';
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
if (this.props.transparent) {
|
|
162
|
-
options.chrome = options.chrome + ' transparent';
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
return options;
|
|
166
|
-
}
|
|
167
|
-
}, {
|
|
168
|
-
key: "buildOptions",
|
|
169
|
-
value: function buildOptions() {
|
|
170
|
-
var options = Object.assign({}, this.props.options);
|
|
171
|
-
|
|
172
|
-
if (this.props.autoHeight) {
|
|
173
|
-
options.height = this.refs.embedContainer.parentNode.offsetHeight;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
options = Object.assign({}, options, {
|
|
177
|
-
theme: this.props.theme,
|
|
178
|
-
linkColor: this.props.linkColor,
|
|
179
|
-
borderColor: this.props.borderColor,
|
|
180
|
-
lang: this.props.lang
|
|
181
|
-
});
|
|
182
|
-
return options;
|
|
183
|
-
}
|
|
184
|
-
}, {
|
|
185
|
-
key: "renderWidget",
|
|
186
|
-
value: function renderWidget(options) {
|
|
187
|
-
var _this2 = this;
|
|
188
|
-
|
|
189
|
-
var onLoad = this.props.onLoad;
|
|
190
|
-
|
|
191
|
-
if (!this.isMountCanceled) {
|
|
192
|
-
window.twttr.widgets.createTimeline({
|
|
193
|
-
sourceType: this.props.sourceType,
|
|
194
|
-
screenName: this.props.screenName,
|
|
195
|
-
userId: this.props.userId,
|
|
196
|
-
ownerScreenName: this.props.ownerScreenName,
|
|
197
|
-
slug: this.props.slug,
|
|
198
|
-
id: this.props.id || this.props.widgetId,
|
|
199
|
-
url: this.props.url
|
|
200
|
-
}, this.refs.embedContainer, options).then(function (element) {
|
|
201
|
-
_this2.setState({
|
|
202
|
-
isLoading: false
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
if (onLoad) {
|
|
206
|
-
onLoad(element);
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}, {
|
|
212
|
-
key: "componentDidMount",
|
|
213
|
-
value: function componentDidMount() {
|
|
214
|
-
var _this3 = this;
|
|
215
|
-
|
|
216
|
-
if (exenv.canUseDOM) {
|
|
217
|
-
var script = require('scriptjs');
|
|
218
|
-
|
|
219
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
220
|
-
if (!window.twttr) {
|
|
221
|
-
console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.');
|
|
222
|
-
return;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
var options = _this3.buildOptions();
|
|
226
|
-
/** Append chrome options */
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
options = _this3.buildChromeOptions(options);
|
|
230
|
-
|
|
231
|
-
_this3.renderWidget(options);
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}, {
|
|
236
|
-
key: "componentWillUnmount",
|
|
237
|
-
value: function componentWillUnmount() {
|
|
238
|
-
this.isMountCanceled = true;
|
|
239
|
-
}
|
|
240
|
-
}, {
|
|
241
|
-
key: "render",
|
|
242
|
-
value: function render() {
|
|
243
|
-
var isLoading = this.state.isLoading;
|
|
244
|
-
var placeholder = this.props.placeholder;
|
|
245
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
246
|
-
ref: "embedContainer"
|
|
247
|
-
}));
|
|
248
|
-
}
|
|
249
|
-
}]);
|
|
250
|
-
|
|
251
|
-
return TwitterTimelineEmbed;
|
|
252
|
-
}(Component);
|
|
253
|
-
|
|
254
|
-
_defineProperty$1(TwitterTimelineEmbed, "propTypes", {
|
|
255
|
-
/**
|
|
256
|
-
* This can be either of profile, likes, list, collection, URL, widget
|
|
257
|
-
*/
|
|
258
|
-
sourceType: PropTypes.oneOf(['profile', 'likes', 'list', 'collection', 'url', 'widget']).isRequired,
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* username of twitter handle as String
|
|
262
|
-
*/
|
|
263
|
-
screenName: isRequiredIf(PropTypes.string, function (props) {
|
|
264
|
-
return !props.hasOwnProperty('userId') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
265
|
-
}),
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* UserId of twitter handle as number
|
|
269
|
-
*/
|
|
270
|
-
userId: isRequiredIf(PropTypes.number, function (props) {
|
|
271
|
-
return !props.hasOwnProperty('screenName') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
272
|
-
}),
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* To show list, used along with slug
|
|
276
|
-
*/
|
|
277
|
-
ownerScreenName: isRequiredIf(PropTypes.string, function (props) {
|
|
278
|
-
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
279
|
-
}),
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* To show list, used along with ownerScreenName
|
|
283
|
-
*/
|
|
284
|
-
slug: isRequiredIf(PropTypes.string, function (props) {
|
|
285
|
-
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
286
|
-
}),
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* To show list, unique list id
|
|
290
|
-
* Also used with collections, in that case its valid collection id
|
|
291
|
-
*/
|
|
292
|
-
id: isRequiredIf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]), function (props) {
|
|
293
|
-
return props.sourceType === 'list' && !props.hasOwnProperty('ownerScreenName') && !props.hasOwnProperty('slug') || props.sourceType === 'collection';
|
|
294
|
-
}),
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* To show twitter content with url.
|
|
298
|
-
* Supported content includes profiles, likes, lists, and collections.
|
|
299
|
-
*/
|
|
300
|
-
url: isRequiredIf(PropTypes.string, function (props) {
|
|
301
|
-
return props.sourceType === 'url';
|
|
302
|
-
}),
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* To show custom widget
|
|
306
|
-
*/
|
|
307
|
-
widgetId: isRequiredIf(PropTypes.string, function (props) {
|
|
308
|
-
return props.sourceType === 'widget';
|
|
309
|
-
}),
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Additional options to pass to twitter widget plugin
|
|
313
|
-
*/
|
|
314
|
-
options: PropTypes.object,
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Automatically fit into parent container height
|
|
318
|
-
*/
|
|
319
|
-
autoHeight: PropTypes.bool,
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* With dark or light theme
|
|
323
|
-
*/
|
|
324
|
-
theme: PropTypes.oneOf(['dark', 'light']),
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* With custom link colors. Note: Only Hex colors are supported.
|
|
328
|
-
*/
|
|
329
|
-
linkColor: PropTypes.string,
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* With custom border colors. Note: Only Hex colors are supported.
|
|
333
|
-
*/
|
|
334
|
-
borderColor: PropTypes.string,
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Hide the header from timeline
|
|
338
|
-
*/
|
|
339
|
-
noHeader: PropTypes.bool,
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* Hide the footer from timeline
|
|
343
|
-
*/
|
|
344
|
-
noFooter: PropTypes.bool,
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Hide the border from timeline
|
|
348
|
-
*/
|
|
349
|
-
noBorders: PropTypes.bool,
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* Hide the scrollbars
|
|
353
|
-
*/
|
|
354
|
-
noScrollbar: PropTypes.bool,
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Enable Transparancy
|
|
358
|
-
*/
|
|
359
|
-
transparent: PropTypes.bool,
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* Custom language code. Supported codes here: https://developer.twitter.com/en/docs/twitter-for-websites/twitter-for-websites-supported-languages/overview.html
|
|
363
|
-
*/
|
|
364
|
-
lang: PropTypes.string,
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* Placeholder while tweet is loading
|
|
368
|
-
*/
|
|
369
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* Function to execute after load, return html element
|
|
373
|
-
*/
|
|
374
|
-
onLoad: PropTypes.func
|
|
375
|
-
});
|
|
376
|
-
|
|
377
|
-
var TwitterShareButton =
|
|
378
|
-
/*#__PURE__*/
|
|
379
|
-
function (_Component) {
|
|
380
|
-
_inherits(TwitterShareButton, _Component);
|
|
381
|
-
|
|
382
|
-
function TwitterShareButton(props) {
|
|
383
|
-
var _this;
|
|
384
|
-
|
|
385
|
-
_classCallCheck(this, TwitterShareButton);
|
|
386
|
-
|
|
387
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterShareButton).call(this, props));
|
|
388
|
-
_this.state = {
|
|
389
|
-
isLoading: true
|
|
390
|
-
};
|
|
391
|
-
return _this;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
_createClass(TwitterShareButton, [{
|
|
395
|
-
key: "componentDidMount",
|
|
396
|
-
value: function componentDidMount() {
|
|
397
|
-
var _this2 = this;
|
|
398
|
-
|
|
399
|
-
var onLoad = this.props.onLoad;
|
|
400
|
-
|
|
401
|
-
if (exenv.canUseDOM) {
|
|
402
|
-
var script = require('scriptjs');
|
|
403
|
-
|
|
404
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
405
|
-
if (!window.twttr) {
|
|
406
|
-
console.error('Failure to load window.twttr in TwitterShareButton, aborting load.');
|
|
407
|
-
return;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
if (!_this2.isMountCanceled) {
|
|
411
|
-
window.twttr.widgets.createShareButton(_this2.props.url, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
412
|
-
_this2.setState({
|
|
413
|
-
isLoading: false
|
|
414
|
-
});
|
|
415
|
-
|
|
416
|
-
if (onLoad) {
|
|
417
|
-
onLoad(element);
|
|
418
|
-
}
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}, {
|
|
425
|
-
key: "componentWillUnmount",
|
|
426
|
-
value: function componentWillUnmount() {
|
|
427
|
-
this.isMountCanceled = true;
|
|
428
|
-
}
|
|
429
|
-
}, {
|
|
430
|
-
key: "render",
|
|
431
|
-
value: function render() {
|
|
432
|
-
var isLoading = this.state.isLoading;
|
|
433
|
-
var placeholder = this.props.placeholder;
|
|
434
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
435
|
-
ref: "embedContainer"
|
|
436
|
-
}));
|
|
437
|
-
}
|
|
438
|
-
}]);
|
|
439
|
-
|
|
440
|
-
return TwitterShareButton;
|
|
441
|
-
}(Component);
|
|
442
|
-
|
|
443
|
-
_defineProperty$1(TwitterShareButton, "propTypes", {
|
|
444
|
-
/**
|
|
445
|
-
* Url for sharing
|
|
446
|
-
*/
|
|
447
|
-
url: PropTypes.string.isRequired,
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* Additional options for overriding config. Details at : https://dev.twitter.com/web/tweet-button/parameters
|
|
451
|
-
*/
|
|
452
|
-
options: PropTypes.object,
|
|
453
|
-
|
|
454
|
-
/**
|
|
455
|
-
* Placeholder while tweet is loading
|
|
456
|
-
*/
|
|
457
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* Function to execute after load, return html element
|
|
461
|
-
*/
|
|
462
|
-
onLoad: PropTypes.func
|
|
463
|
-
});
|
|
464
|
-
|
|
465
|
-
var TwitterFollowButton =
|
|
466
|
-
/*#__PURE__*/
|
|
467
|
-
function (_Component) {
|
|
468
|
-
_inherits(TwitterFollowButton, _Component);
|
|
469
|
-
|
|
470
|
-
function TwitterFollowButton(props) {
|
|
471
|
-
var _this;
|
|
472
|
-
|
|
473
|
-
_classCallCheck(this, TwitterFollowButton);
|
|
474
|
-
|
|
475
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterFollowButton).call(this, props));
|
|
476
|
-
_this.state = {
|
|
477
|
-
isLoading: true
|
|
478
|
-
};
|
|
479
|
-
return _this;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
_createClass(TwitterFollowButton, [{
|
|
483
|
-
key: "componentDidMount",
|
|
484
|
-
value: function componentDidMount() {
|
|
485
|
-
var _this2 = this;
|
|
486
|
-
|
|
487
|
-
var onLoad = this.props.onLoad;
|
|
488
|
-
|
|
489
|
-
if (exenv.canUseDOM) {
|
|
490
|
-
var script = require('scriptjs');
|
|
491
|
-
|
|
492
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
493
|
-
if (!window.twttr) {
|
|
494
|
-
console.error('Failure to load window.twttr in TwitterFollowButton, aborting load.');
|
|
495
|
-
return;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
if (!_this2.isMountCanceled) {
|
|
499
|
-
window.twttr.widgets.createFollowButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
500
|
-
_this2.setState({
|
|
501
|
-
isLoading: false
|
|
502
|
-
});
|
|
503
|
-
|
|
504
|
-
if (onLoad) {
|
|
505
|
-
onLoad(element);
|
|
506
|
-
}
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
}, {
|
|
513
|
-
key: "componentWillUnmount",
|
|
514
|
-
value: function componentWillUnmount() {
|
|
515
|
-
this.isMountCanceled = true;
|
|
516
|
-
}
|
|
517
|
-
}, {
|
|
518
|
-
key: "render",
|
|
519
|
-
value: function render() {
|
|
520
|
-
var isLoading = this.state.isLoading;
|
|
521
|
-
var placeholder = this.props.placeholder;
|
|
522
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
523
|
-
ref: "embedContainer"
|
|
524
|
-
}));
|
|
525
|
-
}
|
|
526
|
-
}]);
|
|
527
|
-
|
|
528
|
-
return TwitterFollowButton;
|
|
529
|
-
}(Component);
|
|
530
|
-
|
|
531
|
-
_defineProperty$1(TwitterFollowButton, "propTypes", {
|
|
532
|
-
/**
|
|
533
|
-
* Username of twitter user which will be followed on click
|
|
534
|
-
*/
|
|
535
|
-
screenName: PropTypes.string.isRequired,
|
|
536
|
-
|
|
537
|
-
/**
|
|
538
|
-
* Additional options to be added to the button
|
|
539
|
-
*/
|
|
540
|
-
options: PropTypes.object,
|
|
541
|
-
|
|
542
|
-
/**
|
|
543
|
-
* Placeholder while tweet is loading
|
|
544
|
-
*/
|
|
545
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* Function to execute after load, return html element
|
|
549
|
-
*/
|
|
550
|
-
onLoad: PropTypes.func
|
|
551
|
-
});
|
|
552
|
-
|
|
553
|
-
var TwitterHashtagButton =
|
|
554
|
-
/*#__PURE__*/
|
|
555
|
-
function (_Component) {
|
|
556
|
-
_inherits(TwitterHashtagButton, _Component);
|
|
557
|
-
|
|
558
|
-
function TwitterHashtagButton(props) {
|
|
559
|
-
var _this;
|
|
560
|
-
|
|
561
|
-
_classCallCheck(this, TwitterHashtagButton);
|
|
562
|
-
|
|
563
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterHashtagButton).call(this, props));
|
|
564
|
-
_this.state = {
|
|
565
|
-
isLoading: true
|
|
566
|
-
};
|
|
567
|
-
return _this;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
_createClass(TwitterHashtagButton, [{
|
|
571
|
-
key: "componentDidMount",
|
|
572
|
-
value: function componentDidMount() {
|
|
573
|
-
var _this2 = this;
|
|
574
|
-
|
|
575
|
-
var onLoad = this.props.onLoad;
|
|
576
|
-
|
|
577
|
-
if (exenv.canUseDOM) {
|
|
578
|
-
var script = require('scriptjs');
|
|
579
|
-
|
|
580
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
581
|
-
if (!window.twttr) {
|
|
582
|
-
console.error('Failure to load window.twttr in TwitterHashtagButton, aborting load.');
|
|
583
|
-
return;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
if (!_this2.isMountCanceled) {
|
|
587
|
-
window.twttr.widgets.createHashtagButton(_this2.props.tag, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
588
|
-
_this2.setState({
|
|
589
|
-
isLoading: false
|
|
590
|
-
});
|
|
591
|
-
|
|
592
|
-
if (onLoad) {
|
|
593
|
-
onLoad(element);
|
|
594
|
-
}
|
|
595
|
-
});
|
|
596
|
-
}
|
|
597
|
-
});
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
}, {
|
|
601
|
-
key: "componentWillUnmount",
|
|
602
|
-
value: function componentWillUnmount() {
|
|
603
|
-
this.isMountCanceled = true;
|
|
604
|
-
}
|
|
605
|
-
}, {
|
|
606
|
-
key: "render",
|
|
607
|
-
value: function render() {
|
|
608
|
-
var isLoading = this.state.isLoading;
|
|
609
|
-
var placeholder = this.props.placeholder;
|
|
610
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
611
|
-
ref: "embedContainer"
|
|
612
|
-
}));
|
|
613
|
-
}
|
|
614
|
-
}]);
|
|
615
|
-
|
|
616
|
-
return TwitterHashtagButton;
|
|
617
|
-
}(Component);
|
|
618
|
-
|
|
619
|
-
_defineProperty$1(TwitterHashtagButton, "propTypes", {
|
|
620
|
-
/**
|
|
621
|
-
* Tag name for hashtag button
|
|
622
|
-
*/
|
|
623
|
-
tag: PropTypes.string.isRequired,
|
|
624
|
-
|
|
625
|
-
/**
|
|
626
|
-
* Additional options to be added to the button
|
|
627
|
-
*/
|
|
628
|
-
options: PropTypes.object,
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* Placeholder while tweet is loading
|
|
632
|
-
*/
|
|
633
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* Function to execute after load, return html element
|
|
637
|
-
*/
|
|
638
|
-
onLoad: PropTypes.func
|
|
639
|
-
});
|
|
640
|
-
|
|
641
|
-
var TwitterMentionButton =
|
|
642
|
-
/*#__PURE__*/
|
|
643
|
-
function (_Component) {
|
|
644
|
-
_inherits(TwitterMentionButton, _Component);
|
|
645
|
-
|
|
646
|
-
function TwitterMentionButton(props) {
|
|
647
|
-
var _this;
|
|
648
|
-
|
|
649
|
-
_classCallCheck(this, TwitterMentionButton);
|
|
650
|
-
|
|
651
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMentionButton).call(this, props));
|
|
652
|
-
_this.state = {
|
|
653
|
-
isLoading: true
|
|
654
|
-
};
|
|
655
|
-
return _this;
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
_createClass(TwitterMentionButton, [{
|
|
659
|
-
key: "componentDidMount",
|
|
660
|
-
value: function componentDidMount() {
|
|
661
|
-
var _this2 = this;
|
|
662
|
-
|
|
663
|
-
var onLoad = this.props.onLoad;
|
|
664
|
-
|
|
665
|
-
if (exenv.canUseDOM) {
|
|
666
|
-
var script = require('scriptjs');
|
|
667
|
-
|
|
668
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
669
|
-
if (!window.twttr) {
|
|
670
|
-
console.error('Failure to load window.twttr in TwitterMentionButton, aborting load.');
|
|
671
|
-
return;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
if (!_this2.isMountCanceled) {
|
|
675
|
-
window.twttr.widgets.createMentionButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
676
|
-
_this2.setState({
|
|
677
|
-
isLoading: false
|
|
678
|
-
});
|
|
679
|
-
|
|
680
|
-
if (onLoad) {
|
|
681
|
-
onLoad(element);
|
|
682
|
-
}
|
|
683
|
-
});
|
|
684
|
-
}
|
|
685
|
-
});
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
}, {
|
|
689
|
-
key: "componentWillUnmount",
|
|
690
|
-
value: function componentWillUnmount() {
|
|
691
|
-
this.isMountCanceled = true;
|
|
692
|
-
}
|
|
693
|
-
}, {
|
|
694
|
-
key: "render",
|
|
695
|
-
value: function render() {
|
|
696
|
-
var isLoading = this.state.isLoading;
|
|
697
|
-
var placeholder = this.props.placeholder;
|
|
698
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
699
|
-
ref: "embedContainer"
|
|
700
|
-
}));
|
|
701
|
-
}
|
|
702
|
-
}]);
|
|
703
|
-
|
|
704
|
-
return TwitterMentionButton;
|
|
705
|
-
}(Component);
|
|
706
|
-
|
|
707
|
-
_defineProperty$1(TwitterMentionButton, "propTypes", {
|
|
708
|
-
/**
|
|
709
|
-
* Username to which you will need to tweet
|
|
710
|
-
*/
|
|
711
|
-
screenName: PropTypes.string.isRequired,
|
|
712
|
-
|
|
713
|
-
/**
|
|
714
|
-
* Additional options for overriding config.
|
|
715
|
-
*/
|
|
716
|
-
options: PropTypes.object,
|
|
717
|
-
|
|
718
|
-
/**
|
|
719
|
-
* Placeholder while tweet is loading
|
|
720
|
-
*/
|
|
721
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
722
|
-
|
|
723
|
-
/**
|
|
724
|
-
* Function to execute after load, return html element
|
|
725
|
-
*/
|
|
726
|
-
onLoad: PropTypes.func
|
|
727
|
-
});
|
|
728
|
-
|
|
729
|
-
var TwitterTweetEmbed =
|
|
730
|
-
/*#__PURE__*/
|
|
731
|
-
function (_Component) {
|
|
732
|
-
_inherits(TwitterTweetEmbed, _Component);
|
|
733
|
-
|
|
734
|
-
function TwitterTweetEmbed(props) {
|
|
735
|
-
var _this;
|
|
736
|
-
|
|
737
|
-
_classCallCheck(this, TwitterTweetEmbed);
|
|
738
|
-
|
|
739
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTweetEmbed).call(this, props));
|
|
740
|
-
_this.state = {
|
|
741
|
-
isLoading: true
|
|
742
|
-
};
|
|
743
|
-
return _this;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
_createClass(TwitterTweetEmbed, [{
|
|
747
|
-
key: "renderWidget",
|
|
748
|
-
value: function renderWidget() {
|
|
749
|
-
var _this2 = this;
|
|
750
|
-
|
|
751
|
-
var onLoad = this.props.onLoad;
|
|
752
|
-
|
|
753
|
-
if (!window.twttr) {
|
|
754
|
-
console.error('Failure to load window.twttr in TwitterTweetEmbed, aborting load.');
|
|
755
|
-
return;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
if (!this.isMountCanceled) {
|
|
759
|
-
window.twttr.widgets.createTweet(this.props.tweetId, this.refs.embedContainer, this.props.options).then(function (element) {
|
|
760
|
-
_this2.setState({
|
|
761
|
-
isLoading: false
|
|
762
|
-
});
|
|
763
|
-
|
|
764
|
-
if (onLoad) {
|
|
765
|
-
onLoad(element);
|
|
766
|
-
}
|
|
767
|
-
});
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
}, {
|
|
771
|
-
key: "componentDidMount",
|
|
772
|
-
value: function componentDidMount() {
|
|
773
|
-
var _this3 = this;
|
|
774
|
-
|
|
775
|
-
if (exenv.canUseDOM) {
|
|
776
|
-
var script = require('scriptjs');
|
|
777
|
-
|
|
778
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
779
|
-
_this3.renderWidget();
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
}, {
|
|
784
|
-
key: "componentWillUnmount",
|
|
785
|
-
value: function componentWillUnmount() {
|
|
786
|
-
this.isMountCanceled = true;
|
|
787
|
-
}
|
|
788
|
-
}, {
|
|
789
|
-
key: "render",
|
|
790
|
-
value: function render() {
|
|
791
|
-
var isLoading = this.state.isLoading;
|
|
792
|
-
var placeholder = this.props.placeholder;
|
|
793
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
794
|
-
ref: "embedContainer"
|
|
795
|
-
}));
|
|
796
|
-
}
|
|
797
|
-
}]);
|
|
798
|
-
|
|
799
|
-
return TwitterTweetEmbed;
|
|
800
|
-
}(Component);
|
|
801
|
-
|
|
802
|
-
_defineProperty$1(TwitterTweetEmbed, "propTypes", {
|
|
803
|
-
/**
|
|
804
|
-
* Tweet id that needs to be shown
|
|
805
|
-
*/
|
|
806
|
-
tweetId: PropTypes.string.isRequired,
|
|
807
|
-
|
|
808
|
-
/**
|
|
809
|
-
* Additional options to pass to twitter widget plugin
|
|
810
|
-
*/
|
|
811
|
-
options: PropTypes.object,
|
|
812
|
-
|
|
813
|
-
/**
|
|
814
|
-
* Placeholder while tweet is loading
|
|
815
|
-
*/
|
|
816
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
817
|
-
|
|
818
|
-
/**
|
|
819
|
-
* Function to execute after load, return html element
|
|
820
|
-
*/
|
|
821
|
-
onLoad: PropTypes.func
|
|
822
|
-
});
|
|
823
|
-
|
|
824
|
-
var TwitterMomentShare =
|
|
825
|
-
/*#__PURE__*/
|
|
826
|
-
function (_Component) {
|
|
827
|
-
_inherits(TwitterMomentShare, _Component);
|
|
828
|
-
|
|
829
|
-
function TwitterMomentShare(props) {
|
|
830
|
-
var _this;
|
|
831
|
-
|
|
832
|
-
_classCallCheck(this, TwitterMomentShare);
|
|
833
|
-
|
|
834
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMomentShare).call(this, props));
|
|
835
|
-
_this.state = {
|
|
836
|
-
isLoading: true
|
|
837
|
-
};
|
|
838
|
-
return _this;
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
_createClass(TwitterMomentShare, [{
|
|
842
|
-
key: "componentDidMount",
|
|
843
|
-
value: function componentDidMount() {
|
|
844
|
-
var _this2 = this;
|
|
845
|
-
|
|
846
|
-
var onLoad = this.props.onLoad;
|
|
847
|
-
|
|
848
|
-
if (exenv.canUseDOM) {
|
|
849
|
-
var script = require('scriptjs');
|
|
850
|
-
|
|
851
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
852
|
-
if (!window.twttr) {
|
|
853
|
-
console.error('Failure to load window.twttr in TwitterMomentShare, aborting load.');
|
|
854
|
-
return;
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
if (!_this2.isMountCanceled) {
|
|
858
|
-
window.twttr.widgets.createMoment(_this2.props.momentId, _this2.refs.shareMoment, _this2.props.options).then(function (element) {
|
|
859
|
-
_this2.setState({
|
|
860
|
-
isLoading: false
|
|
861
|
-
});
|
|
862
|
-
|
|
863
|
-
if (onLoad) {
|
|
864
|
-
onLoad(element);
|
|
865
|
-
}
|
|
866
|
-
});
|
|
867
|
-
}
|
|
868
|
-
});
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
}, {
|
|
872
|
-
key: "componentWillUnmount",
|
|
873
|
-
value: function componentWillUnmount() {
|
|
874
|
-
this.isMountCanceled = true;
|
|
875
|
-
}
|
|
876
|
-
}, {
|
|
877
|
-
key: "render",
|
|
878
|
-
value: function render() {
|
|
879
|
-
var isLoading = this.state.isLoading;
|
|
880
|
-
var placeholder = this.props.placeholder;
|
|
881
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
882
|
-
ref: "shareMoment"
|
|
883
|
-
}));
|
|
884
|
-
}
|
|
885
|
-
}]);
|
|
886
|
-
|
|
887
|
-
return TwitterMomentShare;
|
|
888
|
-
}(Component);
|
|
889
|
-
|
|
890
|
-
_defineProperty$1(TwitterMomentShare, "propTypes", {
|
|
891
|
-
/**
|
|
892
|
-
* id of Twitter moment to show
|
|
893
|
-
*/
|
|
894
|
-
momentId: PropTypes.string.isRequired,
|
|
895
|
-
|
|
896
|
-
/**
|
|
897
|
-
* Additional options for overriding config.
|
|
898
|
-
*/
|
|
899
|
-
options: PropTypes.object,
|
|
900
|
-
|
|
901
|
-
/**
|
|
902
|
-
* Placeholder while tweet is loading
|
|
903
|
-
*/
|
|
904
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
905
|
-
|
|
906
|
-
/**
|
|
907
|
-
* Function to execute after load, return html element
|
|
908
|
-
*/
|
|
909
|
-
onLoad: PropTypes.func
|
|
910
|
-
});
|
|
911
|
-
|
|
912
|
-
var TwitterDMButton =
|
|
913
|
-
/*#__PURE__*/
|
|
914
|
-
function (_Component) {
|
|
915
|
-
_inherits(TwitterDMButton, _Component);
|
|
916
|
-
|
|
917
|
-
function TwitterDMButton(props) {
|
|
918
|
-
var _this;
|
|
919
|
-
|
|
920
|
-
_classCallCheck(this, TwitterDMButton);
|
|
921
|
-
|
|
922
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterDMButton).call(this, props));
|
|
923
|
-
_this.state = {
|
|
924
|
-
isLoading: true
|
|
925
|
-
};
|
|
926
|
-
return _this;
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
_createClass(TwitterDMButton, [{
|
|
930
|
-
key: "componentDidMount",
|
|
931
|
-
value: function componentDidMount() {
|
|
932
|
-
var _this2 = this;
|
|
933
|
-
|
|
934
|
-
var onLoad = this.props.onLoad;
|
|
935
|
-
|
|
936
|
-
if (exenv.canUseDOM) {
|
|
937
|
-
var script = require('scriptjs');
|
|
938
|
-
|
|
939
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
940
|
-
if (!window.twttr) {
|
|
941
|
-
console.error('Failure to load window.twttr in TwitterDMButton, aborting load.');
|
|
942
|
-
return;
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
if (!_this2.isMountCanceled) {
|
|
946
|
-
window.twttr.widgets.createDMButton(_this2.props.id, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
947
|
-
_this2.setState({
|
|
948
|
-
isLoading: false
|
|
949
|
-
});
|
|
950
|
-
|
|
951
|
-
if (onLoad) {
|
|
952
|
-
onLoad(element);
|
|
953
|
-
}
|
|
954
|
-
});
|
|
955
|
-
}
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
}, {
|
|
960
|
-
key: "componentWillUnmount",
|
|
961
|
-
value: function componentWillUnmount() {
|
|
962
|
-
this.isMountCanceled = true;
|
|
963
|
-
}
|
|
964
|
-
}, {
|
|
965
|
-
key: "render",
|
|
966
|
-
value: function render() {
|
|
967
|
-
var isLoading = this.state.isLoading;
|
|
968
|
-
var placeholder = this.props.placeholder;
|
|
969
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
970
|
-
ref: "embedContainer"
|
|
971
|
-
}));
|
|
972
|
-
}
|
|
973
|
-
}]);
|
|
974
|
-
|
|
975
|
-
return TwitterDMButton;
|
|
976
|
-
}(Component);
|
|
977
|
-
|
|
978
|
-
_defineProperty$1(TwitterDMButton, "propTypes", {
|
|
979
|
-
/**
|
|
980
|
-
* Twitter user id for DM button
|
|
981
|
-
*/
|
|
982
|
-
id: PropTypes.number.isRequired,
|
|
983
|
-
|
|
984
|
-
/**
|
|
985
|
-
* Additional options to be added to the button
|
|
986
|
-
*/
|
|
987
|
-
options: PropTypes.object,
|
|
988
|
-
|
|
989
|
-
/**
|
|
990
|
-
* Placeholder while tweet is loading
|
|
991
|
-
*/
|
|
992
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
993
|
-
|
|
994
|
-
/**
|
|
995
|
-
* Function to execute after load, return html element
|
|
996
|
-
*/
|
|
997
|
-
onLoad: PropTypes.func
|
|
998
|
-
});
|
|
999
|
-
|
|
1000
|
-
var TwitterVideoEmbed =
|
|
1001
|
-
/*#__PURE__*/
|
|
1002
|
-
function (_Component) {
|
|
1003
|
-
_inherits(TwitterVideoEmbed, _Component);
|
|
1004
|
-
|
|
1005
|
-
function TwitterVideoEmbed(props) {
|
|
1006
|
-
var _this;
|
|
1007
|
-
|
|
1008
|
-
_classCallCheck(this, TwitterVideoEmbed);
|
|
1009
|
-
|
|
1010
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterVideoEmbed).call(this, props));
|
|
1011
|
-
_this.state = {
|
|
1012
|
-
isLoading: true
|
|
1013
|
-
};
|
|
1014
|
-
return _this;
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
_createClass(TwitterVideoEmbed, [{
|
|
1018
|
-
key: "componentDidMount",
|
|
1019
|
-
value: function componentDidMount() {
|
|
1020
|
-
var _this2 = this;
|
|
1021
|
-
|
|
1022
|
-
var onLoad = this.props.onLoad;
|
|
1023
|
-
|
|
1024
|
-
if (exenv.canUseDOM) {
|
|
1025
|
-
var script = require('scriptjs');
|
|
1026
|
-
|
|
1027
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1028
|
-
if (!window.twttr) {
|
|
1029
|
-
console.error('Failure to load window.twttr in TwitterVideoEmbed, aborting load.');
|
|
1030
|
-
return;
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
if (!_this2.isMountCanceled) {
|
|
1034
|
-
window.twttr.widgets.createVideo(_this2.props.id, _this2.refs.embedContainer).then(function (element) {
|
|
1035
|
-
_this2.setState({
|
|
1036
|
-
isLoading: false
|
|
1037
|
-
});
|
|
1038
|
-
|
|
1039
|
-
if (onLoad) {
|
|
1040
|
-
onLoad(element);
|
|
1041
|
-
}
|
|
1042
|
-
});
|
|
1043
|
-
}
|
|
1044
|
-
});
|
|
1045
|
-
}
|
|
1046
|
-
}
|
|
1047
|
-
}, {
|
|
1048
|
-
key: "componentWillUnmount",
|
|
1049
|
-
value: function componentWillUnmount() {
|
|
1050
|
-
this.isMountCanceled = true;
|
|
1051
|
-
}
|
|
1052
|
-
}, {
|
|
1053
|
-
key: "render",
|
|
1054
|
-
value: function render() {
|
|
1055
|
-
var isLoading = this.state.isLoading;
|
|
1056
|
-
var placeholder = this.props.placeholder;
|
|
1057
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1058
|
-
ref: "embedContainer"
|
|
1059
|
-
}));
|
|
1060
|
-
}
|
|
1061
|
-
}]);
|
|
1062
|
-
|
|
1063
|
-
return TwitterVideoEmbed;
|
|
1064
|
-
}(Component);
|
|
1065
|
-
|
|
1066
|
-
_defineProperty$1(TwitterVideoEmbed, "propTypes", {
|
|
1067
|
-
/**
|
|
1068
|
-
* Id of video tweet.
|
|
1069
|
-
*/
|
|
1070
|
-
id: PropTypes.string.isRequired,
|
|
1071
|
-
|
|
1072
|
-
/**
|
|
1073
|
-
* Placeholder while tweet is loading
|
|
1074
|
-
*/
|
|
1075
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1076
|
-
|
|
1077
|
-
/**
|
|
1078
|
-
* Function to execute after load, return html element
|
|
1079
|
-
*/
|
|
1080
|
-
onLoad: PropTypes.func
|
|
1081
|
-
});
|
|
1082
|
-
|
|
1083
|
-
var TwitterOnAirButton =
|
|
1084
|
-
/*#__PURE__*/
|
|
1085
|
-
function (_Component) {
|
|
1086
|
-
_inherits(TwitterOnAirButton, _Component);
|
|
1087
|
-
|
|
1088
|
-
function TwitterOnAirButton(props) {
|
|
1089
|
-
var _this;
|
|
1090
|
-
|
|
1091
|
-
_classCallCheck(this, TwitterOnAirButton);
|
|
1092
|
-
|
|
1093
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterOnAirButton).call(this, props));
|
|
1094
|
-
_this.state = {
|
|
1095
|
-
isLoading: true
|
|
1096
|
-
};
|
|
1097
|
-
return _this;
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
_createClass(TwitterOnAirButton, [{
|
|
1101
|
-
key: "componentDidMount",
|
|
1102
|
-
value: function componentDidMount() {
|
|
1103
|
-
var _this2 = this;
|
|
1104
|
-
|
|
1105
|
-
var onLoad = this.props.onLoad;
|
|
1106
|
-
|
|
1107
|
-
if (exenv.canUseDOM) {
|
|
1108
|
-
var script = require('scriptjs');
|
|
1109
|
-
|
|
1110
|
-
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1111
|
-
if (!window.twttr) {
|
|
1112
|
-
console.error('Failure to load window.twttr in TwitterOnAirButton, aborting load.');
|
|
1113
|
-
return;
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
if (!_this2.isMountCanceled) {
|
|
1117
|
-
window.twttr.widgets.createPeriscopeOnAirButton(_this2.props.username, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1118
|
-
_this2.setState({
|
|
1119
|
-
isLoading: false
|
|
1120
|
-
});
|
|
1121
|
-
|
|
1122
|
-
if (onLoad) {
|
|
1123
|
-
onLoad(element);
|
|
1124
|
-
}
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
});
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
}, {
|
|
1131
|
-
key: "componentWillUnmount",
|
|
1132
|
-
value: function componentWillUnmount() {
|
|
1133
|
-
this.isMountCanceled = true;
|
|
1134
|
-
}
|
|
1135
|
-
}, {
|
|
1136
|
-
key: "render",
|
|
1137
|
-
value: function render() {
|
|
1138
|
-
var isLoading = this.state.isLoading;
|
|
1139
|
-
var placeholder = this.props.placeholder;
|
|
1140
|
-
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1141
|
-
ref: "embedContainer"
|
|
1142
|
-
}));
|
|
1143
|
-
}
|
|
1144
|
-
}]);
|
|
1145
|
-
|
|
1146
|
-
return TwitterOnAirButton;
|
|
1147
|
-
}(Component);
|
|
1148
|
-
|
|
1149
|
-
_defineProperty$1(TwitterOnAirButton, "propTypes", {
|
|
1150
|
-
/**
|
|
1151
|
-
* Username for which you require periscope on air button
|
|
1152
|
-
*/
|
|
1153
|
-
username: PropTypes.string.isRequired,
|
|
1154
|
-
|
|
1155
|
-
/**
|
|
1156
|
-
* Additional options for overriding config.
|
|
1157
|
-
*/
|
|
1158
|
-
options: PropTypes.object,
|
|
1159
|
-
|
|
1160
|
-
/**
|
|
1161
|
-
* Placeholder while tweet is loading
|
|
1162
|
-
*/
|
|
1163
|
-
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1164
|
-
|
|
1165
|
-
/**
|
|
1166
|
-
* Function to execute after load, return html element
|
|
1167
|
-
*/
|
|
1168
|
-
onLoad: PropTypes.func
|
|
1169
|
-
});
|
|
1170
|
-
|
|
76
|
+
var asyncToGenerator = createCommonjsModule(function (module) {
|
|
1171
77
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1172
78
|
try {
|
|
1173
79
|
var info = gen[key](arg);
|
|
@@ -1204,8 +110,13 @@ function _asyncToGenerator(fn) {
|
|
|
1204
110
|
};
|
|
1205
111
|
}
|
|
1206
112
|
|
|
1207
|
-
|
|
113
|
+
module.exports = _asyncToGenerator;
|
|
114
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
var _asyncToGenerator = unwrapExports(asyncToGenerator);
|
|
1208
118
|
|
|
119
|
+
var defineProperty = createCommonjsModule(function (module) {
|
|
1209
120
|
function _defineProperty(obj, key, value) {
|
|
1210
121
|
if (key in obj) {
|
|
1211
122
|
Object.defineProperty(obj, key, {
|
|
@@ -1221,7 +132,11 @@ function _defineProperty(obj, key, value) {
|
|
|
1221
132
|
return obj;
|
|
1222
133
|
}
|
|
1223
134
|
|
|
1224
|
-
|
|
135
|
+
module.exports = _defineProperty;
|
|
136
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
var _defineProperty = unwrapExports(defineProperty);
|
|
1225
140
|
|
|
1226
141
|
var canUseDOM = !!(
|
|
1227
142
|
typeof window !== 'undefined' &&
|
|
@@ -1231,6 +146,7 @@ var canUseDOM = !!(
|
|
|
1231
146
|
|
|
1232
147
|
var canUseDom = canUseDOM;
|
|
1233
148
|
|
|
149
|
+
var objectWithoutPropertiesLoose = createCommonjsModule(function (module) {
|
|
1234
150
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1235
151
|
if (source == null) return {};
|
|
1236
152
|
var target = {};
|
|
@@ -1246,8 +162,13 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
1246
162
|
return target;
|
|
1247
163
|
}
|
|
1248
164
|
|
|
1249
|
-
|
|
165
|
+
module.exports = _objectWithoutPropertiesLoose;
|
|
166
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
unwrapExports(objectWithoutPropertiesLoose);
|
|
1250
170
|
|
|
171
|
+
var objectWithoutProperties = createCommonjsModule(function (module) {
|
|
1251
172
|
function _objectWithoutProperties(source, excluded) {
|
|
1252
173
|
if (source == null) return {};
|
|
1253
174
|
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
@@ -1267,7 +188,11 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
1267
188
|
return target;
|
|
1268
189
|
}
|
|
1269
190
|
|
|
1270
|
-
|
|
191
|
+
module.exports = _objectWithoutProperties;
|
|
192
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
var _objectWithoutProperties = unwrapExports(objectWithoutProperties);
|
|
1271
196
|
|
|
1272
197
|
var LoginStatus = {
|
|
1273
198
|
CONNECTED: 'connected',
|
|
@@ -1278,7 +203,7 @@ var LoginStatus = {
|
|
|
1278
203
|
|
|
1279
204
|
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; }
|
|
1280
205
|
|
|
1281
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) {
|
|
206
|
+
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; }
|
|
1282
207
|
const Method = {
|
|
1283
208
|
GET: 'get',
|
|
1284
209
|
POST: 'post',
|
|
@@ -1314,7 +239,7 @@ class Facebook {
|
|
|
1314
239
|
init() {
|
|
1315
240
|
var _this = this;
|
|
1316
241
|
|
|
1317
|
-
return
|
|
242
|
+
return _asyncToGenerator(function* () {
|
|
1318
243
|
if (_this.loadingPromise) {
|
|
1319
244
|
return _this.loadingPromise;
|
|
1320
245
|
}
|
|
@@ -1327,7 +252,7 @@ class Facebook {
|
|
|
1327
252
|
debug,
|
|
1328
253
|
chatSupport
|
|
1329
254
|
} = _this$options,
|
|
1330
|
-
restOptions =
|
|
255
|
+
restOptions = _objectWithoutProperties(_this$options, ["domain", "language", "debug", "chatSupport"]);
|
|
1331
256
|
|
|
1332
257
|
window.fbAsyncInit = () => {
|
|
1333
258
|
window.FB.init({
|
|
@@ -1359,7 +284,7 @@ class Facebook {
|
|
|
1359
284
|
process(method, before = [], after = []) {
|
|
1360
285
|
var _this2 = this;
|
|
1361
286
|
|
|
1362
|
-
return
|
|
287
|
+
return _asyncToGenerator(function* () {
|
|
1363
288
|
const fb = yield _this2.init();
|
|
1364
289
|
return new Promise((resolve, reject) => {
|
|
1365
290
|
fb[method](...before, response => {
|
|
@@ -1387,7 +312,7 @@ class Facebook {
|
|
|
1387
312
|
ui(options) {
|
|
1388
313
|
var _this3 = this;
|
|
1389
314
|
|
|
1390
|
-
return
|
|
315
|
+
return _asyncToGenerator(function* () {
|
|
1391
316
|
return _this3.process('ui', [options]);
|
|
1392
317
|
})();
|
|
1393
318
|
}
|
|
@@ -1395,7 +320,7 @@ class Facebook {
|
|
|
1395
320
|
api(path, method = Method.GET, params = {}) {
|
|
1396
321
|
var _this4 = this;
|
|
1397
322
|
|
|
1398
|
-
return
|
|
323
|
+
return _asyncToGenerator(function* () {
|
|
1399
324
|
return _this4.process('api', [path, method, params]);
|
|
1400
325
|
})();
|
|
1401
326
|
}
|
|
@@ -1403,7 +328,7 @@ class Facebook {
|
|
|
1403
328
|
login(opts = null) {
|
|
1404
329
|
var _this5 = this;
|
|
1405
330
|
|
|
1406
|
-
return
|
|
331
|
+
return _asyncToGenerator(function* () {
|
|
1407
332
|
return _this5.process('login', [], [opts]);
|
|
1408
333
|
})();
|
|
1409
334
|
}
|
|
@@ -1411,7 +336,7 @@ class Facebook {
|
|
|
1411
336
|
logout() {
|
|
1412
337
|
var _this6 = this;
|
|
1413
338
|
|
|
1414
|
-
return
|
|
339
|
+
return _asyncToGenerator(function* () {
|
|
1415
340
|
return _this6.process('logout');
|
|
1416
341
|
})();
|
|
1417
342
|
}
|
|
@@ -1419,7 +344,7 @@ class Facebook {
|
|
|
1419
344
|
getLoginStatus() {
|
|
1420
345
|
var _this7 = this;
|
|
1421
346
|
|
|
1422
|
-
return
|
|
347
|
+
return _asyncToGenerator(function* () {
|
|
1423
348
|
return _this7.process('getLoginStatus');
|
|
1424
349
|
})();
|
|
1425
350
|
}
|
|
@@ -1427,7 +352,7 @@ class Facebook {
|
|
|
1427
352
|
getAuthResponse() {
|
|
1428
353
|
var _this8 = this;
|
|
1429
354
|
|
|
1430
|
-
return
|
|
355
|
+
return _asyncToGenerator(function* () {
|
|
1431
356
|
return _this8.process('getAuthResponse');
|
|
1432
357
|
})();
|
|
1433
358
|
}
|
|
@@ -1435,7 +360,7 @@ class Facebook {
|
|
|
1435
360
|
getTokenDetail(loginResponse) {
|
|
1436
361
|
var _this9 = this;
|
|
1437
362
|
|
|
1438
|
-
return
|
|
363
|
+
return _asyncToGenerator(function* () {
|
|
1439
364
|
if (loginResponse.status === LoginStatus.CONNECTED && loginResponse.authResponse) {
|
|
1440
365
|
return loginResponse.authResponse;
|
|
1441
366
|
}
|
|
@@ -1453,7 +378,7 @@ class Facebook {
|
|
|
1453
378
|
getProfile(params) {
|
|
1454
379
|
var _this10 = this;
|
|
1455
380
|
|
|
1456
|
-
return
|
|
381
|
+
return _asyncToGenerator(function* () {
|
|
1457
382
|
return _this10.api('/me', Method.GET, params);
|
|
1458
383
|
})();
|
|
1459
384
|
}
|
|
@@ -1461,7 +386,7 @@ class Facebook {
|
|
|
1461
386
|
getTokenDetailWithProfile(params, response) {
|
|
1462
387
|
var _this11 = this;
|
|
1463
388
|
|
|
1464
|
-
return
|
|
389
|
+
return _asyncToGenerator(function* () {
|
|
1465
390
|
const tokenDetail = yield _this11.getTokenDetail(response);
|
|
1466
391
|
const profile = yield _this11.getProfile(params);
|
|
1467
392
|
return {
|
|
@@ -1474,7 +399,7 @@ class Facebook {
|
|
|
1474
399
|
getToken() {
|
|
1475
400
|
var _this12 = this;
|
|
1476
401
|
|
|
1477
|
-
return
|
|
402
|
+
return _asyncToGenerator(function* () {
|
|
1478
403
|
const authResponse = yield _this12.getTokenDetail();
|
|
1479
404
|
return authResponse.accessToken;
|
|
1480
405
|
})();
|
|
@@ -1483,7 +408,7 @@ class Facebook {
|
|
|
1483
408
|
getUserId() {
|
|
1484
409
|
var _this13 = this;
|
|
1485
410
|
|
|
1486
|
-
return
|
|
411
|
+
return _asyncToGenerator(function* () {
|
|
1487
412
|
const authResponse = yield _this13.getTokenDetail();
|
|
1488
413
|
return authResponse.userID;
|
|
1489
414
|
})();
|
|
@@ -1492,7 +417,7 @@ class Facebook {
|
|
|
1492
417
|
sendInvite(to, options) {
|
|
1493
418
|
var _this14 = this;
|
|
1494
419
|
|
|
1495
|
-
return
|
|
420
|
+
return _asyncToGenerator(function* () {
|
|
1496
421
|
return _this14.ui(_objectSpread({
|
|
1497
422
|
to,
|
|
1498
423
|
method: 'apprequests'
|
|
@@ -1503,7 +428,7 @@ class Facebook {
|
|
|
1503
428
|
postAction(ogNamespace, ogAction, ogObject, ogObjectUrl, noFeedStory) {
|
|
1504
429
|
var _this15 = this;
|
|
1505
430
|
|
|
1506
|
-
return
|
|
431
|
+
return _asyncToGenerator(function* () {
|
|
1507
432
|
let url = `/me/${ogNamespace}:${ogAction}?${ogObject}=${encodeURIComponent(ogObjectUrl)}`;
|
|
1508
433
|
|
|
1509
434
|
if (noFeedStory === true) {
|
|
@@ -1517,7 +442,7 @@ class Facebook {
|
|
|
1517
442
|
getPermissions() {
|
|
1518
443
|
var _this16 = this;
|
|
1519
444
|
|
|
1520
|
-
return
|
|
445
|
+
return _asyncToGenerator(function* () {
|
|
1521
446
|
const response = yield _this16.api('/me/permissions');
|
|
1522
447
|
return response.data;
|
|
1523
448
|
})();
|
|
@@ -1526,7 +451,7 @@ class Facebook {
|
|
|
1526
451
|
hasPermissions(permissions) {
|
|
1527
452
|
var _this17 = this;
|
|
1528
453
|
|
|
1529
|
-
return
|
|
454
|
+
return _asyncToGenerator(function* () {
|
|
1530
455
|
const usersPermissions = yield _this17.getPermissions();
|
|
1531
456
|
const findedPermissions = permissions.filter(p => {
|
|
1532
457
|
const currentPermission = usersPermissions.find(row => {
|
|
@@ -1545,7 +470,7 @@ class Facebook {
|
|
|
1545
470
|
subscribe(eventName, callback) {
|
|
1546
471
|
var _this18 = this;
|
|
1547
472
|
|
|
1548
|
-
return
|
|
473
|
+
return _asyncToGenerator(function* () {
|
|
1549
474
|
const fb = yield _this18.init();
|
|
1550
475
|
fb.Event.subscribe(eventName, callback);
|
|
1551
476
|
})();
|
|
@@ -1554,7 +479,7 @@ class Facebook {
|
|
|
1554
479
|
unsubscribe(eventName, callback) {
|
|
1555
480
|
var _this19 = this;
|
|
1556
481
|
|
|
1557
|
-
return
|
|
482
|
+
return _asyncToGenerator(function* () {
|
|
1558
483
|
const fb = yield _this19.init();
|
|
1559
484
|
fb.Event.unsubscribe(eventName, callback);
|
|
1560
485
|
})();
|
|
@@ -1563,7 +488,7 @@ class Facebook {
|
|
|
1563
488
|
parse(parentNode) {
|
|
1564
489
|
var _this20 = this;
|
|
1565
490
|
|
|
1566
|
-
return
|
|
491
|
+
return _asyncToGenerator(function* () {
|
|
1567
492
|
const fb = yield _this20.init();
|
|
1568
493
|
|
|
1569
494
|
if (typeof parentNode === 'undefined') {
|
|
@@ -1577,7 +502,7 @@ class Facebook {
|
|
|
1577
502
|
getRequests() {
|
|
1578
503
|
var _this21 = this;
|
|
1579
504
|
|
|
1580
|
-
return
|
|
505
|
+
return _asyncToGenerator(function* () {
|
|
1581
506
|
return _this21.api('/me/apprequests');
|
|
1582
507
|
})();
|
|
1583
508
|
}
|
|
@@ -1585,7 +510,7 @@ class Facebook {
|
|
|
1585
510
|
removeRequest(requestID) {
|
|
1586
511
|
var _this22 = this;
|
|
1587
512
|
|
|
1588
|
-
return
|
|
513
|
+
return _asyncToGenerator(function* () {
|
|
1589
514
|
return _this22.api(requestID, Method.DELETE);
|
|
1590
515
|
})();
|
|
1591
516
|
}
|
|
@@ -1593,7 +518,7 @@ class Facebook {
|
|
|
1593
518
|
setAutoGrow() {
|
|
1594
519
|
var _this23 = this;
|
|
1595
520
|
|
|
1596
|
-
return
|
|
521
|
+
return _asyncToGenerator(function* () {
|
|
1597
522
|
const fb = yield _this23.init();
|
|
1598
523
|
fb.Canvas.setAutoGrow();
|
|
1599
524
|
})();
|
|
@@ -1602,7 +527,7 @@ class Facebook {
|
|
|
1602
527
|
paySimple(product, quantity = 1) {
|
|
1603
528
|
var _this24 = this;
|
|
1604
529
|
|
|
1605
|
-
return
|
|
530
|
+
return _asyncToGenerator(function* () {
|
|
1606
531
|
return _this24.ui({
|
|
1607
532
|
method: 'pay',
|
|
1608
533
|
action: 'purchaseitem',
|
|
@@ -1615,7 +540,7 @@ class Facebook {
|
|
|
1615
540
|
pay(product, options) {
|
|
1616
541
|
var _this25 = this;
|
|
1617
542
|
|
|
1618
|
-
return
|
|
543
|
+
return _asyncToGenerator(function* () {
|
|
1619
544
|
return _this25.ui(_objectSpread({
|
|
1620
545
|
method: 'pay',
|
|
1621
546
|
action: 'purchaseitem',
|
|
@@ -1906,13 +831,13 @@ class Facebook$1 extends Component {
|
|
|
1906
831
|
super(...args);
|
|
1907
832
|
_this = this;
|
|
1908
833
|
|
|
1909
|
-
|
|
834
|
+
_defineProperty(this, "state", {
|
|
1910
835
|
isReady: false
|
|
1911
836
|
});
|
|
1912
837
|
|
|
1913
|
-
|
|
838
|
+
_defineProperty(this, "handleInit",
|
|
1914
839
|
/*#__PURE__*/
|
|
1915
|
-
|
|
840
|
+
_asyncToGenerator(function* () {
|
|
1916
841
|
// do not run if SSR
|
|
1917
842
|
if (!canUseDom) {
|
|
1918
843
|
throw new Error('You can not use Facebook without DOM');
|
|
@@ -1994,14 +919,14 @@ class Facebook$1 extends Component {
|
|
|
1994
919
|
handleInit,
|
|
1995
920
|
api
|
|
1996
921
|
};
|
|
1997
|
-
return
|
|
922
|
+
return React.createElement(FacebookContext.Provider, {
|
|
1998
923
|
value: value
|
|
1999
924
|
}, children);
|
|
2000
925
|
}
|
|
2001
926
|
|
|
2002
927
|
}
|
|
2003
928
|
|
|
2004
|
-
|
|
929
|
+
_defineProperty(Facebook$1, "defaultProps", {
|
|
2005
930
|
version: 'v3.1',
|
|
2006
931
|
cookie: false,
|
|
2007
932
|
status: false,
|
|
@@ -2031,12 +956,16 @@ function _extends() {
|
|
|
2031
956
|
return target;
|
|
2032
957
|
};
|
|
2033
958
|
|
|
959
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
2034
960
|
return _extends.apply(this, arguments);
|
|
2035
961
|
}
|
|
2036
962
|
|
|
2037
963
|
module.exports = _extends;
|
|
964
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
2038
965
|
});
|
|
2039
966
|
|
|
967
|
+
var _extends = unwrapExports(_extends_1);
|
|
968
|
+
|
|
2040
969
|
class Initialize extends Component {
|
|
2041
970
|
componentDidMount() {
|
|
2042
971
|
this.$isMounted = true;
|
|
@@ -2050,7 +979,7 @@ class Initialize extends Component {
|
|
|
2050
979
|
prepare() {
|
|
2051
980
|
var _this = this;
|
|
2052
981
|
|
|
2053
|
-
return
|
|
982
|
+
return _asyncToGenerator(function* () {
|
|
2054
983
|
const {
|
|
2055
984
|
onReady,
|
|
2056
985
|
handleInit
|
|
@@ -2083,16 +1012,16 @@ class Initialize extends Component {
|
|
|
2083
1012
|
|
|
2084
1013
|
}
|
|
2085
1014
|
|
|
2086
|
-
|
|
1015
|
+
_defineProperty(Initialize, "defaultProps", {
|
|
2087
1016
|
onReady: undefined,
|
|
2088
1017
|
api: undefined
|
|
2089
1018
|
});
|
|
2090
1019
|
|
|
2091
|
-
var Initialize$1 = forwardRef((props, ref) =>
|
|
1020
|
+
var Initialize$1 = forwardRef((props, ref) => React.createElement(FacebookContext.Consumer, null, ({
|
|
2092
1021
|
handleInit,
|
|
2093
1022
|
isReady,
|
|
2094
1023
|
api
|
|
2095
|
-
}) =>
|
|
1024
|
+
}) => React.createElement(Initialize, _extends({}, props, {
|
|
2096
1025
|
handleInit: handleInit,
|
|
2097
1026
|
isReady: isReady,
|
|
2098
1027
|
api: api,
|
|
@@ -2103,21 +1032,21 @@ class Parser extends Component {
|
|
|
2103
1032
|
constructor(...args) {
|
|
2104
1033
|
super(...args);
|
|
2105
1034
|
|
|
2106
|
-
|
|
1035
|
+
_defineProperty(this, "state", {});
|
|
2107
1036
|
|
|
2108
|
-
|
|
1037
|
+
_defineProperty(this, "handleReady", api => {
|
|
2109
1038
|
this.setState({
|
|
2110
1039
|
api
|
|
2111
1040
|
}, this.handleParse);
|
|
2112
1041
|
});
|
|
2113
1042
|
|
|
2114
|
-
|
|
1043
|
+
_defineProperty(this, "handleContainer", container => {
|
|
2115
1044
|
this.setState({
|
|
2116
1045
|
container
|
|
2117
1046
|
}, this.handleParse);
|
|
2118
1047
|
});
|
|
2119
1048
|
|
|
2120
|
-
|
|
1049
|
+
_defineProperty(this, "handleParse", () => {
|
|
2121
1050
|
const {
|
|
2122
1051
|
api,
|
|
2123
1052
|
container
|
|
@@ -2136,10 +1065,10 @@ class Parser extends Component {
|
|
|
2136
1065
|
className,
|
|
2137
1066
|
children
|
|
2138
1067
|
} = this.props;
|
|
2139
|
-
return
|
|
1068
|
+
return React.createElement("div", {
|
|
2140
1069
|
className: className,
|
|
2141
1070
|
ref: this.handleContainer
|
|
2142
|
-
},
|
|
1071
|
+
}, React.createElement(Initialize$1, {
|
|
2143
1072
|
onReady: this.handleReady
|
|
2144
1073
|
}, children({
|
|
2145
1074
|
handleParse: this.handleParse
|
|
@@ -2148,7 +1077,7 @@ class Parser extends Component {
|
|
|
2148
1077
|
|
|
2149
1078
|
}
|
|
2150
1079
|
|
|
2151
|
-
|
|
1080
|
+
_defineProperty(Parser, "defaultProps", {
|
|
2152
1081
|
className: undefined
|
|
2153
1082
|
});
|
|
2154
1083
|
|
|
@@ -2182,7 +1111,7 @@ class Like extends PureComponent {
|
|
|
2182
1111
|
kidDirectedSite,
|
|
2183
1112
|
referral
|
|
2184
1113
|
} = this.props;
|
|
2185
|
-
return
|
|
1114
|
+
return React.createElement("div", {
|
|
2186
1115
|
className: "fb-like",
|
|
2187
1116
|
"data-ref": referral,
|
|
2188
1117
|
"data-href": href,
|
|
@@ -2199,7 +1128,7 @@ class Like extends PureComponent {
|
|
|
2199
1128
|
|
|
2200
1129
|
}
|
|
2201
1130
|
|
|
2202
|
-
|
|
1131
|
+
_defineProperty(Like, "defaultProps", {
|
|
2203
1132
|
layout: undefined,
|
|
2204
1133
|
showFaces: undefined,
|
|
2205
1134
|
colorScheme: undefined,
|
|
@@ -2213,9 +1142,9 @@ defineProperty(Like, "defaultProps", {
|
|
|
2213
1142
|
width: undefined
|
|
2214
1143
|
});
|
|
2215
1144
|
|
|
2216
|
-
forwardRef((props, ref) =>
|
|
1145
|
+
forwardRef((props, ref) => React.createElement(Parser, null, ({
|
|
2217
1146
|
handleParse
|
|
2218
|
-
}) =>
|
|
1147
|
+
}) => React.createElement(Like, _extends({}, props, {
|
|
2219
1148
|
handleParse: handleParse,
|
|
2220
1149
|
ref: ref
|
|
2221
1150
|
}))));
|
|
@@ -2243,14 +1172,14 @@ class Process extends Component {
|
|
|
2243
1172
|
super(...args);
|
|
2244
1173
|
_this = this;
|
|
2245
1174
|
|
|
2246
|
-
|
|
1175
|
+
_defineProperty(this, "state", {
|
|
2247
1176
|
api: undefined
|
|
2248
1177
|
});
|
|
2249
1178
|
|
|
2250
|
-
|
|
1179
|
+
_defineProperty(this, "handleProcess",
|
|
2251
1180
|
/*#__PURE__*/
|
|
2252
1181
|
function () {
|
|
2253
|
-
var _ref =
|
|
1182
|
+
var _ref = _asyncToGenerator(function* (fn, handleSuccess = () => {}) {
|
|
2254
1183
|
_this.setState({
|
|
2255
1184
|
data: undefined,
|
|
2256
1185
|
error: undefined,
|
|
@@ -2289,7 +1218,7 @@ class Process extends Component {
|
|
|
2289
1218
|
};
|
|
2290
1219
|
}());
|
|
2291
1220
|
|
|
2292
|
-
|
|
1221
|
+
_defineProperty(this, "handleReady", api => {
|
|
2293
1222
|
this.setState({
|
|
2294
1223
|
api
|
|
2295
1224
|
});
|
|
@@ -2306,7 +1235,7 @@ class Process extends Component {
|
|
|
2306
1235
|
data,
|
|
2307
1236
|
error
|
|
2308
1237
|
} = this.state;
|
|
2309
|
-
return
|
|
1238
|
+
return React.createElement(Initialize$1, {
|
|
2310
1239
|
onReady: this.handleReady
|
|
2311
1240
|
}, children({
|
|
2312
1241
|
loading: !api || loading,
|
|
@@ -2325,10 +1254,10 @@ class Send extends Component {
|
|
|
2325
1254
|
super(...args);
|
|
2326
1255
|
_this = this;
|
|
2327
1256
|
|
|
2328
|
-
|
|
1257
|
+
_defineProperty(this, "handleClick",
|
|
2329
1258
|
/*#__PURE__*/
|
|
2330
1259
|
function () {
|
|
2331
|
-
var _ref =
|
|
1260
|
+
var _ref = _asyncToGenerator(function* (evn) {
|
|
2332
1261
|
evn.preventDefault();
|
|
2333
1262
|
const {
|
|
2334
1263
|
handleProcess
|
|
@@ -2336,7 +1265,7 @@ class Send extends Component {
|
|
|
2336
1265
|
return handleProcess(
|
|
2337
1266
|
/*#__PURE__*/
|
|
2338
1267
|
function () {
|
|
2339
|
-
var _ref2 =
|
|
1268
|
+
var _ref2 = _asyncToGenerator(function* (api) {
|
|
2340
1269
|
const {
|
|
2341
1270
|
link = getCurrentHref(),
|
|
2342
1271
|
display,
|
|
@@ -2379,17 +1308,17 @@ class Send extends Component {
|
|
|
2379
1308
|
|
|
2380
1309
|
}
|
|
2381
1310
|
|
|
2382
|
-
|
|
1311
|
+
_defineProperty(Send, "defaultProps", {
|
|
2383
1312
|
to: undefined,
|
|
2384
1313
|
display: undefined,
|
|
2385
1314
|
appId: undefined,
|
|
2386
1315
|
redirectURI: undefined
|
|
2387
1316
|
});
|
|
2388
1317
|
|
|
2389
|
-
forwardRef((props, ref) =>
|
|
1318
|
+
forwardRef((props, ref) => React.createElement(Process, null, ({
|
|
2390
1319
|
loading,
|
|
2391
1320
|
handleProcess
|
|
2392
|
-
}) =>
|
|
1321
|
+
}) => React.createElement(Send, _extends({}, props, {
|
|
2393
1322
|
loading: loading,
|
|
2394
1323
|
handleProcess: handleProcess,
|
|
2395
1324
|
ref: ref
|
|
@@ -2402,10 +1331,10 @@ class Share extends Component {
|
|
|
2402
1331
|
super(...args);
|
|
2403
1332
|
_this = this;
|
|
2404
1333
|
|
|
2405
|
-
|
|
1334
|
+
_defineProperty(this, "handleClick",
|
|
2406
1335
|
/*#__PURE__*/
|
|
2407
1336
|
function () {
|
|
2408
|
-
var _ref =
|
|
1337
|
+
var _ref = _asyncToGenerator(function* (evn) {
|
|
2409
1338
|
evn.preventDefault();
|
|
2410
1339
|
const {
|
|
2411
1340
|
handleProcess
|
|
@@ -2413,7 +1342,7 @@ class Share extends Component {
|
|
|
2413
1342
|
return handleProcess(
|
|
2414
1343
|
/*#__PURE__*/
|
|
2415
1344
|
function () {
|
|
2416
|
-
var _ref2 =
|
|
1345
|
+
var _ref2 = _asyncToGenerator(function* (api) {
|
|
2417
1346
|
const {
|
|
2418
1347
|
href = getCurrentHref(),
|
|
2419
1348
|
display,
|
|
@@ -2464,7 +1393,7 @@ class Share extends Component {
|
|
|
2464
1393
|
|
|
2465
1394
|
}
|
|
2466
1395
|
|
|
2467
|
-
|
|
1396
|
+
_defineProperty(Share, "defaultProps", {
|
|
2468
1397
|
href: undefined,
|
|
2469
1398
|
hashtag: undefined,
|
|
2470
1399
|
quote: undefined,
|
|
@@ -2474,12 +1403,12 @@ defineProperty(Share, "defaultProps", {
|
|
|
2474
1403
|
redirectURI: undefined
|
|
2475
1404
|
});
|
|
2476
1405
|
|
|
2477
|
-
var Share$1 = forwardRef((props, ref) =>
|
|
1406
|
+
var Share$1 = forwardRef((props, ref) => React.createElement(Process, null, ({
|
|
2478
1407
|
loading,
|
|
2479
1408
|
handleProcess,
|
|
2480
1409
|
data,
|
|
2481
1410
|
error
|
|
2482
|
-
}) =>
|
|
1411
|
+
}) => React.createElement(Share, _extends({}, props, {
|
|
2483
1412
|
loading: loading,
|
|
2484
1413
|
handleProcess: handleProcess,
|
|
2485
1414
|
data: data,
|
|
@@ -2489,18 +1418,18 @@ var Share$1 = forwardRef((props, ref) => React__default.createElement(Process, n
|
|
|
2489
1418
|
|
|
2490
1419
|
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; }
|
|
2491
1420
|
|
|
2492
|
-
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) {
|
|
1421
|
+
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; }
|
|
2493
1422
|
function ShareButton(props) {
|
|
2494
1423
|
const {
|
|
2495
1424
|
className,
|
|
2496
1425
|
children
|
|
2497
1426
|
} = props,
|
|
2498
|
-
rest =
|
|
1427
|
+
rest = _objectWithoutProperties(props, ["className", "children"]);
|
|
2499
1428
|
|
|
2500
|
-
return
|
|
1429
|
+
return React.createElement(Share$1, rest, ({
|
|
2501
1430
|
loading,
|
|
2502
1431
|
handleClick
|
|
2503
|
-
}) =>
|
|
1432
|
+
}) => React.createElement("button", {
|
|
2504
1433
|
type: "button",
|
|
2505
1434
|
disabled: loading,
|
|
2506
1435
|
className: className,
|
|
@@ -2533,7 +1462,7 @@ class Page extends PureComponent {
|
|
|
2533
1462
|
adaptContainerWidth,
|
|
2534
1463
|
children
|
|
2535
1464
|
} = this.props;
|
|
2536
|
-
return
|
|
1465
|
+
return React.createElement("div", {
|
|
2537
1466
|
className: "fb-page",
|
|
2538
1467
|
style: style,
|
|
2539
1468
|
"data-tabs": tabs,
|
|
@@ -2550,7 +1479,7 @@ class Page extends PureComponent {
|
|
|
2550
1479
|
|
|
2551
1480
|
}
|
|
2552
1481
|
|
|
2553
|
-
|
|
1482
|
+
_defineProperty(Page, "defaultProps", {
|
|
2554
1483
|
width: undefined,
|
|
2555
1484
|
height: undefined,
|
|
2556
1485
|
tabs: undefined,
|
|
@@ -2564,9 +1493,9 @@ defineProperty(Page, "defaultProps", {
|
|
|
2564
1493
|
href: undefined
|
|
2565
1494
|
});
|
|
2566
1495
|
|
|
2567
|
-
var Page$1 = forwardRef((props, ref) =>
|
|
1496
|
+
var Page$1 = forwardRef((props, ref) => React.createElement(Parser, null, ({
|
|
2568
1497
|
handleParse
|
|
2569
|
-
}) =>
|
|
1498
|
+
}) => React.createElement(Page, _extends({}, props, {
|
|
2570
1499
|
handleParse: handleParse,
|
|
2571
1500
|
ref: ref
|
|
2572
1501
|
}))));
|
|
@@ -2576,7 +1505,7 @@ var Fields = ['id', 'first_name', 'last_name', 'middle_name', 'name', 'name_form
|
|
|
2576
1505
|
|
|
2577
1506
|
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; }
|
|
2578
1507
|
|
|
2579
|
-
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) {
|
|
1508
|
+
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; }
|
|
2580
1509
|
|
|
2581
1510
|
class Login extends Component {
|
|
2582
1511
|
constructor(...args) {
|
|
@@ -2585,10 +1514,10 @@ class Login extends Component {
|
|
|
2585
1514
|
super(...args);
|
|
2586
1515
|
_this = this;
|
|
2587
1516
|
|
|
2588
|
-
|
|
1517
|
+
_defineProperty(this, "handleClick",
|
|
2589
1518
|
/*#__PURE__*/
|
|
2590
1519
|
function () {
|
|
2591
|
-
var _ref =
|
|
1520
|
+
var _ref = _asyncToGenerator(function* (evn) {
|
|
2592
1521
|
evn.preventDefault();
|
|
2593
1522
|
const {
|
|
2594
1523
|
handleProcess,
|
|
@@ -2601,7 +1530,7 @@ class Login extends Component {
|
|
|
2601
1530
|
yield handleProcess(
|
|
2602
1531
|
/*#__PURE__*/
|
|
2603
1532
|
function () {
|
|
2604
|
-
var _ref2 =
|
|
1533
|
+
var _ref2 = _asyncToGenerator(function* (api) {
|
|
2605
1534
|
const {
|
|
2606
1535
|
scope,
|
|
2607
1536
|
fields,
|
|
@@ -2684,7 +1613,7 @@ class Login extends Component {
|
|
|
2684
1613
|
|
|
2685
1614
|
}
|
|
2686
1615
|
|
|
2687
|
-
|
|
1616
|
+
_defineProperty(Login, "defaultProps", {
|
|
2688
1617
|
scope: '',
|
|
2689
1618
|
fields: Fields,
|
|
2690
1619
|
returnScopes: false,
|
|
@@ -2695,12 +1624,12 @@ defineProperty(Login, "defaultProps", {
|
|
|
2695
1624
|
eventKey: undefined
|
|
2696
1625
|
});
|
|
2697
1626
|
|
|
2698
|
-
var Login$1 = forwardRef((props, ref) =>
|
|
1627
|
+
var Login$1 = forwardRef((props, ref) => React.createElement(Process, null, ({
|
|
2699
1628
|
loading,
|
|
2700
1629
|
handleProcess,
|
|
2701
1630
|
data,
|
|
2702
1631
|
error
|
|
2703
|
-
}) =>
|
|
1632
|
+
}) => React.createElement(Login, _extends({}, props, {
|
|
2704
1633
|
loading: loading,
|
|
2705
1634
|
handleProcess: handleProcess,
|
|
2706
1635
|
data: data,
|
|
@@ -3063,7 +1992,7 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
|
3063
1992
|
|
|
3064
1993
|
|
|
3065
1994
|
|
|
3066
|
-
var _react2 = _interopRequireDefault(
|
|
1995
|
+
var _react2 = _interopRequireDefault(React);
|
|
3067
1996
|
|
|
3068
1997
|
|
|
3069
1998
|
|
|
@@ -3130,7 +2059,7 @@ var Spinner = function (_Component) {
|
|
|
3130
2059
|
|
|
3131
2060
|
|
|
3132
2061
|
if (loaded) {
|
|
3133
|
-
return this.props.children ?
|
|
2062
|
+
return this.props.children ? React.Children.only(this.props.children) : null;
|
|
3134
2063
|
}
|
|
3135
2064
|
|
|
3136
2065
|
return _react2.default.createElement('div', { className: className, ref: 'loader' });
|
|
@@ -3138,7 +2067,7 @@ var Spinner = function (_Component) {
|
|
|
3138
2067
|
}]);
|
|
3139
2068
|
|
|
3140
2069
|
return Spinner;
|
|
3141
|
-
}(
|
|
2070
|
+
}(React.Component);
|
|
3142
2071
|
|
|
3143
2072
|
Spinner.propTypes = {
|
|
3144
2073
|
className: _propTypes2.default.string,
|
|
@@ -3158,7 +2087,7 @@ var Spinner = unwrapExports(dist);
|
|
|
3158
2087
|
|
|
3159
2088
|
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; }
|
|
3160
2089
|
|
|
3161
|
-
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) {
|
|
2090
|
+
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; }
|
|
3162
2091
|
function LoginButton(props) {
|
|
3163
2092
|
const {
|
|
3164
2093
|
children,
|
|
@@ -3166,17 +2095,17 @@ function LoginButton(props) {
|
|
|
3166
2095
|
spinner,
|
|
3167
2096
|
spinnerConfig
|
|
3168
2097
|
} = props,
|
|
3169
|
-
rest =
|
|
2098
|
+
rest = _objectWithoutProperties(props, ["children", "className", "spinner", "spinnerConfig"]);
|
|
3170
2099
|
|
|
3171
|
-
return
|
|
2100
|
+
return React.createElement(Login$1, rest, ({
|
|
3172
2101
|
loading,
|
|
3173
2102
|
handleClick
|
|
3174
|
-
}) =>
|
|
2103
|
+
}) => React.createElement("button", {
|
|
3175
2104
|
type: "button",
|
|
3176
2105
|
className: className,
|
|
3177
2106
|
onClick: handleClick,
|
|
3178
2107
|
disabled: loading
|
|
3179
|
-
}, children, spinner && loading &&
|
|
2108
|
+
}, children, spinner && loading && React.createElement(Spinner, {
|
|
3180
2109
|
config: spinnerConfig
|
|
3181
2110
|
})));
|
|
3182
2111
|
}
|
|
@@ -3201,7 +2130,7 @@ class EmbeddedPost extends PureComponent {
|
|
|
3201
2130
|
showText,
|
|
3202
2131
|
children
|
|
3203
2132
|
} = this.props;
|
|
3204
|
-
return
|
|
2133
|
+
return React.createElement("div", {
|
|
3205
2134
|
className: "fb-post",
|
|
3206
2135
|
"data-href": href,
|
|
3207
2136
|
"data-width": width,
|
|
@@ -3211,15 +2140,15 @@ class EmbeddedPost extends PureComponent {
|
|
|
3211
2140
|
|
|
3212
2141
|
}
|
|
3213
2142
|
|
|
3214
|
-
|
|
2143
|
+
_defineProperty(EmbeddedPost, "defaultProps", {
|
|
3215
2144
|
width: undefined,
|
|
3216
2145
|
showText: undefined,
|
|
3217
2146
|
children: undefined
|
|
3218
2147
|
});
|
|
3219
2148
|
|
|
3220
|
-
forwardRef((props, ref) =>
|
|
2149
|
+
forwardRef((props, ref) => React.createElement(Parser, null, ({
|
|
3221
2150
|
handleParse
|
|
3222
|
-
}) =>
|
|
2151
|
+
}) => React.createElement(EmbeddedPost, _extends({}, props, {
|
|
3223
2152
|
handleParse: handleParse,
|
|
3224
2153
|
ref: ref
|
|
3225
2154
|
}))));
|
|
@@ -3242,7 +2171,7 @@ class EmbeddedVideo extends PureComponent {
|
|
|
3242
2171
|
showCaptions,
|
|
3243
2172
|
children
|
|
3244
2173
|
} = this.props;
|
|
3245
|
-
return
|
|
2174
|
+
return React.createElement("div", {
|
|
3246
2175
|
className: "fb-video",
|
|
3247
2176
|
"data-href": href,
|
|
3248
2177
|
"data-width": width,
|
|
@@ -3255,7 +2184,7 @@ class EmbeddedVideo extends PureComponent {
|
|
|
3255
2184
|
|
|
3256
2185
|
}
|
|
3257
2186
|
|
|
3258
|
-
|
|
2187
|
+
_defineProperty(EmbeddedVideo, "defaultProps", {
|
|
3259
2188
|
width: undefined,
|
|
3260
2189
|
showText: undefined,
|
|
3261
2190
|
allowFullScreen: undefined,
|
|
@@ -3264,9 +2193,9 @@ defineProperty(EmbeddedVideo, "defaultProps", {
|
|
|
3264
2193
|
children: undefined
|
|
3265
2194
|
});
|
|
3266
2195
|
|
|
3267
|
-
forwardRef((props, ref) =>
|
|
2196
|
+
forwardRef((props, ref) => React.createElement(Parser, null, ({
|
|
3268
2197
|
handleParse
|
|
3269
|
-
}) =>
|
|
2198
|
+
}) => React.createElement(EmbeddedVideo, _extends({}, props, {
|
|
3270
2199
|
handleParse: handleParse,
|
|
3271
2200
|
ref: ref
|
|
3272
2201
|
}))));
|
|
@@ -3289,7 +2218,7 @@ class Comments extends PureComponent {
|
|
|
3289
2218
|
children,
|
|
3290
2219
|
mobile
|
|
3291
2220
|
} = this.props;
|
|
3292
|
-
return
|
|
2221
|
+
return React.createElement("div", {
|
|
3293
2222
|
className: "fb-comments",
|
|
3294
2223
|
"data-colorscheme": colorScheme,
|
|
3295
2224
|
"data-numposts": numPosts,
|
|
@@ -3303,7 +2232,7 @@ class Comments extends PureComponent {
|
|
|
3303
2232
|
|
|
3304
2233
|
}
|
|
3305
2234
|
|
|
3306
|
-
|
|
2235
|
+
_defineProperty(Comments, "defaultProps", {
|
|
3307
2236
|
href: undefined,
|
|
3308
2237
|
numPosts: undefined,
|
|
3309
2238
|
orderBy: undefined,
|
|
@@ -3313,9 +2242,9 @@ defineProperty(Comments, "defaultProps", {
|
|
|
3313
2242
|
mobile: undefined
|
|
3314
2243
|
});
|
|
3315
2244
|
|
|
3316
|
-
forwardRef((props, ref) =>
|
|
2245
|
+
forwardRef((props, ref) => React.createElement(Parser, null, ({
|
|
3317
2246
|
handleParse
|
|
3318
|
-
}) =>
|
|
2247
|
+
}) => React.createElement(Comments, _extends({}, props, {
|
|
3319
2248
|
handleParse: handleParse,
|
|
3320
2249
|
ref: ref
|
|
3321
2250
|
}))));
|
|
@@ -3333,7 +2262,7 @@ class CommentsCount extends PureComponent {
|
|
|
3333
2262
|
href = getCurrentHref(),
|
|
3334
2263
|
children
|
|
3335
2264
|
} = this.props;
|
|
3336
|
-
return
|
|
2265
|
+
return React.createElement("span", {
|
|
3337
2266
|
className: "fb-comments-count",
|
|
3338
2267
|
"data-href": href
|
|
3339
2268
|
}, children);
|
|
@@ -3341,14 +2270,14 @@ class CommentsCount extends PureComponent {
|
|
|
3341
2270
|
|
|
3342
2271
|
}
|
|
3343
2272
|
|
|
3344
|
-
|
|
2273
|
+
_defineProperty(CommentsCount, "defaultProps", {
|
|
3345
2274
|
href: undefined,
|
|
3346
2275
|
children: undefined
|
|
3347
2276
|
});
|
|
3348
2277
|
|
|
3349
|
-
forwardRef((props, ref) =>
|
|
2278
|
+
forwardRef((props, ref) => React.createElement(Parser, null, ({
|
|
3350
2279
|
handleParse
|
|
3351
|
-
}) =>
|
|
2280
|
+
}) => React.createElement(CommentsCount, _extends({}, props, {
|
|
3352
2281
|
handleParse: handleParse,
|
|
3353
2282
|
ref: ref
|
|
3354
2283
|
}))));
|
|
@@ -3360,10 +2289,10 @@ class Feed extends Component {
|
|
|
3360
2289
|
super(...args);
|
|
3361
2290
|
_this = this;
|
|
3362
2291
|
|
|
3363
|
-
|
|
2292
|
+
_defineProperty(this, "handleClick",
|
|
3364
2293
|
/*#__PURE__*/
|
|
3365
2294
|
function () {
|
|
3366
|
-
var _ref =
|
|
2295
|
+
var _ref = _asyncToGenerator(function* (evn) {
|
|
3367
2296
|
evn.preventDefault();
|
|
3368
2297
|
const {
|
|
3369
2298
|
handleProcess
|
|
@@ -3371,7 +2300,7 @@ class Feed extends Component {
|
|
|
3371
2300
|
return handleProcess(
|
|
3372
2301
|
/*#__PURE__*/
|
|
3373
2302
|
function () {
|
|
3374
|
-
var _ref2 =
|
|
2303
|
+
var _ref2 = _asyncToGenerator(function* (api) {
|
|
3375
2304
|
const {
|
|
3376
2305
|
link = getCurrentHref(),
|
|
3377
2306
|
display,
|
|
@@ -3432,7 +2361,7 @@ class Feed extends Component {
|
|
|
3432
2361
|
|
|
3433
2362
|
}
|
|
3434
2363
|
|
|
3435
|
-
|
|
2364
|
+
_defineProperty(Feed, "defaultProps", {
|
|
3436
2365
|
link: undefined,
|
|
3437
2366
|
display: undefined,
|
|
3438
2367
|
appId: undefined,
|
|
@@ -3447,12 +2376,12 @@ defineProperty(Feed, "defaultProps", {
|
|
|
3447
2376
|
dataRef: undefined
|
|
3448
2377
|
});
|
|
3449
2378
|
|
|
3450
|
-
forwardRef((props, ref) =>
|
|
2379
|
+
forwardRef((props, ref) => React.createElement(Process, null, ({
|
|
3451
2380
|
loading,
|
|
3452
2381
|
handleProcess,
|
|
3453
2382
|
error,
|
|
3454
2383
|
data
|
|
3455
|
-
}) =>
|
|
2384
|
+
}) => React.createElement(Feed, _extends({}, props, {
|
|
3456
2385
|
loading: loading,
|
|
3457
2386
|
handleProcess: handleProcess,
|
|
3458
2387
|
data: data,
|
|
@@ -3478,7 +2407,7 @@ class Group extends PureComponent {
|
|
|
3478
2407
|
children,
|
|
3479
2408
|
skin
|
|
3480
2409
|
} = this.props;
|
|
3481
|
-
return
|
|
2410
|
+
return React.createElement("div", {
|
|
3482
2411
|
className: "fb-group",
|
|
3483
2412
|
style: style,
|
|
3484
2413
|
"data-href": href,
|
|
@@ -3491,7 +2420,7 @@ class Group extends PureComponent {
|
|
|
3491
2420
|
|
|
3492
2421
|
}
|
|
3493
2422
|
|
|
3494
|
-
|
|
2423
|
+
_defineProperty(Group, "defaultProps", {
|
|
3495
2424
|
showSocialContext: undefined,
|
|
3496
2425
|
showMetaData: undefined,
|
|
3497
2426
|
width: undefined,
|
|
@@ -3501,9 +2430,9 @@ defineProperty(Group, "defaultProps", {
|
|
|
3501
2430
|
skin: undefined
|
|
3502
2431
|
});
|
|
3503
2432
|
|
|
3504
|
-
forwardRef((props, ref) =>
|
|
2433
|
+
forwardRef((props, ref) => React.createElement(Parser, null, ({
|
|
3505
2434
|
handleParse
|
|
3506
|
-
}) =>
|
|
2435
|
+
}) => React.createElement(Group, _extends({}, props, {
|
|
3507
2436
|
handleParse: handleParse,
|
|
3508
2437
|
ref: ref
|
|
3509
2438
|
}))));
|
|
@@ -3515,12 +2444,12 @@ class LoginStatus$1 extends Component {
|
|
|
3515
2444
|
super(..._args);
|
|
3516
2445
|
_this = this;
|
|
3517
2446
|
|
|
3518
|
-
|
|
2447
|
+
_defineProperty(this, "state", {});
|
|
3519
2448
|
|
|
3520
|
-
|
|
2449
|
+
_defineProperty(this, "handleReady",
|
|
3521
2450
|
/*#__PURE__*/
|
|
3522
2451
|
function () {
|
|
3523
|
-
var _ref =
|
|
2452
|
+
var _ref = _asyncToGenerator(function* (api) {
|
|
3524
2453
|
const {
|
|
3525
2454
|
event
|
|
3526
2455
|
} = _this.props;
|
|
@@ -3537,7 +2466,7 @@ class LoginStatus$1 extends Component {
|
|
|
3537
2466
|
};
|
|
3538
2467
|
}());
|
|
3539
2468
|
|
|
3540
|
-
|
|
2469
|
+
_defineProperty(this, "handleChange", (...args) => {
|
|
3541
2470
|
const {
|
|
3542
2471
|
onChange
|
|
3543
2472
|
} = this.props;
|
|
@@ -3567,14 +2496,14 @@ class LoginStatus$1 extends Component {
|
|
|
3567
2496
|
const {
|
|
3568
2497
|
children
|
|
3569
2498
|
} = this.props;
|
|
3570
|
-
return
|
|
2499
|
+
return React.createElement(Initialize$1, {
|
|
3571
2500
|
onReady: this.handleReady
|
|
3572
2501
|
}, children);
|
|
3573
2502
|
}
|
|
3574
2503
|
|
|
3575
2504
|
}
|
|
3576
2505
|
|
|
3577
|
-
|
|
2506
|
+
_defineProperty(LoginStatus$1, "defaultProps", {
|
|
3578
2507
|
onChange: undefined
|
|
3579
2508
|
});
|
|
3580
2509
|
|
|
@@ -3585,14 +2514,14 @@ class Profile extends Component {
|
|
|
3585
2514
|
super(...args);
|
|
3586
2515
|
_this = this;
|
|
3587
2516
|
|
|
3588
|
-
|
|
2517
|
+
_defineProperty(this, "state", {
|
|
3589
2518
|
loading: true
|
|
3590
2519
|
});
|
|
3591
2520
|
|
|
3592
|
-
|
|
2521
|
+
_defineProperty(this, "handleReady",
|
|
3593
2522
|
/*#__PURE__*/
|
|
3594
2523
|
function () {
|
|
3595
|
-
var _ref =
|
|
2524
|
+
var _ref = _asyncToGenerator(function* (api) {
|
|
3596
2525
|
_this.api = api;
|
|
3597
2526
|
|
|
3598
2527
|
_this.updateProfile();
|
|
@@ -3603,7 +2532,7 @@ class Profile extends Component {
|
|
|
3603
2532
|
};
|
|
3604
2533
|
}());
|
|
3605
2534
|
|
|
3606
|
-
|
|
2535
|
+
_defineProperty(this, "handleStatusChange", () => {
|
|
3607
2536
|
this.updateProfile();
|
|
3608
2537
|
});
|
|
3609
2538
|
}
|
|
@@ -3611,7 +2540,7 @@ class Profile extends Component {
|
|
|
3611
2540
|
updateProfile() {
|
|
3612
2541
|
var _this2 = this;
|
|
3613
2542
|
|
|
3614
|
-
return
|
|
2543
|
+
return _asyncToGenerator(function* () {
|
|
3615
2544
|
const {
|
|
3616
2545
|
api,
|
|
3617
2546
|
props: {
|
|
@@ -3664,9 +2593,9 @@ class Profile extends Component {
|
|
|
3664
2593
|
loading,
|
|
3665
2594
|
error
|
|
3666
2595
|
} = this.state;
|
|
3667
|
-
return
|
|
2596
|
+
return React.createElement(Initialize$1, {
|
|
3668
2597
|
onReady: this.handleReady
|
|
3669
|
-
},
|
|
2598
|
+
}, React.createElement(LoginStatus$1, {
|
|
3670
2599
|
event: "auth.statusChange",
|
|
3671
2600
|
onChange: this.handleStatusChange
|
|
3672
2601
|
}, children({
|
|
@@ -3678,7 +2607,7 @@ class Profile extends Component {
|
|
|
3678
2607
|
|
|
3679
2608
|
}
|
|
3680
2609
|
|
|
3681
|
-
|
|
2610
|
+
_defineProperty(Profile, "defaultProps", {
|
|
3682
2611
|
fields: Fields
|
|
3683
2612
|
});
|
|
3684
2613
|
|
|
@@ -3701,7 +2630,7 @@ class CustomChat extends PureComponent {
|
|
|
3701
2630
|
greetingDialogDisplay,
|
|
3702
2631
|
greetingDialogDelay
|
|
3703
2632
|
} = this.props;
|
|
3704
|
-
return
|
|
2633
|
+
return React.createElement("div", {
|
|
3705
2634
|
className: "fb-customerchat",
|
|
3706
2635
|
page_id: pageId,
|
|
3707
2636
|
theme_color: themeColor,
|
|
@@ -3715,7 +2644,7 @@ class CustomChat extends PureComponent {
|
|
|
3715
2644
|
|
|
3716
2645
|
}
|
|
3717
2646
|
|
|
3718
|
-
|
|
2647
|
+
_defineProperty(CustomChat, "defaultProps", {
|
|
3719
2648
|
children: undefined,
|
|
3720
2649
|
themeColor: undefined,
|
|
3721
2650
|
loggedInGreeting: undefined,
|
|
@@ -3725,9 +2654,9 @@ defineProperty(CustomChat, "defaultProps", {
|
|
|
3725
2654
|
greetingDialogDelay: undefined
|
|
3726
2655
|
});
|
|
3727
2656
|
|
|
3728
|
-
forwardRef((props, ref) =>
|
|
2657
|
+
forwardRef((props, ref) => React.createElement(Parser, null, ({
|
|
3729
2658
|
handleParse
|
|
3730
|
-
}) =>
|
|
2659
|
+
}) => React.createElement(CustomChat, _extends({}, props, {
|
|
3731
2660
|
handleParse: handleParse,
|
|
3732
2661
|
ref: ref
|
|
3733
2662
|
}))));
|
|
@@ -3748,7 +2677,7 @@ class MessageUs extends PureComponent {
|
|
|
3748
2677
|
children,
|
|
3749
2678
|
size
|
|
3750
2679
|
} = this.props;
|
|
3751
|
-
return
|
|
2680
|
+
return React.createElement("div", {
|
|
3752
2681
|
className: "fb-messengermessageus",
|
|
3753
2682
|
messenger_app_id: messengerAppId,
|
|
3754
2683
|
page_id: pageId,
|
|
@@ -3759,15 +2688,15 @@ class MessageUs extends PureComponent {
|
|
|
3759
2688
|
|
|
3760
2689
|
}
|
|
3761
2690
|
|
|
3762
|
-
|
|
2691
|
+
_defineProperty(MessageUs, "defaultProps", {
|
|
3763
2692
|
color: undefined,
|
|
3764
2693
|
size: undefined,
|
|
3765
2694
|
children: undefined
|
|
3766
2695
|
});
|
|
3767
2696
|
|
|
3768
|
-
forwardRef((props, ref) =>
|
|
2697
|
+
forwardRef((props, ref) => React.createElement(Parser, null, ({
|
|
3769
2698
|
handleParse
|
|
3770
|
-
}) =>
|
|
2699
|
+
}) => React.createElement(MessageUs, _extends({}, props, {
|
|
3771
2700
|
handleParse: handleParse,
|
|
3772
2701
|
ref: ref
|
|
3773
2702
|
}))));
|
|
@@ -3793,7 +2722,7 @@ class MessengerCheckbox extends PureComponent {
|
|
|
3793
2722
|
centerAlign,
|
|
3794
2723
|
skin
|
|
3795
2724
|
} = this.props;
|
|
3796
|
-
return
|
|
2725
|
+
return React.createElement("div", {
|
|
3797
2726
|
className: "fb-messenger-checkbox",
|
|
3798
2727
|
messenger_app_id: messengerAppId,
|
|
3799
2728
|
page_id: pageId,
|
|
@@ -3809,7 +2738,7 @@ class MessengerCheckbox extends PureComponent {
|
|
|
3809
2738
|
|
|
3810
2739
|
}
|
|
3811
2740
|
|
|
3812
|
-
|
|
2741
|
+
_defineProperty(MessengerCheckbox, "defaultProps", {
|
|
3813
2742
|
size: undefined,
|
|
3814
2743
|
allowLogin: undefined,
|
|
3815
2744
|
prechecked: undefined,
|
|
@@ -3820,9 +2749,9 @@ defineProperty(MessengerCheckbox, "defaultProps", {
|
|
|
3820
2749
|
centerAlign: undefined
|
|
3821
2750
|
});
|
|
3822
2751
|
|
|
3823
|
-
forwardRef((props, ref) =>
|
|
2752
|
+
forwardRef((props, ref) => React.createElement(Parser, null, ({
|
|
3824
2753
|
handleParse
|
|
3825
|
-
}) =>
|
|
2754
|
+
}) => React.createElement(MessengerCheckbox, _extends({}, props, {
|
|
3826
2755
|
handleParse: handleParse,
|
|
3827
2756
|
ref: ref
|
|
3828
2757
|
}))));
|
|
@@ -3846,7 +2775,7 @@ class SendToMessenger extends PureComponent {
|
|
|
3846
2775
|
dataRef,
|
|
3847
2776
|
size
|
|
3848
2777
|
} = this.props;
|
|
3849
|
-
return
|
|
2778
|
+
return React.createElement("div", {
|
|
3850
2779
|
className: "fb-send-to-messenger",
|
|
3851
2780
|
messenger_app_id: messengerAppId,
|
|
3852
2781
|
page_id: pageId,
|
|
@@ -3858,16 +2787,16 @@ class SendToMessenger extends PureComponent {
|
|
|
3858
2787
|
|
|
3859
2788
|
}
|
|
3860
2789
|
|
|
3861
|
-
|
|
2790
|
+
_defineProperty(SendToMessenger, "defaultProps", {
|
|
3862
2791
|
color: undefined,
|
|
3863
2792
|
size: undefined,
|
|
3864
2793
|
dataRef: undefined,
|
|
3865
2794
|
children: undefined
|
|
3866
2795
|
});
|
|
3867
2796
|
|
|
3868
|
-
forwardRef((props, ref) =>
|
|
2797
|
+
forwardRef((props, ref) => React.createElement(Parser, null, ({
|
|
3869
2798
|
handleParse
|
|
3870
|
-
}) =>
|
|
2799
|
+
}) => React.createElement(SendToMessenger, _extends({}, props, {
|
|
3871
2800
|
handleParse: handleParse,
|
|
3872
2801
|
ref: ref
|
|
3873
2802
|
}))));
|
|
@@ -3979,61 +2908,61 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
3979
2908
|
}, []);
|
|
3980
2909
|
|
|
3981
2910
|
var variant = 'black';
|
|
3982
|
-
return
|
|
3983
|
-
|
|
2911
|
+
return React.createElement(
|
|
2912
|
+
React.Fragment,
|
|
3984
2913
|
null,
|
|
3985
|
-
|
|
2914
|
+
React.createElement(
|
|
3986
2915
|
'div',
|
|
3987
2916
|
{ ref: viewableWindow, id: 'vid-slider', className: 'col' },
|
|
3988
|
-
|
|
2917
|
+
React.createElement(
|
|
3989
2918
|
'div',
|
|
3990
2919
|
{ className: 'row' },
|
|
3991
|
-
showScroller &&
|
|
2920
|
+
showScroller && React.createElement(
|
|
3992
2921
|
'div',
|
|
3993
2922
|
{ onClick: function onClick(e) {
|
|
3994
2923
|
return scrollSlider(e, 'prev');
|
|
3995
2924
|
}, className: 'tile__slider-prev', style: { color: variant } },
|
|
3996
|
-
|
|
2925
|
+
React.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow left' })
|
|
3997
2926
|
),
|
|
3998
|
-
showScroller &&
|
|
2927
|
+
showScroller && React.createElement(
|
|
3999
2928
|
'div',
|
|
4000
2929
|
{ onClick: function onClick(e) {
|
|
4001
2930
|
return scrollSlider(e, 'next');
|
|
4002
2931
|
}, className: 'tile__slider-next', style: { color: variant } },
|
|
4003
|
-
|
|
2932
|
+
React.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow right' })
|
|
4004
2933
|
),
|
|
4005
|
-
|
|
2934
|
+
React.createElement(
|
|
4006
2935
|
'div',
|
|
4007
2936
|
{ ref: innerSlider, className: 'row__inner' },
|
|
4008
2937
|
props.data.slides.map(function (img, index) {
|
|
4009
2938
|
var thumbnail = urlFor({ client: client, source: img.slideshowImage, imageWidth: 250 });
|
|
4010
2939
|
if (!img.slideshowImage.link) {
|
|
4011
|
-
return
|
|
2940
|
+
return React.createElement(
|
|
4012
2941
|
'div',
|
|
4013
2942
|
{ ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
|
|
4014
|
-
|
|
2943
|
+
React.createElement(
|
|
4015
2944
|
'div',
|
|
4016
2945
|
{ className: 'tile__media' },
|
|
4017
|
-
|
|
2946
|
+
React.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
4018
2947
|
),
|
|
4019
|
-
|
|
2948
|
+
React.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
4020
2949
|
);
|
|
4021
2950
|
} else {
|
|
4022
|
-
return
|
|
2951
|
+
return React.createElement(
|
|
4023
2952
|
'a',
|
|
4024
2953
|
{ ref: tile, key: index, href: img.slideshowImage.link, target: img.slideshowImage.blank ? '_target' : '_self', className: 'tile', style: { width: tileSize + 'px' } },
|
|
4025
|
-
|
|
2954
|
+
React.createElement(
|
|
4026
2955
|
'div',
|
|
4027
2956
|
{ className: 'tile__media' },
|
|
4028
|
-
|
|
2957
|
+
React.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
4029
2958
|
),
|
|
4030
|
-
|
|
2959
|
+
React.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
4031
2960
|
);
|
|
4032
2961
|
}
|
|
4033
2962
|
})
|
|
4034
2963
|
)
|
|
4035
2964
|
),
|
|
4036
|
-
|
|
2965
|
+
React.createElement(
|
|
4037
2966
|
'style',
|
|
4038
2967
|
{ jsx: 'true' },
|
|
4039
2968
|
'\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 '
|
|
@@ -4056,112 +2985,112 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
4056
2985
|
pageview = _ref.pageview,
|
|
4057
2986
|
page = _ref.page;
|
|
4058
2987
|
|
|
4059
|
-
return
|
|
4060
|
-
|
|
2988
|
+
return React.createElement(
|
|
2989
|
+
React.Fragment,
|
|
4061
2990
|
null,
|
|
4062
|
-
|
|
4063
|
-
|
|
2991
|
+
React.createElement(Breadcrumbs, null),
|
|
2992
|
+
React.createElement(
|
|
4064
2993
|
'div',
|
|
4065
2994
|
{ className: 'partners-page' },
|
|
4066
|
-
|
|
2995
|
+
React.createElement(
|
|
4067
2996
|
'div',
|
|
4068
2997
|
{ className: 'my-5 partner-logo-wrap', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' } },
|
|
4069
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.link ?
|
|
2998
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.link ? React.createElement(
|
|
4070
2999
|
'a',
|
|
4071
3000
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%' }, href: partnerDetails.thumbnail.link, target: partnerDetails.thumbnail.blank ? '_blank' : '' },
|
|
4072
|
-
|
|
3001
|
+
React.createElement(
|
|
4073
3002
|
'figure',
|
|
4074
3003
|
{ style: { width: '100%', textAlign: 'center' } },
|
|
4075
|
-
|
|
3004
|
+
React.createElement('img', {
|
|
4076
3005
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
4077
3006
|
style: { maxWidth: '100%' },
|
|
4078
3007
|
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : '' }),
|
|
4079
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption &&
|
|
3008
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React.createElement(
|
|
4080
3009
|
'figcaption',
|
|
4081
3010
|
null,
|
|
4082
3011
|
partnerDetails.thumbnail.caption
|
|
4083
3012
|
)
|
|
4084
3013
|
)
|
|
4085
|
-
) :
|
|
3014
|
+
) : React.createElement(
|
|
4086
3015
|
'figure',
|
|
4087
3016
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%', textAlign: 'center' } },
|
|
4088
|
-
|
|
3017
|
+
React.createElement('img', {
|
|
4089
3018
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
4090
3019
|
style: { maxWidth: '100%' },
|
|
4091
3020
|
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : '' }),
|
|
4092
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption &&
|
|
3021
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React.createElement(
|
|
4093
3022
|
'figcaption',
|
|
4094
3023
|
null,
|
|
4095
3024
|
partnerDetails.thumbnail.caption
|
|
4096
3025
|
)
|
|
4097
3026
|
),
|
|
4098
|
-
|
|
3027
|
+
React.createElement(
|
|
4099
3028
|
'style',
|
|
4100
3029
|
{ jsx: 'true' },
|
|
4101
3030
|
'\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 '
|
|
4102
3031
|
),
|
|
4103
|
-
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook) &&
|
|
3032
|
+
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook) && React.createElement(
|
|
4104
3033
|
'div',
|
|
4105
3034
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
4106
|
-
partnerDetails.description &&
|
|
4107
|
-
(partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook) &&
|
|
3035
|
+
partnerDetails.description && React.createElement(BlockContent, _extends$1({ serializers: getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
3036
|
+
(partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook) && React.createElement(
|
|
4108
3037
|
'div',
|
|
4109
3038
|
null,
|
|
4110
|
-
|
|
3039
|
+
React.createElement(
|
|
4111
3040
|
'p',
|
|
4112
3041
|
{ 'class': 'd-inline-block font-weight-bold' },
|
|
4113
3042
|
'Connect with us:'
|
|
4114
3043
|
),
|
|
4115
3044
|
' ',
|
|
4116
|
-
partnerDetails.linkedin &&
|
|
3045
|
+
partnerDetails.linkedin && React.createElement(reactSocialIcons_1, {
|
|
4117
3046
|
url: '' + partnerDetails.linkedin + (partnerDetails.linkedin.slice(-1) === '/' ? '' : '/') + 'posts/?feedView=all',
|
|
4118
3047
|
target: '_blank',
|
|
4119
3048
|
rel: 'noopener noreferrer',
|
|
4120
3049
|
style: { height: 30, width: 30 }
|
|
4121
3050
|
}),
|
|
4122
|
-
partnerDetails.twitter && partnerDetails.facebook &&
|
|
3051
|
+
partnerDetails.twitter && partnerDetails.facebook && React.createElement(reactSocialIcons_1, { url: partnerDetails.facebook, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } })
|
|
4123
3052
|
)
|
|
4124
3053
|
)
|
|
4125
3054
|
),
|
|
4126
|
-
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides &&
|
|
3055
|
+
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React.createElement(
|
|
4127
3056
|
'div',
|
|
4128
3057
|
{ className: 'mb-4', style: { padding: '0 15px' } },
|
|
4129
|
-
partnerDetails.affiliates[0].title &&
|
|
3058
|
+
partnerDetails.affiliates[0].title && React.createElement(
|
|
4130
3059
|
'h2',
|
|
4131
3060
|
{ className: 'bb-gold' },
|
|
4132
3061
|
partnerDetails.affiliates[0].title
|
|
4133
3062
|
),
|
|
4134
|
-
|
|
3063
|
+
React.createElement(ImageSlider, { client: client, data: partnerDetails.affiliates[0] })
|
|
4135
3064
|
),
|
|
4136
|
-
features.length > 0 &&
|
|
3065
|
+
features.length > 0 && React.createElement(
|
|
4137
3066
|
'div',
|
|
4138
3067
|
{ className: ' mb-5' },
|
|
4139
|
-
|
|
3068
|
+
React.createElement(Feature, { dataset: features, client: client })
|
|
4140
3069
|
),
|
|
4141
|
-
(partnerDetails.twitter || partnerDetails.facebook) &&
|
|
3070
|
+
(partnerDetails.twitter || partnerDetails.facebook) && React.createElement(
|
|
4142
3071
|
'div',
|
|
4143
3072
|
{ className: 'mb-5', style: { width: '100%', maxWidth: '100%', textAlign: 'center', padding: '15px', border: '2px solid #aaa', borderRadius: '15px' } },
|
|
4144
|
-
partnerDetails.twitter ?
|
|
3073
|
+
partnerDetails.twitter ? React.createElement(TwitterTimelineEmbed, { sourceType: 'url', url: partnerDetails.twitter, options: { height: 400 } }) : partnerDetails.facebook && React.createElement(
|
|
4145
3074
|
Facebook$1,
|
|
4146
3075
|
{ appId: ' ' },
|
|
4147
|
-
|
|
3076
|
+
React.createElement(Page$1, { href: partnerDetails.facebook, tabs: 'timeline', width: '500', height: '500' })
|
|
4148
3077
|
)
|
|
4149
3078
|
),
|
|
4150
|
-
|
|
3079
|
+
React.createElement(
|
|
4151
3080
|
'div',
|
|
4152
3081
|
null,
|
|
4153
|
-
posts && posts.length > 0 &&
|
|
4154
|
-
|
|
3082
|
+
posts && posts.length > 0 && React.createElement(
|
|
3083
|
+
React.Fragment,
|
|
4155
3084
|
null,
|
|
4156
|
-
|
|
3085
|
+
React.createElement(
|
|
4157
3086
|
'h2',
|
|
4158
3087
|
{ className: 'bb-gold mb-2' },
|
|
4159
3088
|
'Latest from ',
|
|
4160
3089
|
partnerDetails.name
|
|
4161
3090
|
),
|
|
4162
|
-
|
|
3091
|
+
React.createElement('hr', null)
|
|
4163
3092
|
),
|
|
4164
|
-
|
|
3093
|
+
React.createElement(QueueDeckExpanded, {
|
|
4165
3094
|
client: client,
|
|
4166
3095
|
mapping: Settings.mapping,
|
|
4167
3096
|
dataRecord: posts,
|