@mjhls/mjh-framework 1.0.866 → 1.0.867
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 +1 -1
- package/dist/cjs/AD300x250.js +10 -11
- package/dist/cjs/AD300x250x600.js +10 -11
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +10 -11
- package/dist/cjs/ADFooter.js +3 -5
- package/dist/cjs/ADGutter.js +10 -11
- package/dist/cjs/{ADInfeed-f8324b70.js → ADInfeed-7d13830e.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +10 -11
- package/dist/cjs/ADSponsoredResources.js +10 -11
- package/dist/cjs/ADWebcast.js +10 -11
- package/dist/cjs/ADWelcome.js +10 -11
- package/dist/cjs/{ADlgInfeed-98d7c699.js → ADlgInfeed-d9dbfadc.js} +1 -1
- package/dist/cjs/AccordionPanel.js +5 -7
- package/dist/cjs/AdSlot.js +10 -11
- package/dist/cjs/AdSlotsProvider.js +8 -9
- package/dist/cjs/AlgoliaSearch.js +14105 -24
- package/dist/cjs/AlphabeticList.js +6 -8
- package/dist/cjs/ArticleCarousel.js +5 -7
- package/dist/cjs/ArticleProgramLandingPage.js +20 -21
- package/dist/cjs/ArticleSeriesLandingPage.js +18 -19
- package/dist/cjs/ArticleSeriesListing.js +14 -15
- package/dist/cjs/Auth.js +7 -9
- package/dist/cjs/AuthWrapper.js +4 -6
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-39b37d84.js} +1 -1
- package/dist/cjs/Beam.js +5 -7
- package/dist/cjs/Breadcrumbs.js +3 -5
- package/dist/cjs/CMEDeck.js +10 -11
- package/dist/cjs/Column2.js +6 -8
- package/dist/cjs/Column3.js +12 -13
- package/dist/cjs/ConferenceArticleCard.js +18 -15
- package/dist/cjs/DeckContent.js +25 -26
- package/dist/cjs/DeckQueue.js +14 -14
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-9be904d5.js} +5 -6
- package/dist/cjs/EventsDeck.js +30 -32
- package/dist/cjs/ExternalResources.js +20 -21
- package/dist/cjs/Feature.js +5 -2
- package/dist/cjs/ForbesHero.js +4 -6
- package/dist/cjs/GridContent.js +19 -20
- package/dist/cjs/GridHero.js +4 -6
- package/dist/cjs/GroupDeck.js +5 -7
- package/dist/cjs/HamMagazine.js +20 -22
- package/dist/cjs/Hero.js +4 -1
- package/dist/cjs/HorizontalArticleListing.js +20 -21
- package/dist/cjs/HorizontalHero.js +5 -2
- package/dist/cjs/IssueContentDeck.js +4 -6
- package/dist/cjs/IssueDeck.js +6 -8
- package/dist/cjs/IssueLanding.js +52 -53
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +10 -11
- package/dist/cjs/MasterDeck.js +26 -27
- package/dist/cjs/MediaSeriesLanding.js +320 -422
- package/dist/cjs/NavDvm.js +5 -7
- package/dist/cjs/NavMagazine.js +21 -23
- package/dist/cjs/NavNative.js +17 -19
- package/dist/cjs/OncliveHero.js +5 -2
- package/dist/cjs/OncliveLargeHero.js +4 -6
- package/dist/cjs/PageFilter.js +3 -5
- package/dist/cjs/PartnerDetailListing.js +23 -24
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +3 -5
- package/dist/cjs/PubSection.js +14 -15
- package/dist/cjs/PubToc.js +5 -7
- package/dist/cjs/PublicationDeck.js +3 -0
- package/dist/cjs/PublicationLanding.js +61 -63
- package/dist/cjs/QueueDeckExpanded.js +14 -15
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +31 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +3 -5
- package/dist/cjs/Segment.js +4 -6
- package/dist/cjs/SeriesListingDeck.js +10 -11
- package/dist/cjs/{SeriesSlider-e3e8ead7.js → SeriesSlider-ce3261cb.js} +6 -6
- package/dist/cjs/SideFooter.js +8 -10
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-a4ae7b88.js} +4 -4
- package/dist/cjs/TaxonomyCard.js +4 -2
- package/dist/cjs/TaxonomyDescription.js +20 -21
- package/dist/cjs/TemplateNormal.js +17 -18
- package/dist/cjs/ThumbnailCard.js +4 -1
- package/dist/cjs/Ustream.js +10 -12
- package/dist/cjs/VerticalHero.js +3 -0
- package/dist/cjs/VideoProgramLandingPage.js +20 -21
- package/dist/cjs/VideoSeriesCard.js +6 -6
- package/dist/cjs/VideoSeriesFilter.js +5 -7
- package/dist/cjs/VideoSeriesLandingPage.js +18 -19
- package/dist/cjs/VideoSeriesListing.js +14 -15
- package/dist/cjs/View.js +25 -26
- package/dist/cjs/YahooHero.js +4 -6
- package/dist/cjs/YoutubeGroup.js +8 -10
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-54228b29.js} +9 -9
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-b1df62f0.js} +6 -7
- package/dist/cjs/_object-sap-d1978572.js +16 -0
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-ce86cae7.js} +4 -4
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-77821af0.js} +65 -67
- package/dist/cjs/{_to-object-6de10e57.js → core.get-iterator-method-5643aa10.js} +248 -12
- package/dist/cjs/{define-property-c88be878.js → define-property-e8404b64.js} +3 -3
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-9673846a.js} +1 -1
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-29bdbc6d.js → extends-7c86182f.js} +8 -8
- package/dist/cjs/faundadb.js +4 -6
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +4 -6
- package/dist/cjs/getRootDocGroup.js +4 -6
- package/dist/cjs/getSerializers.js +20 -21
- package/dist/cjs/{getTargeting-32d1c2e4.js → getTargeting-9d509319.js} +11 -11
- package/dist/cjs/getTargeting.js +5 -7
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/index-8041a4eb.js +99 -0
- package/dist/cjs/{index-32097c80.js → index-ad4e6a69.js} +42 -21
- package/dist/cjs/{index-0e4427c8.js → index-fc2f1ca2.js} +2 -467
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-05850a2f.js} +1 -1
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-44f3e2d0.js} +1 -1
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-8123cf40.js} +1 -1
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-974f47d9.js} +1 -1
- package/dist/cjs/index.js +32 -33
- package/dist/cjs/{inherits-c2065b95.js → inherits-de66ea16.js} +13 -14
- package/dist/cjs/{keys-7f2c2108.js → keys-e982b3fa.js} +4 -4
- package/dist/cjs/{main-f1c77adb.js → main-025fdc78.js} +3 -3
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-067dd3bc.js} +7 -9
- package/dist/cjs/{stringify-c9ac1214.js → stringify-f7a37a8d.js} +2 -2
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-d7797c2b.js} +8 -10
- package/dist/cjs/{typeof-88a668c5.js → typeof-567e31ff.js} +73 -74
- package/dist/cjs/urlFor.js +18 -1
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-3819e4aa.js} +4 -4
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-d98303e0.js} +8 -9
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +14 -15
- package/dist/esm/AD300x250x600.js +14 -15
- package/dist/esm/AD728x90.js +15 -16
- package/dist/esm/ADFloatingFooter.js +17 -18
- package/dist/esm/ADFooter.js +9 -11
- package/dist/esm/ADGutter.js +17 -18
- package/dist/esm/{ADInfeed-a71a3972.js → ADInfeed-0cbd7bed.js} +6 -6
- package/dist/esm/ADSkyscraper.js +17 -18
- package/dist/esm/ADSponsoredResources.js +17 -18
- package/dist/esm/ADWebcast.js +17 -18
- package/dist/esm/ADWelcome.js +21 -22
- package/dist/esm/{ADlgInfeed-d94f1437.js → ADlgInfeed-2d1a52d9.js} +5 -5
- package/dist/esm/AccordionPanel.js +21 -23
- package/dist/esm/AdSlot.js +13 -14
- package/dist/esm/AdSlotsProvider.js +10 -11
- package/dist/esm/AlgoliaSearch.js +14127 -46
- package/dist/esm/AlphabeticList.js +19 -21
- package/dist/esm/ArticleCarousel.js +10 -12
- package/dist/esm/ArticleProgramLandingPage.js +32 -33
- package/dist/esm/ArticleSeriesLandingPage.js +26 -27
- package/dist/esm/ArticleSeriesListing.js +41 -42
- package/dist/esm/Auth.js +77 -79
- package/dist/esm/AuthWrapper.js +29 -31
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-46a745ba.js} +11 -11
- package/dist/esm/Beam.js +5 -7
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-52cf21c5.js} +3 -3
- package/dist/esm/Breadcrumbs.js +14 -16
- package/dist/esm/CMEDeck.js +69 -70
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +18 -20
- package/dist/esm/Column3.js +33 -34
- package/dist/esm/ConferenceArticleCard.js +31 -28
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +71 -72
- package/dist/esm/DeckQueue.js +54 -54
- package/dist/esm/{Dfp-be030f2a.js → Dfp-4ca12f2e.js} +14 -15
- package/dist/esm/EventsDeck.js +91 -93
- package/dist/esm/ExternalResources.js +50 -51
- package/dist/esm/Feature.js +19 -16
- package/dist/esm/ForbesHero.js +29 -31
- package/dist/esm/GridContent.js +138 -139
- package/dist/esm/GridHero.js +30 -32
- package/dist/esm/GroupDeck.js +39 -41
- package/dist/esm/HamMagazine.js +100 -102
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +46 -47
- package/dist/esm/HorizontalHero.js +23 -20
- package/dist/esm/IssueContentDeck.js +42 -44
- package/dist/esm/IssueDeck.js +39 -41
- package/dist/esm/IssueLanding.js +66 -67
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +24 -25
- package/dist/esm/MasterDeck.js +60 -61
- package/dist/esm/MediaSeriesLanding.js +347 -449
- package/dist/esm/NavDvm.js +48 -50
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +104 -106
- package/dist/esm/NavNative.js +91 -93
- package/dist/esm/OncliveHero.js +17 -14
- package/dist/esm/OncliveLargeHero.js +53 -55
- package/dist/esm/PageFilter.js +9 -11
- package/dist/esm/PartnerDetailListing.js +81 -82
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +11 -13
- package/dist/esm/PubSection.js +23 -24
- package/dist/esm/PubToc.js +10 -12
- package/dist/esm/PublicationDeck.js +36 -33
- package/dist/esm/PublicationLanding.js +83 -85
- package/dist/esm/QueueDeckExpanded.js +255 -256
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +46 -43
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +8 -10
- package/dist/esm/Segment.js +4 -6
- package/dist/esm/SeriesListingDeck.js +26 -27
- package/dist/esm/{SeriesSlider-ae17159f.js → SeriesSlider-485f514e.js} +24 -24
- package/dist/esm/SideFooter.js +27 -29
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-41b6b480.js} +23 -23
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +39 -37
- package/dist/esm/TaxonomyDescription.js +28 -29
- package/dist/esm/TemplateNormal.js +39 -40
- package/dist/esm/ThumbnailCard.js +13 -10
- package/dist/esm/Ustream.js +24 -26
- package/dist/esm/VerticalHero.js +14 -11
- package/dist/esm/VideoProgramLandingPage.js +39 -40
- package/dist/esm/VideoSeriesCard.js +20 -20
- package/dist/esm/VideoSeriesFilter.js +11 -13
- package/dist/esm/VideoSeriesLandingPage.js +26 -27
- package/dist/esm/VideoSeriesListing.js +57 -58
- package/dist/esm/View.js +189 -190
- package/dist/esm/YahooHero.js +26 -28
- package/dist/esm/YoutubeGroup.js +35 -37
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-893ab020.js} +1 -1
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-f089461c.js} +1 -2
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-169d6272.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-50a6b9a3.js} +1 -1
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-b4dfe691.js} +3 -5
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-b43c695a.js} +3 -3
- package/dist/esm/{_to-object-b50e61c3.js → core.get-iterator-method-e903ff31.js} +239 -10
- package/dist/esm/{define-property-fe54dc9f.js → define-property-99e66838.js} +1 -1
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-8fa0bc8d.js} +1 -1
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-60e0e1c6.js → extends-dc6a71fd.js} +1 -1
- package/dist/esm/faundadb.js +4 -6
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +4 -6
- package/dist/esm/getRootDocGroup.js +4 -6
- package/dist/esm/getSerializers.js +23 -24
- package/dist/esm/{getTargeting-cf2724e3.js → getTargeting-ff2c9409.js} +11 -11
- package/dist/esm/getTargeting.js +5 -7
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-5cc7b406.js → index-2446af28.js} +4 -469
- package/dist/esm/{index-755f2cc2.js → index-35bdcc81.js} +4 -4
- package/dist/esm/{index-5e84f9cd.js → index-61397130.js} +452 -431
- package/dist/esm/index-67e1773f.js +94 -0
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-f6156a57.js → index.esm-3fdda599.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8016b507.js} +16 -16
- package/dist/esm/{index.esm-d4932dea.js → index.esm-a8ff922c.js} +1 -1
- package/dist/esm/{index.esm-9b042655.js → index.esm-c6715e80.js} +1 -1
- package/dist/esm/index.js +56 -57
- package/dist/esm/{inherits-a41fe93f.js → inherits-8a801a18.js} +4 -5
- package/dist/esm/{keys-7a3adabf.js → keys-425c8ab0.js} +2 -2
- package/dist/esm/{main-d4165069.js → main-b5c5aac1.js} +19 -19
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-91f9716f.js} +5 -5
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-ca2c8b8d.js} +2 -4
- package/dist/esm/{stringify-59c8f690.js → stringify-c21932b3.js} +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-7b1c0e23.js} +2 -4
- package/dist/esm/{typeof-a286cf0c.js → typeof-83d9eb10.js} +3 -4
- package/dist/esm/urlFor.js +18 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-41166338.js} +4 -4
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-fdf034f5.js} +1 -2
- package/package.json +111 -111
- package/dist/cjs/_object-sap-a175b4a9.js +0 -16
- package/dist/cjs/core.get-iterator-method-f474eacc.js +0 -39
- package/dist/cjs/es6.string.iterator-c2573ffd.js +0 -210
- package/dist/esm/core.get-iterator-method-133dfacd.js +0 -36
- package/dist/esm/es6.string.iterator-bc33758b.js +0 -201
package/dist/esm/GridContent.js
CHANGED
|
@@ -1,48 +1,47 @@
|
|
|
1
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
2
|
-
import { _ as _extends } from './extends-
|
|
3
|
-
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-
|
|
4
|
-
import
|
|
5
|
-
import { l as lib_3 } from './index-
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
2
|
+
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
3
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-8a801a18.js';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { l as lib_3 } from './index-2446af28.js';
|
|
6
6
|
import Container from 'react-bootstrap/Container';
|
|
7
7
|
import Row from 'react-bootstrap/Row';
|
|
8
8
|
import Col from 'react-bootstrap/Col';
|
|
9
9
|
import Card from 'react-bootstrap/Card';
|
|
10
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
10
|
+
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
11
11
|
import { m as moment } from './moment-bc12cb97.js';
|
|
12
12
|
import { withRouter } from 'next/router';
|
|
13
|
-
import { L as LazyLoad } from './index-
|
|
13
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
14
14
|
import { c as clean_html_1 } from './entities-932b50cf.js';
|
|
15
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
15
|
+
import { A as ADInfeed } from './ADInfeed-0cbd7bed.js';
|
|
16
16
|
import { l as lodash } from './lodash-f97fd99a.js';
|
|
17
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
17
|
+
import { A as ADlgInfeed } from './ADlgInfeed-2d1a52d9.js';
|
|
18
18
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
19
19
|
import { g as get_1 } from './get-3c308da4.js';
|
|
20
20
|
import { d as debounce_1 } from './debounce-533d9748.js';
|
|
21
|
-
import { I as InfiniteScroll } from './index.es-
|
|
21
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
22
22
|
import urlFor from './urlFor.js';
|
|
23
|
-
import { m as main_43 } from './main-
|
|
23
|
+
import { m as main_43 } from './main-b5c5aac1.js';
|
|
24
24
|
import './AD.js';
|
|
25
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
25
|
+
import { A as AuthorComponent } from './AuthorComponent-46a745ba.js';
|
|
26
26
|
import Button from 'react-bootstrap/Button';
|
|
27
27
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
28
|
-
import './
|
|
29
|
-
import './
|
|
30
|
-
import './_iter-detect-7e5e5ce2.js';
|
|
31
|
-
import './core.get-iterator-method-133dfacd.js';
|
|
28
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
29
|
+
import './_iter-detect-f089461c.js';
|
|
32
30
|
import './_object-pie-133f504a.js';
|
|
33
|
-
import './_object-sap-
|
|
34
|
-
import './define-property-
|
|
35
|
-
import './typeof-
|
|
36
|
-
import './web.dom.iterable-
|
|
37
|
-
import './_is-array-
|
|
31
|
+
import './_object-sap-169d6272.js';
|
|
32
|
+
import './define-property-99e66838.js';
|
|
33
|
+
import './typeof-83d9eb10.js';
|
|
34
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
35
|
+
import './_is-array-893ab020.js';
|
|
38
36
|
import './_library-528f1934.js';
|
|
37
|
+
import './events-6c3a7a63.js';
|
|
39
38
|
import 'prop-types';
|
|
40
39
|
import 'react-dom';
|
|
41
|
-
import './slicedToArray-
|
|
40
|
+
import './slicedToArray-ca2c8b8d.js';
|
|
42
41
|
import './AdSlot.js';
|
|
43
42
|
import './Beam.js';
|
|
44
|
-
import './stringify-
|
|
45
|
-
import './asyncToGenerator-
|
|
43
|
+
import './stringify-c21932b3.js';
|
|
44
|
+
import './asyncToGenerator-b4dfe691.js';
|
|
46
45
|
import './Segment.js';
|
|
47
46
|
import './isSymbol-a7e9aafe.js';
|
|
48
47
|
import './eq-bdcbf886.js';
|
|
@@ -72,20 +71,20 @@ var PublicationFeature = function PublicationFeature(_ref) {
|
|
|
72
71
|
thumbnail = data.thumbnail;
|
|
73
72
|
|
|
74
73
|
if (name && articles && articles.length > 0) {
|
|
75
|
-
return
|
|
74
|
+
return React.createElement(
|
|
76
75
|
'div',
|
|
77
76
|
{ className: 'publication-feature-container border rounded p-2' },
|
|
78
|
-
|
|
77
|
+
React.createElement(
|
|
79
78
|
Row,
|
|
80
79
|
null,
|
|
81
|
-
|
|
80
|
+
React.createElement(
|
|
82
81
|
Col,
|
|
83
82
|
{ xs: 12 },
|
|
84
|
-
|
|
83
|
+
React.createElement(
|
|
85
84
|
'h4',
|
|
86
85
|
null,
|
|
87
86
|
name,
|
|
88
|
-
month && year &&
|
|
87
|
+
month && year && React.createElement(
|
|
89
88
|
'span',
|
|
90
89
|
null,
|
|
91
90
|
' ',
|
|
@@ -96,42 +95,42 @@ var PublicationFeature = function PublicationFeature(_ref) {
|
|
|
96
95
|
)
|
|
97
96
|
)
|
|
98
97
|
),
|
|
99
|
-
|
|
98
|
+
React.createElement(
|
|
100
99
|
Col,
|
|
101
100
|
{ xs: 12, sm: 4 },
|
|
102
|
-
|
|
101
|
+
React.createElement(
|
|
103
102
|
LazyLoad,
|
|
104
103
|
{ once: true },
|
|
105
|
-
|
|
104
|
+
React.createElement('img', { className: 'w-100 mb-2', src: thumbnail && thumbnail.asset && client ? urlFor({ client: client, source: thumbnail.asset }) : defaultImage, alt: name || '' })
|
|
106
105
|
)
|
|
107
106
|
),
|
|
108
|
-
|
|
107
|
+
React.createElement(
|
|
109
108
|
Col,
|
|
110
109
|
{ xs: 12, sm: 8 },
|
|
111
|
-
|
|
110
|
+
React.createElement(
|
|
112
111
|
Row,
|
|
113
112
|
null,
|
|
114
113
|
articles.map(function (article) {
|
|
115
|
-
return
|
|
114
|
+
return React.createElement(
|
|
116
115
|
Col,
|
|
117
116
|
{ key: article._id, xs: 12, sm: 6 },
|
|
118
|
-
article.issueSection && article.issueSection.name &&
|
|
117
|
+
article.issueSection && article.issueSection.name && React.createElement(
|
|
119
118
|
'h6',
|
|
120
119
|
{ className: 'text-primary m-0 p-0 text-uppercase font-weight-bold' },
|
|
121
120
|
article.issueSection.name
|
|
122
121
|
),
|
|
123
|
-
article.title &&
|
|
124
|
-
|
|
122
|
+
article.title && React.createElement(
|
|
123
|
+
React.Fragment,
|
|
125
124
|
null,
|
|
126
|
-
article.url && article.url.current ?
|
|
125
|
+
article.url && article.url.current ? React.createElement(
|
|
127
126
|
'a',
|
|
128
127
|
{ href: '/view/' + article.url.current },
|
|
129
|
-
|
|
128
|
+
React.createElement(
|
|
130
129
|
'h6',
|
|
131
130
|
{ className: 'text-break' },
|
|
132
131
|
article.title
|
|
133
132
|
)
|
|
134
|
-
) :
|
|
133
|
+
) : React.createElement(
|
|
135
134
|
'h6',
|
|
136
135
|
{ className: 'text-break' },
|
|
137
136
|
article.title
|
|
@@ -141,10 +140,10 @@ var PublicationFeature = function PublicationFeature(_ref) {
|
|
|
141
140
|
})
|
|
142
141
|
)
|
|
143
142
|
),
|
|
144
|
-
issueMapping && parentSlug && childSlug &&
|
|
143
|
+
issueMapping && parentSlug && childSlug && React.createElement(
|
|
145
144
|
Col,
|
|
146
145
|
{ xs: 12 },
|
|
147
|
-
|
|
146
|
+
React.createElement(
|
|
148
147
|
Button,
|
|
149
148
|
{ href: issueMapping + '/' + parentSlug + '/' + childSlug, className: 'float-right', variant: 'outline-primary' },
|
|
150
149
|
'More Articles ',
|
|
@@ -152,7 +151,7 @@ var PublicationFeature = function PublicationFeature(_ref) {
|
|
|
152
151
|
)
|
|
153
152
|
)
|
|
154
153
|
),
|
|
155
|
-
|
|
154
|
+
React.createElement(
|
|
156
155
|
'style',
|
|
157
156
|
{ jsx: 'true' },
|
|
158
157
|
'\n .row {\n margin-top: -15px;\n margin-left: -15px;\n margin-right: 0;\n }\n .row > * {\n padding-top: 15px;\n padding-left: 15px;\n padding-right: 0;\n }\n '
|
|
@@ -334,7 +333,7 @@ var GridContent = function (_React$Component) {
|
|
|
334
333
|
var rightItems = _this.props.rightItems;
|
|
335
334
|
|
|
336
335
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
337
|
-
return
|
|
336
|
+
return React.createElement(
|
|
338
337
|
'div',
|
|
339
338
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
340
339
|
rightItems[i].component
|
|
@@ -342,15 +341,15 @@ var GridContent = function (_React$Component) {
|
|
|
342
341
|
}, _this.renderManualPagination = function () {
|
|
343
342
|
var currentPage = _this.state.currentPage;
|
|
344
343
|
|
|
345
|
-
return
|
|
344
|
+
return React.createElement(
|
|
346
345
|
'div',
|
|
347
346
|
{ className: 'd-flex justify-content-between' },
|
|
348
|
-
currentPage && currentPage > 1 &&
|
|
347
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
349
348
|
'a',
|
|
350
349
|
{ href: '?page=' + (currentPage - 1) },
|
|
351
350
|
'<< Previous'
|
|
352
351
|
),
|
|
353
|
-
|
|
352
|
+
React.createElement(
|
|
354
353
|
'a',
|
|
355
354
|
{ href: '?page=' + (currentPage + 1) },
|
|
356
355
|
'Next >>'
|
|
@@ -385,62 +384,62 @@ var GridContent = function (_React$Component) {
|
|
|
385
384
|
var numberOfItemsBeforeAd = 6;
|
|
386
385
|
var numberOfItemsBeforeVideo = 3;
|
|
387
386
|
if (variant === 'stack') {
|
|
388
|
-
return
|
|
387
|
+
return React.createElement(
|
|
389
388
|
Row,
|
|
390
389
|
null,
|
|
391
390
|
this.state.data && this.state.data.length > 0 ? this.state.data.map(function (row, index) {
|
|
392
391
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
393
|
-
return
|
|
392
|
+
return React.createElement(
|
|
394
393
|
Col,
|
|
395
394
|
{ key: index, md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
396
|
-
|
|
395
|
+
React.createElement(
|
|
397
396
|
Card,
|
|
398
397
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
399
|
-
|
|
398
|
+
React.createElement(
|
|
400
399
|
Row,
|
|
401
400
|
{ style: { flexDirection: 'row' } },
|
|
402
|
-
|
|
401
|
+
React.createElement(
|
|
403
402
|
Col,
|
|
404
403
|
{ md: 12, lg: 4 },
|
|
405
|
-
|
|
404
|
+
React.createElement(
|
|
406
405
|
'a',
|
|
407
406
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
408
|
-
|
|
407
|
+
React.createElement(
|
|
409
408
|
LazyLoad,
|
|
410
409
|
{ height: _this2.props.imageHeight },
|
|
411
|
-
|
|
410
|
+
React.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row, page), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
412
411
|
)
|
|
413
412
|
)
|
|
414
413
|
),
|
|
415
|
-
|
|
414
|
+
React.createElement(
|
|
416
415
|
Col,
|
|
417
416
|
null,
|
|
418
|
-
|
|
417
|
+
React.createElement(
|
|
419
418
|
Card.Body,
|
|
420
419
|
{ style: { padding: '20px' } },
|
|
421
|
-
|
|
420
|
+
React.createElement(
|
|
422
421
|
Card.Title,
|
|
423
422
|
null,
|
|
424
|
-
|
|
423
|
+
React.createElement(
|
|
425
424
|
'a',
|
|
426
425
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
427
426
|
row.title
|
|
428
427
|
)
|
|
429
428
|
),
|
|
430
|
-
_this2.props.showPublished && row.published &&
|
|
429
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
431
430
|
Card.Subtitle,
|
|
432
431
|
{ style: { marginTop: 0 } },
|
|
433
432
|
moment(row.published).format('MMMM DD, YYYY')
|
|
434
433
|
),
|
|
435
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
434
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
436
435
|
LazyLoad,
|
|
437
436
|
{ height: 50 },
|
|
438
|
-
|
|
437
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
439
438
|
),
|
|
440
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
439
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
441
440
|
LazyLoad,
|
|
442
441
|
{ height: 50 },
|
|
443
|
-
|
|
442
|
+
React.createElement(
|
|
444
443
|
'p',
|
|
445
444
|
{
|
|
446
445
|
className: 'article-category',
|
|
@@ -455,7 +454,7 @@ var GridContent = function (_React$Component) {
|
|
|
455
454
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
456
455
|
)
|
|
457
456
|
),
|
|
458
|
-
|
|
457
|
+
React.createElement(
|
|
459
458
|
Card.Text,
|
|
460
459
|
null,
|
|
461
460
|
clean_html_1(row.summary)
|
|
@@ -465,13 +464,13 @@ var GridContent = function (_React$Component) {
|
|
|
465
464
|
)
|
|
466
465
|
)
|
|
467
466
|
);
|
|
468
|
-
}) :
|
|
467
|
+
}) : React.createElement(
|
|
469
468
|
'div',
|
|
470
469
|
null,
|
|
471
|
-
|
|
470
|
+
React.createElement(
|
|
472
471
|
'h5',
|
|
473
472
|
null,
|
|
474
|
-
|
|
473
|
+
React.createElement(
|
|
475
474
|
'em',
|
|
476
475
|
null,
|
|
477
476
|
'New content coming soon, please check back later.'
|
|
@@ -586,7 +585,7 @@ var GridContent = function (_React$Component) {
|
|
|
586
585
|
var itemsPerPage = this.props.params && this.props.params.itemsPerPage ? this.props.params.itemsPerPage : 10;
|
|
587
586
|
var heroContent = this.props.heroContent ? this.props.heroContent : 0;
|
|
588
587
|
var featureCount = 0;
|
|
589
|
-
return
|
|
588
|
+
return React.createElement(
|
|
590
589
|
'div',
|
|
591
590
|
{ className: 'grid-container' },
|
|
592
591
|
posts && posts.length > 0 ? posts.map(function (row, index) {
|
|
@@ -596,58 +595,58 @@ var GridContent = function (_React$Component) {
|
|
|
596
595
|
if (row._type === 'feature') {
|
|
597
596
|
featureCount++;
|
|
598
597
|
if (row.blank || _this2.checkExternalUrl(row.url.current)) {
|
|
599
|
-
return
|
|
600
|
-
|
|
598
|
+
return React.createElement(
|
|
599
|
+
React.Fragment,
|
|
601
600
|
{ key: itemCounter },
|
|
602
|
-
|
|
601
|
+
React.createElement(
|
|
603
602
|
VisibilitySensor,
|
|
604
603
|
{
|
|
605
604
|
partialVisibility: true,
|
|
606
605
|
onChange: function onChange(isVisible) {
|
|
607
606
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, index);
|
|
608
607
|
} },
|
|
609
|
-
|
|
608
|
+
React.createElement(
|
|
610
609
|
'div',
|
|
611
610
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
612
|
-
|
|
611
|
+
React.createElement(
|
|
613
612
|
Card,
|
|
614
613
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
615
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
614
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
616
615
|
'a',
|
|
617
616
|
{ rel: 'noopener', href: row.url.current, target: '_blank', className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
618
|
-
|
|
617
|
+
React.createElement(
|
|
619
618
|
LazyLoad,
|
|
620
619
|
{ height: _this2.props.imageHeight },
|
|
621
|
-
|
|
620
|
+
React.createElement(Card.Img, {
|
|
622
621
|
variant: 'top',
|
|
623
622
|
src: _this2.renderCardImage(row, page),
|
|
624
623
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
625
624
|
})
|
|
626
625
|
)
|
|
627
626
|
),
|
|
628
|
-
|
|
627
|
+
React.createElement(
|
|
629
628
|
Card.Body,
|
|
630
629
|
null,
|
|
631
|
-
|
|
630
|
+
React.createElement(
|
|
632
631
|
'a',
|
|
633
632
|
{ rel: 'noopener', href: row.url.current, target: '_blank' },
|
|
634
|
-
|
|
633
|
+
React.createElement(
|
|
635
634
|
Card.Title,
|
|
636
635
|
null,
|
|
637
636
|
row.title
|
|
638
637
|
)
|
|
639
638
|
),
|
|
640
|
-
_this2.props.showPublished && row.published &&
|
|
639
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
641
640
|
Card.Subtitle,
|
|
642
641
|
{ style: { marginTop: 0 } },
|
|
643
642
|
moment(row.published).format('MMMM DD, YYYY')
|
|
644
643
|
),
|
|
645
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
644
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
646
645
|
LazyLoad,
|
|
647
646
|
{ height: 50 },
|
|
648
|
-
|
|
647
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
649
648
|
),
|
|
650
|
-
|
|
649
|
+
React.createElement(
|
|
651
650
|
Card.Text,
|
|
652
651
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
653
652
|
clean_html_1(row.summary)
|
|
@@ -656,62 +655,62 @@ var GridContent = function (_React$Component) {
|
|
|
656
655
|
)
|
|
657
656
|
)
|
|
658
657
|
),
|
|
659
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
658
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
660
659
|
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
661
660
|
);
|
|
662
661
|
} else {
|
|
663
|
-
return
|
|
664
|
-
|
|
662
|
+
return React.createElement(
|
|
663
|
+
React.Fragment,
|
|
665
664
|
{ key: itemCounter },
|
|
666
|
-
|
|
665
|
+
React.createElement(
|
|
667
666
|
VisibilitySensor,
|
|
668
667
|
{
|
|
669
668
|
partialVisibility: true,
|
|
670
669
|
onChange: function onChange(isVisible) {
|
|
671
670
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, index);
|
|
672
671
|
} },
|
|
673
|
-
|
|
672
|
+
React.createElement(
|
|
674
673
|
'div',
|
|
675
674
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
676
|
-
|
|
675
|
+
React.createElement(
|
|
677
676
|
Card,
|
|
678
677
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
679
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
678
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
680
679
|
'a',
|
|
681
680
|
{ href: row.url.current, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
682
|
-
|
|
681
|
+
React.createElement(
|
|
683
682
|
LazyLoad,
|
|
684
683
|
{ height: _this2.props.imageHeight },
|
|
685
|
-
|
|
684
|
+
React.createElement(Card.Img, {
|
|
686
685
|
variant: 'top',
|
|
687
686
|
src: _this2.renderCardImage(row, page),
|
|
688
687
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
689
688
|
})
|
|
690
689
|
)
|
|
691
690
|
),
|
|
692
|
-
|
|
691
|
+
React.createElement(
|
|
693
692
|
Card.Body,
|
|
694
693
|
null,
|
|
695
|
-
|
|
694
|
+
React.createElement(
|
|
696
695
|
'a',
|
|
697
696
|
{ href: row.url.current },
|
|
698
|
-
|
|
697
|
+
React.createElement(
|
|
699
698
|
Card.Title,
|
|
700
699
|
null,
|
|
701
700
|
row.title
|
|
702
701
|
)
|
|
703
702
|
),
|
|
704
|
-
_this2.props.showPublished && row.published &&
|
|
703
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
705
704
|
Card.Subtitle,
|
|
706
705
|
{ style: { marginTop: 0 } },
|
|
707
706
|
moment(row.published).format('MMMM DD, YYYY')
|
|
708
707
|
),
|
|
709
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
708
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
710
709
|
LazyLoad,
|
|
711
710
|
{ height: 50 },
|
|
712
|
-
|
|
711
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
713
712
|
),
|
|
714
|
-
|
|
713
|
+
React.createElement(
|
|
715
714
|
Card.Text,
|
|
716
715
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
717
716
|
clean_html_1(row.summary)
|
|
@@ -720,71 +719,71 @@ var GridContent = function (_React$Component) {
|
|
|
720
719
|
)
|
|
721
720
|
)
|
|
722
721
|
),
|
|
723
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
722
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
724
723
|
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
725
724
|
);
|
|
726
725
|
}
|
|
727
726
|
} else if (row._type === 'lg-infeed' && row.adUnit) {
|
|
728
|
-
return
|
|
727
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
729
728
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
730
|
-
return
|
|
731
|
-
} else if (row._type === 'publication') return
|
|
729
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
730
|
+
} else if (row._type === 'publication') return React.createElement(PublicationFeature, { data: row, defaultImage: _this2.defaultImage, issueMapping: _this2.props.issueMapping, client: _this2.client });
|
|
732
731
|
if (index + 1 > heroContent + featureCount && (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type))) {
|
|
733
|
-
return
|
|
734
|
-
|
|
732
|
+
return React.createElement(
|
|
733
|
+
React.Fragment,
|
|
735
734
|
{ key: itemCounter },
|
|
736
|
-
|
|
735
|
+
React.createElement(
|
|
737
736
|
VisibilitySensor,
|
|
738
737
|
{
|
|
739
738
|
onChange: function onChange(isVisible) {
|
|
740
739
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of article only.
|
|
741
740
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, row.articleCount ? row.articleCount : index);
|
|
742
741
|
} },
|
|
743
|
-
|
|
742
|
+
React.createElement(
|
|
744
743
|
'div',
|
|
745
744
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
746
|
-
|
|
745
|
+
React.createElement(
|
|
747
746
|
Card,
|
|
748
747
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
749
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
748
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
750
749
|
'a',
|
|
751
750
|
{ href: linkHref, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
752
|
-
|
|
751
|
+
React.createElement(
|
|
753
752
|
LazyLoad,
|
|
754
753
|
{ height: _this2.props.imageHeight },
|
|
755
|
-
|
|
754
|
+
React.createElement(Card.Img, {
|
|
756
755
|
variant: 'top',
|
|
757
756
|
src: _this2.renderCardImage(row, page),
|
|
758
757
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
759
758
|
})
|
|
760
759
|
)
|
|
761
760
|
),
|
|
762
|
-
|
|
761
|
+
React.createElement(
|
|
763
762
|
Card.Body,
|
|
764
763
|
null,
|
|
765
|
-
|
|
764
|
+
React.createElement(
|
|
766
765
|
'a',
|
|
767
766
|
{ href: linkHref },
|
|
768
|
-
|
|
767
|
+
React.createElement(
|
|
769
768
|
Card.Title,
|
|
770
769
|
null,
|
|
771
770
|
row.title
|
|
772
771
|
)
|
|
773
772
|
),
|
|
774
|
-
_this2.props.showPublished && row.published &&
|
|
773
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
775
774
|
Card.Subtitle,
|
|
776
775
|
{ style: { marginTop: 0 } },
|
|
777
776
|
moment(row.published).format('MMMM DD, YYYY')
|
|
778
777
|
),
|
|
779
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
778
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
780
779
|
LazyLoad,
|
|
781
780
|
{ height: 50 },
|
|
782
|
-
|
|
781
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
783
782
|
),
|
|
784
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
783
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
785
784
|
LazyLoad,
|
|
786
785
|
{ height: 50 },
|
|
787
|
-
|
|
786
|
+
React.createElement(
|
|
788
787
|
'p',
|
|
789
788
|
{
|
|
790
789
|
className: 'article-category',
|
|
@@ -799,7 +798,7 @@ var GridContent = function (_React$Component) {
|
|
|
799
798
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
800
799
|
)
|
|
801
800
|
),
|
|
802
|
-
|
|
801
|
+
React.createElement(
|
|
803
802
|
Card.Text,
|
|
804
803
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
805
804
|
clean_html_1(row.summary)
|
|
@@ -808,17 +807,17 @@ var GridContent = function (_React$Component) {
|
|
|
808
807
|
)
|
|
809
808
|
)
|
|
810
809
|
),
|
|
811
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
810
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
812
811
|
main_43 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
813
812
|
);
|
|
814
813
|
} else return null;
|
|
815
|
-
}) :
|
|
814
|
+
}) : React.createElement(
|
|
816
815
|
'div',
|
|
817
816
|
null,
|
|
818
|
-
|
|
817
|
+
React.createElement(
|
|
819
818
|
'h5',
|
|
820
819
|
null,
|
|
821
|
-
|
|
820
|
+
React.createElement(
|
|
822
821
|
'em',
|
|
823
822
|
null,
|
|
824
823
|
'New content coming soon, please check back later.'
|
|
@@ -843,29 +842,29 @@ var GridContent = function (_React$Component) {
|
|
|
843
842
|
brandInsight = _props.brandInsight;
|
|
844
843
|
|
|
845
844
|
|
|
846
|
-
return
|
|
845
|
+
return React.createElement(
|
|
847
846
|
'div',
|
|
848
847
|
{ className: 'contentDeck' },
|
|
849
|
-
autoScroll ?
|
|
848
|
+
autoScroll ? React.createElement(
|
|
850
849
|
InfiniteScroll,
|
|
851
850
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
852
|
-
|
|
851
|
+
React.createElement(
|
|
853
852
|
Container,
|
|
854
853
|
null,
|
|
855
854
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
856
855
|
)
|
|
857
|
-
) :
|
|
858
|
-
|
|
856
|
+
) : React.createElement(
|
|
857
|
+
React.Fragment,
|
|
859
858
|
null,
|
|
860
|
-
|
|
859
|
+
React.createElement(
|
|
861
860
|
Container,
|
|
862
861
|
null,
|
|
863
862
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
864
863
|
),
|
|
865
|
-
|
|
864
|
+
React.createElement(
|
|
866
865
|
'div',
|
|
867
866
|
{ style: { padding: '0px 10px' } },
|
|
868
|
-
this.state.scrolling ?
|
|
867
|
+
this.state.scrolling ? React.createElement(
|
|
869
868
|
'button',
|
|
870
869
|
{
|
|
871
870
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -873,17 +872,17 @@ var GridContent = function (_React$Component) {
|
|
|
873
872
|
_this3.loadMore();
|
|
874
873
|
} },
|
|
875
874
|
'Load More'
|
|
876
|
-
) :
|
|
875
|
+
) : React.createElement(
|
|
877
876
|
'p',
|
|
878
877
|
{ style: { textAlign: 'center' } },
|
|
879
|
-
|
|
878
|
+
React.createElement(
|
|
880
879
|
'b',
|
|
881
880
|
null,
|
|
882
881
|
'End of data'
|
|
883
882
|
)
|
|
884
883
|
)
|
|
885
884
|
),
|
|
886
|
-
|
|
885
|
+
React.createElement(
|
|
887
886
|
'noscript',
|
|
888
887
|
null,
|
|
889
888
|
this.renderManualPagination()
|
|
@@ -894,8 +893,8 @@ var GridContent = function (_React$Component) {
|
|
|
894
893
|
}]);
|
|
895
894
|
|
|
896
895
|
return GridContent;
|
|
897
|
-
}(
|
|
896
|
+
}(React.Component);
|
|
898
897
|
|
|
899
|
-
var GridContent$1 =
|
|
898
|
+
var GridContent$1 = React.memo(withRouter(GridContent));
|
|
900
899
|
|
|
901
900
|
export default GridContent$1;
|