@mjhls/mjh-framework 1.0.863-author-details-v2 → 1.0.863-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +9 -10
- package/dist/cjs/AD300x250x600.js +9 -10
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-25d48cc2.js → ADInfeed-98c71bcd.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +11 -12
- package/dist/cjs/ADWebcast.js +11 -12
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-a535a768.js → ADlgInfeed-9de32585.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -14
- package/dist/cjs/AdSlotsProvider.js +902 -11
- package/dist/cjs/AlgoliaSearch.js +842 -952
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleCarousel.js +9 -13
- package/dist/cjs/ArticleProgramLandingPage.js +27 -28
- package/dist/cjs/ArticleSeriesLandingPage.js +22 -23
- package/dist/cjs/ArticleSeriesListing.js +39 -40
- package/dist/cjs/Auth.js +1197 -237
- package/dist/cjs/AuthWrapper.js +38 -119
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-bb831b74.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +64 -64
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +17 -18
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +72 -76
- package/dist/cjs/DeckQueue.js +68 -72
- package/dist/cjs/{Dfp-391fd124.js → Dfp-26baccf1.js} +22 -23
- package/dist/cjs/EventsDeck.js +116 -123
- package/dist/cjs/ExternalResources.js +46 -47
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +34 -35
- package/dist/cjs/GridContent.js +203 -208
- package/dist/cjs/GridHero.js +35 -36
- package/dist/cjs/GroupDeck.js +48 -49
- package/dist/cjs/HamMagazine.js +116 -121
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +9 -10
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalArticleListing.js +36 -37
- package/dist/cjs/HorizontalHero.js +23 -24
- package/dist/cjs/IssueContentDeck.js +65 -70
- package/dist/cjs/IssueDeck.js +60 -65
- package/dist/cjs/IssueLanding.js +28 -29
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +49 -50
- package/dist/cjs/MediaSeriesLanding.js +786 -733
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +116 -121
- package/dist/cjs/NavNative.js +108 -116
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +63 -64
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +1229 -133
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +19 -20
- package/dist/cjs/PubToc.js +7 -8
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +83 -87
- package/dist/cjs/QueueDeckExpanded.js +285 -285
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +22 -23
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-0d3bf265.js → SeriesSlider-8bbc989f.js} +33 -34
- package/dist/cjs/SideFooter.js +23 -24
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-cea213aa.js} +34 -38
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TaxonomyDescription.js +21 -22
- package/dist/cjs/TemplateNormal.js +34 -35
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +21 -22
- package/dist/cjs/VerticalHero.js +15 -16
- package/dist/cjs/VideoProgramLandingPage.js +43 -47
- package/dist/cjs/VideoSeriesCard.js +22 -23
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +27 -28
- package/dist/cjs/VideoSeriesListing.js +56 -57
- package/dist/cjs/View.js +201 -207
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +67 -76
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/faundadb.js +16 -16
- package/dist/cjs/getRelatedArticle.js +131 -67
- package/dist/cjs/getRootDocGroup.js +3 -3
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-a9a871f0.js → getTargeting-f1821260.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-6367b7bf.js → index-3294d3bc.js} +17 -16
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-2cf30c83.js → index-98e01cb9.js} +8 -9
- package/dist/cjs/{index-04a5a4a2.js → index-a1e54356.js} +934 -961
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +58 -63
- package/dist/cjs/{inherits-0c7830c5.js → inherits-1f5a1c72.js} +3 -3
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-7b5e57b0.js → main-02daeefe.js} +54 -90
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-56a3db8b.js → ADInfeed-1cc9d817.js} +7 -7
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-53edb995.js → ADlgInfeed-8c4f129e.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +902 -10
- package/dist/esm/AlgoliaSearch.js +238 -347
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +7 -10
- package/dist/esm/ArticleProgramLandingPage.js +20 -20
- package/dist/esm/ArticleSeriesLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +1180 -216
- package/dist/esm/AuthWrapper.js +36 -116
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -61
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +30 -30
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +68 -68
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-b7236041.js} +10 -10
- package/dist/esm/EventsDeck.js +92 -92
- package/dist/esm/ExternalResources.js +41 -41
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +172 -172
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +91 -91
- 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 +34 -34
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +54 -54
- package/dist/esm/IssueLanding.js +26 -26
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/MediaSeriesLanding.js +506 -450
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +93 -93
- package/dist/esm/NavNative.js +83 -83
- package/dist/esm/OncliveHero.js +15 -14
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +1227 -130
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -17
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +69 -69
- package/dist/esm/QueueDeckExpanded.js +251 -251
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +17 -17
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-7d89f4d9.js → SeriesSlider-a866bb21.js} +24 -24
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-03c3e869.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +50 -50
- package/dist/esm/TaxonomyDescription.js +16 -16
- package/dist/esm/TemplateNormal.js +31 -31
- 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 +32 -32
- package/dist/esm/VideoSeriesCard.js +17 -17
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +17 -17
- package/dist/esm/VideoSeriesListing.js +53 -53
- package/dist/esm/View.js +182 -184
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +54 -62
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getRelatedArticle.js +126 -62
- package/dist/esm/getSerializers.js +11 -11
- package/dist/esm/{index-f7fb1e25.js → index-41a678ea.js} +3 -3
- package/dist/esm/{index-6c12bdd5.js → index-5f7e79e7.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-cf54da7f.js → index-a1c5f00a.js} +887 -904
- package/dist/esm/{index-c00b0bbb.js → index-ef6d5dcf.js} +17 -16
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +49 -51
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-75d45541.js → inherits-cf8dde54.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-747e7d25.js → main-e4a934b2.js} +52 -87
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-af9c50d8.js → typeof-6435ba1c.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -8,23 +8,23 @@ import './core.get-iterator-method-e1de7503.js';
|
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
9
|
import { _ as _extends } from './extends-6f2fcc99.js';
|
|
10
10
|
import './web.dom.iterable-4439f05a.js';
|
|
11
|
-
import
|
|
11
|
+
import React__default, { useEffect, useState, useRef } from 'react';
|
|
12
12
|
import './events-6c3a7a63.js';
|
|
13
|
-
import { l as lib_3 } from './index-
|
|
13
|
+
import { l as lib_3 } from './index-41a678ea.js';
|
|
14
14
|
import 'prop-types';
|
|
15
15
|
import 'react-bootstrap/Card';
|
|
16
|
-
import { m as moment } from './moment-
|
|
16
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
17
17
|
import { useRouter } from 'next/router';
|
|
18
18
|
import './isSymbol-1981418f.js';
|
|
19
19
|
import './debounce-9207d8ee.js';
|
|
20
20
|
import './toNumber-2f7a84cd.js';
|
|
21
|
-
import { I as InfiniteScroll } from './index.es-
|
|
21
|
+
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
22
22
|
import 'react-dom';
|
|
23
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
24
|
-
import './index-
|
|
23
|
+
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
24
|
+
import './index-73819142.js';
|
|
25
25
|
import urlFor from './urlFor.js';
|
|
26
|
-
import { L as LazyLoad } from './index-
|
|
27
|
-
import { m as
|
|
26
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
27
|
+
import { m as main_36 } from './main-e4a934b2.js';
|
|
28
28
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
29
29
|
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
30
30
|
import './stringify-4330ccdc.js';
|
|
@@ -32,11 +32,11 @@ import './asyncToGenerator-fc1c2e29.js';
|
|
|
32
32
|
import './Segment.js';
|
|
33
33
|
import './Beam.js';
|
|
34
34
|
import './AdSlot.js';
|
|
35
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
36
|
-
import { l as lodash } from './lodash-
|
|
37
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
35
|
+
import { A as ADInfeed } from './ADInfeed-1cc9d817.js';
|
|
36
|
+
import { l as lodash } from './lodash-17fdfebb.js';
|
|
37
|
+
import { A as ADlgInfeed } from './ADlgInfeed-8c4f129e.js';
|
|
38
38
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
39
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
39
|
+
import { A as AuthorComponent } from './AuthorComponent-34b16174.js';
|
|
40
40
|
import { Container, Media } from 'react-bootstrap';
|
|
41
41
|
import timeDifferenceCalc from './timeDifferenceCalc.js';
|
|
42
42
|
|
|
@@ -254,7 +254,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
254
254
|
});
|
|
255
255
|
|
|
256
256
|
var featureCount = 0;
|
|
257
|
-
return
|
|
257
|
+
return React__default.createElement(
|
|
258
258
|
'div',
|
|
259
259
|
null,
|
|
260
260
|
data && data.length > 0 ? dataRemapped ? // For Javascript Enabled Cases
|
|
@@ -265,7 +265,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
265
265
|
if (article._type === 'feature') {
|
|
266
266
|
featureCount++;
|
|
267
267
|
if (article.blank || checkExternalUrl(article.url.current)) {
|
|
268
|
-
return
|
|
268
|
+
return React__default.createElement(
|
|
269
269
|
VisibilitySensor,
|
|
270
270
|
{
|
|
271
271
|
key: article._id ? article._id : index,
|
|
@@ -273,51 +273,51 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
273
273
|
onChange: function onChange(isVisible) {
|
|
274
274
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
|
|
275
275
|
} },
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
React__default.createElement(
|
|
277
|
+
React__default.Fragment,
|
|
278
278
|
null,
|
|
279
|
-
|
|
279
|
+
React__default.createElement(
|
|
280
280
|
Media,
|
|
281
281
|
{
|
|
282
282
|
key: article._id ? article._id : index,
|
|
283
283
|
className: 'feature-media',
|
|
284
284
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
285
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
285
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
286
286
|
'a',
|
|
287
287
|
{ rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
288
|
-
|
|
288
|
+
React__default.createElement(
|
|
289
289
|
LazyLoad,
|
|
290
|
-
{ height: imageHeight, placeholder:
|
|
291
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
290
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
291
|
+
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
292
292
|
),
|
|
293
|
-
article.source &&
|
|
293
|
+
article.source && React__default.createElement(
|
|
294
294
|
'div',
|
|
295
295
|
{ className: 'content-category-label' },
|
|
296
|
-
|
|
296
|
+
React__default.createElement(
|
|
297
297
|
'div',
|
|
298
298
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
299
299
|
article.source
|
|
300
300
|
)
|
|
301
301
|
)
|
|
302
302
|
),
|
|
303
|
-
|
|
303
|
+
React__default.createElement(
|
|
304
304
|
Media.Body,
|
|
305
305
|
null,
|
|
306
|
-
|
|
306
|
+
React__default.createElement(
|
|
307
307
|
'a',
|
|
308
308
|
{ rel: 'noopener', href: article.url.current, target: '_blank' },
|
|
309
|
-
article.title &&
|
|
309
|
+
article.title && React__default.createElement(
|
|
310
310
|
'h4',
|
|
311
311
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
312
312
|
article.title
|
|
313
313
|
)
|
|
314
314
|
),
|
|
315
|
-
showPublished && !showTimeDiff && article.published &&
|
|
315
|
+
showPublished && !showTimeDiff && article.published && React__default.createElement(
|
|
316
316
|
'p',
|
|
317
317
|
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
318
318
|
moment(article.published).format('MMMM DD, YYYY')
|
|
319
319
|
),
|
|
320
|
-
showTimeDiff && article.published &&
|
|
320
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
321
321
|
'p',
|
|
322
322
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
323
323
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -325,20 +325,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
325
325
|
return null;
|
|
326
326
|
}
|
|
327
327
|
if (index === 3) {
|
|
328
|
-
return
|
|
329
|
-
|
|
328
|
+
return React__default.createElement(
|
|
329
|
+
React__default.Fragment,
|
|
330
330
|
null,
|
|
331
|
-
|
|
331
|
+
React__default.createElement(
|
|
332
332
|
'em',
|
|
333
333
|
{ style: { marginRight: '.5rem' } },
|
|
334
334
|
'...'
|
|
335
335
|
)
|
|
336
336
|
);
|
|
337
337
|
}
|
|
338
|
-
return
|
|
339
|
-
|
|
338
|
+
return React__default.createElement(
|
|
339
|
+
React__default.Fragment,
|
|
340
340
|
null,
|
|
341
|
-
|
|
341
|
+
React__default.createElement(
|
|
342
342
|
'em',
|
|
343
343
|
null,
|
|
344
344
|
taxonomy.name
|
|
@@ -348,30 +348,30 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
348
348
|
);
|
|
349
349
|
}),
|
|
350
350
|
' ',
|
|
351
|
-
|
|
351
|
+
React__default.createElement(
|
|
352
352
|
'span',
|
|
353
353
|
{ style: { display: 'inline-block' } },
|
|
354
354
|
timeDifferenceCalc(article.published)
|
|
355
355
|
)
|
|
356
356
|
),
|
|
357
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
357
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
358
358
|
LazyLoad,
|
|
359
359
|
{ height: 50 },
|
|
360
|
-
|
|
360
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
361
361
|
),
|
|
362
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
362
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
363
363
|
'div',
|
|
364
364
|
{ className: 'content-category-label' },
|
|
365
|
-
|
|
365
|
+
React__default.createElement(
|
|
366
366
|
'div',
|
|
367
367
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
368
368
|
article.source
|
|
369
369
|
)
|
|
370
370
|
),
|
|
371
|
-
|
|
371
|
+
React__default.createElement(
|
|
372
372
|
'div',
|
|
373
373
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
374
|
-
showCategory && article.contentCategory &&
|
|
374
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
375
375
|
'p',
|
|
376
376
|
{
|
|
377
377
|
className: 'article-category',
|
|
@@ -385,7 +385,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
385
385
|
} },
|
|
386
386
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
387
387
|
),
|
|
388
|
-
article.issueSection && article.issueSection.name &&
|
|
388
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
389
389
|
'p',
|
|
390
390
|
{
|
|
391
391
|
className: 'issueSection',
|
|
@@ -401,21 +401,21 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
401
401
|
article.issueSection.name
|
|
402
402
|
)
|
|
403
403
|
),
|
|
404
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
404
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
405
405
|
'div',
|
|
406
406
|
{ className: 'pubInfo' },
|
|
407
|
-
article.volume &&
|
|
407
|
+
article.volume && React__default.createElement(
|
|
408
408
|
'p',
|
|
409
409
|
{ className: 'qdeVolume' },
|
|
410
410
|
article.volume
|
|
411
411
|
),
|
|
412
|
-
article.issue &&
|
|
412
|
+
article.issue && React__default.createElement(
|
|
413
413
|
'p',
|
|
414
414
|
{ className: 'qdeIssue' },
|
|
415
415
|
article.issue
|
|
416
416
|
)
|
|
417
417
|
),
|
|
418
|
-
showIntro && article.summary &&
|
|
418
|
+
showIntro && article.summary && React__default.createElement(
|
|
419
419
|
'p',
|
|
420
420
|
{ className: 'pt-2 card-text' },
|
|
421
421
|
clean_html_1(article.summary)
|
|
@@ -425,7 +425,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
425
425
|
)
|
|
426
426
|
);
|
|
427
427
|
} else {
|
|
428
|
-
return
|
|
428
|
+
return React__default.createElement(
|
|
429
429
|
VisibilitySensor,
|
|
430
430
|
{
|
|
431
431
|
key: article._id ? article._id : index,
|
|
@@ -433,51 +433,51 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
433
433
|
onChange: function onChange(isVisible) {
|
|
434
434
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
|
|
435
435
|
} },
|
|
436
|
-
|
|
437
|
-
|
|
436
|
+
React__default.createElement(
|
|
437
|
+
React__default.Fragment,
|
|
438
438
|
null,
|
|
439
|
-
|
|
439
|
+
React__default.createElement(
|
|
440
440
|
Media,
|
|
441
441
|
{
|
|
442
442
|
key: article._id ? article._id : index,
|
|
443
443
|
className: 'feature-media',
|
|
444
444
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
445
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
445
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
446
446
|
'a',
|
|
447
447
|
{ href: article.url.current, className: 'feature-wrapper' },
|
|
448
|
-
|
|
448
|
+
React__default.createElement(
|
|
449
449
|
LazyLoad,
|
|
450
|
-
{ height: imageHeight, placeholder:
|
|
451
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
450
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
451
|
+
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
452
452
|
),
|
|
453
|
-
article.source &&
|
|
453
|
+
article.source && React__default.createElement(
|
|
454
454
|
'div',
|
|
455
455
|
{ className: 'content-category-label' },
|
|
456
|
-
|
|
456
|
+
React__default.createElement(
|
|
457
457
|
'div',
|
|
458
458
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
459
459
|
article.source
|
|
460
460
|
)
|
|
461
461
|
)
|
|
462
462
|
),
|
|
463
|
-
|
|
463
|
+
React__default.createElement(
|
|
464
464
|
Media.Body,
|
|
465
465
|
null,
|
|
466
|
-
|
|
466
|
+
React__default.createElement(
|
|
467
467
|
'a',
|
|
468
468
|
{ href: article.url.current },
|
|
469
|
-
article.title &&
|
|
469
|
+
article.title && React__default.createElement(
|
|
470
470
|
'h4',
|
|
471
471
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
472
472
|
article.title
|
|
473
473
|
)
|
|
474
474
|
),
|
|
475
|
-
showPublished && !showTimeDiff && article.published &&
|
|
475
|
+
showPublished && !showTimeDiff && article.published && React__default.createElement(
|
|
476
476
|
'p',
|
|
477
477
|
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
478
478
|
moment(article.published).format('MMMM DD, YYYY')
|
|
479
479
|
),
|
|
480
|
-
showTimeDiff && article.published &&
|
|
480
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
481
481
|
'p',
|
|
482
482
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
483
483
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -485,10 +485,10 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
485
485
|
return null;
|
|
486
486
|
}
|
|
487
487
|
if (index === 3) {
|
|
488
|
-
return
|
|
489
|
-
|
|
488
|
+
return React__default.createElement(
|
|
489
|
+
React__default.Fragment,
|
|
490
490
|
null,
|
|
491
|
-
|
|
491
|
+
React__default.createElement(
|
|
492
492
|
'em',
|
|
493
493
|
{ style: { marginRight: '.5rem' } },
|
|
494
494
|
'...'
|
|
@@ -496,20 +496,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
496
496
|
);
|
|
497
497
|
}
|
|
498
498
|
if (index === 3) {
|
|
499
|
-
return
|
|
500
|
-
|
|
499
|
+
return React__default.createElement(
|
|
500
|
+
React__default.Fragment,
|
|
501
501
|
null,
|
|
502
|
-
|
|
502
|
+
React__default.createElement(
|
|
503
503
|
'em',
|
|
504
504
|
{ style: { marginRight: '.5rem' } },
|
|
505
505
|
'...'
|
|
506
506
|
)
|
|
507
507
|
);
|
|
508
508
|
}
|
|
509
|
-
return
|
|
510
|
-
|
|
509
|
+
return React__default.createElement(
|
|
510
|
+
React__default.Fragment,
|
|
511
511
|
null,
|
|
512
|
-
|
|
512
|
+
React__default.createElement(
|
|
513
513
|
'em',
|
|
514
514
|
null,
|
|
515
515
|
taxonomy.name
|
|
@@ -519,30 +519,30 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
519
519
|
);
|
|
520
520
|
}),
|
|
521
521
|
' ',
|
|
522
|
-
|
|
522
|
+
React__default.createElement(
|
|
523
523
|
'span',
|
|
524
524
|
{ style: { display: 'inline-block' } },
|
|
525
525
|
timeDifferenceCalc(article.published)
|
|
526
526
|
)
|
|
527
527
|
),
|
|
528
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
528
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
529
529
|
LazyLoad,
|
|
530
530
|
{ height: 50 },
|
|
531
|
-
|
|
531
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
532
532
|
),
|
|
533
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
533
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
534
534
|
'div',
|
|
535
535
|
{ className: 'content-category-label' },
|
|
536
|
-
|
|
536
|
+
React__default.createElement(
|
|
537
537
|
'div',
|
|
538
538
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
539
539
|
article.source
|
|
540
540
|
)
|
|
541
541
|
),
|
|
542
|
-
|
|
542
|
+
React__default.createElement(
|
|
543
543
|
'div',
|
|
544
544
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
545
|
-
showCategory && article.contentCategory &&
|
|
545
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
546
546
|
'p',
|
|
547
547
|
{
|
|
548
548
|
className: 'article-category',
|
|
@@ -556,7 +556,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
556
556
|
} },
|
|
557
557
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
558
558
|
),
|
|
559
|
-
article.issueSection && article.issueSection.name &&
|
|
559
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
560
560
|
'p',
|
|
561
561
|
{
|
|
562
562
|
className: 'issueSection',
|
|
@@ -572,21 +572,21 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
572
572
|
article.issueSection.name
|
|
573
573
|
)
|
|
574
574
|
),
|
|
575
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
575
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
576
576
|
'div',
|
|
577
577
|
{ className: 'pubInfo' },
|
|
578
|
-
article.volume &&
|
|
578
|
+
article.volume && React__default.createElement(
|
|
579
579
|
'p',
|
|
580
580
|
{ className: 'qdeVolume' },
|
|
581
581
|
article.volume
|
|
582
582
|
),
|
|
583
|
-
article.issue &&
|
|
583
|
+
article.issue && React__default.createElement(
|
|
584
584
|
'p',
|
|
585
585
|
{ className: 'qdeIssue' },
|
|
586
586
|
article.issue
|
|
587
587
|
)
|
|
588
588
|
),
|
|
589
|
-
showIntro && article.summary &&
|
|
589
|
+
showIntro && article.summary && React__default.createElement(
|
|
590
590
|
'p',
|
|
591
591
|
{ className: 'pt-2 card-text' },
|
|
592
592
|
clean_html_1(article.summary)
|
|
@@ -597,12 +597,12 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
597
597
|
);
|
|
598
598
|
}
|
|
599
599
|
} else if (article._type === 'lg-infeed' && article.adUnit) {
|
|
600
|
-
return
|
|
600
|
+
return React__default.createElement(ADlgInfeed, _extends({ index: index }, article));
|
|
601
601
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
602
|
-
return
|
|
602
|
+
return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
603
603
|
}
|
|
604
604
|
if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
|
|
605
|
-
return
|
|
605
|
+
return React__default.createElement(
|
|
606
606
|
VisibilitySensor,
|
|
607
607
|
{
|
|
608
608
|
key: article._id ? article._id : index,
|
|
@@ -610,50 +610,50 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
610
610
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of artilce only.
|
|
611
611
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, article.articleCount ? article.articleCount : index);
|
|
612
612
|
} },
|
|
613
|
-
|
|
614
|
-
|
|
613
|
+
React__default.createElement(
|
|
614
|
+
React__default.Fragment,
|
|
615
615
|
null,
|
|
616
|
-
|
|
616
|
+
React__default.createElement(
|
|
617
617
|
Media,
|
|
618
618
|
{
|
|
619
619
|
key: article._id ? article._id : index,
|
|
620
620
|
style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
621
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
621
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
622
622
|
'a',
|
|
623
623
|
{ href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
|
|
624
|
-
|
|
624
|
+
React__default.createElement(
|
|
625
625
|
LazyLoad,
|
|
626
|
-
{ height: imageHeight, placeholder:
|
|
627
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
626
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
627
|
+
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
628
628
|
),
|
|
629
|
-
article.source &&
|
|
629
|
+
article.source && React__default.createElement(
|
|
630
630
|
'div',
|
|
631
631
|
{ className: 'content-category-label' },
|
|
632
|
-
|
|
632
|
+
React__default.createElement(
|
|
633
633
|
'div',
|
|
634
634
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
635
635
|
article.source
|
|
636
636
|
)
|
|
637
637
|
)
|
|
638
638
|
),
|
|
639
|
-
|
|
639
|
+
React__default.createElement(
|
|
640
640
|
Media.Body,
|
|
641
641
|
null,
|
|
642
|
-
|
|
642
|
+
React__default.createElement(
|
|
643
643
|
'a',
|
|
644
644
|
{ href: mapping[contentCategoryName] + '/' + article.url.current },
|
|
645
|
-
article.title &&
|
|
645
|
+
article.title && React__default.createElement(
|
|
646
646
|
'h4',
|
|
647
647
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
648
648
|
article.title
|
|
649
649
|
)
|
|
650
650
|
),
|
|
651
|
-
showPublished && !showTimeDiff && article.published &&
|
|
651
|
+
showPublished && !showTimeDiff && article.published && React__default.createElement(
|
|
652
652
|
'p',
|
|
653
653
|
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
654
654
|
moment(article.published).format('MMMM DD, YYYY')
|
|
655
655
|
),
|
|
656
|
-
showTimeDiff && article.published &&
|
|
656
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
657
657
|
'p',
|
|
658
658
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
659
659
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -661,20 +661,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
661
661
|
return null;
|
|
662
662
|
}
|
|
663
663
|
if (index === 3) {
|
|
664
|
-
return
|
|
665
|
-
|
|
664
|
+
return React__default.createElement(
|
|
665
|
+
React__default.Fragment,
|
|
666
666
|
null,
|
|
667
|
-
|
|
667
|
+
React__default.createElement(
|
|
668
668
|
'em',
|
|
669
669
|
{ style: { marginRight: '.5rem' } },
|
|
670
670
|
'...'
|
|
671
671
|
)
|
|
672
672
|
);
|
|
673
673
|
}
|
|
674
|
-
return
|
|
675
|
-
|
|
674
|
+
return React__default.createElement(
|
|
675
|
+
React__default.Fragment,
|
|
676
676
|
null,
|
|
677
|
-
|
|
677
|
+
React__default.createElement(
|
|
678
678
|
'em',
|
|
679
679
|
null,
|
|
680
680
|
taxonomy.name
|
|
@@ -684,34 +684,34 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
684
684
|
);
|
|
685
685
|
}),
|
|
686
686
|
' ',
|
|
687
|
-
|
|
687
|
+
React__default.createElement(
|
|
688
688
|
'span',
|
|
689
689
|
{ style: { display: 'inline-block' } },
|
|
690
690
|
timeDifferenceCalc(article.published)
|
|
691
691
|
)
|
|
692
692
|
),
|
|
693
|
-
|
|
693
|
+
React__default.createElement(
|
|
694
694
|
'div',
|
|
695
695
|
{ className: 'author-sec', style: { lineHeight: 1.5 } },
|
|
696
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
696
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
697
697
|
LazyLoad,
|
|
698
698
|
{ height: 50 },
|
|
699
|
-
|
|
699
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
700
700
|
)
|
|
701
701
|
),
|
|
702
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
702
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
703
703
|
'div',
|
|
704
704
|
{ className: 'content-category-label' },
|
|
705
|
-
|
|
705
|
+
React__default.createElement(
|
|
706
706
|
'div',
|
|
707
707
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
708
708
|
article.source
|
|
709
709
|
)
|
|
710
710
|
),
|
|
711
|
-
|
|
711
|
+
React__default.createElement(
|
|
712
712
|
'div',
|
|
713
713
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
714
|
-
showCategory && article.contentCategory &&
|
|
714
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
715
715
|
'p',
|
|
716
716
|
{
|
|
717
717
|
className: 'article-category',
|
|
@@ -725,7 +725,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
725
725
|
} },
|
|
726
726
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
727
727
|
),
|
|
728
|
-
article.issueSection && article.issueSection.name &&
|
|
728
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
729
729
|
'p',
|
|
730
730
|
{
|
|
731
731
|
className: 'issueSection',
|
|
@@ -741,38 +741,38 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
741
741
|
article.issueSection.name
|
|
742
742
|
)
|
|
743
743
|
),
|
|
744
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
744
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
745
745
|
'div',
|
|
746
746
|
{ className: 'pubInfo' },
|
|
747
|
-
article.volume &&
|
|
747
|
+
article.volume && React__default.createElement(
|
|
748
748
|
'p',
|
|
749
749
|
{ className: 'qdeVolume' },
|
|
750
750
|
article.volume
|
|
751
751
|
),
|
|
752
|
-
article.issue &&
|
|
752
|
+
article.issue && React__default.createElement(
|
|
753
753
|
'p',
|
|
754
754
|
{ className: 'qdeIssue' },
|
|
755
755
|
article.issue
|
|
756
756
|
)
|
|
757
757
|
),
|
|
758
|
-
showIntro && article.summary &&
|
|
758
|
+
showIntro && article.summary && React__default.createElement(
|
|
759
759
|
'p',
|
|
760
760
|
{ className: 'pt-2 card-text' },
|
|
761
761
|
clean_html_1(article.summary)
|
|
762
762
|
)
|
|
763
763
|
)
|
|
764
764
|
),
|
|
765
|
-
|
|
765
|
+
React__default.createElement(
|
|
766
766
|
'div',
|
|
767
767
|
null,
|
|
768
|
-
|
|
768
|
+
main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
|
|
769
769
|
)
|
|
770
770
|
)
|
|
771
771
|
);
|
|
772
772
|
} else return null;
|
|
773
773
|
}) :
|
|
774
774
|
// For Javascript Disabled Cases
|
|
775
|
-
|
|
775
|
+
React__default.createElement(
|
|
776
776
|
'noscript',
|
|
777
777
|
null,
|
|
778
778
|
data.map(function (article, index) {
|
|
@@ -782,7 +782,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
782
782
|
if (article._type === 'feature') {
|
|
783
783
|
featureCount++;
|
|
784
784
|
if (article.blank || checkExternalUrl(article.url.current)) {
|
|
785
|
-
return
|
|
785
|
+
return React__default.createElement(
|
|
786
786
|
VisibilitySensor,
|
|
787
787
|
{
|
|
788
788
|
key: article._id ? article._id : index,
|
|
@@ -790,51 +790,51 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
790
790
|
onChange: function onChange(isVisible) {
|
|
791
791
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
|
|
792
792
|
} },
|
|
793
|
-
|
|
794
|
-
|
|
793
|
+
React__default.createElement(
|
|
794
|
+
React__default.Fragment,
|
|
795
795
|
null,
|
|
796
|
-
|
|
796
|
+
React__default.createElement(
|
|
797
797
|
Media,
|
|
798
798
|
{
|
|
799
799
|
key: article._id ? article._id : index,
|
|
800
800
|
className: 'feature-media',
|
|
801
801
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
802
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
802
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
803
803
|
'a',
|
|
804
804
|
{ rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
805
|
-
|
|
805
|
+
React__default.createElement(
|
|
806
806
|
LazyLoad,
|
|
807
|
-
{ height: imageHeight, placeholder:
|
|
808
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
807
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
808
|
+
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
809
809
|
),
|
|
810
|
-
article.source &&
|
|
810
|
+
article.source && React__default.createElement(
|
|
811
811
|
'div',
|
|
812
812
|
{ className: 'content-category-label' },
|
|
813
|
-
|
|
813
|
+
React__default.createElement(
|
|
814
814
|
'div',
|
|
815
815
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
816
816
|
article.source
|
|
817
817
|
)
|
|
818
818
|
)
|
|
819
819
|
),
|
|
820
|
-
|
|
820
|
+
React__default.createElement(
|
|
821
821
|
Media.Body,
|
|
822
822
|
null,
|
|
823
|
-
|
|
823
|
+
React__default.createElement(
|
|
824
824
|
'a',
|
|
825
825
|
{ rel: 'noopener', href: article.url.current, target: '_blank' },
|
|
826
|
-
article.title &&
|
|
826
|
+
article.title && React__default.createElement(
|
|
827
827
|
'h4',
|
|
828
828
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
829
829
|
article.title
|
|
830
830
|
)
|
|
831
831
|
),
|
|
832
|
-
showPublished && article.published &&
|
|
832
|
+
showPublished && article.published && React__default.createElement(
|
|
833
833
|
'p',
|
|
834
834
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
835
835
|
moment(article.published).format('MMMM DD, YYYY')
|
|
836
836
|
),
|
|
837
|
-
showTimeDiff && article.published &&
|
|
837
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
838
838
|
'p',
|
|
839
839
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
840
840
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -842,20 +842,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
842
842
|
return null;
|
|
843
843
|
}
|
|
844
844
|
if (index === 3) {
|
|
845
|
-
return
|
|
846
|
-
|
|
845
|
+
return React__default.createElement(
|
|
846
|
+
React__default.Fragment,
|
|
847
847
|
null,
|
|
848
|
-
|
|
848
|
+
React__default.createElement(
|
|
849
849
|
'em',
|
|
850
850
|
{ style: { marginRight: '.5rem' } },
|
|
851
851
|
'...'
|
|
852
852
|
)
|
|
853
853
|
);
|
|
854
854
|
}
|
|
855
|
-
return
|
|
856
|
-
|
|
855
|
+
return React__default.createElement(
|
|
856
|
+
React__default.Fragment,
|
|
857
857
|
null,
|
|
858
|
-
|
|
858
|
+
React__default.createElement(
|
|
859
859
|
'em',
|
|
860
860
|
null,
|
|
861
861
|
taxonomy.name
|
|
@@ -865,30 +865,30 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
865
865
|
);
|
|
866
866
|
}),
|
|
867
867
|
' ',
|
|
868
|
-
|
|
868
|
+
React__default.createElement(
|
|
869
869
|
'span',
|
|
870
870
|
{ style: { display: 'inline-block' } },
|
|
871
871
|
timeDifferenceCalc(article.published)
|
|
872
872
|
)
|
|
873
873
|
),
|
|
874
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
874
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
875
875
|
LazyLoad,
|
|
876
876
|
{ height: 50 },
|
|
877
|
-
|
|
877
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
878
878
|
),
|
|
879
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
879
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
880
880
|
'div',
|
|
881
881
|
{ className: 'content-category-label' },
|
|
882
|
-
|
|
882
|
+
React__default.createElement(
|
|
883
883
|
'div',
|
|
884
884
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
885
885
|
article.source
|
|
886
886
|
)
|
|
887
887
|
),
|
|
888
|
-
|
|
888
|
+
React__default.createElement(
|
|
889
889
|
'div',
|
|
890
890
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
891
|
-
showCategory && article.contentCategory &&
|
|
891
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
892
892
|
'p',
|
|
893
893
|
{
|
|
894
894
|
className: 'article-category',
|
|
@@ -902,7 +902,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
902
902
|
} },
|
|
903
903
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
904
904
|
),
|
|
905
|
-
article.issueSection && article.issueSection.name &&
|
|
905
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
906
906
|
'p',
|
|
907
907
|
{
|
|
908
908
|
className: 'issueSection',
|
|
@@ -918,21 +918,21 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
918
918
|
article.issueSection.name
|
|
919
919
|
)
|
|
920
920
|
),
|
|
921
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
921
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
922
922
|
'div',
|
|
923
923
|
{ className: 'pubInfo' },
|
|
924
|
-
article.volume &&
|
|
924
|
+
article.volume && React__default.createElement(
|
|
925
925
|
'p',
|
|
926
926
|
{ className: 'qdeVolume' },
|
|
927
927
|
article.volume
|
|
928
928
|
),
|
|
929
|
-
article.issue &&
|
|
929
|
+
article.issue && React__default.createElement(
|
|
930
930
|
'p',
|
|
931
931
|
{ className: 'qdeIssue' },
|
|
932
932
|
article.issue
|
|
933
933
|
)
|
|
934
934
|
),
|
|
935
|
-
showIntro && article.summary &&
|
|
935
|
+
showIntro && article.summary && React__default.createElement(
|
|
936
936
|
'p',
|
|
937
937
|
{ className: 'pt-2 card-text' },
|
|
938
938
|
clean_html_1(article.summary)
|
|
@@ -942,7 +942,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
942
942
|
)
|
|
943
943
|
);
|
|
944
944
|
} else {
|
|
945
|
-
return
|
|
945
|
+
return React__default.createElement(
|
|
946
946
|
VisibilitySensor,
|
|
947
947
|
{
|
|
948
948
|
key: article._id ? article._id : index,
|
|
@@ -950,51 +950,51 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
950
950
|
onChange: function onChange(isVisible) {
|
|
951
951
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
|
|
952
952
|
} },
|
|
953
|
-
|
|
954
|
-
|
|
953
|
+
React__default.createElement(
|
|
954
|
+
React__default.Fragment,
|
|
955
955
|
null,
|
|
956
|
-
|
|
956
|
+
React__default.createElement(
|
|
957
957
|
Media,
|
|
958
958
|
{
|
|
959
959
|
key: article._id ? article._id : index,
|
|
960
960
|
className: 'feature-media',
|
|
961
961
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
962
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
962
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
963
963
|
'a',
|
|
964
964
|
{ href: article.url.current, className: 'feature-wrapper' },
|
|
965
|
-
|
|
965
|
+
React__default.createElement(
|
|
966
966
|
LazyLoad,
|
|
967
|
-
{ height: imageHeight, placeholder:
|
|
968
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
967
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
968
|
+
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
969
969
|
),
|
|
970
|
-
article.source &&
|
|
970
|
+
article.source && React__default.createElement(
|
|
971
971
|
'div',
|
|
972
972
|
{ className: 'content-category-label' },
|
|
973
|
-
|
|
973
|
+
React__default.createElement(
|
|
974
974
|
'div',
|
|
975
975
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
976
976
|
article.source
|
|
977
977
|
)
|
|
978
978
|
)
|
|
979
979
|
),
|
|
980
|
-
|
|
980
|
+
React__default.createElement(
|
|
981
981
|
Media.Body,
|
|
982
982
|
null,
|
|
983
|
-
|
|
983
|
+
React__default.createElement(
|
|
984
984
|
'a',
|
|
985
985
|
{ href: article.url.current },
|
|
986
|
-
article.title &&
|
|
986
|
+
article.title && React__default.createElement(
|
|
987
987
|
'h4',
|
|
988
988
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
989
989
|
article.title
|
|
990
990
|
)
|
|
991
991
|
),
|
|
992
|
-
showPublished && article.published &&
|
|
992
|
+
showPublished && article.published && React__default.createElement(
|
|
993
993
|
'p',
|
|
994
994
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
995
995
|
moment(article.published).format('MMMM DD, YYYY')
|
|
996
996
|
),
|
|
997
|
-
showTimeDiff && article.published &&
|
|
997
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
998
998
|
'p',
|
|
999
999
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
1000
1000
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -1002,20 +1002,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1002
1002
|
return null;
|
|
1003
1003
|
}
|
|
1004
1004
|
if (index === 3) {
|
|
1005
|
-
return
|
|
1006
|
-
|
|
1005
|
+
return React__default.createElement(
|
|
1006
|
+
React__default.Fragment,
|
|
1007
1007
|
null,
|
|
1008
|
-
|
|
1008
|
+
React__default.createElement(
|
|
1009
1009
|
'em',
|
|
1010
1010
|
{ style: { marginRight: '.5rem' } },
|
|
1011
1011
|
'...'
|
|
1012
1012
|
)
|
|
1013
1013
|
);
|
|
1014
1014
|
}
|
|
1015
|
-
return
|
|
1016
|
-
|
|
1015
|
+
return React__default.createElement(
|
|
1016
|
+
React__default.Fragment,
|
|
1017
1017
|
null,
|
|
1018
|
-
|
|
1018
|
+
React__default.createElement(
|
|
1019
1019
|
'em',
|
|
1020
1020
|
null,
|
|
1021
1021
|
taxonomy.name
|
|
@@ -1025,30 +1025,30 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1025
1025
|
);
|
|
1026
1026
|
}),
|
|
1027
1027
|
' ',
|
|
1028
|
-
|
|
1028
|
+
React__default.createElement(
|
|
1029
1029
|
'span',
|
|
1030
1030
|
{ style: { display: 'inline-block' } },
|
|
1031
1031
|
timeDifferenceCalc(article.published)
|
|
1032
1032
|
)
|
|
1033
1033
|
),
|
|
1034
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
1034
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
1035
1035
|
LazyLoad,
|
|
1036
1036
|
{ height: 50 },
|
|
1037
|
-
|
|
1037
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
1038
1038
|
),
|
|
1039
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
1039
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
1040
1040
|
'div',
|
|
1041
1041
|
{ className: 'content-category-label' },
|
|
1042
|
-
|
|
1042
|
+
React__default.createElement(
|
|
1043
1043
|
'div',
|
|
1044
1044
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
1045
1045
|
article.source
|
|
1046
1046
|
)
|
|
1047
1047
|
),
|
|
1048
|
-
|
|
1048
|
+
React__default.createElement(
|
|
1049
1049
|
'div',
|
|
1050
1050
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
1051
|
-
showCategory && article.contentCategory &&
|
|
1051
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
1052
1052
|
'p',
|
|
1053
1053
|
{
|
|
1054
1054
|
className: 'article-category',
|
|
@@ -1062,7 +1062,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1062
1062
|
} },
|
|
1063
1063
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
1064
1064
|
),
|
|
1065
|
-
article.issueSection && article.issueSection.name &&
|
|
1065
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
1066
1066
|
'p',
|
|
1067
1067
|
{
|
|
1068
1068
|
className: 'issueSection',
|
|
@@ -1078,21 +1078,21 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1078
1078
|
article.issueSection.name
|
|
1079
1079
|
)
|
|
1080
1080
|
),
|
|
1081
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
1081
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
1082
1082
|
'div',
|
|
1083
1083
|
{ className: 'pubInfo' },
|
|
1084
|
-
article.volume &&
|
|
1084
|
+
article.volume && React__default.createElement(
|
|
1085
1085
|
'p',
|
|
1086
1086
|
{ className: 'qdeVolume' },
|
|
1087
1087
|
article.volume
|
|
1088
1088
|
),
|
|
1089
|
-
article.issue &&
|
|
1089
|
+
article.issue && React__default.createElement(
|
|
1090
1090
|
'p',
|
|
1091
1091
|
{ className: 'qdeIssue' },
|
|
1092
1092
|
article.issue
|
|
1093
1093
|
)
|
|
1094
1094
|
),
|
|
1095
|
-
showIntro && article.summary &&
|
|
1095
|
+
showIntro && article.summary && React__default.createElement(
|
|
1096
1096
|
'p',
|
|
1097
1097
|
{ className: 'pt-2 card-text' },
|
|
1098
1098
|
clean_html_1(article.summary)
|
|
@@ -1103,12 +1103,12 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1103
1103
|
);
|
|
1104
1104
|
}
|
|
1105
1105
|
} else if (article._type === 'lg-infeed' && article.adUnit) {
|
|
1106
|
-
return
|
|
1106
|
+
return React__default.createElement(ADlgInfeed, _extends({ index: index }, article));
|
|
1107
1107
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
1108
|
-
return
|
|
1108
|
+
return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
1109
1109
|
}
|
|
1110
1110
|
if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
|
|
1111
|
-
return
|
|
1111
|
+
return React__default.createElement(
|
|
1112
1112
|
VisibilitySensor,
|
|
1113
1113
|
{
|
|
1114
1114
|
key: article._id ? article._id : index,
|
|
@@ -1116,50 +1116,50 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1116
1116
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of artilce only.
|
|
1117
1117
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, article.articleCount ? article.articleCount : index);
|
|
1118
1118
|
} },
|
|
1119
|
-
|
|
1120
|
-
|
|
1119
|
+
React__default.createElement(
|
|
1120
|
+
React__default.Fragment,
|
|
1121
1121
|
null,
|
|
1122
|
-
|
|
1122
|
+
React__default.createElement(
|
|
1123
1123
|
Media,
|
|
1124
1124
|
{
|
|
1125
1125
|
key: article._id ? article._id : index,
|
|
1126
1126
|
style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
1127
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
1127
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
1128
1128
|
'a',
|
|
1129
1129
|
{ href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
|
|
1130
|
-
|
|
1130
|
+
React__default.createElement(
|
|
1131
1131
|
LazyLoad,
|
|
1132
|
-
{ height: imageHeight, placeholder:
|
|
1133
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
1132
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
1133
|
+
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
1134
1134
|
),
|
|
1135
|
-
article.source &&
|
|
1135
|
+
article.source && React__default.createElement(
|
|
1136
1136
|
'div',
|
|
1137
1137
|
{ className: 'content-category-label' },
|
|
1138
|
-
|
|
1138
|
+
React__default.createElement(
|
|
1139
1139
|
'div',
|
|
1140
1140
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
1141
1141
|
article.source
|
|
1142
1142
|
)
|
|
1143
1143
|
)
|
|
1144
1144
|
),
|
|
1145
|
-
|
|
1145
|
+
React__default.createElement(
|
|
1146
1146
|
Media.Body,
|
|
1147
1147
|
null,
|
|
1148
|
-
|
|
1148
|
+
React__default.createElement(
|
|
1149
1149
|
'a',
|
|
1150
1150
|
{ href: mapping[contentCategoryName] + '/' + article.url.current },
|
|
1151
|
-
article.title &&
|
|
1151
|
+
article.title && React__default.createElement(
|
|
1152
1152
|
'h4',
|
|
1153
1153
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
1154
1154
|
article.title
|
|
1155
1155
|
)
|
|
1156
1156
|
),
|
|
1157
|
-
showPublished && article.published &&
|
|
1157
|
+
showPublished && article.published && React__default.createElement(
|
|
1158
1158
|
'p',
|
|
1159
1159
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
1160
1160
|
moment(article.published).format('MMMM DD, YYYY')
|
|
1161
1161
|
),
|
|
1162
|
-
showTimeDiff && article.published &&
|
|
1162
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
1163
1163
|
'p',
|
|
1164
1164
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
1165
1165
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -1167,20 +1167,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1167
1167
|
return null;
|
|
1168
1168
|
}
|
|
1169
1169
|
if (index === 3) {
|
|
1170
|
-
return
|
|
1171
|
-
|
|
1170
|
+
return React__default.createElement(
|
|
1171
|
+
React__default.Fragment,
|
|
1172
1172
|
null,
|
|
1173
|
-
|
|
1173
|
+
React__default.createElement(
|
|
1174
1174
|
'em',
|
|
1175
1175
|
{ style: { marginRight: '.5rem' } },
|
|
1176
1176
|
'...'
|
|
1177
1177
|
)
|
|
1178
1178
|
);
|
|
1179
1179
|
}
|
|
1180
|
-
return
|
|
1181
|
-
|
|
1180
|
+
return React__default.createElement(
|
|
1181
|
+
React__default.Fragment,
|
|
1182
1182
|
null,
|
|
1183
|
-
|
|
1183
|
+
React__default.createElement(
|
|
1184
1184
|
'em',
|
|
1185
1185
|
null,
|
|
1186
1186
|
taxonomy.name
|
|
@@ -1190,34 +1190,34 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1190
1190
|
);
|
|
1191
1191
|
}),
|
|
1192
1192
|
' ',
|
|
1193
|
-
|
|
1193
|
+
React__default.createElement(
|
|
1194
1194
|
'span',
|
|
1195
1195
|
{ style: { display: 'inline-block' } },
|
|
1196
1196
|
timeDifferenceCalc(article.published)
|
|
1197
1197
|
)
|
|
1198
1198
|
),
|
|
1199
|
-
|
|
1199
|
+
React__default.createElement(
|
|
1200
1200
|
'div',
|
|
1201
1201
|
{ className: 'author-sec', style: { lineHeight: 1.5 } },
|
|
1202
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
1202
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
1203
1203
|
LazyLoad,
|
|
1204
1204
|
{ height: 50 },
|
|
1205
|
-
|
|
1205
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
1206
1206
|
)
|
|
1207
1207
|
),
|
|
1208
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
1208
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
1209
1209
|
'div',
|
|
1210
1210
|
{ className: 'content-category-label' },
|
|
1211
|
-
|
|
1211
|
+
React__default.createElement(
|
|
1212
1212
|
'div',
|
|
1213
1213
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
1214
1214
|
article.source
|
|
1215
1215
|
)
|
|
1216
1216
|
),
|
|
1217
|
-
|
|
1217
|
+
React__default.createElement(
|
|
1218
1218
|
'div',
|
|
1219
1219
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
1220
|
-
showCategory && article.contentCategory &&
|
|
1220
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
1221
1221
|
'p',
|
|
1222
1222
|
{
|
|
1223
1223
|
className: 'article-category',
|
|
@@ -1231,7 +1231,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1231
1231
|
} },
|
|
1232
1232
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
1233
1233
|
),
|
|
1234
|
-
article.issueSection && article.issueSection.name &&
|
|
1234
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
1235
1235
|
'p',
|
|
1236
1236
|
{
|
|
1237
1237
|
className: 'issueSection',
|
|
@@ -1247,50 +1247,50 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1247
1247
|
article.issueSection.name
|
|
1248
1248
|
)
|
|
1249
1249
|
),
|
|
1250
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
1250
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
1251
1251
|
'div',
|
|
1252
1252
|
{ className: 'pubInfo' },
|
|
1253
|
-
article.volume &&
|
|
1253
|
+
article.volume && React__default.createElement(
|
|
1254
1254
|
'p',
|
|
1255
1255
|
{ className: 'qdeVolume' },
|
|
1256
1256
|
article.volume
|
|
1257
1257
|
),
|
|
1258
|
-
article.issue &&
|
|
1258
|
+
article.issue && React__default.createElement(
|
|
1259
1259
|
'p',
|
|
1260
1260
|
{ className: 'qdeIssue' },
|
|
1261
1261
|
article.issue
|
|
1262
1262
|
)
|
|
1263
1263
|
),
|
|
1264
|
-
showIntro && article.summary &&
|
|
1264
|
+
showIntro && article.summary && React__default.createElement(
|
|
1265
1265
|
'p',
|
|
1266
1266
|
{ className: 'pt-2 card-text' },
|
|
1267
1267
|
clean_html_1(article.summary)
|
|
1268
1268
|
)
|
|
1269
1269
|
)
|
|
1270
1270
|
),
|
|
1271
|
-
|
|
1271
|
+
React__default.createElement(
|
|
1272
1272
|
'div',
|
|
1273
1273
|
null,
|
|
1274
|
-
|
|
1274
|
+
main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
|
|
1275
1275
|
)
|
|
1276
1276
|
)
|
|
1277
1277
|
);
|
|
1278
1278
|
} else return null;
|
|
1279
1279
|
})
|
|
1280
|
-
) :
|
|
1280
|
+
) : React__default.createElement(
|
|
1281
1281
|
'div',
|
|
1282
1282
|
null,
|
|
1283
|
-
|
|
1283
|
+
React__default.createElement(
|
|
1284
1284
|
'h5',
|
|
1285
1285
|
null,
|
|
1286
|
-
|
|
1286
|
+
React__default.createElement(
|
|
1287
1287
|
'em',
|
|
1288
1288
|
null,
|
|
1289
1289
|
'New content coming soon, please check back later.'
|
|
1290
1290
|
)
|
|
1291
1291
|
)
|
|
1292
1292
|
),
|
|
1293
|
-
|
|
1293
|
+
React__default.createElement(
|
|
1294
1294
|
'style',
|
|
1295
1295
|
{ jsx: 'true' },
|
|
1296
1296
|
'\n .displayLabelThumb {\n margin: 0 auto;\n margin-top: -1.25rem;\n background-color: white;\n position: relative;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n width: fit-content;\n width: -moz-fit-content;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n .feature-media > .media-body {\n -webkit-box-flex: none;\n -ms-flex: none;\n flex: none;\n }\n .img-wrapper img {\n max-height: 240px;\n height: auto;\n width: 100%;\n object-fit: contain;\n }\n .feature-wrapper {\n height: 100%;\n width: 100%;\n }\n .feature-wrapper img {\n width: 100%;\n margin-bottom: 1em;\n }\n @media only screen and (min-width: 768px) {\n .img-wrapper > img {\n padding-right: 1em;\n }\n }\n @media only screen and (max-width: 767px) {\n .sanityDisplayLabel {\n max-width: 100%;\n }\n .img-wrapper {\n width: 100%;\n }\n .img-wrapper img {\n padding-bottom: 1em;\n }\n .media {\n flex-direction: column !important;\n }\n }\n '
|
|
@@ -1299,11 +1299,11 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1299
1299
|
};
|
|
1300
1300
|
|
|
1301
1301
|
var ImagePlaceholder = function ImagePlaceholder() {
|
|
1302
|
-
return
|
|
1303
|
-
|
|
1302
|
+
return React__default.createElement(
|
|
1303
|
+
React__default.Fragment,
|
|
1304
1304
|
null,
|
|
1305
|
-
|
|
1306
|
-
|
|
1305
|
+
React__default.createElement('div', { className: 'queuedeck-exp-image-placeholder' }),
|
|
1306
|
+
React__default.createElement(
|
|
1307
1307
|
'style',
|
|
1308
1308
|
{ jsx: 'true' },
|
|
1309
1309
|
'\n .queuedeck-exp-image-placeholder {\n width: 240px;\n height: 0;\n padding-top: calc(240px * 9 / 16);\n margin: 0 1rem 0 0;\n }\n @media only screen and (max-width: 767px) {\n .queuedeck-exp-image-placeholder {\n width: 100%;\n height: 0;\n padding-top: calc(100% * 9 / 16);\n margin: 0 0 1rem 0;\n }\n }\n '
|
|
@@ -1313,7 +1313,7 @@ var ImagePlaceholder = function ImagePlaceholder() {
|
|
|
1313
1313
|
|
|
1314
1314
|
var renderMobileAd = function renderMobileAd(index, numberOfItemsBeforeAd, rightItems) {
|
|
1315
1315
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
1316
|
-
return
|
|
1316
|
+
return React__default.createElement(
|
|
1317
1317
|
'div',
|
|
1318
1318
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
1319
1319
|
rightItems[i].component
|
|
@@ -1418,15 +1418,15 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1418
1418
|
return null;
|
|
1419
1419
|
}
|
|
1420
1420
|
|
|
1421
|
-
return
|
|
1421
|
+
return React__default.createElement(
|
|
1422
1422
|
'div',
|
|
1423
1423
|
{ className: 'd-flex justify-content-between' },
|
|
1424
|
-
currentPage && currentPage > 1 &&
|
|
1424
|
+
currentPage && currentPage > 1 && React__default.createElement(
|
|
1425
1425
|
'a',
|
|
1426
1426
|
{ href: '?page=' + (currentPage - 1) },
|
|
1427
1427
|
'<< Previous'
|
|
1428
1428
|
),
|
|
1429
|
-
|
|
1429
|
+
React__default.createElement(
|
|
1430
1430
|
'a',
|
|
1431
1431
|
{ href: '?page=' + (currentPage + 1) },
|
|
1432
1432
|
'Next >>'
|
|
@@ -1473,40 +1473,40 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1473
1473
|
// }
|
|
1474
1474
|
// }
|
|
1475
1475
|
|
|
1476
|
-
return
|
|
1476
|
+
return React__default.createElement(
|
|
1477
1477
|
'div',
|
|
1478
1478
|
null,
|
|
1479
|
-
autoScroll ?
|
|
1480
|
-
|
|
1479
|
+
autoScroll ? React__default.createElement(
|
|
1480
|
+
React__default.Fragment,
|
|
1481
1481
|
null,
|
|
1482
|
-
|
|
1482
|
+
React__default.createElement(
|
|
1483
1483
|
InfiniteScroll,
|
|
1484
1484
|
{ dataLength: data && data.length, next: function next() {
|
|
1485
1485
|
return loadMore(values, setValues, itemsPerPage);
|
|
1486
1486
|
}, hasMore: scrolling, scrollThreshold: 0.9 },
|
|
1487
|
-
|
|
1487
|
+
React__default.createElement(
|
|
1488
1488
|
Container,
|
|
1489
1489
|
null,
|
|
1490
1490
|
cardLoader(data, client, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, imageMaxHeight, imageFit, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies, showIntro)
|
|
1491
1491
|
)
|
|
1492
1492
|
),
|
|
1493
|
-
|
|
1493
|
+
React__default.createElement(
|
|
1494
1494
|
'noscript',
|
|
1495
1495
|
null,
|
|
1496
1496
|
renderManualPagination(currentPage)
|
|
1497
1497
|
)
|
|
1498
|
-
) :
|
|
1499
|
-
|
|
1498
|
+
) : React__default.createElement(
|
|
1499
|
+
React__default.Fragment,
|
|
1500
1500
|
null,
|
|
1501
|
-
|
|
1501
|
+
React__default.createElement(
|
|
1502
1502
|
Container,
|
|
1503
1503
|
null,
|
|
1504
1504
|
cardLoader(data, client, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, imageMaxHeight, imageFit, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies, showIntro)
|
|
1505
1505
|
),
|
|
1506
|
-
|
|
1506
|
+
React__default.createElement(
|
|
1507
1507
|
'div',
|
|
1508
1508
|
{ style: { padding: '0px 10px' } },
|
|
1509
|
-
scrolling ?
|
|
1509
|
+
scrolling ? React__default.createElement(
|
|
1510
1510
|
'button',
|
|
1511
1511
|
{
|
|
1512
1512
|
className: 'load-more-btn',
|
|
@@ -1515,17 +1515,17 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1515
1515
|
loadMore(values, setValues, itemsPerPage);
|
|
1516
1516
|
} },
|
|
1517
1517
|
'Load More'
|
|
1518
|
-
) :
|
|
1518
|
+
) : React__default.createElement(
|
|
1519
1519
|
'p',
|
|
1520
1520
|
{ style: { textAlign: 'center' } },
|
|
1521
|
-
|
|
1521
|
+
React__default.createElement(
|
|
1522
1522
|
'b',
|
|
1523
1523
|
null,
|
|
1524
1524
|
'End of data'
|
|
1525
1525
|
)
|
|
1526
1526
|
)
|
|
1527
1527
|
),
|
|
1528
|
-
|
|
1528
|
+
React__default.createElement(
|
|
1529
1529
|
'noscript',
|
|
1530
1530
|
null,
|
|
1531
1531
|
renderManualPagination(currentPage)
|