@mjhls/mjh-framework 1.0.708 → 1.0.709-ad-refresh-v1
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 +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +24 -25
- package/dist/cjs/AD300x250x600.js +24 -25
- package/dist/cjs/AD728x90.js +27 -28
- package/dist/cjs/ADFloatingFooter.js +26 -27
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +26 -27
- package/dist/cjs/{ADInfeed-54ab0509.js → ADInfeed-766b8949.js} +11 -13
- package/dist/cjs/ADSkyscraper.js +26 -27
- package/dist/cjs/ADSponsoredResources.js +26 -27
- package/dist/cjs/ADWebcast.js +26 -27
- package/dist/cjs/ADWelcome.js +30 -31
- package/dist/cjs/{ADlgInfeed-a1255904.js → ADlgInfeed-59dae10c.js} +8 -9
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +13 -11
- package/dist/cjs/AlphabeticList.js +24 -25
- package/dist/cjs/ArticleCarousel.js +22 -22
- package/dist/cjs/ArticleSeriesListing.js +59 -59
- package/dist/cjs/Auth.js +330 -816
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-80b15fac.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/BrowseVideosListing.js +40 -40
- package/dist/cjs/CMEDeck.js +78 -78
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +32 -35
- package/dist/cjs/Column3.js +55 -58
- package/dist/cjs/ConferenceArticleCard.js +22 -23
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +94 -98
- package/dist/cjs/DeckQueue.js +86 -90
- package/dist/cjs/{Dfp-a863cf48.js → Dfp-390337bf.js} +30 -31
- package/dist/cjs/EventsDeck.js +129 -136
- package/dist/cjs/ExternalResources.js +74 -75
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +177 -181
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +49 -50
- package/dist/cjs/HamMagazine.js +130 -135
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +40 -41
- package/dist/cjs/LeftNav.js +36 -38
- package/dist/cjs/MasterDeck.js +71 -72
- package/dist/cjs/NavDvm.js +75 -80
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +138 -143
- package/dist/cjs/NavNative.js +115 -123
- package/dist/cjs/NavNormal.js +48 -53
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +1302 -106
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +74 -78
- package/dist/cjs/QueueDeckExpanded.js +292 -292
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +24 -25
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +35 -36
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-294bd0ea.js → SocialSearchComponent-8dd468fd.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +57 -62
- package/dist/cjs/TaxonomyDescription.js +50 -51
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +26 -27
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesListing.js +73 -73
- package/dist/cjs/View.js +219 -222
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +140 -148
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_set-species-a8cfdb84.js → _set-species-f92c67c5.js} +4 -4
- package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
- package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-533d476a.js} +8 -8
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
- package/dist/cjs/{extends-1e24fc8d.js → extends-60837c34.js} +1 -1
- package/dist/cjs/getRelatedArticle.js +76 -138
- package/dist/cjs/getSerializers.js +41 -41
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-fee8c429.js} +2 -2
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-5ad2b070.js → index-099d45ae.js} +17 -16
- package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
- package/dist/cjs/{index-d48b231c.js → index-39beccb3.js} +24 -29
- package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
- package/dist/cjs/{index-4d37a34d.js → index-fb139660.js} +429 -440
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +127 -128
- package/dist/cjs/{inherits-2eb23889.js → inherits-513d81cd.js} +8 -8
- package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-7fd85bcf.js} +1 -1
- package/dist/cjs/{main-eeffe77b.js → main-02daeefe.js} +80 -115
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{smoothscroll-1abb448e.js → smoothscroll-95231a70.js} +1 -1
- package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{typeof-97065d40.js → typeof-725500bc.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +21 -21
- package/dist/esm/AD300x250x600.js +21 -21
- package/dist/esm/AD728x90.js +24 -24
- package/dist/esm/ADFloatingFooter.js +23 -23
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +23 -23
- package/dist/esm/{ADInfeed-18cb6a8b.js → ADInfeed-07b705de.js} +7 -7
- package/dist/esm/ADSkyscraper.js +23 -23
- package/dist/esm/ADSponsoredResources.js +23 -23
- package/dist/esm/ADWebcast.js +23 -23
- package/dist/esm/ADWelcome.js +27 -27
- package/dist/esm/{ADlgInfeed-51d02f5d.js → ADlgInfeed-a02c8625.js} +6 -6
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +10 -7
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +19 -18
- package/dist/esm/ArticleSeriesListing.js +54 -53
- package/dist/esm/Auth.js +315 -797
- package/dist/esm/{AuthorComponent-c29a0075.js → AuthorComponent-00f13201.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-c409aca5.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/BrowseVideosListing.js +37 -36
- package/dist/esm/CMEDeck.js +74 -74
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +48 -48
- package/dist/esm/ConferenceArticleCard.js +18 -18
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +76 -76
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-db06d7dc.js → Dfp-741c01be.js} +20 -20
- package/dist/esm/EventsDeck.js +82 -82
- package/dist/esm/ExternalResources.js +68 -68
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +139 -139
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +37 -37
- package/dist/esm/LeftNav.js +32 -32
- package/dist/esm/MasterDeck.js +65 -65
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +114 -114
- package/dist/esm/NavNative.js +91 -91
- package/dist/esm/NavNormal.js +36 -36
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +1299 -103
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +50 -50
- package/dist/esm/QueueDeckExpanded.js +272 -272
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +31 -31
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-c4a19bac.js → SocialSearchComponent-8ac29f4f.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +45 -45
- package/dist/esm/TemplateNormal.js +66 -66
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesListing.js +67 -66
- package/dist/esm/View.js +210 -209
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +128 -135
- package/dist/esm/{_is-array-9383b394.js → _is-array-49698029.js} +6 -6
- package/dist/esm/{_iter-detect-d4d262ee.js → _iter-detect-59409a32.js} +2 -2
- package/dist/esm/{_object-sap-6a003379.js → _object-sap-4d59d5bd.js} +1 -1
- package/dist/esm/{_set-species-0b056cff.js → _set-species-cede29f8.js} +4 -4
- package/dist/esm/{_to-object-9bef3b62.js → _to-object-ded78eb9.js} +5 -5
- package/dist/esm/{asyncToGenerator-acd1cc47.js → asyncToGenerator-7c654f36.js} +8 -8
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-1b116089.js → core.get-iterator-method-54d2e411.js} +2 -2
- package/dist/esm/{define-property-9a008401.js → define-property-de3fc946.js} +1 -1
- package/dist/esm/{defineProperty-ddd52c29.js → defineProperty-b798470d.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-b24a54f2.js → es6.string.iterator-9b2af4a5.js} +3 -3
- package/dist/esm/{extends-c2b1c9d7.js → extends-cc5da797.js} +1 -1
- package/dist/esm/getRelatedArticle.js +71 -133
- package/dist/esm/getSerializers.js +41 -41
- package/dist/esm/{getTargeting-b1a7be54.js → getTargeting-2acdec91.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-b2d06f45.js → index-0bb373e2.js} +380 -384
- package/dist/esm/{index-3f5c03b2.js → index-3849e3fe.js} +24 -29
- package/dist/esm/{index-669ff425.js → index-3f4dd6f2.js} +12 -10
- package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
- package/dist/esm/{index-ccb770c7.js → index-ef6d5dcf.js} +41 -40
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +105 -106
- package/dist/esm/{inherits-18d4a779.js → inherits-7ee3e0c1.js} +5 -5
- package/dist/esm/{keys-9bb7939c.js → keys-fc2d4c34.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-ec8c6b48.js} +1 -1
- package/dist/esm/{main-ad1ecb54.js → main-e4a934b2.js} +78 -113
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-34468155.js → slicedToArray-7021e5df.js} +4 -4
- package/dist/esm/{smoothscroll-ab6e0238.js → smoothscroll-4b699764.js} +1 -1
- package/dist/esm/{stringify-8a4f19f7.js → stringify-008c8802.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-5212fee7.js → toConsumableArray-725434a0.js} +4 -4
- package/dist/esm/{typeof-64422756.js → typeof-08f2c380.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/dist/esm/{web.dom.iterable-ca37144a.js → web.dom.iterable-8956f9a5.js} +3 -3
- package/package.json +3 -3
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -1,74 +1,1270 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var index = require('./index-d48b231c.js');
|
|
9
|
-
var smoothscroll = require('./smoothscroll-1abb448e.js');
|
|
10
|
-
var moment = require('./moment-aca40de1.js');
|
|
11
|
-
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
12
|
-
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
13
|
-
var Feature = require('./Feature.js');
|
|
14
|
-
var urlFor = require('./urlFor.js');
|
|
15
|
-
var getSerializers = require('./index-4d37a34d.js');
|
|
16
|
-
var BlockContent = require('./BlockContent-eca358e4.js');
|
|
17
|
-
require('./_commonjsHelpers-06173234.js');
|
|
18
|
-
require('./es6.string.iterator-20d42c53.js');
|
|
19
|
-
require('./_to-object-821a2927.js');
|
|
20
|
-
require('./web.dom.iterable-4480325a.js');
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
5
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
|
+
require('./_to-object-329a650b.js');
|
|
7
|
+
require('./es6.string.iterator-cc0bbaa4.js');
|
|
21
8
|
require('./_library-dd23b178.js');
|
|
22
|
-
require('./
|
|
23
|
-
require('./
|
|
24
|
-
require('./
|
|
9
|
+
require('./_iter-detect-60b2f026.js');
|
|
10
|
+
require('./toConsumableArray-9a3476fe.js');
|
|
11
|
+
require('./core.get-iterator-method-f62321d4.js');
|
|
25
12
|
require('./_object-pie-68c5bcbc.js');
|
|
26
|
-
require('./
|
|
27
|
-
require('
|
|
28
|
-
require('./
|
|
29
|
-
require('./
|
|
30
|
-
require('
|
|
31
|
-
require('./
|
|
32
|
-
require('
|
|
33
|
-
require('
|
|
34
|
-
|
|
35
|
-
require('./
|
|
36
|
-
require('
|
|
37
|
-
|
|
38
|
-
require('
|
|
13
|
+
var _extends = require('./extends-60837c34.js');
|
|
14
|
+
require('./_object-sap-5e74ba08.js');
|
|
15
|
+
require('./inherits-513d81cd.js');
|
|
16
|
+
require('./define-property-f4d12f4e.js');
|
|
17
|
+
require('./web.dom.iterable-a0e279c1.js');
|
|
18
|
+
require('./typeof-725500bc.js');
|
|
19
|
+
require('./_is-array-754e012d.js');
|
|
20
|
+
var React = require('react');
|
|
21
|
+
var React__default = _interopDefault(React);
|
|
22
|
+
require('./index-099d45ae.js');
|
|
23
|
+
var PropTypes = require('prop-types');
|
|
24
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
25
|
+
require('react-bootstrap/Row');
|
|
26
|
+
require('react-bootstrap/Col');
|
|
39
27
|
require('react-bootstrap/Card');
|
|
40
|
-
require('./
|
|
41
|
-
require('
|
|
28
|
+
var moment = require('./moment-575fe24c.js');
|
|
29
|
+
require('next/router');
|
|
42
30
|
require('./isSymbol-04666465.js');
|
|
43
|
-
require('./
|
|
31
|
+
require('./debounce-eb287781.js');
|
|
32
|
+
require('./index.es-9110add6.js');
|
|
33
|
+
require('react-dom');
|
|
34
|
+
require('./visibility-sensor-0c45a583.js');
|
|
35
|
+
var index$1 = require('./index-39beccb3.js');
|
|
36
|
+
require('./index-da796b8c.js');
|
|
37
|
+
require('./main-02daeefe.js');
|
|
38
|
+
require('./entities-310b46ee.js');
|
|
39
|
+
require('./stringify-7c5aff47.js');
|
|
40
|
+
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
41
|
+
var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
|
|
42
|
+
require('./_set-species-f92c67c5.js');
|
|
44
43
|
require('./Segment.js');
|
|
45
|
-
require('./
|
|
46
|
-
require('./
|
|
47
|
-
require('./
|
|
44
|
+
require('./Beam.js');
|
|
45
|
+
require('./AdSlot.js');
|
|
46
|
+
require('./ADInfeed-766b8949.js');
|
|
47
|
+
require('./lodash-7fd85bcf.js');
|
|
48
|
+
require('./ADlgInfeed-59dae10c.js');
|
|
48
49
|
require('./getContentCategory-f38a4c00.js');
|
|
49
|
-
require('./
|
|
50
|
-
require('
|
|
51
|
-
require('
|
|
52
|
-
require('./util-6f784d85.js');
|
|
53
|
-
require('./typeof-97065d40.js');
|
|
54
|
-
require('./_is-array-63ae4740.js');
|
|
55
|
-
require('./brightcove-react-player-loader.es-a195642e.js');
|
|
50
|
+
require('./AuthorComponent-bb831b74.js');
|
|
51
|
+
var BlockContent = require('./BlockContent-80b15fac.js');
|
|
52
|
+
var smoothscroll = require('./smoothscroll-95231a70.js');
|
|
56
53
|
require('./GroupDeck.js');
|
|
57
|
-
require('react-bootstrap
|
|
54
|
+
require('react-bootstrap');
|
|
55
|
+
require('./timeDifferenceCalc.js');
|
|
56
|
+
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
57
|
+
require('./iconBase-68959171.js');
|
|
58
|
+
require('./index.esm-90433435.js');
|
|
58
59
|
require('react-bootstrap/Button');
|
|
59
|
-
require('
|
|
60
|
-
require('
|
|
60
|
+
var getSerializers = require('./index-fb139660.js');
|
|
61
|
+
require('./util-f2c1b65b.js');
|
|
62
|
+
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
63
|
+
require('react-bootstrap/Pagination');
|
|
61
64
|
require('next/head');
|
|
62
|
-
require('./inherits-2eb23889.js');
|
|
63
|
-
require('./_object-sap-c5bd707d.js');
|
|
64
|
-
require('./define-property-aff11f8a.js');
|
|
65
|
-
require('./index.esm-974f47d9.js');
|
|
66
|
-
require('./iconBase-68959171.js');
|
|
67
65
|
require('react-bootstrap/Figure');
|
|
66
|
+
require('react-bootstrap/Carousel');
|
|
67
|
+
var Feature = require('./Feature.js');
|
|
68
|
+
require('react-bootstrap/Breadcrumb');
|
|
69
|
+
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
70
|
+
var urlFor = require('./urlFor.js');
|
|
71
|
+
|
|
72
|
+
function _classCallCheck(instance, Constructor) {
|
|
73
|
+
if (!(instance instanceof Constructor)) {
|
|
74
|
+
throw new TypeError("Cannot call a class as a function");
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function _defineProperties(target, props) {
|
|
79
|
+
for (var i = 0; i < props.length; i++) {
|
|
80
|
+
var descriptor = props[i];
|
|
81
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
82
|
+
descriptor.configurable = true;
|
|
83
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
84
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
89
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
90
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
91
|
+
return Constructor;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function _typeof(obj) {
|
|
95
|
+
"@babel/helpers - typeof";
|
|
96
|
+
|
|
97
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
98
|
+
_typeof = function _typeof(obj) {
|
|
99
|
+
return typeof obj;
|
|
100
|
+
};
|
|
101
|
+
} else {
|
|
102
|
+
_typeof = function _typeof(obj) {
|
|
103
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return _typeof(obj);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function _assertThisInitialized(self) {
|
|
111
|
+
if (self === void 0) {
|
|
112
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return self;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function _possibleConstructorReturn(self, call) {
|
|
119
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
120
|
+
return call;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return _assertThisInitialized(self);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function _getPrototypeOf(o) {
|
|
127
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
128
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
129
|
+
};
|
|
130
|
+
return _getPrototypeOf(o);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function _setPrototypeOf(o, p) {
|
|
134
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
135
|
+
o.__proto__ = p;
|
|
136
|
+
return o;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
return _setPrototypeOf(o, p);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function _inherits(subClass, superClass) {
|
|
143
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
144
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
148
|
+
constructor: {
|
|
149
|
+
value: subClass,
|
|
150
|
+
writable: true,
|
|
151
|
+
configurable: true
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function _defineProperty(obj, key, value) {
|
|
158
|
+
if (key in obj) {
|
|
159
|
+
Object.defineProperty(obj, key, {
|
|
160
|
+
value: value,
|
|
161
|
+
enumerable: true,
|
|
162
|
+
configurable: true,
|
|
163
|
+
writable: true
|
|
164
|
+
});
|
|
165
|
+
} else {
|
|
166
|
+
obj[key] = value;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return obj;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
var isRequiredIf_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
173
|
+
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.
|
|
174
|
+
}};exports.default=isRequiredIf;
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
var isRequiredIf = _commonjsHelpers.unwrapExports(isRequiredIf_1);
|
|
180
|
+
|
|
181
|
+
var exenv = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
182
|
+
/*!
|
|
183
|
+
Copyright (c) 2015 Jed Watson.
|
|
184
|
+
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
185
|
+
All rights reserved.
|
|
186
|
+
*/
|
|
187
|
+
/* global define */
|
|
188
|
+
|
|
189
|
+
(function () {
|
|
190
|
+
|
|
191
|
+
var canUseDOM = !!(
|
|
192
|
+
typeof window !== 'undefined' &&
|
|
193
|
+
window.document &&
|
|
194
|
+
window.document.createElement
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
var ExecutionEnvironment = {
|
|
198
|
+
|
|
199
|
+
canUseDOM: canUseDOM,
|
|
200
|
+
|
|
201
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
|
202
|
+
|
|
203
|
+
canUseEventListeners:
|
|
204
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
205
|
+
|
|
206
|
+
canUseViewport: canUseDOM && !!window.screen
|
|
207
|
+
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
if ( module.exports) {
|
|
211
|
+
module.exports = ExecutionEnvironment;
|
|
212
|
+
} else {
|
|
213
|
+
window.ExecutionEnvironment = ExecutionEnvironment;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
}());
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
var twitterWidgetJs = 'https://platform.twitter.com/widgets.js';
|
|
220
|
+
|
|
221
|
+
var TwitterTimelineEmbed =
|
|
222
|
+
/*#__PURE__*/
|
|
223
|
+
function (_Component) {
|
|
224
|
+
_inherits(TwitterTimelineEmbed, _Component);
|
|
225
|
+
|
|
226
|
+
function TwitterTimelineEmbed(props) {
|
|
227
|
+
var _this;
|
|
228
|
+
|
|
229
|
+
_classCallCheck(this, TwitterTimelineEmbed);
|
|
230
|
+
|
|
231
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTimelineEmbed).call(this, props));
|
|
232
|
+
_this.state = {
|
|
233
|
+
isLoading: true
|
|
234
|
+
};
|
|
235
|
+
return _this;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
_createClass(TwitterTimelineEmbed, [{
|
|
239
|
+
key: "buildChromeOptions",
|
|
240
|
+
value: function buildChromeOptions(options) {
|
|
241
|
+
options.chrome = '';
|
|
242
|
+
|
|
243
|
+
if (this.props.noHeader) {
|
|
244
|
+
options.chrome = options.chrome + ' noheader';
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
if (this.props.noFooter) {
|
|
248
|
+
options.chrome = options.chrome + ' nofooter';
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
if (this.props.noBorders) {
|
|
252
|
+
options.chrome = options.chrome + ' noborders';
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
if (this.props.noScrollbar) {
|
|
256
|
+
options.chrome = options.chrome + ' noscrollbar';
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
if (this.props.transparent) {
|
|
260
|
+
options.chrome = options.chrome + ' transparent';
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
return options;
|
|
264
|
+
}
|
|
265
|
+
}, {
|
|
266
|
+
key: "buildOptions",
|
|
267
|
+
value: function buildOptions() {
|
|
268
|
+
var options = Object.assign({}, this.props.options);
|
|
269
|
+
|
|
270
|
+
if (this.props.autoHeight) {
|
|
271
|
+
options.height = this.refs.embedContainer.parentNode.offsetHeight;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
options = Object.assign({}, options, {
|
|
275
|
+
theme: this.props.theme,
|
|
276
|
+
linkColor: this.props.linkColor,
|
|
277
|
+
borderColor: this.props.borderColor,
|
|
278
|
+
lang: this.props.lang
|
|
279
|
+
});
|
|
280
|
+
return options;
|
|
281
|
+
}
|
|
282
|
+
}, {
|
|
283
|
+
key: "renderWidget",
|
|
284
|
+
value: function renderWidget(options) {
|
|
285
|
+
var _this2 = this;
|
|
286
|
+
|
|
287
|
+
var onLoad = this.props.onLoad;
|
|
288
|
+
|
|
289
|
+
if (!this.isMountCanceled) {
|
|
290
|
+
window.twttr.widgets.createTimeline({
|
|
291
|
+
sourceType: this.props.sourceType,
|
|
292
|
+
screenName: this.props.screenName,
|
|
293
|
+
userId: this.props.userId,
|
|
294
|
+
ownerScreenName: this.props.ownerScreenName,
|
|
295
|
+
slug: this.props.slug,
|
|
296
|
+
id: this.props.id || this.props.widgetId,
|
|
297
|
+
url: this.props.url
|
|
298
|
+
}, this.refs.embedContainer, options).then(function (element) {
|
|
299
|
+
_this2.setState({
|
|
300
|
+
isLoading: false
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
if (onLoad) {
|
|
304
|
+
onLoad(element);
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}, {
|
|
310
|
+
key: "componentDidMount",
|
|
311
|
+
value: function componentDidMount() {
|
|
312
|
+
var _this3 = this;
|
|
313
|
+
|
|
314
|
+
if (exenv.canUseDOM) {
|
|
315
|
+
var script = require('scriptjs');
|
|
316
|
+
|
|
317
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
318
|
+
if (!window.twttr) {
|
|
319
|
+
console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.');
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
var options = _this3.buildOptions();
|
|
324
|
+
/** Append chrome options */
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
options = _this3.buildChromeOptions(options);
|
|
328
|
+
|
|
329
|
+
_this3.renderWidget(options);
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}, {
|
|
334
|
+
key: "componentWillUnmount",
|
|
335
|
+
value: function componentWillUnmount() {
|
|
336
|
+
this.isMountCanceled = true;
|
|
337
|
+
}
|
|
338
|
+
}, {
|
|
339
|
+
key: "render",
|
|
340
|
+
value: function render() {
|
|
341
|
+
var isLoading = this.state.isLoading;
|
|
342
|
+
var placeholder = this.props.placeholder;
|
|
343
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
344
|
+
ref: "embedContainer"
|
|
345
|
+
}));
|
|
346
|
+
}
|
|
347
|
+
}]);
|
|
348
|
+
|
|
349
|
+
return TwitterTimelineEmbed;
|
|
350
|
+
}(React.Component);
|
|
351
|
+
|
|
352
|
+
_defineProperty(TwitterTimelineEmbed, "propTypes", {
|
|
353
|
+
/**
|
|
354
|
+
* This can be either of profile, likes, list, collection, URL, widget
|
|
355
|
+
*/
|
|
356
|
+
sourceType: PropTypes__default.oneOf(['profile', 'likes', 'list', 'collection', 'url', 'widget']).isRequired,
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* username of twitter handle as String
|
|
360
|
+
*/
|
|
361
|
+
screenName: isRequiredIf(PropTypes__default.string, function (props) {
|
|
362
|
+
return !props.hasOwnProperty('userId') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
363
|
+
}),
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* UserId of twitter handle as number
|
|
367
|
+
*/
|
|
368
|
+
userId: isRequiredIf(PropTypes__default.number, function (props) {
|
|
369
|
+
return !props.hasOwnProperty('screenName') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
370
|
+
}),
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* To show list, used along with slug
|
|
374
|
+
*/
|
|
375
|
+
ownerScreenName: isRequiredIf(PropTypes__default.string, function (props) {
|
|
376
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
377
|
+
}),
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* To show list, used along with ownerScreenName
|
|
381
|
+
*/
|
|
382
|
+
slug: isRequiredIf(PropTypes__default.string, function (props) {
|
|
383
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
384
|
+
}),
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* To show list, unique list id
|
|
388
|
+
* Also used with collections, in that case its valid collection id
|
|
389
|
+
*/
|
|
390
|
+
id: isRequiredIf(PropTypes__default.oneOfType([PropTypes__default.number, PropTypes__default.string]), function (props) {
|
|
391
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('ownerScreenName') && !props.hasOwnProperty('slug') || props.sourceType === 'collection';
|
|
392
|
+
}),
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* To show twitter content with url.
|
|
396
|
+
* Supported content includes profiles, likes, lists, and collections.
|
|
397
|
+
*/
|
|
398
|
+
url: isRequiredIf(PropTypes__default.string, function (props) {
|
|
399
|
+
return props.sourceType === 'url';
|
|
400
|
+
}),
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* To show custom widget
|
|
404
|
+
*/
|
|
405
|
+
widgetId: isRequiredIf(PropTypes__default.string, function (props) {
|
|
406
|
+
return props.sourceType === 'widget';
|
|
407
|
+
}),
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Additional options to pass to twitter widget plugin
|
|
411
|
+
*/
|
|
412
|
+
options: PropTypes__default.object,
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Automatically fit into parent container height
|
|
416
|
+
*/
|
|
417
|
+
autoHeight: PropTypes__default.bool,
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* With dark or light theme
|
|
421
|
+
*/
|
|
422
|
+
theme: PropTypes__default.oneOf(['dark', 'light']),
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* With custom link colors. Note: Only Hex colors are supported.
|
|
426
|
+
*/
|
|
427
|
+
linkColor: PropTypes__default.string,
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* With custom border colors. Note: Only Hex colors are supported.
|
|
431
|
+
*/
|
|
432
|
+
borderColor: PropTypes__default.string,
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Hide the header from timeline
|
|
436
|
+
*/
|
|
437
|
+
noHeader: PropTypes__default.bool,
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Hide the footer from timeline
|
|
441
|
+
*/
|
|
442
|
+
noFooter: PropTypes__default.bool,
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Hide the border from timeline
|
|
446
|
+
*/
|
|
447
|
+
noBorders: PropTypes__default.bool,
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Hide the scrollbars
|
|
451
|
+
*/
|
|
452
|
+
noScrollbar: PropTypes__default.bool,
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Enable Transparancy
|
|
456
|
+
*/
|
|
457
|
+
transparent: PropTypes__default.bool,
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Custom language code. Supported codes here: https://developer.twitter.com/en/docs/twitter-for-websites/twitter-for-websites-supported-languages/overview.html
|
|
461
|
+
*/
|
|
462
|
+
lang: PropTypes__default.string,
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Placeholder while tweet is loading
|
|
466
|
+
*/
|
|
467
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Function to execute after load, return html element
|
|
471
|
+
*/
|
|
472
|
+
onLoad: PropTypes__default.func
|
|
473
|
+
});
|
|
474
|
+
|
|
475
|
+
var TwitterShareButton =
|
|
476
|
+
/*#__PURE__*/
|
|
477
|
+
function (_Component) {
|
|
478
|
+
_inherits(TwitterShareButton, _Component);
|
|
479
|
+
|
|
480
|
+
function TwitterShareButton(props) {
|
|
481
|
+
var _this;
|
|
482
|
+
|
|
483
|
+
_classCallCheck(this, TwitterShareButton);
|
|
484
|
+
|
|
485
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterShareButton).call(this, props));
|
|
486
|
+
_this.state = {
|
|
487
|
+
isLoading: true
|
|
488
|
+
};
|
|
489
|
+
return _this;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
_createClass(TwitterShareButton, [{
|
|
493
|
+
key: "componentDidMount",
|
|
494
|
+
value: function componentDidMount() {
|
|
495
|
+
var _this2 = this;
|
|
496
|
+
|
|
497
|
+
var onLoad = this.props.onLoad;
|
|
498
|
+
|
|
499
|
+
if (exenv.canUseDOM) {
|
|
500
|
+
var script = require('scriptjs');
|
|
501
|
+
|
|
502
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
503
|
+
if (!window.twttr) {
|
|
504
|
+
console.error('Failure to load window.twttr in TwitterShareButton, aborting load.');
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
if (!_this2.isMountCanceled) {
|
|
509
|
+
window.twttr.widgets.createShareButton(_this2.props.url, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
510
|
+
_this2.setState({
|
|
511
|
+
isLoading: false
|
|
512
|
+
});
|
|
513
|
+
|
|
514
|
+
if (onLoad) {
|
|
515
|
+
onLoad(element);
|
|
516
|
+
}
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
}, {
|
|
523
|
+
key: "componentWillUnmount",
|
|
524
|
+
value: function componentWillUnmount() {
|
|
525
|
+
this.isMountCanceled = true;
|
|
526
|
+
}
|
|
527
|
+
}, {
|
|
528
|
+
key: "render",
|
|
529
|
+
value: function render() {
|
|
530
|
+
var isLoading = this.state.isLoading;
|
|
531
|
+
var placeholder = this.props.placeholder;
|
|
532
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
533
|
+
ref: "embedContainer"
|
|
534
|
+
}));
|
|
535
|
+
}
|
|
536
|
+
}]);
|
|
537
|
+
|
|
538
|
+
return TwitterShareButton;
|
|
539
|
+
}(React.Component);
|
|
540
|
+
|
|
541
|
+
_defineProperty(TwitterShareButton, "propTypes", {
|
|
542
|
+
/**
|
|
543
|
+
* Url for sharing
|
|
544
|
+
*/
|
|
545
|
+
url: PropTypes__default.string.isRequired,
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Additional options for overriding config. Details at : https://dev.twitter.com/web/tweet-button/parameters
|
|
549
|
+
*/
|
|
550
|
+
options: PropTypes__default.object,
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Placeholder while tweet is loading
|
|
554
|
+
*/
|
|
555
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Function to execute after load, return html element
|
|
559
|
+
*/
|
|
560
|
+
onLoad: PropTypes__default.func
|
|
561
|
+
});
|
|
562
|
+
|
|
563
|
+
var TwitterFollowButton =
|
|
564
|
+
/*#__PURE__*/
|
|
565
|
+
function (_Component) {
|
|
566
|
+
_inherits(TwitterFollowButton, _Component);
|
|
567
|
+
|
|
568
|
+
function TwitterFollowButton(props) {
|
|
569
|
+
var _this;
|
|
570
|
+
|
|
571
|
+
_classCallCheck(this, TwitterFollowButton);
|
|
572
|
+
|
|
573
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterFollowButton).call(this, props));
|
|
574
|
+
_this.state = {
|
|
575
|
+
isLoading: true
|
|
576
|
+
};
|
|
577
|
+
return _this;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
_createClass(TwitterFollowButton, [{
|
|
581
|
+
key: "componentDidMount",
|
|
582
|
+
value: function componentDidMount() {
|
|
583
|
+
var _this2 = this;
|
|
584
|
+
|
|
585
|
+
var onLoad = this.props.onLoad;
|
|
586
|
+
|
|
587
|
+
if (exenv.canUseDOM) {
|
|
588
|
+
var script = require('scriptjs');
|
|
589
|
+
|
|
590
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
591
|
+
if (!window.twttr) {
|
|
592
|
+
console.error('Failure to load window.twttr in TwitterFollowButton, aborting load.');
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
if (!_this2.isMountCanceled) {
|
|
597
|
+
window.twttr.widgets.createFollowButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
598
|
+
_this2.setState({
|
|
599
|
+
isLoading: false
|
|
600
|
+
});
|
|
601
|
+
|
|
602
|
+
if (onLoad) {
|
|
603
|
+
onLoad(element);
|
|
604
|
+
}
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}, {
|
|
611
|
+
key: "componentWillUnmount",
|
|
612
|
+
value: function componentWillUnmount() {
|
|
613
|
+
this.isMountCanceled = true;
|
|
614
|
+
}
|
|
615
|
+
}, {
|
|
616
|
+
key: "render",
|
|
617
|
+
value: function render() {
|
|
618
|
+
var isLoading = this.state.isLoading;
|
|
619
|
+
var placeholder = this.props.placeholder;
|
|
620
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
621
|
+
ref: "embedContainer"
|
|
622
|
+
}));
|
|
623
|
+
}
|
|
624
|
+
}]);
|
|
625
|
+
|
|
626
|
+
return TwitterFollowButton;
|
|
627
|
+
}(React.Component);
|
|
628
|
+
|
|
629
|
+
_defineProperty(TwitterFollowButton, "propTypes", {
|
|
630
|
+
/**
|
|
631
|
+
* Username of twitter user which will be followed on click
|
|
632
|
+
*/
|
|
633
|
+
screenName: PropTypes__default.string.isRequired,
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Additional options to be added to the button
|
|
637
|
+
*/
|
|
638
|
+
options: PropTypes__default.object,
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Placeholder while tweet is loading
|
|
642
|
+
*/
|
|
643
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Function to execute after load, return html element
|
|
647
|
+
*/
|
|
648
|
+
onLoad: PropTypes__default.func
|
|
649
|
+
});
|
|
650
|
+
|
|
651
|
+
var TwitterHashtagButton =
|
|
652
|
+
/*#__PURE__*/
|
|
653
|
+
function (_Component) {
|
|
654
|
+
_inherits(TwitterHashtagButton, _Component);
|
|
655
|
+
|
|
656
|
+
function TwitterHashtagButton(props) {
|
|
657
|
+
var _this;
|
|
658
|
+
|
|
659
|
+
_classCallCheck(this, TwitterHashtagButton);
|
|
660
|
+
|
|
661
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterHashtagButton).call(this, props));
|
|
662
|
+
_this.state = {
|
|
663
|
+
isLoading: true
|
|
664
|
+
};
|
|
665
|
+
return _this;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
_createClass(TwitterHashtagButton, [{
|
|
669
|
+
key: "componentDidMount",
|
|
670
|
+
value: function componentDidMount() {
|
|
671
|
+
var _this2 = this;
|
|
672
|
+
|
|
673
|
+
var onLoad = this.props.onLoad;
|
|
674
|
+
|
|
675
|
+
if (exenv.canUseDOM) {
|
|
676
|
+
var script = require('scriptjs');
|
|
677
|
+
|
|
678
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
679
|
+
if (!window.twttr) {
|
|
680
|
+
console.error('Failure to load window.twttr in TwitterHashtagButton, aborting load.');
|
|
681
|
+
return;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
if (!_this2.isMountCanceled) {
|
|
685
|
+
window.twttr.widgets.createHashtagButton(_this2.props.tag, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
686
|
+
_this2.setState({
|
|
687
|
+
isLoading: false
|
|
688
|
+
});
|
|
689
|
+
|
|
690
|
+
if (onLoad) {
|
|
691
|
+
onLoad(element);
|
|
692
|
+
}
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}, {
|
|
699
|
+
key: "componentWillUnmount",
|
|
700
|
+
value: function componentWillUnmount() {
|
|
701
|
+
this.isMountCanceled = true;
|
|
702
|
+
}
|
|
703
|
+
}, {
|
|
704
|
+
key: "render",
|
|
705
|
+
value: function render() {
|
|
706
|
+
var isLoading = this.state.isLoading;
|
|
707
|
+
var placeholder = this.props.placeholder;
|
|
708
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
709
|
+
ref: "embedContainer"
|
|
710
|
+
}));
|
|
711
|
+
}
|
|
712
|
+
}]);
|
|
713
|
+
|
|
714
|
+
return TwitterHashtagButton;
|
|
715
|
+
}(React.Component);
|
|
716
|
+
|
|
717
|
+
_defineProperty(TwitterHashtagButton, "propTypes", {
|
|
718
|
+
/**
|
|
719
|
+
* Tag name for hashtag button
|
|
720
|
+
*/
|
|
721
|
+
tag: PropTypes__default.string.isRequired,
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Additional options to be added to the button
|
|
725
|
+
*/
|
|
726
|
+
options: PropTypes__default.object,
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Placeholder while tweet is loading
|
|
730
|
+
*/
|
|
731
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* Function to execute after load, return html element
|
|
735
|
+
*/
|
|
736
|
+
onLoad: PropTypes__default.func
|
|
737
|
+
});
|
|
738
|
+
|
|
739
|
+
var TwitterMentionButton =
|
|
740
|
+
/*#__PURE__*/
|
|
741
|
+
function (_Component) {
|
|
742
|
+
_inherits(TwitterMentionButton, _Component);
|
|
743
|
+
|
|
744
|
+
function TwitterMentionButton(props) {
|
|
745
|
+
var _this;
|
|
746
|
+
|
|
747
|
+
_classCallCheck(this, TwitterMentionButton);
|
|
748
|
+
|
|
749
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMentionButton).call(this, props));
|
|
750
|
+
_this.state = {
|
|
751
|
+
isLoading: true
|
|
752
|
+
};
|
|
753
|
+
return _this;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
_createClass(TwitterMentionButton, [{
|
|
757
|
+
key: "componentDidMount",
|
|
758
|
+
value: function componentDidMount() {
|
|
759
|
+
var _this2 = this;
|
|
760
|
+
|
|
761
|
+
var onLoad = this.props.onLoad;
|
|
762
|
+
|
|
763
|
+
if (exenv.canUseDOM) {
|
|
764
|
+
var script = require('scriptjs');
|
|
765
|
+
|
|
766
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
767
|
+
if (!window.twttr) {
|
|
768
|
+
console.error('Failure to load window.twttr in TwitterMentionButton, aborting load.');
|
|
769
|
+
return;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
if (!_this2.isMountCanceled) {
|
|
773
|
+
window.twttr.widgets.createMentionButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
774
|
+
_this2.setState({
|
|
775
|
+
isLoading: false
|
|
776
|
+
});
|
|
777
|
+
|
|
778
|
+
if (onLoad) {
|
|
779
|
+
onLoad(element);
|
|
780
|
+
}
|
|
781
|
+
});
|
|
782
|
+
}
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}, {
|
|
787
|
+
key: "componentWillUnmount",
|
|
788
|
+
value: function componentWillUnmount() {
|
|
789
|
+
this.isMountCanceled = true;
|
|
790
|
+
}
|
|
791
|
+
}, {
|
|
792
|
+
key: "render",
|
|
793
|
+
value: function render() {
|
|
794
|
+
var isLoading = this.state.isLoading;
|
|
795
|
+
var placeholder = this.props.placeholder;
|
|
796
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
797
|
+
ref: "embedContainer"
|
|
798
|
+
}));
|
|
799
|
+
}
|
|
800
|
+
}]);
|
|
801
|
+
|
|
802
|
+
return TwitterMentionButton;
|
|
803
|
+
}(React.Component);
|
|
804
|
+
|
|
805
|
+
_defineProperty(TwitterMentionButton, "propTypes", {
|
|
806
|
+
/**
|
|
807
|
+
* Username to which you will need to tweet
|
|
808
|
+
*/
|
|
809
|
+
screenName: PropTypes__default.string.isRequired,
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Additional options for overriding config.
|
|
813
|
+
*/
|
|
814
|
+
options: PropTypes__default.object,
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* Placeholder while tweet is loading
|
|
818
|
+
*/
|
|
819
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* Function to execute after load, return html element
|
|
823
|
+
*/
|
|
824
|
+
onLoad: PropTypes__default.func
|
|
825
|
+
});
|
|
826
|
+
|
|
827
|
+
var TwitterTweetEmbed =
|
|
828
|
+
/*#__PURE__*/
|
|
829
|
+
function (_Component) {
|
|
830
|
+
_inherits(TwitterTweetEmbed, _Component);
|
|
831
|
+
|
|
832
|
+
function TwitterTweetEmbed(props) {
|
|
833
|
+
var _this;
|
|
834
|
+
|
|
835
|
+
_classCallCheck(this, TwitterTweetEmbed);
|
|
836
|
+
|
|
837
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTweetEmbed).call(this, props));
|
|
838
|
+
_this.state = {
|
|
839
|
+
isLoading: true
|
|
840
|
+
};
|
|
841
|
+
return _this;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
_createClass(TwitterTweetEmbed, [{
|
|
845
|
+
key: "renderWidget",
|
|
846
|
+
value: function renderWidget() {
|
|
847
|
+
var _this2 = this;
|
|
848
|
+
|
|
849
|
+
var onLoad = this.props.onLoad;
|
|
850
|
+
|
|
851
|
+
if (!window.twttr) {
|
|
852
|
+
console.error('Failure to load window.twttr in TwitterTweetEmbed, aborting load.');
|
|
853
|
+
return;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
if (!this.isMountCanceled) {
|
|
857
|
+
window.twttr.widgets.createTweet(this.props.tweetId, this.refs.embedContainer, this.props.options).then(function (element) {
|
|
858
|
+
_this2.setState({
|
|
859
|
+
isLoading: false
|
|
860
|
+
});
|
|
861
|
+
|
|
862
|
+
if (onLoad) {
|
|
863
|
+
onLoad(element);
|
|
864
|
+
}
|
|
865
|
+
});
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}, {
|
|
869
|
+
key: "componentDidMount",
|
|
870
|
+
value: function componentDidMount() {
|
|
871
|
+
var _this3 = this;
|
|
872
|
+
|
|
873
|
+
if (exenv.canUseDOM) {
|
|
874
|
+
var script = require('scriptjs');
|
|
875
|
+
|
|
876
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
877
|
+
_this3.renderWidget();
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
}, {
|
|
882
|
+
key: "componentWillUnmount",
|
|
883
|
+
value: function componentWillUnmount() {
|
|
884
|
+
this.isMountCanceled = true;
|
|
885
|
+
}
|
|
886
|
+
}, {
|
|
887
|
+
key: "render",
|
|
888
|
+
value: function render() {
|
|
889
|
+
var isLoading = this.state.isLoading;
|
|
890
|
+
var placeholder = this.props.placeholder;
|
|
891
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
892
|
+
ref: "embedContainer"
|
|
893
|
+
}));
|
|
894
|
+
}
|
|
895
|
+
}]);
|
|
896
|
+
|
|
897
|
+
return TwitterTweetEmbed;
|
|
898
|
+
}(React.Component);
|
|
899
|
+
|
|
900
|
+
_defineProperty(TwitterTweetEmbed, "propTypes", {
|
|
901
|
+
/**
|
|
902
|
+
* Tweet id that needs to be shown
|
|
903
|
+
*/
|
|
904
|
+
tweetId: PropTypes__default.string.isRequired,
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Additional options to pass to twitter widget plugin
|
|
908
|
+
*/
|
|
909
|
+
options: PropTypes__default.object,
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* Placeholder while tweet is loading
|
|
913
|
+
*/
|
|
914
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* Function to execute after load, return html element
|
|
918
|
+
*/
|
|
919
|
+
onLoad: PropTypes__default.func
|
|
920
|
+
});
|
|
921
|
+
|
|
922
|
+
var TwitterMomentShare =
|
|
923
|
+
/*#__PURE__*/
|
|
924
|
+
function (_Component) {
|
|
925
|
+
_inherits(TwitterMomentShare, _Component);
|
|
926
|
+
|
|
927
|
+
function TwitterMomentShare(props) {
|
|
928
|
+
var _this;
|
|
929
|
+
|
|
930
|
+
_classCallCheck(this, TwitterMomentShare);
|
|
931
|
+
|
|
932
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMomentShare).call(this, props));
|
|
933
|
+
_this.state = {
|
|
934
|
+
isLoading: true
|
|
935
|
+
};
|
|
936
|
+
return _this;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
_createClass(TwitterMomentShare, [{
|
|
940
|
+
key: "componentDidMount",
|
|
941
|
+
value: function componentDidMount() {
|
|
942
|
+
var _this2 = this;
|
|
943
|
+
|
|
944
|
+
var onLoad = this.props.onLoad;
|
|
945
|
+
|
|
946
|
+
if (exenv.canUseDOM) {
|
|
947
|
+
var script = require('scriptjs');
|
|
948
|
+
|
|
949
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
950
|
+
if (!window.twttr) {
|
|
951
|
+
console.error('Failure to load window.twttr in TwitterMomentShare, aborting load.');
|
|
952
|
+
return;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
if (!_this2.isMountCanceled) {
|
|
956
|
+
window.twttr.widgets.createMoment(_this2.props.momentId, _this2.refs.shareMoment, _this2.props.options).then(function (element) {
|
|
957
|
+
_this2.setState({
|
|
958
|
+
isLoading: false
|
|
959
|
+
});
|
|
960
|
+
|
|
961
|
+
if (onLoad) {
|
|
962
|
+
onLoad(element);
|
|
963
|
+
}
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
}, {
|
|
970
|
+
key: "componentWillUnmount",
|
|
971
|
+
value: function componentWillUnmount() {
|
|
972
|
+
this.isMountCanceled = true;
|
|
973
|
+
}
|
|
974
|
+
}, {
|
|
975
|
+
key: "render",
|
|
976
|
+
value: function render() {
|
|
977
|
+
var isLoading = this.state.isLoading;
|
|
978
|
+
var placeholder = this.props.placeholder;
|
|
979
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
980
|
+
ref: "shareMoment"
|
|
981
|
+
}));
|
|
982
|
+
}
|
|
983
|
+
}]);
|
|
984
|
+
|
|
985
|
+
return TwitterMomentShare;
|
|
986
|
+
}(React.Component);
|
|
987
|
+
|
|
988
|
+
_defineProperty(TwitterMomentShare, "propTypes", {
|
|
989
|
+
/**
|
|
990
|
+
* id of Twitter moment to show
|
|
991
|
+
*/
|
|
992
|
+
momentId: PropTypes__default.string.isRequired,
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* Additional options for overriding config.
|
|
996
|
+
*/
|
|
997
|
+
options: PropTypes__default.object,
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
* Placeholder while tweet is loading
|
|
1001
|
+
*/
|
|
1002
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* Function to execute after load, return html element
|
|
1006
|
+
*/
|
|
1007
|
+
onLoad: PropTypes__default.func
|
|
1008
|
+
});
|
|
1009
|
+
|
|
1010
|
+
var TwitterDMButton =
|
|
1011
|
+
/*#__PURE__*/
|
|
1012
|
+
function (_Component) {
|
|
1013
|
+
_inherits(TwitterDMButton, _Component);
|
|
1014
|
+
|
|
1015
|
+
function TwitterDMButton(props) {
|
|
1016
|
+
var _this;
|
|
1017
|
+
|
|
1018
|
+
_classCallCheck(this, TwitterDMButton);
|
|
1019
|
+
|
|
1020
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterDMButton).call(this, props));
|
|
1021
|
+
_this.state = {
|
|
1022
|
+
isLoading: true
|
|
1023
|
+
};
|
|
1024
|
+
return _this;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
_createClass(TwitterDMButton, [{
|
|
1028
|
+
key: "componentDidMount",
|
|
1029
|
+
value: function componentDidMount() {
|
|
1030
|
+
var _this2 = this;
|
|
1031
|
+
|
|
1032
|
+
var onLoad = this.props.onLoad;
|
|
1033
|
+
|
|
1034
|
+
if (exenv.canUseDOM) {
|
|
1035
|
+
var script = require('scriptjs');
|
|
1036
|
+
|
|
1037
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1038
|
+
if (!window.twttr) {
|
|
1039
|
+
console.error('Failure to load window.twttr in TwitterDMButton, aborting load.');
|
|
1040
|
+
return;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
if (!_this2.isMountCanceled) {
|
|
1044
|
+
window.twttr.widgets.createDMButton(_this2.props.id, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1045
|
+
_this2.setState({
|
|
1046
|
+
isLoading: false
|
|
1047
|
+
});
|
|
1048
|
+
|
|
1049
|
+
if (onLoad) {
|
|
1050
|
+
onLoad(element);
|
|
1051
|
+
}
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
}, {
|
|
1058
|
+
key: "componentWillUnmount",
|
|
1059
|
+
value: function componentWillUnmount() {
|
|
1060
|
+
this.isMountCanceled = true;
|
|
1061
|
+
}
|
|
1062
|
+
}, {
|
|
1063
|
+
key: "render",
|
|
1064
|
+
value: function render() {
|
|
1065
|
+
var isLoading = this.state.isLoading;
|
|
1066
|
+
var placeholder = this.props.placeholder;
|
|
1067
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1068
|
+
ref: "embedContainer"
|
|
1069
|
+
}));
|
|
1070
|
+
}
|
|
1071
|
+
}]);
|
|
1072
|
+
|
|
1073
|
+
return TwitterDMButton;
|
|
1074
|
+
}(React.Component);
|
|
1075
|
+
|
|
1076
|
+
_defineProperty(TwitterDMButton, "propTypes", {
|
|
1077
|
+
/**
|
|
1078
|
+
* Twitter user id for DM button
|
|
1079
|
+
*/
|
|
1080
|
+
id: PropTypes__default.number.isRequired,
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* Additional options to be added to the button
|
|
1084
|
+
*/
|
|
1085
|
+
options: PropTypes__default.object,
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* Placeholder while tweet is loading
|
|
1089
|
+
*/
|
|
1090
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* Function to execute after load, return html element
|
|
1094
|
+
*/
|
|
1095
|
+
onLoad: PropTypes__default.func
|
|
1096
|
+
});
|
|
1097
|
+
|
|
1098
|
+
var TwitterVideoEmbed =
|
|
1099
|
+
/*#__PURE__*/
|
|
1100
|
+
function (_Component) {
|
|
1101
|
+
_inherits(TwitterVideoEmbed, _Component);
|
|
1102
|
+
|
|
1103
|
+
function TwitterVideoEmbed(props) {
|
|
1104
|
+
var _this;
|
|
1105
|
+
|
|
1106
|
+
_classCallCheck(this, TwitterVideoEmbed);
|
|
1107
|
+
|
|
1108
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterVideoEmbed).call(this, props));
|
|
1109
|
+
_this.state = {
|
|
1110
|
+
isLoading: true
|
|
1111
|
+
};
|
|
1112
|
+
return _this;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
_createClass(TwitterVideoEmbed, [{
|
|
1116
|
+
key: "componentDidMount",
|
|
1117
|
+
value: function componentDidMount() {
|
|
1118
|
+
var _this2 = this;
|
|
1119
|
+
|
|
1120
|
+
var onLoad = this.props.onLoad;
|
|
1121
|
+
|
|
1122
|
+
if (exenv.canUseDOM) {
|
|
1123
|
+
var script = require('scriptjs');
|
|
1124
|
+
|
|
1125
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1126
|
+
if (!window.twttr) {
|
|
1127
|
+
console.error('Failure to load window.twttr in TwitterVideoEmbed, aborting load.');
|
|
1128
|
+
return;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
if (!_this2.isMountCanceled) {
|
|
1132
|
+
window.twttr.widgets.createVideo(_this2.props.id, _this2.refs.embedContainer).then(function (element) {
|
|
1133
|
+
_this2.setState({
|
|
1134
|
+
isLoading: false
|
|
1135
|
+
});
|
|
1136
|
+
|
|
1137
|
+
if (onLoad) {
|
|
1138
|
+
onLoad(element);
|
|
1139
|
+
}
|
|
1140
|
+
});
|
|
1141
|
+
}
|
|
1142
|
+
});
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
}, {
|
|
1146
|
+
key: "componentWillUnmount",
|
|
1147
|
+
value: function componentWillUnmount() {
|
|
1148
|
+
this.isMountCanceled = true;
|
|
1149
|
+
}
|
|
1150
|
+
}, {
|
|
1151
|
+
key: "render",
|
|
1152
|
+
value: function render() {
|
|
1153
|
+
var isLoading = this.state.isLoading;
|
|
1154
|
+
var placeholder = this.props.placeholder;
|
|
1155
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1156
|
+
ref: "embedContainer"
|
|
1157
|
+
}));
|
|
1158
|
+
}
|
|
1159
|
+
}]);
|
|
1160
|
+
|
|
1161
|
+
return TwitterVideoEmbed;
|
|
1162
|
+
}(React.Component);
|
|
1163
|
+
|
|
1164
|
+
_defineProperty(TwitterVideoEmbed, "propTypes", {
|
|
1165
|
+
/**
|
|
1166
|
+
* Id of video tweet.
|
|
1167
|
+
*/
|
|
1168
|
+
id: PropTypes__default.string.isRequired,
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* Placeholder while tweet is loading
|
|
1172
|
+
*/
|
|
1173
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
1174
|
+
|
|
1175
|
+
/**
|
|
1176
|
+
* Function to execute after load, return html element
|
|
1177
|
+
*/
|
|
1178
|
+
onLoad: PropTypes__default.func
|
|
1179
|
+
});
|
|
1180
|
+
|
|
1181
|
+
var TwitterOnAirButton =
|
|
1182
|
+
/*#__PURE__*/
|
|
1183
|
+
function (_Component) {
|
|
1184
|
+
_inherits(TwitterOnAirButton, _Component);
|
|
1185
|
+
|
|
1186
|
+
function TwitterOnAirButton(props) {
|
|
1187
|
+
var _this;
|
|
1188
|
+
|
|
1189
|
+
_classCallCheck(this, TwitterOnAirButton);
|
|
1190
|
+
|
|
1191
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterOnAirButton).call(this, props));
|
|
1192
|
+
_this.state = {
|
|
1193
|
+
isLoading: true
|
|
1194
|
+
};
|
|
1195
|
+
return _this;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
_createClass(TwitterOnAirButton, [{
|
|
1199
|
+
key: "componentDidMount",
|
|
1200
|
+
value: function componentDidMount() {
|
|
1201
|
+
var _this2 = this;
|
|
1202
|
+
|
|
1203
|
+
var onLoad = this.props.onLoad;
|
|
1204
|
+
|
|
1205
|
+
if (exenv.canUseDOM) {
|
|
1206
|
+
var script = require('scriptjs');
|
|
1207
|
+
|
|
1208
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1209
|
+
if (!window.twttr) {
|
|
1210
|
+
console.error('Failure to load window.twttr in TwitterOnAirButton, aborting load.');
|
|
1211
|
+
return;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
if (!_this2.isMountCanceled) {
|
|
1215
|
+
window.twttr.widgets.createPeriscopeOnAirButton(_this2.props.username, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1216
|
+
_this2.setState({
|
|
1217
|
+
isLoading: false
|
|
1218
|
+
});
|
|
1219
|
+
|
|
1220
|
+
if (onLoad) {
|
|
1221
|
+
onLoad(element);
|
|
1222
|
+
}
|
|
1223
|
+
});
|
|
1224
|
+
}
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
}, {
|
|
1229
|
+
key: "componentWillUnmount",
|
|
1230
|
+
value: function componentWillUnmount() {
|
|
1231
|
+
this.isMountCanceled = true;
|
|
1232
|
+
}
|
|
1233
|
+
}, {
|
|
1234
|
+
key: "render",
|
|
1235
|
+
value: function render() {
|
|
1236
|
+
var isLoading = this.state.isLoading;
|
|
1237
|
+
var placeholder = this.props.placeholder;
|
|
1238
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1239
|
+
ref: "embedContainer"
|
|
1240
|
+
}));
|
|
1241
|
+
}
|
|
1242
|
+
}]);
|
|
1243
|
+
|
|
1244
|
+
return TwitterOnAirButton;
|
|
1245
|
+
}(React.Component);
|
|
1246
|
+
|
|
1247
|
+
_defineProperty(TwitterOnAirButton, "propTypes", {
|
|
1248
|
+
/**
|
|
1249
|
+
* Username for which you require periscope on air button
|
|
1250
|
+
*/
|
|
1251
|
+
username: PropTypes__default.string.isRequired,
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* Additional options for overriding config.
|
|
1255
|
+
*/
|
|
1256
|
+
options: PropTypes__default.object,
|
|
68
1257
|
|
|
69
|
-
|
|
1258
|
+
/**
|
|
1259
|
+
* Placeholder while tweet is loading
|
|
1260
|
+
*/
|
|
1261
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
70
1262
|
|
|
71
|
-
|
|
1263
|
+
/**
|
|
1264
|
+
* Function to execute after load, return html element
|
|
1265
|
+
*/
|
|
1266
|
+
onLoad: PropTypes__default.func
|
|
1267
|
+
});
|
|
72
1268
|
|
|
73
1269
|
var ImageSlider = function ImageSlider(props) {
|
|
74
1270
|
var innerSlider = React.useRef(null);
|
|
@@ -90,7 +1286,7 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
90
1286
|
scrollPosition = _useState6[0],
|
|
91
1287
|
setScrollPosition = _useState6[1];
|
|
92
1288
|
|
|
93
|
-
var builder = index.imageUrlBuilder(props.client);
|
|
1289
|
+
var builder = index$1.imageUrlBuilder(props.client);
|
|
94
1290
|
function urlFor(source) {
|
|
95
1291
|
return builder.image(source);
|
|
96
1292
|
}
|
|
@@ -174,61 +1370,61 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
174
1370
|
}, []);
|
|
175
1371
|
|
|
176
1372
|
var variant = 'black';
|
|
177
|
-
return React__default
|
|
178
|
-
React__default
|
|
1373
|
+
return React__default.createElement(
|
|
1374
|
+
React__default.Fragment,
|
|
179
1375
|
null,
|
|
180
|
-
React__default
|
|
1376
|
+
React__default.createElement(
|
|
181
1377
|
'div',
|
|
182
1378
|
{ ref: viewableWindow, id: 'vid-slider', className: 'col' },
|
|
183
|
-
React__default
|
|
1379
|
+
React__default.createElement(
|
|
184
1380
|
'div',
|
|
185
1381
|
{ className: 'row' },
|
|
186
|
-
showScroller && React__default
|
|
1382
|
+
showScroller && React__default.createElement(
|
|
187
1383
|
'div',
|
|
188
1384
|
{ onClick: function onClick(e) {
|
|
189
1385
|
return scrollSlider(e, 'prev');
|
|
190
1386
|
}, className: 'tile__slider-prev', style: { color: variant } },
|
|
191
|
-
React__default
|
|
1387
|
+
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow left' })
|
|
192
1388
|
),
|
|
193
|
-
showScroller && React__default
|
|
1389
|
+
showScroller && React__default.createElement(
|
|
194
1390
|
'div',
|
|
195
1391
|
{ onClick: function onClick(e) {
|
|
196
1392
|
return scrollSlider(e, 'next');
|
|
197
1393
|
}, className: 'tile__slider-next', style: { color: variant } },
|
|
198
|
-
React__default
|
|
1394
|
+
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow right' })
|
|
199
1395
|
),
|
|
200
|
-
React__default
|
|
1396
|
+
React__default.createElement(
|
|
201
1397
|
'div',
|
|
202
1398
|
{ ref: innerSlider, className: 'row__inner' },
|
|
203
1399
|
props.data.slides.map(function (img, index) {
|
|
204
1400
|
var thumbnail = urlFor(img.slideshowImage).width(250);
|
|
205
1401
|
if (!img.slideshowImage.link) {
|
|
206
|
-
return React__default
|
|
1402
|
+
return React__default.createElement(
|
|
207
1403
|
'div',
|
|
208
1404
|
{ ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
|
|
209
|
-
React__default
|
|
1405
|
+
React__default.createElement(
|
|
210
1406
|
'div',
|
|
211
1407
|
{ className: 'tile__media' },
|
|
212
|
-
React__default
|
|
1408
|
+
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
213
1409
|
),
|
|
214
|
-
React__default
|
|
1410
|
+
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
215
1411
|
);
|
|
216
1412
|
} else {
|
|
217
|
-
return React__default
|
|
1413
|
+
return React__default.createElement(
|
|
218
1414
|
'a',
|
|
219
1415
|
{ ref: tile, key: index, href: img.slideshowImage.link, target: img.slideshowImage.blank ? '_target' : '_self', className: 'tile', style: { width: tileSize + 'px' } },
|
|
220
|
-
React__default
|
|
1416
|
+
React__default.createElement(
|
|
221
1417
|
'div',
|
|
222
1418
|
{ className: 'tile__media' },
|
|
223
|
-
React__default
|
|
1419
|
+
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
224
1420
|
),
|
|
225
|
-
React__default
|
|
1421
|
+
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
226
1422
|
);
|
|
227
1423
|
}
|
|
228
1424
|
})
|
|
229
1425
|
)
|
|
230
1426
|
),
|
|
231
|
-
React__default
|
|
1427
|
+
React__default.createElement(
|
|
232
1428
|
'style',
|
|
233
1429
|
{ jsx: 'true' },
|
|
234
1430
|
'\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 '
|
|
@@ -251,95 +1447,95 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
251
1447
|
pageview = _ref.pageview,
|
|
252
1448
|
page = _ref.page;
|
|
253
1449
|
|
|
254
|
-
return React__default
|
|
255
|
-
React__default
|
|
1450
|
+
return React__default.createElement(
|
|
1451
|
+
React__default.Fragment,
|
|
256
1452
|
null,
|
|
257
|
-
React__default
|
|
258
|
-
React__default
|
|
1453
|
+
React__default.createElement(Breadcrumbs, null),
|
|
1454
|
+
React__default.createElement(
|
|
259
1455
|
'div',
|
|
260
1456
|
{ className: 'partners-page' },
|
|
261
|
-
React__default
|
|
1457
|
+
React__default.createElement(
|
|
262
1458
|
'div',
|
|
263
1459
|
{ className: 'my-5 partner-logo-wrap', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' } },
|
|
264
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.link ? React__default
|
|
1460
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.link ? React__default.createElement(
|
|
265
1461
|
'a',
|
|
266
1462
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%' }, href: partnerDetails.thumbnail.link, target: partnerDetails.thumbnail.blank ? '_blank' : '' },
|
|
267
|
-
React__default
|
|
1463
|
+
React__default.createElement(
|
|
268
1464
|
'figure',
|
|
269
1465
|
{ style: { width: '100%', textAlign: 'center' } },
|
|
270
|
-
React__default
|
|
1466
|
+
React__default.createElement('img', {
|
|
271
1467
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
272
1468
|
style: { maxWidth: '100%' },
|
|
273
1469
|
src: partnerDetails.thumbnail ? urlFor(client, partnerDetails.thumbnail.asset) : '' }),
|
|
274
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default
|
|
1470
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default.createElement(
|
|
275
1471
|
'figcaption',
|
|
276
1472
|
null,
|
|
277
1473
|
partnerDetails.thumbnail.caption
|
|
278
1474
|
)
|
|
279
1475
|
)
|
|
280
|
-
) : React__default
|
|
1476
|
+
) : React__default.createElement(
|
|
281
1477
|
'figure',
|
|
282
1478
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%', textAlign: 'center' } },
|
|
283
|
-
React__default
|
|
1479
|
+
React__default.createElement('img', {
|
|
284
1480
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
285
1481
|
style: { maxWidth: '100%' },
|
|
286
1482
|
src: partnerDetails.thumbnail ? urlFor(client, partnerDetails.thumbnail.asset) : '' }),
|
|
287
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default
|
|
1483
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default.createElement(
|
|
288
1484
|
'figcaption',
|
|
289
1485
|
null,
|
|
290
1486
|
partnerDetails.thumbnail.caption
|
|
291
1487
|
)
|
|
292
1488
|
),
|
|
293
|
-
React__default
|
|
1489
|
+
React__default.createElement(
|
|
294
1490
|
'style',
|
|
295
1491
|
{ jsx: 'true' },
|
|
296
1492
|
'\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 '
|
|
297
1493
|
),
|
|
298
|
-
partnerDetails.description && React__default
|
|
1494
|
+
partnerDetails.description && React__default.createElement(
|
|
299
1495
|
'div',
|
|
300
1496
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
301
|
-
React__default
|
|
1497
|
+
React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers.getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
302
1498
|
)
|
|
303
1499
|
),
|
|
304
|
-
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React__default
|
|
1500
|
+
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React__default.createElement(
|
|
305
1501
|
'div',
|
|
306
1502
|
{ className: 'mb-4', style: { padding: '0 15px' } },
|
|
307
|
-
partnerDetails.affiliates[0].title && React__default
|
|
1503
|
+
partnerDetails.affiliates[0].title && React__default.createElement(
|
|
308
1504
|
'h2',
|
|
309
1505
|
{ className: 'bb-gold' },
|
|
310
1506
|
partnerDetails.affiliates[0].title
|
|
311
1507
|
),
|
|
312
|
-
React__default
|
|
1508
|
+
React__default.createElement(ImageSlider, { client: client, data: partnerDetails.affiliates[0] })
|
|
313
1509
|
),
|
|
314
|
-
features.length > 0 && React__default
|
|
1510
|
+
features.length > 0 && React__default.createElement(
|
|
315
1511
|
'div',
|
|
316
1512
|
{ className: ' mb-5' },
|
|
317
|
-
React__default
|
|
1513
|
+
React__default.createElement(Feature, { dataset: features, client: client })
|
|
318
1514
|
),
|
|
319
|
-
partnerDetails.twitter && React__default
|
|
320
|
-
React__default
|
|
1515
|
+
partnerDetails.twitter && React__default.createElement(
|
|
1516
|
+
React__default.Fragment,
|
|
321
1517
|
null,
|
|
322
|
-
React__default
|
|
1518
|
+
React__default.createElement(
|
|
323
1519
|
'div',
|
|
324
1520
|
{ className: 'mb-5', style: { width: '100%', textAlign: 'center', padding: '0 15px', border: '2px solid #aaa', borderRadius: '15px' } },
|
|
325
|
-
React__default
|
|
1521
|
+
React__default.createElement(TwitterTimelineEmbed, { sourceType: 'url', url: partnerDetails.twitter, options: { height: 400 } })
|
|
326
1522
|
)
|
|
327
1523
|
),
|
|
328
|
-
React__default
|
|
1524
|
+
React__default.createElement(
|
|
329
1525
|
'div',
|
|
330
1526
|
null,
|
|
331
|
-
posts && posts.length > 0 && React__default
|
|
332
|
-
React__default
|
|
1527
|
+
posts && posts.length > 0 && React__default.createElement(
|
|
1528
|
+
React__default.Fragment,
|
|
333
1529
|
null,
|
|
334
|
-
React__default
|
|
1530
|
+
React__default.createElement(
|
|
335
1531
|
'h2',
|
|
336
1532
|
{ className: 'bb-gold mb-2' },
|
|
337
1533
|
'Latest from ',
|
|
338
1534
|
partnerDetails.name
|
|
339
1535
|
),
|
|
340
|
-
React__default
|
|
1536
|
+
React__default.createElement('hr', null)
|
|
341
1537
|
),
|
|
342
|
-
React__default
|
|
1538
|
+
React__default.createElement(QueueDeckExpanded, {
|
|
343
1539
|
client: client,
|
|
344
1540
|
mapping: Settings.mapping,
|
|
345
1541
|
dataRecord: posts,
|