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