@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,82 +1,1179 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var smoothscroll = require('./smoothscroll-99df7f93.js');
|
|
9
|
-
var urlFor = require('./urlFor.js');
|
|
10
|
-
var moment = require('./moment-aca40de1.js');
|
|
11
|
-
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
12
|
-
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
13
|
-
var Feature = require('./Feature.js');
|
|
14
|
-
var getSerializers = require('./index-d8793467.js');
|
|
15
|
-
var BlockContent = require('./BlockContent-36e54d77.js');
|
|
16
|
-
require('./_commonjsHelpers-06173234.js');
|
|
17
|
-
require('./es6.string.iterator-c2573ffd.js');
|
|
18
|
-
require('./_to-object-6de10e57.js');
|
|
19
|
-
require('./web.dom.iterable-46657b5c.js');
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
5
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
|
+
require('./_to-object-329a650b.js');
|
|
7
|
+
require('./es6.string.iterator-cc0bbaa4.js');
|
|
20
8
|
require('./_library-dd23b178.js');
|
|
21
|
-
require('./
|
|
22
|
-
require('./
|
|
23
|
-
require('./
|
|
24
|
-
require('./
|
|
25
|
-
require('./
|
|
26
|
-
require('
|
|
27
|
-
require('./
|
|
28
|
-
require('./
|
|
29
|
-
require('
|
|
30
|
-
require('./
|
|
9
|
+
require('./_iter-detect-60b2f026.js');
|
|
10
|
+
require('./toConsumableArray-9a3476fe.js');
|
|
11
|
+
require('./core.get-iterator-method-f62321d4.js');
|
|
12
|
+
require('./_object-pie-68c5bcbc.js');
|
|
13
|
+
var _extends$1 = require('./extends-0a918631.js');
|
|
14
|
+
require('./_object-sap-5e74ba08.js');
|
|
15
|
+
require('./inherits-452ff02c.js');
|
|
16
|
+
require('./define-property-f4d12f4e.js');
|
|
17
|
+
require('./web.dom.iterable-a0e279c1.js');
|
|
18
|
+
require('./typeof-725500bc.js');
|
|
19
|
+
require('./_is-array-754e012d.js');
|
|
20
|
+
var React = require('react');
|
|
21
|
+
var React__default = _interopDefault(React);
|
|
31
22
|
require('./events-1b438fe7.js');
|
|
32
|
-
require('
|
|
33
|
-
require('
|
|
34
|
-
|
|
35
|
-
require('
|
|
36
|
-
require('
|
|
37
|
-
require('./ADInfeed-fb136f1d.js');
|
|
23
|
+
require('./index-98e01cb9.js');
|
|
24
|
+
var PropTypes = require('prop-types');
|
|
25
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
26
|
+
require('react-bootstrap/Row');
|
|
27
|
+
require('react-bootstrap/Col');
|
|
38
28
|
require('react-bootstrap/Card');
|
|
39
|
-
require('./
|
|
40
|
-
require('
|
|
41
|
-
require('./isSymbol-
|
|
42
|
-
require('./
|
|
43
|
-
require('./
|
|
44
|
-
require('./
|
|
29
|
+
var moment = require('./moment-575fe24c.js');
|
|
30
|
+
require('next/router');
|
|
31
|
+
require('./isSymbol-04666465.js');
|
|
32
|
+
require('./debounce-529c8d06.js');
|
|
33
|
+
require('./toNumber-36d1e7e5.js');
|
|
34
|
+
require('./index.es-9110add6.js');
|
|
35
|
+
require('react-dom');
|
|
36
|
+
require('./visibility-sensor-ad5e3116.js');
|
|
37
|
+
require('./index-be0c82be.js');
|
|
38
|
+
var urlFor = require('./urlFor.js');
|
|
39
|
+
require('./index-96b3db50.js');
|
|
40
|
+
require('./main-02daeefe.js');
|
|
41
|
+
require('./entities-310b46ee.js');
|
|
42
|
+
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
43
|
+
require('./stringify-7c5aff47.js');
|
|
44
|
+
var asyncToGenerator = require('./asyncToGenerator-140e5f89.js');
|
|
45
45
|
require('./Segment.js');
|
|
46
|
-
require('./
|
|
47
|
-
require('./
|
|
48
|
-
require('./
|
|
46
|
+
require('./Beam.js');
|
|
47
|
+
require('./AdSlot.js');
|
|
48
|
+
require('./ADInfeed-98c71bcd.js');
|
|
49
|
+
require('./lodash-fc2922d0.js');
|
|
50
|
+
require('./ADlgInfeed-9de32585.js');
|
|
49
51
|
require('./getContentCategory-f38a4c00.js');
|
|
50
|
-
require('./
|
|
51
|
-
require('react-bootstrap/
|
|
52
|
-
require('
|
|
52
|
+
require('./AuthorComponent-bb831b74.js');
|
|
53
|
+
require('react-bootstrap/Button');
|
|
54
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
53
55
|
require('./index-187c967e.js');
|
|
54
|
-
require('./
|
|
55
|
-
require('./typeof-88a668c5.js');
|
|
56
|
-
require('./_is-array-6128bd56.js');
|
|
57
|
-
require('./brightcove-react-player-loader.es-a195642e.js');
|
|
56
|
+
var smoothscroll = require('./smoothscroll-5054361f.js');
|
|
58
57
|
require('./GroupDeck.js');
|
|
59
|
-
require('
|
|
58
|
+
require('react-bootstrap');
|
|
59
|
+
require('./timeDifferenceCalc.js');
|
|
60
|
+
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
61
|
+
require('./iconBase-68959171.js');
|
|
62
|
+
require('./index.esm-90433435.js');
|
|
63
|
+
var getSerializers = require('./index-665ed72e.js');
|
|
64
|
+
require('./util-f2c1b65b.js');
|
|
65
|
+
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
60
66
|
require('next/head');
|
|
61
67
|
require('react-share');
|
|
62
|
-
require('./
|
|
68
|
+
require('./SocialShare.js');
|
|
69
|
+
require('./_object-to-array-5762f850.js');
|
|
63
70
|
require('react-bootstrap/Pagination');
|
|
64
|
-
require('react-bootstrap/Button');
|
|
65
|
-
require('react-bootstrap/Row');
|
|
66
|
-
require('react-bootstrap/Col');
|
|
67
|
-
require('./inherits-c2065b95.js');
|
|
68
|
-
require('./_object-sap-a175b4a9.js');
|
|
69
|
-
require('./define-property-c88be878.js');
|
|
70
|
-
require('./index.esm-974f47d9.js');
|
|
71
|
-
require('./iconBase-68959171.js');
|
|
72
71
|
require('react-bootstrap/Figure');
|
|
73
72
|
require('react-bootstrap/OverlayTrigger');
|
|
74
73
|
require('react-bootstrap/Tooltip');
|
|
75
74
|
require('react-bootstrap/Popover');
|
|
75
|
+
var inherits$1$1 = require('./inherits-8d29278d.js');
|
|
76
|
+
require('react-bootstrap/Carousel');
|
|
77
|
+
var Feature = require('./Feature.js');
|
|
78
|
+
require('react-bootstrap/Breadcrumb');
|
|
79
|
+
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
80
|
+
|
|
81
|
+
var isRequiredIf_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
82
|
+
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.
|
|
83
|
+
}};exports.default=isRequiredIf;
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
var isRequiredIf = _commonjsHelpers.unwrapExports(isRequiredIf_1);
|
|
89
|
+
|
|
90
|
+
var exenv = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
91
|
+
/*!
|
|
92
|
+
Copyright (c) 2015 Jed Watson.
|
|
93
|
+
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
94
|
+
All rights reserved.
|
|
95
|
+
*/
|
|
96
|
+
/* global define */
|
|
97
|
+
|
|
98
|
+
(function () {
|
|
99
|
+
|
|
100
|
+
var canUseDOM = !!(
|
|
101
|
+
typeof window !== 'undefined' &&
|
|
102
|
+
window.document &&
|
|
103
|
+
window.document.createElement
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
var ExecutionEnvironment = {
|
|
107
|
+
|
|
108
|
+
canUseDOM: canUseDOM,
|
|
109
|
+
|
|
110
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
|
111
|
+
|
|
112
|
+
canUseEventListeners:
|
|
113
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
114
|
+
|
|
115
|
+
canUseViewport: canUseDOM && !!window.screen
|
|
116
|
+
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
if ( module.exports) {
|
|
120
|
+
module.exports = ExecutionEnvironment;
|
|
121
|
+
} else {
|
|
122
|
+
window.ExecutionEnvironment = ExecutionEnvironment;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
}());
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
var twitterWidgetJs = 'https://platform.twitter.com/widgets.js';
|
|
129
|
+
|
|
130
|
+
var TwitterTimelineEmbed =
|
|
131
|
+
/*#__PURE__*/
|
|
132
|
+
function (_Component) {
|
|
133
|
+
inherits$1$1._inherits(TwitterTimelineEmbed, _Component);
|
|
134
|
+
|
|
135
|
+
function TwitterTimelineEmbed(props) {
|
|
136
|
+
var _this;
|
|
137
|
+
|
|
138
|
+
inherits$1$1._classCallCheck(this, TwitterTimelineEmbed);
|
|
139
|
+
|
|
140
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterTimelineEmbed).call(this, props));
|
|
141
|
+
_this.state = {
|
|
142
|
+
isLoading: true
|
|
143
|
+
};
|
|
144
|
+
return _this;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
inherits$1$1._createClass(TwitterTimelineEmbed, [{
|
|
148
|
+
key: "buildChromeOptions",
|
|
149
|
+
value: function buildChromeOptions(options) {
|
|
150
|
+
options.chrome = '';
|
|
151
|
+
|
|
152
|
+
if (this.props.noHeader) {
|
|
153
|
+
options.chrome = options.chrome + ' noheader';
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if (this.props.noFooter) {
|
|
157
|
+
options.chrome = options.chrome + ' nofooter';
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (this.props.noBorders) {
|
|
161
|
+
options.chrome = options.chrome + ' noborders';
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (this.props.noScrollbar) {
|
|
165
|
+
options.chrome = options.chrome + ' noscrollbar';
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
if (this.props.transparent) {
|
|
169
|
+
options.chrome = options.chrome + ' transparent';
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
return options;
|
|
173
|
+
}
|
|
174
|
+
}, {
|
|
175
|
+
key: "buildOptions",
|
|
176
|
+
value: function buildOptions() {
|
|
177
|
+
var options = Object.assign({}, this.props.options);
|
|
178
|
+
|
|
179
|
+
if (this.props.autoHeight) {
|
|
180
|
+
options.height = this.refs.embedContainer.parentNode.offsetHeight;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
options = Object.assign({}, options, {
|
|
184
|
+
theme: this.props.theme,
|
|
185
|
+
linkColor: this.props.linkColor,
|
|
186
|
+
borderColor: this.props.borderColor,
|
|
187
|
+
lang: this.props.lang
|
|
188
|
+
});
|
|
189
|
+
return options;
|
|
190
|
+
}
|
|
191
|
+
}, {
|
|
192
|
+
key: "renderWidget",
|
|
193
|
+
value: function renderWidget(options) {
|
|
194
|
+
var _this2 = this;
|
|
195
|
+
|
|
196
|
+
var onLoad = this.props.onLoad;
|
|
197
|
+
|
|
198
|
+
if (!this.isMountCanceled) {
|
|
199
|
+
window.twttr.widgets.createTimeline({
|
|
200
|
+
sourceType: this.props.sourceType,
|
|
201
|
+
screenName: this.props.screenName,
|
|
202
|
+
userId: this.props.userId,
|
|
203
|
+
ownerScreenName: this.props.ownerScreenName,
|
|
204
|
+
slug: this.props.slug,
|
|
205
|
+
id: this.props.id || this.props.widgetId,
|
|
206
|
+
url: this.props.url
|
|
207
|
+
}, this.refs.embedContainer, options).then(function (element) {
|
|
208
|
+
_this2.setState({
|
|
209
|
+
isLoading: false
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
if (onLoad) {
|
|
213
|
+
onLoad(element);
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}, {
|
|
219
|
+
key: "componentDidMount",
|
|
220
|
+
value: function componentDidMount() {
|
|
221
|
+
var _this3 = this;
|
|
222
|
+
|
|
223
|
+
if (exenv.canUseDOM) {
|
|
224
|
+
var script = require('scriptjs');
|
|
225
|
+
|
|
226
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
227
|
+
if (!window.twttr) {
|
|
228
|
+
console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.');
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
var options = _this3.buildOptions();
|
|
233
|
+
/** Append chrome options */
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
options = _this3.buildChromeOptions(options);
|
|
237
|
+
|
|
238
|
+
_this3.renderWidget(options);
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}, {
|
|
243
|
+
key: "componentWillUnmount",
|
|
244
|
+
value: function componentWillUnmount() {
|
|
245
|
+
this.isMountCanceled = true;
|
|
246
|
+
}
|
|
247
|
+
}, {
|
|
248
|
+
key: "render",
|
|
249
|
+
value: function render() {
|
|
250
|
+
var isLoading = this.state.isLoading;
|
|
251
|
+
var placeholder = this.props.placeholder;
|
|
252
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
253
|
+
ref: "embedContainer"
|
|
254
|
+
}));
|
|
255
|
+
}
|
|
256
|
+
}]);
|
|
257
|
+
|
|
258
|
+
return TwitterTimelineEmbed;
|
|
259
|
+
}(React.Component);
|
|
260
|
+
|
|
261
|
+
inherits$1$1._defineProperty(TwitterTimelineEmbed, "propTypes", {
|
|
262
|
+
/**
|
|
263
|
+
* This can be either of profile, likes, list, collection, URL, widget
|
|
264
|
+
*/
|
|
265
|
+
sourceType: PropTypes__default.oneOf(['profile', 'likes', 'list', 'collection', 'url', 'widget']).isRequired,
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* username of twitter handle as String
|
|
269
|
+
*/
|
|
270
|
+
screenName: isRequiredIf(PropTypes__default.string, function (props) {
|
|
271
|
+
return !props.hasOwnProperty('userId') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
272
|
+
}),
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* UserId of twitter handle as number
|
|
276
|
+
*/
|
|
277
|
+
userId: isRequiredIf(PropTypes__default.number, function (props) {
|
|
278
|
+
return !props.hasOwnProperty('screenName') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
279
|
+
}),
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* To show list, used along with slug
|
|
283
|
+
*/
|
|
284
|
+
ownerScreenName: isRequiredIf(PropTypes__default.string, function (props) {
|
|
285
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
286
|
+
}),
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* To show list, used along with ownerScreenName
|
|
290
|
+
*/
|
|
291
|
+
slug: isRequiredIf(PropTypes__default.string, function (props) {
|
|
292
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
293
|
+
}),
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* To show list, unique list id
|
|
297
|
+
* Also used with collections, in that case its valid collection id
|
|
298
|
+
*/
|
|
299
|
+
id: isRequiredIf(PropTypes__default.oneOfType([PropTypes__default.number, PropTypes__default.string]), function (props) {
|
|
300
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('ownerScreenName') && !props.hasOwnProperty('slug') || props.sourceType === 'collection';
|
|
301
|
+
}),
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* To show twitter content with url.
|
|
305
|
+
* Supported content includes profiles, likes, lists, and collections.
|
|
306
|
+
*/
|
|
307
|
+
url: isRequiredIf(PropTypes__default.string, function (props) {
|
|
308
|
+
return props.sourceType === 'url';
|
|
309
|
+
}),
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* To show custom widget
|
|
313
|
+
*/
|
|
314
|
+
widgetId: isRequiredIf(PropTypes__default.string, function (props) {
|
|
315
|
+
return props.sourceType === 'widget';
|
|
316
|
+
}),
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Additional options to pass to twitter widget plugin
|
|
320
|
+
*/
|
|
321
|
+
options: PropTypes__default.object,
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Automatically fit into parent container height
|
|
325
|
+
*/
|
|
326
|
+
autoHeight: PropTypes__default.bool,
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* With dark or light theme
|
|
330
|
+
*/
|
|
331
|
+
theme: PropTypes__default.oneOf(['dark', 'light']),
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* With custom link colors. Note: Only Hex colors are supported.
|
|
335
|
+
*/
|
|
336
|
+
linkColor: PropTypes__default.string,
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* With custom border colors. Note: Only Hex colors are supported.
|
|
340
|
+
*/
|
|
341
|
+
borderColor: PropTypes__default.string,
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Hide the header from timeline
|
|
345
|
+
*/
|
|
346
|
+
noHeader: PropTypes__default.bool,
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Hide the footer from timeline
|
|
350
|
+
*/
|
|
351
|
+
noFooter: PropTypes__default.bool,
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Hide the border from timeline
|
|
355
|
+
*/
|
|
356
|
+
noBorders: PropTypes__default.bool,
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Hide the scrollbars
|
|
360
|
+
*/
|
|
361
|
+
noScrollbar: PropTypes__default.bool,
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Enable Transparancy
|
|
365
|
+
*/
|
|
366
|
+
transparent: PropTypes__default.bool,
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Custom language code. Supported codes here: https://developer.twitter.com/en/docs/twitter-for-websites/twitter-for-websites-supported-languages/overview.html
|
|
370
|
+
*/
|
|
371
|
+
lang: PropTypes__default.string,
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Placeholder while tweet is loading
|
|
375
|
+
*/
|
|
376
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Function to execute after load, return html element
|
|
380
|
+
*/
|
|
381
|
+
onLoad: PropTypes__default.func
|
|
382
|
+
});
|
|
383
|
+
|
|
384
|
+
var TwitterShareButton =
|
|
385
|
+
/*#__PURE__*/
|
|
386
|
+
function (_Component) {
|
|
387
|
+
inherits$1$1._inherits(TwitterShareButton, _Component);
|
|
388
|
+
|
|
389
|
+
function TwitterShareButton(props) {
|
|
390
|
+
var _this;
|
|
391
|
+
|
|
392
|
+
inherits$1$1._classCallCheck(this, TwitterShareButton);
|
|
393
|
+
|
|
394
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterShareButton).call(this, props));
|
|
395
|
+
_this.state = {
|
|
396
|
+
isLoading: true
|
|
397
|
+
};
|
|
398
|
+
return _this;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
inherits$1$1._createClass(TwitterShareButton, [{
|
|
402
|
+
key: "componentDidMount",
|
|
403
|
+
value: function componentDidMount() {
|
|
404
|
+
var _this2 = this;
|
|
405
|
+
|
|
406
|
+
var onLoad = this.props.onLoad;
|
|
407
|
+
|
|
408
|
+
if (exenv.canUseDOM) {
|
|
409
|
+
var script = require('scriptjs');
|
|
410
|
+
|
|
411
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
412
|
+
if (!window.twttr) {
|
|
413
|
+
console.error('Failure to load window.twttr in TwitterShareButton, aborting load.');
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
if (!_this2.isMountCanceled) {
|
|
418
|
+
window.twttr.widgets.createShareButton(_this2.props.url, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
419
|
+
_this2.setState({
|
|
420
|
+
isLoading: false
|
|
421
|
+
});
|
|
422
|
+
|
|
423
|
+
if (onLoad) {
|
|
424
|
+
onLoad(element);
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}, {
|
|
432
|
+
key: "componentWillUnmount",
|
|
433
|
+
value: function componentWillUnmount() {
|
|
434
|
+
this.isMountCanceled = true;
|
|
435
|
+
}
|
|
436
|
+
}, {
|
|
437
|
+
key: "render",
|
|
438
|
+
value: function render() {
|
|
439
|
+
var isLoading = this.state.isLoading;
|
|
440
|
+
var placeholder = this.props.placeholder;
|
|
441
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
442
|
+
ref: "embedContainer"
|
|
443
|
+
}));
|
|
444
|
+
}
|
|
445
|
+
}]);
|
|
446
|
+
|
|
447
|
+
return TwitterShareButton;
|
|
448
|
+
}(React.Component);
|
|
449
|
+
|
|
450
|
+
inherits$1$1._defineProperty(TwitterShareButton, "propTypes", {
|
|
451
|
+
/**
|
|
452
|
+
* Url for sharing
|
|
453
|
+
*/
|
|
454
|
+
url: PropTypes__default.string.isRequired,
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Additional options for overriding config. Details at : https://dev.twitter.com/web/tweet-button/parameters
|
|
458
|
+
*/
|
|
459
|
+
options: PropTypes__default.object,
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Placeholder while tweet is loading
|
|
463
|
+
*/
|
|
464
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Function to execute after load, return html element
|
|
468
|
+
*/
|
|
469
|
+
onLoad: PropTypes__default.func
|
|
470
|
+
});
|
|
471
|
+
|
|
472
|
+
var TwitterFollowButton =
|
|
473
|
+
/*#__PURE__*/
|
|
474
|
+
function (_Component) {
|
|
475
|
+
inherits$1$1._inherits(TwitterFollowButton, _Component);
|
|
476
|
+
|
|
477
|
+
function TwitterFollowButton(props) {
|
|
478
|
+
var _this;
|
|
479
|
+
|
|
480
|
+
inherits$1$1._classCallCheck(this, TwitterFollowButton);
|
|
481
|
+
|
|
482
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterFollowButton).call(this, props));
|
|
483
|
+
_this.state = {
|
|
484
|
+
isLoading: true
|
|
485
|
+
};
|
|
486
|
+
return _this;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
inherits$1$1._createClass(TwitterFollowButton, [{
|
|
490
|
+
key: "componentDidMount",
|
|
491
|
+
value: function componentDidMount() {
|
|
492
|
+
var _this2 = this;
|
|
493
|
+
|
|
494
|
+
var onLoad = this.props.onLoad;
|
|
495
|
+
|
|
496
|
+
if (exenv.canUseDOM) {
|
|
497
|
+
var script = require('scriptjs');
|
|
498
|
+
|
|
499
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
500
|
+
if (!window.twttr) {
|
|
501
|
+
console.error('Failure to load window.twttr in TwitterFollowButton, aborting load.');
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
if (!_this2.isMountCanceled) {
|
|
506
|
+
window.twttr.widgets.createFollowButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
507
|
+
_this2.setState({
|
|
508
|
+
isLoading: false
|
|
509
|
+
});
|
|
510
|
+
|
|
511
|
+
if (onLoad) {
|
|
512
|
+
onLoad(element);
|
|
513
|
+
}
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}, {
|
|
520
|
+
key: "componentWillUnmount",
|
|
521
|
+
value: function componentWillUnmount() {
|
|
522
|
+
this.isMountCanceled = true;
|
|
523
|
+
}
|
|
524
|
+
}, {
|
|
525
|
+
key: "render",
|
|
526
|
+
value: function render() {
|
|
527
|
+
var isLoading = this.state.isLoading;
|
|
528
|
+
var placeholder = this.props.placeholder;
|
|
529
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
530
|
+
ref: "embedContainer"
|
|
531
|
+
}));
|
|
532
|
+
}
|
|
533
|
+
}]);
|
|
534
|
+
|
|
535
|
+
return TwitterFollowButton;
|
|
536
|
+
}(React.Component);
|
|
537
|
+
|
|
538
|
+
inherits$1$1._defineProperty(TwitterFollowButton, "propTypes", {
|
|
539
|
+
/**
|
|
540
|
+
* Username of twitter user which will be followed on click
|
|
541
|
+
*/
|
|
542
|
+
screenName: PropTypes__default.string.isRequired,
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Additional options to be added to the button
|
|
546
|
+
*/
|
|
547
|
+
options: PropTypes__default.object,
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Placeholder while tweet is loading
|
|
551
|
+
*/
|
|
552
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Function to execute after load, return html element
|
|
556
|
+
*/
|
|
557
|
+
onLoad: PropTypes__default.func
|
|
558
|
+
});
|
|
559
|
+
|
|
560
|
+
var TwitterHashtagButton =
|
|
561
|
+
/*#__PURE__*/
|
|
562
|
+
function (_Component) {
|
|
563
|
+
inherits$1$1._inherits(TwitterHashtagButton, _Component);
|
|
564
|
+
|
|
565
|
+
function TwitterHashtagButton(props) {
|
|
566
|
+
var _this;
|
|
567
|
+
|
|
568
|
+
inherits$1$1._classCallCheck(this, TwitterHashtagButton);
|
|
569
|
+
|
|
570
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterHashtagButton).call(this, props));
|
|
571
|
+
_this.state = {
|
|
572
|
+
isLoading: true
|
|
573
|
+
};
|
|
574
|
+
return _this;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
inherits$1$1._createClass(TwitterHashtagButton, [{
|
|
578
|
+
key: "componentDidMount",
|
|
579
|
+
value: function componentDidMount() {
|
|
580
|
+
var _this2 = this;
|
|
581
|
+
|
|
582
|
+
var onLoad = this.props.onLoad;
|
|
583
|
+
|
|
584
|
+
if (exenv.canUseDOM) {
|
|
585
|
+
var script = require('scriptjs');
|
|
586
|
+
|
|
587
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
588
|
+
if (!window.twttr) {
|
|
589
|
+
console.error('Failure to load window.twttr in TwitterHashtagButton, aborting load.');
|
|
590
|
+
return;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
if (!_this2.isMountCanceled) {
|
|
594
|
+
window.twttr.widgets.createHashtagButton(_this2.props.tag, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
595
|
+
_this2.setState({
|
|
596
|
+
isLoading: false
|
|
597
|
+
});
|
|
598
|
+
|
|
599
|
+
if (onLoad) {
|
|
600
|
+
onLoad(element);
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}, {
|
|
608
|
+
key: "componentWillUnmount",
|
|
609
|
+
value: function componentWillUnmount() {
|
|
610
|
+
this.isMountCanceled = true;
|
|
611
|
+
}
|
|
612
|
+
}, {
|
|
613
|
+
key: "render",
|
|
614
|
+
value: function render() {
|
|
615
|
+
var isLoading = this.state.isLoading;
|
|
616
|
+
var placeholder = this.props.placeholder;
|
|
617
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
618
|
+
ref: "embedContainer"
|
|
619
|
+
}));
|
|
620
|
+
}
|
|
621
|
+
}]);
|
|
622
|
+
|
|
623
|
+
return TwitterHashtagButton;
|
|
624
|
+
}(React.Component);
|
|
625
|
+
|
|
626
|
+
inherits$1$1._defineProperty(TwitterHashtagButton, "propTypes", {
|
|
627
|
+
/**
|
|
628
|
+
* Tag name for hashtag button
|
|
629
|
+
*/
|
|
630
|
+
tag: PropTypes__default.string.isRequired,
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Additional options to be added to the button
|
|
634
|
+
*/
|
|
635
|
+
options: PropTypes__default.object,
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Placeholder while tweet is loading
|
|
639
|
+
*/
|
|
640
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Function to execute after load, return html element
|
|
644
|
+
*/
|
|
645
|
+
onLoad: PropTypes__default.func
|
|
646
|
+
});
|
|
647
|
+
|
|
648
|
+
var TwitterMentionButton =
|
|
649
|
+
/*#__PURE__*/
|
|
650
|
+
function (_Component) {
|
|
651
|
+
inherits$1$1._inherits(TwitterMentionButton, _Component);
|
|
652
|
+
|
|
653
|
+
function TwitterMentionButton(props) {
|
|
654
|
+
var _this;
|
|
655
|
+
|
|
656
|
+
inherits$1$1._classCallCheck(this, TwitterMentionButton);
|
|
657
|
+
|
|
658
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterMentionButton).call(this, props));
|
|
659
|
+
_this.state = {
|
|
660
|
+
isLoading: true
|
|
661
|
+
};
|
|
662
|
+
return _this;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
inherits$1$1._createClass(TwitterMentionButton, [{
|
|
666
|
+
key: "componentDidMount",
|
|
667
|
+
value: function componentDidMount() {
|
|
668
|
+
var _this2 = this;
|
|
669
|
+
|
|
670
|
+
var onLoad = this.props.onLoad;
|
|
671
|
+
|
|
672
|
+
if (exenv.canUseDOM) {
|
|
673
|
+
var script = require('scriptjs');
|
|
674
|
+
|
|
675
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
676
|
+
if (!window.twttr) {
|
|
677
|
+
console.error('Failure to load window.twttr in TwitterMentionButton, aborting load.');
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
if (!_this2.isMountCanceled) {
|
|
682
|
+
window.twttr.widgets.createMentionButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
683
|
+
_this2.setState({
|
|
684
|
+
isLoading: false
|
|
685
|
+
});
|
|
686
|
+
|
|
687
|
+
if (onLoad) {
|
|
688
|
+
onLoad(element);
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}, {
|
|
696
|
+
key: "componentWillUnmount",
|
|
697
|
+
value: function componentWillUnmount() {
|
|
698
|
+
this.isMountCanceled = true;
|
|
699
|
+
}
|
|
700
|
+
}, {
|
|
701
|
+
key: "render",
|
|
702
|
+
value: function render() {
|
|
703
|
+
var isLoading = this.state.isLoading;
|
|
704
|
+
var placeholder = this.props.placeholder;
|
|
705
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
706
|
+
ref: "embedContainer"
|
|
707
|
+
}));
|
|
708
|
+
}
|
|
709
|
+
}]);
|
|
710
|
+
|
|
711
|
+
return TwitterMentionButton;
|
|
712
|
+
}(React.Component);
|
|
713
|
+
|
|
714
|
+
inherits$1$1._defineProperty(TwitterMentionButton, "propTypes", {
|
|
715
|
+
/**
|
|
716
|
+
* Username to which you will need to tweet
|
|
717
|
+
*/
|
|
718
|
+
screenName: PropTypes__default.string.isRequired,
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Additional options for overriding config.
|
|
722
|
+
*/
|
|
723
|
+
options: PropTypes__default.object,
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* Placeholder while tweet is loading
|
|
727
|
+
*/
|
|
728
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Function to execute after load, return html element
|
|
732
|
+
*/
|
|
733
|
+
onLoad: PropTypes__default.func
|
|
734
|
+
});
|
|
735
|
+
|
|
736
|
+
var TwitterTweetEmbed =
|
|
737
|
+
/*#__PURE__*/
|
|
738
|
+
function (_Component) {
|
|
739
|
+
inherits$1$1._inherits(TwitterTweetEmbed, _Component);
|
|
740
|
+
|
|
741
|
+
function TwitterTweetEmbed(props) {
|
|
742
|
+
var _this;
|
|
743
|
+
|
|
744
|
+
inherits$1$1._classCallCheck(this, TwitterTweetEmbed);
|
|
745
|
+
|
|
746
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterTweetEmbed).call(this, props));
|
|
747
|
+
_this.state = {
|
|
748
|
+
isLoading: true
|
|
749
|
+
};
|
|
750
|
+
return _this;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
inherits$1$1._createClass(TwitterTweetEmbed, [{
|
|
754
|
+
key: "renderWidget",
|
|
755
|
+
value: function renderWidget() {
|
|
756
|
+
var _this2 = this;
|
|
757
|
+
|
|
758
|
+
var onLoad = this.props.onLoad;
|
|
759
|
+
|
|
760
|
+
if (!window.twttr) {
|
|
761
|
+
console.error('Failure to load window.twttr in TwitterTweetEmbed, aborting load.');
|
|
762
|
+
return;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
if (!this.isMountCanceled) {
|
|
766
|
+
window.twttr.widgets.createTweet(this.props.tweetId, this.refs.embedContainer, this.props.options).then(function (element) {
|
|
767
|
+
_this2.setState({
|
|
768
|
+
isLoading: false
|
|
769
|
+
});
|
|
770
|
+
|
|
771
|
+
if (onLoad) {
|
|
772
|
+
onLoad(element);
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
}, {
|
|
778
|
+
key: "componentDidMount",
|
|
779
|
+
value: function componentDidMount() {
|
|
780
|
+
var _this3 = this;
|
|
781
|
+
|
|
782
|
+
if (exenv.canUseDOM) {
|
|
783
|
+
var script = require('scriptjs');
|
|
784
|
+
|
|
785
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
786
|
+
_this3.renderWidget();
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}, {
|
|
791
|
+
key: "componentWillUnmount",
|
|
792
|
+
value: function componentWillUnmount() {
|
|
793
|
+
this.isMountCanceled = true;
|
|
794
|
+
}
|
|
795
|
+
}, {
|
|
796
|
+
key: "render",
|
|
797
|
+
value: function render() {
|
|
798
|
+
var isLoading = this.state.isLoading;
|
|
799
|
+
var placeholder = this.props.placeholder;
|
|
800
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
801
|
+
ref: "embedContainer"
|
|
802
|
+
}));
|
|
803
|
+
}
|
|
804
|
+
}]);
|
|
805
|
+
|
|
806
|
+
return TwitterTweetEmbed;
|
|
807
|
+
}(React.Component);
|
|
808
|
+
|
|
809
|
+
inherits$1$1._defineProperty(TwitterTweetEmbed, "propTypes", {
|
|
810
|
+
/**
|
|
811
|
+
* Tweet id that needs to be shown
|
|
812
|
+
*/
|
|
813
|
+
tweetId: PropTypes__default.string.isRequired,
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Additional options to pass to twitter widget plugin
|
|
817
|
+
*/
|
|
818
|
+
options: PropTypes__default.object,
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Placeholder while tweet is loading
|
|
822
|
+
*/
|
|
823
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Function to execute after load, return html element
|
|
827
|
+
*/
|
|
828
|
+
onLoad: PropTypes__default.func
|
|
829
|
+
});
|
|
830
|
+
|
|
831
|
+
var TwitterMomentShare =
|
|
832
|
+
/*#__PURE__*/
|
|
833
|
+
function (_Component) {
|
|
834
|
+
inherits$1$1._inherits(TwitterMomentShare, _Component);
|
|
835
|
+
|
|
836
|
+
function TwitterMomentShare(props) {
|
|
837
|
+
var _this;
|
|
838
|
+
|
|
839
|
+
inherits$1$1._classCallCheck(this, TwitterMomentShare);
|
|
840
|
+
|
|
841
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterMomentShare).call(this, props));
|
|
842
|
+
_this.state = {
|
|
843
|
+
isLoading: true
|
|
844
|
+
};
|
|
845
|
+
return _this;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
inherits$1$1._createClass(TwitterMomentShare, [{
|
|
849
|
+
key: "componentDidMount",
|
|
850
|
+
value: function componentDidMount() {
|
|
851
|
+
var _this2 = this;
|
|
852
|
+
|
|
853
|
+
var onLoad = this.props.onLoad;
|
|
854
|
+
|
|
855
|
+
if (exenv.canUseDOM) {
|
|
856
|
+
var script = require('scriptjs');
|
|
857
|
+
|
|
858
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
859
|
+
if (!window.twttr) {
|
|
860
|
+
console.error('Failure to load window.twttr in TwitterMomentShare, aborting load.');
|
|
861
|
+
return;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
if (!_this2.isMountCanceled) {
|
|
865
|
+
window.twttr.widgets.createMoment(_this2.props.momentId, _this2.refs.shareMoment, _this2.props.options).then(function (element) {
|
|
866
|
+
_this2.setState({
|
|
867
|
+
isLoading: false
|
|
868
|
+
});
|
|
869
|
+
|
|
870
|
+
if (onLoad) {
|
|
871
|
+
onLoad(element);
|
|
872
|
+
}
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
});
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
}, {
|
|
879
|
+
key: "componentWillUnmount",
|
|
880
|
+
value: function componentWillUnmount() {
|
|
881
|
+
this.isMountCanceled = true;
|
|
882
|
+
}
|
|
883
|
+
}, {
|
|
884
|
+
key: "render",
|
|
885
|
+
value: function render() {
|
|
886
|
+
var isLoading = this.state.isLoading;
|
|
887
|
+
var placeholder = this.props.placeholder;
|
|
888
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
889
|
+
ref: "shareMoment"
|
|
890
|
+
}));
|
|
891
|
+
}
|
|
892
|
+
}]);
|
|
893
|
+
|
|
894
|
+
return TwitterMomentShare;
|
|
895
|
+
}(React.Component);
|
|
896
|
+
|
|
897
|
+
inherits$1$1._defineProperty(TwitterMomentShare, "propTypes", {
|
|
898
|
+
/**
|
|
899
|
+
* id of Twitter moment to show
|
|
900
|
+
*/
|
|
901
|
+
momentId: PropTypes__default.string.isRequired,
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Additional options for overriding config.
|
|
905
|
+
*/
|
|
906
|
+
options: PropTypes__default.object,
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* Placeholder while tweet is loading
|
|
910
|
+
*/
|
|
911
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* Function to execute after load, return html element
|
|
915
|
+
*/
|
|
916
|
+
onLoad: PropTypes__default.func
|
|
917
|
+
});
|
|
918
|
+
|
|
919
|
+
var TwitterDMButton =
|
|
920
|
+
/*#__PURE__*/
|
|
921
|
+
function (_Component) {
|
|
922
|
+
inherits$1$1._inherits(TwitterDMButton, _Component);
|
|
923
|
+
|
|
924
|
+
function TwitterDMButton(props) {
|
|
925
|
+
var _this;
|
|
926
|
+
|
|
927
|
+
inherits$1$1._classCallCheck(this, TwitterDMButton);
|
|
928
|
+
|
|
929
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterDMButton).call(this, props));
|
|
930
|
+
_this.state = {
|
|
931
|
+
isLoading: true
|
|
932
|
+
};
|
|
933
|
+
return _this;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
inherits$1$1._createClass(TwitterDMButton, [{
|
|
937
|
+
key: "componentDidMount",
|
|
938
|
+
value: function componentDidMount() {
|
|
939
|
+
var _this2 = this;
|
|
940
|
+
|
|
941
|
+
var onLoad = this.props.onLoad;
|
|
942
|
+
|
|
943
|
+
if (exenv.canUseDOM) {
|
|
944
|
+
var script = require('scriptjs');
|
|
945
|
+
|
|
946
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
947
|
+
if (!window.twttr) {
|
|
948
|
+
console.error('Failure to load window.twttr in TwitterDMButton, aborting load.');
|
|
949
|
+
return;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
if (!_this2.isMountCanceled) {
|
|
953
|
+
window.twttr.widgets.createDMButton(_this2.props.id, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
954
|
+
_this2.setState({
|
|
955
|
+
isLoading: false
|
|
956
|
+
});
|
|
957
|
+
|
|
958
|
+
if (onLoad) {
|
|
959
|
+
onLoad(element);
|
|
960
|
+
}
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}, {
|
|
967
|
+
key: "componentWillUnmount",
|
|
968
|
+
value: function componentWillUnmount() {
|
|
969
|
+
this.isMountCanceled = true;
|
|
970
|
+
}
|
|
971
|
+
}, {
|
|
972
|
+
key: "render",
|
|
973
|
+
value: function render() {
|
|
974
|
+
var isLoading = this.state.isLoading;
|
|
975
|
+
var placeholder = this.props.placeholder;
|
|
976
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
977
|
+
ref: "embedContainer"
|
|
978
|
+
}));
|
|
979
|
+
}
|
|
980
|
+
}]);
|
|
981
|
+
|
|
982
|
+
return TwitterDMButton;
|
|
983
|
+
}(React.Component);
|
|
984
|
+
|
|
985
|
+
inherits$1$1._defineProperty(TwitterDMButton, "propTypes", {
|
|
986
|
+
/**
|
|
987
|
+
* Twitter user id for DM button
|
|
988
|
+
*/
|
|
989
|
+
id: PropTypes__default.number.isRequired,
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* Additional options to be added to the button
|
|
993
|
+
*/
|
|
994
|
+
options: PropTypes__default.object,
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Placeholder while tweet is loading
|
|
998
|
+
*/
|
|
999
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Function to execute after load, return html element
|
|
1003
|
+
*/
|
|
1004
|
+
onLoad: PropTypes__default.func
|
|
1005
|
+
});
|
|
1006
|
+
|
|
1007
|
+
var TwitterVideoEmbed =
|
|
1008
|
+
/*#__PURE__*/
|
|
1009
|
+
function (_Component) {
|
|
1010
|
+
inherits$1$1._inherits(TwitterVideoEmbed, _Component);
|
|
1011
|
+
|
|
1012
|
+
function TwitterVideoEmbed(props) {
|
|
1013
|
+
var _this;
|
|
1014
|
+
|
|
1015
|
+
inherits$1$1._classCallCheck(this, TwitterVideoEmbed);
|
|
1016
|
+
|
|
1017
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterVideoEmbed).call(this, props));
|
|
1018
|
+
_this.state = {
|
|
1019
|
+
isLoading: true
|
|
1020
|
+
};
|
|
1021
|
+
return _this;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
inherits$1$1._createClass(TwitterVideoEmbed, [{
|
|
1025
|
+
key: "componentDidMount",
|
|
1026
|
+
value: function componentDidMount() {
|
|
1027
|
+
var _this2 = this;
|
|
1028
|
+
|
|
1029
|
+
var onLoad = this.props.onLoad;
|
|
1030
|
+
|
|
1031
|
+
if (exenv.canUseDOM) {
|
|
1032
|
+
var script = require('scriptjs');
|
|
1033
|
+
|
|
1034
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1035
|
+
if (!window.twttr) {
|
|
1036
|
+
console.error('Failure to load window.twttr in TwitterVideoEmbed, aborting load.');
|
|
1037
|
+
return;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
if (!_this2.isMountCanceled) {
|
|
1041
|
+
window.twttr.widgets.createVideo(_this2.props.id, _this2.refs.embedContainer).then(function (element) {
|
|
1042
|
+
_this2.setState({
|
|
1043
|
+
isLoading: false
|
|
1044
|
+
});
|
|
1045
|
+
|
|
1046
|
+
if (onLoad) {
|
|
1047
|
+
onLoad(element);
|
|
1048
|
+
}
|
|
1049
|
+
});
|
|
1050
|
+
}
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
}, {
|
|
1055
|
+
key: "componentWillUnmount",
|
|
1056
|
+
value: function componentWillUnmount() {
|
|
1057
|
+
this.isMountCanceled = true;
|
|
1058
|
+
}
|
|
1059
|
+
}, {
|
|
1060
|
+
key: "render",
|
|
1061
|
+
value: function render() {
|
|
1062
|
+
var isLoading = this.state.isLoading;
|
|
1063
|
+
var placeholder = this.props.placeholder;
|
|
1064
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1065
|
+
ref: "embedContainer"
|
|
1066
|
+
}));
|
|
1067
|
+
}
|
|
1068
|
+
}]);
|
|
1069
|
+
|
|
1070
|
+
return TwitterVideoEmbed;
|
|
1071
|
+
}(React.Component);
|
|
1072
|
+
|
|
1073
|
+
inherits$1$1._defineProperty(TwitterVideoEmbed, "propTypes", {
|
|
1074
|
+
/**
|
|
1075
|
+
* Id of video tweet.
|
|
1076
|
+
*/
|
|
1077
|
+
id: PropTypes__default.string.isRequired,
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* Placeholder while tweet is loading
|
|
1081
|
+
*/
|
|
1082
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* Function to execute after load, return html element
|
|
1086
|
+
*/
|
|
1087
|
+
onLoad: PropTypes__default.func
|
|
1088
|
+
});
|
|
1089
|
+
|
|
1090
|
+
var TwitterOnAirButton =
|
|
1091
|
+
/*#__PURE__*/
|
|
1092
|
+
function (_Component) {
|
|
1093
|
+
inherits$1$1._inherits(TwitterOnAirButton, _Component);
|
|
1094
|
+
|
|
1095
|
+
function TwitterOnAirButton(props) {
|
|
1096
|
+
var _this;
|
|
1097
|
+
|
|
1098
|
+
inherits$1$1._classCallCheck(this, TwitterOnAirButton);
|
|
1099
|
+
|
|
1100
|
+
_this = inherits$1$1._possibleConstructorReturn(this, inherits$1$1._getPrototypeOf(TwitterOnAirButton).call(this, props));
|
|
1101
|
+
_this.state = {
|
|
1102
|
+
isLoading: true
|
|
1103
|
+
};
|
|
1104
|
+
return _this;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
inherits$1$1._createClass(TwitterOnAirButton, [{
|
|
1108
|
+
key: "componentDidMount",
|
|
1109
|
+
value: function componentDidMount() {
|
|
1110
|
+
var _this2 = this;
|
|
1111
|
+
|
|
1112
|
+
var onLoad = this.props.onLoad;
|
|
1113
|
+
|
|
1114
|
+
if (exenv.canUseDOM) {
|
|
1115
|
+
var script = require('scriptjs');
|
|
1116
|
+
|
|
1117
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1118
|
+
if (!window.twttr) {
|
|
1119
|
+
console.error('Failure to load window.twttr in TwitterOnAirButton, aborting load.');
|
|
1120
|
+
return;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
if (!_this2.isMountCanceled) {
|
|
1124
|
+
window.twttr.widgets.createPeriscopeOnAirButton(_this2.props.username, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1125
|
+
_this2.setState({
|
|
1126
|
+
isLoading: false
|
|
1127
|
+
});
|
|
1128
|
+
|
|
1129
|
+
if (onLoad) {
|
|
1130
|
+
onLoad(element);
|
|
1131
|
+
}
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
}, {
|
|
1138
|
+
key: "componentWillUnmount",
|
|
1139
|
+
value: function componentWillUnmount() {
|
|
1140
|
+
this.isMountCanceled = true;
|
|
1141
|
+
}
|
|
1142
|
+
}, {
|
|
1143
|
+
key: "render",
|
|
1144
|
+
value: function render() {
|
|
1145
|
+
var isLoading = this.state.isLoading;
|
|
1146
|
+
var placeholder = this.props.placeholder;
|
|
1147
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1148
|
+
ref: "embedContainer"
|
|
1149
|
+
}));
|
|
1150
|
+
}
|
|
1151
|
+
}]);
|
|
1152
|
+
|
|
1153
|
+
return TwitterOnAirButton;
|
|
1154
|
+
}(React.Component);
|
|
1155
|
+
|
|
1156
|
+
inherits$1$1._defineProperty(TwitterOnAirButton, "propTypes", {
|
|
1157
|
+
/**
|
|
1158
|
+
* Username for which you require periscope on air button
|
|
1159
|
+
*/
|
|
1160
|
+
username: PropTypes__default.string.isRequired,
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Additional options for overriding config.
|
|
1164
|
+
*/
|
|
1165
|
+
options: PropTypes__default.object,
|
|
76
1166
|
|
|
77
|
-
|
|
1167
|
+
/**
|
|
1168
|
+
* Placeholder while tweet is loading
|
|
1169
|
+
*/
|
|
1170
|
+
placeholder: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.element]),
|
|
78
1171
|
|
|
79
|
-
|
|
1172
|
+
/**
|
|
1173
|
+
* Function to execute after load, return html element
|
|
1174
|
+
*/
|
|
1175
|
+
onLoad: PropTypes__default.func
|
|
1176
|
+
});
|
|
80
1177
|
|
|
81
1178
|
var ImageSlider = function ImageSlider(props) {
|
|
82
1179
|
var innerSlider = React.useRef(null);
|
|
@@ -181,61 +1278,61 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
181
1278
|
}, []);
|
|
182
1279
|
|
|
183
1280
|
var variant = 'black';
|
|
184
|
-
return React__default
|
|
185
|
-
React__default
|
|
1281
|
+
return React__default.createElement(
|
|
1282
|
+
React__default.Fragment,
|
|
186
1283
|
null,
|
|
187
|
-
React__default
|
|
1284
|
+
React__default.createElement(
|
|
188
1285
|
'div',
|
|
189
1286
|
{ ref: viewableWindow, id: 'vid-slider', className: 'col' },
|
|
190
|
-
React__default
|
|
1287
|
+
React__default.createElement(
|
|
191
1288
|
'div',
|
|
192
1289
|
{ className: 'row' },
|
|
193
|
-
showScroller && React__default
|
|
1290
|
+
showScroller && React__default.createElement(
|
|
194
1291
|
'div',
|
|
195
1292
|
{ onClick: function onClick(e) {
|
|
196
1293
|
return scrollSlider(e, 'prev');
|
|
197
1294
|
}, className: 'tile__slider-prev', style: { color: variant } },
|
|
198
|
-
React__default
|
|
1295
|
+
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow left' })
|
|
199
1296
|
),
|
|
200
|
-
showScroller && React__default
|
|
1297
|
+
showScroller && React__default.createElement(
|
|
201
1298
|
'div',
|
|
202
1299
|
{ onClick: function onClick(e) {
|
|
203
1300
|
return scrollSlider(e, 'next');
|
|
204
1301
|
}, className: 'tile__slider-next', style: { color: variant } },
|
|
205
|
-
React__default
|
|
1302
|
+
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow right' })
|
|
206
1303
|
),
|
|
207
|
-
React__default
|
|
1304
|
+
React__default.createElement(
|
|
208
1305
|
'div',
|
|
209
1306
|
{ ref: innerSlider, className: 'row__inner' },
|
|
210
1307
|
props.data.slides.map(function (img, index) {
|
|
211
1308
|
var thumbnail = urlFor({ client: client, source: img.slideshowImage, imageWidth: 250 });
|
|
212
1309
|
if (!img.slideshowImage.link) {
|
|
213
|
-
return React__default
|
|
1310
|
+
return React__default.createElement(
|
|
214
1311
|
'div',
|
|
215
1312
|
{ ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
|
|
216
|
-
React__default
|
|
1313
|
+
React__default.createElement(
|
|
217
1314
|
'div',
|
|
218
1315
|
{ className: 'tile__media' },
|
|
219
|
-
React__default
|
|
1316
|
+
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
220
1317
|
),
|
|
221
|
-
React__default
|
|
1318
|
+
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
222
1319
|
);
|
|
223
1320
|
} else {
|
|
224
|
-
return React__default
|
|
1321
|
+
return React__default.createElement(
|
|
225
1322
|
'a',
|
|
226
1323
|
{ ref: tile, key: index, href: img.slideshowImage.link, target: img.slideshowImage.blank ? '_target' : '_self', className: 'tile', style: { width: tileSize + 'px' } },
|
|
227
|
-
React__default
|
|
1324
|
+
React__default.createElement(
|
|
228
1325
|
'div',
|
|
229
1326
|
{ className: 'tile__media' },
|
|
230
|
-
React__default
|
|
1327
|
+
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
231
1328
|
),
|
|
232
|
-
React__default
|
|
1329
|
+
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
233
1330
|
);
|
|
234
1331
|
}
|
|
235
1332
|
})
|
|
236
1333
|
)
|
|
237
1334
|
),
|
|
238
|
-
React__default
|
|
1335
|
+
React__default.createElement(
|
|
239
1336
|
'style',
|
|
240
1337
|
{ jsx: 'true' },
|
|
241
1338
|
'\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 '
|
|
@@ -258,95 +1355,95 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
258
1355
|
pageview = _ref.pageview,
|
|
259
1356
|
page = _ref.page;
|
|
260
1357
|
|
|
261
|
-
return React__default
|
|
262
|
-
React__default
|
|
1358
|
+
return React__default.createElement(
|
|
1359
|
+
React__default.Fragment,
|
|
263
1360
|
null,
|
|
264
|
-
React__default
|
|
265
|
-
React__default
|
|
1361
|
+
React__default.createElement(Breadcrumbs, null),
|
|
1362
|
+
React__default.createElement(
|
|
266
1363
|
'div',
|
|
267
1364
|
{ className: 'partners-page' },
|
|
268
|
-
React__default
|
|
1365
|
+
React__default.createElement(
|
|
269
1366
|
'div',
|
|
270
1367
|
{ className: 'my-5 partner-logo-wrap', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' } },
|
|
271
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.link ? React__default
|
|
1368
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.link ? React__default.createElement(
|
|
272
1369
|
'a',
|
|
273
1370
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%' }, href: partnerDetails.thumbnail.link, target: partnerDetails.thumbnail.blank ? '_blank' : '' },
|
|
274
|
-
React__default
|
|
1371
|
+
React__default.createElement(
|
|
275
1372
|
'figure',
|
|
276
1373
|
{ style: { width: '100%', textAlign: 'center' } },
|
|
277
|
-
React__default
|
|
1374
|
+
React__default.createElement('img', {
|
|
278
1375
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
279
1376
|
style: { maxWidth: '100%' },
|
|
280
1377
|
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : '' }),
|
|
281
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default
|
|
1378
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default.createElement(
|
|
282
1379
|
'figcaption',
|
|
283
1380
|
null,
|
|
284
1381
|
partnerDetails.thumbnail.caption
|
|
285
1382
|
)
|
|
286
1383
|
)
|
|
287
|
-
) : React__default
|
|
1384
|
+
) : React__default.createElement(
|
|
288
1385
|
'figure',
|
|
289
1386
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%', textAlign: 'center' } },
|
|
290
|
-
React__default
|
|
1387
|
+
React__default.createElement('img', {
|
|
291
1388
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
292
1389
|
style: { maxWidth: '100%' },
|
|
293
1390
|
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : '' }),
|
|
294
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default
|
|
1391
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default.createElement(
|
|
295
1392
|
'figcaption',
|
|
296
1393
|
null,
|
|
297
1394
|
partnerDetails.thumbnail.caption
|
|
298
1395
|
)
|
|
299
1396
|
),
|
|
300
|
-
React__default
|
|
1397
|
+
React__default.createElement(
|
|
301
1398
|
'style',
|
|
302
1399
|
{ jsx: 'true' },
|
|
303
1400
|
'\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 '
|
|
304
1401
|
),
|
|
305
|
-
partnerDetails.description && React__default
|
|
1402
|
+
partnerDetails.description && React__default.createElement(
|
|
306
1403
|
'div',
|
|
307
1404
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
308
|
-
React__default
|
|
1405
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers.getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
309
1406
|
)
|
|
310
1407
|
),
|
|
311
|
-
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React__default
|
|
1408
|
+
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React__default.createElement(
|
|
312
1409
|
'div',
|
|
313
1410
|
{ className: 'mb-4', style: { padding: '0 15px' } },
|
|
314
|
-
partnerDetails.affiliates[0].title && React__default
|
|
1411
|
+
partnerDetails.affiliates[0].title && React__default.createElement(
|
|
315
1412
|
'h2',
|
|
316
1413
|
{ className: 'bb-gold' },
|
|
317
1414
|
partnerDetails.affiliates[0].title
|
|
318
1415
|
),
|
|
319
|
-
React__default
|
|
1416
|
+
React__default.createElement(ImageSlider, { client: client, data: partnerDetails.affiliates[0] })
|
|
320
1417
|
),
|
|
321
|
-
features.length > 0 && React__default
|
|
1418
|
+
features.length > 0 && React__default.createElement(
|
|
322
1419
|
'div',
|
|
323
1420
|
{ className: ' mb-5' },
|
|
324
|
-
React__default
|
|
1421
|
+
React__default.createElement(Feature, { dataset: features, client: client })
|
|
325
1422
|
),
|
|
326
|
-
partnerDetails.twitter && React__default
|
|
327
|
-
React__default
|
|
1423
|
+
partnerDetails.twitter && React__default.createElement(
|
|
1424
|
+
React__default.Fragment,
|
|
328
1425
|
null,
|
|
329
|
-
React__default
|
|
1426
|
+
React__default.createElement(
|
|
330
1427
|
'div',
|
|
331
1428
|
{ className: 'mb-5', style: { width: '100%', textAlign: 'center', padding: '0 15px', border: '2px solid #aaa', borderRadius: '15px' } },
|
|
332
|
-
React__default
|
|
1429
|
+
React__default.createElement(TwitterTimelineEmbed, { sourceType: 'url', url: partnerDetails.twitter, options: { height: 400 } })
|
|
333
1430
|
)
|
|
334
1431
|
),
|
|
335
|
-
React__default
|
|
1432
|
+
React__default.createElement(
|
|
336
1433
|
'div',
|
|
337
1434
|
null,
|
|
338
|
-
posts && posts.length > 0 && React__default
|
|
339
|
-
React__default
|
|
1435
|
+
posts && posts.length > 0 && React__default.createElement(
|
|
1436
|
+
React__default.Fragment,
|
|
340
1437
|
null,
|
|
341
|
-
React__default
|
|
1438
|
+
React__default.createElement(
|
|
342
1439
|
'h2',
|
|
343
1440
|
{ className: 'bb-gold mb-2' },
|
|
344
1441
|
'Latest from ',
|
|
345
1442
|
partnerDetails.name
|
|
346
1443
|
),
|
|
347
|
-
React__default
|
|
1444
|
+
React__default.createElement('hr', null)
|
|
348
1445
|
),
|
|
349
|
-
React__default
|
|
1446
|
+
React__default.createElement(QueueDeckExpanded, {
|
|
350
1447
|
client: client,
|
|
351
1448
|
mapping: Settings.mapping,
|
|
352
1449
|
dataRecord: posts,
|