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