@mjhls/mjh-framework 1.0.881-beta.1 → 1.0.881-gtagfixv1
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 +29 -28
- package/dist/cjs/AD300x250x600.js +29 -28
- package/dist/cjs/AD728x90.js +32 -31
- package/dist/cjs/ADFloatingFooter.js +31 -30
- package/dist/cjs/ADFooter.js +13 -12
- package/dist/cjs/ADGutter.js +31 -30
- package/dist/cjs/{ADInfeed-2e48af77.js → ADInfeed-bce0ba07.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +31 -30
- package/dist/cjs/ADSponsoredResources.js +31 -30
- package/dist/cjs/ADWebcast.js +31 -30
- package/dist/cjs/ADWelcome.js +32 -31
- package/dist/cjs/{ADlgInfeed-c39c7131.js → ADlgInfeed-950b414b.js} +11 -10
- package/dist/cjs/AccordionPanel.js +29 -27
- package/dist/cjs/AdSlot.js +32 -31
- package/dist/cjs/AdSlotsProvider.js +18 -909
- package/dist/cjs/AlgoliaSearch.js +1490 -1306
- package/dist/cjs/AlphabeticList.js +24 -23
- package/dist/cjs/ArticleCarousel.js +20 -19
- package/dist/cjs/ArticleProgramLandingPage.js +61 -60
- package/dist/cjs/ArticleSeriesLandingPage.js +41 -42
- package/dist/cjs/ArticleSeriesListing.js +60 -59
- package/dist/cjs/Auth.js +680 -1504
- package/dist/cjs/AuthWrapper.js +1637 -419
- package/dist/cjs/{AuthorComponent-02e827ae.js → AuthorComponent-39b37d84.js} +14 -13
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-9ebd251f.js} +56 -55
- package/dist/cjs/Breadcrumbs.js +27 -25
- package/dist/cjs/CMEDeck.js +81 -81
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +34 -31
- package/dist/cjs/Column3.js +60 -57
- package/dist/cjs/ConferenceArticleCard.js +41 -40
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +105 -101
- package/dist/cjs/DeckQueue.js +91 -388
- package/dist/cjs/{Dfp-14d2455c.js → Dfp-9be904d5.js} +33 -32
- package/dist/cjs/EventsDeck.js +157 -150
- package/dist/cjs/ExternalResources.js +79 -78
- package/dist/cjs/Feature.js +29 -27
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +236 -231
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +58 -57
- package/dist/cjs/HamMagazine.js +144 -139
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +16 -15
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +72 -71
- package/dist/cjs/HorizontalHero.js +29 -28
- package/dist/cjs/IssueContentDeck.js +76 -71
- package/dist/cjs/IssueDeck.js +75 -70
- package/dist/cjs/IssueLanding.js +94 -94
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -37
- package/dist/cjs/MasterDeck.js +80 -482
- package/dist/cjs/MediaSeriesLanding.js +1238 -1590
- package/dist/cjs/NavDvm.js +77 -72
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +151 -146
- package/dist/cjs/NavNative.js +145 -137
- package/dist/cjs/OncliveHero.js +22 -22
- package/dist/cjs/OncliveLargeHero.js +71 -70
- package/dist/cjs/PageFilter.js +13 -12
- package/dist/cjs/PartnerDetailListing.js +304 -1479
- package/dist/cjs/PdfDownload.js +10 -9
- package/dist/cjs/PopUpModal.js +19 -17
- package/dist/cjs/PubSection.js +41 -41
- package/dist/cjs/PubToc.js +14 -13
- package/dist/cjs/PublicationDeck.js +70 -65
- package/dist/cjs/PublicationLanding.js +141 -133
- package/dist/cjs/QueueDeckExpanded.js +322 -1654
- package/dist/cjs/RecentNews.js +23 -22
- package/dist/cjs/RelatedContent.js +58 -57
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +20 -16
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +36 -36
- package/dist/cjs/{SeriesSlider-49b81b0b.js → SeriesSlider-ba0c5d1a.js} +40 -39
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +37 -36
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-e8477ca3.js → SocialSearchComponent-4942ddfc.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +66 -61
- package/dist/cjs/TaxonomyDescription.js +54 -53
- package/dist/cjs/TemplateNormal.js +73 -72
- package/dist/cjs/ThumbnailCard.js +26 -24
- package/dist/cjs/Ustream.js +29 -28
- package/dist/cjs/VerticalHero.js +20 -19
- package/dist/cjs/VideoProgramLandingPage.js +78 -74
- package/dist/cjs/VideoSeriesCard.js +33 -32
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +50 -51
- package/dist/cjs/VideoSeriesListing.js +77 -76
- package/dist/cjs/View.js +274 -268
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +68 -67
- package/dist/cjs/{_is-array-aa52fa1e.js → _is-array-54228b29.js} +6 -6
- package/dist/cjs/{_iter-detect-05795553.js → _iter-detect-b1df62f0.js} +7 -7
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-171b9ea5.js → _object-sap-d1978572.js} +1 -1
- package/dist/cjs/{_object-to-array-9bac8737.js → _object-to-array-ce86cae7.js} +2 -2
- package/dist/cjs/{asyncToGenerator-df19209d.js → asyncToGenerator-77821af0.js} +30 -30
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f3c44602.js → core.get-iterator-method-5643aa10.js} +35 -35
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-21887c62.js → define-property-e8404b64.js} +6 -6
- package/dist/cjs/{defineProperty-77a37684.js → defineProperty-9673846a.js} +1 -1
- package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
- package/dist/cjs/{entities-310b46ee.js → entities-df1aed86.js} +5 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{extends-eed4f016.js → extends-7c86182f.js} +7 -7
- package/dist/cjs/faundadb.js +19 -19
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +16 -16
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-8874437b.js → getTargeting-9d509319.js} +12 -12
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-e2e62963.js → index-50be6759.js} +26 -10
- package/dist/cjs/{index-bf60a71c.js → index-6763511d.js} +1070 -1044
- package/dist/cjs/{index-be0c82be.js → index-d48b231c.js} +31 -25
- package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
- package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index-98e01cb9.js → index-fc2f1ca2.js} +13 -12
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-90433435.js → index.esm-00a6aade.js} +7 -16
- package/dist/cjs/{index.esm-4d410430.js → index.esm-2bb721c8.js} +21 -21
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-c1e16606.js} +4 -7
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-f27f80d9.js} +6 -13
- package/dist/cjs/index.js +171 -165
- package/dist/cjs/{inherits-cba9c846.js → inherits-de66ea16.js} +19 -19
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/{keys-d207942e.js → keys-e982b3fa.js} +6 -6
- package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
- package/dist/cjs/main-f1c77adb.js +973 -0
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-f6d4eaa8.js → slicedToArray-067dd3bc.js} +12 -12
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/{stringify-bbc68047.js → stringify-f7a37a8d.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-c9b8a0d0.js → toConsumableArray-d7797c2b.js} +7 -7
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/cjs/{typeof-5f52cf64.js → typeof-567e31ff.js} +35 -35
- package/dist/cjs/urlFor.js +6 -6
- package/dist/cjs/{ustream-api-9ebe112f.js → ustream-api-3819e4aa.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-93a37fd0.js} +12 -1
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-e34bf324.js → web.dom.iterable-d98303e0.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +22 -22
- package/dist/esm/AD300x250x600.js +22 -22
- package/dist/esm/AD728x90.js +25 -25
- package/dist/esm/ADFloatingFooter.js +21 -21
- package/dist/esm/ADFooter.js +4 -4
- package/dist/esm/ADGutter.js +21 -21
- package/dist/esm/{ADInfeed-0c13c803.js → ADInfeed-0a55cd2d.js} +6 -6
- package/dist/esm/ADSkyscraper.js +21 -21
- package/dist/esm/ADSponsoredResources.js +21 -21
- package/dist/esm/ADWebcast.js +21 -21
- package/dist/esm/ADWelcome.js +18 -18
- package/dist/esm/{ADlgInfeed-e4e2031a.js → ADlgInfeed-013e1f4a.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +20 -20
- package/dist/esm/AdSlotsProvider.js +14 -906
- package/dist/esm/AlgoliaSearch.js +717 -534
- package/dist/esm/AlphabeticList.js +8 -8
- package/dist/esm/ArticleCarousel.js +13 -13
- package/dist/esm/ArticleProgramLandingPage.js +48 -48
- package/dist/esm/ArticleSeriesLandingPage.js +30 -32
- package/dist/esm/ArticleSeriesListing.js +32 -32
- package/dist/esm/Auth.js +591 -1419
- package/dist/esm/AuthWrapper.js +1609 -392
- package/dist/esm/{AuthorComponent-e6f95c2f.js → AuthorComponent-11adff02.js} +1 -1
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-1e73bd2c.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +22 -22
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +19 -19
- package/dist/esm/Column3.js +37 -37
- package/dist/esm/ConferenceArticleCard.js +25 -25
- package/dist/esm/DeckContent.js +55 -55
- package/dist/esm/DeckQueue.js +48 -349
- package/dist/esm/{Dfp-f867d061.js → Dfp-102f0beb.js} +13 -13
- package/dist/esm/EventsDeck.js +67 -67
- package/dist/esm/ExternalResources.js +46 -46
- package/dist/esm/Feature.js +7 -7
- package/dist/esm/ForbesHero.js +10 -10
- package/dist/esm/GridContent.js +88 -88
- package/dist/esm/GridHero.js +11 -11
- package/dist/esm/GroupDeck.js +12 -12
- package/dist/esm/HamMagazine.js +37 -37
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +46 -46
- package/dist/esm/HorizontalHero.js +8 -8
- package/dist/esm/IssueContentDeck.js +25 -25
- package/dist/esm/IssueDeck.js +35 -35
- package/dist/esm/IssueLanding.js +82 -83
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +20 -20
- package/dist/esm/MasterDeck.js +45 -448
- package/dist/esm/MediaSeriesLanding.js +757 -1112
- package/dist/esm/NavDvm.js +14 -14
- package/dist/esm/NavMagazine.js +42 -42
- package/dist/esm/NavNative.js +41 -41
- package/dist/esm/OncliveHero.js +7 -8
- package/dist/esm/OncliveLargeHero.js +11 -11
- package/dist/esm/PageFilter.js +4 -4
- package/dist/esm/PartnerDetailListing.js +210 -1386
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +4 -4
- package/dist/esm/PubSection.js +32 -33
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +27 -27
- package/dist/esm/PublicationLanding.js +78 -74
- package/dist/esm/QueueDeckExpanded.js +64 -1396
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +38 -38
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +6 -6
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +18 -18
- package/dist/esm/{SeriesSlider-ce19fa25.js → SeriesSlider-45adb8dc.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialSearchComponent-b5be0e6c.js → SocialSearchComponent-8e0fcf66.js} +12 -12
- package/dist/esm/TaxonomyCard.js +27 -27
- package/dist/esm/TaxonomyDescription.js +44 -44
- package/dist/esm/TemplateNormal.js +48 -48
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +12 -12
- package/dist/esm/VerticalHero.js +6 -6
- package/dist/esm/VideoProgramLandingPage.js +52 -52
- package/dist/esm/VideoSeriesCard.js +14 -14
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +36 -38
- package/dist/esm/VideoSeriesListing.js +33 -33
- package/dist/esm/View.js +95 -93
- package/dist/esm/YahooHero.js +13 -13
- package/dist/esm/YoutubeGroup.js +21 -21
- package/dist/esm/{_is-array-4df618a6.js → _is-array-8d21b9e3.js} +6 -6
- package/dist/esm/{_iter-detect-130ee549.js → _iter-detect-98db3b07.js} +7 -7
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-8b8ea5a9.js → _object-sap-7cee6f84.js} +1 -1
- package/dist/esm/{_object-to-array-c54dd835.js → _object-to-array-2300e51b.js} +2 -2
- package/dist/esm/{asyncToGenerator-64812e90.js → asyncToGenerator-5ef104a7.js} +31 -31
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-57a70a56.js} +5 -4
- package/dist/esm/{core.get-iterator-method-86d4db69.js → core.get-iterator-method-ea258bb1.js} +36 -36
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/define-property-5f1bda73.js +18 -0
- package/dist/esm/defineProperty-23a8f8cd.js +68 -0
- package/dist/esm/{defineProperty-d7d9b577.js → defineProperty-8c30428f.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-6d9154b4.js} +5 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{extends-5b1796d4.js → extends-6d8e3924.js} +7 -7
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +11 -11
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-277c801e.js → getTargeting-4061f839.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -8
- package/dist/esm/{index-e495ac6f.js → index-3ccc6d4b.js} +634 -618
- package/dist/esm/{index-73819142.js → index-3f5c03b2.js} +31 -25
- package/dist/esm/{index-5f7e79e7.js → index-755f2cc2.js} +6 -6
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index-aaa2dae0.js → index-98ca9cec.js} +26 -11
- package/dist/esm/{index-41a678ea.js → index-f0fc23eb.js} +4 -4
- package/dist/esm/{index.es-29c1cef5.js → index.es-a6137319.js} +23 -5
- package/dist/esm/{index.esm-fd746768.js → index.esm-37268dca.js} +4 -5
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-9b042655.js} +4 -7
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-d4932dea.js} +6 -13
- package/dist/esm/{index.esm-29e48d38.js → index.esm-f6156a57.js} +7 -16
- package/dist/esm/index.js +126 -123
- package/dist/esm/{inherits-2409637d.js → inherits-a6ba2ec4.js} +18 -18
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-69989821.js → keys-31dcdb31.js} +6 -6
- package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
- package/dist/esm/main-1894c974.js +961 -0
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-9be47857.js} +16 -16
- package/dist/esm/{slicedToArray-67a08c9c.js → slicedToArray-6ebcbfea.js} +12 -12
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-2b084bee.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-32282905.js → toConsumableArray-f7074d7c.js} +7 -7
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/dist/esm/{typeof-c05a82ba.js → typeof-e9fc0c5d.js} +35 -35
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-4c4fe0ba.js → ustream-api-d3714624.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-8ed16d48.js} +12 -1
- package/dist/esm/{web.dom.iterable-f8f967cd.js → web.dom.iterable-ab4dea5c.js} +2 -2
- package/package.json +112 -112
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/Pagination-f3ef7bc1.js +0 -59
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/esm/Pagination-a24855d4.js +0 -54
- package/dist/esm/define-property-6d26cb48.js +0 -18
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- package/dist/esm/main-c0612122.js +0 -851
- package/dist/esm/stringify-70b72959.js +0 -15
|
@@ -1,1381 +1,50 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require('./
|
|
6
|
-
require('
|
|
7
|
-
require('
|
|
8
|
-
require('./
|
|
9
|
-
var
|
|
10
|
-
require('./
|
|
11
|
-
var
|
|
12
|
-
require('./
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
require('./
|
|
16
|
-
var
|
|
17
|
-
require('
|
|
18
|
-
require('
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
require('./
|
|
23
|
-
require('./
|
|
24
|
-
require('./
|
|
25
|
-
|
|
26
|
-
require('
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
require('
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
require('./
|
|
35
|
-
|
|
36
|
-
require('./
|
|
37
|
-
require('./Beam.js');
|
|
38
|
-
require('./
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
var getContentCategory = require('./getContentCategory-f38a4c00.js');
|
|
43
|
-
var AuthorComponent = require('./AuthorComponent-02e827ae.js');
|
|
44
|
-
var Pagination = require('./Pagination-f3ef7bc1.js');
|
|
45
|
-
var reactBootstrap = require('react-bootstrap');
|
|
46
|
-
var timeDifferenceCalc = require('./timeDifferenceCalc.js');
|
|
47
|
-
|
|
48
|
-
var _this = undefined;
|
|
49
|
-
|
|
50
|
-
var renderCardImage = function renderCardImage(row, client) {
|
|
51
|
-
var imageHeight = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
52
|
-
var imageWidth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
53
|
-
var imageMaxHeight = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
54
|
-
var imageFit = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
|
|
55
|
-
return urlFor({ client: client, source: row.thumbnail, imageHeight: imageHeight, imageWidth: imageWidth, imageMaxHeight: imageMaxHeight, imageFit: imageFit });
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
var checkExternalUrl = function checkExternalUrl(url) {
|
|
59
|
-
return new RegExp(['http', 'https'].join('|')).test(url);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
var CardLoader = function CardLoader(_ref) {
|
|
63
|
-
var data = _ref.data,
|
|
64
|
-
client = _ref.client,
|
|
65
|
-
mapping = _ref.mapping,
|
|
66
|
-
showPublished = _ref.showPublished,
|
|
67
|
-
defaultImage = _ref.defaultImage,
|
|
68
|
-
showAuthor = _ref.showAuthor,
|
|
69
|
-
showCategory = _ref.showCategory,
|
|
70
|
-
imageHeight = _ref.imageHeight,
|
|
71
|
-
imageWidth = _ref.imageWidth,
|
|
72
|
-
imageMaxHeight = _ref.imageMaxHeight,
|
|
73
|
-
imageFit = _ref.imageFit,
|
|
74
|
-
rightItems = _ref.rightItems,
|
|
75
|
-
brandInsightAd = _ref.brandInsightAd,
|
|
76
|
-
showBI = _ref.showBI,
|
|
77
|
-
heroContent = _ref.heroContent,
|
|
78
|
-
lgInfeedAd = _ref.lgInfeedAd,
|
|
79
|
-
showPubInfo = _ref.showPubInfo,
|
|
80
|
-
contentCategoryMapping = _ref.contentCategoryMapping,
|
|
81
|
-
showTimeDiff = _ref.showTimeDiff,
|
|
82
|
-
showTaxonomies = _ref.showTaxonomies,
|
|
83
|
-
showIntro = _ref.showIntro;
|
|
84
|
-
|
|
85
|
-
var numberOfItemsBeforeAd = data.length < 6 ? data.length : 6;
|
|
86
|
-
var insertBrandInsightAd = function insertBrandInsightAd(arr, index, newElement) {
|
|
87
|
-
return [].concat(toConsumableArray._toConsumableArray(arr.slice(0, index)), [newElement], toConsumableArray._toConsumableArray(arr.slice(index)));
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
var _useState = React.useState(!showBI || !brandInsightAd ? true : false),
|
|
91
|
-
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
92
|
-
dataRemapped = _useState2[0],
|
|
93
|
-
setDataRemapped = _useState2[1];
|
|
94
|
-
// Need to pass flag "lgInfeedAd={true}" along with brandInsightAd from site level for large infeed-ad to render
|
|
95
|
-
// Checking window and lgInfeedAd flag in desktop view ( window >= 1400px ).
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
if (lgInfeedAd && brandInsightAd && typeof window !== 'undefined' && window.innerWidth >= 1400) {
|
|
99
|
-
var lgInfeed = {
|
|
100
|
-
_type: 'lg-infeed',
|
|
101
|
-
adUnit: brandInsightAd.adUnit,
|
|
102
|
-
className: 'lg-infeed',
|
|
103
|
-
networkID: brandInsightAd.networkID,
|
|
104
|
-
sizes: [728, 90],
|
|
105
|
-
// Adding sizeMapping for showing ad above 1400px
|
|
106
|
-
sizeMapping: [{
|
|
107
|
-
viewport: [1400, 0],
|
|
108
|
-
sizes: [[728, 90]]
|
|
109
|
-
}, { viewport: [0, 0], sizes: [] }],
|
|
110
|
-
targeting: {
|
|
111
|
-
content_placement: brandInsightAd.targeting.content_placement,
|
|
112
|
-
document_url: brandInsightAd.targeting.document_url,
|
|
113
|
-
rootDocumentGroup: brandInsightAd.targeting.rootDocumentGroup
|
|
114
|
-
},
|
|
115
|
-
/* Passing refresh flag */
|
|
116
|
-
refreshFlag: brandInsightAd.refreshFlag ? brandInsightAd.refreshFlag : false
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
var chunks = lodash.lodash.chunk(data, 6).map(function (chunk) {
|
|
120
|
-
var set = lodash.lodash.chunk(chunk, 2);
|
|
121
|
-
for (var i = 0; i < set.length; i++) {
|
|
122
|
-
if (i !== set.length - 1) {
|
|
123
|
-
set[i].push(lgInfeed);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return lodash.lodash.flattenDeep(set);
|
|
127
|
-
});
|
|
128
|
-
data = lodash.lodash.flatten(chunks);
|
|
129
|
-
!dataRemapped && setDataRemapped(true); // To detect if appending of insights ads are completed
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// set dataRemap to true as there are no infeed or BI ads or window width is less than limit
|
|
133
|
-
React.useEffect(function () {
|
|
134
|
-
if (typeof window !== 'undefined' && (!lgInfeedAd || !brandInsightAd || window.innerWidth < 1400) && !dataRemapped) {
|
|
135
|
-
setDataRemapped(true);
|
|
136
|
-
}
|
|
137
|
-
}, []);
|
|
138
|
-
|
|
139
|
-
if (showBI && brandInsightAd) {
|
|
140
|
-
// Checking window and lgInfeedAd flag in desktop view ( window >= 1400px ).
|
|
141
|
-
if (lgInfeedAd && typeof window !== 'undefined' && window.innerWidth >= 1400) brandInsightAd.interval = 8;
|
|
142
|
-
var pos = 0;
|
|
143
|
-
for (var i = 1; pos < data.length; i++) {
|
|
144
|
-
var inFeedAd = {
|
|
145
|
-
adUnit: brandInsightAd.adUnit,
|
|
146
|
-
className: brandInsightAd.className,
|
|
147
|
-
networkID: brandInsightAd.networkID,
|
|
148
|
-
sizes: brandInsightAd.sizes,
|
|
149
|
-
slotId: brandInsightAd.slotId + '_' + i,
|
|
150
|
-
targeting: {
|
|
151
|
-
pos: 'infeed',
|
|
152
|
-
content_placement: brandInsightAd.targeting.content_placement,
|
|
153
|
-
document_url: brandInsightAd.targeting.document_url,
|
|
154
|
-
rootDocumentGroup: brandInsightAd.targeting.rootDocumentGroup
|
|
155
|
-
},
|
|
156
|
-
_type: 'brandInsightAd',
|
|
157
|
-
/* Passing refresh flag */
|
|
158
|
-
refreshFlag: brandInsightAd.refreshFlag ? brandInsightAd.refreshFlag : false
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
data = insertBrandInsightAd(data, pos, inFeedAd);
|
|
162
|
-
pos += brandInsightAd.interval + 1;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
data = data.map(function (ele, i) {
|
|
167
|
-
if (ele._type === 'lg-infeed') {
|
|
168
|
-
// Setting pos as top2 for the first occurence of large infeed ad
|
|
169
|
-
// const pos = data.indexOf(data.find((d) => d._type === 'lg-infeed')) === i ? 'top2' : `lg-infeed_${i}`
|
|
170
|
-
return _extends._extends({}, ele, { slotId: 'lg-infeed_' + i, targeting: _extends._extends({}, ele.targeting, { pos: 'lg-infeed' }) });
|
|
171
|
-
} else return ele;
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
var featureCount = 0;
|
|
175
|
-
return React__default.createElement(
|
|
176
|
-
'div',
|
|
177
|
-
null,
|
|
178
|
-
data && data.length > 0 ? dataRemapped ? // For Javascript Enabled Cases
|
|
179
|
-
data.map(function (article, index) {
|
|
180
|
-
var contentCategoryName = article.contentCategory ? article.contentCategory.name : 'Articles';
|
|
181
|
-
|
|
182
|
-
if (article._type === 'feature') {
|
|
183
|
-
featureCount++;
|
|
184
|
-
if (article.blank || checkExternalUrl(article.url.current)) {
|
|
185
|
-
return React__default.createElement(
|
|
186
|
-
reactBootstrap.Media,
|
|
187
|
-
{
|
|
188
|
-
key: article._id ? article._id : index,
|
|
189
|
-
className: 'feature-media',
|
|
190
|
-
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
191
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
192
|
-
'a',
|
|
193
|
-
{ rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
194
|
-
React__default.createElement(
|
|
195
|
-
index$2.LazyLoad,
|
|
196
|
-
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
197
|
-
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
198
|
-
),
|
|
199
|
-
article.source && React__default.createElement(
|
|
200
|
-
'div',
|
|
201
|
-
{ className: 'content-category-label' },
|
|
202
|
-
React__default.createElement(
|
|
203
|
-
'div',
|
|
204
|
-
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
205
|
-
article.source
|
|
206
|
-
)
|
|
207
|
-
)
|
|
208
|
-
),
|
|
209
|
-
React__default.createElement(
|
|
210
|
-
reactBootstrap.Media.Body,
|
|
211
|
-
null,
|
|
212
|
-
React__default.createElement(
|
|
213
|
-
'a',
|
|
214
|
-
{ rel: 'noopener', href: article.url.current, target: '_blank' },
|
|
215
|
-
article.title && React__default.createElement(
|
|
216
|
-
'h4',
|
|
217
|
-
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
218
|
-
article.title
|
|
219
|
-
)
|
|
220
|
-
),
|
|
221
|
-
showPublished && !showTimeDiff && article.published && React__default.createElement(
|
|
222
|
-
'p',
|
|
223
|
-
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
224
|
-
moment.moment(article.published).format('MMMM DD, YYYY')
|
|
225
|
-
),
|
|
226
|
-
showTimeDiff && article.published && React__default.createElement(
|
|
227
|
-
'p',
|
|
228
|
-
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
229
|
-
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
230
|
-
if (index > 3) {
|
|
231
|
-
return null;
|
|
232
|
-
}
|
|
233
|
-
if (index === 3) {
|
|
234
|
-
return React__default.createElement(
|
|
235
|
-
React__default.Fragment,
|
|
236
|
-
null,
|
|
237
|
-
React__default.createElement(
|
|
238
|
-
'em',
|
|
239
|
-
{ style: { marginRight: '.5rem' } },
|
|
240
|
-
'...'
|
|
241
|
-
)
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
return React__default.createElement(
|
|
245
|
-
React__default.Fragment,
|
|
246
|
-
null,
|
|
247
|
-
React__default.createElement(
|
|
248
|
-
'em',
|
|
249
|
-
null,
|
|
250
|
-
taxonomy.name
|
|
251
|
-
),
|
|
252
|
-
' |',
|
|
253
|
-
' '
|
|
254
|
-
);
|
|
255
|
-
}),
|
|
256
|
-
' ',
|
|
257
|
-
React__default.createElement(
|
|
258
|
-
'span',
|
|
259
|
-
{ style: { display: 'inline-block' } },
|
|
260
|
-
timeDifferenceCalc(article.published)
|
|
261
|
-
)
|
|
262
|
-
),
|
|
263
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
264
|
-
index$2.LazyLoad,
|
|
265
|
-
{ height: 50 },
|
|
266
|
-
React__default.createElement(AuthorComponent.AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
267
|
-
),
|
|
268
|
-
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
269
|
-
'div',
|
|
270
|
-
{ className: 'content-category-label' },
|
|
271
|
-
React__default.createElement(
|
|
272
|
-
'div',
|
|
273
|
-
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
274
|
-
article.source
|
|
275
|
-
)
|
|
276
|
-
),
|
|
277
|
-
React__default.createElement(
|
|
278
|
-
'div',
|
|
279
|
-
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
280
|
-
showCategory && article.contentCategory && React__default.createElement(
|
|
281
|
-
'p',
|
|
282
|
-
{
|
|
283
|
-
className: 'article-category',
|
|
284
|
-
style: {
|
|
285
|
-
background: '#3FB618',
|
|
286
|
-
color: '#ffffff',
|
|
287
|
-
marginBottom: '.25rem',
|
|
288
|
-
display: 'inline-block',
|
|
289
|
-
padding: '0 .25rem',
|
|
290
|
-
fontSize: '.8rem'
|
|
291
|
-
} },
|
|
292
|
-
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
293
|
-
),
|
|
294
|
-
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
295
|
-
'p',
|
|
296
|
-
{
|
|
297
|
-
className: 'issueSection',
|
|
298
|
-
style: {
|
|
299
|
-
background: '#000000',
|
|
300
|
-
color: '#ffffff',
|
|
301
|
-
marginBottom: '.25rem',
|
|
302
|
-
marginLeft: '.25rem',
|
|
303
|
-
display: 'inline-block',
|
|
304
|
-
padding: '0 .25rem',
|
|
305
|
-
fontSize: '.8rem'
|
|
306
|
-
} },
|
|
307
|
-
article.issueSection.name
|
|
308
|
-
)
|
|
309
|
-
),
|
|
310
|
-
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
311
|
-
'div',
|
|
312
|
-
{ className: 'pubInfo' },
|
|
313
|
-
article.volume && React__default.createElement(
|
|
314
|
-
'p',
|
|
315
|
-
{ className: 'qdeVolume' },
|
|
316
|
-
article.volume
|
|
317
|
-
),
|
|
318
|
-
article.issue && React__default.createElement(
|
|
319
|
-
'p',
|
|
320
|
-
{ className: 'qdeIssue' },
|
|
321
|
-
article.issue
|
|
322
|
-
)
|
|
323
|
-
),
|
|
324
|
-
showIntro && article.summary && React__default.createElement(
|
|
325
|
-
'p',
|
|
326
|
-
{ className: 'pt-2 card-text' },
|
|
327
|
-
entities.clean_html_1(article.summary)
|
|
328
|
-
)
|
|
329
|
-
)
|
|
330
|
-
);
|
|
331
|
-
} else {
|
|
332
|
-
return React__default.createElement(
|
|
333
|
-
reactBootstrap.Media,
|
|
334
|
-
{
|
|
335
|
-
key: article._id ? article._id : index,
|
|
336
|
-
className: 'feature-media',
|
|
337
|
-
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
338
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
339
|
-
'a',
|
|
340
|
-
{ href: article.url.current, className: 'feature-wrapper' },
|
|
341
|
-
React__default.createElement(
|
|
342
|
-
index$2.LazyLoad,
|
|
343
|
-
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
344
|
-
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
345
|
-
),
|
|
346
|
-
article.source && React__default.createElement(
|
|
347
|
-
'div',
|
|
348
|
-
{ className: 'content-category-label' },
|
|
349
|
-
React__default.createElement(
|
|
350
|
-
'div',
|
|
351
|
-
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
352
|
-
article.source
|
|
353
|
-
)
|
|
354
|
-
)
|
|
355
|
-
),
|
|
356
|
-
React__default.createElement(
|
|
357
|
-
reactBootstrap.Media.Body,
|
|
358
|
-
null,
|
|
359
|
-
React__default.createElement(
|
|
360
|
-
'a',
|
|
361
|
-
{ href: article.url.current },
|
|
362
|
-
article.title && React__default.createElement(
|
|
363
|
-
'h4',
|
|
364
|
-
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
365
|
-
article.title
|
|
366
|
-
)
|
|
367
|
-
),
|
|
368
|
-
showPublished && !showTimeDiff && article.published && React__default.createElement(
|
|
369
|
-
'p',
|
|
370
|
-
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
371
|
-
moment.moment(article.published).format('MMMM DD, YYYY')
|
|
372
|
-
),
|
|
373
|
-
showTimeDiff && article.published && React__default.createElement(
|
|
374
|
-
'p',
|
|
375
|
-
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
376
|
-
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
377
|
-
if (index > 3) {
|
|
378
|
-
return null;
|
|
379
|
-
}
|
|
380
|
-
if (index === 3) {
|
|
381
|
-
return React__default.createElement(
|
|
382
|
-
React__default.Fragment,
|
|
383
|
-
null,
|
|
384
|
-
React__default.createElement(
|
|
385
|
-
'em',
|
|
386
|
-
{ style: { marginRight: '.5rem' } },
|
|
387
|
-
'...'
|
|
388
|
-
)
|
|
389
|
-
);
|
|
390
|
-
}
|
|
391
|
-
if (index === 3) {
|
|
392
|
-
return React__default.createElement(
|
|
393
|
-
React__default.Fragment,
|
|
394
|
-
null,
|
|
395
|
-
React__default.createElement(
|
|
396
|
-
'em',
|
|
397
|
-
{ style: { marginRight: '.5rem' } },
|
|
398
|
-
'...'
|
|
399
|
-
)
|
|
400
|
-
);
|
|
401
|
-
}
|
|
402
|
-
return React__default.createElement(
|
|
403
|
-
React__default.Fragment,
|
|
404
|
-
null,
|
|
405
|
-
React__default.createElement(
|
|
406
|
-
'em',
|
|
407
|
-
null,
|
|
408
|
-
taxonomy.name
|
|
409
|
-
),
|
|
410
|
-
' |',
|
|
411
|
-
' '
|
|
412
|
-
);
|
|
413
|
-
}),
|
|
414
|
-
' ',
|
|
415
|
-
React__default.createElement(
|
|
416
|
-
'span',
|
|
417
|
-
{ style: { display: 'inline-block' } },
|
|
418
|
-
timeDifferenceCalc(article.published)
|
|
419
|
-
)
|
|
420
|
-
),
|
|
421
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
422
|
-
index$2.LazyLoad,
|
|
423
|
-
{ height: 50 },
|
|
424
|
-
React__default.createElement(AuthorComponent.AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
425
|
-
),
|
|
426
|
-
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
427
|
-
'div',
|
|
428
|
-
{ className: 'content-category-label' },
|
|
429
|
-
React__default.createElement(
|
|
430
|
-
'div',
|
|
431
|
-
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
432
|
-
article.source
|
|
433
|
-
)
|
|
434
|
-
),
|
|
435
|
-
React__default.createElement(
|
|
436
|
-
'div',
|
|
437
|
-
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
438
|
-
showCategory && article.contentCategory && React__default.createElement(
|
|
439
|
-
'p',
|
|
440
|
-
{
|
|
441
|
-
className: 'article-category',
|
|
442
|
-
style: {
|
|
443
|
-
background: '#3FB618',
|
|
444
|
-
color: '#ffffff',
|
|
445
|
-
marginBottom: '.25rem',
|
|
446
|
-
display: 'inline-block',
|
|
447
|
-
padding: '0 .25rem',
|
|
448
|
-
fontSize: '.8rem'
|
|
449
|
-
} },
|
|
450
|
-
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
451
|
-
),
|
|
452
|
-
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
453
|
-
'p',
|
|
454
|
-
{
|
|
455
|
-
className: 'issueSection',
|
|
456
|
-
style: {
|
|
457
|
-
background: '#000000',
|
|
458
|
-
color: '#ffffff',
|
|
459
|
-
marginBottom: '.25rem',
|
|
460
|
-
marginLeft: '.25rem',
|
|
461
|
-
display: 'inline-block',
|
|
462
|
-
padding: '0 .25rem',
|
|
463
|
-
fontSize: '.8rem'
|
|
464
|
-
} },
|
|
465
|
-
article.issueSection.name
|
|
466
|
-
)
|
|
467
|
-
),
|
|
468
|
-
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
469
|
-
'div',
|
|
470
|
-
{ className: 'pubInfo' },
|
|
471
|
-
article.volume && React__default.createElement(
|
|
472
|
-
'p',
|
|
473
|
-
{ className: 'qdeVolume' },
|
|
474
|
-
article.volume
|
|
475
|
-
),
|
|
476
|
-
article.issue && React__default.createElement(
|
|
477
|
-
'p',
|
|
478
|
-
{ className: 'qdeIssue' },
|
|
479
|
-
article.issue
|
|
480
|
-
)
|
|
481
|
-
),
|
|
482
|
-
showIntro && article.summary && React__default.createElement(
|
|
483
|
-
'p',
|
|
484
|
-
{ className: 'pt-2 card-text' },
|
|
485
|
-
entities.clean_html_1(article.summary)
|
|
486
|
-
)
|
|
487
|
-
)
|
|
488
|
-
);
|
|
489
|
-
}
|
|
490
|
-
} else if (article._type === 'lg-infeed' && article.adUnit) {
|
|
491
|
-
return React__default.createElement(ADlgInfeed.ADlgInfeed, _extends._extends({ index: index }, article));
|
|
492
|
-
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
493
|
-
return React__default.createElement(ADInfeed.ADInfeed, { index: index, infeedAd: article });
|
|
494
|
-
}
|
|
495
|
-
if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
|
|
496
|
-
return React__default.createElement(
|
|
497
|
-
React__default.Fragment,
|
|
498
|
-
{ key: article._id ? article._id : index },
|
|
499
|
-
React__default.createElement(
|
|
500
|
-
reactBootstrap.Media,
|
|
501
|
-
{
|
|
502
|
-
key: article._id ? article._id : index,
|
|
503
|
-
style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
504
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
505
|
-
'a',
|
|
506
|
-
{ href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
|
|
507
|
-
React__default.createElement(
|
|
508
|
-
index$2.LazyLoad,
|
|
509
|
-
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
510
|
-
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
511
|
-
),
|
|
512
|
-
article.source && React__default.createElement(
|
|
513
|
-
'div',
|
|
514
|
-
{ className: 'content-category-label' },
|
|
515
|
-
React__default.createElement(
|
|
516
|
-
'div',
|
|
517
|
-
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
518
|
-
article.source
|
|
519
|
-
)
|
|
520
|
-
)
|
|
521
|
-
),
|
|
522
|
-
React__default.createElement(
|
|
523
|
-
reactBootstrap.Media.Body,
|
|
524
|
-
null,
|
|
525
|
-
React__default.createElement(
|
|
526
|
-
'a',
|
|
527
|
-
{ href: mapping[contentCategoryName] + '/' + article.url.current },
|
|
528
|
-
article.title && React__default.createElement(
|
|
529
|
-
'h4',
|
|
530
|
-
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
531
|
-
article.title
|
|
532
|
-
)
|
|
533
|
-
),
|
|
534
|
-
showPublished && !showTimeDiff && article.published && React__default.createElement(
|
|
535
|
-
'p',
|
|
536
|
-
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
537
|
-
moment.moment(article.published).format('MMMM DD, YYYY')
|
|
538
|
-
),
|
|
539
|
-
showTimeDiff && article.published && React__default.createElement(
|
|
540
|
-
'p',
|
|
541
|
-
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
542
|
-
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
543
|
-
if (index > 3) {
|
|
544
|
-
return null;
|
|
545
|
-
}
|
|
546
|
-
if (index === 3) {
|
|
547
|
-
return React__default.createElement(
|
|
548
|
-
React__default.Fragment,
|
|
549
|
-
null,
|
|
550
|
-
React__default.createElement(
|
|
551
|
-
'em',
|
|
552
|
-
{ style: { marginRight: '.5rem' } },
|
|
553
|
-
'...'
|
|
554
|
-
)
|
|
555
|
-
);
|
|
556
|
-
}
|
|
557
|
-
return React__default.createElement(
|
|
558
|
-
React__default.Fragment,
|
|
559
|
-
null,
|
|
560
|
-
React__default.createElement(
|
|
561
|
-
'em',
|
|
562
|
-
null,
|
|
563
|
-
taxonomy.name
|
|
564
|
-
),
|
|
565
|
-
' |',
|
|
566
|
-
' '
|
|
567
|
-
);
|
|
568
|
-
}),
|
|
569
|
-
' ',
|
|
570
|
-
React__default.createElement(
|
|
571
|
-
'span',
|
|
572
|
-
{ style: { display: 'inline-block' } },
|
|
573
|
-
timeDifferenceCalc(article.published)
|
|
574
|
-
)
|
|
575
|
-
),
|
|
576
|
-
React__default.createElement(
|
|
577
|
-
'div',
|
|
578
|
-
{ className: 'author-sec', style: { lineHeight: 1.5 } },
|
|
579
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
580
|
-
index$2.LazyLoad,
|
|
581
|
-
{ height: 50 },
|
|
582
|
-
React__default.createElement(AuthorComponent.AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
583
|
-
)
|
|
584
|
-
),
|
|
585
|
-
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
586
|
-
'div',
|
|
587
|
-
{ className: 'content-category-label' },
|
|
588
|
-
React__default.createElement(
|
|
589
|
-
'div',
|
|
590
|
-
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
591
|
-
article.source
|
|
592
|
-
)
|
|
593
|
-
),
|
|
594
|
-
React__default.createElement(
|
|
595
|
-
'div',
|
|
596
|
-
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
597
|
-
showCategory && article.contentCategory && React__default.createElement(
|
|
598
|
-
'p',
|
|
599
|
-
{
|
|
600
|
-
className: 'article-category',
|
|
601
|
-
style: {
|
|
602
|
-
background: '#3FB618',
|
|
603
|
-
color: '#ffffff',
|
|
604
|
-
marginBottom: '.25rem',
|
|
605
|
-
display: 'inline-block',
|
|
606
|
-
padding: '0 .25rem',
|
|
607
|
-
fontSize: '.8rem'
|
|
608
|
-
} },
|
|
609
|
-
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
610
|
-
),
|
|
611
|
-
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
612
|
-
'p',
|
|
613
|
-
{
|
|
614
|
-
className: 'issueSection',
|
|
615
|
-
style: {
|
|
616
|
-
background: '#000000',
|
|
617
|
-
color: '#ffffff',
|
|
618
|
-
marginBottom: '.25rem',
|
|
619
|
-
marginLeft: '.25rem',
|
|
620
|
-
display: 'inline-block',
|
|
621
|
-
padding: '0 .25rem',
|
|
622
|
-
fontSize: '.8rem'
|
|
623
|
-
} },
|
|
624
|
-
article.issueSection.name
|
|
625
|
-
)
|
|
626
|
-
),
|
|
627
|
-
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
628
|
-
'div',
|
|
629
|
-
{ className: 'pubInfo' },
|
|
630
|
-
article.volume && React__default.createElement(
|
|
631
|
-
'p',
|
|
632
|
-
{ className: 'qdeVolume' },
|
|
633
|
-
article.volume
|
|
634
|
-
),
|
|
635
|
-
article.issue && React__default.createElement(
|
|
636
|
-
'p',
|
|
637
|
-
{ className: 'qdeIssue' },
|
|
638
|
-
article.issue
|
|
639
|
-
)
|
|
640
|
-
),
|
|
641
|
-
showIntro && article.summary && React__default.createElement(
|
|
642
|
-
'p',
|
|
643
|
-
{ className: 'pt-2 card-text' },
|
|
644
|
-
entities.clean_html_1(article.summary)
|
|
645
|
-
)
|
|
646
|
-
)
|
|
647
|
-
),
|
|
648
|
-
React__default.createElement(
|
|
649
|
-
'div',
|
|
650
|
-
null,
|
|
651
|
-
main.main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
|
|
652
|
-
)
|
|
653
|
-
);
|
|
654
|
-
} else return null;
|
|
655
|
-
}) :
|
|
656
|
-
// For Javascript Disabled Cases
|
|
657
|
-
React__default.createElement(
|
|
658
|
-
'noscript',
|
|
659
|
-
null,
|
|
660
|
-
data.map(function (article, index) {
|
|
661
|
-
var contentCategoryName = article.contentCategory ? article.contentCategory.name : 'Articles';
|
|
662
|
-
|
|
663
|
-
if (article._type === 'feature') {
|
|
664
|
-
featureCount++;
|
|
665
|
-
if (article.blank || checkExternalUrl(article.url.current)) {
|
|
666
|
-
return React__default.createElement(
|
|
667
|
-
reactBootstrap.Media,
|
|
668
|
-
{
|
|
669
|
-
key: article._id ? article._id : index,
|
|
670
|
-
className: 'feature-media',
|
|
671
|
-
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
672
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
673
|
-
'a',
|
|
674
|
-
{ rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
675
|
-
React__default.createElement(
|
|
676
|
-
index$2.LazyLoad,
|
|
677
|
-
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
678
|
-
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
679
|
-
),
|
|
680
|
-
article.source && React__default.createElement(
|
|
681
|
-
'div',
|
|
682
|
-
{ className: 'content-category-label' },
|
|
683
|
-
React__default.createElement(
|
|
684
|
-
'div',
|
|
685
|
-
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
686
|
-
article.source
|
|
687
|
-
)
|
|
688
|
-
)
|
|
689
|
-
),
|
|
690
|
-
React__default.createElement(
|
|
691
|
-
reactBootstrap.Media.Body,
|
|
692
|
-
null,
|
|
693
|
-
React__default.createElement(
|
|
694
|
-
'a',
|
|
695
|
-
{ rel: 'noopener', href: article.url.current, target: '_blank' },
|
|
696
|
-
article.title && React__default.createElement(
|
|
697
|
-
'h4',
|
|
698
|
-
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
699
|
-
article.title
|
|
700
|
-
)
|
|
701
|
-
),
|
|
702
|
-
showPublished && article.published && React__default.createElement(
|
|
703
|
-
'p',
|
|
704
|
-
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
705
|
-
moment.moment(article.published).format('MMMM DD, YYYY')
|
|
706
|
-
),
|
|
707
|
-
showTimeDiff && article.published && React__default.createElement(
|
|
708
|
-
'p',
|
|
709
|
-
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
710
|
-
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
711
|
-
if (index > 3) {
|
|
712
|
-
return null;
|
|
713
|
-
}
|
|
714
|
-
if (index === 3) {
|
|
715
|
-
return React__default.createElement(
|
|
716
|
-
React__default.Fragment,
|
|
717
|
-
null,
|
|
718
|
-
React__default.createElement(
|
|
719
|
-
'em',
|
|
720
|
-
{ style: { marginRight: '.5rem' } },
|
|
721
|
-
'...'
|
|
722
|
-
)
|
|
723
|
-
);
|
|
724
|
-
}
|
|
725
|
-
return React__default.createElement(
|
|
726
|
-
React__default.Fragment,
|
|
727
|
-
null,
|
|
728
|
-
React__default.createElement(
|
|
729
|
-
'em',
|
|
730
|
-
null,
|
|
731
|
-
taxonomy.name
|
|
732
|
-
),
|
|
733
|
-
' |',
|
|
734
|
-
' '
|
|
735
|
-
);
|
|
736
|
-
}),
|
|
737
|
-
' ',
|
|
738
|
-
React__default.createElement(
|
|
739
|
-
'span',
|
|
740
|
-
{ style: { display: 'inline-block' } },
|
|
741
|
-
timeDifferenceCalc(article.published)
|
|
742
|
-
)
|
|
743
|
-
),
|
|
744
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
745
|
-
index$2.LazyLoad,
|
|
746
|
-
{ height: 50 },
|
|
747
|
-
React__default.createElement(AuthorComponent.AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
748
|
-
),
|
|
749
|
-
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
750
|
-
'div',
|
|
751
|
-
{ className: 'content-category-label' },
|
|
752
|
-
React__default.createElement(
|
|
753
|
-
'div',
|
|
754
|
-
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
755
|
-
article.source
|
|
756
|
-
)
|
|
757
|
-
),
|
|
758
|
-
React__default.createElement(
|
|
759
|
-
'div',
|
|
760
|
-
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
761
|
-
showCategory && article.contentCategory && React__default.createElement(
|
|
762
|
-
'p',
|
|
763
|
-
{
|
|
764
|
-
className: 'article-category',
|
|
765
|
-
style: {
|
|
766
|
-
background: '#3FB618',
|
|
767
|
-
color: '#ffffff',
|
|
768
|
-
marginBottom: '.25rem',
|
|
769
|
-
display: 'inline-block',
|
|
770
|
-
padding: '0 .25rem',
|
|
771
|
-
fontSize: '.8rem'
|
|
772
|
-
} },
|
|
773
|
-
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
774
|
-
),
|
|
775
|
-
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
776
|
-
'p',
|
|
777
|
-
{
|
|
778
|
-
className: 'issueSection',
|
|
779
|
-
style: {
|
|
780
|
-
background: '#000000',
|
|
781
|
-
color: '#ffffff',
|
|
782
|
-
marginBottom: '.25rem',
|
|
783
|
-
marginLeft: '.25rem',
|
|
784
|
-
display: 'inline-block',
|
|
785
|
-
padding: '0 .25rem',
|
|
786
|
-
fontSize: '.8rem'
|
|
787
|
-
} },
|
|
788
|
-
article.issueSection.name
|
|
789
|
-
)
|
|
790
|
-
),
|
|
791
|
-
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
792
|
-
'div',
|
|
793
|
-
{ className: 'pubInfo' },
|
|
794
|
-
article.volume && React__default.createElement(
|
|
795
|
-
'p',
|
|
796
|
-
{ className: 'qdeVolume' },
|
|
797
|
-
article.volume
|
|
798
|
-
),
|
|
799
|
-
article.issue && React__default.createElement(
|
|
800
|
-
'p',
|
|
801
|
-
{ className: 'qdeIssue' },
|
|
802
|
-
article.issue
|
|
803
|
-
)
|
|
804
|
-
),
|
|
805
|
-
showIntro && article.summary && React__default.createElement(
|
|
806
|
-
'p',
|
|
807
|
-
{ className: 'pt-2 card-text' },
|
|
808
|
-
entities.clean_html_1(article.summary)
|
|
809
|
-
)
|
|
810
|
-
)
|
|
811
|
-
);
|
|
812
|
-
} else {
|
|
813
|
-
return React__default.createElement(
|
|
814
|
-
reactBootstrap.Media,
|
|
815
|
-
{
|
|
816
|
-
key: article._id ? article._id : index,
|
|
817
|
-
className: 'feature-media',
|
|
818
|
-
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
819
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
820
|
-
'a',
|
|
821
|
-
{ href: article.url.current, className: 'feature-wrapper' },
|
|
822
|
-
React__default.createElement(
|
|
823
|
-
index$2.LazyLoad,
|
|
824
|
-
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
825
|
-
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
826
|
-
),
|
|
827
|
-
article.source && React__default.createElement(
|
|
828
|
-
'div',
|
|
829
|
-
{ className: 'content-category-label' },
|
|
830
|
-
React__default.createElement(
|
|
831
|
-
'div',
|
|
832
|
-
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
833
|
-
article.source
|
|
834
|
-
)
|
|
835
|
-
)
|
|
836
|
-
),
|
|
837
|
-
React__default.createElement(
|
|
838
|
-
reactBootstrap.Media.Body,
|
|
839
|
-
null,
|
|
840
|
-
React__default.createElement(
|
|
841
|
-
'a',
|
|
842
|
-
{ href: article.url.current },
|
|
843
|
-
article.title && React__default.createElement(
|
|
844
|
-
'h4',
|
|
845
|
-
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
846
|
-
article.title
|
|
847
|
-
)
|
|
848
|
-
),
|
|
849
|
-
showPublished && article.published && React__default.createElement(
|
|
850
|
-
'p',
|
|
851
|
-
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
852
|
-
moment.moment(article.published).format('MMMM DD, YYYY')
|
|
853
|
-
),
|
|
854
|
-
showTimeDiff && article.published && React__default.createElement(
|
|
855
|
-
'p',
|
|
856
|
-
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
857
|
-
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
858
|
-
if (index > 3) {
|
|
859
|
-
return null;
|
|
860
|
-
}
|
|
861
|
-
if (index === 3) {
|
|
862
|
-
return React__default.createElement(
|
|
863
|
-
React__default.Fragment,
|
|
864
|
-
null,
|
|
865
|
-
React__default.createElement(
|
|
866
|
-
'em',
|
|
867
|
-
{ style: { marginRight: '.5rem' } },
|
|
868
|
-
'...'
|
|
869
|
-
)
|
|
870
|
-
);
|
|
871
|
-
}
|
|
872
|
-
return React__default.createElement(
|
|
873
|
-
React__default.Fragment,
|
|
874
|
-
null,
|
|
875
|
-
React__default.createElement(
|
|
876
|
-
'em',
|
|
877
|
-
null,
|
|
878
|
-
taxonomy.name
|
|
879
|
-
),
|
|
880
|
-
' |',
|
|
881
|
-
' '
|
|
882
|
-
);
|
|
883
|
-
}),
|
|
884
|
-
' ',
|
|
885
|
-
React__default.createElement(
|
|
886
|
-
'span',
|
|
887
|
-
{ style: { display: 'inline-block' } },
|
|
888
|
-
timeDifferenceCalc(article.published)
|
|
889
|
-
)
|
|
890
|
-
),
|
|
891
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
892
|
-
index$2.LazyLoad,
|
|
893
|
-
{ height: 50 },
|
|
894
|
-
React__default.createElement(AuthorComponent.AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
895
|
-
),
|
|
896
|
-
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
897
|
-
'div',
|
|
898
|
-
{ className: 'content-category-label' },
|
|
899
|
-
React__default.createElement(
|
|
900
|
-
'div',
|
|
901
|
-
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
902
|
-
article.source
|
|
903
|
-
)
|
|
904
|
-
),
|
|
905
|
-
React__default.createElement(
|
|
906
|
-
'div',
|
|
907
|
-
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
908
|
-
showCategory && article.contentCategory && React__default.createElement(
|
|
909
|
-
'p',
|
|
910
|
-
{
|
|
911
|
-
className: 'article-category',
|
|
912
|
-
style: {
|
|
913
|
-
background: '#3FB618',
|
|
914
|
-
color: '#ffffff',
|
|
915
|
-
marginBottom: '.25rem',
|
|
916
|
-
display: 'inline-block',
|
|
917
|
-
padding: '0 .25rem',
|
|
918
|
-
fontSize: '.8rem'
|
|
919
|
-
} },
|
|
920
|
-
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
921
|
-
),
|
|
922
|
-
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
923
|
-
'p',
|
|
924
|
-
{
|
|
925
|
-
className: 'issueSection',
|
|
926
|
-
style: {
|
|
927
|
-
background: '#000000',
|
|
928
|
-
color: '#ffffff',
|
|
929
|
-
marginBottom: '.25rem',
|
|
930
|
-
marginLeft: '.25rem',
|
|
931
|
-
display: 'inline-block',
|
|
932
|
-
padding: '0 .25rem',
|
|
933
|
-
fontSize: '.8rem'
|
|
934
|
-
} },
|
|
935
|
-
article.issueSection.name
|
|
936
|
-
)
|
|
937
|
-
),
|
|
938
|
-
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
939
|
-
'div',
|
|
940
|
-
{ className: 'pubInfo' },
|
|
941
|
-
article.volume && React__default.createElement(
|
|
942
|
-
'p',
|
|
943
|
-
{ className: 'qdeVolume' },
|
|
944
|
-
article.volume
|
|
945
|
-
),
|
|
946
|
-
article.issue && React__default.createElement(
|
|
947
|
-
'p',
|
|
948
|
-
{ className: 'qdeIssue' },
|
|
949
|
-
article.issue
|
|
950
|
-
)
|
|
951
|
-
),
|
|
952
|
-
showIntro && article.summary && React__default.createElement(
|
|
953
|
-
'p',
|
|
954
|
-
{ className: 'pt-2 card-text' },
|
|
955
|
-
entities.clean_html_1(article.summary)
|
|
956
|
-
)
|
|
957
|
-
)
|
|
958
|
-
);
|
|
959
|
-
}
|
|
960
|
-
} else if (article._type === 'lg-infeed' && article.adUnit) {
|
|
961
|
-
return React__default.createElement(ADlgInfeed.ADlgInfeed, _extends._extends({ index: index }, article));
|
|
962
|
-
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
963
|
-
return React__default.createElement(ADInfeed.ADInfeed, { index: index, infeedAd: article });
|
|
964
|
-
}
|
|
965
|
-
if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
|
|
966
|
-
return React__default.createElement(
|
|
967
|
-
React__default.Fragment,
|
|
968
|
-
{ key: article._id ? article._id : index },
|
|
969
|
-
React__default.createElement(
|
|
970
|
-
reactBootstrap.Media,
|
|
971
|
-
{
|
|
972
|
-
key: article._id ? article._id : index,
|
|
973
|
-
style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
974
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
975
|
-
'a',
|
|
976
|
-
{ href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
|
|
977
|
-
React__default.createElement(
|
|
978
|
-
index$2.LazyLoad,
|
|
979
|
-
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
980
|
-
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
981
|
-
),
|
|
982
|
-
article.source && React__default.createElement(
|
|
983
|
-
'div',
|
|
984
|
-
{ className: 'content-category-label' },
|
|
985
|
-
React__default.createElement(
|
|
986
|
-
'div',
|
|
987
|
-
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
988
|
-
article.source
|
|
989
|
-
)
|
|
990
|
-
)
|
|
991
|
-
),
|
|
992
|
-
React__default.createElement(
|
|
993
|
-
reactBootstrap.Media.Body,
|
|
994
|
-
null,
|
|
995
|
-
React__default.createElement(
|
|
996
|
-
'a',
|
|
997
|
-
{ href: mapping[contentCategoryName] + '/' + article.url.current },
|
|
998
|
-
article.title && React__default.createElement(
|
|
999
|
-
'h4',
|
|
1000
|
-
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
1001
|
-
article.title
|
|
1002
|
-
)
|
|
1003
|
-
),
|
|
1004
|
-
showPublished && article.published && React__default.createElement(
|
|
1005
|
-
'p',
|
|
1006
|
-
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
1007
|
-
moment.moment(article.published).format('MMMM DD, YYYY')
|
|
1008
|
-
),
|
|
1009
|
-
showTimeDiff && article.published && React__default.createElement(
|
|
1010
|
-
'p',
|
|
1011
|
-
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
1012
|
-
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
1013
|
-
if (index > 3) {
|
|
1014
|
-
return null;
|
|
1015
|
-
}
|
|
1016
|
-
if (index === 3) {
|
|
1017
|
-
return React__default.createElement(
|
|
1018
|
-
React__default.Fragment,
|
|
1019
|
-
null,
|
|
1020
|
-
React__default.createElement(
|
|
1021
|
-
'em',
|
|
1022
|
-
{ style: { marginRight: '.5rem' } },
|
|
1023
|
-
'...'
|
|
1024
|
-
)
|
|
1025
|
-
);
|
|
1026
|
-
}
|
|
1027
|
-
return React__default.createElement(
|
|
1028
|
-
React__default.Fragment,
|
|
1029
|
-
null,
|
|
1030
|
-
React__default.createElement(
|
|
1031
|
-
'em',
|
|
1032
|
-
null,
|
|
1033
|
-
taxonomy.name
|
|
1034
|
-
),
|
|
1035
|
-
' |',
|
|
1036
|
-
' '
|
|
1037
|
-
);
|
|
1038
|
-
}),
|
|
1039
|
-
' ',
|
|
1040
|
-
React__default.createElement(
|
|
1041
|
-
'span',
|
|
1042
|
-
{ style: { display: 'inline-block' } },
|
|
1043
|
-
timeDifferenceCalc(article.published)
|
|
1044
|
-
)
|
|
1045
|
-
),
|
|
1046
|
-
React__default.createElement(
|
|
1047
|
-
'div',
|
|
1048
|
-
{ className: 'author-sec', style: { lineHeight: 1.5 } },
|
|
1049
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
1050
|
-
index$2.LazyLoad,
|
|
1051
|
-
{ height: 50 },
|
|
1052
|
-
React__default.createElement(AuthorComponent.AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
1053
|
-
)
|
|
1054
|
-
),
|
|
1055
|
-
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
1056
|
-
'div',
|
|
1057
|
-
{ className: 'content-category-label' },
|
|
1058
|
-
React__default.createElement(
|
|
1059
|
-
'div',
|
|
1060
|
-
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
1061
|
-
article.source
|
|
1062
|
-
)
|
|
1063
|
-
),
|
|
1064
|
-
React__default.createElement(
|
|
1065
|
-
'div',
|
|
1066
|
-
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
1067
|
-
showCategory && article.contentCategory && React__default.createElement(
|
|
1068
|
-
'p',
|
|
1069
|
-
{
|
|
1070
|
-
className: 'article-category',
|
|
1071
|
-
style: {
|
|
1072
|
-
background: '#3FB618',
|
|
1073
|
-
color: '#ffffff',
|
|
1074
|
-
marginBottom: '.25rem',
|
|
1075
|
-
display: 'inline-block',
|
|
1076
|
-
padding: '0 .25rem',
|
|
1077
|
-
fontSize: '.8rem'
|
|
1078
|
-
} },
|
|
1079
|
-
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
1080
|
-
),
|
|
1081
|
-
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
1082
|
-
'p',
|
|
1083
|
-
{
|
|
1084
|
-
className: 'issueSection',
|
|
1085
|
-
style: {
|
|
1086
|
-
background: '#000000',
|
|
1087
|
-
color: '#ffffff',
|
|
1088
|
-
marginBottom: '.25rem',
|
|
1089
|
-
marginLeft: '.25rem',
|
|
1090
|
-
display: 'inline-block',
|
|
1091
|
-
padding: '0 .25rem',
|
|
1092
|
-
fontSize: '.8rem'
|
|
1093
|
-
} },
|
|
1094
|
-
article.issueSection.name
|
|
1095
|
-
)
|
|
1096
|
-
),
|
|
1097
|
-
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
1098
|
-
'div',
|
|
1099
|
-
{ className: 'pubInfo' },
|
|
1100
|
-
article.volume && React__default.createElement(
|
|
1101
|
-
'p',
|
|
1102
|
-
{ className: 'qdeVolume' },
|
|
1103
|
-
article.volume
|
|
1104
|
-
),
|
|
1105
|
-
article.issue && React__default.createElement(
|
|
1106
|
-
'p',
|
|
1107
|
-
{ className: 'qdeIssue' },
|
|
1108
|
-
article.issue
|
|
1109
|
-
)
|
|
1110
|
-
),
|
|
1111
|
-
showIntro && article.summary && React__default.createElement(
|
|
1112
|
-
'p',
|
|
1113
|
-
{ className: 'pt-2 card-text' },
|
|
1114
|
-
entities.clean_html_1(article.summary)
|
|
1115
|
-
)
|
|
1116
|
-
)
|
|
1117
|
-
),
|
|
1118
|
-
React__default.createElement(
|
|
1119
|
-
'div',
|
|
1120
|
-
null,
|
|
1121
|
-
main.main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
|
|
1122
|
-
)
|
|
1123
|
-
);
|
|
1124
|
-
} else return null;
|
|
1125
|
-
})
|
|
1126
|
-
) : React__default.createElement(
|
|
1127
|
-
'div',
|
|
1128
|
-
null,
|
|
1129
|
-
React__default.createElement(
|
|
1130
|
-
'h5',
|
|
1131
|
-
null,
|
|
1132
|
-
React__default.createElement(
|
|
1133
|
-
'em',
|
|
1134
|
-
null,
|
|
1135
|
-
'New content coming soon, please check back later.'
|
|
1136
|
-
)
|
|
1137
|
-
)
|
|
1138
|
-
),
|
|
1139
|
-
React__default.createElement(
|
|
1140
|
-
'style',
|
|
1141
|
-
{ jsx: 'true' },
|
|
1142
|
-
'\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 '
|
|
1143
|
-
)
|
|
1144
|
-
);
|
|
1145
|
-
};
|
|
1146
|
-
|
|
1147
|
-
var ImagePlaceholder = function ImagePlaceholder() {
|
|
1148
|
-
return React__default.createElement(
|
|
1149
|
-
React__default.Fragment,
|
|
1150
|
-
null,
|
|
1151
|
-
React__default.createElement('div', { className: 'queuedeck-exp-image-placeholder' }),
|
|
1152
|
-
React__default.createElement(
|
|
1153
|
-
'style',
|
|
1154
|
-
{ jsx: 'true' },
|
|
1155
|
-
'\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 '
|
|
1156
|
-
)
|
|
1157
|
-
);
|
|
1158
|
-
};
|
|
1159
|
-
|
|
1160
|
-
var renderMobileAd = function renderMobileAd(index, numberOfItemsBeforeAd, rightItems) {
|
|
1161
|
-
var i = numberOfItemsBeforeAd < 6 ? 0 : ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
1162
|
-
return React__default.createElement(
|
|
1163
|
-
'div',
|
|
1164
|
-
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
1165
|
-
rightItems[i].component
|
|
1166
|
-
);
|
|
1167
|
-
};
|
|
1168
|
-
|
|
1169
|
-
var usePrevious = function usePrevious(value) {
|
|
1170
|
-
var ref = React.useRef();
|
|
1171
|
-
React.useEffect(function () {
|
|
1172
|
-
ref.current = value;
|
|
1173
|
-
});
|
|
1174
|
-
return ref.current;
|
|
1175
|
-
};
|
|
1176
|
-
|
|
1177
|
-
var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
1178
|
-
var router = Router.useRouter();
|
|
1179
|
-
var initialData = props.dataRecord,
|
|
1180
|
-
initialCurrentPage = props.currentPage,
|
|
1181
|
-
client = props.client,
|
|
1182
|
-
params = props.params,
|
|
1183
|
-
query = props.query,
|
|
1184
|
-
pointer = props.pointer,
|
|
1185
|
-
pointerArray = props.pointerArray,
|
|
1186
|
-
mapping = props.mapping,
|
|
1187
|
-
seoPaginate = props.seoPaginate,
|
|
1188
|
-
pageview = props.pageview,
|
|
1189
|
-
defaultImage = props.defaultImage,
|
|
1190
|
-
showAuthor = props.showAuthor,
|
|
1191
|
-
showCategory = props.showCategory,
|
|
1192
|
-
imageHeight = props.imageHeight,
|
|
1193
|
-
imageWidth = props.imageWidth,
|
|
1194
|
-
imageMaxHeight = props.imageMaxHeight,
|
|
1195
|
-
imageFit = props.imageFit,
|
|
1196
|
-
rightItems = props.rightItems,
|
|
1197
|
-
brandInsightAd = props.brandInsightAd,
|
|
1198
|
-
_props$showBI = props.showBI,
|
|
1199
|
-
showBI = _props$showBI === undefined ? false : _props$showBI,
|
|
1200
|
-
_props$heroContent = props.heroContent,
|
|
1201
|
-
heroContent = _props$heroContent === undefined ? 0 : _props$heroContent,
|
|
1202
|
-
_props$lgInfeedAd = props.lgInfeedAd,
|
|
1203
|
-
lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd,
|
|
1204
|
-
_props$showPubInfo = props.showPubInfo,
|
|
1205
|
-
showPubInfo = _props$showPubInfo === undefined ? false : _props$showPubInfo,
|
|
1206
|
-
_props$showTimeDiff = props.showTimeDiff,
|
|
1207
|
-
showTimeDiff = _props$showTimeDiff === undefined ? false : _props$showTimeDiff,
|
|
1208
|
-
_props$showTaxonomies = props.showTaxonomies,
|
|
1209
|
-
showTaxonomies = _props$showTaxonomies === undefined ? false : _props$showTaxonomies,
|
|
1210
|
-
_props$showIntro = props.showIntro,
|
|
1211
|
-
showIntro = _props$showIntro === undefined ? true : _props$showIntro,
|
|
1212
|
-
_props$contentCategor = props.contentCategoryMapping,
|
|
1213
|
-
contentCategoryMapping = _props$contentCategor === undefined ? [] : _props$contentCategor,
|
|
1214
|
-
showPublished = props.showPublished,
|
|
1215
|
-
totalDataCount = props.totalDataCount;
|
|
1216
|
-
|
|
1217
|
-
var _useState3 = React.useState(initialData),
|
|
1218
|
-
_useState4 = slicedToArray._slicedToArray(_useState3, 2),
|
|
1219
|
-
data = _useState4[0],
|
|
1220
|
-
setData = _useState4[1];
|
|
1221
|
-
|
|
1222
|
-
var _useState5 = React.useState(false),
|
|
1223
|
-
_useState6 = slicedToArray._slicedToArray(_useState5, 2),
|
|
1224
|
-
isDataLoading = _useState6[0],
|
|
1225
|
-
setIsDataLoading = _useState6[1];
|
|
1226
|
-
|
|
1227
|
-
var _useState7 = React.useState(initialCurrentPage || 1),
|
|
1228
|
-
_useState8 = slicedToArray._slicedToArray(_useState7, 2),
|
|
1229
|
-
currentPage = _useState8[0],
|
|
1230
|
-
setCurrentPage = _useState8[1];
|
|
1231
|
-
|
|
1232
|
-
var itemsPerPage = params && params.itemsPerPage ? params.itemsPerPage : params && params.from && params.to ? params.to - params.from : 10;
|
|
1233
|
-
|
|
1234
|
-
// Logging GA Pageview on path change
|
|
1235
|
-
var prevPath = usePrevious(lodash.lodash.get(router, 'asPath', undefined));
|
|
1236
|
-
React.useEffect(function () {
|
|
1237
|
-
var currentPath = router.asPath;
|
|
1238
|
-
if (prevPath && prevPath !== currentPath && pageview) {
|
|
1239
|
-
pageview(router.asPath);
|
|
1240
|
-
}
|
|
1241
|
-
}, [router]);
|
|
1242
|
-
|
|
1243
|
-
var seoPagination = function seoPagination(pageNumber) {
|
|
1244
|
-
var path = router.asPath;
|
|
1245
|
-
var qrIndex = path.indexOf('?');
|
|
1246
|
-
var pathname = router.pathname;
|
|
1247
|
-
var queryString = '';
|
|
1248
|
-
if (qrIndex > 0) {
|
|
1249
|
-
path = path.substring(1, qrIndex);
|
|
1250
|
-
var partialQS = router.asPath.substring(qrIndex + 1);
|
|
1251
|
-
var partialQSArr = partialQS.split('&');
|
|
1252
|
-
// exclude page=xxx from query string
|
|
1253
|
-
partialQSArr.map(function (item) {
|
|
1254
|
-
var itemArr = item.split('=');
|
|
1255
|
-
var key = itemArr[0];
|
|
1256
|
-
var val = itemArr[1];
|
|
1257
|
-
if (key !== 'page') queryString += (queryString.length === 0 ? '' : '&') + key + '=' + val;
|
|
1258
|
-
});
|
|
1259
|
-
}
|
|
1260
|
-
if (queryString.length > 0) path += '?' + queryString;
|
|
1261
|
-
pageNumber = parseInt(pageNumber);
|
|
1262
|
-
if (currentPage !== pageNumber) {
|
|
1263
|
-
if (path[0] !== '/') path = '/' + path;
|
|
1264
|
-
var newPath = pageNumber === 1 ? '' + path : '' + path + (queryString.length > 0 ? '&' : '?') + 'page=' + pageNumber;
|
|
1265
|
-
router.push(pathname, newPath, {
|
|
1266
|
-
shallow: true
|
|
1267
|
-
});
|
|
1268
|
-
}
|
|
1269
|
-
};
|
|
1270
|
-
|
|
1271
|
-
var handlePageChange = function () {
|
|
1272
|
-
var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(selectedPage) {
|
|
1273
|
-
var start, newParams, newData;
|
|
1274
|
-
return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
|
|
1275
|
-
while (1) {
|
|
1276
|
-
switch (_context.prev = _context.next) {
|
|
1277
|
-
case 0:
|
|
1278
|
-
setIsDataLoading(true);
|
|
1279
|
-
setCurrentPage(selectedPage);
|
|
1280
|
-
seoPaginate && seoPagination(selectedPage);
|
|
1281
|
-
index.lib_3.refresh();
|
|
1282
|
-
document.body.scrollTop = 0;
|
|
1283
|
-
document.documentElement.scrollTop = 0;
|
|
1284
|
-
start = (selectedPage - 1) * itemsPerPage;
|
|
1285
|
-
newParams = _extends._extends({}, params, {
|
|
1286
|
-
from: start,
|
|
1287
|
-
to: start + itemsPerPage
|
|
1288
|
-
});
|
|
1289
|
-
_context.prev = 8;
|
|
1290
|
-
_context.next = 11;
|
|
1291
|
-
return client.fetch(query, newParams);
|
|
1292
|
-
|
|
1293
|
-
case 11:
|
|
1294
|
-
newData = _context.sent;
|
|
1295
|
-
|
|
1296
|
-
if (pointer && pointerArray) newData = newData[pointerArray][pointer];
|
|
1297
|
-
if (newData && newData.length > 0) {
|
|
1298
|
-
setIsDataLoading(false);
|
|
1299
|
-
setData(newData);
|
|
1300
|
-
}
|
|
1301
|
-
_context.next = 19;
|
|
1302
|
-
break;
|
|
1303
|
-
|
|
1304
|
-
case 16:
|
|
1305
|
-
_context.prev = 16;
|
|
1306
|
-
_context.t0 = _context['catch'](8);
|
|
1307
|
-
|
|
1308
|
-
console.error(_context.t0);
|
|
1309
|
-
|
|
1310
|
-
case 19:
|
|
1311
|
-
case 'end':
|
|
1312
|
-
return _context.stop();
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
}, _callee, _this, [[8, 16]]);
|
|
1316
|
-
}));
|
|
3
|
+
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
4
|
+
var toConsumableArray = require('./toConsumableArray-d7797c2b.js');
|
|
5
|
+
var _extends = require('./extends-7c86182f.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var reactBootstrap = require('react-bootstrap');
|
|
8
|
+
var urlFor = require('./urlFor.js');
|
|
9
|
+
var index_es = require('./index.es-f3e47207.js');
|
|
10
|
+
var moment = require('./moment-aca40de1.js');
|
|
11
|
+
var visibilitySensor = require('./visibility-sensor-eb2c5b69.js');
|
|
12
|
+
var index$1 = require('./index-fc2f1ca2.js');
|
|
13
|
+
var Router = require('next/router');
|
|
14
|
+
var index = require('./index-eadd5035.js');
|
|
15
|
+
var main = require('./main-f1c77adb.js');
|
|
16
|
+
var entities = require('./entities-df1aed86.js');
|
|
17
|
+
var ADInfeed = require('./ADInfeed-bce0ba07.js');
|
|
18
|
+
var AuthorComponent = require('./AuthorComponent-39b37d84.js');
|
|
19
|
+
var lodash = require('./lodash-f0783643.js');
|
|
20
|
+
var ADlgInfeed = require('./ADlgInfeed-950b414b.js');
|
|
21
|
+
var getContentCategory = require('./getContentCategory-f38a4c00.js');
|
|
22
|
+
var timeDifferenceCalc = require('./timeDifferenceCalc.js');
|
|
23
|
+
require('./_commonjsHelpers-06173234.js');
|
|
24
|
+
require('./web.dom.iterable-d98303e0.js');
|
|
25
|
+
require('./core.get-iterator-method-5643aa10.js');
|
|
26
|
+
require('./_iter-detect-b1df62f0.js');
|
|
27
|
+
require('./_object-pie-083f2dd6.js');
|
|
28
|
+
require('./index-d48b231c.js');
|
|
29
|
+
require('react-dom');
|
|
30
|
+
require('./events-1b438fe7.js');
|
|
31
|
+
require('prop-types');
|
|
32
|
+
require('react-bootstrap/Card');
|
|
33
|
+
require('./AdSlot.js');
|
|
34
|
+
require('./debounce-d4a2369b.js');
|
|
35
|
+
require('./isSymbol-03abbdf0.js');
|
|
36
|
+
require('./toNumber-5e1fac58.js');
|
|
37
|
+
require('./Beam.js');
|
|
38
|
+
require('./stringify-f7a37a8d.js');
|
|
39
|
+
require('./asyncToGenerator-77821af0.js');
|
|
40
|
+
require('./_library-dd23b178.js');
|
|
41
|
+
require('./Segment.js');
|
|
1317
42
|
|
|
1318
|
-
|
|
1319
|
-
return _ref2.apply(this, arguments);
|
|
1320
|
-
};
|
|
1321
|
-
}();
|
|
43
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
1322
44
|
|
|
1323
|
-
|
|
1324
|
-
'div',
|
|
1325
|
-
{ className: 'queuedeck-expanded' },
|
|
1326
|
-
isDataLoading ? React__default.createElement(
|
|
1327
|
-
'div',
|
|
1328
|
-
{ className: 'd-flex justify-content-center', style: { marginTop: '100px' } },
|
|
1329
|
-
React__default.createElement(
|
|
1330
|
-
reactBootstrap.Spinner,
|
|
1331
|
-
{ animation: 'border', role: 'status' },
|
|
1332
|
-
React__default.createElement(
|
|
1333
|
-
'span',
|
|
1334
|
-
{ className: 'sr-only' },
|
|
1335
|
-
'Loading...'
|
|
1336
|
-
)
|
|
1337
|
-
)
|
|
1338
|
-
) : React__default.createElement(
|
|
1339
|
-
reactBootstrap.Container,
|
|
1340
|
-
null,
|
|
1341
|
-
React__default.createElement(CardLoader, {
|
|
1342
|
-
data: data,
|
|
1343
|
-
client: client,
|
|
1344
|
-
mapping: mapping,
|
|
1345
|
-
showPublished: showPublished,
|
|
1346
|
-
defaultImage: defaultImage,
|
|
1347
|
-
showAuthor: showAuthor,
|
|
1348
|
-
showCategory: showCategory,
|
|
1349
|
-
imageHeight: imageHeight,
|
|
1350
|
-
imageWidth: imageWidth,
|
|
1351
|
-
imageMaxHeight: imageMaxHeight,
|
|
1352
|
-
imageFit: imageFit,
|
|
1353
|
-
rightItems: rightItems,
|
|
1354
|
-
brandInsightAd: brandInsightAd,
|
|
1355
|
-
showBI: showBI,
|
|
1356
|
-
heroContent: heroContent,
|
|
1357
|
-
lgInfeedAd: lgInfeedAd,
|
|
1358
|
-
showPubInfo: showPubInfo,
|
|
1359
|
-
contentCategoryMapping: contentCategoryMapping,
|
|
1360
|
-
showTimeDif: showTimeDiff,
|
|
1361
|
-
showTaxonomies: showTaxonomies,
|
|
1362
|
-
showIntro: showIntro
|
|
1363
|
-
}),
|
|
1364
|
-
React__default.createElement(
|
|
1365
|
-
'div',
|
|
1366
|
-
{ className: 'pagination-wrapper' },
|
|
1367
|
-
React__default.createElement(Pagination.Pagination, { pageCount: Math.ceil(totalDataCount / itemsPerPage), pageRangeDisplayed: main.main_36 ? 3 : 9, currentPage: currentPage, onPageChange: handlePageChange }),
|
|
1368
|
-
React__default.createElement(
|
|
1369
|
-
'style',
|
|
1370
|
-
{ jsx: 'true' },
|
|
1371
|
-
'\n .pagination-wrapper {\n margin: 3rem 0;\n }\n @media only screen and (max-width: 768px) {\n .pagination-wrapper {\n margin-bottom: 6rem;\n }\n }\n '
|
|
1372
|
-
)
|
|
1373
|
-
)
|
|
1374
|
-
)
|
|
1375
|
-
);
|
|
1376
|
-
};
|
|
45
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
1377
46
|
|
|
1378
|
-
var renderCardImage
|
|
47
|
+
var renderCardImage = function renderCardImage(row, client) {
|
|
1379
48
|
var imageHeight = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
1380
49
|
var imageWidth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
1381
50
|
var imageMaxHeight = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
@@ -1464,7 +133,7 @@ var changePageNumber = function changePageNumber(pageNumber, seoPaginate, pagevi
|
|
|
1464
133
|
// pageNumber = Math.ceil((index + 1) / perPage)
|
|
1465
134
|
|
|
1466
135
|
if (currentPage !== pageNumber) {
|
|
1467
|
-
index.lib_3.refresh();
|
|
136
|
+
index$1.lib_3.refresh();
|
|
1468
137
|
|
|
1469
138
|
setCurrentPage(pageNumber);
|
|
1470
139
|
if (path[0] !== '/') {
|
|
@@ -1484,7 +153,7 @@ var changePageNumber = function changePageNumber(pageNumber, seoPaginate, pagevi
|
|
|
1484
153
|
}
|
|
1485
154
|
};
|
|
1486
155
|
|
|
1487
|
-
var checkExternalUrl
|
|
156
|
+
var checkExternalUrl = function checkExternalUrl(url) {
|
|
1488
157
|
return new RegExp(['http', 'https'].join('|')).test(url);
|
|
1489
158
|
};
|
|
1490
159
|
|
|
@@ -1589,70 +258,70 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1589
258
|
});
|
|
1590
259
|
|
|
1591
260
|
var featureCount = 0;
|
|
1592
|
-
return React__default.createElement(
|
|
261
|
+
return React__default['default'].createElement(
|
|
1593
262
|
'div',
|
|
1594
263
|
null,
|
|
1595
264
|
data && data.length > 0 ? dataRemapped ? // For Javascript Enabled Cases
|
|
1596
|
-
data.map(function (article, index) {
|
|
265
|
+
data.map(function (article, index$1) {
|
|
1597
266
|
var pageNumber = article.pageNumber || values.page;
|
|
1598
267
|
var contentCategoryName = article.contentCategory ? article.contentCategory.name : 'Articles';
|
|
1599
268
|
|
|
1600
269
|
if (article._type === 'feature') {
|
|
1601
270
|
featureCount++;
|
|
1602
|
-
if (article.blank || checkExternalUrl
|
|
1603
|
-
return React__default.createElement(
|
|
271
|
+
if (article.blank || checkExternalUrl(article.url.current)) {
|
|
272
|
+
return React__default['default'].createElement(
|
|
1604
273
|
visibilitySensor.VisibilitySensor,
|
|
1605
274
|
{
|
|
1606
|
-
key: article._id ? article._id : index,
|
|
275
|
+
key: article._id ? article._id : index$1,
|
|
1607
276
|
partialVisibility: true,
|
|
1608
277
|
onChange: function onChange(isVisible) {
|
|
1609
278
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
|
|
1610
279
|
} },
|
|
1611
|
-
React__default.createElement(
|
|
1612
|
-
React__default.Fragment,
|
|
280
|
+
React__default['default'].createElement(
|
|
281
|
+
React__default['default'].Fragment,
|
|
1613
282
|
null,
|
|
1614
|
-
React__default.createElement(
|
|
283
|
+
React__default['default'].createElement(
|
|
1615
284
|
reactBootstrap.Media,
|
|
1616
285
|
{
|
|
1617
|
-
key: article._id ? article._id : index,
|
|
286
|
+
key: article._id ? article._id : index$1,
|
|
1618
287
|
className: 'feature-media',
|
|
1619
288
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
1620
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
289
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default['default'].createElement(
|
|
1621
290
|
'a',
|
|
1622
291
|
{ rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
1623
|
-
React__default.createElement(
|
|
1624
|
-
index
|
|
1625
|
-
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder
|
|
1626
|
-
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'img-fluid', src: renderCardImage
|
|
292
|
+
React__default['default'].createElement(
|
|
293
|
+
index.LazyLoad,
|
|
294
|
+
{ height: imageHeight, placeholder: React__default['default'].createElement(ImagePlaceholder, null) },
|
|
295
|
+
article.thumbnail && article.thumbnail.asset ? React__default['default'].createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default['default'].createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default['default'].createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
1627
296
|
),
|
|
1628
|
-
article.source && React__default.createElement(
|
|
297
|
+
article.source && React__default['default'].createElement(
|
|
1629
298
|
'div',
|
|
1630
299
|
{ className: 'content-category-label' },
|
|
1631
|
-
React__default.createElement(
|
|
300
|
+
React__default['default'].createElement(
|
|
1632
301
|
'div',
|
|
1633
302
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
1634
303
|
article.source
|
|
1635
304
|
)
|
|
1636
305
|
)
|
|
1637
306
|
),
|
|
1638
|
-
React__default.createElement(
|
|
307
|
+
React__default['default'].createElement(
|
|
1639
308
|
reactBootstrap.Media.Body,
|
|
1640
309
|
null,
|
|
1641
|
-
React__default.createElement(
|
|
310
|
+
React__default['default'].createElement(
|
|
1642
311
|
'a',
|
|
1643
312
|
{ rel: 'noopener', href: article.url.current, target: '_blank' },
|
|
1644
|
-
article.title && React__default.createElement(
|
|
313
|
+
article.title && React__default['default'].createElement(
|
|
1645
314
|
'h4',
|
|
1646
315
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
1647
316
|
article.title
|
|
1648
317
|
)
|
|
1649
318
|
),
|
|
1650
|
-
showPublished && !showTimeDiff && article.published && React__default.createElement(
|
|
319
|
+
showPublished && !showTimeDiff && article.published && React__default['default'].createElement(
|
|
1651
320
|
'p',
|
|
1652
321
|
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
1653
322
|
moment.moment(article.published).format('MMMM DD, YYYY')
|
|
1654
323
|
),
|
|
1655
|
-
showTimeDiff && article.published && React__default.createElement(
|
|
324
|
+
showTimeDiff && article.published && React__default['default'].createElement(
|
|
1656
325
|
'p',
|
|
1657
326
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
1658
327
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -1660,20 +329,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1660
329
|
return null;
|
|
1661
330
|
}
|
|
1662
331
|
if (index === 3) {
|
|
1663
|
-
return React__default.createElement(
|
|
1664
|
-
React__default.Fragment,
|
|
332
|
+
return React__default['default'].createElement(
|
|
333
|
+
React__default['default'].Fragment,
|
|
1665
334
|
null,
|
|
1666
|
-
React__default.createElement(
|
|
335
|
+
React__default['default'].createElement(
|
|
1667
336
|
'em',
|
|
1668
337
|
{ style: { marginRight: '.5rem' } },
|
|
1669
338
|
'...'
|
|
1670
339
|
)
|
|
1671
340
|
);
|
|
1672
341
|
}
|
|
1673
|
-
return React__default.createElement(
|
|
1674
|
-
React__default.Fragment,
|
|
342
|
+
return React__default['default'].createElement(
|
|
343
|
+
React__default['default'].Fragment,
|
|
1675
344
|
null,
|
|
1676
|
-
React__default.createElement(
|
|
345
|
+
React__default['default'].createElement(
|
|
1677
346
|
'em',
|
|
1678
347
|
null,
|
|
1679
348
|
taxonomy.name
|
|
@@ -1683,30 +352,30 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1683
352
|
);
|
|
1684
353
|
}),
|
|
1685
354
|
' ',
|
|
1686
|
-
React__default.createElement(
|
|
355
|
+
React__default['default'].createElement(
|
|
1687
356
|
'span',
|
|
1688
357
|
{ style: { display: 'inline-block' } },
|
|
1689
358
|
timeDifferenceCalc(article.published)
|
|
1690
359
|
)
|
|
1691
360
|
),
|
|
1692
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
1693
|
-
index
|
|
361
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default['default'].createElement(
|
|
362
|
+
index.LazyLoad,
|
|
1694
363
|
{ height: 50 },
|
|
1695
|
-
React__default.createElement(AuthorComponent.AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
364
|
+
React__default['default'].createElement(AuthorComponent.AuthorComponent, { key: index$1.toString(), index: index$1, authors: article.authorMapping })
|
|
1696
365
|
),
|
|
1697
|
-
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
366
|
+
!article.thumbnail && !defaultImage && article.source && React__default['default'].createElement(
|
|
1698
367
|
'div',
|
|
1699
368
|
{ className: 'content-category-label' },
|
|
1700
|
-
React__default.createElement(
|
|
369
|
+
React__default['default'].createElement(
|
|
1701
370
|
'div',
|
|
1702
371
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
1703
372
|
article.source
|
|
1704
373
|
)
|
|
1705
374
|
),
|
|
1706
|
-
React__default.createElement(
|
|
375
|
+
React__default['default'].createElement(
|
|
1707
376
|
'div',
|
|
1708
377
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
1709
|
-
showCategory && article.contentCategory && React__default.createElement(
|
|
378
|
+
showCategory && article.contentCategory && React__default['default'].createElement(
|
|
1710
379
|
'p',
|
|
1711
380
|
{
|
|
1712
381
|
className: 'article-category',
|
|
@@ -1720,7 +389,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1720
389
|
} },
|
|
1721
390
|
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
1722
391
|
),
|
|
1723
|
-
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
392
|
+
article.issueSection && article.issueSection.name && React__default['default'].createElement(
|
|
1724
393
|
'p',
|
|
1725
394
|
{
|
|
1726
395
|
className: 'issueSection',
|
|
@@ -1736,21 +405,21 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1736
405
|
article.issueSection.name
|
|
1737
406
|
)
|
|
1738
407
|
),
|
|
1739
|
-
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
408
|
+
showPubInfo && (article.issue || article.volume) && React__default['default'].createElement(
|
|
1740
409
|
'div',
|
|
1741
410
|
{ className: 'pubInfo' },
|
|
1742
|
-
article.volume && React__default.createElement(
|
|
411
|
+
article.volume && React__default['default'].createElement(
|
|
1743
412
|
'p',
|
|
1744
413
|
{ className: 'qdeVolume' },
|
|
1745
414
|
article.volume
|
|
1746
415
|
),
|
|
1747
|
-
article.issue && React__default.createElement(
|
|
416
|
+
article.issue && React__default['default'].createElement(
|
|
1748
417
|
'p',
|
|
1749
418
|
{ className: 'qdeIssue' },
|
|
1750
419
|
article.issue
|
|
1751
420
|
)
|
|
1752
421
|
),
|
|
1753
|
-
showIntro && article.summary && React__default.createElement(
|
|
422
|
+
showIntro && article.summary && React__default['default'].createElement(
|
|
1754
423
|
'p',
|
|
1755
424
|
{ className: 'pt-2 card-text' },
|
|
1756
425
|
entities.clean_html_1(article.summary)
|
|
@@ -1760,59 +429,59 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1760
429
|
)
|
|
1761
430
|
);
|
|
1762
431
|
} else {
|
|
1763
|
-
return React__default.createElement(
|
|
432
|
+
return React__default['default'].createElement(
|
|
1764
433
|
visibilitySensor.VisibilitySensor,
|
|
1765
434
|
{
|
|
1766
|
-
key: article._id ? article._id : index,
|
|
435
|
+
key: article._id ? article._id : index$1,
|
|
1767
436
|
partialVisibility: true,
|
|
1768
437
|
onChange: function onChange(isVisible) {
|
|
1769
438
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
|
|
1770
439
|
} },
|
|
1771
|
-
React__default.createElement(
|
|
1772
|
-
React__default.Fragment,
|
|
440
|
+
React__default['default'].createElement(
|
|
441
|
+
React__default['default'].Fragment,
|
|
1773
442
|
null,
|
|
1774
|
-
React__default.createElement(
|
|
443
|
+
React__default['default'].createElement(
|
|
1775
444
|
reactBootstrap.Media,
|
|
1776
445
|
{
|
|
1777
|
-
key: article._id ? article._id : index,
|
|
446
|
+
key: article._id ? article._id : index$1,
|
|
1778
447
|
className: 'feature-media',
|
|
1779
448
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
1780
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
449
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default['default'].createElement(
|
|
1781
450
|
'a',
|
|
1782
451
|
{ href: article.url.current, className: 'feature-wrapper' },
|
|
1783
|
-
React__default.createElement(
|
|
1784
|
-
index
|
|
1785
|
-
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder
|
|
1786
|
-
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'img-fluid', src: renderCardImage
|
|
452
|
+
React__default['default'].createElement(
|
|
453
|
+
index.LazyLoad,
|
|
454
|
+
{ height: imageHeight, placeholder: React__default['default'].createElement(ImagePlaceholder, null) },
|
|
455
|
+
article.thumbnail && article.thumbnail.asset ? React__default['default'].createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default['default'].createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default['default'].createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
1787
456
|
),
|
|
1788
|
-
article.source && React__default.createElement(
|
|
457
|
+
article.source && React__default['default'].createElement(
|
|
1789
458
|
'div',
|
|
1790
459
|
{ className: 'content-category-label' },
|
|
1791
|
-
React__default.createElement(
|
|
460
|
+
React__default['default'].createElement(
|
|
1792
461
|
'div',
|
|
1793
462
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
1794
463
|
article.source
|
|
1795
464
|
)
|
|
1796
465
|
)
|
|
1797
466
|
),
|
|
1798
|
-
React__default.createElement(
|
|
467
|
+
React__default['default'].createElement(
|
|
1799
468
|
reactBootstrap.Media.Body,
|
|
1800
469
|
null,
|
|
1801
|
-
React__default.createElement(
|
|
470
|
+
React__default['default'].createElement(
|
|
1802
471
|
'a',
|
|
1803
472
|
{ href: article.url.current },
|
|
1804
|
-
article.title && React__default.createElement(
|
|
473
|
+
article.title && React__default['default'].createElement(
|
|
1805
474
|
'h4',
|
|
1806
475
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
1807
476
|
article.title
|
|
1808
477
|
)
|
|
1809
478
|
),
|
|
1810
|
-
showPublished && !showTimeDiff && article.published && React__default.createElement(
|
|
479
|
+
showPublished && !showTimeDiff && article.published && React__default['default'].createElement(
|
|
1811
480
|
'p',
|
|
1812
481
|
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
1813
482
|
moment.moment(article.published).format('MMMM DD, YYYY')
|
|
1814
483
|
),
|
|
1815
|
-
showTimeDiff && article.published && React__default.createElement(
|
|
484
|
+
showTimeDiff && article.published && React__default['default'].createElement(
|
|
1816
485
|
'p',
|
|
1817
486
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
1818
487
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -1820,10 +489,10 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1820
489
|
return null;
|
|
1821
490
|
}
|
|
1822
491
|
if (index === 3) {
|
|
1823
|
-
return React__default.createElement(
|
|
1824
|
-
React__default.Fragment,
|
|
492
|
+
return React__default['default'].createElement(
|
|
493
|
+
React__default['default'].Fragment,
|
|
1825
494
|
null,
|
|
1826
|
-
React__default.createElement(
|
|
495
|
+
React__default['default'].createElement(
|
|
1827
496
|
'em',
|
|
1828
497
|
{ style: { marginRight: '.5rem' } },
|
|
1829
498
|
'...'
|
|
@@ -1831,20 +500,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1831
500
|
);
|
|
1832
501
|
}
|
|
1833
502
|
if (index === 3) {
|
|
1834
|
-
return React__default.createElement(
|
|
1835
|
-
React__default.Fragment,
|
|
503
|
+
return React__default['default'].createElement(
|
|
504
|
+
React__default['default'].Fragment,
|
|
1836
505
|
null,
|
|
1837
|
-
React__default.createElement(
|
|
506
|
+
React__default['default'].createElement(
|
|
1838
507
|
'em',
|
|
1839
508
|
{ style: { marginRight: '.5rem' } },
|
|
1840
509
|
'...'
|
|
1841
510
|
)
|
|
1842
511
|
);
|
|
1843
512
|
}
|
|
1844
|
-
return React__default.createElement(
|
|
1845
|
-
React__default.Fragment,
|
|
513
|
+
return React__default['default'].createElement(
|
|
514
|
+
React__default['default'].Fragment,
|
|
1846
515
|
null,
|
|
1847
|
-
React__default.createElement(
|
|
516
|
+
React__default['default'].createElement(
|
|
1848
517
|
'em',
|
|
1849
518
|
null,
|
|
1850
519
|
taxonomy.name
|
|
@@ -1854,30 +523,30 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1854
523
|
);
|
|
1855
524
|
}),
|
|
1856
525
|
' ',
|
|
1857
|
-
React__default.createElement(
|
|
526
|
+
React__default['default'].createElement(
|
|
1858
527
|
'span',
|
|
1859
528
|
{ style: { display: 'inline-block' } },
|
|
1860
529
|
timeDifferenceCalc(article.published)
|
|
1861
530
|
)
|
|
1862
531
|
),
|
|
1863
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
1864
|
-
index
|
|
532
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default['default'].createElement(
|
|
533
|
+
index.LazyLoad,
|
|
1865
534
|
{ height: 50 },
|
|
1866
|
-
React__default.createElement(AuthorComponent.AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
535
|
+
React__default['default'].createElement(AuthorComponent.AuthorComponent, { key: index$1.toString(), index: index$1, authors: article.authorMapping })
|
|
1867
536
|
),
|
|
1868
|
-
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
537
|
+
!article.thumbnail && !defaultImage && article.source && React__default['default'].createElement(
|
|
1869
538
|
'div',
|
|
1870
539
|
{ className: 'content-category-label' },
|
|
1871
|
-
React__default.createElement(
|
|
540
|
+
React__default['default'].createElement(
|
|
1872
541
|
'div',
|
|
1873
542
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
1874
543
|
article.source
|
|
1875
544
|
)
|
|
1876
545
|
),
|
|
1877
|
-
React__default.createElement(
|
|
546
|
+
React__default['default'].createElement(
|
|
1878
547
|
'div',
|
|
1879
548
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
1880
|
-
showCategory && article.contentCategory && React__default.createElement(
|
|
549
|
+
showCategory && article.contentCategory && React__default['default'].createElement(
|
|
1881
550
|
'p',
|
|
1882
551
|
{
|
|
1883
552
|
className: 'article-category',
|
|
@@ -1891,7 +560,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1891
560
|
} },
|
|
1892
561
|
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
1893
562
|
),
|
|
1894
|
-
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
563
|
+
article.issueSection && article.issueSection.name && React__default['default'].createElement(
|
|
1895
564
|
'p',
|
|
1896
565
|
{
|
|
1897
566
|
className: 'issueSection',
|
|
@@ -1907,21 +576,21 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1907
576
|
article.issueSection.name
|
|
1908
577
|
)
|
|
1909
578
|
),
|
|
1910
|
-
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
579
|
+
showPubInfo && (article.issue || article.volume) && React__default['default'].createElement(
|
|
1911
580
|
'div',
|
|
1912
581
|
{ className: 'pubInfo' },
|
|
1913
|
-
article.volume && React__default.createElement(
|
|
582
|
+
article.volume && React__default['default'].createElement(
|
|
1914
583
|
'p',
|
|
1915
584
|
{ className: 'qdeVolume' },
|
|
1916
585
|
article.volume
|
|
1917
586
|
),
|
|
1918
|
-
article.issue && React__default.createElement(
|
|
587
|
+
article.issue && React__default['default'].createElement(
|
|
1919
588
|
'p',
|
|
1920
589
|
{ className: 'qdeIssue' },
|
|
1921
590
|
article.issue
|
|
1922
591
|
)
|
|
1923
592
|
),
|
|
1924
|
-
showIntro && article.summary && React__default.createElement(
|
|
593
|
+
showIntro && article.summary && React__default['default'].createElement(
|
|
1925
594
|
'p',
|
|
1926
595
|
{ className: 'pt-2 card-text' },
|
|
1927
596
|
entities.clean_html_1(article.summary)
|
|
@@ -1932,63 +601,63 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1932
601
|
);
|
|
1933
602
|
}
|
|
1934
603
|
} else if (article._type === 'lg-infeed' && article.adUnit) {
|
|
1935
|
-
return React__default.createElement(ADlgInfeed.ADlgInfeed, _extends._extends({ index: index }, article));
|
|
604
|
+
return React__default['default'].createElement(ADlgInfeed.ADlgInfeed, _extends._extends({ index: index$1 }, article));
|
|
1936
605
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
1937
|
-
return React__default.createElement(ADInfeed.ADInfeed, { index: index, infeedAd: article });
|
|
606
|
+
return React__default['default'].createElement(ADInfeed.ADInfeed, { index: index$1, infeedAd: article });
|
|
1938
607
|
}
|
|
1939
|
-
if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
|
|
1940
|
-
return React__default.createElement(
|
|
608
|
+
if ((brandInsightAd ? index$1 > heroContent + featureCount : index$1 + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
|
|
609
|
+
return React__default['default'].createElement(
|
|
1941
610
|
visibilitySensor.VisibilitySensor,
|
|
1942
611
|
{
|
|
1943
|
-
key: article._id ? article._id : index,
|
|
612
|
+
key: article._id ? article._id : index$1,
|
|
1944
613
|
onChange: function onChange(isVisible) {
|
|
1945
614
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of artilce only.
|
|
1946
|
-
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, article.articleCount ? article.articleCount : index);
|
|
615
|
+
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, article.articleCount ? article.articleCount : index$1);
|
|
1947
616
|
} },
|
|
1948
|
-
React__default.createElement(
|
|
1949
|
-
React__default.Fragment,
|
|
617
|
+
React__default['default'].createElement(
|
|
618
|
+
React__default['default'].Fragment,
|
|
1950
619
|
null,
|
|
1951
|
-
React__default.createElement(
|
|
620
|
+
React__default['default'].createElement(
|
|
1952
621
|
reactBootstrap.Media,
|
|
1953
622
|
{
|
|
1954
|
-
key: article._id ? article._id : index,
|
|
623
|
+
key: article._id ? article._id : index$1,
|
|
1955
624
|
style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
1956
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
625
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default['default'].createElement(
|
|
1957
626
|
'a',
|
|
1958
627
|
{ href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
|
|
1959
|
-
React__default.createElement(
|
|
1960
|
-
index
|
|
1961
|
-
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder
|
|
1962
|
-
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage
|
|
628
|
+
React__default['default'].createElement(
|
|
629
|
+
index.LazyLoad,
|
|
630
|
+
{ height: imageHeight, placeholder: React__default['default'].createElement(ImagePlaceholder, null) },
|
|
631
|
+
article.thumbnail && article.thumbnail.asset ? React__default['default'].createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default['default'].createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default['default'].createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
1963
632
|
),
|
|
1964
|
-
article.source && React__default.createElement(
|
|
633
|
+
article.source && React__default['default'].createElement(
|
|
1965
634
|
'div',
|
|
1966
635
|
{ className: 'content-category-label' },
|
|
1967
|
-
React__default.createElement(
|
|
636
|
+
React__default['default'].createElement(
|
|
1968
637
|
'div',
|
|
1969
638
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
1970
639
|
article.source
|
|
1971
640
|
)
|
|
1972
641
|
)
|
|
1973
642
|
),
|
|
1974
|
-
React__default.createElement(
|
|
643
|
+
React__default['default'].createElement(
|
|
1975
644
|
reactBootstrap.Media.Body,
|
|
1976
645
|
null,
|
|
1977
|
-
React__default.createElement(
|
|
646
|
+
React__default['default'].createElement(
|
|
1978
647
|
'a',
|
|
1979
648
|
{ href: mapping[contentCategoryName] + '/' + article.url.current },
|
|
1980
|
-
article.title && React__default.createElement(
|
|
649
|
+
article.title && React__default['default'].createElement(
|
|
1981
650
|
'h4',
|
|
1982
651
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
1983
652
|
article.title
|
|
1984
653
|
)
|
|
1985
654
|
),
|
|
1986
|
-
showPublished && !showTimeDiff && article.published && React__default.createElement(
|
|
655
|
+
showPublished && !showTimeDiff && article.published && React__default['default'].createElement(
|
|
1987
656
|
'p',
|
|
1988
657
|
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
1989
658
|
moment.moment(article.published).format('MMMM DD, YYYY')
|
|
1990
659
|
),
|
|
1991
|
-
showTimeDiff && article.published && React__default.createElement(
|
|
660
|
+
showTimeDiff && article.published && React__default['default'].createElement(
|
|
1992
661
|
'p',
|
|
1993
662
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
1994
663
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -1996,20 +665,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1996
665
|
return null;
|
|
1997
666
|
}
|
|
1998
667
|
if (index === 3) {
|
|
1999
|
-
return React__default.createElement(
|
|
2000
|
-
React__default.Fragment,
|
|
668
|
+
return React__default['default'].createElement(
|
|
669
|
+
React__default['default'].Fragment,
|
|
2001
670
|
null,
|
|
2002
|
-
React__default.createElement(
|
|
671
|
+
React__default['default'].createElement(
|
|
2003
672
|
'em',
|
|
2004
673
|
{ style: { marginRight: '.5rem' } },
|
|
2005
674
|
'...'
|
|
2006
675
|
)
|
|
2007
676
|
);
|
|
2008
677
|
}
|
|
2009
|
-
return React__default.createElement(
|
|
2010
|
-
React__default.Fragment,
|
|
678
|
+
return React__default['default'].createElement(
|
|
679
|
+
React__default['default'].Fragment,
|
|
2011
680
|
null,
|
|
2012
|
-
React__default.createElement(
|
|
681
|
+
React__default['default'].createElement(
|
|
2013
682
|
'em',
|
|
2014
683
|
null,
|
|
2015
684
|
taxonomy.name
|
|
@@ -2019,34 +688,34 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2019
688
|
);
|
|
2020
689
|
}),
|
|
2021
690
|
' ',
|
|
2022
|
-
React__default.createElement(
|
|
691
|
+
React__default['default'].createElement(
|
|
2023
692
|
'span',
|
|
2024
693
|
{ style: { display: 'inline-block' } },
|
|
2025
694
|
timeDifferenceCalc(article.published)
|
|
2026
695
|
)
|
|
2027
696
|
),
|
|
2028
|
-
React__default.createElement(
|
|
697
|
+
React__default['default'].createElement(
|
|
2029
698
|
'div',
|
|
2030
699
|
{ className: 'author-sec', style: { lineHeight: 1.5 } },
|
|
2031
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
2032
|
-
index
|
|
700
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default['default'].createElement(
|
|
701
|
+
index.LazyLoad,
|
|
2033
702
|
{ height: 50 },
|
|
2034
|
-
React__default.createElement(AuthorComponent.AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
703
|
+
React__default['default'].createElement(AuthorComponent.AuthorComponent, { key: index$1.toString(), index: index$1, authors: article.authorMapping })
|
|
2035
704
|
)
|
|
2036
705
|
),
|
|
2037
|
-
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
706
|
+
!article.thumbnail && !defaultImage && article.source && React__default['default'].createElement(
|
|
2038
707
|
'div',
|
|
2039
708
|
{ className: 'content-category-label' },
|
|
2040
|
-
React__default.createElement(
|
|
709
|
+
React__default['default'].createElement(
|
|
2041
710
|
'div',
|
|
2042
711
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
2043
712
|
article.source
|
|
2044
713
|
)
|
|
2045
714
|
),
|
|
2046
|
-
React__default.createElement(
|
|
715
|
+
React__default['default'].createElement(
|
|
2047
716
|
'div',
|
|
2048
717
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
2049
|
-
showCategory && article.contentCategory && React__default.createElement(
|
|
718
|
+
showCategory && article.contentCategory && React__default['default'].createElement(
|
|
2050
719
|
'p',
|
|
2051
720
|
{
|
|
2052
721
|
className: 'article-category',
|
|
@@ -2060,7 +729,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2060
729
|
} },
|
|
2061
730
|
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
2062
731
|
),
|
|
2063
|
-
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
732
|
+
article.issueSection && article.issueSection.name && React__default['default'].createElement(
|
|
2064
733
|
'p',
|
|
2065
734
|
{
|
|
2066
735
|
className: 'issueSection',
|
|
@@ -2076,100 +745,100 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2076
745
|
article.issueSection.name
|
|
2077
746
|
)
|
|
2078
747
|
),
|
|
2079
|
-
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
748
|
+
showPubInfo && (article.issue || article.volume) && React__default['default'].createElement(
|
|
2080
749
|
'div',
|
|
2081
750
|
{ className: 'pubInfo' },
|
|
2082
|
-
article.volume && React__default.createElement(
|
|
751
|
+
article.volume && React__default['default'].createElement(
|
|
2083
752
|
'p',
|
|
2084
753
|
{ className: 'qdeVolume' },
|
|
2085
754
|
article.volume
|
|
2086
755
|
),
|
|
2087
|
-
article.issue && React__default.createElement(
|
|
756
|
+
article.issue && React__default['default'].createElement(
|
|
2088
757
|
'p',
|
|
2089
758
|
{ className: 'qdeIssue' },
|
|
2090
759
|
article.issue
|
|
2091
760
|
)
|
|
2092
761
|
),
|
|
2093
|
-
showIntro && article.summary && React__default.createElement(
|
|
762
|
+
showIntro && article.summary && React__default['default'].createElement(
|
|
2094
763
|
'p',
|
|
2095
764
|
{ className: 'pt-2 card-text' },
|
|
2096
765
|
entities.clean_html_1(article.summary)
|
|
2097
766
|
)
|
|
2098
767
|
)
|
|
2099
768
|
),
|
|
2100
|
-
React__default.createElement(
|
|
769
|
+
React__default['default'].createElement(
|
|
2101
770
|
'div',
|
|
2102
771
|
null,
|
|
2103
|
-
main.
|
|
772
|
+
main.main_43 && rightItems && (index$1 + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index$1, numberOfItemsBeforeAd, rightItems)
|
|
2104
773
|
)
|
|
2105
774
|
)
|
|
2106
775
|
);
|
|
2107
776
|
} else return null;
|
|
2108
777
|
}) :
|
|
2109
778
|
// For Javascript Disabled Cases
|
|
2110
|
-
React__default.createElement(
|
|
779
|
+
React__default['default'].createElement(
|
|
2111
780
|
'noscript',
|
|
2112
781
|
null,
|
|
2113
|
-
data.map(function (article, index) {
|
|
782
|
+
data.map(function (article, index$1) {
|
|
2114
783
|
var pageNumber = article.pageNumber || values.page;
|
|
2115
784
|
var contentCategoryName = article.contentCategory ? article.contentCategory.name : 'Articles';
|
|
2116
785
|
|
|
2117
786
|
if (article._type === 'feature') {
|
|
2118
787
|
featureCount++;
|
|
2119
|
-
if (article.blank || checkExternalUrl
|
|
2120
|
-
return React__default.createElement(
|
|
788
|
+
if (article.blank || checkExternalUrl(article.url.current)) {
|
|
789
|
+
return React__default['default'].createElement(
|
|
2121
790
|
visibilitySensor.VisibilitySensor,
|
|
2122
791
|
{
|
|
2123
|
-
key: article._id ? article._id : index,
|
|
792
|
+
key: article._id ? article._id : index$1,
|
|
2124
793
|
partialVisibility: true,
|
|
2125
794
|
onChange: function onChange(isVisible) {
|
|
2126
795
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
|
|
2127
796
|
} },
|
|
2128
|
-
React__default.createElement(
|
|
2129
|
-
React__default.Fragment,
|
|
797
|
+
React__default['default'].createElement(
|
|
798
|
+
React__default['default'].Fragment,
|
|
2130
799
|
null,
|
|
2131
|
-
React__default.createElement(
|
|
800
|
+
React__default['default'].createElement(
|
|
2132
801
|
reactBootstrap.Media,
|
|
2133
802
|
{
|
|
2134
|
-
key: article._id ? article._id : index,
|
|
803
|
+
key: article._id ? article._id : index$1,
|
|
2135
804
|
className: 'feature-media',
|
|
2136
805
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
2137
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
806
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default['default'].createElement(
|
|
2138
807
|
'a',
|
|
2139
808
|
{ rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
2140
|
-
React__default.createElement(
|
|
2141
|
-
index
|
|
2142
|
-
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder
|
|
2143
|
-
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'img-fluid', src: renderCardImage
|
|
809
|
+
React__default['default'].createElement(
|
|
810
|
+
index.LazyLoad,
|
|
811
|
+
{ height: imageHeight, placeholder: React__default['default'].createElement(ImagePlaceholder, null) },
|
|
812
|
+
article.thumbnail && article.thumbnail.asset ? React__default['default'].createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default['default'].createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default['default'].createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
2144
813
|
),
|
|
2145
|
-
article.source && React__default.createElement(
|
|
814
|
+
article.source && React__default['default'].createElement(
|
|
2146
815
|
'div',
|
|
2147
816
|
{ className: 'content-category-label' },
|
|
2148
|
-
React__default.createElement(
|
|
817
|
+
React__default['default'].createElement(
|
|
2149
818
|
'div',
|
|
2150
819
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
2151
820
|
article.source
|
|
2152
821
|
)
|
|
2153
822
|
)
|
|
2154
823
|
),
|
|
2155
|
-
React__default.createElement(
|
|
824
|
+
React__default['default'].createElement(
|
|
2156
825
|
reactBootstrap.Media.Body,
|
|
2157
826
|
null,
|
|
2158
|
-
React__default.createElement(
|
|
827
|
+
React__default['default'].createElement(
|
|
2159
828
|
'a',
|
|
2160
829
|
{ rel: 'noopener', href: article.url.current, target: '_blank' },
|
|
2161
|
-
article.title && React__default.createElement(
|
|
830
|
+
article.title && React__default['default'].createElement(
|
|
2162
831
|
'h4',
|
|
2163
832
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
2164
833
|
article.title
|
|
2165
834
|
)
|
|
2166
835
|
),
|
|
2167
|
-
showPublished && article.published && React__default.createElement(
|
|
836
|
+
showPublished && article.published && React__default['default'].createElement(
|
|
2168
837
|
'p',
|
|
2169
838
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
2170
839
|
moment.moment(article.published).format('MMMM DD, YYYY')
|
|
2171
840
|
),
|
|
2172
|
-
showTimeDiff && article.published && React__default.createElement(
|
|
841
|
+
showTimeDiff && article.published && React__default['default'].createElement(
|
|
2173
842
|
'p',
|
|
2174
843
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
2175
844
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -2177,20 +846,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2177
846
|
return null;
|
|
2178
847
|
}
|
|
2179
848
|
if (index === 3) {
|
|
2180
|
-
return React__default.createElement(
|
|
2181
|
-
React__default.Fragment,
|
|
849
|
+
return React__default['default'].createElement(
|
|
850
|
+
React__default['default'].Fragment,
|
|
2182
851
|
null,
|
|
2183
|
-
React__default.createElement(
|
|
852
|
+
React__default['default'].createElement(
|
|
2184
853
|
'em',
|
|
2185
854
|
{ style: { marginRight: '.5rem' } },
|
|
2186
855
|
'...'
|
|
2187
856
|
)
|
|
2188
857
|
);
|
|
2189
858
|
}
|
|
2190
|
-
return React__default.createElement(
|
|
2191
|
-
React__default.Fragment,
|
|
859
|
+
return React__default['default'].createElement(
|
|
860
|
+
React__default['default'].Fragment,
|
|
2192
861
|
null,
|
|
2193
|
-
React__default.createElement(
|
|
862
|
+
React__default['default'].createElement(
|
|
2194
863
|
'em',
|
|
2195
864
|
null,
|
|
2196
865
|
taxonomy.name
|
|
@@ -2200,30 +869,30 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2200
869
|
);
|
|
2201
870
|
}),
|
|
2202
871
|
' ',
|
|
2203
|
-
React__default.createElement(
|
|
872
|
+
React__default['default'].createElement(
|
|
2204
873
|
'span',
|
|
2205
874
|
{ style: { display: 'inline-block' } },
|
|
2206
875
|
timeDifferenceCalc(article.published)
|
|
2207
876
|
)
|
|
2208
877
|
),
|
|
2209
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
2210
|
-
index
|
|
878
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default['default'].createElement(
|
|
879
|
+
index.LazyLoad,
|
|
2211
880
|
{ height: 50 },
|
|
2212
|
-
React__default.createElement(AuthorComponent.AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
881
|
+
React__default['default'].createElement(AuthorComponent.AuthorComponent, { key: index$1.toString(), index: index$1, authors: article.authorMapping })
|
|
2213
882
|
),
|
|
2214
|
-
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
883
|
+
!article.thumbnail && !defaultImage && article.source && React__default['default'].createElement(
|
|
2215
884
|
'div',
|
|
2216
885
|
{ className: 'content-category-label' },
|
|
2217
|
-
React__default.createElement(
|
|
886
|
+
React__default['default'].createElement(
|
|
2218
887
|
'div',
|
|
2219
888
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
2220
889
|
article.source
|
|
2221
890
|
)
|
|
2222
891
|
),
|
|
2223
|
-
React__default.createElement(
|
|
892
|
+
React__default['default'].createElement(
|
|
2224
893
|
'div',
|
|
2225
894
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
2226
|
-
showCategory && article.contentCategory && React__default.createElement(
|
|
895
|
+
showCategory && article.contentCategory && React__default['default'].createElement(
|
|
2227
896
|
'p',
|
|
2228
897
|
{
|
|
2229
898
|
className: 'article-category',
|
|
@@ -2237,7 +906,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2237
906
|
} },
|
|
2238
907
|
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
2239
908
|
),
|
|
2240
|
-
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
909
|
+
article.issueSection && article.issueSection.name && React__default['default'].createElement(
|
|
2241
910
|
'p',
|
|
2242
911
|
{
|
|
2243
912
|
className: 'issueSection',
|
|
@@ -2253,21 +922,21 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2253
922
|
article.issueSection.name
|
|
2254
923
|
)
|
|
2255
924
|
),
|
|
2256
|
-
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
925
|
+
showPubInfo && (article.issue || article.volume) && React__default['default'].createElement(
|
|
2257
926
|
'div',
|
|
2258
927
|
{ className: 'pubInfo' },
|
|
2259
|
-
article.volume && React__default.createElement(
|
|
928
|
+
article.volume && React__default['default'].createElement(
|
|
2260
929
|
'p',
|
|
2261
930
|
{ className: 'qdeVolume' },
|
|
2262
931
|
article.volume
|
|
2263
932
|
),
|
|
2264
|
-
article.issue && React__default.createElement(
|
|
933
|
+
article.issue && React__default['default'].createElement(
|
|
2265
934
|
'p',
|
|
2266
935
|
{ className: 'qdeIssue' },
|
|
2267
936
|
article.issue
|
|
2268
937
|
)
|
|
2269
938
|
),
|
|
2270
|
-
showIntro && article.summary && React__default.createElement(
|
|
939
|
+
showIntro && article.summary && React__default['default'].createElement(
|
|
2271
940
|
'p',
|
|
2272
941
|
{ className: 'pt-2 card-text' },
|
|
2273
942
|
entities.clean_html_1(article.summary)
|
|
@@ -2277,59 +946,59 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2277
946
|
)
|
|
2278
947
|
);
|
|
2279
948
|
} else {
|
|
2280
|
-
return React__default.createElement(
|
|
949
|
+
return React__default['default'].createElement(
|
|
2281
950
|
visibilitySensor.VisibilitySensor,
|
|
2282
951
|
{
|
|
2283
|
-
key: article._id ? article._id : index,
|
|
952
|
+
key: article._id ? article._id : index$1,
|
|
2284
953
|
partialVisibility: true,
|
|
2285
954
|
onChange: function onChange(isVisible) {
|
|
2286
955
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
|
|
2287
956
|
} },
|
|
2288
|
-
React__default.createElement(
|
|
2289
|
-
React__default.Fragment,
|
|
957
|
+
React__default['default'].createElement(
|
|
958
|
+
React__default['default'].Fragment,
|
|
2290
959
|
null,
|
|
2291
|
-
React__default.createElement(
|
|
960
|
+
React__default['default'].createElement(
|
|
2292
961
|
reactBootstrap.Media,
|
|
2293
962
|
{
|
|
2294
|
-
key: article._id ? article._id : index,
|
|
963
|
+
key: article._id ? article._id : index$1,
|
|
2295
964
|
className: 'feature-media',
|
|
2296
965
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
2297
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
966
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default['default'].createElement(
|
|
2298
967
|
'a',
|
|
2299
968
|
{ href: article.url.current, className: 'feature-wrapper' },
|
|
2300
|
-
React__default.createElement(
|
|
2301
|
-
index
|
|
2302
|
-
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder
|
|
2303
|
-
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'img-fluid', src: renderCardImage
|
|
969
|
+
React__default['default'].createElement(
|
|
970
|
+
index.LazyLoad,
|
|
971
|
+
{ height: imageHeight, placeholder: React__default['default'].createElement(ImagePlaceholder, null) },
|
|
972
|
+
article.thumbnail && article.thumbnail.asset ? React__default['default'].createElement('img', { className: 'img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default['default'].createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default['default'].createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
2304
973
|
),
|
|
2305
|
-
article.source && React__default.createElement(
|
|
974
|
+
article.source && React__default['default'].createElement(
|
|
2306
975
|
'div',
|
|
2307
976
|
{ className: 'content-category-label' },
|
|
2308
|
-
React__default.createElement(
|
|
977
|
+
React__default['default'].createElement(
|
|
2309
978
|
'div',
|
|
2310
979
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
2311
980
|
article.source
|
|
2312
981
|
)
|
|
2313
982
|
)
|
|
2314
983
|
),
|
|
2315
|
-
React__default.createElement(
|
|
984
|
+
React__default['default'].createElement(
|
|
2316
985
|
reactBootstrap.Media.Body,
|
|
2317
986
|
null,
|
|
2318
|
-
React__default.createElement(
|
|
987
|
+
React__default['default'].createElement(
|
|
2319
988
|
'a',
|
|
2320
989
|
{ href: article.url.current },
|
|
2321
|
-
article.title && React__default.createElement(
|
|
990
|
+
article.title && React__default['default'].createElement(
|
|
2322
991
|
'h4',
|
|
2323
992
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
2324
993
|
article.title
|
|
2325
994
|
)
|
|
2326
995
|
),
|
|
2327
|
-
showPublished && article.published && React__default.createElement(
|
|
996
|
+
showPublished && article.published && React__default['default'].createElement(
|
|
2328
997
|
'p',
|
|
2329
998
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
2330
999
|
moment.moment(article.published).format('MMMM DD, YYYY')
|
|
2331
1000
|
),
|
|
2332
|
-
showTimeDiff && article.published && React__default.createElement(
|
|
1001
|
+
showTimeDiff && article.published && React__default['default'].createElement(
|
|
2333
1002
|
'p',
|
|
2334
1003
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
2335
1004
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -2337,20 +1006,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2337
1006
|
return null;
|
|
2338
1007
|
}
|
|
2339
1008
|
if (index === 3) {
|
|
2340
|
-
return React__default.createElement(
|
|
2341
|
-
React__default.Fragment,
|
|
1009
|
+
return React__default['default'].createElement(
|
|
1010
|
+
React__default['default'].Fragment,
|
|
2342
1011
|
null,
|
|
2343
|
-
React__default.createElement(
|
|
1012
|
+
React__default['default'].createElement(
|
|
2344
1013
|
'em',
|
|
2345
1014
|
{ style: { marginRight: '.5rem' } },
|
|
2346
1015
|
'...'
|
|
2347
1016
|
)
|
|
2348
1017
|
);
|
|
2349
1018
|
}
|
|
2350
|
-
return React__default.createElement(
|
|
2351
|
-
React__default.Fragment,
|
|
1019
|
+
return React__default['default'].createElement(
|
|
1020
|
+
React__default['default'].Fragment,
|
|
2352
1021
|
null,
|
|
2353
|
-
React__default.createElement(
|
|
1022
|
+
React__default['default'].createElement(
|
|
2354
1023
|
'em',
|
|
2355
1024
|
null,
|
|
2356
1025
|
taxonomy.name
|
|
@@ -2360,30 +1029,30 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2360
1029
|
);
|
|
2361
1030
|
}),
|
|
2362
1031
|
' ',
|
|
2363
|
-
React__default.createElement(
|
|
1032
|
+
React__default['default'].createElement(
|
|
2364
1033
|
'span',
|
|
2365
1034
|
{ style: { display: 'inline-block' } },
|
|
2366
1035
|
timeDifferenceCalc(article.published)
|
|
2367
1036
|
)
|
|
2368
1037
|
),
|
|
2369
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
2370
|
-
index
|
|
1038
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default['default'].createElement(
|
|
1039
|
+
index.LazyLoad,
|
|
2371
1040
|
{ height: 50 },
|
|
2372
|
-
React__default.createElement(AuthorComponent.AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
1041
|
+
React__default['default'].createElement(AuthorComponent.AuthorComponent, { key: index$1.toString(), index: index$1, authors: article.authorMapping })
|
|
2373
1042
|
),
|
|
2374
|
-
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
1043
|
+
!article.thumbnail && !defaultImage && article.source && React__default['default'].createElement(
|
|
2375
1044
|
'div',
|
|
2376
1045
|
{ className: 'content-category-label' },
|
|
2377
|
-
React__default.createElement(
|
|
1046
|
+
React__default['default'].createElement(
|
|
2378
1047
|
'div',
|
|
2379
1048
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
2380
1049
|
article.source
|
|
2381
1050
|
)
|
|
2382
1051
|
),
|
|
2383
|
-
React__default.createElement(
|
|
1052
|
+
React__default['default'].createElement(
|
|
2384
1053
|
'div',
|
|
2385
1054
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
2386
|
-
showCategory && article.contentCategory && React__default.createElement(
|
|
1055
|
+
showCategory && article.contentCategory && React__default['default'].createElement(
|
|
2387
1056
|
'p',
|
|
2388
1057
|
{
|
|
2389
1058
|
className: 'article-category',
|
|
@@ -2397,7 +1066,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2397
1066
|
} },
|
|
2398
1067
|
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
2399
1068
|
),
|
|
2400
|
-
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
1069
|
+
article.issueSection && article.issueSection.name && React__default['default'].createElement(
|
|
2401
1070
|
'p',
|
|
2402
1071
|
{
|
|
2403
1072
|
className: 'issueSection',
|
|
@@ -2413,21 +1082,21 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2413
1082
|
article.issueSection.name
|
|
2414
1083
|
)
|
|
2415
1084
|
),
|
|
2416
|
-
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
1085
|
+
showPubInfo && (article.issue || article.volume) && React__default['default'].createElement(
|
|
2417
1086
|
'div',
|
|
2418
1087
|
{ className: 'pubInfo' },
|
|
2419
|
-
article.volume && React__default.createElement(
|
|
1088
|
+
article.volume && React__default['default'].createElement(
|
|
2420
1089
|
'p',
|
|
2421
1090
|
{ className: 'qdeVolume' },
|
|
2422
1091
|
article.volume
|
|
2423
1092
|
),
|
|
2424
|
-
article.issue && React__default.createElement(
|
|
1093
|
+
article.issue && React__default['default'].createElement(
|
|
2425
1094
|
'p',
|
|
2426
1095
|
{ className: 'qdeIssue' },
|
|
2427
1096
|
article.issue
|
|
2428
1097
|
)
|
|
2429
1098
|
),
|
|
2430
|
-
showIntro && article.summary && React__default.createElement(
|
|
1099
|
+
showIntro && article.summary && React__default['default'].createElement(
|
|
2431
1100
|
'p',
|
|
2432
1101
|
{ className: 'pt-2 card-text' },
|
|
2433
1102
|
entities.clean_html_1(article.summary)
|
|
@@ -2438,63 +1107,63 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2438
1107
|
);
|
|
2439
1108
|
}
|
|
2440
1109
|
} else if (article._type === 'lg-infeed' && article.adUnit) {
|
|
2441
|
-
return React__default.createElement(ADlgInfeed.ADlgInfeed, _extends._extends({ index: index }, article));
|
|
1110
|
+
return React__default['default'].createElement(ADlgInfeed.ADlgInfeed, _extends._extends({ index: index$1 }, article));
|
|
2442
1111
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
2443
|
-
return React__default.createElement(ADInfeed.ADInfeed, { index: index, infeedAd: article });
|
|
1112
|
+
return React__default['default'].createElement(ADInfeed.ADInfeed, { index: index$1, infeedAd: article });
|
|
2444
1113
|
}
|
|
2445
|
-
if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
|
|
2446
|
-
return React__default.createElement(
|
|
1114
|
+
if ((brandInsightAd ? index$1 > heroContent + featureCount : index$1 + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
|
|
1115
|
+
return React__default['default'].createElement(
|
|
2447
1116
|
visibilitySensor.VisibilitySensor,
|
|
2448
1117
|
{
|
|
2449
|
-
key: article._id ? article._id : index,
|
|
1118
|
+
key: article._id ? article._id : index$1,
|
|
2450
1119
|
onChange: function onChange(isVisible) {
|
|
2451
1120
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of artilce only.
|
|
2452
|
-
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, article.articleCount ? article.articleCount : index);
|
|
1121
|
+
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, article.articleCount ? article.articleCount : index$1);
|
|
2453
1122
|
} },
|
|
2454
|
-
React__default.createElement(
|
|
2455
|
-
React__default.Fragment,
|
|
1123
|
+
React__default['default'].createElement(
|
|
1124
|
+
React__default['default'].Fragment,
|
|
2456
1125
|
null,
|
|
2457
|
-
React__default.createElement(
|
|
1126
|
+
React__default['default'].createElement(
|
|
2458
1127
|
reactBootstrap.Media,
|
|
2459
1128
|
{
|
|
2460
|
-
key: article._id ? article._id : index,
|
|
1129
|
+
key: article._id ? article._id : index$1,
|
|
2461
1130
|
style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
2462
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
1131
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default['default'].createElement(
|
|
2463
1132
|
'a',
|
|
2464
1133
|
{ href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
|
|
2465
|
-
React__default.createElement(
|
|
2466
|
-
index
|
|
2467
|
-
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder
|
|
2468
|
-
article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage
|
|
1134
|
+
React__default['default'].createElement(
|
|
1135
|
+
index.LazyLoad,
|
|
1136
|
+
{ height: imageHeight, placeholder: React__default['default'].createElement(ImagePlaceholder, null) },
|
|
1137
|
+
article.thumbnail && article.thumbnail.asset ? React__default['default'].createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage(article, client, imageHeight, imageWidth, imageMaxHeight, imageFit), alt: article.title }) : article.thumbnail ? React__default['default'].createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default['default'].createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
|
|
2469
1138
|
),
|
|
2470
|
-
article.source && React__default.createElement(
|
|
1139
|
+
article.source && React__default['default'].createElement(
|
|
2471
1140
|
'div',
|
|
2472
1141
|
{ className: 'content-category-label' },
|
|
2473
|
-
React__default.createElement(
|
|
1142
|
+
React__default['default'].createElement(
|
|
2474
1143
|
'div',
|
|
2475
1144
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
2476
1145
|
article.source
|
|
2477
1146
|
)
|
|
2478
1147
|
)
|
|
2479
1148
|
),
|
|
2480
|
-
React__default.createElement(
|
|
1149
|
+
React__default['default'].createElement(
|
|
2481
1150
|
reactBootstrap.Media.Body,
|
|
2482
1151
|
null,
|
|
2483
|
-
React__default.createElement(
|
|
1152
|
+
React__default['default'].createElement(
|
|
2484
1153
|
'a',
|
|
2485
1154
|
{ href: mapping[contentCategoryName] + '/' + article.url.current },
|
|
2486
|
-
article.title && React__default.createElement(
|
|
1155
|
+
article.title && React__default['default'].createElement(
|
|
2487
1156
|
'h4',
|
|
2488
1157
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
2489
1158
|
article.title
|
|
2490
1159
|
)
|
|
2491
1160
|
),
|
|
2492
|
-
showPublished && article.published && React__default.createElement(
|
|
1161
|
+
showPublished && article.published && React__default['default'].createElement(
|
|
2493
1162
|
'p',
|
|
2494
1163
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
2495
1164
|
moment.moment(article.published).format('MMMM DD, YYYY')
|
|
2496
1165
|
),
|
|
2497
|
-
showTimeDiff && article.published && React__default.createElement(
|
|
1166
|
+
showTimeDiff && article.published && React__default['default'].createElement(
|
|
2498
1167
|
'p',
|
|
2499
1168
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
2500
1169
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -2502,20 +1171,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2502
1171
|
return null;
|
|
2503
1172
|
}
|
|
2504
1173
|
if (index === 3) {
|
|
2505
|
-
return React__default.createElement(
|
|
2506
|
-
React__default.Fragment,
|
|
1174
|
+
return React__default['default'].createElement(
|
|
1175
|
+
React__default['default'].Fragment,
|
|
2507
1176
|
null,
|
|
2508
|
-
React__default.createElement(
|
|
1177
|
+
React__default['default'].createElement(
|
|
2509
1178
|
'em',
|
|
2510
1179
|
{ style: { marginRight: '.5rem' } },
|
|
2511
1180
|
'...'
|
|
2512
1181
|
)
|
|
2513
1182
|
);
|
|
2514
1183
|
}
|
|
2515
|
-
return React__default.createElement(
|
|
2516
|
-
React__default.Fragment,
|
|
1184
|
+
return React__default['default'].createElement(
|
|
1185
|
+
React__default['default'].Fragment,
|
|
2517
1186
|
null,
|
|
2518
|
-
React__default.createElement(
|
|
1187
|
+
React__default['default'].createElement(
|
|
2519
1188
|
'em',
|
|
2520
1189
|
null,
|
|
2521
1190
|
taxonomy.name
|
|
@@ -2525,34 +1194,34 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2525
1194
|
);
|
|
2526
1195
|
}),
|
|
2527
1196
|
' ',
|
|
2528
|
-
React__default.createElement(
|
|
1197
|
+
React__default['default'].createElement(
|
|
2529
1198
|
'span',
|
|
2530
1199
|
{ style: { display: 'inline-block' } },
|
|
2531
1200
|
timeDifferenceCalc(article.published)
|
|
2532
1201
|
)
|
|
2533
1202
|
),
|
|
2534
|
-
React__default.createElement(
|
|
1203
|
+
React__default['default'].createElement(
|
|
2535
1204
|
'div',
|
|
2536
1205
|
{ className: 'author-sec', style: { lineHeight: 1.5 } },
|
|
2537
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
2538
|
-
index
|
|
1206
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default['default'].createElement(
|
|
1207
|
+
index.LazyLoad,
|
|
2539
1208
|
{ height: 50 },
|
|
2540
|
-
React__default.createElement(AuthorComponent.AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
1209
|
+
React__default['default'].createElement(AuthorComponent.AuthorComponent, { key: index$1.toString(), index: index$1, authors: article.authorMapping })
|
|
2541
1210
|
)
|
|
2542
1211
|
),
|
|
2543
|
-
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
1212
|
+
!article.thumbnail && !defaultImage && article.source && React__default['default'].createElement(
|
|
2544
1213
|
'div',
|
|
2545
1214
|
{ className: 'content-category-label' },
|
|
2546
|
-
React__default.createElement(
|
|
1215
|
+
React__default['default'].createElement(
|
|
2547
1216
|
'div',
|
|
2548
1217
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
2549
1218
|
article.source
|
|
2550
1219
|
)
|
|
2551
1220
|
),
|
|
2552
|
-
React__default.createElement(
|
|
1221
|
+
React__default['default'].createElement(
|
|
2553
1222
|
'div',
|
|
2554
1223
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
2555
|
-
showCategory && article.contentCategory && React__default.createElement(
|
|
1224
|
+
showCategory && article.contentCategory && React__default['default'].createElement(
|
|
2556
1225
|
'p',
|
|
2557
1226
|
{
|
|
2558
1227
|
className: 'article-category',
|
|
@@ -2566,7 +1235,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2566
1235
|
} },
|
|
2567
1236
|
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
2568
1237
|
),
|
|
2569
|
-
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
1238
|
+
article.issueSection && article.issueSection.name && React__default['default'].createElement(
|
|
2570
1239
|
'p',
|
|
2571
1240
|
{
|
|
2572
1241
|
className: 'issueSection',
|
|
@@ -2582,50 +1251,50 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2582
1251
|
article.issueSection.name
|
|
2583
1252
|
)
|
|
2584
1253
|
),
|
|
2585
|
-
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
1254
|
+
showPubInfo && (article.issue || article.volume) && React__default['default'].createElement(
|
|
2586
1255
|
'div',
|
|
2587
1256
|
{ className: 'pubInfo' },
|
|
2588
|
-
article.volume && React__default.createElement(
|
|
1257
|
+
article.volume && React__default['default'].createElement(
|
|
2589
1258
|
'p',
|
|
2590
1259
|
{ className: 'qdeVolume' },
|
|
2591
1260
|
article.volume
|
|
2592
1261
|
),
|
|
2593
|
-
article.issue && React__default.createElement(
|
|
1262
|
+
article.issue && React__default['default'].createElement(
|
|
2594
1263
|
'p',
|
|
2595
1264
|
{ className: 'qdeIssue' },
|
|
2596
1265
|
article.issue
|
|
2597
1266
|
)
|
|
2598
1267
|
),
|
|
2599
|
-
showIntro && article.summary && React__default.createElement(
|
|
1268
|
+
showIntro && article.summary && React__default['default'].createElement(
|
|
2600
1269
|
'p',
|
|
2601
1270
|
{ className: 'pt-2 card-text' },
|
|
2602
1271
|
entities.clean_html_1(article.summary)
|
|
2603
1272
|
)
|
|
2604
1273
|
)
|
|
2605
1274
|
),
|
|
2606
|
-
React__default.createElement(
|
|
1275
|
+
React__default['default'].createElement(
|
|
2607
1276
|
'div',
|
|
2608
1277
|
null,
|
|
2609
|
-
main.
|
|
1278
|
+
main.main_43 && rightItems && (index$1 + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index$1, numberOfItemsBeforeAd, rightItems)
|
|
2610
1279
|
)
|
|
2611
1280
|
)
|
|
2612
1281
|
);
|
|
2613
1282
|
} else return null;
|
|
2614
1283
|
})
|
|
2615
|
-
) : React__default.createElement(
|
|
1284
|
+
) : React__default['default'].createElement(
|
|
2616
1285
|
'div',
|
|
2617
1286
|
null,
|
|
2618
|
-
React__default.createElement(
|
|
1287
|
+
React__default['default'].createElement(
|
|
2619
1288
|
'h5',
|
|
2620
1289
|
null,
|
|
2621
|
-
React__default.createElement(
|
|
1290
|
+
React__default['default'].createElement(
|
|
2622
1291
|
'em',
|
|
2623
1292
|
null,
|
|
2624
1293
|
'New content coming soon, please check back later.'
|
|
2625
1294
|
)
|
|
2626
1295
|
)
|
|
2627
1296
|
),
|
|
2628
|
-
React__default.createElement(
|
|
1297
|
+
React__default['default'].createElement(
|
|
2629
1298
|
'style',
|
|
2630
1299
|
{ jsx: 'true' },
|
|
2631
1300
|
'\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 '
|
|
@@ -2633,12 +1302,12 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
2633
1302
|
);
|
|
2634
1303
|
};
|
|
2635
1304
|
|
|
2636
|
-
var ImagePlaceholder
|
|
2637
|
-
return React__default.createElement(
|
|
2638
|
-
React__default.Fragment,
|
|
1305
|
+
var ImagePlaceholder = function ImagePlaceholder() {
|
|
1306
|
+
return React__default['default'].createElement(
|
|
1307
|
+
React__default['default'].Fragment,
|
|
2639
1308
|
null,
|
|
2640
|
-
React__default.createElement('div', { className: 'queuedeck-exp-image-placeholder' }),
|
|
2641
|
-
React__default.createElement(
|
|
1309
|
+
React__default['default'].createElement('div', { className: 'queuedeck-exp-image-placeholder' }),
|
|
1310
|
+
React__default['default'].createElement(
|
|
2642
1311
|
'style',
|
|
2643
1312
|
{ jsx: 'true' },
|
|
2644
1313
|
'\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 '
|
|
@@ -2646,16 +1315,16 @@ var ImagePlaceholder$1 = function ImagePlaceholder() {
|
|
|
2646
1315
|
);
|
|
2647
1316
|
};
|
|
2648
1317
|
|
|
2649
|
-
var renderMobileAd
|
|
1318
|
+
var renderMobileAd = function renderMobileAd(index, numberOfItemsBeforeAd, rightItems) {
|
|
2650
1319
|
var i = numberOfItemsBeforeAd < 6 ? 0 : ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
2651
|
-
return React__default.createElement(
|
|
1320
|
+
return React__default['default'].createElement(
|
|
2652
1321
|
'div',
|
|
2653
1322
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
2654
1323
|
rightItems[i].component
|
|
2655
1324
|
);
|
|
2656
1325
|
};
|
|
2657
1326
|
|
|
2658
|
-
var usePrevious
|
|
1327
|
+
var usePrevious = function usePrevious(value) {
|
|
2659
1328
|
var ref = React.useRef();
|
|
2660
1329
|
React.useEffect(function () {
|
|
2661
1330
|
ref.current = value;
|
|
@@ -2663,12 +1332,11 @@ var usePrevious$1 = function usePrevious(value) {
|
|
|
2663
1332
|
return ref.current;
|
|
2664
1333
|
};
|
|
2665
1334
|
|
|
2666
|
-
var QueueDeckExpanded
|
|
2667
|
-
if (props.totalDataCount) return React__default.createElement(QueueDeckExpanded, props);
|
|
1335
|
+
var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
2668
1336
|
var router = Router.useRouter();
|
|
2669
1337
|
|
|
2670
1338
|
// Logging GA Pageview on path change
|
|
2671
|
-
var prevPath = usePrevious
|
|
1339
|
+
var prevPath = usePrevious(lodash.lodash.get(router, 'asPath', undefined));
|
|
2672
1340
|
React.useEffect(function () {
|
|
2673
1341
|
var pageview = props.pageview;
|
|
2674
1342
|
|
|
@@ -2747,22 +1415,22 @@ var QueueDeckExpanded$1 = function QueueDeckExpanded$1(props) {
|
|
|
2747
1415
|
|
|
2748
1416
|
var itemsPerPage = params && params.itemsPerPage ? params.itemsPerPage : 10;
|
|
2749
1417
|
|
|
2750
|
-
var prevValues = usePrevious
|
|
1418
|
+
var prevValues = usePrevious(values);
|
|
2751
1419
|
|
|
2752
1420
|
var renderManualPagination = function renderManualPagination(currentPage) {
|
|
2753
1421
|
if (lastDataSize < itemsPerPage) {
|
|
2754
1422
|
return null;
|
|
2755
1423
|
}
|
|
2756
1424
|
|
|
2757
|
-
return React__default.createElement(
|
|
1425
|
+
return React__default['default'].createElement(
|
|
2758
1426
|
'div',
|
|
2759
1427
|
{ className: 'd-flex justify-content-between' },
|
|
2760
|
-
currentPage && currentPage > 1 && React__default.createElement(
|
|
1428
|
+
currentPage && currentPage > 1 && React__default['default'].createElement(
|
|
2761
1429
|
'a',
|
|
2762
1430
|
{ href: '?page=' + (currentPage - 1) },
|
|
2763
1431
|
'<< Previous'
|
|
2764
1432
|
),
|
|
2765
|
-
React__default.createElement(
|
|
1433
|
+
React__default['default'].createElement(
|
|
2766
1434
|
'a',
|
|
2767
1435
|
{ href: '?page=' + (currentPage + 1) },
|
|
2768
1436
|
'Next >>'
|
|
@@ -2809,40 +1477,40 @@ var QueueDeckExpanded$1 = function QueueDeckExpanded$1(props) {
|
|
|
2809
1477
|
// }
|
|
2810
1478
|
// }
|
|
2811
1479
|
|
|
2812
|
-
return React__default.createElement(
|
|
1480
|
+
return React__default['default'].createElement(
|
|
2813
1481
|
'div',
|
|
2814
1482
|
null,
|
|
2815
|
-
autoScroll ? React__default.createElement(
|
|
2816
|
-
React__default.Fragment,
|
|
1483
|
+
autoScroll ? React__default['default'].createElement(
|
|
1484
|
+
React__default['default'].Fragment,
|
|
2817
1485
|
null,
|
|
2818
|
-
React__default.createElement(
|
|
1486
|
+
React__default['default'].createElement(
|
|
2819
1487
|
index_es.InfiniteScroll,
|
|
2820
1488
|
{ dataLength: data && data.length, next: function next() {
|
|
2821
1489
|
return loadMore(values, setValues, itemsPerPage);
|
|
2822
1490
|
}, hasMore: scrolling, scrollThreshold: 0.9 },
|
|
2823
|
-
React__default.createElement(
|
|
1491
|
+
React__default['default'].createElement(
|
|
2824
1492
|
reactBootstrap.Container,
|
|
2825
1493
|
null,
|
|
2826
1494
|
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)
|
|
2827
1495
|
)
|
|
2828
1496
|
),
|
|
2829
|
-
React__default.createElement(
|
|
1497
|
+
React__default['default'].createElement(
|
|
2830
1498
|
'noscript',
|
|
2831
1499
|
null,
|
|
2832
1500
|
renderManualPagination(currentPage)
|
|
2833
1501
|
)
|
|
2834
|
-
) : React__default.createElement(
|
|
2835
|
-
React__default.Fragment,
|
|
1502
|
+
) : React__default['default'].createElement(
|
|
1503
|
+
React__default['default'].Fragment,
|
|
2836
1504
|
null,
|
|
2837
|
-
React__default.createElement(
|
|
1505
|
+
React__default['default'].createElement(
|
|
2838
1506
|
reactBootstrap.Container,
|
|
2839
1507
|
null,
|
|
2840
1508
|
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)
|
|
2841
1509
|
),
|
|
2842
|
-
React__default.createElement(
|
|
1510
|
+
React__default['default'].createElement(
|
|
2843
1511
|
'div',
|
|
2844
1512
|
{ style: { padding: '0px 10px' } },
|
|
2845
|
-
scrolling ? React__default.createElement(
|
|
1513
|
+
scrolling ? React__default['default'].createElement(
|
|
2846
1514
|
'button',
|
|
2847
1515
|
{
|
|
2848
1516
|
className: 'load-more-btn',
|
|
@@ -2851,17 +1519,17 @@ var QueueDeckExpanded$1 = function QueueDeckExpanded$1(props) {
|
|
|
2851
1519
|
loadMore(values, setValues, itemsPerPage);
|
|
2852
1520
|
} },
|
|
2853
1521
|
'Load More'
|
|
2854
|
-
) : React__default.createElement(
|
|
1522
|
+
) : React__default['default'].createElement(
|
|
2855
1523
|
'p',
|
|
2856
1524
|
{ style: { textAlign: 'center' } },
|
|
2857
|
-
React__default.createElement(
|
|
1525
|
+
React__default['default'].createElement(
|
|
2858
1526
|
'b',
|
|
2859
1527
|
null,
|
|
2860
1528
|
'End of data'
|
|
2861
1529
|
)
|
|
2862
1530
|
)
|
|
2863
1531
|
),
|
|
2864
|
-
React__default.createElement(
|
|
1532
|
+
React__default['default'].createElement(
|
|
2865
1533
|
'noscript',
|
|
2866
1534
|
null,
|
|
2867
1535
|
renderManualPagination(currentPage)
|
|
@@ -2870,4 +1538,4 @@ var QueueDeckExpanded$1 = function QueueDeckExpanded$1(props) {
|
|
|
2870
1538
|
);
|
|
2871
1539
|
};
|
|
2872
1540
|
|
|
2873
|
-
module.exports = QueueDeckExpanded
|
|
1541
|
+
module.exports = QueueDeckExpanded;
|