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