@mjhls/mjh-framework 1.0.702-beta-v1 → 1.0.703-testing-module-splitting
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 +172 -172
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +26 -24
- package/dist/cjs/AD300x250x600.js +26 -24
- package/dist/cjs/AD728x90.js +29 -27
- package/dist/cjs/ADFloatingFooter.js +31 -29
- package/dist/cjs/ADFooter.js +16 -14
- package/dist/cjs/ADGutter.js +28 -26
- package/dist/cjs/{ADInfeed-38066a36.js → ADInfeed-d36dc3ca.js} +13 -11
- package/dist/cjs/ADSkyscraper.js +28 -26
- package/dist/cjs/ADSponsoredResources.js +28 -26
- package/dist/cjs/ADWebcast.js +28 -26
- package/dist/cjs/ADWelcome.js +32 -30
- package/dist/cjs/{ADlgInfeed-d95c9027.js → ADlgInfeed-93205fa0.js} +9 -8
- package/dist/cjs/AccordionPanel.js +32 -29
- package/dist/cjs/AdSlot.js +33 -31
- package/dist/cjs/AdSlotsProvider.js +8 -7
- package/dist/cjs/AlphabeticList.js +26 -24
- package/dist/cjs/ArticleCarousel.js +23 -21
- package/dist/cjs/ArticleSeriesListing.js +59 -57
- package/dist/cjs/Auth.js +817 -530
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-482218ce.js} +14 -13
- package/dist/cjs/Beam.js +10 -9
- package/dist/cjs/{BlockContent-80b15fac.js → BlockContent-eca358e4.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +30 -27
- package/dist/cjs/BrowseVideosListing.js +41 -39
- package/dist/cjs/CMEDeck.js +79 -78
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +36 -32
- package/dist/cjs/Column3.js +59 -55
- package/dist/cjs/ConferenceArticleCard.js +38 -37
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +107 -102
- package/dist/cjs/DeckQueue.js +91 -86
- package/dist/cjs/{Dfp-390337bf.js → Dfp-80c3d853.js} +32 -30
- package/dist/cjs/EventsDeck.js +157 -149
- package/dist/cjs/ExternalResources.js +76 -74
- package/dist/cjs/Feature.js +27 -25
- package/dist/cjs/ForbesHero.js +42 -40
- package/dist/cjs/GridContent.js +182 -177
- package/dist/cjs/GridHero.js +44 -42
- package/dist/cjs/GroupDeck.js +51 -49
- package/dist/cjs/HamMagazine.js +145 -139
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/IssueContentDeck.js +78 -72
- package/dist/cjs/IssueDeck.js +76 -70
- package/dist/cjs/IssueLanding.js +71 -69
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -36
- package/dist/cjs/MasterDeck.js +81 -79
- package/dist/cjs/NavDvm.js +81 -75
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +154 -148
- package/dist/cjs/NavNative.js +133 -124
- package/dist/cjs/NavNormal.js +54 -48
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +68 -66
- package/dist/cjs/PageFilter.js +16 -14
- package/dist/cjs/PartnerDetailListing.js +107 -1302
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +22 -19
- package/dist/cjs/PublicationDeck.js +66 -61
- package/dist/cjs/PublicationLanding.js +119 -114
- package/dist/cjs/QueueDeckExpanded.js +293 -292
- package/dist/cjs/RecentNews.js +24 -23
- package/dist/cjs/RelatedContent.js +53 -52
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +23 -18
- package/dist/cjs/Segment.js +8 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +39 -37
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-56d49a1a.js → SocialSearchComponent-a49e8e9d.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +63 -57
- package/dist/cjs/TemplateNormal.js +74 -72
- package/dist/cjs/ThumbnailCard.js +22 -20
- package/dist/cjs/Ustream.js +28 -26
- package/dist/cjs/VerticalHero.js +18 -17
- package/dist/cjs/VideoSeriesCard.js +35 -33
- package/dist/cjs/VideoSeriesFilter.js +20 -19
- package/dist/cjs/VideoSeriesListing.js +74 -72
- package/dist/cjs/View.js +227 -223
- package/dist/cjs/YahooHero.js +41 -39
- package/dist/cjs/YoutubeGroup.js +70 -68
- package/dist/cjs/{_to-object-329a650b.js → _export-7e018e14.js} +2 -146
- package/dist/cjs/{_is-array-754e012d.js → _is-array-4c61cfba.js} +13 -12
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-2a826637.js} +4 -4
- package/dist/cjs/_object-sap-4ac28868.js +16 -0
- package/dist/cjs/{_set-species-f92c67c5.js → _set-species-d088ff6e.js} +10 -9
- package/dist/cjs/_to-object-233fc5c9.js +149 -0
- package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-7ca8f87e.js} +58 -57
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-14f49e03.js} +4 -3
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-fd46a81e.js} +3 -3
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-edc12c5a.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-a390d61f.js} +18 -17
- package/dist/cjs/{extends-60837c34.js → extends-0a166456.js} +6 -5
- package/dist/cjs/getRelatedArticle.js +425 -13
- package/dist/cjs/getSerializers.js +42 -41
- package/dist/cjs/getSeriesDetail.js +1 -1
- package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-57edbc60.js} +11 -11
- package/dist/cjs/getTargeting.js +8 -7
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-58dae365.js → index-0e3597c2.js} +440 -429
- package/dist/cjs/{index-099d45ae.js → index-5ad2b070.js} +16 -17
- package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index-3294d3bc.js → index-cb6ed1fc.js} +17 -18
- package/dist/cjs/{index-39beccb3.js → index-d48b231c.js} +29 -24
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +9 -260
- package/dist/cjs/{inherits-513d81cd.js → inherits-a9209207.js} +16 -15
- package/dist/cjs/{keys-a586b7a0.js → keys-d2f5bcf0.js} +4 -3
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-4ef21f0f.js} +1 -1
- package/dist/cjs/{main-03ffa84c.js → main-eeffe77b.js} +116 -80
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-60dafa9c.js} +7 -7
- package/dist/cjs/{smoothscroll-95231a70.js → smoothscroll-1abb448e.js} +1 -1
- package/dist/cjs/{stringify-7c5aff47.js → stringify-44244c64.js} +2 -2
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-4bb00640.js} +9 -8
- package/dist/cjs/{typeof-725500bc.js → typeof-03c3fdc8.js} +50 -49
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-2d47ebe6.js} +6 -5
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +23 -22
- package/dist/esm/AD300x250x600.js +23 -22
- package/dist/esm/AD728x90.js +26 -25
- package/dist/esm/ADFloatingFooter.js +28 -27
- package/dist/esm/ADFooter.js +12 -11
- package/dist/esm/ADGutter.js +25 -24
- package/dist/esm/{ADInfeed-7b1b2fcb.js → ADInfeed-bf7de12d.js} +7 -7
- package/dist/esm/ADSkyscraper.js +25 -24
- package/dist/esm/ADSponsoredResources.js +25 -24
- package/dist/esm/ADWebcast.js +25 -24
- package/dist/esm/ADWelcome.js +29 -28
- package/dist/esm/{ADlgInfeed-2afe92e6.js → ADlgInfeed-3ac04591.js} +6 -6
- package/dist/esm/AccordionPanel.js +25 -24
- package/dist/esm/AdSlot.js +24 -23
- package/dist/esm/AdSlotsProvider.js +4 -4
- package/dist/esm/AlphabeticList.js +23 -22
- package/dist/esm/ArticleCarousel.js +19 -18
- package/dist/esm/ArticleSeriesListing.js +53 -52
- package/dist/esm/Auth.js +798 -515
- package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-22790017.js} +11 -11
- package/dist/esm/Beam.js +10 -9
- package/dist/esm/{BlockContent-c409aca5.js → BlockContent-d8cd739c.js} +4 -4
- package/dist/esm/Breadcrumbs.js +18 -17
- package/dist/esm/BrowseVideosListing.js +37 -36
- package/dist/esm/CMEDeck.js +76 -75
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +27 -26
- package/dist/esm/Column3.js +50 -49
- package/dist/esm/ConferenceArticleCard.js +33 -33
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +85 -84
- package/dist/esm/DeckQueue.js +65 -64
- package/dist/esm/{Dfp-741c01be.js → Dfp-08279047.js} +21 -20
- package/dist/esm/EventsDeck.js +101 -100
- package/dist/esm/ExternalResources.js +70 -69
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -34
- package/dist/esm/GridContent.js +140 -139
- package/dist/esm/GridHero.js +37 -36
- package/dist/esm/GroupDeck.js +46 -45
- package/dist/esm/HamMagazine.js +114 -113
- 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 +50 -49
- package/dist/esm/IssueDeck.js +47 -46
- package/dist/esm/IssueLanding.js +68 -67
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +34 -33
- package/dist/esm/MasterDeck.js +74 -73
- package/dist/esm/NavDvm.js +58 -57
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +125 -124
- package/dist/esm/NavNative.js +101 -100
- package/dist/esm/NavNormal.js +37 -36
- package/dist/esm/OncliveHero.js +16 -17
- package/dist/esm/OncliveLargeHero.js +60 -59
- package/dist/esm/PageFilter.js +13 -12
- package/dist/esm/PartnerDetailListing.js +105 -1300
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +15 -14
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +76 -75
- package/dist/esm/QueueDeckExpanded.js +274 -273
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +47 -47
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +13 -12
- package/dist/esm/Segment.js +8 -7
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +34 -33
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-677ed3bd.js → SocialSearchComponent-46ea0f4d.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +42 -41
- package/dist/esm/TemplateNormal.js +68 -67
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +24 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesCard.js +26 -25
- package/dist/esm/VideoSeriesFilter.js +17 -16
- package/dist/esm/VideoSeriesListing.js +67 -66
- package/dist/esm/View.js +215 -215
- package/dist/esm/YahooHero.js +35 -34
- package/dist/esm/YoutubeGroup.js +54 -53
- package/dist/esm/{_to-object-ded78eb9.js → _export-9029ebab.js} +3 -134
- package/dist/esm/{_is-array-49698029.js → _is-array-46713c19.js} +7 -6
- package/dist/esm/{_iter-detect-59409a32.js → _iter-detect-60cd145f.js} +2 -2
- package/dist/esm/{_object-pie-71ac75a4.js → _object-pie-33c40e79.js} +1 -1
- package/dist/esm/{_object-sap-4d59d5bd.js → _object-sap-108a1939.js} +1 -1
- package/dist/esm/{_set-species-cede29f8.js → _set-species-a4b3fe39.js} +6 -5
- package/dist/esm/_to-object-62924b74.js +135 -0
- package/dist/esm/{asyncToGenerator-7c654f36.js → asyncToGenerator-7714cea4.js} +10 -9
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
- package/dist/esm/{core.get-iterator-method-54d2e411.js → core.get-iterator-method-6636b3ef.js} +3 -2
- package/dist/esm/{define-property-de3fc946.js → define-property-f2d6f244.js} +1 -1
- package/dist/esm/{defineProperty-b798470d.js → defineProperty-69f06029.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{es6.string.iterator-9b2af4a5.js → es6.string.iterator-2efae22d.js} +4 -3
- package/dist/esm/{extends-cc5da797.js → extends-f866c8d0.js} +3 -2
- package/dist/esm/getRelatedArticle.js +425 -13
- package/dist/esm/getSerializers.js +42 -41
- package/dist/esm/getSeriesDetail.js +1 -1
- package/dist/esm/{getTargeting-2acdec91.js → getTargeting-5cdca4e1.js} +11 -11
- package/dist/esm/getTargeting.js +9 -8
- package/dist/esm/{index-3849e3fe.js → index-3f5c03b2.js} +29 -24
- package/dist/esm/{index-7779a6df.js → index-5db919a6.js} +384 -380
- package/dist/esm/{index-3f4dd6f2.js → index-669ff425.js} +10 -12
- package/dist/esm/{index-ef6d5dcf.js → index-750a7380.js} +17 -18
- package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-57f377a5.js} +7 -16
- package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +11 -172
- package/dist/esm/{inherits-7ee3e0c1.js → inherits-75d6495f.js} +6 -5
- package/dist/esm/{keys-fc2d4c34.js → keys-78217618.js} +3 -2
- package/dist/esm/{lodash-ec8c6b48.js → lodash-ad27652f.js} +1 -1
- package/dist/esm/{main-35ff7b4f.js → main-decc48f4.js} +113 -78
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
- package/dist/esm/{slicedToArray-7021e5df.js → slicedToArray-fa9240c4.js} +4 -4
- package/dist/esm/{smoothscroll-4b699764.js → smoothscroll-ab6e0238.js} +1 -1
- package/dist/esm/{stringify-008c8802.js → stringify-22907f56.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-725434a0.js → toConsumableArray-bd01c637.js} +5 -4
- package/dist/esm/{typeof-08f2c380.js → typeof-668f30cd.js} +9 -8
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/dist/esm/{web.dom.iterable-8956f9a5.js → web.dom.iterable-89515070.js} +4 -3
- package/package.json +105 -105
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/_object-sap-5e74ba08.js +0 -16
|
@@ -1,1264 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
1
|
+
import { _ as _asyncToGenerator, r as regenerator, a as _Promise } from './asyncToGenerator-7714cea4.js';
|
|
2
|
+
import { _ as _slicedToArray } from './slicedToArray-fa9240c4.js';
|
|
3
|
+
import { _ as _extends } from './extends-f866c8d0.js';
|
|
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-5db919a6.js';
|
|
14
|
+
import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
15
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
16
|
+
import './es6.string.iterator-2efae22d.js';
|
|
17
|
+
import './_to-object-62924b74.js';
|
|
18
|
+
import './_export-9029ebab.js';
|
|
19
|
+
import './web.dom.iterable-89515070.js';
|
|
4
20
|
import './_library-528f1934.js';
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './_object-pie-
|
|
9
|
-
import
|
|
10
|
-
import '
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
13
|
-
import '
|
|
14
|
-
import './
|
|
15
|
-
import '
|
|
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';
|
|
21
|
-
import 'react-bootstrap/Card';
|
|
22
|
-
import { m as moment } from './moment-e2f9b20c.js';
|
|
21
|
+
import './core.get-iterator-method-6636b3ef.js';
|
|
22
|
+
import './_set-species-a4b3fe39.js';
|
|
23
|
+
import './_iter-detect-60cd145f.js';
|
|
24
|
+
import './_object-pie-33c40e79.js';
|
|
25
|
+
import './toConsumableArray-bd01c637.js';
|
|
26
|
+
import 'react-bootstrap';
|
|
27
|
+
import './index.es-c6222053.js';
|
|
28
|
+
import './visibility-sensor-082c757b.js';
|
|
29
|
+
import 'react-dom';
|
|
30
|
+
import './index-669ff425.js';
|
|
31
|
+
import 'prop-types';
|
|
23
32
|
import 'next/router';
|
|
24
|
-
import './
|
|
33
|
+
import './index-752d1dae.js';
|
|
34
|
+
import './main-decc48f4.js';
|
|
35
|
+
import './entities-932b50cf.js';
|
|
36
|
+
import './ADInfeed-bf7de12d.js';
|
|
37
|
+
import './stringify-22907f56.js';
|
|
38
|
+
import 'react-bootstrap/Card';
|
|
39
|
+
import './AdSlot.js';
|
|
25
40
|
import './debounce-1a993acf.js';
|
|
26
|
-
import './
|
|
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-35ff7b4f.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';
|
|
37
|
-
import './Segment.js';
|
|
41
|
+
import './isSymbol-807e927e.js';
|
|
38
42
|
import './Beam.js';
|
|
39
|
-
import './
|
|
40
|
-
import './
|
|
41
|
-
import './lodash-
|
|
42
|
-
import './ADlgInfeed-
|
|
43
|
+
import './Segment.js';
|
|
44
|
+
import './AuthorComponent-22790017.js';
|
|
45
|
+
import './lodash-ad27652f.js';
|
|
46
|
+
import './ADlgInfeed-3ac04591.js';
|
|
43
47
|
import './getContentCategory-15dcc413.js';
|
|
44
|
-
import './AuthorComponent-00f13201.js';
|
|
45
|
-
import { B as BlockContent } from './BlockContent-c409aca5.js';
|
|
46
|
-
import { s as smoothscroll } from './smoothscroll-4b699764.js';
|
|
47
|
-
import './GroupDeck.js';
|
|
48
|
-
import 'react-bootstrap';
|
|
49
48
|
import './timeDifferenceCalc.js';
|
|
50
|
-
import
|
|
51
|
-
import '
|
|
52
|
-
import './
|
|
53
|
-
import '
|
|
54
|
-
import
|
|
55
|
-
import './
|
|
56
|
-
import './
|
|
49
|
+
import 'react-bootstrap/Breadcrumb';
|
|
50
|
+
import 'react-bootstrap/Carousel';
|
|
51
|
+
import './util-3ab476bf.js';
|
|
52
|
+
import './typeof-668f30cd.js';
|
|
53
|
+
import './_is-array-46713c19.js';
|
|
54
|
+
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
55
|
+
import './GroupDeck.js';
|
|
57
56
|
import 'react-bootstrap/Pagination';
|
|
57
|
+
import 'react-bootstrap/Button';
|
|
58
|
+
import 'react-bootstrap/Row';
|
|
59
|
+
import 'react-bootstrap/Col';
|
|
58
60
|
import 'next/head';
|
|
61
|
+
import './inherits-75d6495f.js';
|
|
62
|
+
import './_object-sap-108a1939.js';
|
|
63
|
+
import './define-property-f2d6f244.js';
|
|
64
|
+
import './index.esm-57f377a5.js';
|
|
65
|
+
import './iconBase-602d52fe.js';
|
|
59
66
|
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
|
-
});
|
|
1262
67
|
|
|
1263
68
|
var ImageSlider = function ImageSlider(props) {
|
|
1264
69
|
var innerSlider = useRef(null);
|
|
@@ -1364,61 +169,61 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
1364
169
|
}, []);
|
|
1365
170
|
|
|
1366
171
|
var variant = 'black';
|
|
1367
|
-
return
|
|
1368
|
-
|
|
172
|
+
return React.createElement(
|
|
173
|
+
React.Fragment,
|
|
1369
174
|
null,
|
|
1370
|
-
|
|
175
|
+
React.createElement(
|
|
1371
176
|
'div',
|
|
1372
177
|
{ ref: viewableWindow, id: 'vid-slider', className: 'col' },
|
|
1373
|
-
|
|
178
|
+
React.createElement(
|
|
1374
179
|
'div',
|
|
1375
180
|
{ className: 'row' },
|
|
1376
|
-
showScroller &&
|
|
181
|
+
showScroller && React.createElement(
|
|
1377
182
|
'div',
|
|
1378
183
|
{ onClick: function onClick(e) {
|
|
1379
184
|
return scrollSlider(e, 'prev');
|
|
1380
185
|
}, className: 'tile__slider-prev', style: { color: variant } },
|
|
1381
|
-
|
|
186
|
+
React.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow left' })
|
|
1382
187
|
),
|
|
1383
|
-
showScroller &&
|
|
188
|
+
showScroller && React.createElement(
|
|
1384
189
|
'div',
|
|
1385
190
|
{ onClick: function onClick(e) {
|
|
1386
191
|
return scrollSlider(e, 'next');
|
|
1387
192
|
}, className: 'tile__slider-next', style: { color: variant } },
|
|
1388
|
-
|
|
193
|
+
React.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow right' })
|
|
1389
194
|
),
|
|
1390
|
-
|
|
195
|
+
React.createElement(
|
|
1391
196
|
'div',
|
|
1392
197
|
{ ref: innerSlider, className: 'row__inner' },
|
|
1393
198
|
props.data.slides.map(function (img, index) {
|
|
1394
199
|
var thumbnail = urlFor(img.slideshowImage).width(250);
|
|
1395
200
|
if (!img.slideshowImage.link) {
|
|
1396
|
-
return
|
|
201
|
+
return React.createElement(
|
|
1397
202
|
'div',
|
|
1398
203
|
{ ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
|
|
1399
|
-
|
|
204
|
+
React.createElement(
|
|
1400
205
|
'div',
|
|
1401
206
|
{ className: 'tile__media' },
|
|
1402
|
-
|
|
207
|
+
React.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
1403
208
|
),
|
|
1404
|
-
|
|
209
|
+
React.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
1405
210
|
);
|
|
1406
211
|
} else {
|
|
1407
|
-
return
|
|
212
|
+
return React.createElement(
|
|
1408
213
|
'a',
|
|
1409
214
|
{ ref: tile, key: index, href: img.slideshowImage.link, target: img.slideshowImage.blank ? '_target' : '_self', className: 'tile', style: { width: tileSize + 'px' } },
|
|
1410
|
-
|
|
215
|
+
React.createElement(
|
|
1411
216
|
'div',
|
|
1412
217
|
{ className: 'tile__media' },
|
|
1413
|
-
|
|
218
|
+
React.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
1414
219
|
),
|
|
1415
|
-
|
|
220
|
+
React.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
1416
221
|
);
|
|
1417
222
|
}
|
|
1418
223
|
})
|
|
1419
224
|
)
|
|
1420
225
|
),
|
|
1421
|
-
|
|
226
|
+
React.createElement(
|
|
1422
227
|
'style',
|
|
1423
228
|
{ jsx: 'true' },
|
|
1424
229
|
'\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 '
|
|
@@ -1441,95 +246,95 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
1441
246
|
pageview = _ref.pageview,
|
|
1442
247
|
page = _ref.page;
|
|
1443
248
|
|
|
1444
|
-
return
|
|
1445
|
-
|
|
249
|
+
return React.createElement(
|
|
250
|
+
React.Fragment,
|
|
1446
251
|
null,
|
|
1447
|
-
|
|
1448
|
-
|
|
252
|
+
React.createElement(Breadcrumbs, null),
|
|
253
|
+
React.createElement(
|
|
1449
254
|
'div',
|
|
1450
255
|
{ className: 'partners-page' },
|
|
1451
|
-
|
|
256
|
+
React.createElement(
|
|
1452
257
|
'div',
|
|
1453
258
|
{ className: 'my-5 partner-logo-wrap', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' } },
|
|
1454
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.link ?
|
|
259
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.link ? React.createElement(
|
|
1455
260
|
'a',
|
|
1456
261
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%' }, href: partnerDetails.thumbnail.link, target: partnerDetails.thumbnail.blank ? '_blank' : '' },
|
|
1457
|
-
|
|
262
|
+
React.createElement(
|
|
1458
263
|
'figure',
|
|
1459
264
|
{ style: { width: '100%', textAlign: 'center' } },
|
|
1460
|
-
|
|
265
|
+
React.createElement('img', {
|
|
1461
266
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
1462
267
|
style: { maxWidth: '100%' },
|
|
1463
268
|
src: partnerDetails.thumbnail ? urlFor(client, partnerDetails.thumbnail.asset) : '' }),
|
|
1464
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption &&
|
|
269
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React.createElement(
|
|
1465
270
|
'figcaption',
|
|
1466
271
|
null,
|
|
1467
272
|
partnerDetails.thumbnail.caption
|
|
1468
273
|
)
|
|
1469
274
|
)
|
|
1470
|
-
) :
|
|
275
|
+
) : React.createElement(
|
|
1471
276
|
'figure',
|
|
1472
277
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%', textAlign: 'center' } },
|
|
1473
|
-
|
|
278
|
+
React.createElement('img', {
|
|
1474
279
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
1475
280
|
style: { maxWidth: '100%' },
|
|
1476
281
|
src: partnerDetails.thumbnail ? urlFor(client, partnerDetails.thumbnail.asset) : '' }),
|
|
1477
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption &&
|
|
282
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React.createElement(
|
|
1478
283
|
'figcaption',
|
|
1479
284
|
null,
|
|
1480
285
|
partnerDetails.thumbnail.caption
|
|
1481
286
|
)
|
|
1482
287
|
),
|
|
1483
|
-
|
|
288
|
+
React.createElement(
|
|
1484
289
|
'style',
|
|
1485
290
|
{ jsx: 'true' },
|
|
1486
291
|
'\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 '
|
|
1487
292
|
),
|
|
1488
|
-
partnerDetails.description &&
|
|
293
|
+
partnerDetails.description && React.createElement(
|
|
1489
294
|
'div',
|
|
1490
295
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
1491
|
-
|
|
296
|
+
React.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
1492
297
|
)
|
|
1493
298
|
),
|
|
1494
|
-
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides &&
|
|
299
|
+
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React.createElement(
|
|
1495
300
|
'div',
|
|
1496
301
|
{ className: 'mb-4', style: { padding: '0 15px' } },
|
|
1497
|
-
partnerDetails.affiliates[0].title &&
|
|
302
|
+
partnerDetails.affiliates[0].title && React.createElement(
|
|
1498
303
|
'h2',
|
|
1499
304
|
{ className: 'bb-gold' },
|
|
1500
305
|
partnerDetails.affiliates[0].title
|
|
1501
306
|
),
|
|
1502
|
-
|
|
307
|
+
React.createElement(ImageSlider, { client: client, data: partnerDetails.affiliates[0] })
|
|
1503
308
|
),
|
|
1504
|
-
features.length > 0 &&
|
|
309
|
+
features.length > 0 && React.createElement(
|
|
1505
310
|
'div',
|
|
1506
311
|
{ className: ' mb-5' },
|
|
1507
|
-
|
|
312
|
+
React.createElement(Feature, { dataset: features, client: client })
|
|
1508
313
|
),
|
|
1509
|
-
partnerDetails.twitter &&
|
|
1510
|
-
|
|
314
|
+
partnerDetails.twitter && React.createElement(
|
|
315
|
+
React.Fragment,
|
|
1511
316
|
null,
|
|
1512
|
-
|
|
317
|
+
React.createElement(
|
|
1513
318
|
'div',
|
|
1514
319
|
{ className: 'mb-5', style: { width: '100%', textAlign: 'center', padding: '0 15px', border: '2px solid #aaa', borderRadius: '15px' } },
|
|
1515
|
-
|
|
320
|
+
React.createElement(TwitterTimelineEmbed, { sourceType: 'url', url: partnerDetails.twitter, options: { height: 400 } })
|
|
1516
321
|
)
|
|
1517
322
|
),
|
|
1518
|
-
|
|
323
|
+
React.createElement(
|
|
1519
324
|
'div',
|
|
1520
325
|
null,
|
|
1521
|
-
posts && posts.length > 0 &&
|
|
1522
|
-
|
|
326
|
+
posts && posts.length > 0 && React.createElement(
|
|
327
|
+
React.Fragment,
|
|
1523
328
|
null,
|
|
1524
|
-
|
|
329
|
+
React.createElement(
|
|
1525
330
|
'h2',
|
|
1526
331
|
{ className: 'bb-gold mb-2' },
|
|
1527
332
|
'Latest from ',
|
|
1528
333
|
partnerDetails.name
|
|
1529
334
|
),
|
|
1530
|
-
|
|
335
|
+
React.createElement('hr', null)
|
|
1531
336
|
),
|
|
1532
|
-
|
|
337
|
+
React.createElement(QueueDeckExpanded, {
|
|
1533
338
|
client: client,
|
|
1534
339
|
mapping: Settings.mapping,
|
|
1535
340
|
dataRecord: posts,
|