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