@mjhls/mjh-framework 1.0.689 → 1.0.690
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 +172 -172
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +24 -23
- package/dist/cjs/AD300x250x600.js +24 -23
- package/dist/cjs/AD728x90.js +27 -26
- package/dist/cjs/ADFloatingFooter.js +29 -28
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +26 -25
- package/dist/cjs/{ADInfeed-3410ab3c.js → ADInfeed-ba531ca6.js} +13 -11
- package/dist/cjs/ADSkyscraper.js +26 -25
- package/dist/cjs/ADSponsoredResources.js +26 -25
- package/dist/cjs/ADWebcast.js +26 -25
- package/dist/cjs/ADWelcome.js +30 -29
- package/dist/cjs/{ADlgInfeed-845aac15.js → ADlgInfeed-b0cc0e88.js} +9 -8
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +30 -29
- package/dist/cjs/AdSlotsProvider.js +7 -6
- package/dist/cjs/AlphabeticList.js +25 -24
- package/dist/cjs/ArticleCarousel.js +22 -21
- package/dist/cjs/ArticleSeriesListing.js +58 -57
- package/dist/cjs/Auth.js +793 -557
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-98ebefa4.js} +14 -13
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-88f69acd.js → BlockContent-bbc3be61.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/BrowseVideosListing.js +28 -27
- package/dist/cjs/CMEDeck.js +77 -77
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +35 -32
- package/dist/cjs/Column3.js +57 -54
- package/dist/cjs/ConferenceArticleCard.js +38 -37
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +106 -102
- package/dist/cjs/DeckQueue.js +90 -86
- package/dist/cjs/{Dfp-b2bc3b97.js → Dfp-76acc8c2.js} +31 -30
- package/dist/cjs/EventsDeck.js +153 -146
- package/dist/cjs/ExternalResources.js +73 -72
- package/dist/cjs/Feature.js +27 -25
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +180 -176
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +50 -49
- package/dist/cjs/HamMagazine.js +144 -139
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/IssueContentDeck.js +77 -72
- package/dist/cjs/IssueDeck.js +75 -70
- package/dist/cjs/IssueLanding.js +70 -69
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +37 -35
- package/dist/cjs/MasterDeck.js +81 -80
- package/dist/cjs/NavDvm.js +80 -75
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +153 -148
- package/dist/cjs/NavNative.js +128 -120
- package/dist/cjs/NavNormal.js +53 -48
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +67 -66
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +1302 -104
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PublicationDeck.js +66 -61
- package/dist/cjs/PublicationLanding.js +98 -94
- package/dist/cjs/QueueDeckExpanded.js +292 -292
- package/dist/cjs/RecentNews.js +24 -23
- package/dist/cjs/RelatedContent.js +53 -52
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +22 -18
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +38 -37
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-6b5e5b47.js → SocialSearchComponent-de064e93.js} +38 -34
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +62 -57
- package/dist/cjs/TemplateNormal.js +72 -71
- package/dist/cjs/ThumbnailCard.js +22 -20
- package/dist/cjs/Ustream.js +27 -26
- package/dist/cjs/VerticalHero.js +18 -17
- package/dist/cjs/VideoSeriesCard.js +34 -33
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesListing.js +72 -71
- package/dist/cjs/View.js +238 -235
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +69 -68
- package/dist/cjs/{_is-array-754e012d.js → _is-array-b1090e3d.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-8decaf0f.js} +2 -2
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-b69cab35.js} +1 -1
- package/dist/cjs/{_set-species-f92c67c5.js → _set-species-5c9fd235.js} +4 -4
- package/dist/cjs/{_to-object-329a650b.js → _to-object-e2d5cc9d.js} +3 -3
- package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-a855b820.js} +6 -6
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-bf3fde8c.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-1d75ae0f.js} +1 -1
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-16bd5829.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-e3ce14ae.js} +1 -1
- package/dist/cjs/{extends-60837c34.js → extends-a9da965c.js} +1 -1
- package/dist/cjs/getRelatedArticle.js +424 -13
- package/dist/cjs/getSerializers.js +39 -39
- package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-d8df2f51.js} +11 -11
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-b5eb3ff8.js → index-10185024.js} +3 -3
- package/dist/cjs/{index-2d0a4911.js → index-5ad2b070.js} +12 -11
- package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
- package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index-44c25825.js → index-e1d6c590.js} +427 -417
- package/dist/cjs/{index.es-ab3f2690.js → index.es-f3e47207.js} +28 -11
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-876ca9ff.js → index.esm-61650d1a.js} +5 -12
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/index.js +126 -127
- package/dist/cjs/{inherits-513d81cd.js → inherits-3affeccb.js} +8 -8
- package/dist/cjs/{keys-a586b7a0.js → keys-218a754a.js} +2 -2
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-b6c96c8d.js → main-df97bfe9.js} +84 -79
- package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5b1b0ed8.js} +4 -4
- package/dist/cjs/{smoothscroll-95231a70.js → smoothscroll-1abb448e.js} +1 -1
- package/dist/cjs/{stringify-7c5aff47.js → stringify-4f757ee6.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-57153848.js} +4 -4
- package/dist/cjs/{typeof-725500bc.js → typeof-c69a5548.js} +6 -6
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-0ffca19f.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +20 -20
- package/dist/esm/AD300x250x600.js +20 -20
- package/dist/esm/AD728x90.js +23 -23
- package/dist/esm/ADFloatingFooter.js +25 -25
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +22 -22
- package/dist/esm/{ADInfeed-205cb7a9.js → ADInfeed-45191cf8.js} +7 -7
- package/dist/esm/ADSkyscraper.js +22 -22
- package/dist/esm/ADSponsoredResources.js +22 -22
- package/dist/esm/ADWebcast.js +22 -22
- package/dist/esm/ADWelcome.js +26 -26
- package/dist/esm/{ADlgInfeed-e538f17a.js → ADlgInfeed-1f8fc733.js} +6 -6
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +21 -21
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +18 -18
- package/dist/esm/ArticleSeriesListing.js +52 -52
- package/dist/esm/Auth.js +775 -543
- package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-30ec92a8.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-a614acdf.js → BlockContent-c5de3044.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/BrowseVideosListing.js +24 -24
- package/dist/esm/CMEDeck.js +73 -73
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +47 -47
- package/dist/esm/ConferenceArticleCard.js +33 -33
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +84 -84
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-8a8fca18.js → Dfp-8b5b19d0.js} +20 -20
- package/dist/esm/EventsDeck.js +99 -99
- package/dist/esm/ExternalResources.js +66 -66
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +138 -138
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +113 -113
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +66 -66
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +31 -31
- package/dist/esm/MasterDeck.js +74 -74
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +124 -124
- package/dist/esm/NavNative.js +98 -98
- package/dist/esm/NavNormal.js +36 -36
- package/dist/esm/OncliveHero.js +16 -17
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +1296 -100
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +75 -75
- package/dist/esm/QueueDeckExpanded.js +272 -272
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +47 -47
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +33 -33
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-7f14e0f3.js → SocialSearchComponent-cddc9ce1.js} +26 -26
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TemplateNormal.js +65 -65
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesListing.js +65 -65
- package/dist/esm/View.js +224 -225
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +53 -53
- package/dist/esm/{_is-array-49698029.js → _is-array-ffa65b7e.js} +6 -6
- package/dist/esm/{_iter-detect-59409a32.js → _iter-detect-256a4d61.js} +2 -2
- package/dist/esm/{_object-sap-4d59d5bd.js → _object-sap-0cecd031.js} +1 -1
- package/dist/esm/{_set-species-cede29f8.js → _set-species-09ba387c.js} +4 -4
- package/dist/esm/{_to-object-ded78eb9.js → _to-object-ee10dabb.js} +4 -4
- package/dist/esm/{asyncToGenerator-7c654f36.js → asyncToGenerator-b0af4000.js} +6 -6
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
- package/dist/esm/{core.get-iterator-method-54d2e411.js → core.get-iterator-method-0e6dc181.js} +2 -2
- package/dist/esm/{define-property-de3fc946.js → define-property-e013aae3.js} +1 -1
- package/dist/esm/{defineProperty-b798470d.js → defineProperty-2385da87.js} +1 -1
- package/dist/esm/{es6.string.iterator-9b2af4a5.js → es6.string.iterator-c5179428.js} +2 -2
- package/dist/esm/{extends-cc5da797.js → extends-03593dc6.js} +1 -1
- package/dist/esm/getRelatedArticle.js +424 -13
- package/dist/esm/getSerializers.js +39 -39
- package/dist/esm/{getTargeting-2acdec91.js → getTargeting-60717d7f.js} +11 -11
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-51a80699.js → index-4de5c15f.js} +3 -3
- package/dist/esm/{index-93ec3c59.js → index-669ff425.js} +6 -6
- package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
- package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
- package/dist/esm/{index-8a757d91.js → index-cbd95715.js} +373 -369
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index.es-938a3a58.js → index.es-c6222053.js} +25 -9
- package/dist/esm/{index.esm-85cb09e6.js → index.esm-79385203.js} +5 -12
- package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +104 -105
- package/dist/esm/{inherits-7ee3e0c1.js → inherits-d88f5b29.js} +5 -5
- package/dist/esm/{keys-fc2d4c34.js → keys-618df59d.js} +2 -2
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-0465b2a0.js → main-a2443735.js} +84 -80
- package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
- package/dist/esm/{slicedToArray-7021e5df.js → slicedToArray-648674b3.js} +4 -4
- package/dist/esm/{smoothscroll-4b699764.js → smoothscroll-ab6e0238.js} +1 -1
- package/dist/esm/{stringify-008c8802.js → stringify-7c97a94d.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-725434a0.js → toConsumableArray-aa76a4fe.js} +4 -4
- package/dist/esm/{typeof-08f2c380.js → typeof-5c759779.js} +6 -6
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/dist/esm/{web.dom.iterable-8956f9a5.js → web.dom.iterable-de3b4afb.js} +3 -3
- package/package.json +107 -107
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
|
@@ -1,42 +1,42 @@
|
|
|
1
|
+
import { _ as _slicedToArray } from './slicedToArray-648674b3.js';
|
|
2
|
+
import { _ as _toConsumableArray } from './toConsumableArray-aa76a4fe.js';
|
|
3
|
+
import { _ as _extends } from './extends-03593dc6.js';
|
|
4
|
+
import React, { useEffect, useState, useRef } from 'react';
|
|
5
|
+
import { Container, Media } from 'react-bootstrap';
|
|
6
|
+
import { i as imageUrlBuilder } from './index-4de5c15f.js';
|
|
7
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
8
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
9
|
+
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
10
|
+
import { l as lib_3 } from './index-669ff425.js';
|
|
11
|
+
import { useRouter } from 'next/router';
|
|
12
|
+
import { L as LazyLoad } from './index-752d1dae.js';
|
|
13
|
+
import { m as main_40 } from './main-a2443735.js';
|
|
14
|
+
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
15
|
+
import { A as ADInfeed } from './ADInfeed-45191cf8.js';
|
|
16
|
+
import { A as AuthorComponent } from './AuthorComponent-30ec92a8.js';
|
|
17
|
+
import { l as lodash } from './lodash-ec8c6b48.js';
|
|
18
|
+
import { A as ADlgInfeed } from './ADlgInfeed-1f8fc733.js';
|
|
19
|
+
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
20
|
+
import timeDifferenceCalc from './timeDifferenceCalc.js';
|
|
1
21
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './es6.string.iterator-
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
6
|
-
import
|
|
7
|
-
import './core.get-iterator-method-54d2e411.js';
|
|
22
|
+
import './web.dom.iterable-de3b4afb.js';
|
|
23
|
+
import './es6.string.iterator-c5179428.js';
|
|
24
|
+
import './_to-object-ee10dabb.js';
|
|
25
|
+
import './core.get-iterator-method-0e6dc181.js';
|
|
26
|
+
import './_iter-detect-256a4d61.js';
|
|
8
27
|
import './_object-pie-71ac75a4.js';
|
|
9
|
-
import
|
|
10
|
-
import './web.dom.iterable-8956f9a5.js';
|
|
11
|
-
import React__default, { useEffect, useState, useRef } from 'react';
|
|
12
|
-
import { l as lib_3 } from './index-93ec3c59.js';
|
|
28
|
+
import 'react-dom';
|
|
13
29
|
import 'prop-types';
|
|
30
|
+
import './stringify-7c97a94d.js';
|
|
14
31
|
import 'react-bootstrap/Card';
|
|
15
|
-
import
|
|
16
|
-
import { useRouter } from 'next/router';
|
|
17
|
-
import './isSymbol-807e927e.js';
|
|
32
|
+
import './AdSlot.js';
|
|
18
33
|
import './debounce-1a993acf.js';
|
|
19
|
-
import
|
|
20
|
-
import 'react-dom';
|
|
21
|
-
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
22
|
-
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
23
|
-
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
24
|
-
import { m as main_39 } from './main-0465b2a0.js';
|
|
25
|
-
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
26
|
-
import './stringify-008c8802.js';
|
|
27
|
-
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
28
|
-
import './asyncToGenerator-7c654f36.js';
|
|
29
|
-
import './_set-species-cede29f8.js';
|
|
30
|
-
import './Segment.js';
|
|
34
|
+
import './isSymbol-807e927e.js';
|
|
31
35
|
import './Beam.js';
|
|
32
|
-
import './
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
37
|
-
import { A as AuthorComponent } from './AuthorComponent-00f13201.js';
|
|
38
|
-
import { Container, Media } from 'react-bootstrap';
|
|
39
|
-
import timeDifferenceCalc from './timeDifferenceCalc.js';
|
|
36
|
+
import './asyncToGenerator-b0af4000.js';
|
|
37
|
+
import './_library-528f1934.js';
|
|
38
|
+
import './_set-species-09ba387c.js';
|
|
39
|
+
import './Segment.js';
|
|
40
40
|
|
|
41
41
|
var urlFor = function urlFor(source, builder) {
|
|
42
42
|
return builder.image(source).auto('format');
|
|
@@ -246,7 +246,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
246
246
|
});
|
|
247
247
|
|
|
248
248
|
var featureCount = 0;
|
|
249
|
-
return
|
|
249
|
+
return React.createElement(
|
|
250
250
|
'div',
|
|
251
251
|
null,
|
|
252
252
|
data && data.length > 0 ? dataRemapped ? // For Javascript Enabled Cases
|
|
@@ -257,7 +257,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
257
257
|
if (article._type === 'feature') {
|
|
258
258
|
featureCount++;
|
|
259
259
|
if (article.blank || checkExternalUrl(article.url.current)) {
|
|
260
|
-
return
|
|
260
|
+
return React.createElement(
|
|
261
261
|
VisibilitySensor,
|
|
262
262
|
{
|
|
263
263
|
key: article._id ? article._id : index,
|
|
@@ -265,51 +265,51 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
265
265
|
onChange: function onChange(isVisible) {
|
|
266
266
|
isVisible && changePageNumber(1, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, index);
|
|
267
267
|
} },
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
React.createElement(
|
|
269
|
+
React.Fragment,
|
|
270
270
|
null,
|
|
271
|
-
|
|
271
|
+
React.createElement(
|
|
272
272
|
Media,
|
|
273
273
|
{
|
|
274
274
|
key: article._id ? article._id : index,
|
|
275
275
|
className: 'feature-media',
|
|
276
276
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
277
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
277
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React.createElement(
|
|
278
278
|
'a',
|
|
279
279
|
{ rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
280
|
-
|
|
280
|
+
React.createElement(
|
|
281
281
|
LazyLoad,
|
|
282
|
-
{ height: imageHeight, placeholder:
|
|
283
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
282
|
+
{ height: imageHeight, placeholder: React.createElement(ImagePlaceholder, null) },
|
|
283
|
+
article.thumbnail && article.thumbnail.asset ? React.createElement('img', { className: 'img-fluid', src: renderCardImage(article, builder, imageHeight, imageWidth), alt: article.title }) : article.thumbnail ? React.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
284
284
|
),
|
|
285
|
-
article.source &&
|
|
285
|
+
article.source && React.createElement(
|
|
286
286
|
'div',
|
|
287
287
|
{ className: 'content-category-label' },
|
|
288
|
-
|
|
288
|
+
React.createElement(
|
|
289
289
|
'div',
|
|
290
290
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
291
291
|
article.source
|
|
292
292
|
)
|
|
293
293
|
)
|
|
294
294
|
),
|
|
295
|
-
|
|
295
|
+
React.createElement(
|
|
296
296
|
Media.Body,
|
|
297
297
|
null,
|
|
298
|
-
|
|
298
|
+
React.createElement(
|
|
299
299
|
'a',
|
|
300
300
|
{ rel: 'noopener', href: article.url.current, target: '_blank' },
|
|
301
|
-
article.title &&
|
|
301
|
+
article.title && React.createElement(
|
|
302
302
|
'h4',
|
|
303
303
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
304
304
|
article.title
|
|
305
305
|
)
|
|
306
306
|
),
|
|
307
|
-
showPublished && !showTimeDiff && article.published &&
|
|
307
|
+
showPublished && !showTimeDiff && article.published && React.createElement(
|
|
308
308
|
'p',
|
|
309
309
|
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
310
310
|
moment(article.published).format('MMMM DD, YYYY')
|
|
311
311
|
),
|
|
312
|
-
showTimeDiff && article.published &&
|
|
312
|
+
showTimeDiff && article.published && React.createElement(
|
|
313
313
|
'p',
|
|
314
314
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
315
315
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -317,20 +317,20 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
317
317
|
return null;
|
|
318
318
|
}
|
|
319
319
|
if (index === 3) {
|
|
320
|
-
return
|
|
321
|
-
|
|
320
|
+
return React.createElement(
|
|
321
|
+
React.Fragment,
|
|
322
322
|
null,
|
|
323
|
-
|
|
323
|
+
React.createElement(
|
|
324
324
|
'em',
|
|
325
325
|
{ style: { marginRight: '.5rem' } },
|
|
326
326
|
'...'
|
|
327
327
|
)
|
|
328
328
|
);
|
|
329
329
|
}
|
|
330
|
-
return
|
|
331
|
-
|
|
330
|
+
return React.createElement(
|
|
331
|
+
React.Fragment,
|
|
332
332
|
null,
|
|
333
|
-
|
|
333
|
+
React.createElement(
|
|
334
334
|
'em',
|
|
335
335
|
null,
|
|
336
336
|
taxonomy.name
|
|
@@ -340,30 +340,30 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
340
340
|
);
|
|
341
341
|
}),
|
|
342
342
|
' ',
|
|
343
|
-
|
|
343
|
+
React.createElement(
|
|
344
344
|
'span',
|
|
345
345
|
{ style: { display: 'inline-block' } },
|
|
346
346
|
timeDifferenceCalc(article.published)
|
|
347
347
|
)
|
|
348
348
|
),
|
|
349
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
349
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React.createElement(
|
|
350
350
|
LazyLoad,
|
|
351
351
|
{ height: 50 },
|
|
352
|
-
|
|
352
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
353
353
|
),
|
|
354
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
354
|
+
!article.thumbnail && !defaultImage && article.source && React.createElement(
|
|
355
355
|
'div',
|
|
356
356
|
{ className: 'content-category-label' },
|
|
357
|
-
|
|
357
|
+
React.createElement(
|
|
358
358
|
'div',
|
|
359
359
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
360
360
|
article.source
|
|
361
361
|
)
|
|
362
362
|
),
|
|
363
|
-
|
|
363
|
+
React.createElement(
|
|
364
364
|
'div',
|
|
365
365
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
366
|
-
showCategory && article.contentCategory &&
|
|
366
|
+
showCategory && article.contentCategory && React.createElement(
|
|
367
367
|
'p',
|
|
368
368
|
{
|
|
369
369
|
className: 'article-category',
|
|
@@ -377,7 +377,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
377
377
|
} },
|
|
378
378
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
379
379
|
),
|
|
380
|
-
article.issueSection && article.issueSection.name &&
|
|
380
|
+
article.issueSection && article.issueSection.name && React.createElement(
|
|
381
381
|
'p',
|
|
382
382
|
{
|
|
383
383
|
className: 'issueSection',
|
|
@@ -393,21 +393,21 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
393
393
|
article.issueSection.name
|
|
394
394
|
)
|
|
395
395
|
),
|
|
396
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
396
|
+
showPubInfo && (article.issue || article.volume) && React.createElement(
|
|
397
397
|
'div',
|
|
398
398
|
{ className: 'pubInfo' },
|
|
399
|
-
article.volume &&
|
|
399
|
+
article.volume && React.createElement(
|
|
400
400
|
'p',
|
|
401
401
|
{ className: 'qdeVolume' },
|
|
402
402
|
article.volume
|
|
403
403
|
),
|
|
404
|
-
article.issue &&
|
|
404
|
+
article.issue && React.createElement(
|
|
405
405
|
'p',
|
|
406
406
|
{ className: 'qdeIssue' },
|
|
407
407
|
article.issue
|
|
408
408
|
)
|
|
409
409
|
),
|
|
410
|
-
showIntro && article.summary &&
|
|
410
|
+
showIntro && article.summary && React.createElement(
|
|
411
411
|
'p',
|
|
412
412
|
{ className: 'pt-2 card-text' },
|
|
413
413
|
clean_html_1(article.summary)
|
|
@@ -417,7 +417,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
417
417
|
)
|
|
418
418
|
);
|
|
419
419
|
} else {
|
|
420
|
-
return
|
|
420
|
+
return React.createElement(
|
|
421
421
|
VisibilitySensor,
|
|
422
422
|
{
|
|
423
423
|
key: article._id ? article._id : index,
|
|
@@ -425,51 +425,51 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
425
425
|
onChange: function onChange(isVisible) {
|
|
426
426
|
isVisible && changePageNumber(1, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, index);
|
|
427
427
|
} },
|
|
428
|
-
|
|
429
|
-
|
|
428
|
+
React.createElement(
|
|
429
|
+
React.Fragment,
|
|
430
430
|
null,
|
|
431
|
-
|
|
431
|
+
React.createElement(
|
|
432
432
|
Media,
|
|
433
433
|
{
|
|
434
434
|
key: article._id ? article._id : index,
|
|
435
435
|
className: 'feature-media',
|
|
436
436
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
437
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
437
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React.createElement(
|
|
438
438
|
'a',
|
|
439
439
|
{ href: article.url.current, className: 'feature-wrapper' },
|
|
440
|
-
|
|
440
|
+
React.createElement(
|
|
441
441
|
LazyLoad,
|
|
442
|
-
{ height: imageHeight, placeholder:
|
|
443
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
442
|
+
{ height: imageHeight, placeholder: React.createElement(ImagePlaceholder, null) },
|
|
443
|
+
article.thumbnail && article.thumbnail.asset ? React.createElement('img', { className: 'img-fluid', src: renderCardImage(article, builder, imageHeight, imageWidth), alt: article.title }) : article.thumbnail ? React.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
444
444
|
),
|
|
445
|
-
article.source &&
|
|
445
|
+
article.source && React.createElement(
|
|
446
446
|
'div',
|
|
447
447
|
{ className: 'content-category-label' },
|
|
448
|
-
|
|
448
|
+
React.createElement(
|
|
449
449
|
'div',
|
|
450
450
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
451
451
|
article.source
|
|
452
452
|
)
|
|
453
453
|
)
|
|
454
454
|
),
|
|
455
|
-
|
|
455
|
+
React.createElement(
|
|
456
456
|
Media.Body,
|
|
457
457
|
null,
|
|
458
|
-
|
|
458
|
+
React.createElement(
|
|
459
459
|
'a',
|
|
460
460
|
{ href: article.url.current },
|
|
461
|
-
article.title &&
|
|
461
|
+
article.title && React.createElement(
|
|
462
462
|
'h4',
|
|
463
463
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
464
464
|
article.title
|
|
465
465
|
)
|
|
466
466
|
),
|
|
467
|
-
showPublished && !showTimeDiff && article.published &&
|
|
467
|
+
showPublished && !showTimeDiff && article.published && React.createElement(
|
|
468
468
|
'p',
|
|
469
469
|
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
470
470
|
moment(article.published).format('MMMM DD, YYYY')
|
|
471
471
|
),
|
|
472
|
-
showTimeDiff && article.published &&
|
|
472
|
+
showTimeDiff && article.published && React.createElement(
|
|
473
473
|
'p',
|
|
474
474
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
475
475
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -477,10 +477,10 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
477
477
|
return null;
|
|
478
478
|
}
|
|
479
479
|
if (index === 3) {
|
|
480
|
-
return
|
|
481
|
-
|
|
480
|
+
return React.createElement(
|
|
481
|
+
React.Fragment,
|
|
482
482
|
null,
|
|
483
|
-
|
|
483
|
+
React.createElement(
|
|
484
484
|
'em',
|
|
485
485
|
{ style: { marginRight: '.5rem' } },
|
|
486
486
|
'...'
|
|
@@ -488,20 +488,20 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
488
488
|
);
|
|
489
489
|
}
|
|
490
490
|
if (index === 3) {
|
|
491
|
-
return
|
|
492
|
-
|
|
491
|
+
return React.createElement(
|
|
492
|
+
React.Fragment,
|
|
493
493
|
null,
|
|
494
|
-
|
|
494
|
+
React.createElement(
|
|
495
495
|
'em',
|
|
496
496
|
{ style: { marginRight: '.5rem' } },
|
|
497
497
|
'...'
|
|
498
498
|
)
|
|
499
499
|
);
|
|
500
500
|
}
|
|
501
|
-
return
|
|
502
|
-
|
|
501
|
+
return React.createElement(
|
|
502
|
+
React.Fragment,
|
|
503
503
|
null,
|
|
504
|
-
|
|
504
|
+
React.createElement(
|
|
505
505
|
'em',
|
|
506
506
|
null,
|
|
507
507
|
taxonomy.name
|
|
@@ -511,30 +511,30 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
511
511
|
);
|
|
512
512
|
}),
|
|
513
513
|
' ',
|
|
514
|
-
|
|
514
|
+
React.createElement(
|
|
515
515
|
'span',
|
|
516
516
|
{ style: { display: 'inline-block' } },
|
|
517
517
|
timeDifferenceCalc(article.published)
|
|
518
518
|
)
|
|
519
519
|
),
|
|
520
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
520
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React.createElement(
|
|
521
521
|
LazyLoad,
|
|
522
522
|
{ height: 50 },
|
|
523
|
-
|
|
523
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
524
524
|
),
|
|
525
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
525
|
+
!article.thumbnail && !defaultImage && article.source && React.createElement(
|
|
526
526
|
'div',
|
|
527
527
|
{ className: 'content-category-label' },
|
|
528
|
-
|
|
528
|
+
React.createElement(
|
|
529
529
|
'div',
|
|
530
530
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
531
531
|
article.source
|
|
532
532
|
)
|
|
533
533
|
),
|
|
534
|
-
|
|
534
|
+
React.createElement(
|
|
535
535
|
'div',
|
|
536
536
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
537
|
-
showCategory && article.contentCategory &&
|
|
537
|
+
showCategory && article.contentCategory && React.createElement(
|
|
538
538
|
'p',
|
|
539
539
|
{
|
|
540
540
|
className: 'article-category',
|
|
@@ -548,7 +548,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
548
548
|
} },
|
|
549
549
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
550
550
|
),
|
|
551
|
-
article.issueSection && article.issueSection.name &&
|
|
551
|
+
article.issueSection && article.issueSection.name && React.createElement(
|
|
552
552
|
'p',
|
|
553
553
|
{
|
|
554
554
|
className: 'issueSection',
|
|
@@ -564,21 +564,21 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
564
564
|
article.issueSection.name
|
|
565
565
|
)
|
|
566
566
|
),
|
|
567
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
567
|
+
showPubInfo && (article.issue || article.volume) && React.createElement(
|
|
568
568
|
'div',
|
|
569
569
|
{ className: 'pubInfo' },
|
|
570
|
-
article.volume &&
|
|
570
|
+
article.volume && React.createElement(
|
|
571
571
|
'p',
|
|
572
572
|
{ className: 'qdeVolume' },
|
|
573
573
|
article.volume
|
|
574
574
|
),
|
|
575
|
-
article.issue &&
|
|
575
|
+
article.issue && React.createElement(
|
|
576
576
|
'p',
|
|
577
577
|
{ className: 'qdeIssue' },
|
|
578
578
|
article.issue
|
|
579
579
|
)
|
|
580
580
|
),
|
|
581
|
-
showIntro && article.summary &&
|
|
581
|
+
showIntro && article.summary && React.createElement(
|
|
582
582
|
'p',
|
|
583
583
|
{ className: 'pt-2 card-text' },
|
|
584
584
|
clean_html_1(article.summary)
|
|
@@ -589,12 +589,12 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
589
589
|
);
|
|
590
590
|
}
|
|
591
591
|
} else if (article._type === 'lg-infeed' && article.adUnit) {
|
|
592
|
-
return
|
|
592
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, article));
|
|
593
593
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
594
|
-
return
|
|
594
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
595
595
|
}
|
|
596
596
|
if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
|
|
597
|
-
return
|
|
597
|
+
return React.createElement(
|
|
598
598
|
VisibilitySensor,
|
|
599
599
|
{
|
|
600
600
|
key: article._id ? article._id : index,
|
|
@@ -602,50 +602,50 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
602
602
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of artilce only.
|
|
603
603
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, article.articleCount ? article.articleCount : index);
|
|
604
604
|
} },
|
|
605
|
-
|
|
606
|
-
|
|
605
|
+
React.createElement(
|
|
606
|
+
React.Fragment,
|
|
607
607
|
null,
|
|
608
|
-
|
|
608
|
+
React.createElement(
|
|
609
609
|
Media,
|
|
610
610
|
{
|
|
611
611
|
key: article._id ? article._id : index,
|
|
612
612
|
style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
613
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
613
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React.createElement(
|
|
614
614
|
'a',
|
|
615
615
|
{ href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
|
|
616
|
-
|
|
616
|
+
React.createElement(
|
|
617
617
|
LazyLoad,
|
|
618
|
-
{ height: imageHeight, placeholder:
|
|
619
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
618
|
+
{ height: imageHeight, placeholder: React.createElement(ImagePlaceholder, null) },
|
|
619
|
+
article.thumbnail && article.thumbnail.asset ? React.createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage(article, builder, imageHeight, imageWidth), alt: article.title }) : article.thumbnail ? React.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
620
620
|
),
|
|
621
|
-
article.source &&
|
|
621
|
+
article.source && React.createElement(
|
|
622
622
|
'div',
|
|
623
623
|
{ className: 'content-category-label' },
|
|
624
|
-
|
|
624
|
+
React.createElement(
|
|
625
625
|
'div',
|
|
626
626
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
627
627
|
article.source
|
|
628
628
|
)
|
|
629
629
|
)
|
|
630
630
|
),
|
|
631
|
-
|
|
631
|
+
React.createElement(
|
|
632
632
|
Media.Body,
|
|
633
633
|
null,
|
|
634
|
-
|
|
634
|
+
React.createElement(
|
|
635
635
|
'a',
|
|
636
636
|
{ href: mapping[contentCategoryName] + '/' + article.url.current },
|
|
637
|
-
article.title &&
|
|
637
|
+
article.title && React.createElement(
|
|
638
638
|
'h4',
|
|
639
639
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
640
640
|
article.title
|
|
641
641
|
)
|
|
642
642
|
),
|
|
643
|
-
showPublished && !showTimeDiff && article.published &&
|
|
643
|
+
showPublished && !showTimeDiff && article.published && React.createElement(
|
|
644
644
|
'p',
|
|
645
645
|
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
646
646
|
moment(article.published).format('MMMM DD, YYYY')
|
|
647
647
|
),
|
|
648
|
-
showTimeDiff && article.published &&
|
|
648
|
+
showTimeDiff && article.published && React.createElement(
|
|
649
649
|
'p',
|
|
650
650
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
651
651
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -653,20 +653,20 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
653
653
|
return null;
|
|
654
654
|
}
|
|
655
655
|
if (index === 3) {
|
|
656
|
-
return
|
|
657
|
-
|
|
656
|
+
return React.createElement(
|
|
657
|
+
React.Fragment,
|
|
658
658
|
null,
|
|
659
|
-
|
|
659
|
+
React.createElement(
|
|
660
660
|
'em',
|
|
661
661
|
{ style: { marginRight: '.5rem' } },
|
|
662
662
|
'...'
|
|
663
663
|
)
|
|
664
664
|
);
|
|
665
665
|
}
|
|
666
|
-
return
|
|
667
|
-
|
|
666
|
+
return React.createElement(
|
|
667
|
+
React.Fragment,
|
|
668
668
|
null,
|
|
669
|
-
|
|
669
|
+
React.createElement(
|
|
670
670
|
'em',
|
|
671
671
|
null,
|
|
672
672
|
taxonomy.name
|
|
@@ -676,34 +676,34 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
676
676
|
);
|
|
677
677
|
}),
|
|
678
678
|
' ',
|
|
679
|
-
|
|
679
|
+
React.createElement(
|
|
680
680
|
'span',
|
|
681
681
|
{ style: { display: 'inline-block' } },
|
|
682
682
|
timeDifferenceCalc(article.published)
|
|
683
683
|
)
|
|
684
684
|
),
|
|
685
|
-
|
|
685
|
+
React.createElement(
|
|
686
686
|
'div',
|
|
687
687
|
{ className: 'author-sec', style: { lineHeight: 1.5 } },
|
|
688
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
688
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React.createElement(
|
|
689
689
|
LazyLoad,
|
|
690
690
|
{ height: 50 },
|
|
691
|
-
|
|
691
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
692
692
|
)
|
|
693
693
|
),
|
|
694
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
694
|
+
!article.thumbnail && !defaultImage && article.source && React.createElement(
|
|
695
695
|
'div',
|
|
696
696
|
{ className: 'content-category-label' },
|
|
697
|
-
|
|
697
|
+
React.createElement(
|
|
698
698
|
'div',
|
|
699
699
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
700
700
|
article.source
|
|
701
701
|
)
|
|
702
702
|
),
|
|
703
|
-
|
|
703
|
+
React.createElement(
|
|
704
704
|
'div',
|
|
705
705
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
706
|
-
showCategory && article.contentCategory &&
|
|
706
|
+
showCategory && article.contentCategory && React.createElement(
|
|
707
707
|
'p',
|
|
708
708
|
{
|
|
709
709
|
className: 'article-category',
|
|
@@ -717,7 +717,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
717
717
|
} },
|
|
718
718
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
719
719
|
),
|
|
720
|
-
article.issueSection && article.issueSection.name &&
|
|
720
|
+
article.issueSection && article.issueSection.name && React.createElement(
|
|
721
721
|
'p',
|
|
722
722
|
{
|
|
723
723
|
className: 'issueSection',
|
|
@@ -733,38 +733,38 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
733
733
|
article.issueSection.name
|
|
734
734
|
)
|
|
735
735
|
),
|
|
736
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
736
|
+
showPubInfo && (article.issue || article.volume) && React.createElement(
|
|
737
737
|
'div',
|
|
738
738
|
{ className: 'pubInfo' },
|
|
739
|
-
article.volume &&
|
|
739
|
+
article.volume && React.createElement(
|
|
740
740
|
'p',
|
|
741
741
|
{ className: 'qdeVolume' },
|
|
742
742
|
article.volume
|
|
743
743
|
),
|
|
744
|
-
article.issue &&
|
|
744
|
+
article.issue && React.createElement(
|
|
745
745
|
'p',
|
|
746
746
|
{ className: 'qdeIssue' },
|
|
747
747
|
article.issue
|
|
748
748
|
)
|
|
749
749
|
),
|
|
750
|
-
showIntro && article.summary &&
|
|
750
|
+
showIntro && article.summary && React.createElement(
|
|
751
751
|
'p',
|
|
752
752
|
{ className: 'pt-2 card-text' },
|
|
753
753
|
clean_html_1(article.summary)
|
|
754
754
|
)
|
|
755
755
|
)
|
|
756
756
|
),
|
|
757
|
-
|
|
757
|
+
React.createElement(
|
|
758
758
|
'div',
|
|
759
759
|
null,
|
|
760
|
-
|
|
760
|
+
main_40 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
|
|
761
761
|
)
|
|
762
762
|
)
|
|
763
763
|
);
|
|
764
764
|
} else return null;
|
|
765
765
|
}) :
|
|
766
766
|
// For Javascript Disabled Cases
|
|
767
|
-
|
|
767
|
+
React.createElement(
|
|
768
768
|
'noscript',
|
|
769
769
|
null,
|
|
770
770
|
data.map(function (article, index) {
|
|
@@ -774,7 +774,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
774
774
|
if (article._type === 'feature') {
|
|
775
775
|
featureCount++;
|
|
776
776
|
if (article.blank || checkExternalUrl(article.url.current)) {
|
|
777
|
-
return
|
|
777
|
+
return React.createElement(
|
|
778
778
|
VisibilitySensor,
|
|
779
779
|
{
|
|
780
780
|
key: article._id ? article._id : index,
|
|
@@ -782,51 +782,51 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
782
782
|
onChange: function onChange(isVisible) {
|
|
783
783
|
isVisible && changePageNumber(1, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, index);
|
|
784
784
|
} },
|
|
785
|
-
|
|
786
|
-
|
|
785
|
+
React.createElement(
|
|
786
|
+
React.Fragment,
|
|
787
787
|
null,
|
|
788
|
-
|
|
788
|
+
React.createElement(
|
|
789
789
|
Media,
|
|
790
790
|
{
|
|
791
791
|
key: article._id ? article._id : index,
|
|
792
792
|
className: 'feature-media',
|
|
793
793
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
794
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
794
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React.createElement(
|
|
795
795
|
'a',
|
|
796
796
|
{ rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
797
|
-
|
|
797
|
+
React.createElement(
|
|
798
798
|
LazyLoad,
|
|
799
|
-
{ height: imageHeight, placeholder:
|
|
800
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
799
|
+
{ height: imageHeight, placeholder: React.createElement(ImagePlaceholder, null) },
|
|
800
|
+
article.thumbnail && article.thumbnail.asset ? React.createElement('img', { className: 'img-fluid', src: renderCardImage(article, builder, imageHeight, imageWidth), alt: article.title }) : article.thumbnail ? React.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
801
801
|
),
|
|
802
|
-
article.source &&
|
|
802
|
+
article.source && React.createElement(
|
|
803
803
|
'div',
|
|
804
804
|
{ className: 'content-category-label' },
|
|
805
|
-
|
|
805
|
+
React.createElement(
|
|
806
806
|
'div',
|
|
807
807
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
808
808
|
article.source
|
|
809
809
|
)
|
|
810
810
|
)
|
|
811
811
|
),
|
|
812
|
-
|
|
812
|
+
React.createElement(
|
|
813
813
|
Media.Body,
|
|
814
814
|
null,
|
|
815
|
-
|
|
815
|
+
React.createElement(
|
|
816
816
|
'a',
|
|
817
817
|
{ rel: 'noopener', href: article.url.current, target: '_blank' },
|
|
818
|
-
article.title &&
|
|
818
|
+
article.title && React.createElement(
|
|
819
819
|
'h4',
|
|
820
820
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
821
821
|
article.title
|
|
822
822
|
)
|
|
823
823
|
),
|
|
824
|
-
showPublished && article.published &&
|
|
824
|
+
showPublished && article.published && React.createElement(
|
|
825
825
|
'p',
|
|
826
826
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
827
827
|
moment(article.published).format('MMMM DD, YYYY')
|
|
828
828
|
),
|
|
829
|
-
showTimeDiff && article.published &&
|
|
829
|
+
showTimeDiff && article.published && React.createElement(
|
|
830
830
|
'p',
|
|
831
831
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
832
832
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -834,20 +834,20 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
834
834
|
return null;
|
|
835
835
|
}
|
|
836
836
|
if (index === 3) {
|
|
837
|
-
return
|
|
838
|
-
|
|
837
|
+
return React.createElement(
|
|
838
|
+
React.Fragment,
|
|
839
839
|
null,
|
|
840
|
-
|
|
840
|
+
React.createElement(
|
|
841
841
|
'em',
|
|
842
842
|
{ style: { marginRight: '.5rem' } },
|
|
843
843
|
'...'
|
|
844
844
|
)
|
|
845
845
|
);
|
|
846
846
|
}
|
|
847
|
-
return
|
|
848
|
-
|
|
847
|
+
return React.createElement(
|
|
848
|
+
React.Fragment,
|
|
849
849
|
null,
|
|
850
|
-
|
|
850
|
+
React.createElement(
|
|
851
851
|
'em',
|
|
852
852
|
null,
|
|
853
853
|
taxonomy.name
|
|
@@ -857,30 +857,30 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
857
857
|
);
|
|
858
858
|
}),
|
|
859
859
|
' ',
|
|
860
|
-
|
|
860
|
+
React.createElement(
|
|
861
861
|
'span',
|
|
862
862
|
{ style: { display: 'inline-block' } },
|
|
863
863
|
timeDifferenceCalc(article.published)
|
|
864
864
|
)
|
|
865
865
|
),
|
|
866
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
866
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React.createElement(
|
|
867
867
|
LazyLoad,
|
|
868
868
|
{ height: 50 },
|
|
869
|
-
|
|
869
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
870
870
|
),
|
|
871
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
871
|
+
!article.thumbnail && !defaultImage && article.source && React.createElement(
|
|
872
872
|
'div',
|
|
873
873
|
{ className: 'content-category-label' },
|
|
874
|
-
|
|
874
|
+
React.createElement(
|
|
875
875
|
'div',
|
|
876
876
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
877
877
|
article.source
|
|
878
878
|
)
|
|
879
879
|
),
|
|
880
|
-
|
|
880
|
+
React.createElement(
|
|
881
881
|
'div',
|
|
882
882
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
883
|
-
showCategory && article.contentCategory &&
|
|
883
|
+
showCategory && article.contentCategory && React.createElement(
|
|
884
884
|
'p',
|
|
885
885
|
{
|
|
886
886
|
className: 'article-category',
|
|
@@ -894,7 +894,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
894
894
|
} },
|
|
895
895
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
896
896
|
),
|
|
897
|
-
article.issueSection && article.issueSection.name &&
|
|
897
|
+
article.issueSection && article.issueSection.name && React.createElement(
|
|
898
898
|
'p',
|
|
899
899
|
{
|
|
900
900
|
className: 'issueSection',
|
|
@@ -910,21 +910,21 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
910
910
|
article.issueSection.name
|
|
911
911
|
)
|
|
912
912
|
),
|
|
913
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
913
|
+
showPubInfo && (article.issue || article.volume) && React.createElement(
|
|
914
914
|
'div',
|
|
915
915
|
{ className: 'pubInfo' },
|
|
916
|
-
article.volume &&
|
|
916
|
+
article.volume && React.createElement(
|
|
917
917
|
'p',
|
|
918
918
|
{ className: 'qdeVolume' },
|
|
919
919
|
article.volume
|
|
920
920
|
),
|
|
921
|
-
article.issue &&
|
|
921
|
+
article.issue && React.createElement(
|
|
922
922
|
'p',
|
|
923
923
|
{ className: 'qdeIssue' },
|
|
924
924
|
article.issue
|
|
925
925
|
)
|
|
926
926
|
),
|
|
927
|
-
showIntro && article.summary &&
|
|
927
|
+
showIntro && article.summary && React.createElement(
|
|
928
928
|
'p',
|
|
929
929
|
{ className: 'pt-2 card-text' },
|
|
930
930
|
clean_html_1(article.summary)
|
|
@@ -934,7 +934,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
934
934
|
)
|
|
935
935
|
);
|
|
936
936
|
} else {
|
|
937
|
-
return
|
|
937
|
+
return React.createElement(
|
|
938
938
|
VisibilitySensor,
|
|
939
939
|
{
|
|
940
940
|
key: article._id ? article._id : index,
|
|
@@ -942,51 +942,51 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
942
942
|
onChange: function onChange(isVisible) {
|
|
943
943
|
isVisible && changePageNumber(1, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, index);
|
|
944
944
|
} },
|
|
945
|
-
|
|
946
|
-
|
|
945
|
+
React.createElement(
|
|
946
|
+
React.Fragment,
|
|
947
947
|
null,
|
|
948
|
-
|
|
948
|
+
React.createElement(
|
|
949
949
|
Media,
|
|
950
950
|
{
|
|
951
951
|
key: article._id ? article._id : index,
|
|
952
952
|
className: 'feature-media',
|
|
953
953
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
954
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
954
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React.createElement(
|
|
955
955
|
'a',
|
|
956
956
|
{ href: article.url.current, className: 'feature-wrapper' },
|
|
957
|
-
|
|
957
|
+
React.createElement(
|
|
958
958
|
LazyLoad,
|
|
959
|
-
{ height: imageHeight, placeholder:
|
|
960
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
959
|
+
{ height: imageHeight, placeholder: React.createElement(ImagePlaceholder, null) },
|
|
960
|
+
article.thumbnail && article.thumbnail.asset ? React.createElement('img', { className: 'img-fluid', src: renderCardImage(article, builder, imageHeight, imageWidth), alt: article.title }) : article.thumbnail ? React.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
961
961
|
),
|
|
962
|
-
article.source &&
|
|
962
|
+
article.source && React.createElement(
|
|
963
963
|
'div',
|
|
964
964
|
{ className: 'content-category-label' },
|
|
965
|
-
|
|
965
|
+
React.createElement(
|
|
966
966
|
'div',
|
|
967
967
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
968
968
|
article.source
|
|
969
969
|
)
|
|
970
970
|
)
|
|
971
971
|
),
|
|
972
|
-
|
|
972
|
+
React.createElement(
|
|
973
973
|
Media.Body,
|
|
974
974
|
null,
|
|
975
|
-
|
|
975
|
+
React.createElement(
|
|
976
976
|
'a',
|
|
977
977
|
{ href: article.url.current },
|
|
978
|
-
article.title &&
|
|
978
|
+
article.title && React.createElement(
|
|
979
979
|
'h4',
|
|
980
980
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
981
981
|
article.title
|
|
982
982
|
)
|
|
983
983
|
),
|
|
984
|
-
showPublished && article.published &&
|
|
984
|
+
showPublished && article.published && React.createElement(
|
|
985
985
|
'p',
|
|
986
986
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
987
987
|
moment(article.published).format('MMMM DD, YYYY')
|
|
988
988
|
),
|
|
989
|
-
showTimeDiff && article.published &&
|
|
989
|
+
showTimeDiff && article.published && React.createElement(
|
|
990
990
|
'p',
|
|
991
991
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
992
992
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -994,20 +994,20 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
994
994
|
return null;
|
|
995
995
|
}
|
|
996
996
|
if (index === 3) {
|
|
997
|
-
return
|
|
998
|
-
|
|
997
|
+
return React.createElement(
|
|
998
|
+
React.Fragment,
|
|
999
999
|
null,
|
|
1000
|
-
|
|
1000
|
+
React.createElement(
|
|
1001
1001
|
'em',
|
|
1002
1002
|
{ style: { marginRight: '.5rem' } },
|
|
1003
1003
|
'...'
|
|
1004
1004
|
)
|
|
1005
1005
|
);
|
|
1006
1006
|
}
|
|
1007
|
-
return
|
|
1008
|
-
|
|
1007
|
+
return React.createElement(
|
|
1008
|
+
React.Fragment,
|
|
1009
1009
|
null,
|
|
1010
|
-
|
|
1010
|
+
React.createElement(
|
|
1011
1011
|
'em',
|
|
1012
1012
|
null,
|
|
1013
1013
|
taxonomy.name
|
|
@@ -1017,30 +1017,30 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
1017
1017
|
);
|
|
1018
1018
|
}),
|
|
1019
1019
|
' ',
|
|
1020
|
-
|
|
1020
|
+
React.createElement(
|
|
1021
1021
|
'span',
|
|
1022
1022
|
{ style: { display: 'inline-block' } },
|
|
1023
1023
|
timeDifferenceCalc(article.published)
|
|
1024
1024
|
)
|
|
1025
1025
|
),
|
|
1026
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
1026
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React.createElement(
|
|
1027
1027
|
LazyLoad,
|
|
1028
1028
|
{ height: 50 },
|
|
1029
|
-
|
|
1029
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
1030
1030
|
),
|
|
1031
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
1031
|
+
!article.thumbnail && !defaultImage && article.source && React.createElement(
|
|
1032
1032
|
'div',
|
|
1033
1033
|
{ className: 'content-category-label' },
|
|
1034
|
-
|
|
1034
|
+
React.createElement(
|
|
1035
1035
|
'div',
|
|
1036
1036
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
1037
1037
|
article.source
|
|
1038
1038
|
)
|
|
1039
1039
|
),
|
|
1040
|
-
|
|
1040
|
+
React.createElement(
|
|
1041
1041
|
'div',
|
|
1042
1042
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
1043
|
-
showCategory && article.contentCategory &&
|
|
1043
|
+
showCategory && article.contentCategory && React.createElement(
|
|
1044
1044
|
'p',
|
|
1045
1045
|
{
|
|
1046
1046
|
className: 'article-category',
|
|
@@ -1054,7 +1054,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
1054
1054
|
} },
|
|
1055
1055
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
1056
1056
|
),
|
|
1057
|
-
article.issueSection && article.issueSection.name &&
|
|
1057
|
+
article.issueSection && article.issueSection.name && React.createElement(
|
|
1058
1058
|
'p',
|
|
1059
1059
|
{
|
|
1060
1060
|
className: 'issueSection',
|
|
@@ -1070,21 +1070,21 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
1070
1070
|
article.issueSection.name
|
|
1071
1071
|
)
|
|
1072
1072
|
),
|
|
1073
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
1073
|
+
showPubInfo && (article.issue || article.volume) && React.createElement(
|
|
1074
1074
|
'div',
|
|
1075
1075
|
{ className: 'pubInfo' },
|
|
1076
|
-
article.volume &&
|
|
1076
|
+
article.volume && React.createElement(
|
|
1077
1077
|
'p',
|
|
1078
1078
|
{ className: 'qdeVolume' },
|
|
1079
1079
|
article.volume
|
|
1080
1080
|
),
|
|
1081
|
-
article.issue &&
|
|
1081
|
+
article.issue && React.createElement(
|
|
1082
1082
|
'p',
|
|
1083
1083
|
{ className: 'qdeIssue' },
|
|
1084
1084
|
article.issue
|
|
1085
1085
|
)
|
|
1086
1086
|
),
|
|
1087
|
-
showIntro && article.summary &&
|
|
1087
|
+
showIntro && article.summary && React.createElement(
|
|
1088
1088
|
'p',
|
|
1089
1089
|
{ className: 'pt-2 card-text' },
|
|
1090
1090
|
clean_html_1(article.summary)
|
|
@@ -1095,12 +1095,12 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
1095
1095
|
);
|
|
1096
1096
|
}
|
|
1097
1097
|
} else if (article._type === 'lg-infeed' && article.adUnit) {
|
|
1098
|
-
return
|
|
1098
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, article));
|
|
1099
1099
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
1100
|
-
return
|
|
1100
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
1101
1101
|
}
|
|
1102
1102
|
if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
|
|
1103
|
-
return
|
|
1103
|
+
return React.createElement(
|
|
1104
1104
|
VisibilitySensor,
|
|
1105
1105
|
{
|
|
1106
1106
|
key: article._id ? article._id : index,
|
|
@@ -1108,50 +1108,50 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
1108
1108
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of artilce only.
|
|
1109
1109
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, article.articleCount ? article.articleCount : index);
|
|
1110
1110
|
} },
|
|
1111
|
-
|
|
1112
|
-
|
|
1111
|
+
React.createElement(
|
|
1112
|
+
React.Fragment,
|
|
1113
1113
|
null,
|
|
1114
|
-
|
|
1114
|
+
React.createElement(
|
|
1115
1115
|
Media,
|
|
1116
1116
|
{
|
|
1117
1117
|
key: article._id ? article._id : index,
|
|
1118
1118
|
style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
1119
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
1119
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React.createElement(
|
|
1120
1120
|
'a',
|
|
1121
1121
|
{ href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
|
|
1122
|
-
|
|
1122
|
+
React.createElement(
|
|
1123
1123
|
LazyLoad,
|
|
1124
|
-
{ height: imageHeight, placeholder:
|
|
1125
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
1124
|
+
{ height: imageHeight, placeholder: React.createElement(ImagePlaceholder, null) },
|
|
1125
|
+
article.thumbnail && article.thumbnail.asset ? React.createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage(article, builder, imageHeight, imageWidth), alt: article.title }) : article.thumbnail ? React.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
1126
1126
|
),
|
|
1127
|
-
article.source &&
|
|
1127
|
+
article.source && React.createElement(
|
|
1128
1128
|
'div',
|
|
1129
1129
|
{ className: 'content-category-label' },
|
|
1130
|
-
|
|
1130
|
+
React.createElement(
|
|
1131
1131
|
'div',
|
|
1132
1132
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
1133
1133
|
article.source
|
|
1134
1134
|
)
|
|
1135
1135
|
)
|
|
1136
1136
|
),
|
|
1137
|
-
|
|
1137
|
+
React.createElement(
|
|
1138
1138
|
Media.Body,
|
|
1139
1139
|
null,
|
|
1140
|
-
|
|
1140
|
+
React.createElement(
|
|
1141
1141
|
'a',
|
|
1142
1142
|
{ href: mapping[contentCategoryName] + '/' + article.url.current },
|
|
1143
|
-
article.title &&
|
|
1143
|
+
article.title && React.createElement(
|
|
1144
1144
|
'h4',
|
|
1145
1145
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
1146
1146
|
article.title
|
|
1147
1147
|
)
|
|
1148
1148
|
),
|
|
1149
|
-
showPublished && article.published &&
|
|
1149
|
+
showPublished && article.published && React.createElement(
|
|
1150
1150
|
'p',
|
|
1151
1151
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
1152
1152
|
moment(article.published).format('MMMM DD, YYYY')
|
|
1153
1153
|
),
|
|
1154
|
-
showTimeDiff && article.published &&
|
|
1154
|
+
showTimeDiff && article.published && React.createElement(
|
|
1155
1155
|
'p',
|
|
1156
1156
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
1157
1157
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -1159,20 +1159,20 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
1159
1159
|
return null;
|
|
1160
1160
|
}
|
|
1161
1161
|
if (index === 3) {
|
|
1162
|
-
return
|
|
1163
|
-
|
|
1162
|
+
return React.createElement(
|
|
1163
|
+
React.Fragment,
|
|
1164
1164
|
null,
|
|
1165
|
-
|
|
1165
|
+
React.createElement(
|
|
1166
1166
|
'em',
|
|
1167
1167
|
{ style: { marginRight: '.5rem' } },
|
|
1168
1168
|
'...'
|
|
1169
1169
|
)
|
|
1170
1170
|
);
|
|
1171
1171
|
}
|
|
1172
|
-
return
|
|
1173
|
-
|
|
1172
|
+
return React.createElement(
|
|
1173
|
+
React.Fragment,
|
|
1174
1174
|
null,
|
|
1175
|
-
|
|
1175
|
+
React.createElement(
|
|
1176
1176
|
'em',
|
|
1177
1177
|
null,
|
|
1178
1178
|
taxonomy.name
|
|
@@ -1182,34 +1182,34 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
1182
1182
|
);
|
|
1183
1183
|
}),
|
|
1184
1184
|
' ',
|
|
1185
|
-
|
|
1185
|
+
React.createElement(
|
|
1186
1186
|
'span',
|
|
1187
1187
|
{ style: { display: 'inline-block' } },
|
|
1188
1188
|
timeDifferenceCalc(article.published)
|
|
1189
1189
|
)
|
|
1190
1190
|
),
|
|
1191
|
-
|
|
1191
|
+
React.createElement(
|
|
1192
1192
|
'div',
|
|
1193
1193
|
{ className: 'author-sec', style: { lineHeight: 1.5 } },
|
|
1194
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
1194
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React.createElement(
|
|
1195
1195
|
LazyLoad,
|
|
1196
1196
|
{ height: 50 },
|
|
1197
|
-
|
|
1197
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
1198
1198
|
)
|
|
1199
1199
|
),
|
|
1200
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
1200
|
+
!article.thumbnail && !defaultImage && article.source && React.createElement(
|
|
1201
1201
|
'div',
|
|
1202
1202
|
{ className: 'content-category-label' },
|
|
1203
|
-
|
|
1203
|
+
React.createElement(
|
|
1204
1204
|
'div',
|
|
1205
1205
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
1206
1206
|
article.source
|
|
1207
1207
|
)
|
|
1208
1208
|
),
|
|
1209
|
-
|
|
1209
|
+
React.createElement(
|
|
1210
1210
|
'div',
|
|
1211
1211
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
1212
|
-
showCategory && article.contentCategory &&
|
|
1212
|
+
showCategory && article.contentCategory && React.createElement(
|
|
1213
1213
|
'p',
|
|
1214
1214
|
{
|
|
1215
1215
|
className: 'article-category',
|
|
@@ -1223,7 +1223,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
1223
1223
|
} },
|
|
1224
1224
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
1225
1225
|
),
|
|
1226
|
-
article.issueSection && article.issueSection.name &&
|
|
1226
|
+
article.issueSection && article.issueSection.name && React.createElement(
|
|
1227
1227
|
'p',
|
|
1228
1228
|
{
|
|
1229
1229
|
className: 'issueSection',
|
|
@@ -1239,50 +1239,50 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
1239
1239
|
article.issueSection.name
|
|
1240
1240
|
)
|
|
1241
1241
|
),
|
|
1242
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
1242
|
+
showPubInfo && (article.issue || article.volume) && React.createElement(
|
|
1243
1243
|
'div',
|
|
1244
1244
|
{ className: 'pubInfo' },
|
|
1245
|
-
article.volume &&
|
|
1245
|
+
article.volume && React.createElement(
|
|
1246
1246
|
'p',
|
|
1247
1247
|
{ className: 'qdeVolume' },
|
|
1248
1248
|
article.volume
|
|
1249
1249
|
),
|
|
1250
|
-
article.issue &&
|
|
1250
|
+
article.issue && React.createElement(
|
|
1251
1251
|
'p',
|
|
1252
1252
|
{ className: 'qdeIssue' },
|
|
1253
1253
|
article.issue
|
|
1254
1254
|
)
|
|
1255
1255
|
),
|
|
1256
|
-
showIntro && article.summary &&
|
|
1256
|
+
showIntro && article.summary && React.createElement(
|
|
1257
1257
|
'p',
|
|
1258
1258
|
{ className: 'pt-2 card-text' },
|
|
1259
1259
|
clean_html_1(article.summary)
|
|
1260
1260
|
)
|
|
1261
1261
|
)
|
|
1262
1262
|
),
|
|
1263
|
-
|
|
1263
|
+
React.createElement(
|
|
1264
1264
|
'div',
|
|
1265
1265
|
null,
|
|
1266
|
-
|
|
1266
|
+
main_40 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
|
|
1267
1267
|
)
|
|
1268
1268
|
)
|
|
1269
1269
|
);
|
|
1270
1270
|
} else return null;
|
|
1271
1271
|
})
|
|
1272
|
-
) :
|
|
1272
|
+
) : React.createElement(
|
|
1273
1273
|
'div',
|
|
1274
1274
|
null,
|
|
1275
|
-
|
|
1275
|
+
React.createElement(
|
|
1276
1276
|
'h5',
|
|
1277
1277
|
null,
|
|
1278
|
-
|
|
1278
|
+
React.createElement(
|
|
1279
1279
|
'em',
|
|
1280
1280
|
null,
|
|
1281
1281
|
'New content coming soon, please check back later.'
|
|
1282
1282
|
)
|
|
1283
1283
|
)
|
|
1284
1284
|
),
|
|
1285
|
-
|
|
1285
|
+
React.createElement(
|
|
1286
1286
|
'style',
|
|
1287
1287
|
{ jsx: 'true' },
|
|
1288
1288
|
'\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 '
|
|
@@ -1291,11 +1291,11 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
1291
1291
|
};
|
|
1292
1292
|
|
|
1293
1293
|
var ImagePlaceholder = function ImagePlaceholder() {
|
|
1294
|
-
return
|
|
1295
|
-
|
|
1294
|
+
return React.createElement(
|
|
1295
|
+
React.Fragment,
|
|
1296
1296
|
null,
|
|
1297
|
-
|
|
1298
|
-
|
|
1297
|
+
React.createElement('div', { className: 'queuedeck-exp-image-placeholder' }),
|
|
1298
|
+
React.createElement(
|
|
1299
1299
|
'style',
|
|
1300
1300
|
{ jsx: 'true' },
|
|
1301
1301
|
'\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 '
|
|
@@ -1305,7 +1305,7 @@ var ImagePlaceholder = function ImagePlaceholder() {
|
|
|
1305
1305
|
|
|
1306
1306
|
var renderMobileAd = function renderMobileAd(index, numberOfItemsBeforeAd, rightItems) {
|
|
1307
1307
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
1308
|
-
return
|
|
1308
|
+
return React.createElement(
|
|
1309
1309
|
'div',
|
|
1310
1310
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
1311
1311
|
rightItems[i].component
|
|
@@ -1414,15 +1414,15 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1414
1414
|
return null;
|
|
1415
1415
|
}
|
|
1416
1416
|
|
|
1417
|
-
return
|
|
1417
|
+
return React.createElement(
|
|
1418
1418
|
'div',
|
|
1419
1419
|
{ className: 'd-flex justify-content-between' },
|
|
1420
|
-
currentPage && currentPage > 1 &&
|
|
1420
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
1421
1421
|
'a',
|
|
1422
1422
|
{ href: '?page=' + (currentPage - 1) },
|
|
1423
1423
|
'<< Previous'
|
|
1424
1424
|
),
|
|
1425
|
-
|
|
1425
|
+
React.createElement(
|
|
1426
1426
|
'a',
|
|
1427
1427
|
{ href: '?page=' + (currentPage + 1) },
|
|
1428
1428
|
'Next >>'
|
|
@@ -1469,40 +1469,40 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1469
1469
|
}
|
|
1470
1470
|
};
|
|
1471
1471
|
|
|
1472
|
-
return
|
|
1472
|
+
return React.createElement(
|
|
1473
1473
|
'div',
|
|
1474
1474
|
null,
|
|
1475
|
-
autoScroll ?
|
|
1476
|
-
|
|
1475
|
+
autoScroll ? React.createElement(
|
|
1476
|
+
React.Fragment,
|
|
1477
1477
|
null,
|
|
1478
|
-
|
|
1478
|
+
React.createElement(
|
|
1479
1479
|
InfiniteScroll,
|
|
1480
1480
|
{ dataLength: data && data.length, next: function next() {
|
|
1481
1481
|
return loadMore(values, setValues, per);
|
|
1482
1482
|
}, hasMore: scrolling, scrollThreshold: 0.9 },
|
|
1483
|
-
|
|
1483
|
+
React.createElement(
|
|
1484
1484
|
Container,
|
|
1485
1485
|
null,
|
|
1486
1486
|
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies, showIntro)
|
|
1487
1487
|
)
|
|
1488
1488
|
),
|
|
1489
|
-
|
|
1489
|
+
React.createElement(
|
|
1490
1490
|
'noscript',
|
|
1491
1491
|
null,
|
|
1492
1492
|
renderManualPagination(currentPage)
|
|
1493
1493
|
)
|
|
1494
|
-
) :
|
|
1495
|
-
|
|
1494
|
+
) : React.createElement(
|
|
1495
|
+
React.Fragment,
|
|
1496
1496
|
null,
|
|
1497
|
-
|
|
1497
|
+
React.createElement(
|
|
1498
1498
|
Container,
|
|
1499
1499
|
null,
|
|
1500
1500
|
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies, showIntro)
|
|
1501
1501
|
),
|
|
1502
|
-
|
|
1502
|
+
React.createElement(
|
|
1503
1503
|
'div',
|
|
1504
1504
|
{ style: { padding: '0px 10px' } },
|
|
1505
|
-
scrolling ?
|
|
1505
|
+
scrolling ? React.createElement(
|
|
1506
1506
|
'button',
|
|
1507
1507
|
{
|
|
1508
1508
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -1510,17 +1510,17 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1510
1510
|
loadMore(values, setValues, per);
|
|
1511
1511
|
} },
|
|
1512
1512
|
'Load More'
|
|
1513
|
-
) :
|
|
1513
|
+
) : React.createElement(
|
|
1514
1514
|
'p',
|
|
1515
1515
|
{ style: { textAlign: 'center' } },
|
|
1516
|
-
|
|
1516
|
+
React.createElement(
|
|
1517
1517
|
'b',
|
|
1518
1518
|
null,
|
|
1519
1519
|
'End of data'
|
|
1520
1520
|
)
|
|
1521
1521
|
)
|
|
1522
1522
|
),
|
|
1523
|
-
|
|
1523
|
+
React.createElement(
|
|
1524
1524
|
'noscript',
|
|
1525
1525
|
null,
|
|
1526
1526
|
renderManualPagination(currentPage)
|