@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,44 +1,1375 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
2
|
-
import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
3
|
-
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
4
|
-
import React, { useEffect, useState, useRef } from 'react';
|
|
5
|
-
import { Container, Media } from 'react-bootstrap';
|
|
6
|
-
import urlFor from './urlFor.js';
|
|
7
|
-
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
8
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
9
|
-
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
10
|
-
import { l as lib_3 } from './index-2446af28.js';
|
|
11
|
-
import { useRouter } from 'next/router';
|
|
12
|
-
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
13
|
-
import { m as main_43 } from './main-4136096f.js';
|
|
14
|
-
import { c as clean_html_1 } from './entities-932b50cf.js';
|
|
15
|
-
import { A as ADInfeed } from './ADInfeed-8c5f8c58.js';
|
|
16
|
-
import { A as AuthorComponent } from './AuthorComponent-46a745ba.js';
|
|
17
|
-
import { l as lodash } from './lodash-f97fd99a.js';
|
|
18
|
-
import { A as ADlgInfeed } from './ADlgInfeed-2316e091.js';
|
|
19
|
-
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
20
|
-
import timeDifferenceCalc from './timeDifferenceCalc.js';
|
|
21
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
22
|
-
import './
|
|
23
|
-
import './
|
|
24
|
-
import './_iter-detect-
|
|
25
|
-
import './
|
|
26
|
-
import './
|
|
27
|
-
import '
|
|
2
|
+
import './core.get-iterator-method-86d4db69.js';
|
|
3
|
+
import './_library-528f1934.js';
|
|
4
|
+
import './_iter-detect-130ee549.js';
|
|
5
|
+
import { _ as _toConsumableArray } from './toConsumableArray-32282905.js';
|
|
6
|
+
import './_object-pie-33c40e79.js';
|
|
7
|
+
import { _ as _extends } from './extends-5b1796d4.js';
|
|
8
|
+
import './web.dom.iterable-f8f967cd.js';
|
|
9
|
+
import React__default, { useState, useEffect, useRef } from 'react';
|
|
28
10
|
import './events-6c3a7a63.js';
|
|
11
|
+
import { l as lib_3 } from './index-41a678ea.js';
|
|
29
12
|
import 'prop-types';
|
|
30
13
|
import 'react-bootstrap/Card';
|
|
31
|
-
import './
|
|
32
|
-
import '
|
|
33
|
-
import './isSymbol-
|
|
34
|
-
import './
|
|
35
|
-
import './
|
|
36
|
-
import './
|
|
37
|
-
import '
|
|
38
|
-
import './
|
|
14
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
15
|
+
import { useRouter } from 'next/router';
|
|
16
|
+
import './isSymbol-1981418f.js';
|
|
17
|
+
import './debounce-9207d8ee.js';
|
|
18
|
+
import './toNumber-2f7a84cd.js';
|
|
19
|
+
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
20
|
+
import 'react-dom';
|
|
21
|
+
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
22
|
+
import { _ as _slicedToArray } from './slicedToArray-67a08c9c.js';
|
|
23
|
+
import './index-73819142.js';
|
|
24
|
+
import urlFor from './urlFor.js';
|
|
25
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
26
|
+
import { m as main_36 } from './main-c0612122.js';
|
|
27
|
+
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
28
|
+
import './stringify-70b72959.js';
|
|
29
|
+
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64812e90.js';
|
|
39
30
|
import './Segment.js';
|
|
31
|
+
import './Beam.js';
|
|
32
|
+
import './AdSlot.js';
|
|
33
|
+
import { A as ADInfeed } from './ADInfeed-0c13c803.js';
|
|
34
|
+
import { l as lodash } from './lodash-17fdfebb.js';
|
|
35
|
+
import { A as ADlgInfeed } from './ADlgInfeed-e4e2031a.js';
|
|
36
|
+
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
37
|
+
import { A as AuthorComponent } from './AuthorComponent-e6f95c2f.js';
|
|
38
|
+
import { P as Pagination } from './Pagination-f7c4c5ae.js';
|
|
39
|
+
import { Spinner, Container, Media } from 'react-bootstrap';
|
|
40
|
+
import timeDifferenceCalc from './timeDifferenceCalc.js';
|
|
41
|
+
|
|
42
|
+
var _this = undefined;
|
|
43
|
+
|
|
44
|
+
var renderCardImage = function renderCardImage(row, client) {
|
|
45
|
+
var imageHeight = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
46
|
+
var imageWidth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
47
|
+
var imageMaxHeight = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
48
|
+
var imageFit = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
|
|
49
|
+
return urlFor({ client: client, source: row.thumbnail, imageHeight: imageHeight, imageWidth: imageWidth, imageMaxHeight: imageMaxHeight, imageFit: imageFit });
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
var checkExternalUrl = function checkExternalUrl(url) {
|
|
53
|
+
return new RegExp(['http', 'https'].join('|')).test(url);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
var CardLoader = function CardLoader(_ref) {
|
|
57
|
+
var data = _ref.data,
|
|
58
|
+
client = _ref.client,
|
|
59
|
+
mapping = _ref.mapping,
|
|
60
|
+
showPublished = _ref.showPublished,
|
|
61
|
+
defaultImage = _ref.defaultImage,
|
|
62
|
+
showAuthor = _ref.showAuthor,
|
|
63
|
+
showCategory = _ref.showCategory,
|
|
64
|
+
imageHeight = _ref.imageHeight,
|
|
65
|
+
imageWidth = _ref.imageWidth,
|
|
66
|
+
imageMaxHeight = _ref.imageMaxHeight,
|
|
67
|
+
imageFit = _ref.imageFit,
|
|
68
|
+
rightItems = _ref.rightItems,
|
|
69
|
+
brandInsightAd = _ref.brandInsightAd,
|
|
70
|
+
showBI = _ref.showBI,
|
|
71
|
+
heroContent = _ref.heroContent,
|
|
72
|
+
lgInfeedAd = _ref.lgInfeedAd,
|
|
73
|
+
showPubInfo = _ref.showPubInfo,
|
|
74
|
+
contentCategoryMapping = _ref.contentCategoryMapping,
|
|
75
|
+
showTimeDiff = _ref.showTimeDiff,
|
|
76
|
+
showTaxonomies = _ref.showTaxonomies,
|
|
77
|
+
showIntro = _ref.showIntro;
|
|
78
|
+
|
|
79
|
+
var numberOfItemsBeforeAd = data.length < 6 ? data.length : 6;
|
|
80
|
+
var insertBrandInsightAd = function insertBrandInsightAd(arr, index, newElement) {
|
|
81
|
+
return [].concat(_toConsumableArray(arr.slice(0, index)), [newElement], _toConsumableArray(arr.slice(index)));
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
var _useState = useState(!showBI || !brandInsightAd ? true : false),
|
|
85
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
86
|
+
dataRemapped = _useState2[0],
|
|
87
|
+
setDataRemapped = _useState2[1];
|
|
88
|
+
// Need to pass flag "lgInfeedAd={true}" along with brandInsightAd from site level for large infeed-ad to render
|
|
89
|
+
// Checking window and lgInfeedAd flag in desktop view ( window >= 1400px ).
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
if (lgInfeedAd && brandInsightAd && typeof window !== 'undefined' && window.innerWidth >= 1400) {
|
|
93
|
+
var lgInfeed = {
|
|
94
|
+
_type: 'lg-infeed',
|
|
95
|
+
adUnit: brandInsightAd.adUnit,
|
|
96
|
+
className: 'lg-infeed',
|
|
97
|
+
networkID: brandInsightAd.networkID,
|
|
98
|
+
sizes: [728, 90],
|
|
99
|
+
// Adding sizeMapping for showing ad above 1400px
|
|
100
|
+
sizeMapping: [{
|
|
101
|
+
viewport: [1400, 0],
|
|
102
|
+
sizes: [[728, 90]]
|
|
103
|
+
}, { viewport: [0, 0], sizes: [] }],
|
|
104
|
+
targeting: {
|
|
105
|
+
content_placement: brandInsightAd.targeting.content_placement,
|
|
106
|
+
document_url: brandInsightAd.targeting.document_url,
|
|
107
|
+
rootDocumentGroup: brandInsightAd.targeting.rootDocumentGroup
|
|
108
|
+
},
|
|
109
|
+
/* Passing refresh flag */
|
|
110
|
+
refreshFlag: brandInsightAd.refreshFlag ? brandInsightAd.refreshFlag : false
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
var chunks = lodash.chunk(data, 6).map(function (chunk) {
|
|
114
|
+
var set = lodash.chunk(chunk, 2);
|
|
115
|
+
for (var i = 0; i < set.length; i++) {
|
|
116
|
+
if (i !== set.length - 1) {
|
|
117
|
+
set[i].push(lgInfeed);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return lodash.flattenDeep(set);
|
|
121
|
+
});
|
|
122
|
+
data = lodash.flatten(chunks);
|
|
123
|
+
!dataRemapped && setDataRemapped(true); // To detect if appending of insights ads are completed
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// set dataRemap to true as there are no infeed or BI ads or window width is less than limit
|
|
127
|
+
useEffect(function () {
|
|
128
|
+
if (typeof window !== 'undefined' && (!lgInfeedAd || !brandInsightAd || window.innerWidth < 1400) && !dataRemapped) {
|
|
129
|
+
setDataRemapped(true);
|
|
130
|
+
}
|
|
131
|
+
}, []);
|
|
132
|
+
|
|
133
|
+
if (showBI && brandInsightAd) {
|
|
134
|
+
// Checking window and lgInfeedAd flag in desktop view ( window >= 1400px ).
|
|
135
|
+
if (lgInfeedAd && typeof window !== 'undefined' && window.innerWidth >= 1400) brandInsightAd.interval = 8;
|
|
136
|
+
var pos = 0;
|
|
137
|
+
for (var i = 1; pos < data.length; i++) {
|
|
138
|
+
var inFeedAd = {
|
|
139
|
+
adUnit: brandInsightAd.adUnit,
|
|
140
|
+
className: brandInsightAd.className,
|
|
141
|
+
networkID: brandInsightAd.networkID,
|
|
142
|
+
sizes: brandInsightAd.sizes,
|
|
143
|
+
slotId: brandInsightAd.slotId + '_' + i,
|
|
144
|
+
targeting: {
|
|
145
|
+
pos: 'infeed',
|
|
146
|
+
content_placement: brandInsightAd.targeting.content_placement,
|
|
147
|
+
document_url: brandInsightAd.targeting.document_url,
|
|
148
|
+
rootDocumentGroup: brandInsightAd.targeting.rootDocumentGroup
|
|
149
|
+
},
|
|
150
|
+
_type: 'brandInsightAd',
|
|
151
|
+
/* Passing refresh flag */
|
|
152
|
+
refreshFlag: brandInsightAd.refreshFlag ? brandInsightAd.refreshFlag : false
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
data = insertBrandInsightAd(data, pos, inFeedAd);
|
|
156
|
+
pos += brandInsightAd.interval + 1;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
data = data.map(function (ele, i) {
|
|
161
|
+
if (ele._type === 'lg-infeed') {
|
|
162
|
+
// Setting pos as top2 for the first occurence of large infeed ad
|
|
163
|
+
// const pos = data.indexOf(data.find((d) => d._type === 'lg-infeed')) === i ? 'top2' : `lg-infeed_${i}`
|
|
164
|
+
return _extends({}, ele, { slotId: 'lg-infeed_' + i, targeting: _extends({}, ele.targeting, { pos: 'lg-infeed' }) });
|
|
165
|
+
} else return ele;
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
var featureCount = 0;
|
|
169
|
+
return React__default.createElement(
|
|
170
|
+
'div',
|
|
171
|
+
null,
|
|
172
|
+
data && data.length > 0 ? dataRemapped ? // For Javascript Enabled Cases
|
|
173
|
+
data.map(function (article, index) {
|
|
174
|
+
var contentCategoryName = article.contentCategory ? article.contentCategory.name : 'Articles';
|
|
175
|
+
|
|
176
|
+
if (article._type === 'feature') {
|
|
177
|
+
featureCount++;
|
|
178
|
+
if (article.blank || checkExternalUrl(article.url.current)) {
|
|
179
|
+
return React__default.createElement(
|
|
180
|
+
Media,
|
|
181
|
+
{
|
|
182
|
+
key: article._id ? article._id : index,
|
|
183
|
+
className: 'feature-media',
|
|
184
|
+
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
185
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
186
|
+
'a',
|
|
187
|
+
{ rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
188
|
+
React__default.createElement(
|
|
189
|
+
LazyLoad,
|
|
190
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
191
|
+
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 })
|
|
192
|
+
),
|
|
193
|
+
article.source && React__default.createElement(
|
|
194
|
+
'div',
|
|
195
|
+
{ className: 'content-category-label' },
|
|
196
|
+
React__default.createElement(
|
|
197
|
+
'div',
|
|
198
|
+
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
199
|
+
article.source
|
|
200
|
+
)
|
|
201
|
+
)
|
|
202
|
+
),
|
|
203
|
+
React__default.createElement(
|
|
204
|
+
Media.Body,
|
|
205
|
+
null,
|
|
206
|
+
React__default.createElement(
|
|
207
|
+
'a',
|
|
208
|
+
{ rel: 'noopener', href: article.url.current, target: '_blank' },
|
|
209
|
+
article.title && React__default.createElement(
|
|
210
|
+
'h4',
|
|
211
|
+
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
212
|
+
article.title
|
|
213
|
+
)
|
|
214
|
+
),
|
|
215
|
+
showPublished && !showTimeDiff && article.published && React__default.createElement(
|
|
216
|
+
'p',
|
|
217
|
+
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
218
|
+
moment(article.published).format('MMMM DD, YYYY')
|
|
219
|
+
),
|
|
220
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
221
|
+
'p',
|
|
222
|
+
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
223
|
+
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
224
|
+
if (index > 3) {
|
|
225
|
+
return null;
|
|
226
|
+
}
|
|
227
|
+
if (index === 3) {
|
|
228
|
+
return React__default.createElement(
|
|
229
|
+
React__default.Fragment,
|
|
230
|
+
null,
|
|
231
|
+
React__default.createElement(
|
|
232
|
+
'em',
|
|
233
|
+
{ style: { marginRight: '.5rem' } },
|
|
234
|
+
'...'
|
|
235
|
+
)
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
return React__default.createElement(
|
|
239
|
+
React__default.Fragment,
|
|
240
|
+
null,
|
|
241
|
+
React__default.createElement(
|
|
242
|
+
'em',
|
|
243
|
+
null,
|
|
244
|
+
taxonomy.name
|
|
245
|
+
),
|
|
246
|
+
' |',
|
|
247
|
+
' '
|
|
248
|
+
);
|
|
249
|
+
}),
|
|
250
|
+
' ',
|
|
251
|
+
React__default.createElement(
|
|
252
|
+
'span',
|
|
253
|
+
{ style: { display: 'inline-block' } },
|
|
254
|
+
timeDifferenceCalc(article.published)
|
|
255
|
+
)
|
|
256
|
+
),
|
|
257
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
258
|
+
LazyLoad,
|
|
259
|
+
{ height: 50 },
|
|
260
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
261
|
+
),
|
|
262
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
263
|
+
'div',
|
|
264
|
+
{ className: 'content-category-label' },
|
|
265
|
+
React__default.createElement(
|
|
266
|
+
'div',
|
|
267
|
+
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
268
|
+
article.source
|
|
269
|
+
)
|
|
270
|
+
),
|
|
271
|
+
React__default.createElement(
|
|
272
|
+
'div',
|
|
273
|
+
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
274
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
275
|
+
'p',
|
|
276
|
+
{
|
|
277
|
+
className: 'article-category',
|
|
278
|
+
style: {
|
|
279
|
+
background: '#3FB618',
|
|
280
|
+
color: '#ffffff',
|
|
281
|
+
marginBottom: '.25rem',
|
|
282
|
+
display: 'inline-block',
|
|
283
|
+
padding: '0 .25rem',
|
|
284
|
+
fontSize: '.8rem'
|
|
285
|
+
} },
|
|
286
|
+
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
287
|
+
),
|
|
288
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
289
|
+
'p',
|
|
290
|
+
{
|
|
291
|
+
className: 'issueSection',
|
|
292
|
+
style: {
|
|
293
|
+
background: '#000000',
|
|
294
|
+
color: '#ffffff',
|
|
295
|
+
marginBottom: '.25rem',
|
|
296
|
+
marginLeft: '.25rem',
|
|
297
|
+
display: 'inline-block',
|
|
298
|
+
padding: '0 .25rem',
|
|
299
|
+
fontSize: '.8rem'
|
|
300
|
+
} },
|
|
301
|
+
article.issueSection.name
|
|
302
|
+
)
|
|
303
|
+
),
|
|
304
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
305
|
+
'div',
|
|
306
|
+
{ className: 'pubInfo' },
|
|
307
|
+
article.volume && React__default.createElement(
|
|
308
|
+
'p',
|
|
309
|
+
{ className: 'qdeVolume' },
|
|
310
|
+
article.volume
|
|
311
|
+
),
|
|
312
|
+
article.issue && React__default.createElement(
|
|
313
|
+
'p',
|
|
314
|
+
{ className: 'qdeIssue' },
|
|
315
|
+
article.issue
|
|
316
|
+
)
|
|
317
|
+
),
|
|
318
|
+
showIntro && article.summary && React__default.createElement(
|
|
319
|
+
'p',
|
|
320
|
+
{ className: 'pt-2 card-text' },
|
|
321
|
+
clean_html_1(article.summary)
|
|
322
|
+
)
|
|
323
|
+
)
|
|
324
|
+
);
|
|
325
|
+
} else {
|
|
326
|
+
return React__default.createElement(
|
|
327
|
+
Media,
|
|
328
|
+
{
|
|
329
|
+
key: article._id ? article._id : index,
|
|
330
|
+
className: 'feature-media',
|
|
331
|
+
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
332
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
333
|
+
'a',
|
|
334
|
+
{ href: article.url.current, className: 'feature-wrapper' },
|
|
335
|
+
React__default.createElement(
|
|
336
|
+
LazyLoad,
|
|
337
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
338
|
+
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 })
|
|
339
|
+
),
|
|
340
|
+
article.source && React__default.createElement(
|
|
341
|
+
'div',
|
|
342
|
+
{ className: 'content-category-label' },
|
|
343
|
+
React__default.createElement(
|
|
344
|
+
'div',
|
|
345
|
+
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
346
|
+
article.source
|
|
347
|
+
)
|
|
348
|
+
)
|
|
349
|
+
),
|
|
350
|
+
React__default.createElement(
|
|
351
|
+
Media.Body,
|
|
352
|
+
null,
|
|
353
|
+
React__default.createElement(
|
|
354
|
+
'a',
|
|
355
|
+
{ href: article.url.current },
|
|
356
|
+
article.title && React__default.createElement(
|
|
357
|
+
'h4',
|
|
358
|
+
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
359
|
+
article.title
|
|
360
|
+
)
|
|
361
|
+
),
|
|
362
|
+
showPublished && !showTimeDiff && article.published && React__default.createElement(
|
|
363
|
+
'p',
|
|
364
|
+
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
365
|
+
moment(article.published).format('MMMM DD, YYYY')
|
|
366
|
+
),
|
|
367
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
368
|
+
'p',
|
|
369
|
+
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
370
|
+
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
371
|
+
if (index > 3) {
|
|
372
|
+
return null;
|
|
373
|
+
}
|
|
374
|
+
if (index === 3) {
|
|
375
|
+
return React__default.createElement(
|
|
376
|
+
React__default.Fragment,
|
|
377
|
+
null,
|
|
378
|
+
React__default.createElement(
|
|
379
|
+
'em',
|
|
380
|
+
{ style: { marginRight: '.5rem' } },
|
|
381
|
+
'...'
|
|
382
|
+
)
|
|
383
|
+
);
|
|
384
|
+
}
|
|
385
|
+
if (index === 3) {
|
|
386
|
+
return React__default.createElement(
|
|
387
|
+
React__default.Fragment,
|
|
388
|
+
null,
|
|
389
|
+
React__default.createElement(
|
|
390
|
+
'em',
|
|
391
|
+
{ style: { marginRight: '.5rem' } },
|
|
392
|
+
'...'
|
|
393
|
+
)
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
return React__default.createElement(
|
|
397
|
+
React__default.Fragment,
|
|
398
|
+
null,
|
|
399
|
+
React__default.createElement(
|
|
400
|
+
'em',
|
|
401
|
+
null,
|
|
402
|
+
taxonomy.name
|
|
403
|
+
),
|
|
404
|
+
' |',
|
|
405
|
+
' '
|
|
406
|
+
);
|
|
407
|
+
}),
|
|
408
|
+
' ',
|
|
409
|
+
React__default.createElement(
|
|
410
|
+
'span',
|
|
411
|
+
{ style: { display: 'inline-block' } },
|
|
412
|
+
timeDifferenceCalc(article.published)
|
|
413
|
+
)
|
|
414
|
+
),
|
|
415
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
416
|
+
LazyLoad,
|
|
417
|
+
{ height: 50 },
|
|
418
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
419
|
+
),
|
|
420
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
421
|
+
'div',
|
|
422
|
+
{ className: 'content-category-label' },
|
|
423
|
+
React__default.createElement(
|
|
424
|
+
'div',
|
|
425
|
+
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
426
|
+
article.source
|
|
427
|
+
)
|
|
428
|
+
),
|
|
429
|
+
React__default.createElement(
|
|
430
|
+
'div',
|
|
431
|
+
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
432
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
433
|
+
'p',
|
|
434
|
+
{
|
|
435
|
+
className: 'article-category',
|
|
436
|
+
style: {
|
|
437
|
+
background: '#3FB618',
|
|
438
|
+
color: '#ffffff',
|
|
439
|
+
marginBottom: '.25rem',
|
|
440
|
+
display: 'inline-block',
|
|
441
|
+
padding: '0 .25rem',
|
|
442
|
+
fontSize: '.8rem'
|
|
443
|
+
} },
|
|
444
|
+
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
445
|
+
),
|
|
446
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
447
|
+
'p',
|
|
448
|
+
{
|
|
449
|
+
className: 'issueSection',
|
|
450
|
+
style: {
|
|
451
|
+
background: '#000000',
|
|
452
|
+
color: '#ffffff',
|
|
453
|
+
marginBottom: '.25rem',
|
|
454
|
+
marginLeft: '.25rem',
|
|
455
|
+
display: 'inline-block',
|
|
456
|
+
padding: '0 .25rem',
|
|
457
|
+
fontSize: '.8rem'
|
|
458
|
+
} },
|
|
459
|
+
article.issueSection.name
|
|
460
|
+
)
|
|
461
|
+
),
|
|
462
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
463
|
+
'div',
|
|
464
|
+
{ className: 'pubInfo' },
|
|
465
|
+
article.volume && React__default.createElement(
|
|
466
|
+
'p',
|
|
467
|
+
{ className: 'qdeVolume' },
|
|
468
|
+
article.volume
|
|
469
|
+
),
|
|
470
|
+
article.issue && React__default.createElement(
|
|
471
|
+
'p',
|
|
472
|
+
{ className: 'qdeIssue' },
|
|
473
|
+
article.issue
|
|
474
|
+
)
|
|
475
|
+
),
|
|
476
|
+
showIntro && article.summary && React__default.createElement(
|
|
477
|
+
'p',
|
|
478
|
+
{ className: 'pt-2 card-text' },
|
|
479
|
+
clean_html_1(article.summary)
|
|
480
|
+
)
|
|
481
|
+
)
|
|
482
|
+
);
|
|
483
|
+
}
|
|
484
|
+
} else if (article._type === 'lg-infeed' && article.adUnit) {
|
|
485
|
+
return React__default.createElement(ADlgInfeed, _extends({ index: index }, article));
|
|
486
|
+
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
487
|
+
return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
488
|
+
}
|
|
489
|
+
if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
|
|
490
|
+
return React__default.createElement(
|
|
491
|
+
React__default.Fragment,
|
|
492
|
+
{ key: article._id ? article._id : index },
|
|
493
|
+
React__default.createElement(
|
|
494
|
+
Media,
|
|
495
|
+
{
|
|
496
|
+
key: article._id ? article._id : index,
|
|
497
|
+
style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
498
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
499
|
+
'a',
|
|
500
|
+
{ href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
|
|
501
|
+
React__default.createElement(
|
|
502
|
+
LazyLoad,
|
|
503
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
504
|
+
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 })
|
|
505
|
+
),
|
|
506
|
+
article.source && React__default.createElement(
|
|
507
|
+
'div',
|
|
508
|
+
{ className: 'content-category-label' },
|
|
509
|
+
React__default.createElement(
|
|
510
|
+
'div',
|
|
511
|
+
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
512
|
+
article.source
|
|
513
|
+
)
|
|
514
|
+
)
|
|
515
|
+
),
|
|
516
|
+
React__default.createElement(
|
|
517
|
+
Media.Body,
|
|
518
|
+
null,
|
|
519
|
+
React__default.createElement(
|
|
520
|
+
'a',
|
|
521
|
+
{ href: mapping[contentCategoryName] + '/' + article.url.current },
|
|
522
|
+
article.title && React__default.createElement(
|
|
523
|
+
'h4',
|
|
524
|
+
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
525
|
+
article.title
|
|
526
|
+
)
|
|
527
|
+
),
|
|
528
|
+
showPublished && !showTimeDiff && article.published && React__default.createElement(
|
|
529
|
+
'p',
|
|
530
|
+
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
531
|
+
moment(article.published).format('MMMM DD, YYYY')
|
|
532
|
+
),
|
|
533
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
534
|
+
'p',
|
|
535
|
+
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
536
|
+
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
537
|
+
if (index > 3) {
|
|
538
|
+
return null;
|
|
539
|
+
}
|
|
540
|
+
if (index === 3) {
|
|
541
|
+
return React__default.createElement(
|
|
542
|
+
React__default.Fragment,
|
|
543
|
+
null,
|
|
544
|
+
React__default.createElement(
|
|
545
|
+
'em',
|
|
546
|
+
{ style: { marginRight: '.5rem' } },
|
|
547
|
+
'...'
|
|
548
|
+
)
|
|
549
|
+
);
|
|
550
|
+
}
|
|
551
|
+
return React__default.createElement(
|
|
552
|
+
React__default.Fragment,
|
|
553
|
+
null,
|
|
554
|
+
React__default.createElement(
|
|
555
|
+
'em',
|
|
556
|
+
null,
|
|
557
|
+
taxonomy.name
|
|
558
|
+
),
|
|
559
|
+
' |',
|
|
560
|
+
' '
|
|
561
|
+
);
|
|
562
|
+
}),
|
|
563
|
+
' ',
|
|
564
|
+
React__default.createElement(
|
|
565
|
+
'span',
|
|
566
|
+
{ style: { display: 'inline-block' } },
|
|
567
|
+
timeDifferenceCalc(article.published)
|
|
568
|
+
)
|
|
569
|
+
),
|
|
570
|
+
React__default.createElement(
|
|
571
|
+
'div',
|
|
572
|
+
{ className: 'author-sec', style: { lineHeight: 1.5 } },
|
|
573
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
574
|
+
LazyLoad,
|
|
575
|
+
{ height: 50 },
|
|
576
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
577
|
+
)
|
|
578
|
+
),
|
|
579
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
580
|
+
'div',
|
|
581
|
+
{ className: 'content-category-label' },
|
|
582
|
+
React__default.createElement(
|
|
583
|
+
'div',
|
|
584
|
+
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
585
|
+
article.source
|
|
586
|
+
)
|
|
587
|
+
),
|
|
588
|
+
React__default.createElement(
|
|
589
|
+
'div',
|
|
590
|
+
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
591
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
592
|
+
'p',
|
|
593
|
+
{
|
|
594
|
+
className: 'article-category',
|
|
595
|
+
style: {
|
|
596
|
+
background: '#3FB618',
|
|
597
|
+
color: '#ffffff',
|
|
598
|
+
marginBottom: '.25rem',
|
|
599
|
+
display: 'inline-block',
|
|
600
|
+
padding: '0 .25rem',
|
|
601
|
+
fontSize: '.8rem'
|
|
602
|
+
} },
|
|
603
|
+
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
604
|
+
),
|
|
605
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
606
|
+
'p',
|
|
607
|
+
{
|
|
608
|
+
className: 'issueSection',
|
|
609
|
+
style: {
|
|
610
|
+
background: '#000000',
|
|
611
|
+
color: '#ffffff',
|
|
612
|
+
marginBottom: '.25rem',
|
|
613
|
+
marginLeft: '.25rem',
|
|
614
|
+
display: 'inline-block',
|
|
615
|
+
padding: '0 .25rem',
|
|
616
|
+
fontSize: '.8rem'
|
|
617
|
+
} },
|
|
618
|
+
article.issueSection.name
|
|
619
|
+
)
|
|
620
|
+
),
|
|
621
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
622
|
+
'div',
|
|
623
|
+
{ className: 'pubInfo' },
|
|
624
|
+
article.volume && React__default.createElement(
|
|
625
|
+
'p',
|
|
626
|
+
{ className: 'qdeVolume' },
|
|
627
|
+
article.volume
|
|
628
|
+
),
|
|
629
|
+
article.issue && React__default.createElement(
|
|
630
|
+
'p',
|
|
631
|
+
{ className: 'qdeIssue' },
|
|
632
|
+
article.issue
|
|
633
|
+
)
|
|
634
|
+
),
|
|
635
|
+
showIntro && article.summary && React__default.createElement(
|
|
636
|
+
'p',
|
|
637
|
+
{ className: 'pt-2 card-text' },
|
|
638
|
+
clean_html_1(article.summary)
|
|
639
|
+
)
|
|
640
|
+
)
|
|
641
|
+
),
|
|
642
|
+
React__default.createElement(
|
|
643
|
+
'div',
|
|
644
|
+
null,
|
|
645
|
+
main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
|
|
646
|
+
)
|
|
647
|
+
);
|
|
648
|
+
} else return null;
|
|
649
|
+
}) :
|
|
650
|
+
// For Javascript Disabled Cases
|
|
651
|
+
React__default.createElement(
|
|
652
|
+
'noscript',
|
|
653
|
+
null,
|
|
654
|
+
data.map(function (article, index) {
|
|
655
|
+
var contentCategoryName = article.contentCategory ? article.contentCategory.name : 'Articles';
|
|
656
|
+
|
|
657
|
+
if (article._type === 'feature') {
|
|
658
|
+
featureCount++;
|
|
659
|
+
if (article.blank || checkExternalUrl(article.url.current)) {
|
|
660
|
+
return React__default.createElement(
|
|
661
|
+
Media,
|
|
662
|
+
{
|
|
663
|
+
key: article._id ? article._id : index,
|
|
664
|
+
className: 'feature-media',
|
|
665
|
+
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
666
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
667
|
+
'a',
|
|
668
|
+
{ rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
669
|
+
React__default.createElement(
|
|
670
|
+
LazyLoad,
|
|
671
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
672
|
+
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 })
|
|
673
|
+
),
|
|
674
|
+
article.source && React__default.createElement(
|
|
675
|
+
'div',
|
|
676
|
+
{ className: 'content-category-label' },
|
|
677
|
+
React__default.createElement(
|
|
678
|
+
'div',
|
|
679
|
+
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
680
|
+
article.source
|
|
681
|
+
)
|
|
682
|
+
)
|
|
683
|
+
),
|
|
684
|
+
React__default.createElement(
|
|
685
|
+
Media.Body,
|
|
686
|
+
null,
|
|
687
|
+
React__default.createElement(
|
|
688
|
+
'a',
|
|
689
|
+
{ rel: 'noopener', href: article.url.current, target: '_blank' },
|
|
690
|
+
article.title && React__default.createElement(
|
|
691
|
+
'h4',
|
|
692
|
+
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
693
|
+
article.title
|
|
694
|
+
)
|
|
695
|
+
),
|
|
696
|
+
showPublished && article.published && React__default.createElement(
|
|
697
|
+
'p',
|
|
698
|
+
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
699
|
+
moment(article.published).format('MMMM DD, YYYY')
|
|
700
|
+
),
|
|
701
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
702
|
+
'p',
|
|
703
|
+
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
704
|
+
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
705
|
+
if (index > 3) {
|
|
706
|
+
return null;
|
|
707
|
+
}
|
|
708
|
+
if (index === 3) {
|
|
709
|
+
return React__default.createElement(
|
|
710
|
+
React__default.Fragment,
|
|
711
|
+
null,
|
|
712
|
+
React__default.createElement(
|
|
713
|
+
'em',
|
|
714
|
+
{ style: { marginRight: '.5rem' } },
|
|
715
|
+
'...'
|
|
716
|
+
)
|
|
717
|
+
);
|
|
718
|
+
}
|
|
719
|
+
return React__default.createElement(
|
|
720
|
+
React__default.Fragment,
|
|
721
|
+
null,
|
|
722
|
+
React__default.createElement(
|
|
723
|
+
'em',
|
|
724
|
+
null,
|
|
725
|
+
taxonomy.name
|
|
726
|
+
),
|
|
727
|
+
' |',
|
|
728
|
+
' '
|
|
729
|
+
);
|
|
730
|
+
}),
|
|
731
|
+
' ',
|
|
732
|
+
React__default.createElement(
|
|
733
|
+
'span',
|
|
734
|
+
{ style: { display: 'inline-block' } },
|
|
735
|
+
timeDifferenceCalc(article.published)
|
|
736
|
+
)
|
|
737
|
+
),
|
|
738
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
739
|
+
LazyLoad,
|
|
740
|
+
{ height: 50 },
|
|
741
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
742
|
+
),
|
|
743
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
744
|
+
'div',
|
|
745
|
+
{ className: 'content-category-label' },
|
|
746
|
+
React__default.createElement(
|
|
747
|
+
'div',
|
|
748
|
+
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
749
|
+
article.source
|
|
750
|
+
)
|
|
751
|
+
),
|
|
752
|
+
React__default.createElement(
|
|
753
|
+
'div',
|
|
754
|
+
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
755
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
756
|
+
'p',
|
|
757
|
+
{
|
|
758
|
+
className: 'article-category',
|
|
759
|
+
style: {
|
|
760
|
+
background: '#3FB618',
|
|
761
|
+
color: '#ffffff',
|
|
762
|
+
marginBottom: '.25rem',
|
|
763
|
+
display: 'inline-block',
|
|
764
|
+
padding: '0 .25rem',
|
|
765
|
+
fontSize: '.8rem'
|
|
766
|
+
} },
|
|
767
|
+
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
768
|
+
),
|
|
769
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
770
|
+
'p',
|
|
771
|
+
{
|
|
772
|
+
className: 'issueSection',
|
|
773
|
+
style: {
|
|
774
|
+
background: '#000000',
|
|
775
|
+
color: '#ffffff',
|
|
776
|
+
marginBottom: '.25rem',
|
|
777
|
+
marginLeft: '.25rem',
|
|
778
|
+
display: 'inline-block',
|
|
779
|
+
padding: '0 .25rem',
|
|
780
|
+
fontSize: '.8rem'
|
|
781
|
+
} },
|
|
782
|
+
article.issueSection.name
|
|
783
|
+
)
|
|
784
|
+
),
|
|
785
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
786
|
+
'div',
|
|
787
|
+
{ className: 'pubInfo' },
|
|
788
|
+
article.volume && React__default.createElement(
|
|
789
|
+
'p',
|
|
790
|
+
{ className: 'qdeVolume' },
|
|
791
|
+
article.volume
|
|
792
|
+
),
|
|
793
|
+
article.issue && React__default.createElement(
|
|
794
|
+
'p',
|
|
795
|
+
{ className: 'qdeIssue' },
|
|
796
|
+
article.issue
|
|
797
|
+
)
|
|
798
|
+
),
|
|
799
|
+
showIntro && article.summary && React__default.createElement(
|
|
800
|
+
'p',
|
|
801
|
+
{ className: 'pt-2 card-text' },
|
|
802
|
+
clean_html_1(article.summary)
|
|
803
|
+
)
|
|
804
|
+
)
|
|
805
|
+
);
|
|
806
|
+
} else {
|
|
807
|
+
return React__default.createElement(
|
|
808
|
+
Media,
|
|
809
|
+
{
|
|
810
|
+
key: article._id ? article._id : index,
|
|
811
|
+
className: 'feature-media',
|
|
812
|
+
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
813
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
814
|
+
'a',
|
|
815
|
+
{ href: article.url.current, className: 'feature-wrapper' },
|
|
816
|
+
React__default.createElement(
|
|
817
|
+
LazyLoad,
|
|
818
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
819
|
+
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 })
|
|
820
|
+
),
|
|
821
|
+
article.source && React__default.createElement(
|
|
822
|
+
'div',
|
|
823
|
+
{ className: 'content-category-label' },
|
|
824
|
+
React__default.createElement(
|
|
825
|
+
'div',
|
|
826
|
+
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
827
|
+
article.source
|
|
828
|
+
)
|
|
829
|
+
)
|
|
830
|
+
),
|
|
831
|
+
React__default.createElement(
|
|
832
|
+
Media.Body,
|
|
833
|
+
null,
|
|
834
|
+
React__default.createElement(
|
|
835
|
+
'a',
|
|
836
|
+
{ href: article.url.current },
|
|
837
|
+
article.title && React__default.createElement(
|
|
838
|
+
'h4',
|
|
839
|
+
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
840
|
+
article.title
|
|
841
|
+
)
|
|
842
|
+
),
|
|
843
|
+
showPublished && article.published && React__default.createElement(
|
|
844
|
+
'p',
|
|
845
|
+
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
846
|
+
moment(article.published).format('MMMM DD, YYYY')
|
|
847
|
+
),
|
|
848
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
849
|
+
'p',
|
|
850
|
+
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
851
|
+
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
852
|
+
if (index > 3) {
|
|
853
|
+
return null;
|
|
854
|
+
}
|
|
855
|
+
if (index === 3) {
|
|
856
|
+
return React__default.createElement(
|
|
857
|
+
React__default.Fragment,
|
|
858
|
+
null,
|
|
859
|
+
React__default.createElement(
|
|
860
|
+
'em',
|
|
861
|
+
{ style: { marginRight: '.5rem' } },
|
|
862
|
+
'...'
|
|
863
|
+
)
|
|
864
|
+
);
|
|
865
|
+
}
|
|
866
|
+
return React__default.createElement(
|
|
867
|
+
React__default.Fragment,
|
|
868
|
+
null,
|
|
869
|
+
React__default.createElement(
|
|
870
|
+
'em',
|
|
871
|
+
null,
|
|
872
|
+
taxonomy.name
|
|
873
|
+
),
|
|
874
|
+
' |',
|
|
875
|
+
' '
|
|
876
|
+
);
|
|
877
|
+
}),
|
|
878
|
+
' ',
|
|
879
|
+
React__default.createElement(
|
|
880
|
+
'span',
|
|
881
|
+
{ style: { display: 'inline-block' } },
|
|
882
|
+
timeDifferenceCalc(article.published)
|
|
883
|
+
)
|
|
884
|
+
),
|
|
885
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
886
|
+
LazyLoad,
|
|
887
|
+
{ height: 50 },
|
|
888
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
889
|
+
),
|
|
890
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
891
|
+
'div',
|
|
892
|
+
{ className: 'content-category-label' },
|
|
893
|
+
React__default.createElement(
|
|
894
|
+
'div',
|
|
895
|
+
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
896
|
+
article.source
|
|
897
|
+
)
|
|
898
|
+
),
|
|
899
|
+
React__default.createElement(
|
|
900
|
+
'div',
|
|
901
|
+
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
902
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
903
|
+
'p',
|
|
904
|
+
{
|
|
905
|
+
className: 'article-category',
|
|
906
|
+
style: {
|
|
907
|
+
background: '#3FB618',
|
|
908
|
+
color: '#ffffff',
|
|
909
|
+
marginBottom: '.25rem',
|
|
910
|
+
display: 'inline-block',
|
|
911
|
+
padding: '0 .25rem',
|
|
912
|
+
fontSize: '.8rem'
|
|
913
|
+
} },
|
|
914
|
+
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
915
|
+
),
|
|
916
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
917
|
+
'p',
|
|
918
|
+
{
|
|
919
|
+
className: 'issueSection',
|
|
920
|
+
style: {
|
|
921
|
+
background: '#000000',
|
|
922
|
+
color: '#ffffff',
|
|
923
|
+
marginBottom: '.25rem',
|
|
924
|
+
marginLeft: '.25rem',
|
|
925
|
+
display: 'inline-block',
|
|
926
|
+
padding: '0 .25rem',
|
|
927
|
+
fontSize: '.8rem'
|
|
928
|
+
} },
|
|
929
|
+
article.issueSection.name
|
|
930
|
+
)
|
|
931
|
+
),
|
|
932
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
933
|
+
'div',
|
|
934
|
+
{ className: 'pubInfo' },
|
|
935
|
+
article.volume && React__default.createElement(
|
|
936
|
+
'p',
|
|
937
|
+
{ className: 'qdeVolume' },
|
|
938
|
+
article.volume
|
|
939
|
+
),
|
|
940
|
+
article.issue && React__default.createElement(
|
|
941
|
+
'p',
|
|
942
|
+
{ className: 'qdeIssue' },
|
|
943
|
+
article.issue
|
|
944
|
+
)
|
|
945
|
+
),
|
|
946
|
+
showIntro && article.summary && React__default.createElement(
|
|
947
|
+
'p',
|
|
948
|
+
{ className: 'pt-2 card-text' },
|
|
949
|
+
clean_html_1(article.summary)
|
|
950
|
+
)
|
|
951
|
+
)
|
|
952
|
+
);
|
|
953
|
+
}
|
|
954
|
+
} else if (article._type === 'lg-infeed' && article.adUnit) {
|
|
955
|
+
return React__default.createElement(ADlgInfeed, _extends({ index: index }, article));
|
|
956
|
+
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
957
|
+
return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
958
|
+
}
|
|
959
|
+
if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
|
|
960
|
+
return React__default.createElement(
|
|
961
|
+
React__default.Fragment,
|
|
962
|
+
{ key: article._id ? article._id : index },
|
|
963
|
+
React__default.createElement(
|
|
964
|
+
Media,
|
|
965
|
+
{
|
|
966
|
+
key: article._id ? article._id : index,
|
|
967
|
+
style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
968
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
969
|
+
'a',
|
|
970
|
+
{ href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
|
|
971
|
+
React__default.createElement(
|
|
972
|
+
LazyLoad,
|
|
973
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder, null) },
|
|
974
|
+
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 })
|
|
975
|
+
),
|
|
976
|
+
article.source && React__default.createElement(
|
|
977
|
+
'div',
|
|
978
|
+
{ className: 'content-category-label' },
|
|
979
|
+
React__default.createElement(
|
|
980
|
+
'div',
|
|
981
|
+
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
982
|
+
article.source
|
|
983
|
+
)
|
|
984
|
+
)
|
|
985
|
+
),
|
|
986
|
+
React__default.createElement(
|
|
987
|
+
Media.Body,
|
|
988
|
+
null,
|
|
989
|
+
React__default.createElement(
|
|
990
|
+
'a',
|
|
991
|
+
{ href: mapping[contentCategoryName] + '/' + article.url.current },
|
|
992
|
+
article.title && React__default.createElement(
|
|
993
|
+
'h4',
|
|
994
|
+
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
995
|
+
article.title
|
|
996
|
+
)
|
|
997
|
+
),
|
|
998
|
+
showPublished && article.published && React__default.createElement(
|
|
999
|
+
'p',
|
|
1000
|
+
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
1001
|
+
moment(article.published).format('MMMM DD, YYYY')
|
|
1002
|
+
),
|
|
1003
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
1004
|
+
'p',
|
|
1005
|
+
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
1006
|
+
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
1007
|
+
if (index > 3) {
|
|
1008
|
+
return null;
|
|
1009
|
+
}
|
|
1010
|
+
if (index === 3) {
|
|
1011
|
+
return React__default.createElement(
|
|
1012
|
+
React__default.Fragment,
|
|
1013
|
+
null,
|
|
1014
|
+
React__default.createElement(
|
|
1015
|
+
'em',
|
|
1016
|
+
{ style: { marginRight: '.5rem' } },
|
|
1017
|
+
'...'
|
|
1018
|
+
)
|
|
1019
|
+
);
|
|
1020
|
+
}
|
|
1021
|
+
return React__default.createElement(
|
|
1022
|
+
React__default.Fragment,
|
|
1023
|
+
null,
|
|
1024
|
+
React__default.createElement(
|
|
1025
|
+
'em',
|
|
1026
|
+
null,
|
|
1027
|
+
taxonomy.name
|
|
1028
|
+
),
|
|
1029
|
+
' |',
|
|
1030
|
+
' '
|
|
1031
|
+
);
|
|
1032
|
+
}),
|
|
1033
|
+
' ',
|
|
1034
|
+
React__default.createElement(
|
|
1035
|
+
'span',
|
|
1036
|
+
{ style: { display: 'inline-block' } },
|
|
1037
|
+
timeDifferenceCalc(article.published)
|
|
1038
|
+
)
|
|
1039
|
+
),
|
|
1040
|
+
React__default.createElement(
|
|
1041
|
+
'div',
|
|
1042
|
+
{ className: 'author-sec', style: { lineHeight: 1.5 } },
|
|
1043
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
1044
|
+
LazyLoad,
|
|
1045
|
+
{ height: 50 },
|
|
1046
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
1047
|
+
)
|
|
1048
|
+
),
|
|
1049
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
1050
|
+
'div',
|
|
1051
|
+
{ className: 'content-category-label' },
|
|
1052
|
+
React__default.createElement(
|
|
1053
|
+
'div',
|
|
1054
|
+
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
1055
|
+
article.source
|
|
1056
|
+
)
|
|
1057
|
+
),
|
|
1058
|
+
React__default.createElement(
|
|
1059
|
+
'div',
|
|
1060
|
+
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
1061
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
1062
|
+
'p',
|
|
1063
|
+
{
|
|
1064
|
+
className: 'article-category',
|
|
1065
|
+
style: {
|
|
1066
|
+
background: '#3FB618',
|
|
1067
|
+
color: '#ffffff',
|
|
1068
|
+
marginBottom: '.25rem',
|
|
1069
|
+
display: 'inline-block',
|
|
1070
|
+
padding: '0 .25rem',
|
|
1071
|
+
fontSize: '.8rem'
|
|
1072
|
+
} },
|
|
1073
|
+
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
1074
|
+
),
|
|
1075
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
1076
|
+
'p',
|
|
1077
|
+
{
|
|
1078
|
+
className: 'issueSection',
|
|
1079
|
+
style: {
|
|
1080
|
+
background: '#000000',
|
|
1081
|
+
color: '#ffffff',
|
|
1082
|
+
marginBottom: '.25rem',
|
|
1083
|
+
marginLeft: '.25rem',
|
|
1084
|
+
display: 'inline-block',
|
|
1085
|
+
padding: '0 .25rem',
|
|
1086
|
+
fontSize: '.8rem'
|
|
1087
|
+
} },
|
|
1088
|
+
article.issueSection.name
|
|
1089
|
+
)
|
|
1090
|
+
),
|
|
1091
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
1092
|
+
'div',
|
|
1093
|
+
{ className: 'pubInfo' },
|
|
1094
|
+
article.volume && React__default.createElement(
|
|
1095
|
+
'p',
|
|
1096
|
+
{ className: 'qdeVolume' },
|
|
1097
|
+
article.volume
|
|
1098
|
+
),
|
|
1099
|
+
article.issue && React__default.createElement(
|
|
1100
|
+
'p',
|
|
1101
|
+
{ className: 'qdeIssue' },
|
|
1102
|
+
article.issue
|
|
1103
|
+
)
|
|
1104
|
+
),
|
|
1105
|
+
showIntro && article.summary && React__default.createElement(
|
|
1106
|
+
'p',
|
|
1107
|
+
{ className: 'pt-2 card-text' },
|
|
1108
|
+
clean_html_1(article.summary)
|
|
1109
|
+
)
|
|
1110
|
+
)
|
|
1111
|
+
),
|
|
1112
|
+
React__default.createElement(
|
|
1113
|
+
'div',
|
|
1114
|
+
null,
|
|
1115
|
+
main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
|
|
1116
|
+
)
|
|
1117
|
+
);
|
|
1118
|
+
} else return null;
|
|
1119
|
+
})
|
|
1120
|
+
) : React__default.createElement(
|
|
1121
|
+
'div',
|
|
1122
|
+
null,
|
|
1123
|
+
React__default.createElement(
|
|
1124
|
+
'h5',
|
|
1125
|
+
null,
|
|
1126
|
+
React__default.createElement(
|
|
1127
|
+
'em',
|
|
1128
|
+
null,
|
|
1129
|
+
'New content coming soon, please check back later.'
|
|
1130
|
+
)
|
|
1131
|
+
)
|
|
1132
|
+
),
|
|
1133
|
+
React__default.createElement(
|
|
1134
|
+
'style',
|
|
1135
|
+
{ jsx: 'true' },
|
|
1136
|
+
'\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 '
|
|
1137
|
+
)
|
|
1138
|
+
);
|
|
1139
|
+
};
|
|
40
1140
|
|
|
41
|
-
var
|
|
1141
|
+
var ImagePlaceholder = function ImagePlaceholder() {
|
|
1142
|
+
return React__default.createElement(
|
|
1143
|
+
React__default.Fragment,
|
|
1144
|
+
null,
|
|
1145
|
+
React__default.createElement('div', { className: 'queuedeck-exp-image-placeholder' }),
|
|
1146
|
+
React__default.createElement(
|
|
1147
|
+
'style',
|
|
1148
|
+
{ jsx: 'true' },
|
|
1149
|
+
'\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 '
|
|
1150
|
+
)
|
|
1151
|
+
);
|
|
1152
|
+
};
|
|
1153
|
+
|
|
1154
|
+
var renderMobileAd = function renderMobileAd(index, numberOfItemsBeforeAd, rightItems) {
|
|
1155
|
+
var i = numberOfItemsBeforeAd < 6 ? 0 : ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
1156
|
+
return React__default.createElement(
|
|
1157
|
+
'div',
|
|
1158
|
+
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
1159
|
+
rightItems[i].component
|
|
1160
|
+
);
|
|
1161
|
+
};
|
|
1162
|
+
|
|
1163
|
+
var usePrevious = function usePrevious(value) {
|
|
1164
|
+
var ref = useRef();
|
|
1165
|
+
useEffect(function () {
|
|
1166
|
+
ref.current = value;
|
|
1167
|
+
});
|
|
1168
|
+
return ref.current;
|
|
1169
|
+
};
|
|
1170
|
+
|
|
1171
|
+
var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
1172
|
+
var router = useRouter();
|
|
1173
|
+
var initialData = props.dataRecord,
|
|
1174
|
+
initialCurrentPage = props.currentPage,
|
|
1175
|
+
client = props.client,
|
|
1176
|
+
params = props.params,
|
|
1177
|
+
query = props.query,
|
|
1178
|
+
pointer = props.pointer,
|
|
1179
|
+
pointerArray = props.pointerArray,
|
|
1180
|
+
mapping = props.mapping,
|
|
1181
|
+
seoPaginate = props.seoPaginate,
|
|
1182
|
+
pageview = props.pageview,
|
|
1183
|
+
defaultImage = props.defaultImage,
|
|
1184
|
+
showAuthor = props.showAuthor,
|
|
1185
|
+
showCategory = props.showCategory,
|
|
1186
|
+
imageHeight = props.imageHeight,
|
|
1187
|
+
imageWidth = props.imageWidth,
|
|
1188
|
+
imageMaxHeight = props.imageMaxHeight,
|
|
1189
|
+
imageFit = props.imageFit,
|
|
1190
|
+
rightItems = props.rightItems,
|
|
1191
|
+
brandInsightAd = props.brandInsightAd,
|
|
1192
|
+
_props$showBI = props.showBI,
|
|
1193
|
+
showBI = _props$showBI === undefined ? false : _props$showBI,
|
|
1194
|
+
_props$heroContent = props.heroContent,
|
|
1195
|
+
heroContent = _props$heroContent === undefined ? 0 : _props$heroContent,
|
|
1196
|
+
_props$lgInfeedAd = props.lgInfeedAd,
|
|
1197
|
+
lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd,
|
|
1198
|
+
_props$showPubInfo = props.showPubInfo,
|
|
1199
|
+
showPubInfo = _props$showPubInfo === undefined ? false : _props$showPubInfo,
|
|
1200
|
+
_props$showTimeDiff = props.showTimeDiff,
|
|
1201
|
+
showTimeDiff = _props$showTimeDiff === undefined ? false : _props$showTimeDiff,
|
|
1202
|
+
_props$showTaxonomies = props.showTaxonomies,
|
|
1203
|
+
showTaxonomies = _props$showTaxonomies === undefined ? false : _props$showTaxonomies,
|
|
1204
|
+
_props$showIntro = props.showIntro,
|
|
1205
|
+
showIntro = _props$showIntro === undefined ? true : _props$showIntro,
|
|
1206
|
+
_props$contentCategor = props.contentCategoryMapping,
|
|
1207
|
+
contentCategoryMapping = _props$contentCategor === undefined ? [] : _props$contentCategor,
|
|
1208
|
+
showPublished = props.showPublished,
|
|
1209
|
+
totalDataCount = props.totalDataCount;
|
|
1210
|
+
|
|
1211
|
+
var _useState3 = useState(initialData),
|
|
1212
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
1213
|
+
data = _useState4[0],
|
|
1214
|
+
setData = _useState4[1];
|
|
1215
|
+
|
|
1216
|
+
var _useState5 = useState(false),
|
|
1217
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
1218
|
+
isDataLoading = _useState6[0],
|
|
1219
|
+
setIsDataLoading = _useState6[1];
|
|
1220
|
+
|
|
1221
|
+
var _useState7 = useState(initialCurrentPage || 1),
|
|
1222
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
1223
|
+
currentPage = _useState8[0],
|
|
1224
|
+
setCurrentPage = _useState8[1];
|
|
1225
|
+
|
|
1226
|
+
var itemsPerPage = params && params.itemsPerPage ? params.itemsPerPage : params && params.from && params.to ? params.to - params.from : 10;
|
|
1227
|
+
|
|
1228
|
+
// Logging GA Pageview on path change
|
|
1229
|
+
var prevPath = usePrevious(lodash.get(router, 'asPath', undefined));
|
|
1230
|
+
useEffect(function () {
|
|
1231
|
+
var currentPath = router.asPath;
|
|
1232
|
+
if (prevPath && prevPath !== currentPath && pageview) {
|
|
1233
|
+
pageview(router.asPath);
|
|
1234
|
+
}
|
|
1235
|
+
}, [router]);
|
|
1236
|
+
|
|
1237
|
+
var seoPagination = function seoPagination(pageNumber) {
|
|
1238
|
+
var path = router.asPath;
|
|
1239
|
+
var qrIndex = path.indexOf('?');
|
|
1240
|
+
var pathname = router.pathname;
|
|
1241
|
+
var queryString = '';
|
|
1242
|
+
if (qrIndex > 0) {
|
|
1243
|
+
path = path.substring(1, qrIndex);
|
|
1244
|
+
var partialQS = router.asPath.substring(qrIndex + 1);
|
|
1245
|
+
var partialQSArr = partialQS.split('&');
|
|
1246
|
+
// exclude page=xxx from query string
|
|
1247
|
+
partialQSArr.map(function (item) {
|
|
1248
|
+
var itemArr = item.split('=');
|
|
1249
|
+
var key = itemArr[0];
|
|
1250
|
+
var val = itemArr[1];
|
|
1251
|
+
if (key !== 'page') queryString += (queryString.length === 0 ? '' : '&') + key + '=' + val;
|
|
1252
|
+
});
|
|
1253
|
+
}
|
|
1254
|
+
if (queryString.length > 0) path += '?' + queryString;
|
|
1255
|
+
pageNumber = parseInt(pageNumber);
|
|
1256
|
+
if (currentPage !== pageNumber) {
|
|
1257
|
+
if (path[0] !== '/') path = '/' + path;
|
|
1258
|
+
var newPath = pageNumber === 1 ? '' + path : '' + path + (queryString.length > 0 ? '&' : '?') + 'page=' + pageNumber;
|
|
1259
|
+
router.push(pathname, newPath, {
|
|
1260
|
+
shallow: true
|
|
1261
|
+
});
|
|
1262
|
+
}
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1265
|
+
var handlePageChange = function () {
|
|
1266
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(selectedPage) {
|
|
1267
|
+
var start, newParams, newData;
|
|
1268
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
1269
|
+
while (1) {
|
|
1270
|
+
switch (_context.prev = _context.next) {
|
|
1271
|
+
case 0:
|
|
1272
|
+
setIsDataLoading(true);
|
|
1273
|
+
setCurrentPage(selectedPage);
|
|
1274
|
+
seoPaginate && seoPagination(selectedPage);
|
|
1275
|
+
lib_3.refresh();
|
|
1276
|
+
document.body.scrollTop = 0;
|
|
1277
|
+
document.documentElement.scrollTop = 0;
|
|
1278
|
+
start = (selectedPage - 1) * itemsPerPage;
|
|
1279
|
+
newParams = _extends({}, params, {
|
|
1280
|
+
from: start,
|
|
1281
|
+
to: start + itemsPerPage
|
|
1282
|
+
});
|
|
1283
|
+
_context.prev = 8;
|
|
1284
|
+
_context.next = 11;
|
|
1285
|
+
return client.fetch(query, newParams);
|
|
1286
|
+
|
|
1287
|
+
case 11:
|
|
1288
|
+
newData = _context.sent;
|
|
1289
|
+
|
|
1290
|
+
if (pointer && pointerArray) newData = newData[pointerArray][pointer];
|
|
1291
|
+
if (newData && newData.length > 0) {
|
|
1292
|
+
setIsDataLoading(false);
|
|
1293
|
+
setData(newData);
|
|
1294
|
+
}
|
|
1295
|
+
_context.next = 19;
|
|
1296
|
+
break;
|
|
1297
|
+
|
|
1298
|
+
case 16:
|
|
1299
|
+
_context.prev = 16;
|
|
1300
|
+
_context.t0 = _context['catch'](8);
|
|
1301
|
+
|
|
1302
|
+
console.error(_context.t0);
|
|
1303
|
+
|
|
1304
|
+
case 19:
|
|
1305
|
+
case 'end':
|
|
1306
|
+
return _context.stop();
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
}, _callee, _this, [[8, 16]]);
|
|
1310
|
+
}));
|
|
1311
|
+
|
|
1312
|
+
return function handlePageChange(_x5) {
|
|
1313
|
+
return _ref2.apply(this, arguments);
|
|
1314
|
+
};
|
|
1315
|
+
}();
|
|
1316
|
+
|
|
1317
|
+
return React__default.createElement(
|
|
1318
|
+
'div',
|
|
1319
|
+
{ className: 'queuedeck-expanded' },
|
|
1320
|
+
isDataLoading ? React__default.createElement(
|
|
1321
|
+
'div',
|
|
1322
|
+
{ className: 'd-flex justify-content-center', style: { marginTop: '100px' } },
|
|
1323
|
+
React__default.createElement(
|
|
1324
|
+
Spinner,
|
|
1325
|
+
{ animation: 'border', role: 'status' },
|
|
1326
|
+
React__default.createElement(
|
|
1327
|
+
'span',
|
|
1328
|
+
{ className: 'sr-only' },
|
|
1329
|
+
'Loading...'
|
|
1330
|
+
)
|
|
1331
|
+
)
|
|
1332
|
+
) : React__default.createElement(
|
|
1333
|
+
Container,
|
|
1334
|
+
null,
|
|
1335
|
+
React__default.createElement(CardLoader, {
|
|
1336
|
+
data: data,
|
|
1337
|
+
client: client,
|
|
1338
|
+
mapping: mapping,
|
|
1339
|
+
showPublished: showPublished,
|
|
1340
|
+
defaultImage: defaultImage,
|
|
1341
|
+
showAuthor: showAuthor,
|
|
1342
|
+
showCategory: showCategory,
|
|
1343
|
+
imageHeight: imageHeight,
|
|
1344
|
+
imageWidth: imageWidth,
|
|
1345
|
+
imageMaxHeight: imageMaxHeight,
|
|
1346
|
+
imageFit: imageFit,
|
|
1347
|
+
rightItems: rightItems,
|
|
1348
|
+
brandInsightAd: brandInsightAd,
|
|
1349
|
+
showBI: showBI,
|
|
1350
|
+
heroContent: heroContent,
|
|
1351
|
+
lgInfeedAd: lgInfeedAd,
|
|
1352
|
+
showPubInfo: showPubInfo,
|
|
1353
|
+
contentCategoryMapping: contentCategoryMapping,
|
|
1354
|
+
showTimeDif: showTimeDiff,
|
|
1355
|
+
showTaxonomies: showTaxonomies,
|
|
1356
|
+
showIntro: showIntro
|
|
1357
|
+
}),
|
|
1358
|
+
React__default.createElement(
|
|
1359
|
+
'div',
|
|
1360
|
+
{ className: 'pagination-wrapper' },
|
|
1361
|
+
React__default.createElement(Pagination, { pageCount: Math.ceil(totalDataCount / itemsPerPage), pageRangeDisplayed: main_36 ? 3 : 9, currentPage: currentPage, onPageChange: handlePageChange }),
|
|
1362
|
+
React__default.createElement(
|
|
1363
|
+
'style',
|
|
1364
|
+
{ jsx: 'true' },
|
|
1365
|
+
'\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 '
|
|
1366
|
+
)
|
|
1367
|
+
)
|
|
1368
|
+
)
|
|
1369
|
+
);
|
|
1370
|
+
};
|
|
1371
|
+
|
|
1372
|
+
var renderCardImage$1 = function renderCardImage(row, client) {
|
|
42
1373
|
var imageHeight = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
43
1374
|
var imageWidth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
44
1375
|
var imageMaxHeight = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
@@ -147,7 +1478,7 @@ var changePageNumber = function changePageNumber(pageNumber, seoPaginate, pagevi
|
|
|
147
1478
|
}
|
|
148
1479
|
};
|
|
149
1480
|
|
|
150
|
-
var checkExternalUrl = function checkExternalUrl(url) {
|
|
1481
|
+
var checkExternalUrl$1 = function checkExternalUrl(url) {
|
|
151
1482
|
return new RegExp(['http', 'https'].join('|')).test(url);
|
|
152
1483
|
};
|
|
153
1484
|
|
|
@@ -252,7 +1583,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
252
1583
|
});
|
|
253
1584
|
|
|
254
1585
|
var featureCount = 0;
|
|
255
|
-
return
|
|
1586
|
+
return React__default.createElement(
|
|
256
1587
|
'div',
|
|
257
1588
|
null,
|
|
258
1589
|
data && data.length > 0 ? dataRemapped ? // For Javascript Enabled Cases
|
|
@@ -262,8 +1593,8 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
262
1593
|
|
|
263
1594
|
if (article._type === 'feature') {
|
|
264
1595
|
featureCount++;
|
|
265
|
-
if (article.blank || checkExternalUrl(article.url.current)) {
|
|
266
|
-
return
|
|
1596
|
+
if (article.blank || checkExternalUrl$1(article.url.current)) {
|
|
1597
|
+
return React__default.createElement(
|
|
267
1598
|
VisibilitySensor,
|
|
268
1599
|
{
|
|
269
1600
|
key: article._id ? article._id : index,
|
|
@@ -271,51 +1602,51 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
271
1602
|
onChange: function onChange(isVisible) {
|
|
272
1603
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
|
|
273
1604
|
} },
|
|
274
|
-
|
|
275
|
-
|
|
1605
|
+
React__default.createElement(
|
|
1606
|
+
React__default.Fragment,
|
|
276
1607
|
null,
|
|
277
|
-
|
|
1608
|
+
React__default.createElement(
|
|
278
1609
|
Media,
|
|
279
1610
|
{
|
|
280
1611
|
key: article._id ? article._id : index,
|
|
281
1612
|
className: 'feature-media',
|
|
282
1613
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
283
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
1614
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
284
1615
|
'a',
|
|
285
1616
|
{ rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
286
|
-
|
|
1617
|
+
React__default.createElement(
|
|
287
1618
|
LazyLoad,
|
|
288
|
-
{ height: imageHeight, placeholder:
|
|
289
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
1619
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder$1, null) },
|
|
1620
|
+
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 })
|
|
290
1621
|
),
|
|
291
|
-
article.source &&
|
|
1622
|
+
article.source && React__default.createElement(
|
|
292
1623
|
'div',
|
|
293
1624
|
{ className: 'content-category-label' },
|
|
294
|
-
|
|
1625
|
+
React__default.createElement(
|
|
295
1626
|
'div',
|
|
296
1627
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
297
1628
|
article.source
|
|
298
1629
|
)
|
|
299
1630
|
)
|
|
300
1631
|
),
|
|
301
|
-
|
|
1632
|
+
React__default.createElement(
|
|
302
1633
|
Media.Body,
|
|
303
1634
|
null,
|
|
304
|
-
|
|
1635
|
+
React__default.createElement(
|
|
305
1636
|
'a',
|
|
306
1637
|
{ rel: 'noopener', href: article.url.current, target: '_blank' },
|
|
307
|
-
article.title &&
|
|
1638
|
+
article.title && React__default.createElement(
|
|
308
1639
|
'h4',
|
|
309
1640
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
310
1641
|
article.title
|
|
311
1642
|
)
|
|
312
1643
|
),
|
|
313
|
-
showPublished && !showTimeDiff && article.published &&
|
|
1644
|
+
showPublished && !showTimeDiff && article.published && React__default.createElement(
|
|
314
1645
|
'p',
|
|
315
1646
|
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
316
1647
|
moment(article.published).format('MMMM DD, YYYY')
|
|
317
1648
|
),
|
|
318
|
-
showTimeDiff && article.published &&
|
|
1649
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
319
1650
|
'p',
|
|
320
1651
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
321
1652
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -323,20 +1654,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
323
1654
|
return null;
|
|
324
1655
|
}
|
|
325
1656
|
if (index === 3) {
|
|
326
|
-
return
|
|
327
|
-
|
|
1657
|
+
return React__default.createElement(
|
|
1658
|
+
React__default.Fragment,
|
|
328
1659
|
null,
|
|
329
|
-
|
|
1660
|
+
React__default.createElement(
|
|
330
1661
|
'em',
|
|
331
1662
|
{ style: { marginRight: '.5rem' } },
|
|
332
1663
|
'...'
|
|
333
1664
|
)
|
|
334
1665
|
);
|
|
335
1666
|
}
|
|
336
|
-
return
|
|
337
|
-
|
|
1667
|
+
return React__default.createElement(
|
|
1668
|
+
React__default.Fragment,
|
|
338
1669
|
null,
|
|
339
|
-
|
|
1670
|
+
React__default.createElement(
|
|
340
1671
|
'em',
|
|
341
1672
|
null,
|
|
342
1673
|
taxonomy.name
|
|
@@ -346,30 +1677,30 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
346
1677
|
);
|
|
347
1678
|
}),
|
|
348
1679
|
' ',
|
|
349
|
-
|
|
1680
|
+
React__default.createElement(
|
|
350
1681
|
'span',
|
|
351
1682
|
{ style: { display: 'inline-block' } },
|
|
352
1683
|
timeDifferenceCalc(article.published)
|
|
353
1684
|
)
|
|
354
1685
|
),
|
|
355
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
1686
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
356
1687
|
LazyLoad,
|
|
357
1688
|
{ height: 50 },
|
|
358
|
-
|
|
1689
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
359
1690
|
),
|
|
360
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
1691
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
361
1692
|
'div',
|
|
362
1693
|
{ className: 'content-category-label' },
|
|
363
|
-
|
|
1694
|
+
React__default.createElement(
|
|
364
1695
|
'div',
|
|
365
1696
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
366
1697
|
article.source
|
|
367
1698
|
)
|
|
368
1699
|
),
|
|
369
|
-
|
|
1700
|
+
React__default.createElement(
|
|
370
1701
|
'div',
|
|
371
1702
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
372
|
-
showCategory && article.contentCategory &&
|
|
1703
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
373
1704
|
'p',
|
|
374
1705
|
{
|
|
375
1706
|
className: 'article-category',
|
|
@@ -383,7 +1714,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
383
1714
|
} },
|
|
384
1715
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
385
1716
|
),
|
|
386
|
-
article.issueSection && article.issueSection.name &&
|
|
1717
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
387
1718
|
'p',
|
|
388
1719
|
{
|
|
389
1720
|
className: 'issueSection',
|
|
@@ -399,21 +1730,21 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
399
1730
|
article.issueSection.name
|
|
400
1731
|
)
|
|
401
1732
|
),
|
|
402
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
1733
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
403
1734
|
'div',
|
|
404
1735
|
{ className: 'pubInfo' },
|
|
405
|
-
article.volume &&
|
|
1736
|
+
article.volume && React__default.createElement(
|
|
406
1737
|
'p',
|
|
407
1738
|
{ className: 'qdeVolume' },
|
|
408
1739
|
article.volume
|
|
409
1740
|
),
|
|
410
|
-
article.issue &&
|
|
1741
|
+
article.issue && React__default.createElement(
|
|
411
1742
|
'p',
|
|
412
1743
|
{ className: 'qdeIssue' },
|
|
413
1744
|
article.issue
|
|
414
1745
|
)
|
|
415
1746
|
),
|
|
416
|
-
showIntro && article.summary &&
|
|
1747
|
+
showIntro && article.summary && React__default.createElement(
|
|
417
1748
|
'p',
|
|
418
1749
|
{ className: 'pt-2 card-text' },
|
|
419
1750
|
clean_html_1(article.summary)
|
|
@@ -423,7 +1754,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
423
1754
|
)
|
|
424
1755
|
);
|
|
425
1756
|
} else {
|
|
426
|
-
return
|
|
1757
|
+
return React__default.createElement(
|
|
427
1758
|
VisibilitySensor,
|
|
428
1759
|
{
|
|
429
1760
|
key: article._id ? article._id : index,
|
|
@@ -431,51 +1762,51 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
431
1762
|
onChange: function onChange(isVisible) {
|
|
432
1763
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
|
|
433
1764
|
} },
|
|
434
|
-
|
|
435
|
-
|
|
1765
|
+
React__default.createElement(
|
|
1766
|
+
React__default.Fragment,
|
|
436
1767
|
null,
|
|
437
|
-
|
|
1768
|
+
React__default.createElement(
|
|
438
1769
|
Media,
|
|
439
1770
|
{
|
|
440
1771
|
key: article._id ? article._id : index,
|
|
441
1772
|
className: 'feature-media',
|
|
442
1773
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
443
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
1774
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
444
1775
|
'a',
|
|
445
1776
|
{ href: article.url.current, className: 'feature-wrapper' },
|
|
446
|
-
|
|
1777
|
+
React__default.createElement(
|
|
447
1778
|
LazyLoad,
|
|
448
|
-
{ height: imageHeight, placeholder:
|
|
449
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
1779
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder$1, null) },
|
|
1780
|
+
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 })
|
|
450
1781
|
),
|
|
451
|
-
article.source &&
|
|
1782
|
+
article.source && React__default.createElement(
|
|
452
1783
|
'div',
|
|
453
1784
|
{ className: 'content-category-label' },
|
|
454
|
-
|
|
1785
|
+
React__default.createElement(
|
|
455
1786
|
'div',
|
|
456
1787
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
457
1788
|
article.source
|
|
458
1789
|
)
|
|
459
1790
|
)
|
|
460
1791
|
),
|
|
461
|
-
|
|
1792
|
+
React__default.createElement(
|
|
462
1793
|
Media.Body,
|
|
463
1794
|
null,
|
|
464
|
-
|
|
1795
|
+
React__default.createElement(
|
|
465
1796
|
'a',
|
|
466
1797
|
{ href: article.url.current },
|
|
467
|
-
article.title &&
|
|
1798
|
+
article.title && React__default.createElement(
|
|
468
1799
|
'h4',
|
|
469
1800
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
470
1801
|
article.title
|
|
471
1802
|
)
|
|
472
1803
|
),
|
|
473
|
-
showPublished && !showTimeDiff && article.published &&
|
|
1804
|
+
showPublished && !showTimeDiff && article.published && React__default.createElement(
|
|
474
1805
|
'p',
|
|
475
1806
|
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
476
1807
|
moment(article.published).format('MMMM DD, YYYY')
|
|
477
1808
|
),
|
|
478
|
-
showTimeDiff && article.published &&
|
|
1809
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
479
1810
|
'p',
|
|
480
1811
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
481
1812
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -483,10 +1814,10 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
483
1814
|
return null;
|
|
484
1815
|
}
|
|
485
1816
|
if (index === 3) {
|
|
486
|
-
return
|
|
487
|
-
|
|
1817
|
+
return React__default.createElement(
|
|
1818
|
+
React__default.Fragment,
|
|
488
1819
|
null,
|
|
489
|
-
|
|
1820
|
+
React__default.createElement(
|
|
490
1821
|
'em',
|
|
491
1822
|
{ style: { marginRight: '.5rem' } },
|
|
492
1823
|
'...'
|
|
@@ -494,20 +1825,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
494
1825
|
);
|
|
495
1826
|
}
|
|
496
1827
|
if (index === 3) {
|
|
497
|
-
return
|
|
498
|
-
|
|
1828
|
+
return React__default.createElement(
|
|
1829
|
+
React__default.Fragment,
|
|
499
1830
|
null,
|
|
500
|
-
|
|
1831
|
+
React__default.createElement(
|
|
501
1832
|
'em',
|
|
502
1833
|
{ style: { marginRight: '.5rem' } },
|
|
503
1834
|
'...'
|
|
504
1835
|
)
|
|
505
1836
|
);
|
|
506
1837
|
}
|
|
507
|
-
return
|
|
508
|
-
|
|
1838
|
+
return React__default.createElement(
|
|
1839
|
+
React__default.Fragment,
|
|
509
1840
|
null,
|
|
510
|
-
|
|
1841
|
+
React__default.createElement(
|
|
511
1842
|
'em',
|
|
512
1843
|
null,
|
|
513
1844
|
taxonomy.name
|
|
@@ -517,30 +1848,30 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
517
1848
|
);
|
|
518
1849
|
}),
|
|
519
1850
|
' ',
|
|
520
|
-
|
|
1851
|
+
React__default.createElement(
|
|
521
1852
|
'span',
|
|
522
1853
|
{ style: { display: 'inline-block' } },
|
|
523
1854
|
timeDifferenceCalc(article.published)
|
|
524
1855
|
)
|
|
525
1856
|
),
|
|
526
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
1857
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
527
1858
|
LazyLoad,
|
|
528
1859
|
{ height: 50 },
|
|
529
|
-
|
|
1860
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
530
1861
|
),
|
|
531
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
1862
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
532
1863
|
'div',
|
|
533
1864
|
{ className: 'content-category-label' },
|
|
534
|
-
|
|
1865
|
+
React__default.createElement(
|
|
535
1866
|
'div',
|
|
536
1867
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
537
1868
|
article.source
|
|
538
1869
|
)
|
|
539
1870
|
),
|
|
540
|
-
|
|
1871
|
+
React__default.createElement(
|
|
541
1872
|
'div',
|
|
542
1873
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
543
|
-
showCategory && article.contentCategory &&
|
|
1874
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
544
1875
|
'p',
|
|
545
1876
|
{
|
|
546
1877
|
className: 'article-category',
|
|
@@ -554,7 +1885,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
554
1885
|
} },
|
|
555
1886
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
556
1887
|
),
|
|
557
|
-
article.issueSection && article.issueSection.name &&
|
|
1888
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
558
1889
|
'p',
|
|
559
1890
|
{
|
|
560
1891
|
className: 'issueSection',
|
|
@@ -570,21 +1901,21 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
570
1901
|
article.issueSection.name
|
|
571
1902
|
)
|
|
572
1903
|
),
|
|
573
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
1904
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
574
1905
|
'div',
|
|
575
1906
|
{ className: 'pubInfo' },
|
|
576
|
-
article.volume &&
|
|
1907
|
+
article.volume && React__default.createElement(
|
|
577
1908
|
'p',
|
|
578
1909
|
{ className: 'qdeVolume' },
|
|
579
1910
|
article.volume
|
|
580
1911
|
),
|
|
581
|
-
article.issue &&
|
|
1912
|
+
article.issue && React__default.createElement(
|
|
582
1913
|
'p',
|
|
583
1914
|
{ className: 'qdeIssue' },
|
|
584
1915
|
article.issue
|
|
585
1916
|
)
|
|
586
1917
|
),
|
|
587
|
-
showIntro && article.summary &&
|
|
1918
|
+
showIntro && article.summary && React__default.createElement(
|
|
588
1919
|
'p',
|
|
589
1920
|
{ className: 'pt-2 card-text' },
|
|
590
1921
|
clean_html_1(article.summary)
|
|
@@ -595,12 +1926,12 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
595
1926
|
);
|
|
596
1927
|
}
|
|
597
1928
|
} else if (article._type === 'lg-infeed' && article.adUnit) {
|
|
598
|
-
return
|
|
1929
|
+
return React__default.createElement(ADlgInfeed, _extends({ index: index }, article));
|
|
599
1930
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
600
|
-
return
|
|
1931
|
+
return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
601
1932
|
}
|
|
602
1933
|
if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
|
|
603
|
-
return
|
|
1934
|
+
return React__default.createElement(
|
|
604
1935
|
VisibilitySensor,
|
|
605
1936
|
{
|
|
606
1937
|
key: article._id ? article._id : index,
|
|
@@ -608,50 +1939,50 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
608
1939
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of artilce only.
|
|
609
1940
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, article.articleCount ? article.articleCount : index);
|
|
610
1941
|
} },
|
|
611
|
-
|
|
612
|
-
|
|
1942
|
+
React__default.createElement(
|
|
1943
|
+
React__default.Fragment,
|
|
613
1944
|
null,
|
|
614
|
-
|
|
1945
|
+
React__default.createElement(
|
|
615
1946
|
Media,
|
|
616
1947
|
{
|
|
617
1948
|
key: article._id ? article._id : index,
|
|
618
1949
|
style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
619
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
1950
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
620
1951
|
'a',
|
|
621
1952
|
{ href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
|
|
622
|
-
|
|
1953
|
+
React__default.createElement(
|
|
623
1954
|
LazyLoad,
|
|
624
|
-
{ height: imageHeight, placeholder:
|
|
625
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
1955
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder$1, null) },
|
|
1956
|
+
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 })
|
|
626
1957
|
),
|
|
627
|
-
article.source &&
|
|
1958
|
+
article.source && React__default.createElement(
|
|
628
1959
|
'div',
|
|
629
1960
|
{ className: 'content-category-label' },
|
|
630
|
-
|
|
1961
|
+
React__default.createElement(
|
|
631
1962
|
'div',
|
|
632
1963
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
633
1964
|
article.source
|
|
634
1965
|
)
|
|
635
1966
|
)
|
|
636
1967
|
),
|
|
637
|
-
|
|
1968
|
+
React__default.createElement(
|
|
638
1969
|
Media.Body,
|
|
639
1970
|
null,
|
|
640
|
-
|
|
1971
|
+
React__default.createElement(
|
|
641
1972
|
'a',
|
|
642
1973
|
{ href: mapping[contentCategoryName] + '/' + article.url.current },
|
|
643
|
-
article.title &&
|
|
1974
|
+
article.title && React__default.createElement(
|
|
644
1975
|
'h4',
|
|
645
1976
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
646
1977
|
article.title
|
|
647
1978
|
)
|
|
648
1979
|
),
|
|
649
|
-
showPublished && !showTimeDiff && article.published &&
|
|
1980
|
+
showPublished && !showTimeDiff && article.published && React__default.createElement(
|
|
650
1981
|
'p',
|
|
651
1982
|
{ className: 'card-text', style: { color: 'var(--dark)', margin: '.25rem 0' } },
|
|
652
1983
|
moment(article.published).format('MMMM DD, YYYY')
|
|
653
1984
|
),
|
|
654
|
-
showTimeDiff && article.published &&
|
|
1985
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
655
1986
|
'p',
|
|
656
1987
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
657
1988
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -659,20 +1990,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
659
1990
|
return null;
|
|
660
1991
|
}
|
|
661
1992
|
if (index === 3) {
|
|
662
|
-
return
|
|
663
|
-
|
|
1993
|
+
return React__default.createElement(
|
|
1994
|
+
React__default.Fragment,
|
|
664
1995
|
null,
|
|
665
|
-
|
|
1996
|
+
React__default.createElement(
|
|
666
1997
|
'em',
|
|
667
1998
|
{ style: { marginRight: '.5rem' } },
|
|
668
1999
|
'...'
|
|
669
2000
|
)
|
|
670
2001
|
);
|
|
671
2002
|
}
|
|
672
|
-
return
|
|
673
|
-
|
|
2003
|
+
return React__default.createElement(
|
|
2004
|
+
React__default.Fragment,
|
|
674
2005
|
null,
|
|
675
|
-
|
|
2006
|
+
React__default.createElement(
|
|
676
2007
|
'em',
|
|
677
2008
|
null,
|
|
678
2009
|
taxonomy.name
|
|
@@ -682,34 +2013,34 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
682
2013
|
);
|
|
683
2014
|
}),
|
|
684
2015
|
' ',
|
|
685
|
-
|
|
2016
|
+
React__default.createElement(
|
|
686
2017
|
'span',
|
|
687
2018
|
{ style: { display: 'inline-block' } },
|
|
688
2019
|
timeDifferenceCalc(article.published)
|
|
689
2020
|
)
|
|
690
2021
|
),
|
|
691
|
-
|
|
2022
|
+
React__default.createElement(
|
|
692
2023
|
'div',
|
|
693
2024
|
{ className: 'author-sec', style: { lineHeight: 1.5 } },
|
|
694
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
2025
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
695
2026
|
LazyLoad,
|
|
696
2027
|
{ height: 50 },
|
|
697
|
-
|
|
2028
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
698
2029
|
)
|
|
699
2030
|
),
|
|
700
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
2031
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
701
2032
|
'div',
|
|
702
2033
|
{ className: 'content-category-label' },
|
|
703
|
-
|
|
2034
|
+
React__default.createElement(
|
|
704
2035
|
'div',
|
|
705
2036
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
706
2037
|
article.source
|
|
707
2038
|
)
|
|
708
2039
|
),
|
|
709
|
-
|
|
2040
|
+
React__default.createElement(
|
|
710
2041
|
'div',
|
|
711
2042
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
712
|
-
showCategory && article.contentCategory &&
|
|
2043
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
713
2044
|
'p',
|
|
714
2045
|
{
|
|
715
2046
|
className: 'article-category',
|
|
@@ -723,7 +2054,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
723
2054
|
} },
|
|
724
2055
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
725
2056
|
),
|
|
726
|
-
article.issueSection && article.issueSection.name &&
|
|
2057
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
727
2058
|
'p',
|
|
728
2059
|
{
|
|
729
2060
|
className: 'issueSection',
|
|
@@ -739,38 +2070,38 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
739
2070
|
article.issueSection.name
|
|
740
2071
|
)
|
|
741
2072
|
),
|
|
742
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
2073
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
743
2074
|
'div',
|
|
744
2075
|
{ className: 'pubInfo' },
|
|
745
|
-
article.volume &&
|
|
2076
|
+
article.volume && React__default.createElement(
|
|
746
2077
|
'p',
|
|
747
2078
|
{ className: 'qdeVolume' },
|
|
748
2079
|
article.volume
|
|
749
2080
|
),
|
|
750
|
-
article.issue &&
|
|
2081
|
+
article.issue && React__default.createElement(
|
|
751
2082
|
'p',
|
|
752
2083
|
{ className: 'qdeIssue' },
|
|
753
2084
|
article.issue
|
|
754
2085
|
)
|
|
755
2086
|
),
|
|
756
|
-
showIntro && article.summary &&
|
|
2087
|
+
showIntro && article.summary && React__default.createElement(
|
|
757
2088
|
'p',
|
|
758
2089
|
{ className: 'pt-2 card-text' },
|
|
759
2090
|
clean_html_1(article.summary)
|
|
760
2091
|
)
|
|
761
2092
|
)
|
|
762
2093
|
),
|
|
763
|
-
|
|
2094
|
+
React__default.createElement(
|
|
764
2095
|
'div',
|
|
765
2096
|
null,
|
|
766
|
-
|
|
2097
|
+
main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd$1(index, numberOfItemsBeforeAd, rightItems)
|
|
767
2098
|
)
|
|
768
2099
|
)
|
|
769
2100
|
);
|
|
770
2101
|
} else return null;
|
|
771
2102
|
}) :
|
|
772
2103
|
// For Javascript Disabled Cases
|
|
773
|
-
|
|
2104
|
+
React__default.createElement(
|
|
774
2105
|
'noscript',
|
|
775
2106
|
null,
|
|
776
2107
|
data.map(function (article, index) {
|
|
@@ -779,8 +2110,8 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
779
2110
|
|
|
780
2111
|
if (article._type === 'feature') {
|
|
781
2112
|
featureCount++;
|
|
782
|
-
if (article.blank || checkExternalUrl(article.url.current)) {
|
|
783
|
-
return
|
|
2113
|
+
if (article.blank || checkExternalUrl$1(article.url.current)) {
|
|
2114
|
+
return React__default.createElement(
|
|
784
2115
|
VisibilitySensor,
|
|
785
2116
|
{
|
|
786
2117
|
key: article._id ? article._id : index,
|
|
@@ -788,51 +2119,51 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
788
2119
|
onChange: function onChange(isVisible) {
|
|
789
2120
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
|
|
790
2121
|
} },
|
|
791
|
-
|
|
792
|
-
|
|
2122
|
+
React__default.createElement(
|
|
2123
|
+
React__default.Fragment,
|
|
793
2124
|
null,
|
|
794
|
-
|
|
2125
|
+
React__default.createElement(
|
|
795
2126
|
Media,
|
|
796
2127
|
{
|
|
797
2128
|
key: article._id ? article._id : index,
|
|
798
2129
|
className: 'feature-media',
|
|
799
2130
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
800
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
2131
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
801
2132
|
'a',
|
|
802
2133
|
{ rel: 'noopener', href: article.url.current, target: '_blank', className: 'feature-wrapper' },
|
|
803
|
-
|
|
2134
|
+
React__default.createElement(
|
|
804
2135
|
LazyLoad,
|
|
805
|
-
{ height: imageHeight, placeholder:
|
|
806
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
2136
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder$1, null) },
|
|
2137
|
+
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 })
|
|
807
2138
|
),
|
|
808
|
-
article.source &&
|
|
2139
|
+
article.source && React__default.createElement(
|
|
809
2140
|
'div',
|
|
810
2141
|
{ className: 'content-category-label' },
|
|
811
|
-
|
|
2142
|
+
React__default.createElement(
|
|
812
2143
|
'div',
|
|
813
2144
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
814
2145
|
article.source
|
|
815
2146
|
)
|
|
816
2147
|
)
|
|
817
2148
|
),
|
|
818
|
-
|
|
2149
|
+
React__default.createElement(
|
|
819
2150
|
Media.Body,
|
|
820
2151
|
null,
|
|
821
|
-
|
|
2152
|
+
React__default.createElement(
|
|
822
2153
|
'a',
|
|
823
2154
|
{ rel: 'noopener', href: article.url.current, target: '_blank' },
|
|
824
|
-
article.title &&
|
|
2155
|
+
article.title && React__default.createElement(
|
|
825
2156
|
'h4',
|
|
826
2157
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
827
2158
|
article.title
|
|
828
2159
|
)
|
|
829
2160
|
),
|
|
830
|
-
showPublished && article.published &&
|
|
2161
|
+
showPublished && article.published && React__default.createElement(
|
|
831
2162
|
'p',
|
|
832
2163
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
833
2164
|
moment(article.published).format('MMMM DD, YYYY')
|
|
834
2165
|
),
|
|
835
|
-
showTimeDiff && article.published &&
|
|
2166
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
836
2167
|
'p',
|
|
837
2168
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
838
2169
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -840,20 +2171,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
840
2171
|
return null;
|
|
841
2172
|
}
|
|
842
2173
|
if (index === 3) {
|
|
843
|
-
return
|
|
844
|
-
|
|
2174
|
+
return React__default.createElement(
|
|
2175
|
+
React__default.Fragment,
|
|
845
2176
|
null,
|
|
846
|
-
|
|
2177
|
+
React__default.createElement(
|
|
847
2178
|
'em',
|
|
848
2179
|
{ style: { marginRight: '.5rem' } },
|
|
849
2180
|
'...'
|
|
850
2181
|
)
|
|
851
2182
|
);
|
|
852
2183
|
}
|
|
853
|
-
return
|
|
854
|
-
|
|
2184
|
+
return React__default.createElement(
|
|
2185
|
+
React__default.Fragment,
|
|
855
2186
|
null,
|
|
856
|
-
|
|
2187
|
+
React__default.createElement(
|
|
857
2188
|
'em',
|
|
858
2189
|
null,
|
|
859
2190
|
taxonomy.name
|
|
@@ -863,30 +2194,30 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
863
2194
|
);
|
|
864
2195
|
}),
|
|
865
2196
|
' ',
|
|
866
|
-
|
|
2197
|
+
React__default.createElement(
|
|
867
2198
|
'span',
|
|
868
2199
|
{ style: { display: 'inline-block' } },
|
|
869
2200
|
timeDifferenceCalc(article.published)
|
|
870
2201
|
)
|
|
871
2202
|
),
|
|
872
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
2203
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
873
2204
|
LazyLoad,
|
|
874
2205
|
{ height: 50 },
|
|
875
|
-
|
|
2206
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
876
2207
|
),
|
|
877
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
2208
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
878
2209
|
'div',
|
|
879
2210
|
{ className: 'content-category-label' },
|
|
880
|
-
|
|
2211
|
+
React__default.createElement(
|
|
881
2212
|
'div',
|
|
882
2213
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
883
2214
|
article.source
|
|
884
2215
|
)
|
|
885
2216
|
),
|
|
886
|
-
|
|
2217
|
+
React__default.createElement(
|
|
887
2218
|
'div',
|
|
888
2219
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
889
|
-
showCategory && article.contentCategory &&
|
|
2220
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
890
2221
|
'p',
|
|
891
2222
|
{
|
|
892
2223
|
className: 'article-category',
|
|
@@ -900,7 +2231,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
900
2231
|
} },
|
|
901
2232
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
902
2233
|
),
|
|
903
|
-
article.issueSection && article.issueSection.name &&
|
|
2234
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
904
2235
|
'p',
|
|
905
2236
|
{
|
|
906
2237
|
className: 'issueSection',
|
|
@@ -916,21 +2247,21 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
916
2247
|
article.issueSection.name
|
|
917
2248
|
)
|
|
918
2249
|
),
|
|
919
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
2250
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
920
2251
|
'div',
|
|
921
2252
|
{ className: 'pubInfo' },
|
|
922
|
-
article.volume &&
|
|
2253
|
+
article.volume && React__default.createElement(
|
|
923
2254
|
'p',
|
|
924
2255
|
{ className: 'qdeVolume' },
|
|
925
2256
|
article.volume
|
|
926
2257
|
),
|
|
927
|
-
article.issue &&
|
|
2258
|
+
article.issue && React__default.createElement(
|
|
928
2259
|
'p',
|
|
929
2260
|
{ className: 'qdeIssue' },
|
|
930
2261
|
article.issue
|
|
931
2262
|
)
|
|
932
2263
|
),
|
|
933
|
-
showIntro && article.summary &&
|
|
2264
|
+
showIntro && article.summary && React__default.createElement(
|
|
934
2265
|
'p',
|
|
935
2266
|
{ className: 'pt-2 card-text' },
|
|
936
2267
|
clean_html_1(article.summary)
|
|
@@ -940,7 +2271,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
940
2271
|
)
|
|
941
2272
|
);
|
|
942
2273
|
} else {
|
|
943
|
-
return
|
|
2274
|
+
return React__default.createElement(
|
|
944
2275
|
VisibilitySensor,
|
|
945
2276
|
{
|
|
946
2277
|
key: article._id ? article._id : index,
|
|
@@ -948,51 +2279,51 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
948
2279
|
onChange: function onChange(isVisible) {
|
|
949
2280
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
|
|
950
2281
|
} },
|
|
951
|
-
|
|
952
|
-
|
|
2282
|
+
React__default.createElement(
|
|
2283
|
+
React__default.Fragment,
|
|
953
2284
|
null,
|
|
954
|
-
|
|
2285
|
+
React__default.createElement(
|
|
955
2286
|
Media,
|
|
956
2287
|
{
|
|
957
2288
|
key: article._id ? article._id : index,
|
|
958
2289
|
className: 'feature-media',
|
|
959
2290
|
style: { flexDirection: 'column', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
960
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
2291
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
961
2292
|
'a',
|
|
962
2293
|
{ href: article.url.current, className: 'feature-wrapper' },
|
|
963
|
-
|
|
2294
|
+
React__default.createElement(
|
|
964
2295
|
LazyLoad,
|
|
965
|
-
{ height: imageHeight, placeholder:
|
|
966
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
2296
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder$1, null) },
|
|
2297
|
+
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 })
|
|
967
2298
|
),
|
|
968
|
-
article.source &&
|
|
2299
|
+
article.source && React__default.createElement(
|
|
969
2300
|
'div',
|
|
970
2301
|
{ className: 'content-category-label' },
|
|
971
|
-
|
|
2302
|
+
React__default.createElement(
|
|
972
2303
|
'div',
|
|
973
2304
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
974
2305
|
article.source
|
|
975
2306
|
)
|
|
976
2307
|
)
|
|
977
2308
|
),
|
|
978
|
-
|
|
2309
|
+
React__default.createElement(
|
|
979
2310
|
Media.Body,
|
|
980
2311
|
null,
|
|
981
|
-
|
|
2312
|
+
React__default.createElement(
|
|
982
2313
|
'a',
|
|
983
2314
|
{ href: article.url.current },
|
|
984
|
-
article.title &&
|
|
2315
|
+
article.title && React__default.createElement(
|
|
985
2316
|
'h4',
|
|
986
2317
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
987
2318
|
article.title
|
|
988
2319
|
)
|
|
989
2320
|
),
|
|
990
|
-
showPublished && article.published &&
|
|
2321
|
+
showPublished && article.published && React__default.createElement(
|
|
991
2322
|
'p',
|
|
992
2323
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
993
2324
|
moment(article.published).format('MMMM DD, YYYY')
|
|
994
2325
|
),
|
|
995
|
-
showTimeDiff && article.published &&
|
|
2326
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
996
2327
|
'p',
|
|
997
2328
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
998
2329
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -1000,20 +2331,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1000
2331
|
return null;
|
|
1001
2332
|
}
|
|
1002
2333
|
if (index === 3) {
|
|
1003
|
-
return
|
|
1004
|
-
|
|
2334
|
+
return React__default.createElement(
|
|
2335
|
+
React__default.Fragment,
|
|
1005
2336
|
null,
|
|
1006
|
-
|
|
2337
|
+
React__default.createElement(
|
|
1007
2338
|
'em',
|
|
1008
2339
|
{ style: { marginRight: '.5rem' } },
|
|
1009
2340
|
'...'
|
|
1010
2341
|
)
|
|
1011
2342
|
);
|
|
1012
2343
|
}
|
|
1013
|
-
return
|
|
1014
|
-
|
|
2344
|
+
return React__default.createElement(
|
|
2345
|
+
React__default.Fragment,
|
|
1015
2346
|
null,
|
|
1016
|
-
|
|
2347
|
+
React__default.createElement(
|
|
1017
2348
|
'em',
|
|
1018
2349
|
null,
|
|
1019
2350
|
taxonomy.name
|
|
@@ -1023,30 +2354,30 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1023
2354
|
);
|
|
1024
2355
|
}),
|
|
1025
2356
|
' ',
|
|
1026
|
-
|
|
2357
|
+
React__default.createElement(
|
|
1027
2358
|
'span',
|
|
1028
2359
|
{ style: { display: 'inline-block' } },
|
|
1029
2360
|
timeDifferenceCalc(article.published)
|
|
1030
2361
|
)
|
|
1031
2362
|
),
|
|
1032
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
2363
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
1033
2364
|
LazyLoad,
|
|
1034
2365
|
{ height: 50 },
|
|
1035
|
-
|
|
2366
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
1036
2367
|
),
|
|
1037
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
2368
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
1038
2369
|
'div',
|
|
1039
2370
|
{ className: 'content-category-label' },
|
|
1040
|
-
|
|
2371
|
+
React__default.createElement(
|
|
1041
2372
|
'div',
|
|
1042
2373
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
1043
2374
|
article.source
|
|
1044
2375
|
)
|
|
1045
2376
|
),
|
|
1046
|
-
|
|
2377
|
+
React__default.createElement(
|
|
1047
2378
|
'div',
|
|
1048
2379
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
1049
|
-
showCategory && article.contentCategory &&
|
|
2380
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
1050
2381
|
'p',
|
|
1051
2382
|
{
|
|
1052
2383
|
className: 'article-category',
|
|
@@ -1060,7 +2391,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1060
2391
|
} },
|
|
1061
2392
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
1062
2393
|
),
|
|
1063
|
-
article.issueSection && article.issueSection.name &&
|
|
2394
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
1064
2395
|
'p',
|
|
1065
2396
|
{
|
|
1066
2397
|
className: 'issueSection',
|
|
@@ -1076,21 +2407,21 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1076
2407
|
article.issueSection.name
|
|
1077
2408
|
)
|
|
1078
2409
|
),
|
|
1079
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
2410
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
1080
2411
|
'div',
|
|
1081
2412
|
{ className: 'pubInfo' },
|
|
1082
|
-
article.volume &&
|
|
2413
|
+
article.volume && React__default.createElement(
|
|
1083
2414
|
'p',
|
|
1084
2415
|
{ className: 'qdeVolume' },
|
|
1085
2416
|
article.volume
|
|
1086
2417
|
),
|
|
1087
|
-
article.issue &&
|
|
2418
|
+
article.issue && React__default.createElement(
|
|
1088
2419
|
'p',
|
|
1089
2420
|
{ className: 'qdeIssue' },
|
|
1090
2421
|
article.issue
|
|
1091
2422
|
)
|
|
1092
2423
|
),
|
|
1093
|
-
showIntro && article.summary &&
|
|
2424
|
+
showIntro && article.summary && React__default.createElement(
|
|
1094
2425
|
'p',
|
|
1095
2426
|
{ className: 'pt-2 card-text' },
|
|
1096
2427
|
clean_html_1(article.summary)
|
|
@@ -1101,12 +2432,12 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1101
2432
|
);
|
|
1102
2433
|
}
|
|
1103
2434
|
} else if (article._type === 'lg-infeed' && article.adUnit) {
|
|
1104
|
-
return
|
|
2435
|
+
return React__default.createElement(ADlgInfeed, _extends({ index: index }, article));
|
|
1105
2436
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
1106
|
-
return
|
|
2437
|
+
return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
1107
2438
|
}
|
|
1108
2439
|
if ((brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) && (!article._type || !['lg-infeed', 'brandInsightAd'].includes(article._type))) {
|
|
1109
|
-
return
|
|
2440
|
+
return React__default.createElement(
|
|
1110
2441
|
VisibilitySensor,
|
|
1111
2442
|
{
|
|
1112
2443
|
key: article._id ? article._id : index,
|
|
@@ -1114,50 +2445,50 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1114
2445
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of artilce only.
|
|
1115
2446
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, article.articleCount ? article.articleCount : index);
|
|
1116
2447
|
} },
|
|
1117
|
-
|
|
1118
|
-
|
|
2448
|
+
React__default.createElement(
|
|
2449
|
+
React__default.Fragment,
|
|
1119
2450
|
null,
|
|
1120
|
-
|
|
2451
|
+
React__default.createElement(
|
|
1121
2452
|
Media,
|
|
1122
2453
|
{
|
|
1123
2454
|
key: article._id ? article._id : index,
|
|
1124
2455
|
style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
1125
|
-
(article.thumbnail && article.thumbnail.asset || defaultImage) &&
|
|
2456
|
+
(article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
|
|
1126
2457
|
'a',
|
|
1127
2458
|
{ href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
|
|
1128
|
-
|
|
2459
|
+
React__default.createElement(
|
|
1129
2460
|
LazyLoad,
|
|
1130
|
-
{ height: imageHeight, placeholder:
|
|
1131
|
-
article.thumbnail && article.thumbnail.asset ?
|
|
2461
|
+
{ height: imageHeight, placeholder: React__default.createElement(ImagePlaceholder$1, null) },
|
|
2462
|
+
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 })
|
|
1132
2463
|
),
|
|
1133
|
-
article.source &&
|
|
2464
|
+
article.source && React__default.createElement(
|
|
1134
2465
|
'div',
|
|
1135
2466
|
{ className: 'content-category-label' },
|
|
1136
|
-
|
|
2467
|
+
React__default.createElement(
|
|
1137
2468
|
'div',
|
|
1138
2469
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
1139
2470
|
article.source
|
|
1140
2471
|
)
|
|
1141
2472
|
)
|
|
1142
2473
|
),
|
|
1143
|
-
|
|
2474
|
+
React__default.createElement(
|
|
1144
2475
|
Media.Body,
|
|
1145
2476
|
null,
|
|
1146
|
-
|
|
2477
|
+
React__default.createElement(
|
|
1147
2478
|
'a',
|
|
1148
2479
|
{ href: mapping[contentCategoryName] + '/' + article.url.current },
|
|
1149
|
-
article.title &&
|
|
2480
|
+
article.title && React__default.createElement(
|
|
1150
2481
|
'h4',
|
|
1151
2482
|
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
1152
2483
|
article.title
|
|
1153
2484
|
)
|
|
1154
2485
|
),
|
|
1155
|
-
showPublished && article.published &&
|
|
2486
|
+
showPublished && article.published && React__default.createElement(
|
|
1156
2487
|
'p',
|
|
1157
2488
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
1158
2489
|
moment(article.published).format('MMMM DD, YYYY')
|
|
1159
2490
|
),
|
|
1160
|
-
showTimeDiff && article.published &&
|
|
2491
|
+
showTimeDiff && article.published && React__default.createElement(
|
|
1161
2492
|
'p',
|
|
1162
2493
|
{ className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
|
|
1163
2494
|
showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
|
|
@@ -1165,20 +2496,20 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1165
2496
|
return null;
|
|
1166
2497
|
}
|
|
1167
2498
|
if (index === 3) {
|
|
1168
|
-
return
|
|
1169
|
-
|
|
2499
|
+
return React__default.createElement(
|
|
2500
|
+
React__default.Fragment,
|
|
1170
2501
|
null,
|
|
1171
|
-
|
|
2502
|
+
React__default.createElement(
|
|
1172
2503
|
'em',
|
|
1173
2504
|
{ style: { marginRight: '.5rem' } },
|
|
1174
2505
|
'...'
|
|
1175
2506
|
)
|
|
1176
2507
|
);
|
|
1177
2508
|
}
|
|
1178
|
-
return
|
|
1179
|
-
|
|
2509
|
+
return React__default.createElement(
|
|
2510
|
+
React__default.Fragment,
|
|
1180
2511
|
null,
|
|
1181
|
-
|
|
2512
|
+
React__default.createElement(
|
|
1182
2513
|
'em',
|
|
1183
2514
|
null,
|
|
1184
2515
|
taxonomy.name
|
|
@@ -1188,34 +2519,34 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1188
2519
|
);
|
|
1189
2520
|
}),
|
|
1190
2521
|
' ',
|
|
1191
|
-
|
|
2522
|
+
React__default.createElement(
|
|
1192
2523
|
'span',
|
|
1193
2524
|
{ style: { display: 'inline-block' } },
|
|
1194
2525
|
timeDifferenceCalc(article.published)
|
|
1195
2526
|
)
|
|
1196
2527
|
),
|
|
1197
|
-
|
|
2528
|
+
React__default.createElement(
|
|
1198
2529
|
'div',
|
|
1199
2530
|
{ className: 'author-sec', style: { lineHeight: 1.5 } },
|
|
1200
|
-
showAuthor && article.authorMapping && article.authorMapping.length > 0 &&
|
|
2531
|
+
showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
|
|
1201
2532
|
LazyLoad,
|
|
1202
2533
|
{ height: 50 },
|
|
1203
|
-
|
|
2534
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
|
|
1204
2535
|
)
|
|
1205
2536
|
),
|
|
1206
|
-
!article.thumbnail && !defaultImage && article.source &&
|
|
2537
|
+
!article.thumbnail && !defaultImage && article.source && React__default.createElement(
|
|
1207
2538
|
'div',
|
|
1208
2539
|
{ className: 'content-category-label' },
|
|
1209
|
-
|
|
2540
|
+
React__default.createElement(
|
|
1210
2541
|
'div',
|
|
1211
2542
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
1212
2543
|
article.source
|
|
1213
2544
|
)
|
|
1214
2545
|
),
|
|
1215
|
-
|
|
2546
|
+
React__default.createElement(
|
|
1216
2547
|
'div',
|
|
1217
2548
|
{ style: { display: 'flex', alignItems: 'center', justifyContent: 'flex-start' } },
|
|
1218
|
-
showCategory && article.contentCategory &&
|
|
2549
|
+
showCategory && article.contentCategory && React__default.createElement(
|
|
1219
2550
|
'p',
|
|
1220
2551
|
{
|
|
1221
2552
|
className: 'article-category',
|
|
@@ -1229,7 +2560,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1229
2560
|
} },
|
|
1230
2561
|
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
1231
2562
|
),
|
|
1232
|
-
article.issueSection && article.issueSection.name &&
|
|
2563
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
1233
2564
|
'p',
|
|
1234
2565
|
{
|
|
1235
2566
|
className: 'issueSection',
|
|
@@ -1245,50 +2576,50 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1245
2576
|
article.issueSection.name
|
|
1246
2577
|
)
|
|
1247
2578
|
),
|
|
1248
|
-
showPubInfo && (article.issue || article.volume) &&
|
|
2579
|
+
showPubInfo && (article.issue || article.volume) && React__default.createElement(
|
|
1249
2580
|
'div',
|
|
1250
2581
|
{ className: 'pubInfo' },
|
|
1251
|
-
article.volume &&
|
|
2582
|
+
article.volume && React__default.createElement(
|
|
1252
2583
|
'p',
|
|
1253
2584
|
{ className: 'qdeVolume' },
|
|
1254
2585
|
article.volume
|
|
1255
2586
|
),
|
|
1256
|
-
article.issue &&
|
|
2587
|
+
article.issue && React__default.createElement(
|
|
1257
2588
|
'p',
|
|
1258
2589
|
{ className: 'qdeIssue' },
|
|
1259
2590
|
article.issue
|
|
1260
2591
|
)
|
|
1261
2592
|
),
|
|
1262
|
-
showIntro && article.summary &&
|
|
2593
|
+
showIntro && article.summary && React__default.createElement(
|
|
1263
2594
|
'p',
|
|
1264
2595
|
{ className: 'pt-2 card-text' },
|
|
1265
2596
|
clean_html_1(article.summary)
|
|
1266
2597
|
)
|
|
1267
2598
|
)
|
|
1268
2599
|
),
|
|
1269
|
-
|
|
2600
|
+
React__default.createElement(
|
|
1270
2601
|
'div',
|
|
1271
2602
|
null,
|
|
1272
|
-
|
|
2603
|
+
main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd$1(index, numberOfItemsBeforeAd, rightItems)
|
|
1273
2604
|
)
|
|
1274
2605
|
)
|
|
1275
2606
|
);
|
|
1276
2607
|
} else return null;
|
|
1277
2608
|
})
|
|
1278
|
-
) :
|
|
2609
|
+
) : React__default.createElement(
|
|
1279
2610
|
'div',
|
|
1280
2611
|
null,
|
|
1281
|
-
|
|
2612
|
+
React__default.createElement(
|
|
1282
2613
|
'h5',
|
|
1283
2614
|
null,
|
|
1284
|
-
|
|
2615
|
+
React__default.createElement(
|
|
1285
2616
|
'em',
|
|
1286
2617
|
null,
|
|
1287
2618
|
'New content coming soon, please check back later.'
|
|
1288
2619
|
)
|
|
1289
2620
|
)
|
|
1290
2621
|
),
|
|
1291
|
-
|
|
2622
|
+
React__default.createElement(
|
|
1292
2623
|
'style',
|
|
1293
2624
|
{ jsx: 'true' },
|
|
1294
2625
|
'\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 '
|
|
@@ -1296,12 +2627,12 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1296
2627
|
);
|
|
1297
2628
|
};
|
|
1298
2629
|
|
|
1299
|
-
var ImagePlaceholder = function ImagePlaceholder() {
|
|
1300
|
-
return
|
|
1301
|
-
|
|
2630
|
+
var ImagePlaceholder$1 = function ImagePlaceholder() {
|
|
2631
|
+
return React__default.createElement(
|
|
2632
|
+
React__default.Fragment,
|
|
1302
2633
|
null,
|
|
1303
|
-
|
|
1304
|
-
|
|
2634
|
+
React__default.createElement('div', { className: 'queuedeck-exp-image-placeholder' }),
|
|
2635
|
+
React__default.createElement(
|
|
1305
2636
|
'style',
|
|
1306
2637
|
{ jsx: 'true' },
|
|
1307
2638
|
'\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 '
|
|
@@ -1309,16 +2640,16 @@ var ImagePlaceholder = function ImagePlaceholder() {
|
|
|
1309
2640
|
);
|
|
1310
2641
|
};
|
|
1311
2642
|
|
|
1312
|
-
var renderMobileAd = function renderMobileAd(index, numberOfItemsBeforeAd, rightItems) {
|
|
2643
|
+
var renderMobileAd$1 = function renderMobileAd(index, numberOfItemsBeforeAd, rightItems) {
|
|
1313
2644
|
var i = numberOfItemsBeforeAd < 6 ? 0 : ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
1314
|
-
return
|
|
2645
|
+
return React__default.createElement(
|
|
1315
2646
|
'div',
|
|
1316
2647
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
1317
2648
|
rightItems[i].component
|
|
1318
2649
|
);
|
|
1319
2650
|
};
|
|
1320
2651
|
|
|
1321
|
-
var usePrevious = function usePrevious(value) {
|
|
2652
|
+
var usePrevious$1 = function usePrevious(value) {
|
|
1322
2653
|
var ref = useRef();
|
|
1323
2654
|
useEffect(function () {
|
|
1324
2655
|
ref.current = value;
|
|
@@ -1326,11 +2657,12 @@ var usePrevious = function usePrevious(value) {
|
|
|
1326
2657
|
return ref.current;
|
|
1327
2658
|
};
|
|
1328
2659
|
|
|
1329
|
-
var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
2660
|
+
var QueueDeckExpanded$1 = function QueueDeckExpanded$1(props) {
|
|
2661
|
+
if (props.totalDataCount) return React__default.createElement(QueueDeckExpanded, props);
|
|
1330
2662
|
var router = useRouter();
|
|
1331
2663
|
|
|
1332
2664
|
// Logging GA Pageview on path change
|
|
1333
|
-
var prevPath = usePrevious(lodash.get(router, 'asPath', undefined));
|
|
2665
|
+
var prevPath = usePrevious$1(lodash.get(router, 'asPath', undefined));
|
|
1334
2666
|
useEffect(function () {
|
|
1335
2667
|
var pageview = props.pageview;
|
|
1336
2668
|
|
|
@@ -1409,22 +2741,22 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1409
2741
|
|
|
1410
2742
|
var itemsPerPage = params && params.itemsPerPage ? params.itemsPerPage : 10;
|
|
1411
2743
|
|
|
1412
|
-
var prevValues = usePrevious(values);
|
|
2744
|
+
var prevValues = usePrevious$1(values);
|
|
1413
2745
|
|
|
1414
2746
|
var renderManualPagination = function renderManualPagination(currentPage) {
|
|
1415
2747
|
if (lastDataSize < itemsPerPage) {
|
|
1416
2748
|
return null;
|
|
1417
2749
|
}
|
|
1418
2750
|
|
|
1419
|
-
return
|
|
2751
|
+
return React__default.createElement(
|
|
1420
2752
|
'div',
|
|
1421
2753
|
{ className: 'd-flex justify-content-between' },
|
|
1422
|
-
currentPage && currentPage > 1 &&
|
|
2754
|
+
currentPage && currentPage > 1 && React__default.createElement(
|
|
1423
2755
|
'a',
|
|
1424
2756
|
{ href: '?page=' + (currentPage - 1) },
|
|
1425
2757
|
'<< Previous'
|
|
1426
2758
|
),
|
|
1427
|
-
|
|
2759
|
+
React__default.createElement(
|
|
1428
2760
|
'a',
|
|
1429
2761
|
{ href: '?page=' + (currentPage + 1) },
|
|
1430
2762
|
'Next >>'
|
|
@@ -1471,40 +2803,40 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1471
2803
|
// }
|
|
1472
2804
|
// }
|
|
1473
2805
|
|
|
1474
|
-
return
|
|
2806
|
+
return React__default.createElement(
|
|
1475
2807
|
'div',
|
|
1476
2808
|
null,
|
|
1477
|
-
autoScroll ?
|
|
1478
|
-
|
|
2809
|
+
autoScroll ? React__default.createElement(
|
|
2810
|
+
React__default.Fragment,
|
|
1479
2811
|
null,
|
|
1480
|
-
|
|
2812
|
+
React__default.createElement(
|
|
1481
2813
|
InfiniteScroll,
|
|
1482
2814
|
{ dataLength: data && data.length, next: function next() {
|
|
1483
2815
|
return loadMore(values, setValues, itemsPerPage);
|
|
1484
2816
|
}, hasMore: scrolling, scrollThreshold: 0.9 },
|
|
1485
|
-
|
|
2817
|
+
React__default.createElement(
|
|
1486
2818
|
Container,
|
|
1487
2819
|
null,
|
|
1488
2820
|
cardLoader(data, client, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, imageMaxHeight, imageFit, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies, showIntro)
|
|
1489
2821
|
)
|
|
1490
2822
|
),
|
|
1491
|
-
|
|
2823
|
+
React__default.createElement(
|
|
1492
2824
|
'noscript',
|
|
1493
2825
|
null,
|
|
1494
2826
|
renderManualPagination(currentPage)
|
|
1495
2827
|
)
|
|
1496
|
-
) :
|
|
1497
|
-
|
|
2828
|
+
) : React__default.createElement(
|
|
2829
|
+
React__default.Fragment,
|
|
1498
2830
|
null,
|
|
1499
|
-
|
|
2831
|
+
React__default.createElement(
|
|
1500
2832
|
Container,
|
|
1501
2833
|
null,
|
|
1502
2834
|
cardLoader(data, client, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, imageMaxHeight, imageFit, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies, showIntro)
|
|
1503
2835
|
),
|
|
1504
|
-
|
|
2836
|
+
React__default.createElement(
|
|
1505
2837
|
'div',
|
|
1506
2838
|
{ style: { padding: '0px 10px' } },
|
|
1507
|
-
scrolling ?
|
|
2839
|
+
scrolling ? React__default.createElement(
|
|
1508
2840
|
'button',
|
|
1509
2841
|
{
|
|
1510
2842
|
className: 'load-more-btn',
|
|
@@ -1513,17 +2845,17 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1513
2845
|
loadMore(values, setValues, itemsPerPage);
|
|
1514
2846
|
} },
|
|
1515
2847
|
'Load More'
|
|
1516
|
-
) :
|
|
2848
|
+
) : React__default.createElement(
|
|
1517
2849
|
'p',
|
|
1518
2850
|
{ style: { textAlign: 'center' } },
|
|
1519
|
-
|
|
2851
|
+
React__default.createElement(
|
|
1520
2852
|
'b',
|
|
1521
2853
|
null,
|
|
1522
2854
|
'End of data'
|
|
1523
2855
|
)
|
|
1524
2856
|
)
|
|
1525
2857
|
),
|
|
1526
|
-
|
|
2858
|
+
React__default.createElement(
|
|
1527
2859
|
'noscript',
|
|
1528
2860
|
null,
|
|
1529
2861
|
renderManualPagination(currentPage)
|
|
@@ -1532,4 +2864,4 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1532
2864
|
);
|
|
1533
2865
|
};
|
|
1534
2866
|
|
|
1535
|
-
export default QueueDeckExpanded;
|
|
2867
|
+
export default QueueDeckExpanded$1;
|