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