@mjhls/mjh-framework 1.0.835 → 1.0.836-deck-pagination-v1
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 +1 -1
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +24 -23
- package/dist/cjs/AD300x250x600.js +24 -23
- package/dist/cjs/AD728x90.js +27 -26
- package/dist/cjs/ADFloatingFooter.js +23 -22
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +23 -22
- package/dist/cjs/{ADInfeed-eb4ce360.js → ADInfeed-0158bee3.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +23 -22
- package/dist/cjs/ADSponsoredResources.js +23 -22
- package/dist/cjs/ADWebcast.js +23 -22
- package/dist/cjs/ADWelcome.js +20 -19
- package/dist/cjs/{ADlgInfeed-8a05b63f.js → ADlgInfeed-3583144f.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +24 -23
- package/dist/cjs/AdSlotsProvider.js +14 -13
- package/dist/cjs/AlgoliaSearch.js +14103 -30
- package/dist/cjs/AlphabeticList.js +10 -10
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +50 -49
- package/dist/cjs/ArticleSeriesLandingPage.js +32 -31
- package/dist/cjs/ArticleSeriesListing.js +33 -32
- package/dist/cjs/Auth.js +348 -484
- package/dist/cjs/AuthWrapper.js +239 -200
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-ac8972ce.js} +1 -1
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-8b494587.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +8 -8
- package/dist/cjs/CMEDeck.js +25 -24
- package/dist/cjs/Column2.js +16 -16
- package/dist/cjs/Column3.js +33 -32
- package/dist/cjs/ConferenceArticleCard.js +7 -7
- package/dist/cjs/DeckContent.js +34 -33
- package/dist/cjs/DeckQueue.js +33 -32
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-391fd124.js} +15 -14
- package/dist/cjs/EventsDeck.js +28 -28
- package/dist/cjs/ExternalResources.js +47 -46
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +12 -12
- package/dist/cjs/GridContent.js +203 -83
- package/dist/cjs/GridHero.js +13 -13
- package/dist/cjs/GroupDeck.js +14 -14
- package/dist/cjs/HamMagazine.js +28 -28
- package/dist/cjs/Hero.js +4 -4
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +47 -46
- package/dist/cjs/HorizontalHero.js +5 -5
- package/dist/cjs/IssueContentDeck.js +13 -13
- package/dist/cjs/IssueDeck.js +16 -16
- package/dist/cjs/IssueLanding.js +56 -55
- package/dist/cjs/LeftNav.js +22 -21
- package/dist/cjs/MasterDeck.js +33 -32
- package/dist/cjs/MediaSeriesLanding.js +738 -882
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +31 -31
- package/dist/cjs/NavNative.js +32 -32
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +13 -13
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +58 -57
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +35 -34
- package/dist/cjs/PubToc.js +8 -8
- package/dist/cjs/PublicationDeck.js +8 -8
- package/dist/cjs/PublicationLanding.js +28 -28
- package/dist/cjs/QueueDeckExpanded.js +38 -37
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +7 -7
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +20 -19
- package/dist/cjs/{SeriesSlider-e3e8ead7.js → SeriesSlider-0d3bf265.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +15 -15
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-19548e2a.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +10 -10
- package/dist/cjs/TaxonomyDescription.js +46 -45
- package/dist/cjs/TemplateNormal.js +48 -47
- package/dist/cjs/ThumbnailCard.js +7 -7
- package/dist/cjs/Ustream.js +14 -14
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoProgramLandingPage.js +52 -51
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +38 -37
- package/dist/cjs/VideoSeriesListing.js +37 -34
- package/dist/cjs/View.js +91 -89
- package/dist/cjs/YahooHero.js +15 -15
- package/dist/cjs/YoutubeGroup.js +22 -22
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.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/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-29bdbc6d.js → extends-0a918631.js} +7 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +71 -135
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +46 -45
- package/dist/cjs/{getTargeting-a100d6e5.js → getTargeting-15ad167c.js} +2 -2
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-4e883ea0.js → index-1a3ac358.js} +159 -159
- package/dist/cjs/{index-0e4427c8.js → index-2cf30c83.js} +5 -470
- package/dist/cjs/{index-f86bb269.js → index-6367b7bf.js} +35 -35
- package/dist/cjs/{index-eadd5035.js → index-9d365128.js} +7 -7
- package/dist/cjs/{index-efca863c.js → index-b5eb3ff8.js} +11 -16
- package/dist/cjs/index-e2e62963.js +89 -0
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-05850a2f.js} +1 -1
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-3ffa049c.js} +2 -2
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-44f3e2d0.js} +1 -1
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-974f47d9.js} +1 -1
- package/dist/cjs/index.js +137 -136
- package/dist/cjs/{inherits-c2065b95.js → inherits-0c7830c5.js} +19 -19
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-7fd85bcf.js} +10 -58
- package/dist/cjs/main-7b5e57b0.js +898 -0
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-9d7f610f.js} +35 -35
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +27 -26
- package/dist/esm/AD300x250x600.js +27 -26
- package/dist/esm/AD728x90.js +30 -29
- package/dist/esm/ADFloatingFooter.js +29 -28
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -28
- package/dist/esm/{ADInfeed-4a09242b.js → ADInfeed-427022e9.js} +9 -9
- package/dist/esm/ADSkyscraper.js +29 -28
- package/dist/esm/ADSponsoredResources.js +29 -28
- package/dist/esm/ADWebcast.js +29 -28
- package/dist/esm/ADWelcome.js +30 -29
- package/dist/esm/{ADlgInfeed-0bff9a62.js → ADlgInfeed-28d3f944.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +27 -26
- package/dist/esm/AdSlotsProvider.js +15 -14
- package/dist/esm/AlgoliaSearch.js +14123 -50
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +56 -55
- package/dist/esm/ArticleSeriesLandingPage.js +38 -37
- package/dist/esm/ArticleSeriesListing.js +57 -56
- package/dist/esm/Auth.js +418 -554
- package/dist/esm/AuthWrapper.js +259 -220
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-8ffd4679.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-d05b5b23.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +80 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +27 -27
- package/dist/esm/Column3.js +52 -51
- package/dist/esm/ConferenceArticleCard.js +20 -20
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +79 -78
- package/dist/esm/DeckQueue.js +71 -70
- package/dist/esm/{Dfp-be030f2a.js → Dfp-2f9796e1.js} +23 -22
- package/dist/esm/EventsDeck.js +88 -88
- package/dist/esm/ExternalResources.js +73 -72
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +262 -143
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +105 -105
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +69 -68
- package/dist/esm/HorizontalHero.js +23 -23
- package/dist/esm/IssueContentDeck.js +50 -50
- package/dist/esm/IssueDeck.js +47 -47
- package/dist/esm/IssueLanding.js +64 -63
- package/dist/esm/LeftNav.js +35 -34
- package/dist/esm/MasterDeck.js +66 -65
- package/dist/esm/MediaSeriesLanding.js +751 -895
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -113
- package/dist/esm/NavNative.js +103 -103
- package/dist/esm/OncliveHero.js +16 -16
- package/dist/esm/OncliveLargeHero.js +60 -60
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +106 -105
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +40 -39
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +39 -39
- package/dist/esm/PublicationLanding.js +75 -75
- package/dist/esm/QueueDeckExpanded.js +276 -275
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +20 -20
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +33 -32
- package/dist/esm/{SeriesSlider-ae17159f.js → SeriesSlider-7d89f4d9.js} +27 -27
- 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-db963c3e.js → SocialSearchComponent-47815365.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +42 -42
- package/dist/esm/TaxonomyDescription.js +50 -49
- package/dist/esm/TemplateNormal.js +68 -67
- package/dist/esm/ThumbnailCard.js +14 -14
- package/dist/esm/Ustream.js +27 -27
- package/dist/esm/VerticalHero.js +14 -14
- package/dist/esm/VideoProgramLandingPage.js +64 -63
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +43 -42
- package/dist/esm/VideoSeriesListing.js +77 -74
- package/dist/esm/View.js +244 -242
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +47 -47
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-fc1c2e29.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-4abff0b1.js} +3 -3
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.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/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-60e0e1c6.js → extends-6f2fcc99.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +71 -135
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +46 -45
- package/dist/esm/{getTargeting-05c216d6.js → getTargeting-82e86707.js} +2 -2
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-0dbff1d1.js → index-51a80699.js} +11 -16
- package/dist/esm/{index-755f2cc2.js → index-6c12bdd5.js} +10 -10
- package/dist/esm/{index-b909354c.js → index-9ae17e46.js} +489 -489
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-79cfd25c.js → index-c00b0bbb.js} +35 -35
- package/dist/esm/{index-5cc7b406.js → index-f7fb1e25.js} +7 -472
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-f6156a57.js → index.esm-3fdda599.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8ee5ff72.js} +16 -16
- package/dist/esm/{index.esm-d4932dea.js → index.esm-a8ff922c.js} +1 -1
- package/dist/esm/{index.esm-9b042655.js → index.esm-c6715e80.js} +1 -1
- package/dist/esm/index.js +133 -132
- package/dist/esm/{inherits-a41fe93f.js → inherits-75d45541.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-ec8c6b48.js} +10 -58
- package/dist/esm/main-747e7d25.js +886 -0
- package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-3822f1ce.js} +20 -20
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-af9c50d8.js} +35 -35
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/main-d4165069.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-5c98aec7.js} +1 -1
package/dist/esm/GridContent.js
CHANGED
|
@@ -1,52 +1,167 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
7
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
8
|
+
import './_object-pie-33c40e79.js';
|
|
9
|
+
import { _ as _extends } from './extends-6f2fcc99.js';
|
|
10
|
+
import './_object-sap-964b6feb.js';
|
|
11
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-75d45541.js';
|
|
12
|
+
import './define-property-8af5f002.js';
|
|
13
|
+
import './web.dom.iterable-4439f05a.js';
|
|
14
|
+
import './typeof-af9c50d8.js';
|
|
15
|
+
import './_is-array-58e95429.js';
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import './events-6c3a7a63.js';
|
|
18
|
+
import { l as lib_3 } from './index-f7fb1e25.js';
|
|
19
|
+
import 'prop-types';
|
|
6
20
|
import Container from 'react-bootstrap/Container';
|
|
7
21
|
import Row from 'react-bootstrap/Row';
|
|
8
22
|
import Col from 'react-bootstrap/Col';
|
|
9
23
|
import Card from 'react-bootstrap/Card';
|
|
10
|
-
import {
|
|
11
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
24
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
12
25
|
import { withRouter } from 'next/router';
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import { A as ADlgInfeed } from './ADlgInfeed-0bff9a62.js';
|
|
18
|
-
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
19
|
-
import { g as get_1 } from './get-3c308da4.js';
|
|
20
|
-
import { d as debounce_1 } from './debounce-533d9748.js';
|
|
21
|
-
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
22
|
-
import urlFor from './urlFor.js';
|
|
23
|
-
import { m as main_43 } from './main-d4165069.js';
|
|
24
|
-
import './AD.js';
|
|
25
|
-
import { A as AuthorComponent } from './AuthorComponent-30aeba69.js';
|
|
26
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
27
|
-
import './es6.string.iterator-bc33758b.js';
|
|
28
|
-
import './_to-object-b50e61c3.js';
|
|
29
|
-
import './_iter-detect-7e5e5ce2.js';
|
|
30
|
-
import './core.get-iterator-method-133dfacd.js';
|
|
31
|
-
import './_object-pie-133f504a.js';
|
|
32
|
-
import './_object-sap-f353c2a9.js';
|
|
33
|
-
import './define-property-fe54dc9f.js';
|
|
34
|
-
import './typeof-a286cf0c.js';
|
|
35
|
-
import './web.dom.iterable-4109ff68.js';
|
|
36
|
-
import './_is-array-3e99e06e.js';
|
|
37
|
-
import './_library-528f1934.js';
|
|
38
|
-
import 'prop-types';
|
|
26
|
+
import './isSymbol-1981418f.js';
|
|
27
|
+
import { d as debounce_1 } from './debounce-9207d8ee.js';
|
|
28
|
+
import './toNumber-2f7a84cd.js';
|
|
29
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
39
30
|
import 'react-dom';
|
|
40
|
-
import './
|
|
41
|
-
import './
|
|
42
|
-
import './
|
|
43
|
-
import './
|
|
44
|
-
import './
|
|
31
|
+
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
32
|
+
import './index-51a80699.js';
|
|
33
|
+
import urlFor from './urlFor.js';
|
|
34
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
35
|
+
import { m as main_40 } from './main-747e7d25.js';
|
|
36
|
+
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
37
|
+
import './slicedToArray-641f241f.js';
|
|
38
|
+
import './stringify-4330ccdc.js';
|
|
39
|
+
import './asyncToGenerator-fc1c2e29.js';
|
|
45
40
|
import './Segment.js';
|
|
46
|
-
import './
|
|
47
|
-
import './
|
|
48
|
-
import './
|
|
49
|
-
import './
|
|
41
|
+
import './Beam.js';
|
|
42
|
+
import './AdSlot.js';
|
|
43
|
+
import { A as ADInfeed } from './ADInfeed-427022e9.js';
|
|
44
|
+
import { l as lodash } from './lodash-ec8c6b48.js';
|
|
45
|
+
import { A as ADlgInfeed } from './ADlgInfeed-28d3f944.js';
|
|
46
|
+
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
47
|
+
import { g as get_1 } from './get-1e515072.js';
|
|
48
|
+
import './eq-b470f743.js';
|
|
49
|
+
import './AD.js';
|
|
50
|
+
import { A as AuthorComponent } from './AuthorComponent-8ffd4679.js';
|
|
51
|
+
import Button from 'react-bootstrap/Button';
|
|
52
|
+
|
|
53
|
+
var PublicationFeature = function PublicationFeature(_ref) {
|
|
54
|
+
var data = _ref.data,
|
|
55
|
+
_ref$issueMapping = _ref.issueMapping,
|
|
56
|
+
issueMapping = _ref$issueMapping === undefined ? '/publications' : _ref$issueMapping,
|
|
57
|
+
defaultImage = _ref.defaultImage,
|
|
58
|
+
client = _ref.client;
|
|
59
|
+
|
|
60
|
+
var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
61
|
+
var _data$parent = data.parent;
|
|
62
|
+
_data$parent = _data$parent === undefined ? {} : _data$parent;
|
|
63
|
+
var _data$parent$identifi = _data$parent.identifier;
|
|
64
|
+
_data$parent$identifi = _data$parent$identifi === undefined ? {} : _data$parent$identifi;
|
|
65
|
+
var parentSlug = _data$parent$identifi.current,
|
|
66
|
+
_data$identifier = data.identifier;
|
|
67
|
+
_data$identifier = _data$identifier === undefined ? {} : _data$identifier;
|
|
68
|
+
var childSlug = _data$identifier.current,
|
|
69
|
+
name = data.name,
|
|
70
|
+
articles = data.articles,
|
|
71
|
+
month = data.month,
|
|
72
|
+
year = data.year,
|
|
73
|
+
thumbnail = data.thumbnail;
|
|
74
|
+
|
|
75
|
+
if (name && articles && articles.length > 0) {
|
|
76
|
+
return React.createElement(
|
|
77
|
+
'div',
|
|
78
|
+
{ className: 'publication-feature-container border rounded p-2' },
|
|
79
|
+
React.createElement(
|
|
80
|
+
Row,
|
|
81
|
+
null,
|
|
82
|
+
React.createElement(
|
|
83
|
+
Col,
|
|
84
|
+
{ xs: 12 },
|
|
85
|
+
React.createElement(
|
|
86
|
+
'h4',
|
|
87
|
+
null,
|
|
88
|
+
name,
|
|
89
|
+
month && year && React.createElement(
|
|
90
|
+
'span',
|
|
91
|
+
null,
|
|
92
|
+
' ',
|
|
93
|
+
'| ',
|
|
94
|
+
months[parseInt(month, 10)],
|
|
95
|
+
' ',
|
|
96
|
+
year
|
|
97
|
+
)
|
|
98
|
+
)
|
|
99
|
+
),
|
|
100
|
+
React.createElement(
|
|
101
|
+
Col,
|
|
102
|
+
{ xs: 12, sm: 4 },
|
|
103
|
+
React.createElement(
|
|
104
|
+
LazyLoad,
|
|
105
|
+
{ once: true },
|
|
106
|
+
React.createElement('img', { className: 'w-100 mb-2', src: thumbnail && thumbnail.asset && client ? urlFor({ client: client, source: thumbnail.asset }) : defaultImage, alt: name || '' })
|
|
107
|
+
)
|
|
108
|
+
),
|
|
109
|
+
React.createElement(
|
|
110
|
+
Col,
|
|
111
|
+
{ xs: 12, sm: 8 },
|
|
112
|
+
React.createElement(
|
|
113
|
+
Row,
|
|
114
|
+
null,
|
|
115
|
+
articles.map(function (article) {
|
|
116
|
+
return React.createElement(
|
|
117
|
+
Col,
|
|
118
|
+
{ key: article._id, xs: 12, sm: 6 },
|
|
119
|
+
article.issueSection && article.issueSection.name && React.createElement(
|
|
120
|
+
'h6',
|
|
121
|
+
{ className: 'text-primary m-0 p-0 text-uppercase font-weight-bold' },
|
|
122
|
+
article.issueSection.name
|
|
123
|
+
),
|
|
124
|
+
article.title && React.createElement(
|
|
125
|
+
React.Fragment,
|
|
126
|
+
null,
|
|
127
|
+
article.url && article.url.current ? React.createElement(
|
|
128
|
+
'a',
|
|
129
|
+
{ href: '/view/' + article.url.current },
|
|
130
|
+
React.createElement(
|
|
131
|
+
'h6',
|
|
132
|
+
{ className: 'text-break' },
|
|
133
|
+
article.title
|
|
134
|
+
)
|
|
135
|
+
) : React.createElement(
|
|
136
|
+
'h6',
|
|
137
|
+
{ className: 'text-break' },
|
|
138
|
+
article.title
|
|
139
|
+
)
|
|
140
|
+
)
|
|
141
|
+
);
|
|
142
|
+
})
|
|
143
|
+
)
|
|
144
|
+
),
|
|
145
|
+
issueMapping && parentSlug && childSlug && React.createElement(
|
|
146
|
+
Col,
|
|
147
|
+
{ xs: 12 },
|
|
148
|
+
React.createElement(
|
|
149
|
+
Button,
|
|
150
|
+
{ href: issueMapping + '/' + parentSlug + '/' + childSlug, className: 'float-right', variant: 'outline-primary' },
|
|
151
|
+
'More Articles ',
|
|
152
|
+
'>>'
|
|
153
|
+
)
|
|
154
|
+
)
|
|
155
|
+
),
|
|
156
|
+
React.createElement(
|
|
157
|
+
'style',
|
|
158
|
+
{ jsx: 'true' },
|
|
159
|
+
'\n .row {\n margin-top: -15px;\n margin-left: -15px;\n margin-right: 0;\n }\n .row > * {\n padding-top: 15px;\n padding-left: 15px;\n padding-right: 0;\n }\n '
|
|
160
|
+
)
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
return null;
|
|
164
|
+
};
|
|
50
165
|
|
|
51
166
|
var GridContent = function (_React$Component) {
|
|
52
167
|
_inherits(GridContent, _React$Component);
|
|
@@ -153,9 +268,9 @@ var GridContent = function (_React$Component) {
|
|
|
153
268
|
}
|
|
154
269
|
}, _this.changePageNumber = function (pageNumber, itemsPerPage, itemIndex) {
|
|
155
270
|
var _this$props2 = _this.props,
|
|
156
|
-
seoPaginate = _this$props2.seoPaginate
|
|
157
|
-
_this$props2.pageview
|
|
158
|
-
|
|
271
|
+
seoPaginate = _this$props2.seoPaginate,
|
|
272
|
+
pageview = _this$props2.pageview,
|
|
273
|
+
router = _this$props2.router;
|
|
159
274
|
var currentPage = _this.state.currentPage;
|
|
160
275
|
|
|
161
276
|
if (seoPaginate) {
|
|
@@ -220,7 +335,7 @@ var GridContent = function (_React$Component) {
|
|
|
220
335
|
var rightItems = _this.props.rightItems;
|
|
221
336
|
|
|
222
337
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
223
|
-
return
|
|
338
|
+
return React.createElement(
|
|
224
339
|
'div',
|
|
225
340
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
226
341
|
rightItems[i].component
|
|
@@ -228,15 +343,15 @@ var GridContent = function (_React$Component) {
|
|
|
228
343
|
}, _this.renderManualPagination = function () {
|
|
229
344
|
var currentPage = _this.state.currentPage;
|
|
230
345
|
|
|
231
|
-
return
|
|
346
|
+
return React.createElement(
|
|
232
347
|
'div',
|
|
233
348
|
{ className: 'd-flex justify-content-between' },
|
|
234
|
-
currentPage && currentPage > 1 &&
|
|
349
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
235
350
|
'a',
|
|
236
351
|
{ href: '?page=' + (currentPage - 1) },
|
|
237
352
|
'<< Previous'
|
|
238
353
|
),
|
|
239
|
-
|
|
354
|
+
React.createElement(
|
|
240
355
|
'a',
|
|
241
356
|
{ href: '?page=' + (currentPage + 1) },
|
|
242
357
|
'Next >>'
|
|
@@ -271,62 +386,62 @@ var GridContent = function (_React$Component) {
|
|
|
271
386
|
var numberOfItemsBeforeAd = 6;
|
|
272
387
|
var numberOfItemsBeforeVideo = 3;
|
|
273
388
|
if (variant === 'stack') {
|
|
274
|
-
return
|
|
389
|
+
return React.createElement(
|
|
275
390
|
Row,
|
|
276
391
|
null,
|
|
277
392
|
this.state.data && this.state.data.length > 0 ? this.state.data.map(function (row, index) {
|
|
278
393
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
279
|
-
return
|
|
394
|
+
return React.createElement(
|
|
280
395
|
Col,
|
|
281
396
|
{ key: index, md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
282
|
-
|
|
397
|
+
React.createElement(
|
|
283
398
|
Card,
|
|
284
399
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
285
|
-
|
|
400
|
+
React.createElement(
|
|
286
401
|
Row,
|
|
287
402
|
{ style: { flexDirection: 'row' } },
|
|
288
|
-
|
|
403
|
+
React.createElement(
|
|
289
404
|
Col,
|
|
290
405
|
{ md: 12, lg: 4 },
|
|
291
|
-
|
|
406
|
+
React.createElement(
|
|
292
407
|
'a',
|
|
293
408
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
294
|
-
|
|
409
|
+
React.createElement(
|
|
295
410
|
LazyLoad,
|
|
296
411
|
{ height: _this2.props.imageHeight },
|
|
297
|
-
|
|
412
|
+
React.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row, page), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
298
413
|
)
|
|
299
414
|
)
|
|
300
415
|
),
|
|
301
|
-
|
|
416
|
+
React.createElement(
|
|
302
417
|
Col,
|
|
303
418
|
null,
|
|
304
|
-
|
|
419
|
+
React.createElement(
|
|
305
420
|
Card.Body,
|
|
306
421
|
{ style: { padding: '20px' } },
|
|
307
|
-
|
|
422
|
+
React.createElement(
|
|
308
423
|
Card.Title,
|
|
309
424
|
null,
|
|
310
|
-
|
|
425
|
+
React.createElement(
|
|
311
426
|
'a',
|
|
312
427
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
313
428
|
row.title
|
|
314
429
|
)
|
|
315
430
|
),
|
|
316
|
-
_this2.props.showPublished && row.published &&
|
|
431
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
317
432
|
Card.Subtitle,
|
|
318
433
|
{ style: { marginTop: 0 } },
|
|
319
434
|
moment(row.published).format('MMMM DD, YYYY')
|
|
320
435
|
),
|
|
321
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
436
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
322
437
|
LazyLoad,
|
|
323
438
|
{ height: 50 },
|
|
324
|
-
|
|
439
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
325
440
|
),
|
|
326
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
441
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
327
442
|
LazyLoad,
|
|
328
443
|
{ height: 50 },
|
|
329
|
-
|
|
444
|
+
React.createElement(
|
|
330
445
|
'p',
|
|
331
446
|
{
|
|
332
447
|
className: 'article-category',
|
|
@@ -341,7 +456,7 @@ var GridContent = function (_React$Component) {
|
|
|
341
456
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
342
457
|
)
|
|
343
458
|
),
|
|
344
|
-
|
|
459
|
+
React.createElement(
|
|
345
460
|
Card.Text,
|
|
346
461
|
null,
|
|
347
462
|
clean_html_1(row.summary)
|
|
@@ -351,13 +466,13 @@ var GridContent = function (_React$Component) {
|
|
|
351
466
|
)
|
|
352
467
|
)
|
|
353
468
|
);
|
|
354
|
-
}) :
|
|
469
|
+
}) : React.createElement(
|
|
355
470
|
'div',
|
|
356
471
|
null,
|
|
357
|
-
|
|
472
|
+
React.createElement(
|
|
358
473
|
'h5',
|
|
359
474
|
null,
|
|
360
|
-
|
|
475
|
+
React.createElement(
|
|
361
476
|
'em',
|
|
362
477
|
null,
|
|
363
478
|
'New content coming soon, please check back later.'
|
|
@@ -465,10 +580,14 @@ var GridContent = function (_React$Component) {
|
|
|
465
580
|
}
|
|
466
581
|
});
|
|
467
582
|
|
|
583
|
+
var publicationFeature = this.props.publicationFeature;
|
|
584
|
+
|
|
585
|
+
if (publicationFeature) posts = insert(posts, 3, publicationFeature);
|
|
586
|
+
|
|
468
587
|
var itemsPerPage = this.props.params && this.props.params.itemsPerPage ? this.props.params.itemsPerPage : 10;
|
|
469
588
|
var heroContent = this.props.heroContent ? this.props.heroContent : 0;
|
|
470
589
|
var featureCount = 0;
|
|
471
|
-
return
|
|
590
|
+
return React.createElement(
|
|
472
591
|
'div',
|
|
473
592
|
{ className: 'grid-container' },
|
|
474
593
|
posts && posts.length > 0 ? posts.map(function (row, index) {
|
|
@@ -478,58 +597,58 @@ var GridContent = function (_React$Component) {
|
|
|
478
597
|
if (row._type === 'feature') {
|
|
479
598
|
featureCount++;
|
|
480
599
|
if (row.blank || _this2.checkExternalUrl(row.url.current)) {
|
|
481
|
-
return
|
|
482
|
-
|
|
600
|
+
return React.createElement(
|
|
601
|
+
React.Fragment,
|
|
483
602
|
{ key: itemCounter },
|
|
484
|
-
|
|
603
|
+
React.createElement(
|
|
485
604
|
VisibilitySensor,
|
|
486
605
|
{
|
|
487
606
|
partialVisibility: true,
|
|
488
607
|
onChange: function onChange(isVisible) {
|
|
489
608
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, index);
|
|
490
609
|
} },
|
|
491
|
-
|
|
610
|
+
React.createElement(
|
|
492
611
|
'div',
|
|
493
612
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
494
|
-
|
|
613
|
+
React.createElement(
|
|
495
614
|
Card,
|
|
496
615
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
497
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
616
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
498
617
|
'a',
|
|
499
618
|
{ rel: 'noopener', href: row.url.current, target: '_blank', className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
500
|
-
|
|
619
|
+
React.createElement(
|
|
501
620
|
LazyLoad,
|
|
502
621
|
{ height: _this2.props.imageHeight },
|
|
503
|
-
|
|
622
|
+
React.createElement(Card.Img, {
|
|
504
623
|
variant: 'top',
|
|
505
624
|
src: _this2.renderCardImage(row, page),
|
|
506
625
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
507
626
|
})
|
|
508
627
|
)
|
|
509
628
|
),
|
|
510
|
-
|
|
629
|
+
React.createElement(
|
|
511
630
|
Card.Body,
|
|
512
631
|
null,
|
|
513
|
-
|
|
632
|
+
React.createElement(
|
|
514
633
|
'a',
|
|
515
634
|
{ rel: 'noopener', href: row.url.current, target: '_blank' },
|
|
516
|
-
|
|
635
|
+
React.createElement(
|
|
517
636
|
Card.Title,
|
|
518
637
|
null,
|
|
519
638
|
row.title
|
|
520
639
|
)
|
|
521
640
|
),
|
|
522
|
-
_this2.props.showPublished && row.published &&
|
|
641
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
523
642
|
Card.Subtitle,
|
|
524
643
|
{ style: { marginTop: 0 } },
|
|
525
644
|
moment(row.published).format('MMMM DD, YYYY')
|
|
526
645
|
),
|
|
527
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
646
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
528
647
|
LazyLoad,
|
|
529
648
|
{ height: 50 },
|
|
530
|
-
|
|
649
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
531
650
|
),
|
|
532
|
-
|
|
651
|
+
React.createElement(
|
|
533
652
|
Card.Text,
|
|
534
653
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
535
654
|
clean_html_1(row.summary)
|
|
@@ -538,62 +657,62 @@ var GridContent = function (_React$Component) {
|
|
|
538
657
|
)
|
|
539
658
|
)
|
|
540
659
|
),
|
|
541
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
542
|
-
|
|
660
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
661
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
543
662
|
);
|
|
544
663
|
} else {
|
|
545
|
-
return
|
|
546
|
-
|
|
664
|
+
return React.createElement(
|
|
665
|
+
React.Fragment,
|
|
547
666
|
{ key: itemCounter },
|
|
548
|
-
|
|
667
|
+
React.createElement(
|
|
549
668
|
VisibilitySensor,
|
|
550
669
|
{
|
|
551
670
|
partialVisibility: true,
|
|
552
671
|
onChange: function onChange(isVisible) {
|
|
553
672
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, index);
|
|
554
673
|
} },
|
|
555
|
-
|
|
674
|
+
React.createElement(
|
|
556
675
|
'div',
|
|
557
676
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
558
|
-
|
|
677
|
+
React.createElement(
|
|
559
678
|
Card,
|
|
560
679
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
561
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
680
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
562
681
|
'a',
|
|
563
682
|
{ href: row.url.current, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
564
|
-
|
|
683
|
+
React.createElement(
|
|
565
684
|
LazyLoad,
|
|
566
685
|
{ height: _this2.props.imageHeight },
|
|
567
|
-
|
|
686
|
+
React.createElement(Card.Img, {
|
|
568
687
|
variant: 'top',
|
|
569
688
|
src: _this2.renderCardImage(row, page),
|
|
570
689
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
571
690
|
})
|
|
572
691
|
)
|
|
573
692
|
),
|
|
574
|
-
|
|
693
|
+
React.createElement(
|
|
575
694
|
Card.Body,
|
|
576
695
|
null,
|
|
577
|
-
|
|
696
|
+
React.createElement(
|
|
578
697
|
'a',
|
|
579
698
|
{ href: row.url.current },
|
|
580
|
-
|
|
699
|
+
React.createElement(
|
|
581
700
|
Card.Title,
|
|
582
701
|
null,
|
|
583
702
|
row.title
|
|
584
703
|
)
|
|
585
704
|
),
|
|
586
|
-
_this2.props.showPublished && row.published &&
|
|
705
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
587
706
|
Card.Subtitle,
|
|
588
707
|
{ style: { marginTop: 0 } },
|
|
589
708
|
moment(row.published).format('MMMM DD, YYYY')
|
|
590
709
|
),
|
|
591
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
710
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
592
711
|
LazyLoad,
|
|
593
712
|
{ height: 50 },
|
|
594
|
-
|
|
713
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
595
714
|
),
|
|
596
|
-
|
|
715
|
+
React.createElement(
|
|
597
716
|
Card.Text,
|
|
598
717
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
599
718
|
clean_html_1(row.summary)
|
|
@@ -602,71 +721,71 @@ var GridContent = function (_React$Component) {
|
|
|
602
721
|
)
|
|
603
722
|
)
|
|
604
723
|
),
|
|
605
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
606
|
-
|
|
724
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
725
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
607
726
|
);
|
|
608
727
|
}
|
|
609
728
|
} else if (row._type === 'lg-infeed' && row.adUnit) {
|
|
610
|
-
return
|
|
729
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
611
730
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
612
|
-
return
|
|
613
|
-
}
|
|
731
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
732
|
+
} else if (row._type === 'publication') return React.createElement(PublicationFeature, { data: row, defaultImage: _this2.defaultImage, issueMapping: _this2.props.issueMapping, client: _this2.client });
|
|
614
733
|
if (index + 1 > heroContent + featureCount && (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type))) {
|
|
615
|
-
return
|
|
616
|
-
|
|
734
|
+
return React.createElement(
|
|
735
|
+
React.Fragment,
|
|
617
736
|
{ key: itemCounter },
|
|
618
|
-
|
|
737
|
+
React.createElement(
|
|
619
738
|
VisibilitySensor,
|
|
620
739
|
{
|
|
621
740
|
onChange: function onChange(isVisible) {
|
|
622
741
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of article only.
|
|
623
742
|
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, row.articleCount ? row.articleCount : index);
|
|
624
743
|
} },
|
|
625
|
-
|
|
744
|
+
React.createElement(
|
|
626
745
|
'div',
|
|
627
746
|
{ counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
628
|
-
|
|
747
|
+
React.createElement(
|
|
629
748
|
Card,
|
|
630
749
|
{ className: 'content-card', style: { flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
631
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
750
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
632
751
|
'a',
|
|
633
752
|
{ href: linkHref, className: index === 0 || index % 4 === 0 ? '' : 'card-image' },
|
|
634
|
-
|
|
753
|
+
React.createElement(
|
|
635
754
|
LazyLoad,
|
|
636
755
|
{ height: _this2.props.imageHeight },
|
|
637
|
-
|
|
756
|
+
React.createElement(Card.Img, {
|
|
638
757
|
variant: 'top',
|
|
639
758
|
src: _this2.renderCardImage(row, page),
|
|
640
759
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
641
760
|
})
|
|
642
761
|
)
|
|
643
762
|
),
|
|
644
|
-
|
|
763
|
+
React.createElement(
|
|
645
764
|
Card.Body,
|
|
646
765
|
null,
|
|
647
|
-
|
|
766
|
+
React.createElement(
|
|
648
767
|
'a',
|
|
649
768
|
{ href: linkHref },
|
|
650
|
-
|
|
769
|
+
React.createElement(
|
|
651
770
|
Card.Title,
|
|
652
771
|
null,
|
|
653
772
|
row.title
|
|
654
773
|
)
|
|
655
774
|
),
|
|
656
|
-
_this2.props.showPublished && row.published &&
|
|
775
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
657
776
|
Card.Subtitle,
|
|
658
777
|
{ style: { marginTop: 0 } },
|
|
659
778
|
moment(row.published).format('MMMM DD, YYYY')
|
|
660
779
|
),
|
|
661
|
-
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 &&
|
|
780
|
+
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React.createElement(
|
|
662
781
|
LazyLoad,
|
|
663
782
|
{ height: 50 },
|
|
664
|
-
|
|
783
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
665
784
|
),
|
|
666
|
-
_this2.props.showCategory && row.contentCategory &&
|
|
785
|
+
_this2.props.showCategory && row.contentCategory && React.createElement(
|
|
667
786
|
LazyLoad,
|
|
668
787
|
{ height: 50 },
|
|
669
|
-
|
|
788
|
+
React.createElement(
|
|
670
789
|
'p',
|
|
671
790
|
{
|
|
672
791
|
className: 'article-category',
|
|
@@ -681,7 +800,7 @@ var GridContent = function (_React$Component) {
|
|
|
681
800
|
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
682
801
|
)
|
|
683
802
|
),
|
|
684
|
-
|
|
803
|
+
React.createElement(
|
|
685
804
|
Card.Text,
|
|
686
805
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
|
687
806
|
clean_html_1(row.summary)
|
|
@@ -690,17 +809,17 @@ var GridContent = function (_React$Component) {
|
|
|
690
809
|
)
|
|
691
810
|
)
|
|
692
811
|
),
|
|
693
|
-
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) &&
|
|
694
|
-
|
|
812
|
+
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
813
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
695
814
|
);
|
|
696
815
|
} else return null;
|
|
697
|
-
}) :
|
|
816
|
+
}) : React.createElement(
|
|
698
817
|
'div',
|
|
699
818
|
null,
|
|
700
|
-
|
|
819
|
+
React.createElement(
|
|
701
820
|
'h5',
|
|
702
821
|
null,
|
|
703
|
-
|
|
822
|
+
React.createElement(
|
|
704
823
|
'em',
|
|
705
824
|
null,
|
|
706
825
|
'New content coming soon, please check back later.'
|
|
@@ -725,29 +844,29 @@ var GridContent = function (_React$Component) {
|
|
|
725
844
|
brandInsight = _props.brandInsight;
|
|
726
845
|
|
|
727
846
|
|
|
728
|
-
return
|
|
847
|
+
return React.createElement(
|
|
729
848
|
'div',
|
|
730
849
|
{ className: 'contentDeck' },
|
|
731
|
-
autoScroll ?
|
|
850
|
+
autoScroll ? React.createElement(
|
|
732
851
|
InfiniteScroll,
|
|
733
852
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
734
|
-
|
|
853
|
+
React.createElement(
|
|
735
854
|
Container,
|
|
736
855
|
null,
|
|
737
856
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
738
857
|
)
|
|
739
|
-
) :
|
|
740
|
-
|
|
858
|
+
) : React.createElement(
|
|
859
|
+
React.Fragment,
|
|
741
860
|
null,
|
|
742
|
-
|
|
861
|
+
React.createElement(
|
|
743
862
|
Container,
|
|
744
863
|
null,
|
|
745
864
|
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
746
865
|
),
|
|
747
|
-
|
|
866
|
+
React.createElement(
|
|
748
867
|
'div',
|
|
749
868
|
{ style: { padding: '0px 10px' } },
|
|
750
|
-
this.state.scrolling ?
|
|
869
|
+
this.state.scrolling ? React.createElement(
|
|
751
870
|
'button',
|
|
752
871
|
{
|
|
753
872
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -755,17 +874,17 @@ var GridContent = function (_React$Component) {
|
|
|
755
874
|
_this3.loadMore();
|
|
756
875
|
} },
|
|
757
876
|
'Load More'
|
|
758
|
-
) :
|
|
877
|
+
) : React.createElement(
|
|
759
878
|
'p',
|
|
760
879
|
{ style: { textAlign: 'center' } },
|
|
761
|
-
|
|
880
|
+
React.createElement(
|
|
762
881
|
'b',
|
|
763
882
|
null,
|
|
764
883
|
'End of data'
|
|
765
884
|
)
|
|
766
885
|
)
|
|
767
886
|
),
|
|
768
|
-
|
|
887
|
+
React.createElement(
|
|
769
888
|
'noscript',
|
|
770
889
|
null,
|
|
771
890
|
this.renderManualPagination()
|
|
@@ -776,8 +895,8 @@ var GridContent = function (_React$Component) {
|
|
|
776
895
|
}]);
|
|
777
896
|
|
|
778
897
|
return GridContent;
|
|
779
|
-
}(
|
|
898
|
+
}(React.Component);
|
|
780
899
|
|
|
781
|
-
var GridContent$1 =
|
|
900
|
+
var GridContent$1 = React.memo(withRouter(GridContent));
|
|
782
901
|
|
|
783
902
|
export default GridContent$1;
|