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