@mjhls/mjh-framework 1.0.854 → 1.0.855-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +30 -31
- package/dist/cjs/AD300x250x600.js +30 -31
- package/dist/cjs/AD728x90.js +33 -34
- package/dist/cjs/ADFloatingFooter.js +32 -33
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +32 -33
- package/dist/cjs/{ADInfeed-fb136f1d.js → ADInfeed-98c71bcd.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +32 -33
- package/dist/cjs/ADSponsoredResources.js +32 -33
- package/dist/cjs/ADWebcast.js +32 -33
- package/dist/cjs/ADWelcome.js +33 -34
- package/dist/cjs/{ADlgInfeed-d303d27e.js → ADlgInfeed-9de32585.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +35 -36
- package/dist/cjs/AdSlotsProvider.js +911 -20
- package/dist/cjs/AlgoliaSearch.js +1274 -1392
- package/dist/cjs/AlphabeticList.js +25 -26
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +59 -60
- package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
- package/dist/cjs/ArticleSeriesListing.js +61 -62
- package/dist/cjs/Auth.js +1506 -682
- package/dist/cjs/AuthWrapper.js +269 -311
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +33 -36
- package/dist/cjs/Column3.js +59 -62
- package/dist/cjs/ConferenceArticleCard.js +37 -38
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +103 -107
- package/dist/cjs/DeckQueue.js +88 -92
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-26baccf1.js} +34 -35
- package/dist/cjs/EventsDeck.js +152 -159
- package/dist/cjs/ExternalResources.js +80 -81
- package/dist/cjs/Feature.js +24 -26
- package/dist/cjs/ForbesHero.js +42 -43
- package/dist/cjs/GridContent.js +233 -238
- package/dist/cjs/GridHero.js +44 -45
- package/dist/cjs/GroupDeck.js +59 -60
- package/dist/cjs/HamMagazine.js +140 -145
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +72 -73
- package/dist/cjs/HorizontalHero.js +24 -25
- package/dist/cjs/IssueContentDeck.js +73 -78
- package/dist/cjs/IssueDeck.js +72 -77
- package/dist/cjs/IssueLanding.js +95 -96
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -41
- package/dist/cjs/MasterDeck.js +80 -81
- package/dist/cjs/MediaSeriesLanding.js +1125 -1116
- package/dist/cjs/NavDvm.js +74 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +147 -152
- package/dist/cjs/NavNative.js +139 -147
- package/dist/cjs/OncliveHero.js +19 -19
- package/dist/cjs/OncliveLargeHero.js +72 -73
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +1206 -109
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +42 -43
- package/dist/cjs/PubToc.js +15 -16
- package/dist/cjs/PublicationDeck.js +62 -67
- package/dist/cjs/PublicationLanding.js +135 -139
- package/dist/cjs/QueueDeckExpanded.js +310 -310
- package/dist/cjs/RecentNews.js +21 -22
- package/dist/cjs/RelatedContent.js +54 -55
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +38 -38
- package/dist/cjs/{SeriesSlider-cbab9f0f.js → SeriesSlider-8bbc989f.js} +39 -40
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +38 -39
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-cea213aa.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +59 -64
- package/dist/cjs/TaxonomyDescription.js +55 -56
- package/dist/cjs/TemplateNormal.js +74 -75
- package/dist/cjs/ThumbnailCard.js +21 -23
- package/dist/cjs/Ustream.js +29 -30
- package/dist/cjs/VerticalHero.js +16 -17
- package/dist/cjs/VideoProgramLandingPage.js +74 -78
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +49 -50
- package/dist/cjs/VideoSeriesListing.js +78 -79
- package/dist/cjs/View.js +263 -266
- package/dist/cjs/YahooHero.js +41 -42
- package/dist/cjs/YoutubeGroup.js +66 -67
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/{extends-29bdbc6d.js → extends-0a918631.js} +7 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +20 -20
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +45 -45
- package/dist/cjs/{getTargeting-faf37284.js → getTargeting-f1821260.js} +12 -12
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-d8793467.js → index-665ed72e.js} +1090 -1089
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/{index-8041a4eb.js → index-e2e62963.js} +1 -11
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +166 -171
- package/dist/cjs/{inherits-c2065b95.js → inherits-452ff02c.js} +19 -19
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +27 -27
- package/dist/esm/AD300x250x600.js +27 -27
- package/dist/esm/AD728x90.js +30 -30
- package/dist/esm/ADFloatingFooter.js +29 -29
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -29
- package/dist/esm/{ADInfeed-df562a07.js → ADInfeed-1cc9d817.js} +11 -11
- package/dist/esm/ADSkyscraper.js +29 -29
- package/dist/esm/ADSponsoredResources.js +29 -29
- package/dist/esm/ADWebcast.js +29 -29
- package/dist/esm/ADWelcome.js +30 -30
- package/dist/esm/{ADlgInfeed-53992119.js → ADlgInfeed-8c4f129e.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +27 -27
- package/dist/esm/AdSlotsProvider.js +909 -17
- package/dist/esm/AlgoliaSearch.js +703 -820
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +56 -56
- package/dist/esm/ArticleSeriesLandingPage.js +37 -37
- package/dist/esm/ArticleSeriesListing.js +57 -57
- package/dist/esm/Auth.js +1489 -661
- package/dist/esm/AuthWrapper.js +267 -308
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-34b16174.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-e9b4ddcf.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +30 -30
- package/dist/esm/Column3.js +56 -56
- package/dist/esm/ConferenceArticleCard.js +35 -35
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +98 -98
- package/dist/esm/DeckQueue.js +83 -83
- package/dist/esm/{Dfp-43f121ff.js → Dfp-b7236041.js} +22 -22
- package/dist/esm/EventsDeck.js +129 -129
- package/dist/esm/ExternalResources.js +74 -74
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +201 -201
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +116 -116
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +69 -69
- package/dist/esm/HorizontalHero.js +22 -22
- package/dist/esm/IssueContentDeck.js +61 -61
- package/dist/esm/IssueDeck.js +65 -65
- package/dist/esm/IssueLanding.js +92 -92
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +35 -35
- package/dist/esm/MasterDeck.js +77 -77
- package/dist/esm/MediaSeriesLanding.js +853 -841
- package/dist/esm/NavDvm.js +59 -59
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +126 -126
- package/dist/esm/NavNative.js +116 -116
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +60 -60
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +1204 -107
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +39 -39
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +53 -53
- package/dist/esm/PublicationLanding.js +122 -122
- package/dist/esm/QueueDeckExpanded.js +275 -275
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +48 -48
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +13 -13
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +32 -32
- package/dist/esm/{SeriesSlider-5c62a578.js → SeriesSlider-a866bb21.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +34 -34
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-cd38ae60.js → SocialSearchComponent-03c3e869.js} +30 -30
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +54 -54
- package/dist/esm/TaxonomyDescription.js +50 -50
- package/dist/esm/TemplateNormal.js +70 -70
- package/dist/esm/ThumbnailCard.js +14 -14
- package/dist/esm/Ustream.js +26 -26
- package/dist/esm/VerticalHero.js +14 -14
- package/dist/esm/VideoProgramLandingPage.js +67 -67
- package/dist/esm/VideoSeriesCard.js +26 -26
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +42 -42
- package/dist/esm/VideoSeriesListing.js +74 -74
- package/dist/esm/View.js +248 -247
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +51 -51
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-fc1c2e29.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
- package/dist/esm/{extends-60e0e1c6.js → extends-6f2fcc99.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +14 -14
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -45
- package/dist/esm/{getTargeting-c3401fa7.js → getTargeting-bd800589.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-2446af28.js → index-41a678ea.js} +6 -6
- package/dist/esm/{index-35bdcc81.js → index-5f7e79e7.js} +10 -10
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/{index-ffedd1e8.js → index-8ea04db3.js} +1049 -1038
- package/dist/esm/{index-67e1773f.js → index-aaa2dae0.js} +2 -11
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +139 -141
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-a41fe93f.js → inherits-cf8dde54.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +110 -110
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/main-025fdc78.js +0 -973
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/main-b5c5aac1.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
|
@@ -1,76 +1,1173 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import React, { useRef, useState, useEffect } from 'react';
|
|
5
|
-
import { TwitterTimelineEmbed } from 'react-twitter-embed';
|
|
6
|
-
import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
|
|
7
|
-
import urlFor from './urlFor.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 { g as getSerializers } from './index-ffedd1e8.js';
|
|
13
|
-
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
14
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
15
|
-
import './es6.string.iterator-bc33758b.js';
|
|
16
|
-
import './_to-object-b50e61c3.js';
|
|
17
|
-
import './web.dom.iterable-4109ff68.js';
|
|
1
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
18
4
|
import './_library-528f1934.js';
|
|
19
|
-
import './
|
|
20
|
-
import './
|
|
21
|
-
import './
|
|
22
|
-
import './
|
|
23
|
-
import './
|
|
24
|
-
import '
|
|
25
|
-
import './
|
|
26
|
-
import './
|
|
27
|
-
import '
|
|
28
|
-
import './
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import './toConsumableArray-43aa614d.js';
|
|
7
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
8
|
+
import './_object-pie-33c40e79.js';
|
|
9
|
+
import { _ as _extends } from './extends-6f2fcc99.js';
|
|
10
|
+
import './_object-sap-964b6feb.js';
|
|
11
|
+
import './inherits-cf8dde54.js';
|
|
12
|
+
import './define-property-8af5f002.js';
|
|
13
|
+
import './web.dom.iterable-4439f05a.js';
|
|
14
|
+
import './typeof-6435ba1c.js';
|
|
15
|
+
import './_is-array-58e95429.js';
|
|
16
|
+
import React__default, { Component, useRef, useState, useEffect } from 'react';
|
|
29
17
|
import './events-6c3a7a63.js';
|
|
30
|
-
import '
|
|
31
|
-
import '
|
|
32
|
-
import '
|
|
33
|
-
import '
|
|
34
|
-
import './entities-932b50cf.js';
|
|
35
|
-
import './ADInfeed-df562a07.js';
|
|
18
|
+
import './index-41a678ea.js';
|
|
19
|
+
import PropTypes from 'prop-types';
|
|
20
|
+
import 'react-bootstrap/Row';
|
|
21
|
+
import 'react-bootstrap/Col';
|
|
36
22
|
import 'react-bootstrap/Card';
|
|
37
|
-
import './
|
|
38
|
-
import '
|
|
39
|
-
import './isSymbol-
|
|
40
|
-
import './
|
|
41
|
-
import './
|
|
42
|
-
import './
|
|
23
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
24
|
+
import 'next/router';
|
|
25
|
+
import './isSymbol-1981418f.js';
|
|
26
|
+
import './debounce-9207d8ee.js';
|
|
27
|
+
import './toNumber-2f7a84cd.js';
|
|
28
|
+
import './index.es-29c1cef5.js';
|
|
29
|
+
import 'react-dom';
|
|
30
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
31
|
+
import './index-73819142.js';
|
|
32
|
+
import urlFor from './urlFor.js';
|
|
33
|
+
import './index-5f7e79e7.js';
|
|
34
|
+
import './main-e4a934b2.js';
|
|
35
|
+
import './entities-7cc3bf45.js';
|
|
36
|
+
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
37
|
+
import './stringify-4330ccdc.js';
|
|
38
|
+
import { a as _asyncToGenerator, r as regenerator, _ as _Promise } from './asyncToGenerator-fc1c2e29.js';
|
|
43
39
|
import './Segment.js';
|
|
44
|
-
import './
|
|
45
|
-
import './
|
|
46
|
-
import './
|
|
40
|
+
import './Beam.js';
|
|
41
|
+
import './AdSlot.js';
|
|
42
|
+
import './ADInfeed-1cc9d817.js';
|
|
43
|
+
import './lodash-17fdfebb.js';
|
|
44
|
+
import './ADlgInfeed-8c4f129e.js';
|
|
47
45
|
import './getContentCategory-15dcc413.js';
|
|
48
|
-
import './
|
|
49
|
-
import 'react-bootstrap/
|
|
50
|
-
import '
|
|
46
|
+
import './AuthorComponent-34b16174.js';
|
|
47
|
+
import 'react-bootstrap/Button';
|
|
48
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
51
49
|
import './index-c7e2ac95.js';
|
|
52
|
-
import './
|
|
53
|
-
import './typeof-a286cf0c.js';
|
|
54
|
-
import './_is-array-3e99e06e.js';
|
|
55
|
-
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
50
|
+
import { s as smoothscroll } from './smoothscroll-0cd4c7a6.js';
|
|
56
51
|
import './GroupDeck.js';
|
|
57
|
-
import '
|
|
52
|
+
import 'react-bootstrap';
|
|
53
|
+
import './timeDifferenceCalc.js';
|
|
54
|
+
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
55
|
+
import './iconBase-602d52fe.js';
|
|
56
|
+
import './index.esm-29e48d38.js';
|
|
57
|
+
import { g as getSerializers } from './index-8ea04db3.js';
|
|
58
|
+
import './util-7700fc59.js';
|
|
59
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
58
60
|
import 'next/head';
|
|
59
61
|
import 'react-share';
|
|
60
|
-
import './
|
|
62
|
+
import './SocialShare.js';
|
|
63
|
+
import './_object-to-array-7e804fce.js';
|
|
61
64
|
import 'react-bootstrap/Pagination';
|
|
62
|
-
import 'react-bootstrap/Button';
|
|
63
|
-
import 'react-bootstrap/Row';
|
|
64
|
-
import 'react-bootstrap/Col';
|
|
65
|
-
import './inherits-a41fe93f.js';
|
|
66
|
-
import './_object-sap-f353c2a9.js';
|
|
67
|
-
import './define-property-fe54dc9f.js';
|
|
68
|
-
import './index.esm-3fdda599.js';
|
|
69
|
-
import './iconBase-602d52fe.js';
|
|
70
65
|
import 'react-bootstrap/Figure';
|
|
71
66
|
import 'react-bootstrap/OverlayTrigger';
|
|
72
67
|
import 'react-bootstrap/Tooltip';
|
|
73
68
|
import 'react-bootstrap/Popover';
|
|
69
|
+
import { _ as _defineProperty, b as _inherits, c as _classCallCheck, d as _possibleConstructorReturn, e as _getPrototypeOf, g as _createClass } from './inherits-77d5e4fc.js';
|
|
70
|
+
import 'react-bootstrap/Carousel';
|
|
71
|
+
import Feature from './Feature.js';
|
|
72
|
+
import 'react-bootstrap/Breadcrumb';
|
|
73
|
+
import Breadcrumbs from './Breadcrumbs.js';
|
|
74
|
+
|
|
75
|
+
var isRequiredIf_1 = createCommonjsModule(function (module, exports) {
|
|
76
|
+
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.
|
|
77
|
+
}};exports.default=isRequiredIf;
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
var isRequiredIf = unwrapExports(isRequiredIf_1);
|
|
83
|
+
|
|
84
|
+
var exenv = createCommonjsModule(function (module) {
|
|
85
|
+
/*!
|
|
86
|
+
Copyright (c) 2015 Jed Watson.
|
|
87
|
+
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
88
|
+
All rights reserved.
|
|
89
|
+
*/
|
|
90
|
+
/* global define */
|
|
91
|
+
|
|
92
|
+
(function () {
|
|
93
|
+
|
|
94
|
+
var canUseDOM = !!(
|
|
95
|
+
typeof window !== 'undefined' &&
|
|
96
|
+
window.document &&
|
|
97
|
+
window.document.createElement
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
var ExecutionEnvironment = {
|
|
101
|
+
|
|
102
|
+
canUseDOM: canUseDOM,
|
|
103
|
+
|
|
104
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
|
105
|
+
|
|
106
|
+
canUseEventListeners:
|
|
107
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
108
|
+
|
|
109
|
+
canUseViewport: canUseDOM && !!window.screen
|
|
110
|
+
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
if ( module.exports) {
|
|
114
|
+
module.exports = ExecutionEnvironment;
|
|
115
|
+
} else {
|
|
116
|
+
window.ExecutionEnvironment = ExecutionEnvironment;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
}());
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
var twitterWidgetJs = 'https://platform.twitter.com/widgets.js';
|
|
123
|
+
|
|
124
|
+
var TwitterTimelineEmbed =
|
|
125
|
+
/*#__PURE__*/
|
|
126
|
+
function (_Component) {
|
|
127
|
+
_inherits(TwitterTimelineEmbed, _Component);
|
|
128
|
+
|
|
129
|
+
function TwitterTimelineEmbed(props) {
|
|
130
|
+
var _this;
|
|
131
|
+
|
|
132
|
+
_classCallCheck(this, TwitterTimelineEmbed);
|
|
133
|
+
|
|
134
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTimelineEmbed).call(this, props));
|
|
135
|
+
_this.state = {
|
|
136
|
+
isLoading: true
|
|
137
|
+
};
|
|
138
|
+
return _this;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
_createClass(TwitterTimelineEmbed, [{
|
|
142
|
+
key: "buildChromeOptions",
|
|
143
|
+
value: function buildChromeOptions(options) {
|
|
144
|
+
options.chrome = '';
|
|
145
|
+
|
|
146
|
+
if (this.props.noHeader) {
|
|
147
|
+
options.chrome = options.chrome + ' noheader';
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (this.props.noFooter) {
|
|
151
|
+
options.chrome = options.chrome + ' nofooter';
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if (this.props.noBorders) {
|
|
155
|
+
options.chrome = options.chrome + ' noborders';
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (this.props.noScrollbar) {
|
|
159
|
+
options.chrome = options.chrome + ' noscrollbar';
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
if (this.props.transparent) {
|
|
163
|
+
options.chrome = options.chrome + ' transparent';
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
return options;
|
|
167
|
+
}
|
|
168
|
+
}, {
|
|
169
|
+
key: "buildOptions",
|
|
170
|
+
value: function buildOptions() {
|
|
171
|
+
var options = Object.assign({}, this.props.options);
|
|
172
|
+
|
|
173
|
+
if (this.props.autoHeight) {
|
|
174
|
+
options.height = this.refs.embedContainer.parentNode.offsetHeight;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
options = Object.assign({}, options, {
|
|
178
|
+
theme: this.props.theme,
|
|
179
|
+
linkColor: this.props.linkColor,
|
|
180
|
+
borderColor: this.props.borderColor,
|
|
181
|
+
lang: this.props.lang
|
|
182
|
+
});
|
|
183
|
+
return options;
|
|
184
|
+
}
|
|
185
|
+
}, {
|
|
186
|
+
key: "renderWidget",
|
|
187
|
+
value: function renderWidget(options) {
|
|
188
|
+
var _this2 = this;
|
|
189
|
+
|
|
190
|
+
var onLoad = this.props.onLoad;
|
|
191
|
+
|
|
192
|
+
if (!this.isMountCanceled) {
|
|
193
|
+
window.twttr.widgets.createTimeline({
|
|
194
|
+
sourceType: this.props.sourceType,
|
|
195
|
+
screenName: this.props.screenName,
|
|
196
|
+
userId: this.props.userId,
|
|
197
|
+
ownerScreenName: this.props.ownerScreenName,
|
|
198
|
+
slug: this.props.slug,
|
|
199
|
+
id: this.props.id || this.props.widgetId,
|
|
200
|
+
url: this.props.url
|
|
201
|
+
}, this.refs.embedContainer, options).then(function (element) {
|
|
202
|
+
_this2.setState({
|
|
203
|
+
isLoading: false
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
if (onLoad) {
|
|
207
|
+
onLoad(element);
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}, {
|
|
213
|
+
key: "componentDidMount",
|
|
214
|
+
value: function componentDidMount() {
|
|
215
|
+
var _this3 = this;
|
|
216
|
+
|
|
217
|
+
if (exenv.canUseDOM) {
|
|
218
|
+
var script = require('scriptjs');
|
|
219
|
+
|
|
220
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
221
|
+
if (!window.twttr) {
|
|
222
|
+
console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.');
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
var options = _this3.buildOptions();
|
|
227
|
+
/** Append chrome options */
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
options = _this3.buildChromeOptions(options);
|
|
231
|
+
|
|
232
|
+
_this3.renderWidget(options);
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}, {
|
|
237
|
+
key: "componentWillUnmount",
|
|
238
|
+
value: function componentWillUnmount() {
|
|
239
|
+
this.isMountCanceled = true;
|
|
240
|
+
}
|
|
241
|
+
}, {
|
|
242
|
+
key: "render",
|
|
243
|
+
value: function render() {
|
|
244
|
+
var isLoading = this.state.isLoading;
|
|
245
|
+
var placeholder = this.props.placeholder;
|
|
246
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
247
|
+
ref: "embedContainer"
|
|
248
|
+
}));
|
|
249
|
+
}
|
|
250
|
+
}]);
|
|
251
|
+
|
|
252
|
+
return TwitterTimelineEmbed;
|
|
253
|
+
}(Component);
|
|
254
|
+
|
|
255
|
+
_defineProperty(TwitterTimelineEmbed, "propTypes", {
|
|
256
|
+
/**
|
|
257
|
+
* This can be either of profile, likes, list, collection, URL, widget
|
|
258
|
+
*/
|
|
259
|
+
sourceType: PropTypes.oneOf(['profile', 'likes', 'list', 'collection', 'url', 'widget']).isRequired,
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* username of twitter handle as String
|
|
263
|
+
*/
|
|
264
|
+
screenName: isRequiredIf(PropTypes.string, function (props) {
|
|
265
|
+
return !props.hasOwnProperty('userId') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
266
|
+
}),
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* UserId of twitter handle as number
|
|
270
|
+
*/
|
|
271
|
+
userId: isRequiredIf(PropTypes.number, function (props) {
|
|
272
|
+
return !props.hasOwnProperty('screenName') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
273
|
+
}),
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* To show list, used along with slug
|
|
277
|
+
*/
|
|
278
|
+
ownerScreenName: isRequiredIf(PropTypes.string, function (props) {
|
|
279
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
280
|
+
}),
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* To show list, used along with ownerScreenName
|
|
284
|
+
*/
|
|
285
|
+
slug: isRequiredIf(PropTypes.string, function (props) {
|
|
286
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
287
|
+
}),
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* To show list, unique list id
|
|
291
|
+
* Also used with collections, in that case its valid collection id
|
|
292
|
+
*/
|
|
293
|
+
id: isRequiredIf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]), function (props) {
|
|
294
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('ownerScreenName') && !props.hasOwnProperty('slug') || props.sourceType === 'collection';
|
|
295
|
+
}),
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* To show twitter content with url.
|
|
299
|
+
* Supported content includes profiles, likes, lists, and collections.
|
|
300
|
+
*/
|
|
301
|
+
url: isRequiredIf(PropTypes.string, function (props) {
|
|
302
|
+
return props.sourceType === 'url';
|
|
303
|
+
}),
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* To show custom widget
|
|
307
|
+
*/
|
|
308
|
+
widgetId: isRequiredIf(PropTypes.string, function (props) {
|
|
309
|
+
return props.sourceType === 'widget';
|
|
310
|
+
}),
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Additional options to pass to twitter widget plugin
|
|
314
|
+
*/
|
|
315
|
+
options: PropTypes.object,
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Automatically fit into parent container height
|
|
319
|
+
*/
|
|
320
|
+
autoHeight: PropTypes.bool,
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* With dark or light theme
|
|
324
|
+
*/
|
|
325
|
+
theme: PropTypes.oneOf(['dark', 'light']),
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* With custom link colors. Note: Only Hex colors are supported.
|
|
329
|
+
*/
|
|
330
|
+
linkColor: PropTypes.string,
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* With custom border colors. Note: Only Hex colors are supported.
|
|
334
|
+
*/
|
|
335
|
+
borderColor: PropTypes.string,
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Hide the header from timeline
|
|
339
|
+
*/
|
|
340
|
+
noHeader: PropTypes.bool,
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Hide the footer from timeline
|
|
344
|
+
*/
|
|
345
|
+
noFooter: PropTypes.bool,
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Hide the border from timeline
|
|
349
|
+
*/
|
|
350
|
+
noBorders: PropTypes.bool,
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Hide the scrollbars
|
|
354
|
+
*/
|
|
355
|
+
noScrollbar: PropTypes.bool,
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Enable Transparancy
|
|
359
|
+
*/
|
|
360
|
+
transparent: PropTypes.bool,
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Custom language code. Supported codes here: https://developer.twitter.com/en/docs/twitter-for-websites/twitter-for-websites-supported-languages/overview.html
|
|
364
|
+
*/
|
|
365
|
+
lang: PropTypes.string,
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Placeholder while tweet is loading
|
|
369
|
+
*/
|
|
370
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Function to execute after load, return html element
|
|
374
|
+
*/
|
|
375
|
+
onLoad: PropTypes.func
|
|
376
|
+
});
|
|
377
|
+
|
|
378
|
+
var TwitterShareButton =
|
|
379
|
+
/*#__PURE__*/
|
|
380
|
+
function (_Component) {
|
|
381
|
+
_inherits(TwitterShareButton, _Component);
|
|
382
|
+
|
|
383
|
+
function TwitterShareButton(props) {
|
|
384
|
+
var _this;
|
|
385
|
+
|
|
386
|
+
_classCallCheck(this, TwitterShareButton);
|
|
387
|
+
|
|
388
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterShareButton).call(this, props));
|
|
389
|
+
_this.state = {
|
|
390
|
+
isLoading: true
|
|
391
|
+
};
|
|
392
|
+
return _this;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
_createClass(TwitterShareButton, [{
|
|
396
|
+
key: "componentDidMount",
|
|
397
|
+
value: function componentDidMount() {
|
|
398
|
+
var _this2 = this;
|
|
399
|
+
|
|
400
|
+
var onLoad = this.props.onLoad;
|
|
401
|
+
|
|
402
|
+
if (exenv.canUseDOM) {
|
|
403
|
+
var script = require('scriptjs');
|
|
404
|
+
|
|
405
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
406
|
+
if (!window.twttr) {
|
|
407
|
+
console.error('Failure to load window.twttr in TwitterShareButton, aborting load.');
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
if (!_this2.isMountCanceled) {
|
|
412
|
+
window.twttr.widgets.createShareButton(_this2.props.url, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
413
|
+
_this2.setState({
|
|
414
|
+
isLoading: false
|
|
415
|
+
});
|
|
416
|
+
|
|
417
|
+
if (onLoad) {
|
|
418
|
+
onLoad(element);
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}, {
|
|
426
|
+
key: "componentWillUnmount",
|
|
427
|
+
value: function componentWillUnmount() {
|
|
428
|
+
this.isMountCanceled = true;
|
|
429
|
+
}
|
|
430
|
+
}, {
|
|
431
|
+
key: "render",
|
|
432
|
+
value: function render() {
|
|
433
|
+
var isLoading = this.state.isLoading;
|
|
434
|
+
var placeholder = this.props.placeholder;
|
|
435
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
436
|
+
ref: "embedContainer"
|
|
437
|
+
}));
|
|
438
|
+
}
|
|
439
|
+
}]);
|
|
440
|
+
|
|
441
|
+
return TwitterShareButton;
|
|
442
|
+
}(Component);
|
|
443
|
+
|
|
444
|
+
_defineProperty(TwitterShareButton, "propTypes", {
|
|
445
|
+
/**
|
|
446
|
+
* Url for sharing
|
|
447
|
+
*/
|
|
448
|
+
url: PropTypes.string.isRequired,
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Additional options for overriding config. Details at : https://dev.twitter.com/web/tweet-button/parameters
|
|
452
|
+
*/
|
|
453
|
+
options: PropTypes.object,
|
|
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 TwitterFollowButton =
|
|
467
|
+
/*#__PURE__*/
|
|
468
|
+
function (_Component) {
|
|
469
|
+
_inherits(TwitterFollowButton, _Component);
|
|
470
|
+
|
|
471
|
+
function TwitterFollowButton(props) {
|
|
472
|
+
var _this;
|
|
473
|
+
|
|
474
|
+
_classCallCheck(this, TwitterFollowButton);
|
|
475
|
+
|
|
476
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterFollowButton).call(this, props));
|
|
477
|
+
_this.state = {
|
|
478
|
+
isLoading: true
|
|
479
|
+
};
|
|
480
|
+
return _this;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
_createClass(TwitterFollowButton, [{
|
|
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 TwitterFollowButton, aborting load.');
|
|
496
|
+
return;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
if (!_this2.isMountCanceled) {
|
|
500
|
+
window.twttr.widgets.createFollowButton(_this2.props.screenName, _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__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
524
|
+
ref: "embedContainer"
|
|
525
|
+
}));
|
|
526
|
+
}
|
|
527
|
+
}]);
|
|
528
|
+
|
|
529
|
+
return TwitterFollowButton;
|
|
530
|
+
}(Component);
|
|
531
|
+
|
|
532
|
+
_defineProperty(TwitterFollowButton, "propTypes", {
|
|
533
|
+
/**
|
|
534
|
+
* Username of twitter user which will be followed on click
|
|
535
|
+
*/
|
|
536
|
+
screenName: PropTypes.string.isRequired,
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* Additional options to be added to the button
|
|
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 TwitterHashtagButton =
|
|
555
|
+
/*#__PURE__*/
|
|
556
|
+
function (_Component) {
|
|
557
|
+
_inherits(TwitterHashtagButton, _Component);
|
|
558
|
+
|
|
559
|
+
function TwitterHashtagButton(props) {
|
|
560
|
+
var _this;
|
|
561
|
+
|
|
562
|
+
_classCallCheck(this, TwitterHashtagButton);
|
|
563
|
+
|
|
564
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterHashtagButton).call(this, props));
|
|
565
|
+
_this.state = {
|
|
566
|
+
isLoading: true
|
|
567
|
+
};
|
|
568
|
+
return _this;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
_createClass(TwitterHashtagButton, [{
|
|
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 TwitterHashtagButton, aborting load.');
|
|
584
|
+
return;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
if (!_this2.isMountCanceled) {
|
|
588
|
+
window.twttr.widgets.createHashtagButton(_this2.props.tag, _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__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
612
|
+
ref: "embedContainer"
|
|
613
|
+
}));
|
|
614
|
+
}
|
|
615
|
+
}]);
|
|
616
|
+
|
|
617
|
+
return TwitterHashtagButton;
|
|
618
|
+
}(Component);
|
|
619
|
+
|
|
620
|
+
_defineProperty(TwitterHashtagButton, "propTypes", {
|
|
621
|
+
/**
|
|
622
|
+
* Tag name for hashtag button
|
|
623
|
+
*/
|
|
624
|
+
tag: 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 TwitterMentionButton =
|
|
643
|
+
/*#__PURE__*/
|
|
644
|
+
function (_Component) {
|
|
645
|
+
_inherits(TwitterMentionButton, _Component);
|
|
646
|
+
|
|
647
|
+
function TwitterMentionButton(props) {
|
|
648
|
+
var _this;
|
|
649
|
+
|
|
650
|
+
_classCallCheck(this, TwitterMentionButton);
|
|
651
|
+
|
|
652
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMentionButton).call(this, props));
|
|
653
|
+
_this.state = {
|
|
654
|
+
isLoading: true
|
|
655
|
+
};
|
|
656
|
+
return _this;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
_createClass(TwitterMentionButton, [{
|
|
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 TwitterMentionButton, aborting load.');
|
|
672
|
+
return;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
if (!_this2.isMountCanceled) {
|
|
676
|
+
window.twttr.widgets.createMentionButton(_this2.props.screenName, _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__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
700
|
+
ref: "embedContainer"
|
|
701
|
+
}));
|
|
702
|
+
}
|
|
703
|
+
}]);
|
|
704
|
+
|
|
705
|
+
return TwitterMentionButton;
|
|
706
|
+
}(Component);
|
|
707
|
+
|
|
708
|
+
_defineProperty(TwitterMentionButton, "propTypes", {
|
|
709
|
+
/**
|
|
710
|
+
* Username to which you will need to tweet
|
|
711
|
+
*/
|
|
712
|
+
screenName: PropTypes.string.isRequired,
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Additional options for overriding config.
|
|
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 TwitterTweetEmbed =
|
|
731
|
+
/*#__PURE__*/
|
|
732
|
+
function (_Component) {
|
|
733
|
+
_inherits(TwitterTweetEmbed, _Component);
|
|
734
|
+
|
|
735
|
+
function TwitterTweetEmbed(props) {
|
|
736
|
+
var _this;
|
|
737
|
+
|
|
738
|
+
_classCallCheck(this, TwitterTweetEmbed);
|
|
739
|
+
|
|
740
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTweetEmbed).call(this, props));
|
|
741
|
+
_this.state = {
|
|
742
|
+
isLoading: true
|
|
743
|
+
};
|
|
744
|
+
return _this;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
_createClass(TwitterTweetEmbed, [{
|
|
748
|
+
key: "renderWidget",
|
|
749
|
+
value: function renderWidget() {
|
|
750
|
+
var _this2 = this;
|
|
751
|
+
|
|
752
|
+
var onLoad = this.props.onLoad;
|
|
753
|
+
|
|
754
|
+
if (!window.twttr) {
|
|
755
|
+
console.error('Failure to load window.twttr in TwitterTweetEmbed, aborting load.');
|
|
756
|
+
return;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
if (!this.isMountCanceled) {
|
|
760
|
+
window.twttr.widgets.createTweet(this.props.tweetId, this.refs.embedContainer, this.props.options).then(function (element) {
|
|
761
|
+
_this2.setState({
|
|
762
|
+
isLoading: false
|
|
763
|
+
});
|
|
764
|
+
|
|
765
|
+
if (onLoad) {
|
|
766
|
+
onLoad(element);
|
|
767
|
+
}
|
|
768
|
+
});
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
}, {
|
|
772
|
+
key: "componentDidMount",
|
|
773
|
+
value: function componentDidMount() {
|
|
774
|
+
var _this3 = this;
|
|
775
|
+
|
|
776
|
+
if (exenv.canUseDOM) {
|
|
777
|
+
var script = require('scriptjs');
|
|
778
|
+
|
|
779
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
780
|
+
_this3.renderWidget();
|
|
781
|
+
});
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
}, {
|
|
785
|
+
key: "componentWillUnmount",
|
|
786
|
+
value: function componentWillUnmount() {
|
|
787
|
+
this.isMountCanceled = true;
|
|
788
|
+
}
|
|
789
|
+
}, {
|
|
790
|
+
key: "render",
|
|
791
|
+
value: function render() {
|
|
792
|
+
var isLoading = this.state.isLoading;
|
|
793
|
+
var placeholder = this.props.placeholder;
|
|
794
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
795
|
+
ref: "embedContainer"
|
|
796
|
+
}));
|
|
797
|
+
}
|
|
798
|
+
}]);
|
|
799
|
+
|
|
800
|
+
return TwitterTweetEmbed;
|
|
801
|
+
}(Component);
|
|
802
|
+
|
|
803
|
+
_defineProperty(TwitterTweetEmbed, "propTypes", {
|
|
804
|
+
/**
|
|
805
|
+
* Tweet id that needs to be shown
|
|
806
|
+
*/
|
|
807
|
+
tweetId: PropTypes.string.isRequired,
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* Additional options to pass to twitter widget plugin
|
|
811
|
+
*/
|
|
812
|
+
options: PropTypes.object,
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* Placeholder while tweet is loading
|
|
816
|
+
*/
|
|
817
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Function to execute after load, return html element
|
|
821
|
+
*/
|
|
822
|
+
onLoad: PropTypes.func
|
|
823
|
+
});
|
|
824
|
+
|
|
825
|
+
var TwitterMomentShare =
|
|
826
|
+
/*#__PURE__*/
|
|
827
|
+
function (_Component) {
|
|
828
|
+
_inherits(TwitterMomentShare, _Component);
|
|
829
|
+
|
|
830
|
+
function TwitterMomentShare(props) {
|
|
831
|
+
var _this;
|
|
832
|
+
|
|
833
|
+
_classCallCheck(this, TwitterMomentShare);
|
|
834
|
+
|
|
835
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMomentShare).call(this, props));
|
|
836
|
+
_this.state = {
|
|
837
|
+
isLoading: true
|
|
838
|
+
};
|
|
839
|
+
return _this;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
_createClass(TwitterMomentShare, [{
|
|
843
|
+
key: "componentDidMount",
|
|
844
|
+
value: function componentDidMount() {
|
|
845
|
+
var _this2 = this;
|
|
846
|
+
|
|
847
|
+
var onLoad = this.props.onLoad;
|
|
848
|
+
|
|
849
|
+
if (exenv.canUseDOM) {
|
|
850
|
+
var script = require('scriptjs');
|
|
851
|
+
|
|
852
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
853
|
+
if (!window.twttr) {
|
|
854
|
+
console.error('Failure to load window.twttr in TwitterMomentShare, aborting load.');
|
|
855
|
+
return;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
if (!_this2.isMountCanceled) {
|
|
859
|
+
window.twttr.widgets.createMoment(_this2.props.momentId, _this2.refs.shareMoment, _this2.props.options).then(function (element) {
|
|
860
|
+
_this2.setState({
|
|
861
|
+
isLoading: false
|
|
862
|
+
});
|
|
863
|
+
|
|
864
|
+
if (onLoad) {
|
|
865
|
+
onLoad(element);
|
|
866
|
+
}
|
|
867
|
+
});
|
|
868
|
+
}
|
|
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__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
883
|
+
ref: "shareMoment"
|
|
884
|
+
}));
|
|
885
|
+
}
|
|
886
|
+
}]);
|
|
887
|
+
|
|
888
|
+
return TwitterMomentShare;
|
|
889
|
+
}(Component);
|
|
890
|
+
|
|
891
|
+
_defineProperty(TwitterMomentShare, "propTypes", {
|
|
892
|
+
/**
|
|
893
|
+
* id of Twitter moment to show
|
|
894
|
+
*/
|
|
895
|
+
momentId: PropTypes.string.isRequired,
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* Additional options for overriding config.
|
|
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 TwitterDMButton =
|
|
914
|
+
/*#__PURE__*/
|
|
915
|
+
function (_Component) {
|
|
916
|
+
_inherits(TwitterDMButton, _Component);
|
|
917
|
+
|
|
918
|
+
function TwitterDMButton(props) {
|
|
919
|
+
var _this;
|
|
920
|
+
|
|
921
|
+
_classCallCheck(this, TwitterDMButton);
|
|
922
|
+
|
|
923
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterDMButton).call(this, props));
|
|
924
|
+
_this.state = {
|
|
925
|
+
isLoading: true
|
|
926
|
+
};
|
|
927
|
+
return _this;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
_createClass(TwitterDMButton, [{
|
|
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 TwitterDMButton, aborting load.');
|
|
943
|
+
return;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
if (!_this2.isMountCanceled) {
|
|
947
|
+
window.twttr.widgets.createDMButton(_this2.props.id, _this2.refs.embedContainer, _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__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
971
|
+
ref: "embedContainer"
|
|
972
|
+
}));
|
|
973
|
+
}
|
|
974
|
+
}]);
|
|
975
|
+
|
|
976
|
+
return TwitterDMButton;
|
|
977
|
+
}(Component);
|
|
978
|
+
|
|
979
|
+
_defineProperty(TwitterDMButton, "propTypes", {
|
|
980
|
+
/**
|
|
981
|
+
* Twitter user id for DM button
|
|
982
|
+
*/
|
|
983
|
+
id: PropTypes.number.isRequired,
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* Additional options to be added to the button
|
|
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 TwitterVideoEmbed =
|
|
1002
|
+
/*#__PURE__*/
|
|
1003
|
+
function (_Component) {
|
|
1004
|
+
_inherits(TwitterVideoEmbed, _Component);
|
|
1005
|
+
|
|
1006
|
+
function TwitterVideoEmbed(props) {
|
|
1007
|
+
var _this;
|
|
1008
|
+
|
|
1009
|
+
_classCallCheck(this, TwitterVideoEmbed);
|
|
1010
|
+
|
|
1011
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterVideoEmbed).call(this, props));
|
|
1012
|
+
_this.state = {
|
|
1013
|
+
isLoading: true
|
|
1014
|
+
};
|
|
1015
|
+
return _this;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
_createClass(TwitterVideoEmbed, [{
|
|
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 TwitterVideoEmbed, aborting load.');
|
|
1031
|
+
return;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
if (!_this2.isMountCanceled) {
|
|
1035
|
+
window.twttr.widgets.createVideo(_this2.props.id, _this2.refs.embedContainer).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__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1059
|
+
ref: "embedContainer"
|
|
1060
|
+
}));
|
|
1061
|
+
}
|
|
1062
|
+
}]);
|
|
1063
|
+
|
|
1064
|
+
return TwitterVideoEmbed;
|
|
1065
|
+
}(Component);
|
|
1066
|
+
|
|
1067
|
+
_defineProperty(TwitterVideoEmbed, "propTypes", {
|
|
1068
|
+
/**
|
|
1069
|
+
* Id of video tweet.
|
|
1070
|
+
*/
|
|
1071
|
+
id: PropTypes.string.isRequired,
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* Placeholder while tweet is loading
|
|
1075
|
+
*/
|
|
1076
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* Function to execute after load, return html element
|
|
1080
|
+
*/
|
|
1081
|
+
onLoad: PropTypes.func
|
|
1082
|
+
});
|
|
1083
|
+
|
|
1084
|
+
var TwitterOnAirButton =
|
|
1085
|
+
/*#__PURE__*/
|
|
1086
|
+
function (_Component) {
|
|
1087
|
+
_inherits(TwitterOnAirButton, _Component);
|
|
1088
|
+
|
|
1089
|
+
function TwitterOnAirButton(props) {
|
|
1090
|
+
var _this;
|
|
1091
|
+
|
|
1092
|
+
_classCallCheck(this, TwitterOnAirButton);
|
|
1093
|
+
|
|
1094
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterOnAirButton).call(this, props));
|
|
1095
|
+
_this.state = {
|
|
1096
|
+
isLoading: true
|
|
1097
|
+
};
|
|
1098
|
+
return _this;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
_createClass(TwitterOnAirButton, [{
|
|
1102
|
+
key: "componentDidMount",
|
|
1103
|
+
value: function componentDidMount() {
|
|
1104
|
+
var _this2 = this;
|
|
1105
|
+
|
|
1106
|
+
var onLoad = this.props.onLoad;
|
|
1107
|
+
|
|
1108
|
+
if (exenv.canUseDOM) {
|
|
1109
|
+
var script = require('scriptjs');
|
|
1110
|
+
|
|
1111
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1112
|
+
if (!window.twttr) {
|
|
1113
|
+
console.error('Failure to load window.twttr in TwitterOnAirButton, aborting load.');
|
|
1114
|
+
return;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
if (!_this2.isMountCanceled) {
|
|
1118
|
+
window.twttr.widgets.createPeriscopeOnAirButton(_this2.props.username, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1119
|
+
_this2.setState({
|
|
1120
|
+
isLoading: false
|
|
1121
|
+
});
|
|
1122
|
+
|
|
1123
|
+
if (onLoad) {
|
|
1124
|
+
onLoad(element);
|
|
1125
|
+
}
|
|
1126
|
+
});
|
|
1127
|
+
}
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
}, {
|
|
1132
|
+
key: "componentWillUnmount",
|
|
1133
|
+
value: function componentWillUnmount() {
|
|
1134
|
+
this.isMountCanceled = true;
|
|
1135
|
+
}
|
|
1136
|
+
}, {
|
|
1137
|
+
key: "render",
|
|
1138
|
+
value: function render() {
|
|
1139
|
+
var isLoading = this.state.isLoading;
|
|
1140
|
+
var placeholder = this.props.placeholder;
|
|
1141
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1142
|
+
ref: "embedContainer"
|
|
1143
|
+
}));
|
|
1144
|
+
}
|
|
1145
|
+
}]);
|
|
1146
|
+
|
|
1147
|
+
return TwitterOnAirButton;
|
|
1148
|
+
}(Component);
|
|
1149
|
+
|
|
1150
|
+
_defineProperty(TwitterOnAirButton, "propTypes", {
|
|
1151
|
+
/**
|
|
1152
|
+
* Username for which you require periscope on air button
|
|
1153
|
+
*/
|
|
1154
|
+
username: PropTypes.string.isRequired,
|
|
1155
|
+
|
|
1156
|
+
/**
|
|
1157
|
+
* Additional options for overriding config.
|
|
1158
|
+
*/
|
|
1159
|
+
options: PropTypes.object,
|
|
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
|
+
});
|
|
74
1171
|
|
|
75
1172
|
var ImageSlider = function ImageSlider(props) {
|
|
76
1173
|
var innerSlider = useRef(null);
|
|
@@ -175,61 +1272,61 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
175
1272
|
}, []);
|
|
176
1273
|
|
|
177
1274
|
var variant = 'black';
|
|
178
|
-
return
|
|
179
|
-
|
|
1275
|
+
return React__default.createElement(
|
|
1276
|
+
React__default.Fragment,
|
|
180
1277
|
null,
|
|
181
|
-
|
|
1278
|
+
React__default.createElement(
|
|
182
1279
|
'div',
|
|
183
1280
|
{ ref: viewableWindow, id: 'vid-slider', className: 'col' },
|
|
184
|
-
|
|
1281
|
+
React__default.createElement(
|
|
185
1282
|
'div',
|
|
186
1283
|
{ className: 'row' },
|
|
187
|
-
showScroller &&
|
|
1284
|
+
showScroller && React__default.createElement(
|
|
188
1285
|
'div',
|
|
189
1286
|
{ onClick: function onClick(e) {
|
|
190
1287
|
return scrollSlider(e, 'prev');
|
|
191
1288
|
}, className: 'tile__slider-prev', style: { color: variant } },
|
|
192
|
-
|
|
1289
|
+
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow left' })
|
|
193
1290
|
),
|
|
194
|
-
showScroller &&
|
|
1291
|
+
showScroller && React__default.createElement(
|
|
195
1292
|
'div',
|
|
196
1293
|
{ onClick: function onClick(e) {
|
|
197
1294
|
return scrollSlider(e, 'next');
|
|
198
1295
|
}, className: 'tile__slider-next', style: { color: variant } },
|
|
199
|
-
|
|
1296
|
+
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow right' })
|
|
200
1297
|
),
|
|
201
|
-
|
|
1298
|
+
React__default.createElement(
|
|
202
1299
|
'div',
|
|
203
1300
|
{ ref: innerSlider, className: 'row__inner' },
|
|
204
1301
|
props.data.slides.map(function (img, index) {
|
|
205
1302
|
var thumbnail = urlFor({ client: client, source: img.slideshowImage, imageWidth: 250 });
|
|
206
1303
|
if (!img.slideshowImage.link) {
|
|
207
|
-
return
|
|
1304
|
+
return React__default.createElement(
|
|
208
1305
|
'div',
|
|
209
1306
|
{ ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
|
|
210
|
-
|
|
1307
|
+
React__default.createElement(
|
|
211
1308
|
'div',
|
|
212
1309
|
{ className: 'tile__media' },
|
|
213
|
-
|
|
1310
|
+
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
214
1311
|
),
|
|
215
|
-
|
|
1312
|
+
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
216
1313
|
);
|
|
217
1314
|
} else {
|
|
218
|
-
return
|
|
1315
|
+
return React__default.createElement(
|
|
219
1316
|
'a',
|
|
220
1317
|
{ ref: tile, key: index, href: img.slideshowImage.link, target: img.slideshowImage.blank ? '_target' : '_self', className: 'tile', style: { width: tileSize + 'px' } },
|
|
221
|
-
|
|
1318
|
+
React__default.createElement(
|
|
222
1319
|
'div',
|
|
223
1320
|
{ className: 'tile__media' },
|
|
224
|
-
|
|
1321
|
+
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
225
1322
|
),
|
|
226
|
-
|
|
1323
|
+
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
227
1324
|
);
|
|
228
1325
|
}
|
|
229
1326
|
})
|
|
230
1327
|
)
|
|
231
1328
|
),
|
|
232
|
-
|
|
1329
|
+
React__default.createElement(
|
|
233
1330
|
'style',
|
|
234
1331
|
{ jsx: 'true' },
|
|
235
1332
|
'\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 '
|
|
@@ -252,95 +1349,95 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
252
1349
|
pageview = _ref.pageview,
|
|
253
1350
|
page = _ref.page;
|
|
254
1351
|
|
|
255
|
-
return
|
|
256
|
-
|
|
1352
|
+
return React__default.createElement(
|
|
1353
|
+
React__default.Fragment,
|
|
257
1354
|
null,
|
|
258
|
-
|
|
259
|
-
|
|
1355
|
+
React__default.createElement(Breadcrumbs, null),
|
|
1356
|
+
React__default.createElement(
|
|
260
1357
|
'div',
|
|
261
1358
|
{ className: 'partners-page' },
|
|
262
|
-
|
|
1359
|
+
React__default.createElement(
|
|
263
1360
|
'div',
|
|
264
1361
|
{ className: 'my-5 partner-logo-wrap', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' } },
|
|
265
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.link ?
|
|
1362
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.link ? React__default.createElement(
|
|
266
1363
|
'a',
|
|
267
1364
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%' }, href: partnerDetails.thumbnail.link, target: partnerDetails.thumbnail.blank ? '_blank' : '' },
|
|
268
|
-
|
|
1365
|
+
React__default.createElement(
|
|
269
1366
|
'figure',
|
|
270
1367
|
{ style: { width: '100%', textAlign: 'center' } },
|
|
271
|
-
|
|
1368
|
+
React__default.createElement('img', {
|
|
272
1369
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
273
1370
|
style: { maxWidth: '100%' },
|
|
274
1371
|
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : '' }),
|
|
275
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption &&
|
|
1372
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default.createElement(
|
|
276
1373
|
'figcaption',
|
|
277
1374
|
null,
|
|
278
1375
|
partnerDetails.thumbnail.caption
|
|
279
1376
|
)
|
|
280
1377
|
)
|
|
281
|
-
) :
|
|
1378
|
+
) : React__default.createElement(
|
|
282
1379
|
'figure',
|
|
283
1380
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%', textAlign: 'center' } },
|
|
284
|
-
|
|
1381
|
+
React__default.createElement('img', {
|
|
285
1382
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
286
1383
|
style: { maxWidth: '100%' },
|
|
287
1384
|
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : '' }),
|
|
288
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption &&
|
|
1385
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default.createElement(
|
|
289
1386
|
'figcaption',
|
|
290
1387
|
null,
|
|
291
1388
|
partnerDetails.thumbnail.caption
|
|
292
1389
|
)
|
|
293
1390
|
),
|
|
294
|
-
|
|
1391
|
+
React__default.createElement(
|
|
295
1392
|
'style',
|
|
296
1393
|
{ jsx: 'true' },
|
|
297
1394
|
'\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 '
|
|
298
1395
|
),
|
|
299
|
-
partnerDetails.description &&
|
|
1396
|
+
partnerDetails.description && React__default.createElement(
|
|
300
1397
|
'div',
|
|
301
1398
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
302
|
-
|
|
1399
|
+
React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
303
1400
|
)
|
|
304
1401
|
),
|
|
305
|
-
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides &&
|
|
1402
|
+
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React__default.createElement(
|
|
306
1403
|
'div',
|
|
307
1404
|
{ className: 'mb-4', style: { padding: '0 15px' } },
|
|
308
|
-
partnerDetails.affiliates[0].title &&
|
|
1405
|
+
partnerDetails.affiliates[0].title && React__default.createElement(
|
|
309
1406
|
'h2',
|
|
310
1407
|
{ className: 'bb-gold' },
|
|
311
1408
|
partnerDetails.affiliates[0].title
|
|
312
1409
|
),
|
|
313
|
-
|
|
1410
|
+
React__default.createElement(ImageSlider, { client: client, data: partnerDetails.affiliates[0] })
|
|
314
1411
|
),
|
|
315
|
-
features.length > 0 &&
|
|
1412
|
+
features.length > 0 && React__default.createElement(
|
|
316
1413
|
'div',
|
|
317
1414
|
{ className: ' mb-5' },
|
|
318
|
-
|
|
1415
|
+
React__default.createElement(Feature, { dataset: features, client: client })
|
|
319
1416
|
),
|
|
320
|
-
partnerDetails.twitter &&
|
|
321
|
-
|
|
1417
|
+
partnerDetails.twitter && React__default.createElement(
|
|
1418
|
+
React__default.Fragment,
|
|
322
1419
|
null,
|
|
323
|
-
|
|
1420
|
+
React__default.createElement(
|
|
324
1421
|
'div',
|
|
325
1422
|
{ className: 'mb-5', style: { width: '100%', textAlign: 'center', padding: '0 15px', border: '2px solid #aaa', borderRadius: '15px' } },
|
|
326
|
-
|
|
1423
|
+
React__default.createElement(TwitterTimelineEmbed, { sourceType: 'url', url: partnerDetails.twitter, options: { height: 400 } })
|
|
327
1424
|
)
|
|
328
1425
|
),
|
|
329
|
-
|
|
1426
|
+
React__default.createElement(
|
|
330
1427
|
'div',
|
|
331
1428
|
null,
|
|
332
|
-
posts && posts.length > 0 &&
|
|
333
|
-
|
|
1429
|
+
posts && posts.length > 0 && React__default.createElement(
|
|
1430
|
+
React__default.Fragment,
|
|
334
1431
|
null,
|
|
335
|
-
|
|
1432
|
+
React__default.createElement(
|
|
336
1433
|
'h2',
|
|
337
1434
|
{ className: 'bb-gold mb-2' },
|
|
338
1435
|
'Latest from ',
|
|
339
1436
|
partnerDetails.name
|
|
340
1437
|
),
|
|
341
|
-
|
|
1438
|
+
React__default.createElement('hr', null)
|
|
342
1439
|
),
|
|
343
|
-
|
|
1440
|
+
React__default.createElement(QueueDeckExpanded, {
|
|
344
1441
|
client: client,
|
|
345
1442
|
mapping: Settings.mapping,
|
|
346
1443
|
dataRecord: posts,
|