@mjhls/mjh-framework 1.0.856-beta.0 → 1.0.856
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 +11 -11
- package/dist/cjs/AD300x250x600.js +11 -11
- package/dist/cjs/AD728x90.js +12 -12
- package/dist/cjs/ADFloatingFooter.js +13 -13
- package/dist/cjs/ADFooter.js +9 -8
- package/dist/cjs/ADGutter.js +13 -13
- package/dist/cjs/{ADInfeed-98c71bcd.js → ADInfeed-ff26342c.js} +11 -9
- package/dist/cjs/ADSkyscraper.js +13 -13
- package/dist/cjs/ADSponsoredResources.js +13 -13
- package/dist/cjs/ADWebcast.js +13 -13
- package/dist/cjs/ADWelcome.js +17 -17
- package/dist/cjs/{ADlgInfeed-9de32585.js → ADlgInfeed-ad4953d4.js} +7 -6
- package/dist/cjs/AccordionPanel.js +24 -22
- package/dist/cjs/AdSlot.js +15 -15
- package/dist/cjs/AdSlotsProvider.js +11 -903
- package/dist/cjs/AlgoliaSearch.js +49 -14012
- package/dist/cjs/AlphabeticList.js +17 -16
- package/dist/cjs/ArticleCarousel.js +12 -11
- package/dist/cjs/ArticleProgramLandingPage.js +25 -24
- package/dist/cjs/ArticleSeriesLandingPage.js +21 -21
- package/dist/cjs/ArticleSeriesListing.js +41 -41
- package/dist/cjs/Auth.js +237 -1197
- package/dist/cjs/AuthWrapper.js +26 -561
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-ac8972ce.js} +13 -12
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-8b494587.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +23 -21
- package/dist/cjs/CMEDeck.js +64 -65
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +22 -19
- package/dist/cjs/Column3.js +36 -34
- package/dist/cjs/ConferenceArticleCard.js +33 -32
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +85 -82
- package/dist/cjs/DeckQueue.js +73 -70
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-0bf098b5.js} +23 -23
- package/dist/cjs/EventsDeck.js +141 -134
- package/dist/cjs/ExternalResources.js +49 -48
- package/dist/cjs/Feature.js +25 -23
- package/dist/cjs/ForbesHero.js +35 -34
- package/dist/cjs/GridContent.js +209 -205
- package/dist/cjs/GridHero.js +36 -35
- package/dist/cjs/GroupDeck.js +49 -48
- package/dist/cjs/HamMagazine.js +130 -125
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +10 -9
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalArticleListing.js +39 -38
- package/dist/cjs/HorizontalHero.js +24 -23
- package/dist/cjs/IssueContentDeck.js +70 -65
- package/dist/cjs/IssueDeck.js +66 -61
- package/dist/cjs/IssueLanding.js +60 -59
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +23 -22
- package/dist/cjs/MasterDeck.js +59 -59
- package/dist/cjs/MediaSeriesLanding.js +801 -909
- package/dist/cjs/NavDvm.js +68 -63
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +131 -126
- package/dist/cjs/NavNative.js +125 -117
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +64 -63
- package/dist/cjs/PageFilter.js +9 -8
- package/dist/cjs/PartnerDetailListing.js +288 -188
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +15 -13
- package/dist/cjs/PubSection.js +21 -21
- package/dist/cjs/PubToc.js +8 -7
- package/dist/cjs/PublicationDeck.js +64 -59
- package/dist/cjs/PublicationLanding.js +114 -110
- package/dist/cjs/QueueDeckExpanded.js +286 -287
- package/dist/cjs/RecentNews.js +20 -19
- package/dist/cjs/RelatedContent.js +51 -50
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +16 -12
- package/dist/cjs/SeriesListingDeck.js +26 -27
- package/dist/cjs/{SeriesSlider-8bbc989f.js → SeriesSlider-60fa1342.js} +38 -37
- package/dist/cjs/SideFooter.js +26 -25
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-19548e2a.js} +38 -34
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +60 -55
- package/dist/cjs/TaxonomyDescription.js +24 -23
- package/dist/cjs/TemplateNormal.js +36 -36
- package/dist/cjs/ThumbnailCard.js +19 -17
- package/dist/cjs/Ustream.js +22 -21
- package/dist/cjs/VerticalHero.js +16 -15
- package/dist/cjs/VideoProgramLandingPage.js +45 -41
- package/dist/cjs/VideoSeriesCard.js +24 -23
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +26 -26
- package/dist/cjs/VideoSeriesListing.js +58 -58
- package/dist/cjs/View.js +205 -201
- package/dist/cjs/YahooHero.js +31 -30
- package/dist/cjs/YoutubeGroup.js +55 -54
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-5c98aec7.js} +10 -8
- package/dist/cjs/{extends-0a918631.js → extends-60837c34.js} +0 -1
- package/dist/cjs/faundadb.js +1 -1
- package/dist/cjs/getRelatedArticle.js +67 -131
- package/dist/cjs/getSerializers.js +13 -13
- package/dist/cjs/{getTargeting-f1821260.js → getTargeting-3e45e4d4.js} +11 -11
- package/dist/cjs/getTargeting.js +2 -2
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-98e01cb9.js → index-44481153.js} +494 -47
- package/dist/cjs/{index-998ad42c.js → index-646379c4.js} +954 -1204
- package/dist/cjs/{index-3294d3bc.js → index-99edf08a.js} +1 -1
- package/dist/cjs/{index-96b3db50.js → index-9d365128.js} +12 -10
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- 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-4d410430.js → index.esm-3ffa049c.js} +20 -20
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +65 -61
- package/dist/cjs/{inherits-452ff02c.js → inherits-87492b40.js} +1 -4
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-02daeefe.js → main-7b5e57b0.js} +90 -54
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-725500bc.js → typeof-9d7f610f.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +8 -9
- package/dist/esm/AD300x250x600.js +8 -9
- package/dist/esm/AD728x90.js +9 -10
- package/dist/esm/ADFloatingFooter.js +10 -11
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +10 -11
- package/dist/esm/{ADInfeed-1cc9d817.js → ADInfeed-422ad6e6.js} +7 -7
- package/dist/esm/ADSkyscraper.js +10 -11
- package/dist/esm/ADSponsoredResources.js +10 -11
- package/dist/esm/ADWebcast.js +10 -11
- package/dist/esm/ADWelcome.js +14 -15
- package/dist/esm/{ADlgInfeed-8c4f129e.js → ADlgInfeed-f7468db8.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +6 -7
- package/dist/esm/AdSlotsProvider.js +10 -903
- package/dist/esm/AlgoliaSearch.js +41 -14005
- package/dist/esm/AlphabeticList.js +14 -14
- package/dist/esm/ArticleCarousel.js +9 -9
- package/dist/esm/ArticleProgramLandingPage.js +22 -22
- package/dist/esm/ArticleSeriesLandingPage.js +18 -19
- package/dist/esm/ArticleSeriesListing.js +37 -38
- package/dist/esm/Auth.js +217 -1181
- package/dist/esm/AuthWrapper.js +24 -561
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-8ffd4679.js} +10 -10
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d05b5b23.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -62
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +31 -32
- package/dist/esm/ConferenceArticleCard.js +30 -30
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +77 -78
- package/dist/esm/DeckQueue.js +65 -66
- package/dist/esm/{Dfp-b7236041.js → Dfp-85c9513e.js} +10 -11
- package/dist/esm/EventsDeck.js +110 -110
- package/dist/esm/ExternalResources.js +43 -43
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +173 -174
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +100 -100
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +36 -36
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +55 -55
- package/dist/esm/IssueLanding.js +57 -57
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +17 -18
- package/dist/esm/MasterDeck.js +55 -56
- package/dist/esm/MediaSeriesLanding.js +561 -672
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +103 -103
- package/dist/esm/NavNative.js +92 -92
- package/dist/esm/OncliveHero.js +14 -15
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +178 -79
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +18 -19
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +96 -96
- package/dist/esm/QueueDeckExpanded.js +252 -253
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +45 -45
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/SeriesListingDeck.js +21 -22
- package/dist/esm/{SeriesSlider-a866bb21.js → SeriesSlider-05ecb544.js} +28 -28
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-03c3e869.js → SocialSearchComponent-47815365.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +51 -51
- package/dist/esm/TaxonomyDescription.js +18 -18
- package/dist/esm/TemplateNormal.js +32 -33
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +34 -34
- package/dist/esm/VideoSeriesCard.js +18 -18
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +18 -19
- package/dist/esm/VideoSeriesListing.js +54 -55
- package/dist/esm/View.js +184 -184
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +39 -39
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-4abff0b1.js} +7 -6
- package/dist/esm/{extends-6f2fcc99.js → extends-eb69e8ac.js} +1 -1
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getRelatedArticle.js +62 -126
- package/dist/esm/getSerializers.js +13 -13
- package/dist/esm/{getTargeting-bd800589.js → getTargeting-9cb7e014.js} +10 -10
- package/dist/esm/getTargeting.js +2 -2
- package/dist/esm/{index-41a678ea.js → index-1819118a.js} +487 -41
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-5f7e79e7.js → index-6c12bdd5.js} +4 -4
- package/dist/esm/{index-2fccaa7f.js → index-d1dee060.js} +901 -1162
- package/dist/esm/{index-ef6d5dcf.js → index-fa2ffe86.js} +1 -1
- 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-8ee5ff72.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 +54 -53
- package/dist/esm/{inherits-cf8dde54.js → inherits-0d8cda6e.js} +2 -2
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-e4a934b2.js → main-747e7d25.js} +87 -52
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-6435ba1c.js → typeof-af9c50d8.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/package.json +110 -110
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-e2e62963.js +0 -89
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-aaa2dae0.js +0 -85
- package/dist/esm/inherits-77d5e4fc.js +0 -101
package/dist/esm/GridContent.js
CHANGED
|
@@ -6,33 +6,32 @@ import './_iter-detect-5d49a330.js';
|
|
|
6
6
|
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
7
7
|
import './core.get-iterator-method-e1de7503.js';
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends } from './extends-
|
|
9
|
+
import { _ as _extends } from './extends-eb69e8ac.js';
|
|
10
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-
|
|
11
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-0d8cda6e.js';
|
|
12
12
|
import './define-property-8af5f002.js';
|
|
13
13
|
import './web.dom.iterable-4439f05a.js';
|
|
14
|
-
import './typeof-
|
|
14
|
+
import './typeof-af9c50d8.js';
|
|
15
15
|
import './_is-array-58e95429.js';
|
|
16
|
-
import
|
|
17
|
-
import './
|
|
18
|
-
import { l as lib_3 } from './index-41a678ea.js';
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import { l as lib_3 } from './index-1819118a.js';
|
|
19
18
|
import 'prop-types';
|
|
20
|
-
import Container
|
|
21
|
-
import Row
|
|
22
|
-
import Col
|
|
23
|
-
import Card
|
|
24
|
-
import { m as moment } from './moment-
|
|
19
|
+
import Container from 'react-bootstrap/Container';
|
|
20
|
+
import Row from 'react-bootstrap/Row';
|
|
21
|
+
import Col from 'react-bootstrap/Col';
|
|
22
|
+
import Card from 'react-bootstrap/Card';
|
|
23
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
25
24
|
import { withRouter } from 'next/router';
|
|
26
25
|
import './isSymbol-1981418f.js';
|
|
27
26
|
import { d as debounce_1 } from './debounce-9207d8ee.js';
|
|
28
27
|
import './toNumber-2f7a84cd.js';
|
|
29
|
-
import { I as InfiniteScroll } from './index.es-
|
|
28
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
30
29
|
import 'react-dom';
|
|
31
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
32
|
-
import './index-
|
|
30
|
+
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
31
|
+
import './index-51a80699.js';
|
|
33
32
|
import urlFor from './urlFor.js';
|
|
34
|
-
import { L as LazyLoad } from './index-
|
|
35
|
-
import { m as
|
|
33
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
34
|
+
import { m as main_40 } from './main-747e7d25.js';
|
|
36
35
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
37
36
|
import './slicedToArray-641f241f.js';
|
|
38
37
|
import './stringify-4330ccdc.js';
|
|
@@ -40,15 +39,15 @@ import './asyncToGenerator-fc1c2e29.js';
|
|
|
40
39
|
import './Segment.js';
|
|
41
40
|
import './Beam.js';
|
|
42
41
|
import './AdSlot.js';
|
|
43
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
44
|
-
import { l as lodash } from './lodash-
|
|
45
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
42
|
+
import { A as ADInfeed } from './ADInfeed-422ad6e6.js';
|
|
43
|
+
import { l as lodash } from './lodash-ec8c6b48.js';
|
|
44
|
+
import { A as ADlgInfeed } from './ADlgInfeed-f7468db8.js';
|
|
46
45
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
47
46
|
import { g as get_1 } from './get-1e515072.js';
|
|
48
47
|
import './eq-b470f743.js';
|
|
49
48
|
import './AD.js';
|
|
50
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
51
|
-
import Button
|
|
49
|
+
import { A as AuthorComponent } from './AuthorComponent-8ffd4679.js';
|
|
50
|
+
import Button from 'react-bootstrap/Button';
|
|
52
51
|
|
|
53
52
|
var PublicationFeature = function PublicationFeature(_ref) {
|
|
54
53
|
var data = _ref.data,
|
|
@@ -73,20 +72,20 @@ var PublicationFeature = function PublicationFeature(_ref) {
|
|
|
73
72
|
thumbnail = data.thumbnail;
|
|
74
73
|
|
|
75
74
|
if (name && articles && articles.length > 0) {
|
|
76
|
-
return
|
|
75
|
+
return React.createElement(
|
|
77
76
|
'div',
|
|
78
77
|
{ className: 'publication-feature-container border rounded p-2' },
|
|
79
|
-
|
|
80
|
-
Row
|
|
78
|
+
React.createElement(
|
|
79
|
+
Row,
|
|
81
80
|
null,
|
|
82
|
-
|
|
83
|
-
Col
|
|
81
|
+
React.createElement(
|
|
82
|
+
Col,
|
|
84
83
|
{ xs: 12 },
|
|
85
|
-
|
|
84
|
+
React.createElement(
|
|
86
85
|
'h4',
|
|
87
86
|
null,
|
|
88
87
|
name,
|
|
89
|
-
month && year &&
|
|
88
|
+
month && year && React.createElement(
|
|
90
89
|
'span',
|
|
91
90
|
null,
|
|
92
91
|
' ',
|
|
@@ -97,42 +96,42 @@ var PublicationFeature = function PublicationFeature(_ref) {
|
|
|
97
96
|
)
|
|
98
97
|
)
|
|
99
98
|
),
|
|
100
|
-
|
|
101
|
-
Col
|
|
99
|
+
React.createElement(
|
|
100
|
+
Col,
|
|
102
101
|
{ xs: 12, sm: 4 },
|
|
103
|
-
|
|
102
|
+
React.createElement(
|
|
104
103
|
LazyLoad,
|
|
105
104
|
{ once: true },
|
|
106
|
-
|
|
105
|
+
React.createElement('img', { className: 'w-100 mb-2', src: thumbnail && thumbnail.asset && client ? urlFor({ client: client, source: thumbnail.asset }) : defaultImage, alt: name || '' })
|
|
107
106
|
)
|
|
108
107
|
),
|
|
109
|
-
|
|
110
|
-
Col
|
|
108
|
+
React.createElement(
|
|
109
|
+
Col,
|
|
111
110
|
{ xs: 12, sm: 8 },
|
|
112
|
-
|
|
113
|
-
Row
|
|
111
|
+
React.createElement(
|
|
112
|
+
Row,
|
|
114
113
|
null,
|
|
115
114
|
articles.map(function (article) {
|
|
116
|
-
return
|
|
117
|
-
Col
|
|
115
|
+
return React.createElement(
|
|
116
|
+
Col,
|
|
118
117
|
{ key: article._id, xs: 12, sm: 6 },
|
|
119
|
-
article.issueSection && article.issueSection.name &&
|
|
118
|
+
article.issueSection && article.issueSection.name && React.createElement(
|
|
120
119
|
'h6',
|
|
121
120
|
{ className: 'text-primary m-0 p-0 text-uppercase font-weight-bold' },
|
|
122
121
|
article.issueSection.name
|
|
123
122
|
),
|
|
124
|
-
article.title &&
|
|
125
|
-
|
|
123
|
+
article.title && React.createElement(
|
|
124
|
+
React.Fragment,
|
|
126
125
|
null,
|
|
127
|
-
article.url && article.url.current ?
|
|
126
|
+
article.url && article.url.current ? React.createElement(
|
|
128
127
|
'a',
|
|
129
128
|
{ href: '/view/' + article.url.current },
|
|
130
|
-
|
|
129
|
+
React.createElement(
|
|
131
130
|
'h6',
|
|
132
131
|
{ className: 'text-break' },
|
|
133
132
|
article.title
|
|
134
133
|
)
|
|
135
|
-
) :
|
|
134
|
+
) : React.createElement(
|
|
136
135
|
'h6',
|
|
137
136
|
{ className: 'text-break' },
|
|
138
137
|
article.title
|
|
@@ -142,18 +141,18 @@ var PublicationFeature = function PublicationFeature(_ref) {
|
|
|
142
141
|
})
|
|
143
142
|
)
|
|
144
143
|
),
|
|
145
|
-
issueMapping && parentSlug && childSlug &&
|
|
146
|
-
Col
|
|
144
|
+
issueMapping && parentSlug && childSlug && React.createElement(
|
|
145
|
+
Col,
|
|
147
146
|
{ xs: 12 },
|
|
148
|
-
|
|
149
|
-
Button
|
|
147
|
+
React.createElement(
|
|
148
|
+
Button,
|
|
150
149
|
{ href: issueMapping + '/' + parentSlug + '/' + childSlug, className: 'float-right', variant: 'outline-primary' },
|
|
151
150
|
'More Articles ',
|
|
152
151
|
'>>'
|
|
153
152
|
)
|
|
154
153
|
)
|
|
155
154
|
),
|
|
156
|
-
|
|
155
|
+
React.createElement(
|
|
157
156
|
'style',
|
|
158
157
|
{ jsx: 'true' },
|
|
159
158
|
'\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 '
|
|
@@ -335,7 +334,7 @@ var GridContent = function (_React$Component) {
|
|
|
335
334
|
var rightItems = _this.props.rightItems;
|
|
336
335
|
|
|
337
336
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
338
|
-
return
|
|
337
|
+
return React.createElement(
|
|
339
338
|
'div',
|
|
340
339
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
341
340
|
rightItems[i].component
|
|
@@ -343,15 +342,15 @@ var GridContent = function (_React$Component) {
|
|
|
343
342
|
}, _this.renderManualPagination = function () {
|
|
344
343
|
var currentPage = _this.state.currentPage;
|
|
345
344
|
|
|
346
|
-
return
|
|
345
|
+
return React.createElement(
|
|
347
346
|
'div',
|
|
348
347
|
{ className: 'd-flex justify-content-between' },
|
|
349
|
-
currentPage && currentPage > 1 &&
|
|
348
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
350
349
|
'a',
|
|
351
350
|
{ href: '?page=' + (currentPage - 1) },
|
|
352
351
|
'<< Previous'
|
|
353
352
|
),
|
|
354
|
-
|
|
353
|
+
React.createElement(
|
|
355
354
|
'a',
|
|
356
355
|
{ href: '?page=' + (currentPage + 1) },
|
|
357
356
|
'Next >>'
|
|
@@ -386,62 +385,62 @@ var GridContent = function (_React$Component) {
|
|
|
386
385
|
var numberOfItemsBeforeAd = 6;
|
|
387
386
|
var numberOfItemsBeforeVideo = 3;
|
|
388
387
|
if (variant === 'stack') {
|
|
389
|
-
return
|
|
390
|
-
Row
|
|
388
|
+
return React.createElement(
|
|
389
|
+
Row,
|
|
391
390
|
null,
|
|
392
391
|
this.state.data && this.state.data.length > 0 ? this.state.data.map(function (row, index) {
|
|
393
392
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
394
|
-
return
|
|
395
|
-
Col
|
|
393
|
+
return React.createElement(
|
|
394
|
+
Col,
|
|
396
395
|
{ key: index, md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
397
|
-
|
|
398
|
-
Card
|
|
396
|
+
React.createElement(
|
|
397
|
+
Card,
|
|
399
398
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
400
|
-
|
|
401
|
-
Row
|
|
399
|
+
React.createElement(
|
|
400
|
+
Row,
|
|
402
401
|
{ style: { flexDirection: 'row' } },
|
|
403
|
-
|
|
404
|
-
Col
|
|
402
|
+
React.createElement(
|
|
403
|
+
Col,
|
|
405
404
|
{ md: 12, lg: 4 },
|
|
406
|
-
|
|
405
|
+
React.createElement(
|
|
407
406
|
'a',
|
|
408
407
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
409
|
-
|
|
408
|
+
React.createElement(
|
|
410
409
|
LazyLoad,
|
|
411
410
|
{ height: _this2.props.imageHeight },
|
|
412
|
-
|
|
411
|
+
React.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row, page), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
413
412
|
)
|
|
414
413
|
)
|
|
415
414
|
),
|
|
416
|
-
|
|
417
|
-
Col
|
|
415
|
+
React.createElement(
|
|
416
|
+
Col,
|
|
418
417
|
null,
|
|
419
|
-
|
|
420
|
-
Card
|
|
418
|
+
React.createElement(
|
|
419
|
+
Card.Body,
|
|
421
420
|
{ style: { padding: '20px' } },
|
|
422
|
-
|
|
423
|
-
Card
|
|
421
|
+
React.createElement(
|
|
422
|
+
Card.Title,
|
|
424
423
|
null,
|
|
425
|
-
|
|
424
|
+
React.createElement(
|
|
426
425
|
'a',
|
|
427
426
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
428
427
|
row.title
|
|
429
428
|
)
|
|
430
429
|
),
|
|
431
|
-
_this2.props.showPublished && row.published &&
|
|
432
|
-
Card
|
|
430
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
431
|
+
Card.Subtitle,
|
|
433
432
|
{ style: { marginTop: 0 } },
|
|
434
433
|
moment(row.published).format('MMMM DD, YYYY')
|
|
435
434
|
),
|
|
436
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
435
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
437
436
|
LazyLoad,
|
|
438
437
|
{ height: 50 },
|
|
439
|
-
|
|
438
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
440
439
|
),
|
|
441
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
440
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
442
441
|
LazyLoad,
|
|
443
442
|
{ height: 50 },
|
|
444
|
-
|
|
443
|
+
React.createElement(
|
|
445
444
|
'p',
|
|
446
445
|
{
|
|
447
446
|
className: 'article-category',
|
|
@@ -456,8 +455,8 @@ var GridContent = function (_React$Component) {
|
|
|
456
455
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
457
456
|
)
|
|
458
457
|
),
|
|
459
|
-
|
|
460
|
-
Card
|
|
458
|
+
React.createElement(
|
|
459
|
+
Card.Text,
|
|
461
460
|
null,
|
|
462
461
|
clean_html_1(row.summary)
|
|
463
462
|
)
|
|
@@ -466,13 +465,13 @@ var GridContent = function (_React$Component) {
|
|
|
466
465
|
)
|
|
467
466
|
)
|
|
468
467
|
);
|
|
469
|
-
}) :
|
|
468
|
+
}) : React.createElement(
|
|
470
469
|
'div',
|
|
471
470
|
null,
|
|
472
|
-
|
|
471
|
+
React.createElement(
|
|
473
472
|
'h5',
|
|
474
473
|
null,
|
|
475
|
-
|
|
474
|
+
React.createElement(
|
|
476
475
|
'em',
|
|
477
476
|
null,
|
|
478
477
|
'New content coming soon, please check back later.'
|
|
@@ -587,7 +586,7 @@ var GridContent = function (_React$Component) {
|
|
|
587
586
|
var itemsPerPage = this.props.params && this.props.params.itemsPerPage ? this.props.params.itemsPerPage : 10;
|
|
588
587
|
var heroContent = this.props.heroContent ? this.props.heroContent : 0;
|
|
589
588
|
var featureCount = 0;
|
|
590
|
-
return
|
|
589
|
+
return React.createElement(
|
|
591
590
|
'div',
|
|
592
591
|
{ className: 'grid-container' },
|
|
593
592
|
posts && posts.length > 0 ? posts.map(function (row, index) {
|
|
@@ -597,59 +596,59 @@ var GridContent = function (_React$Component) {
|
|
|
597
596
|
if (row._type === 'feature') {
|
|
598
597
|
featureCount++;
|
|
599
598
|
if (row.blank || _this2.checkExternalUrl(row.url.current)) {
|
|
600
|
-
return
|
|
601
|
-
|
|
599
|
+
return React.createElement(
|
|
600
|
+
React.Fragment,
|
|
602
601
|
{ key: itemCounter },
|
|
603
|
-
|
|
602
|
+
React.createElement(
|
|
604
603
|
VisibilitySensor,
|
|
605
604
|
{
|
|
606
605
|
partialVisibility: true,
|
|
607
606
|
onChange: function onChange(isVisible) {
|
|
608
607
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, index);
|
|
609
608
|
} },
|
|
610
|
-
|
|
609
|
+
React.createElement(
|
|
611
610
|
'div',
|
|
612
611
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
613
|
-
|
|
614
|
-
Card
|
|
612
|
+
React.createElement(
|
|
613
|
+
Card,
|
|
615
614
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
616
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
615
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
617
616
|
'a',
|
|
618
617
|
{ rel: 'noopener', href: row.url.current, target: '_blank', className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
619
|
-
|
|
618
|
+
React.createElement(
|
|
620
619
|
LazyLoad,
|
|
621
620
|
{ height: _this2.props.imageHeight },
|
|
622
|
-
|
|
621
|
+
React.createElement(Card.Img, {
|
|
623
622
|
variant: 'top',
|
|
624
623
|
src: _this2.renderCardImage(row, page),
|
|
625
624
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
626
625
|
})
|
|
627
626
|
)
|
|
628
627
|
),
|
|
629
|
-
|
|
630
|
-
Card
|
|
628
|
+
React.createElement(
|
|
629
|
+
Card.Body,
|
|
631
630
|
null,
|
|
632
|
-
|
|
631
|
+
React.createElement(
|
|
633
632
|
'a',
|
|
634
633
|
{ rel: 'noopener', href: row.url.current, target: '_blank' },
|
|
635
|
-
|
|
636
|
-
Card
|
|
634
|
+
React.createElement(
|
|
635
|
+
Card.Title,
|
|
637
636
|
null,
|
|
638
637
|
row.title
|
|
639
638
|
)
|
|
640
639
|
),
|
|
641
|
-
_this2.props.showPublished && row.published &&
|
|
642
|
-
Card
|
|
640
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
641
|
+
Card.Subtitle,
|
|
643
642
|
{ style: { marginTop: 0 } },
|
|
644
643
|
moment(row.published).format('MMMM DD, YYYY')
|
|
645
644
|
),
|
|
646
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
645
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
647
646
|
LazyLoad,
|
|
648
647
|
{ height: 50 },
|
|
649
|
-
|
|
648
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
650
649
|
),
|
|
651
|
-
|
|
652
|
-
Card
|
|
650
|
+
React.createElement(
|
|
651
|
+
Card.Text,
|
|
653
652
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
654
653
|
clean_html_1(row.summary)
|
|
655
654
|
)
|
|
@@ -657,63 +656,63 @@ var GridContent = function (_React$Component) {
|
|
|
657
656
|
)
|
|
658
657
|
)
|
|
659
658
|
),
|
|
660
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
661
|
-
|
|
659
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
660
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
662
661
|
);
|
|
663
662
|
} else {
|
|
664
|
-
return
|
|
665
|
-
|
|
663
|
+
return React.createElement(
|
|
664
|
+
React.Fragment,
|
|
666
665
|
{ key: itemCounter },
|
|
667
|
-
|
|
666
|
+
React.createElement(
|
|
668
667
|
VisibilitySensor,
|
|
669
668
|
{
|
|
670
669
|
partialVisibility: true,
|
|
671
670
|
onChange: function onChange(isVisible) {
|
|
672
671
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, index);
|
|
673
672
|
} },
|
|
674
|
-
|
|
673
|
+
React.createElement(
|
|
675
674
|
'div',
|
|
676
675
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
677
|
-
|
|
678
|
-
Card
|
|
676
|
+
React.createElement(
|
|
677
|
+
Card,
|
|
679
678
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
680
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
679
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
681
680
|
'a',
|
|
682
681
|
{ href: row.url.current, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
683
|
-
|
|
682
|
+
React.createElement(
|
|
684
683
|
LazyLoad,
|
|
685
684
|
{ height: _this2.props.imageHeight },
|
|
686
|
-
|
|
685
|
+
React.createElement(Card.Img, {
|
|
687
686
|
variant: 'top',
|
|
688
687
|
src: _this2.renderCardImage(row, page),
|
|
689
688
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
690
689
|
})
|
|
691
690
|
)
|
|
692
691
|
),
|
|
693
|
-
|
|
694
|
-
Card
|
|
692
|
+
React.createElement(
|
|
693
|
+
Card.Body,
|
|
695
694
|
null,
|
|
696
|
-
|
|
695
|
+
React.createElement(
|
|
697
696
|
'a',
|
|
698
697
|
{ href: row.url.current },
|
|
699
|
-
|
|
700
|
-
Card
|
|
698
|
+
React.createElement(
|
|
699
|
+
Card.Title,
|
|
701
700
|
null,
|
|
702
701
|
row.title
|
|
703
702
|
)
|
|
704
703
|
),
|
|
705
|
-
_this2.props.showPublished && row.published &&
|
|
706
|
-
Card
|
|
704
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
705
|
+
Card.Subtitle,
|
|
707
706
|
{ style: { marginTop: 0 } },
|
|
708
707
|
moment(row.published).format('MMMM DD, YYYY')
|
|
709
708
|
),
|
|
710
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
709
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
711
710
|
LazyLoad,
|
|
712
711
|
{ height: 50 },
|
|
713
|
-
|
|
712
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
714
713
|
),
|
|
715
|
-
|
|
716
|
-
Card
|
|
714
|
+
React.createElement(
|
|
715
|
+
Card.Text,
|
|
717
716
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
718
717
|
clean_html_1(row.summary)
|
|
719
718
|
)
|
|
@@ -721,71 +720,71 @@ var GridContent = function (_React$Component) {
|
|
|
721
720
|
)
|
|
722
721
|
)
|
|
723
722
|
),
|
|
724
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
725
|
-
|
|
723
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
724
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
726
725
|
);
|
|
727
726
|
}
|
|
728
727
|
} else if (row._type === 'lg-infeed' && row.adUnit) {
|
|
729
|
-
return
|
|
728
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
730
729
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
731
|
-
return
|
|
732
|
-
} else if (row._type === 'publication') return
|
|
730
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
731
|
+
} else if (row._type === 'publication') return React.createElement(PublicationFeature, { data: row, defaultImage: _this2.defaultImage, issueMapping: _this2.props.issueMapping, client: _this2.client });
|
|
733
732
|
if (index + 1 > heroContent + featureCount && (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type))) {
|
|
734
|
-
return
|
|
735
|
-
|
|
733
|
+
return React.createElement(
|
|
734
|
+
React.Fragment,
|
|
736
735
|
{ key: itemCounter },
|
|
737
|
-
|
|
736
|
+
React.createElement(
|
|
738
737
|
VisibilitySensor,
|
|
739
738
|
{
|
|
740
739
|
onChange: function onChange(isVisible) {
|
|
741
740
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of article only.
|
|
742
741
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, row.articleCount ? row.articleCount : index);
|
|
743
742
|
} },
|
|
744
|
-
|
|
743
|
+
React.createElement(
|
|
745
744
|
'div',
|
|
746
745
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
747
|
-
|
|
748
|
-
Card
|
|
746
|
+
React.createElement(
|
|
747
|
+
Card,
|
|
749
748
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
750
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
749
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
751
750
|
'a',
|
|
752
751
|
{ href: linkHref, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
753
|
-
|
|
752
|
+
React.createElement(
|
|
754
753
|
LazyLoad,
|
|
755
754
|
{ height: _this2.props.imageHeight },
|
|
756
|
-
|
|
755
|
+
React.createElement(Card.Img, {
|
|
757
756
|
variant: 'top',
|
|
758
757
|
src: _this2.renderCardImage(row, page),
|
|
759
758
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
760
759
|
})
|
|
761
760
|
)
|
|
762
761
|
),
|
|
763
|
-
|
|
764
|
-
Card
|
|
762
|
+
React.createElement(
|
|
763
|
+
Card.Body,
|
|
765
764
|
null,
|
|
766
|
-
|
|
765
|
+
React.createElement(
|
|
767
766
|
'a',
|
|
768
767
|
{ href: linkHref },
|
|
769
|
-
|
|
770
|
-
Card
|
|
768
|
+
React.createElement(
|
|
769
|
+
Card.Title,
|
|
771
770
|
null,
|
|
772
771
|
row.title
|
|
773
772
|
)
|
|
774
773
|
),
|
|
775
|
-
_this2.props.showPublished && row.published &&
|
|
776
|
-
Card
|
|
774
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
775
|
+
Card.Subtitle,
|
|
777
776
|
{ style: { marginTop: 0 } },
|
|
778
777
|
moment(row.published).format('MMMM DD, YYYY')
|
|
779
778
|
),
|
|
780
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
779
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
781
780
|
LazyLoad,
|
|
782
781
|
{ height: 50 },
|
|
783
|
-
|
|
782
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
784
783
|
),
|
|
785
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
784
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
786
785
|
LazyLoad,
|
|
787
786
|
{ height: 50 },
|
|
788
|
-
|
|
787
|
+
React.createElement(
|
|
789
788
|
'p',
|
|
790
789
|
{
|
|
791
790
|
className: 'article-category',
|
|
@@ -800,8 +799,8 @@ var GridContent = function (_React$Component) {
|
|
|
800
799
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
801
800
|
)
|
|
802
801
|
),
|
|
803
|
-
|
|
804
|
-
Card
|
|
802
|
+
React.createElement(
|
|
803
|
+
Card.Text,
|
|
805
804
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
806
805
|
clean_html_1(row.summary)
|
|
807
806
|
)
|
|
@@ -809,17 +808,17 @@ var GridContent = function (_React$Component) {
|
|
|
809
808
|
)
|
|
810
809
|
)
|
|
811
810
|
),
|
|
812
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
813
|
-
|
|
811
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
812
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
814
813
|
);
|
|
815
814
|
} else return null;
|
|
816
|
-
}) :
|
|
815
|
+
}) : React.createElement(
|
|
817
816
|
'div',
|
|
818
817
|
null,
|
|
819
|
-
|
|
818
|
+
React.createElement(
|
|
820
819
|
'h5',
|
|
821
820
|
null,
|
|
822
|
-
|
|
821
|
+
React.createElement(
|
|
823
822
|
'em',
|
|
824
823
|
null,
|
|
825
824
|
'New content coming soon, please check back later.'
|
|
@@ -844,29 +843,29 @@ var GridContent = function (_React$Component) {
|
|
|
844
843
|
brandInsight = _props.brandInsight;
|
|
845
844
|
|
|
846
845
|
|
|
847
|
-
return
|
|
846
|
+
return React.createElement(
|
|
848
847
|
'div',
|
|
849
848
|
{ className: 'contentDeck' },
|
|
850
|
-
autoScroll ?
|
|
849
|
+
autoScroll ? React.createElement(
|
|
851
850
|
InfiniteScroll,
|
|
852
851
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
853
|
-
|
|
854
|
-
Container
|
|
852
|
+
React.createElement(
|
|
853
|
+
Container,
|
|
855
854
|
null,
|
|
856
855
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
857
856
|
)
|
|
858
|
-
) :
|
|
859
|
-
|
|
857
|
+
) : React.createElement(
|
|
858
|
+
React.Fragment,
|
|
860
859
|
null,
|
|
861
|
-
|
|
862
|
-
Container
|
|
860
|
+
React.createElement(
|
|
861
|
+
Container,
|
|
863
862
|
null,
|
|
864
863
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
865
864
|
),
|
|
866
|
-
|
|
865
|
+
React.createElement(
|
|
867
866
|
'div',
|
|
868
867
|
{ style: { padding: '0px 10px' } },
|
|
869
|
-
this.state.scrolling ?
|
|
868
|
+
this.state.scrolling ? React.createElement(
|
|
870
869
|
'button',
|
|
871
870
|
{
|
|
872
871
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -874,17 +873,17 @@ var GridContent = function (_React$Component) {
|
|
|
874
873
|
_this3.loadMore();
|
|
875
874
|
} },
|
|
876
875
|
'Load More'
|
|
877
|
-
) :
|
|
876
|
+
) : React.createElement(
|
|
878
877
|
'p',
|
|
879
878
|
{ style: { textAlign: 'center' } },
|
|
880
|
-
|
|
879
|
+
React.createElement(
|
|
881
880
|
'b',
|
|
882
881
|
null,
|
|
883
882
|
'End of data'
|
|
884
883
|
)
|
|
885
884
|
)
|
|
886
885
|
),
|
|
887
|
-
|
|
886
|
+
React.createElement(
|
|
888
887
|
'noscript',
|
|
889
888
|
null,
|
|
890
889
|
this.renderManualPagination()
|
|
@@ -895,8 +894,8 @@ var GridContent = function (_React$Component) {
|
|
|
895
894
|
}]);
|
|
896
895
|
|
|
897
896
|
return GridContent;
|
|
898
|
-
}(
|
|
897
|
+
}(React.Component);
|
|
899
898
|
|
|
900
|
-
var GridContent$1 =
|
|
899
|
+
var GridContent$1 = React.memo(withRouter(GridContent));
|
|
901
900
|
|
|
902
901
|
export default GridContent$1;
|