@mjhls/mjh-framework 1.0.831-beta.0 → 1.0.831
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 +10 -9
- package/dist/cjs/AD300x250.js +31 -30
- package/dist/cjs/AD300x250x600.js +31 -30
- package/dist/cjs/AD728x90.js +34 -33
- package/dist/cjs/ADFloatingFooter.js +33 -32
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +33 -32
- package/dist/cjs/{ADInfeed-8d621d3c.js → ADInfeed-8b336c67.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +33 -32
- package/dist/cjs/ADSponsoredResources.js +33 -32
- package/dist/cjs/ADWebcast.js +33 -32
- package/dist/cjs/ADWelcome.js +34 -33
- package/dist/cjs/{ADlgInfeed-0e26bccb.js → ADlgInfeed-aedd5e18.js} +11 -10
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +36 -35
- package/dist/cjs/AdSlotsProvider.js +20 -911
- package/dist/cjs/AlgoliaSearch.js +1087 -1068
- package/dist/cjs/AlphabeticList.js +26 -25
- package/dist/cjs/ArticleCarousel.js +24 -23
- package/dist/cjs/ArticleProgramLandingPage.js +60 -59
- package/dist/cjs/ArticleSeriesLandingPage.js +41 -40
- package/dist/cjs/ArticleSeriesListing.js +62 -61
- package/dist/cjs/Auth.js +686 -662
- package/dist/cjs/AuthWrapper.js +311 -269
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-c21aac7f.js} +14 -13
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-36e54d77.js} +56 -55
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +36 -33
- package/dist/cjs/Column3.js +62 -59
- package/dist/cjs/ConferenceArticleCard.js +38 -37
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +107 -103
- package/dist/cjs/DeckQueue.js +92 -88
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-93399f8c.js} +35 -34
- package/dist/cjs/EventsDeck.js +159 -152
- package/dist/cjs/ExternalResources.js +81 -80
- package/dist/cjs/Feature.js +26 -24
- package/dist/cjs/ForbesHero.js +43 -42
- package/dist/cjs/GridContent.js +191 -290
- package/dist/cjs/GridHero.js +45 -44
- package/dist/cjs/GroupDeck.js +60 -59
- package/dist/cjs/HamMagazine.js +145 -140
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +73 -72
- package/dist/cjs/HorizontalHero.js +25 -24
- package/dist/cjs/IssueContentDeck.js +78 -73
- package/dist/cjs/IssueDeck.js +77 -72
- package/dist/cjs/IssueLanding.js +96 -95
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +41 -39
- package/dist/cjs/MasterDeck.js +81 -80
- package/dist/cjs/MediaSeriesLanding.js +1117 -1126
- package/dist/cjs/NavDvm.js +79 -74
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +152 -147
- package/dist/cjs/NavNative.js +147 -139
- package/dist/cjs/OncliveHero.js +19 -19
- package/dist/cjs/OncliveLargeHero.js +73 -72
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +109 -108
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PubSection.js +43 -42
- package/dist/cjs/PubToc.js +16 -15
- package/dist/cjs/PublicationDeck.js +67 -62
- package/dist/cjs/PublicationLanding.js +139 -135
- package/dist/cjs/QueueDeckExpanded.js +310 -310
- package/dist/cjs/RecentNews.js +22 -21
- package/dist/cjs/RelatedContent.js +55 -54
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +22 -18
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +38 -38
- package/dist/cjs/{SeriesSlider-85eec772.js → SeriesSlider-d54fa925.js} +40 -39
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +39 -38
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-ecb4f972.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +64 -59
- package/dist/cjs/TaxonomyDescription.js +56 -55
- package/dist/cjs/TemplateNormal.js +75 -74
- package/dist/cjs/ThumbnailCard.js +23 -21
- package/dist/cjs/Ustream.js +30 -29
- package/dist/cjs/VerticalHero.js +17 -16
- package/dist/cjs/VideoProgramLandingPage.js +78 -74
- package/dist/cjs/VideoSeriesCard.js +34 -33
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +51 -50
- package/dist/cjs/VideoSeriesListing.js +79 -78
- package/dist/cjs/View.js +266 -263
- package/dist/cjs/YahooHero.js +42 -41
- package/dist/cjs/YoutubeGroup.js +67 -66
- package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
- package/dist/cjs/{extends-0a918631.js → extends-29bdbc6d.js} +7 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +425 -12
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +45 -45
- package/dist/cjs/{getTargeting-021d644c.js → getTargeting-be6168ad.js} +12 -12
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-454b179d.js → index-5cba8ed7.js} +983 -960
- package/dist/cjs/{index-e2e62963.js → index-8041a4eb.js} +11 -1
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
- package/dist/cjs/{index-be0c82be.js → index-efca863c.js} +36 -30
- package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index-98e01cb9.js → index-fc2f1ca2.js} +13 -12
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +167 -163
- package/dist/cjs/{inherits-9953db94.js → inherits-c2065b95.js} +22 -22
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
- package/dist/cjs/main-025fdc78.js +973 -0
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5d1bc3b3.js} +14 -14
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-725500bc.js → typeof-88a668c5.js} +36 -36
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-b2b9092f.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.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-b566ce41.js → ADInfeed-28b1e946.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-5eb7281d.js → ADlgInfeed-0b474b02.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +27 -27
- package/dist/esm/AdSlotsProvider.js +17 -909
- package/dist/esm/AlgoliaSearch.js +736 -718
- 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 +665 -645
- package/dist/esm/AuthWrapper.js +308 -267
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-5ae7409f.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-52cf21c5.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-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +98 -98
- package/dist/esm/DeckQueue.js +83 -83
- package/dist/esm/{Dfp-b7236041.js → Dfp-43f121ff.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 +173 -276
- 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 +840 -852
- package/dist/esm/NavDvm.js +59 -59
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +126 -126
- package/dist/esm/NavNative.js +116 -116
- package/dist/esm/OncliveHero.js +16 -17
- package/dist/esm/OncliveLargeHero.js +60 -60
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +105 -105
- 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-afab5c1b.js → SeriesSlider-8f2aca58.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-03c3e869.js → SocialSearchComponent-cd38ae60.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 +246 -247
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +51 -51
- package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
- package/dist/esm/{extends-6f2fcc99.js → extends-60e0e1c6.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +425 -12
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -45
- package/dist/esm/{getTargeting-82e86707.js → getTargeting-68291ce9.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-73819142.js → index-0dbff1d1.js} +36 -30
- package/dist/esm/{index-41a678ea.js → index-2446af28.js} +6 -6
- package/dist/esm/{index-5f7e79e7.js → index-35bdcc81.js} +10 -10
- package/dist/esm/{index-0d1eb0c4.js → index-4d43928d.js} +940 -924
- package/dist/esm/{index-aaa2dae0.js → index-67e1773f.js} +11 -2
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
- package/dist/esm/index.js +137 -136
- package/dist/esm/{inherits-cf8dde54.js → inherits-a41fe93f.js} +19 -19
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
- package/dist/esm/main-b5c5aac1.js +961 -0
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-6435ba1c.js → typeof-a286cf0c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-33a866b6.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
- package/package.json +110 -110
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/main-e4a934b2.js +0 -851
- package/dist/esm/stringify-4330ccdc.js +0 -15
package/dist/esm/GridContent.js
CHANGED
|
@@ -1,54 +1,53 @@
|
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
2
|
+
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
3
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-a41fe93f.js';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { l as lib_3 } from './index-2446af28.js';
|
|
6
|
+
import Container from 'react-bootstrap/Container';
|
|
7
|
+
import Row from 'react-bootstrap/Row';
|
|
8
|
+
import Col from 'react-bootstrap/Col';
|
|
9
|
+
import Card from 'react-bootstrap/Card';
|
|
10
|
+
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
11
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
12
|
+
import { withRouter } from 'next/router';
|
|
13
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
14
|
+
import { c as clean_html_1 } from './entities-932b50cf.js';
|
|
15
|
+
import { A as ADInfeed } from './ADInfeed-28b1e946.js';
|
|
16
|
+
import { l as lodash } from './lodash-f97fd99a.js';
|
|
17
|
+
import { A as ADlgInfeed } from './ADlgInfeed-0b474b02.js';
|
|
18
|
+
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
19
|
+
import { g as get_1 } from './get-3c308da4.js';
|
|
20
|
+
import { d as debounce_1 } from './debounce-533d9748.js';
|
|
21
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
22
|
+
import urlFor from './urlFor.js';
|
|
23
|
+
import { m as main_43 } from './main-b5c5aac1.js';
|
|
24
|
+
import './AD.js';
|
|
25
|
+
import { A as AuthorComponent } from './AuthorComponent-5ae7409f.js';
|
|
1
26
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
27
|
+
import './es6.string.iterator-bc33758b.js';
|
|
28
|
+
import './_to-object-b50e61c3.js';
|
|
29
|
+
import './_iter-detect-7e5e5ce2.js';
|
|
30
|
+
import './core.get-iterator-method-133dfacd.js';
|
|
31
|
+
import './_object-pie-133f504a.js';
|
|
32
|
+
import './_object-sap-f353c2a9.js';
|
|
33
|
+
import './define-property-fe54dc9f.js';
|
|
34
|
+
import './typeof-a286cf0c.js';
|
|
35
|
+
import './web.dom.iterable-4109ff68.js';
|
|
36
|
+
import './_is-array-3e99e06e.js';
|
|
4
37
|
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-5d49a330.js';
|
|
6
|
-
import { _ as _toConsumableArray } from './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 { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './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 from 'react';
|
|
17
38
|
import './events-6c3a7a63.js';
|
|
18
|
-
import { l as lib_3 } from './index-41a678ea.js';
|
|
19
39
|
import 'prop-types';
|
|
20
|
-
import Container$1 from 'react-bootstrap/Container';
|
|
21
|
-
import Row$1 from 'react-bootstrap/Row';
|
|
22
|
-
import Col$1 from 'react-bootstrap/Col';
|
|
23
|
-
import Card$1 from 'react-bootstrap/Card';
|
|
24
|
-
import { m as moment } from './moment-e2f9b20c.js';
|
|
25
|
-
import { withRouter } from 'next/router';
|
|
26
|
-
import './isSymbol-1981418f.js';
|
|
27
|
-
import { d as debounce_1 } from './debounce-9207d8ee.js';
|
|
28
|
-
import './toNumber-2f7a84cd.js';
|
|
29
|
-
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
30
40
|
import 'react-dom';
|
|
31
|
-
import
|
|
32
|
-
import './index-73819142.js';
|
|
33
|
-
import urlFor from './urlFor.js';
|
|
34
|
-
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
35
|
-
import { m as main_36 } from './main-e4a934b2.js';
|
|
36
|
-
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
37
|
-
import './slicedToArray-641f241f.js';
|
|
38
|
-
import './stringify-4330ccdc.js';
|
|
39
|
-
import './asyncToGenerator-fc1c2e29.js';
|
|
40
|
-
import './Segment.js';
|
|
41
|
-
import './Beam.js';
|
|
41
|
+
import './slicedToArray-be2f7a22.js';
|
|
42
42
|
import './AdSlot.js';
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import './
|
|
50
|
-
import './
|
|
51
|
-
import { A as AuthorComponent } from './AuthorComponent-34b16174.js';
|
|
43
|
+
import './Beam.js';
|
|
44
|
+
import './stringify-59c8f690.js';
|
|
45
|
+
import './asyncToGenerator-7f8f9219.js';
|
|
46
|
+
import './Segment.js';
|
|
47
|
+
import './isSymbol-a7e9aafe.js';
|
|
48
|
+
import './eq-bdcbf886.js';
|
|
49
|
+
import './toNumber-5aeba6e7.js';
|
|
50
|
+
import './index-0dbff1d1.js';
|
|
52
51
|
|
|
53
52
|
var GridContent = function (_React$Component) {
|
|
54
53
|
_inherits(GridContent, _React$Component);
|
|
@@ -166,9 +165,9 @@ var GridContent = function (_React$Component) {
|
|
|
166
165
|
}
|
|
167
166
|
}, _this.changePageNumber = function (pageNumber, itemsPerPage, itemIndex) {
|
|
168
167
|
var _this$props2 = _this.props,
|
|
169
|
-
seoPaginate = _this$props2.seoPaginate
|
|
170
|
-
|
|
171
|
-
router = _this$props2.router;
|
|
168
|
+
seoPaginate = _this$props2.seoPaginate;
|
|
169
|
+
_this$props2.pageview;
|
|
170
|
+
var router = _this$props2.router;
|
|
172
171
|
var currentPage = _this.state.currentPage;
|
|
173
172
|
|
|
174
173
|
if (seoPaginate) {
|
|
@@ -229,109 +228,11 @@ var GridContent = function (_React$Component) {
|
|
|
229
228
|
}
|
|
230
229
|
}, _this.checkExternalUrl = function (url) {
|
|
231
230
|
return new RegExp(['http', 'https'].join('|')).test(url);
|
|
232
|
-
}, _this.renderPublicationFeature = function (row) {
|
|
233
|
-
var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
234
|
-
var _row$parent = row.parent;
|
|
235
|
-
_row$parent = _row$parent === undefined ? {} : _row$parent;
|
|
236
|
-
var _row$parent$identifie = _row$parent.identifier;
|
|
237
|
-
_row$parent$identifie = _row$parent$identifie === undefined ? {} : _row$parent$identifie;
|
|
238
|
-
var parentSlug = _row$parent$identifie.current,
|
|
239
|
-
_row$identifier = row.identifier;
|
|
240
|
-
_row$identifier = _row$identifier === undefined ? {} : _row$identifier;
|
|
241
|
-
var childSlug = _row$identifier.current;
|
|
242
|
-
var _this$props$issueMapp = _this.props.issueMapping,
|
|
243
|
-
issueMapping = _this$props$issueMapp === undefined ? '/publications' : _this$props$issueMapp;
|
|
244
|
-
|
|
245
|
-
if (row.name && row.articles && row.articles.length > 0) {
|
|
246
|
-
return React__default.createElement(
|
|
247
|
-
'div',
|
|
248
|
-
{ className: 'publication-feature-container border rounded p-2' },
|
|
249
|
-
React__default.createElement(
|
|
250
|
-
Row$1,
|
|
251
|
-
null,
|
|
252
|
-
React__default.createElement(
|
|
253
|
-
Col$1,
|
|
254
|
-
{ xs: 12 },
|
|
255
|
-
React__default.createElement(
|
|
256
|
-
'h4',
|
|
257
|
-
null,
|
|
258
|
-
row.name,
|
|
259
|
-
row.month && row.year && React__default.createElement(
|
|
260
|
-
'span',
|
|
261
|
-
null,
|
|
262
|
-
' ',
|
|
263
|
-
'| ',
|
|
264
|
-
months[parseInt(row.month, 10)],
|
|
265
|
-
' ',
|
|
266
|
-
row.year
|
|
267
|
-
)
|
|
268
|
-
)
|
|
269
|
-
),
|
|
270
|
-
React__default.createElement(
|
|
271
|
-
Col$1,
|
|
272
|
-
{ xs: 12, sm: 4 },
|
|
273
|
-
React__default.createElement('img', { className: 'w-100', src: _this.renderCardImage(row), alt: row.name || '' })
|
|
274
|
-
),
|
|
275
|
-
React__default.createElement(
|
|
276
|
-
Col$1,
|
|
277
|
-
{ xs: 12, sm: 8 },
|
|
278
|
-
React__default.createElement(
|
|
279
|
-
Row$1,
|
|
280
|
-
null,
|
|
281
|
-
row.articles.map(function (article) {
|
|
282
|
-
return React__default.createElement(
|
|
283
|
-
Col$1,
|
|
284
|
-
{ key: article._id, xs: 12, sm: 6 },
|
|
285
|
-
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
286
|
-
'h6',
|
|
287
|
-
{ className: 'text-primary m-0 p-0 text-uppercase font-weight-bold' },
|
|
288
|
-
article.issueSection.name
|
|
289
|
-
),
|
|
290
|
-
article.title && React__default.createElement(
|
|
291
|
-
React__default.Fragment,
|
|
292
|
-
null,
|
|
293
|
-
article.url && article.url.current ? React__default.createElement(
|
|
294
|
-
'a',
|
|
295
|
-
{ href: '/view/' + article.url.current },
|
|
296
|
-
React__default.createElement(
|
|
297
|
-
'h6',
|
|
298
|
-
{ className: 'text-break' },
|
|
299
|
-
article.title
|
|
300
|
-
)
|
|
301
|
-
) : React__default.createElement(
|
|
302
|
-
'h6',
|
|
303
|
-
{ className: 'text-break' },
|
|
304
|
-
article.title
|
|
305
|
-
)
|
|
306
|
-
)
|
|
307
|
-
);
|
|
308
|
-
})
|
|
309
|
-
)
|
|
310
|
-
),
|
|
311
|
-
issueMapping && parentSlug && childSlug && React__default.createElement(
|
|
312
|
-
Col$1,
|
|
313
|
-
{ xs: 12 },
|
|
314
|
-
React__default.createElement(
|
|
315
|
-
Button$1,
|
|
316
|
-
{ href: issueMapping + '/' + parentSlug + '/' + childSlug, className: 'float-right', variant: 'outline-primary' },
|
|
317
|
-
'More Articles ',
|
|
318
|
-
'>>'
|
|
319
|
-
)
|
|
320
|
-
)
|
|
321
|
-
),
|
|
322
|
-
React__default.createElement(
|
|
323
|
-
'style',
|
|
324
|
-
{ jsx: 'true' },
|
|
325
|
-
'\n .row {\n margin-top: -15px;\n }\n .row > * {\n margin-top: 15px;\n }\n '
|
|
326
|
-
)
|
|
327
|
-
);
|
|
328
|
-
}
|
|
329
|
-
return null;
|
|
330
231
|
}, _this.renderMobileAd = function (index, numberOfItemsBeforeAd) {
|
|
331
232
|
var rightItems = _this.props.rightItems;
|
|
332
233
|
|
|
333
234
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
334
|
-
return
|
|
235
|
+
return React.createElement(
|
|
335
236
|
'div',
|
|
336
237
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
337
238
|
rightItems[i].component
|
|
@@ -339,15 +240,15 @@ var GridContent = function (_React$Component) {
|
|
|
339
240
|
}, _this.renderManualPagination = function () {
|
|
340
241
|
var currentPage = _this.state.currentPage;
|
|
341
242
|
|
|
342
|
-
return
|
|
243
|
+
return React.createElement(
|
|
343
244
|
'div',
|
|
344
245
|
{ className: 'd-flex justify-content-between' },
|
|
345
|
-
currentPage && currentPage > 1 &&
|
|
246
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
346
247
|
'a',
|
|
347
248
|
{ href: '?page=' + (currentPage - 1) },
|
|
348
249
|
'<< Previous'
|
|
349
250
|
),
|
|
350
|
-
|
|
251
|
+
React.createElement(
|
|
351
252
|
'a',
|
|
352
253
|
{ href: '?page=' + (currentPage + 1) },
|
|
353
254
|
'Next >>'
|
|
@@ -358,7 +259,7 @@ var GridContent = function (_React$Component) {
|
|
|
358
259
|
|
|
359
260
|
_createClass(GridContent, [{
|
|
360
261
|
key: 'cardLoader',
|
|
361
|
-
value: function cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, lgInfeedAd, contentCategoryMapping
|
|
262
|
+
value: function cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, lgInfeedAd, contentCategoryMapping) {
|
|
362
263
|
var _this2 = this;
|
|
363
264
|
|
|
364
265
|
var lgVar = Math.floor(12 / columns);
|
|
@@ -366,62 +267,62 @@ var GridContent = function (_React$Component) {
|
|
|
366
267
|
var numberOfItemsBeforeAd = 6;
|
|
367
268
|
var numberOfItemsBeforeVideo = 3;
|
|
368
269
|
if (variant === 'stack') {
|
|
369
|
-
return
|
|
370
|
-
Row
|
|
270
|
+
return React.createElement(
|
|
271
|
+
Row,
|
|
371
272
|
null,
|
|
372
273
|
this.state.data && this.state.data.length > 0 ? this.state.data.map(function (row, index) {
|
|
373
274
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
374
|
-
return
|
|
375
|
-
Col
|
|
275
|
+
return React.createElement(
|
|
276
|
+
Col,
|
|
376
277
|
{ key: index, md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
377
|
-
|
|
378
|
-
Card
|
|
278
|
+
React.createElement(
|
|
279
|
+
Card,
|
|
379
280
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
380
|
-
|
|
381
|
-
Row
|
|
281
|
+
React.createElement(
|
|
282
|
+
Row,
|
|
382
283
|
{ style: { flexDirection: 'row' } },
|
|
383
|
-
|
|
384
|
-
Col
|
|
284
|
+
React.createElement(
|
|
285
|
+
Col,
|
|
385
286
|
{ md: 12, lg: 4 },
|
|
386
|
-
|
|
287
|
+
React.createElement(
|
|
387
288
|
'a',
|
|
388
289
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
389
|
-
|
|
290
|
+
React.createElement(
|
|
390
291
|
LazyLoad,
|
|
391
292
|
{ height: _this2.props.imageHeight },
|
|
392
|
-
|
|
293
|
+
React.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row, page), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
393
294
|
)
|
|
394
295
|
)
|
|
395
296
|
),
|
|
396
|
-
|
|
397
|
-
Col
|
|
297
|
+
React.createElement(
|
|
298
|
+
Col,
|
|
398
299
|
null,
|
|
399
|
-
|
|
400
|
-
Card
|
|
300
|
+
React.createElement(
|
|
301
|
+
Card.Body,
|
|
401
302
|
{ style: { padding: '20px' } },
|
|
402
|
-
|
|
403
|
-
Card
|
|
303
|
+
React.createElement(
|
|
304
|
+
Card.Title,
|
|
404
305
|
null,
|
|
405
|
-
|
|
306
|
+
React.createElement(
|
|
406
307
|
'a',
|
|
407
308
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
408
309
|
row.title
|
|
409
310
|
)
|
|
410
311
|
),
|
|
411
|
-
_this2.props.showPublished && row.published &&
|
|
412
|
-
Card
|
|
312
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
313
|
+
Card.Subtitle,
|
|
413
314
|
{ style: { marginTop: 0 } },
|
|
414
315
|
moment(row.published).format('MMMM DD, YYYY')
|
|
415
316
|
),
|
|
416
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
317
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
417
318
|
LazyLoad,
|
|
418
319
|
{ height: 50 },
|
|
419
|
-
|
|
320
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
420
321
|
),
|
|
421
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
322
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
422
323
|
LazyLoad,
|
|
423
324
|
{ height: 50 },
|
|
424
|
-
|
|
325
|
+
React.createElement(
|
|
425
326
|
'p',
|
|
426
327
|
{
|
|
427
328
|
className: 'article-category',
|
|
@@ -436,8 +337,8 @@ var GridContent = function (_React$Component) {
|
|
|
436
337
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
437
338
|
)
|
|
438
339
|
),
|
|
439
|
-
|
|
440
|
-
Card
|
|
340
|
+
React.createElement(
|
|
341
|
+
Card.Text,
|
|
441
342
|
null,
|
|
442
343
|
clean_html_1(row.summary)
|
|
443
344
|
)
|
|
@@ -446,13 +347,13 @@ var GridContent = function (_React$Component) {
|
|
|
446
347
|
)
|
|
447
348
|
)
|
|
448
349
|
);
|
|
449
|
-
}) :
|
|
350
|
+
}) : React.createElement(
|
|
450
351
|
'div',
|
|
451
352
|
null,
|
|
452
|
-
|
|
353
|
+
React.createElement(
|
|
453
354
|
'h5',
|
|
454
355
|
null,
|
|
455
|
-
|
|
356
|
+
React.createElement(
|
|
456
357
|
'em',
|
|
457
358
|
null,
|
|
458
359
|
'New content coming soon, please check back later.'
|
|
@@ -560,14 +461,10 @@ var GridContent = function (_React$Component) {
|
|
|
560
461
|
}
|
|
561
462
|
});
|
|
562
463
|
|
|
563
|
-
var publicationFeature = this.props.publicationFeature;
|
|
564
|
-
|
|
565
|
-
if (publicationFeature) posts = insert(posts, 3, publicationFeature);
|
|
566
|
-
|
|
567
464
|
var itemsPerPage = this.props.params && this.props.params.itemsPerPage ? this.props.params.itemsPerPage : 10;
|
|
568
465
|
var heroContent = this.props.heroContent ? this.props.heroContent : 0;
|
|
569
466
|
var featureCount = 0;
|
|
570
|
-
return
|
|
467
|
+
return React.createElement(
|
|
571
468
|
'div',
|
|
572
469
|
{ className: 'grid-container' },
|
|
573
470
|
posts && posts.length > 0 ? posts.map(function (row, index) {
|
|
@@ -577,59 +474,59 @@ var GridContent = function (_React$Component) {
|
|
|
577
474
|
if (row._type === 'feature') {
|
|
578
475
|
featureCount++;
|
|
579
476
|
if (row.blank || _this2.checkExternalUrl(row.url.current)) {
|
|
580
|
-
return
|
|
581
|
-
|
|
477
|
+
return React.createElement(
|
|
478
|
+
React.Fragment,
|
|
582
479
|
{ key: itemCounter },
|
|
583
|
-
|
|
480
|
+
React.createElement(
|
|
584
481
|
VisibilitySensor,
|
|
585
482
|
{
|
|
586
483
|
partialVisibility: true,
|
|
587
484
|
onChange: function onChange(isVisible) {
|
|
588
485
|
isVisible && _this2.changePageNumber(1, itemsPerPage, index);
|
|
589
486
|
} },
|
|
590
|
-
|
|
487
|
+
React.createElement(
|
|
591
488
|
'div',
|
|
592
489
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
593
|
-
|
|
594
|
-
Card
|
|
490
|
+
React.createElement(
|
|
491
|
+
Card,
|
|
595
492
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
596
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
493
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
597
494
|
'a',
|
|
598
495
|
{ rel: 'noopener', href: row.url.current, target: '_blank', className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
599
|
-
|
|
496
|
+
React.createElement(
|
|
600
497
|
LazyLoad,
|
|
601
498
|
{ height: _this2.props.imageHeight },
|
|
602
|
-
|
|
499
|
+
React.createElement(Card.Img, {
|
|
603
500
|
variant: 'top',
|
|
604
501
|
src: _this2.renderCardImage(row, page),
|
|
605
502
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
606
503
|
})
|
|
607
504
|
)
|
|
608
505
|
),
|
|
609
|
-
|
|
610
|
-
Card
|
|
506
|
+
React.createElement(
|
|
507
|
+
Card.Body,
|
|
611
508
|
null,
|
|
612
|
-
|
|
509
|
+
React.createElement(
|
|
613
510
|
'a',
|
|
614
511
|
{ rel: 'noopener', href: row.url.current, target: '_blank' },
|
|
615
|
-
|
|
616
|
-
Card
|
|
512
|
+
React.createElement(
|
|
513
|
+
Card.Title,
|
|
617
514
|
null,
|
|
618
515
|
row.title
|
|
619
516
|
)
|
|
620
517
|
),
|
|
621
|
-
_this2.props.showPublished && row.published &&
|
|
622
|
-
Card
|
|
518
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
519
|
+
Card.Subtitle,
|
|
623
520
|
{ style: { marginTop: 0 } },
|
|
624
521
|
moment(row.published).format('MMMM DD, YYYY')
|
|
625
522
|
),
|
|
626
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
523
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
627
524
|
LazyLoad,
|
|
628
525
|
{ height: 50 },
|
|
629
|
-
|
|
526
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
630
527
|
),
|
|
631
|
-
|
|
632
|
-
Card
|
|
528
|
+
React.createElement(
|
|
529
|
+
Card.Text,
|
|
633
530
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
634
531
|
clean_html_1(row.summary)
|
|
635
532
|
)
|
|
@@ -637,63 +534,63 @@ var GridContent = function (_React$Component) {
|
|
|
637
534
|
)
|
|
638
535
|
)
|
|
639
536
|
),
|
|
640
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
641
|
-
|
|
537
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
538
|
+
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
642
539
|
);
|
|
643
540
|
} else {
|
|
644
|
-
return
|
|
645
|
-
|
|
541
|
+
return React.createElement(
|
|
542
|
+
React.Fragment,
|
|
646
543
|
{ key: itemCounter },
|
|
647
|
-
|
|
544
|
+
React.createElement(
|
|
648
545
|
VisibilitySensor,
|
|
649
546
|
{
|
|
650
547
|
partialVisibility: true,
|
|
651
548
|
onChange: function onChange(isVisible) {
|
|
652
549
|
isVisible && _this2.changePageNumber(1, itemsPerPage, index);
|
|
653
550
|
} },
|
|
654
|
-
|
|
551
|
+
React.createElement(
|
|
655
552
|
'div',
|
|
656
553
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
657
|
-
|
|
658
|
-
Card
|
|
554
|
+
React.createElement(
|
|
555
|
+
Card,
|
|
659
556
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
660
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
557
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
661
558
|
'a',
|
|
662
559
|
{ href: row.url.current, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
663
|
-
|
|
560
|
+
React.createElement(
|
|
664
561
|
LazyLoad,
|
|
665
562
|
{ height: _this2.props.imageHeight },
|
|
666
|
-
|
|
563
|
+
React.createElement(Card.Img, {
|
|
667
564
|
variant: 'top',
|
|
668
565
|
src: _this2.renderCardImage(row, page),
|
|
669
566
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
670
567
|
})
|
|
671
568
|
)
|
|
672
569
|
),
|
|
673
|
-
|
|
674
|
-
Card
|
|
570
|
+
React.createElement(
|
|
571
|
+
Card.Body,
|
|
675
572
|
null,
|
|
676
|
-
|
|
573
|
+
React.createElement(
|
|
677
574
|
'a',
|
|
678
575
|
{ href: row.url.current },
|
|
679
|
-
|
|
680
|
-
Card
|
|
576
|
+
React.createElement(
|
|
577
|
+
Card.Title,
|
|
681
578
|
null,
|
|
682
579
|
row.title
|
|
683
580
|
)
|
|
684
581
|
),
|
|
685
|
-
_this2.props.showPublished && row.published &&
|
|
686
|
-
Card
|
|
582
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
583
|
+
Card.Subtitle,
|
|
687
584
|
{ style: { marginTop: 0 } },
|
|
688
585
|
moment(row.published).format('MMMM DD, YYYY')
|
|
689
586
|
),
|
|
690
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
587
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
691
588
|
LazyLoad,
|
|
692
589
|
{ height: 50 },
|
|
693
|
-
|
|
590
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
694
591
|
),
|
|
695
|
-
|
|
696
|
-
Card
|
|
592
|
+
React.createElement(
|
|
593
|
+
Card.Text,
|
|
697
594
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
698
595
|
clean_html_1(row.summary)
|
|
699
596
|
)
|
|
@@ -701,71 +598,71 @@ var GridContent = function (_React$Component) {
|
|
|
701
598
|
)
|
|
702
599
|
)
|
|
703
600
|
),
|
|
704
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
705
|
-
|
|
601
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
602
|
+
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
706
603
|
);
|
|
707
604
|
}
|
|
708
605
|
} else if (row._type === 'lg-infeed' && row.adUnit) {
|
|
709
|
-
return
|
|
606
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
710
607
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
711
|
-
return
|
|
712
|
-
}
|
|
608
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
609
|
+
}
|
|
713
610
|
if (index + 1 > heroContent + featureCount && (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type))) {
|
|
714
|
-
return
|
|
715
|
-
|
|
611
|
+
return React.createElement(
|
|
612
|
+
React.Fragment,
|
|
716
613
|
{ key: itemCounter },
|
|
717
|
-
|
|
614
|
+
React.createElement(
|
|
718
615
|
VisibilitySensor,
|
|
719
616
|
{
|
|
720
617
|
onChange: function onChange(isVisible) {
|
|
721
618
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of article only.
|
|
722
619
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, row.articleCount ? row.articleCount : index);
|
|
723
620
|
} },
|
|
724
|
-
|
|
621
|
+
React.createElement(
|
|
725
622
|
'div',
|
|
726
623
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
727
|
-
|
|
728
|
-
Card
|
|
624
|
+
React.createElement(
|
|
625
|
+
Card,
|
|
729
626
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
730
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
627
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
731
628
|
'a',
|
|
732
629
|
{ href: linkHref, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
733
|
-
|
|
630
|
+
React.createElement(
|
|
734
631
|
LazyLoad,
|
|
735
632
|
{ height: _this2.props.imageHeight },
|
|
736
|
-
|
|
633
|
+
React.createElement(Card.Img, {
|
|
737
634
|
variant: 'top',
|
|
738
635
|
src: _this2.renderCardImage(row, page),
|
|
739
636
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
740
637
|
})
|
|
741
638
|
)
|
|
742
639
|
),
|
|
743
|
-
|
|
744
|
-
Card
|
|
640
|
+
React.createElement(
|
|
641
|
+
Card.Body,
|
|
745
642
|
null,
|
|
746
|
-
|
|
643
|
+
React.createElement(
|
|
747
644
|
'a',
|
|
748
645
|
{ href: linkHref },
|
|
749
|
-
|
|
750
|
-
Card
|
|
646
|
+
React.createElement(
|
|
647
|
+
Card.Title,
|
|
751
648
|
null,
|
|
752
649
|
row.title
|
|
753
650
|
)
|
|
754
651
|
),
|
|
755
|
-
_this2.props.showPublished && row.published &&
|
|
756
|
-
Card
|
|
652
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
653
|
+
Card.Subtitle,
|
|
757
654
|
{ style: { marginTop: 0 } },
|
|
758
655
|
moment(row.published).format('MMMM DD, YYYY')
|
|
759
656
|
),
|
|
760
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
657
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
761
658
|
LazyLoad,
|
|
762
659
|
{ height: 50 },
|
|
763
|
-
|
|
660
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
764
661
|
),
|
|
765
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
662
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
766
663
|
LazyLoad,
|
|
767
664
|
{ height: 50 },
|
|
768
|
-
|
|
665
|
+
React.createElement(
|
|
769
666
|
'p',
|
|
770
667
|
{
|
|
771
668
|
className: 'article-category',
|
|
@@ -780,8 +677,8 @@ var GridContent = function (_React$Component) {
|
|
|
780
677
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
781
678
|
)
|
|
782
679
|
),
|
|
783
|
-
|
|
784
|
-
Card
|
|
680
|
+
React.createElement(
|
|
681
|
+
Card.Text,
|
|
785
682
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
786
683
|
clean_html_1(row.summary)
|
|
787
684
|
)
|
|
@@ -789,17 +686,17 @@ var GridContent = function (_React$Component) {
|
|
|
789
686
|
)
|
|
790
687
|
)
|
|
791
688
|
),
|
|
792
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
793
|
-
|
|
689
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
690
|
+
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
794
691
|
);
|
|
795
692
|
} else return null;
|
|
796
|
-
}) :
|
|
693
|
+
}) : React.createElement(
|
|
797
694
|
'div',
|
|
798
695
|
null,
|
|
799
|
-
|
|
696
|
+
React.createElement(
|
|
800
697
|
'h5',
|
|
801
698
|
null,
|
|
802
|
-
|
|
699
|
+
React.createElement(
|
|
803
700
|
'em',
|
|
804
701
|
null,
|
|
805
702
|
'New content coming soon, please check back later.'
|
|
@@ -824,29 +721,29 @@ var GridContent = function (_React$Component) {
|
|
|
824
721
|
brandInsight = _props.brandInsight;
|
|
825
722
|
|
|
826
723
|
|
|
827
|
-
return
|
|
724
|
+
return React.createElement(
|
|
828
725
|
'div',
|
|
829
726
|
{ className: 'contentDeck' },
|
|
830
|
-
autoScroll ?
|
|
727
|
+
autoScroll ? React.createElement(
|
|
831
728
|
InfiniteScroll,
|
|
832
729
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
833
|
-
|
|
834
|
-
Container
|
|
730
|
+
React.createElement(
|
|
731
|
+
Container,
|
|
835
732
|
null,
|
|
836
733
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
837
734
|
)
|
|
838
|
-
) :
|
|
839
|
-
|
|
735
|
+
) : React.createElement(
|
|
736
|
+
React.Fragment,
|
|
840
737
|
null,
|
|
841
|
-
|
|
842
|
-
Container
|
|
738
|
+
React.createElement(
|
|
739
|
+
Container,
|
|
843
740
|
null,
|
|
844
741
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
845
742
|
),
|
|
846
|
-
|
|
743
|
+
React.createElement(
|
|
847
744
|
'div',
|
|
848
745
|
{ style: { padding: '0px 10px' } },
|
|
849
|
-
this.state.scrolling ?
|
|
746
|
+
this.state.scrolling ? React.createElement(
|
|
850
747
|
'button',
|
|
851
748
|
{
|
|
852
749
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -854,17 +751,17 @@ var GridContent = function (_React$Component) {
|
|
|
854
751
|
_this3.loadMore();
|
|
855
752
|
} },
|
|
856
753
|
'Load More'
|
|
857
|
-
) :
|
|
754
|
+
) : React.createElement(
|
|
858
755
|
'p',
|
|
859
756
|
{ style: { textAlign: 'center' } },
|
|
860
|
-
|
|
757
|
+
React.createElement(
|
|
861
758
|
'b',
|
|
862
759
|
null,
|
|
863
760
|
'End of data'
|
|
864
761
|
)
|
|
865
762
|
)
|
|
866
763
|
),
|
|
867
|
-
|
|
764
|
+
React.createElement(
|
|
868
765
|
'noscript',
|
|
869
766
|
null,
|
|
870
767
|
this.renderManualPagination()
|
|
@@ -875,8 +772,8 @@ var GridContent = function (_React$Component) {
|
|
|
875
772
|
}]);
|
|
876
773
|
|
|
877
774
|
return GridContent;
|
|
878
|
-
}(
|
|
775
|
+
}(React.Component);
|
|
879
776
|
|
|
880
|
-
var GridContent$1 =
|
|
777
|
+
var GridContent$1 = React.memo(withRouter(GridContent));
|
|
881
778
|
|
|
882
779
|
export default GridContent$1;
|