@mjhls/mjh-framework 1.0.883 → 1.0.884-beta.1
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 +1 -1
- package/dist/cjs/AD300x250.js +11 -11
- package/dist/cjs/AD300x250x600.js +11 -11
- package/dist/cjs/AD728x90.js +12 -12
- package/dist/cjs/ADFloatingFooter.js +10 -10
- package/dist/cjs/ADFooter.js +3 -3
- package/dist/cjs/ADGutter.js +10 -10
- package/dist/cjs/{ADInfeed-4f661172.js → ADInfeed-2e48af77.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +10 -10
- package/dist/cjs/ADSponsoredResources.js +10 -10
- package/dist/cjs/ADWebcast.js +10 -10
- package/dist/cjs/ADWelcome.js +10 -10
- package/dist/cjs/{ADlgInfeed-6242e5b5.js → ADlgInfeed-c39c7131.js} +1 -1
- package/dist/cjs/AccordionPanel.js +4 -4
- package/dist/cjs/AdSlot.js +10 -10
- package/dist/cjs/AdSlotsProvider.js +903 -10
- package/dist/cjs/AlgoliaSearch.js +264 -391
- package/dist/cjs/AlphabeticList.js +6 -6
- package/dist/cjs/ArticleCarousel.js +6 -6
- package/dist/cjs/ArticleProgramLandingPage.js +28 -28
- package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
- package/dist/cjs/ArticleSeriesListing.js +16 -16
- package/dist/cjs/Auth.js +1297 -469
- package/dist/cjs/AuthWrapper.js +390 -1697
- package/dist/cjs/{AuthorComponent-421d5ec1.js → AuthorComponent-02e827ae.js} +1 -1
- package/dist/cjs/Beam.js +5 -5
- package/dist/cjs/{BlockContent-bac780ac.js → BlockContent-091a991f.js} +1 -1
- package/dist/cjs/Breadcrumbs.js +3 -3
- package/dist/cjs/CMEDeck.js +12 -12
- package/dist/cjs/Column2.js +6 -6
- package/dist/cjs/Column3.js +14 -14
- package/dist/cjs/ConferenceArticleCard.js +20 -20
- package/dist/cjs/ContentCardPaginated.js +409 -0
- package/dist/cjs/DeckContent.js +30 -30
- package/dist/cjs/DeckQueue.js +19 -19
- package/dist/cjs/DeckQueuePaginated.js +340 -0
- package/dist/cjs/{Dfp-ab12cd55.js → Dfp-f492f985.js} +8 -8
- package/dist/cjs/EventsDeck.js +31 -31
- package/dist/cjs/ExternalResources.js +25 -25
- package/dist/cjs/Feature.js +6 -6
- package/dist/cjs/ForbesHero.js +6 -6
- package/dist/cjs/GridContent.js +30 -142
- package/dist/cjs/GridContentPaginated.js +699 -0
- package/dist/cjs/GridHero.js +7 -7
- package/dist/cjs/GroupDeck.js +6 -6
- package/dist/cjs/HamMagazine.js +23 -23
- package/dist/cjs/Hero.js +5 -5
- package/dist/cjs/HighlightenVideo.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +24 -24
- package/dist/cjs/HorizontalHero.js +6 -6
- package/dist/cjs/ImageSlider-38f25e66.js +3989 -0
- package/dist/cjs/IssueContentDeck.js +6 -6
- package/dist/cjs/IssueDeck.js +8 -8
- package/dist/cjs/IssueLanding.js +58 -58
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +10 -10
- package/dist/cjs/MasterDeck.js +30 -30
- package/dist/cjs/MasterDeckPaginated.js +444 -0
- package/dist/cjs/MediaSeriesCard-8d27612b.js +9411 -0
- package/dist/cjs/MediaSeriesLanding.js +57 -9538
- package/dist/cjs/MediaSeriesLandingPaginated.js +522 -0
- package/dist/cjs/NavDvm.js +5 -5
- package/dist/cjs/NavMagazine.js +22 -22
- package/dist/cjs/NavNative.js +19 -19
- package/dist/cjs/OncliveHero.js +6 -5
- package/dist/cjs/OncliveLargeHero.js +7 -7
- package/dist/cjs/PageFilter.js +3 -3
- package/dist/cjs/Pagination-2f76381b.js +51 -0
- package/dist/cjs/PartnerDetailListing.js +41 -2939
- package/dist/cjs/PartnerDetailListingPaginated.js +312 -0
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +3 -3
- package/dist/cjs/PubSection.js +19 -19
- package/dist/cjs/PubToc.js +5 -5
- package/dist/cjs/PublicationDeck.js +5 -5
- package/dist/cjs/PublicationFeature-28c549f2.js +126 -0
- package/dist/cjs/PublicationLanding.js +34 -34
- package/dist/cjs/QueueDeckExpanded.js +21 -21
- package/dist/cjs/QueueDeckExpandedPaginated.js +1378 -0
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +33 -33
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +3 -3
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +10 -10
- package/dist/cjs/{SeriesSlider-372e418f.js → SeriesSlider-49b81b0b.js} +11 -11
- package/dist/cjs/SideFooter.js +8 -8
- package/dist/cjs/{SocialSearchComponent-80a2130a.js → SocialSearchComponent-e8477ca3.js} +7 -7
- package/dist/cjs/TaxonomyCard.js +6 -6
- package/dist/cjs/TaxonomyDescription.js +24 -24
- package/dist/cjs/TemplateNormal.js +16 -16
- package/dist/cjs/ThumbnailCard.js +5 -5
- package/dist/cjs/Ustream.js +10 -10
- package/dist/cjs/VerticalHero.js +5 -5
- package/dist/cjs/VideoProgramLandingPage.js +27 -27
- package/dist/cjs/VideoSeriesCard.js +9 -9
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +25 -25
- package/dist/cjs/VideoSeriesListing.js +16 -16
- package/dist/cjs/View.js +63 -63
- package/dist/cjs/YahooHero.js +7 -7
- package/dist/cjs/YoutubeGroup.js +14 -14
- package/dist/cjs/{_is-array-bd978497.js → _is-array-aa52fa1e.js} +1 -1
- package/dist/cjs/{_iter-detect-ee3d4802.js → _iter-detect-05795553.js} +1 -1
- package/dist/cjs/{_object-sap-fee50a62.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-18379aba.js → _object-to-array-9bac8737.js} +1 -1
- package/dist/cjs/{asyncToGenerator-15014394.js → asyncToGenerator-df19209d.js} +3 -3
- package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-156bd4d6.js} +3 -4
- package/dist/cjs/{core.get-iterator-method-5cb3af28.js → core.get-iterator-method-f3c44602.js} +2 -2
- package/dist/cjs/{debounce-6191c8ee.js → debounce-529c8d06.js} +1 -1
- package/dist/cjs/{define-property-530a5e9e.js → define-property-21887c62.js} +1 -1
- package/dist/cjs/{defineProperty-5ca424cd.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-fb0c6568.js → entities-310b46ee.js} +0 -4
- package/dist/cjs/{extends-1d905ddb.js → extends-eed4f016.js} +1 -1
- package/dist/cjs/faundadb.js +19 -19
- package/dist/cjs/getRelatedArticle.js +4 -4
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +24 -24
- package/dist/cjs/getSeriesDetail.js +3 -0
- package/dist/cjs/{getTargeting-41f2f52d.js → getTargeting-8874437b.js} +11 -11
- package/dist/cjs/getTargeting.js +5 -5
- package/dist/cjs/{index-79eed652.js → index-3294d3bc.js} +40 -39
- package/dist/cjs/{index-27377172.js → index-54adcbc3.js} +498 -514
- package/dist/cjs/{index-ff69979f.js → index-be0c82be.js} +22 -28
- package/dist/cjs/{index-53e27416.js → index-e2e62963.js} +9 -25
- package/dist/cjs/{index.es-e9d84959.js → index.es-9110add6.js} +5 -23
- package/dist/cjs/{index.esm-bf016399.js → index.esm-4d410430.js} +3 -2
- 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 +43 -43
- package/dist/cjs/{inherits-337c73a7.js → inherits-12d44cca.js} +8 -8
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{keys-91f31941.js → keys-d207942e.js} +2 -2
- package/dist/cjs/{lodash-b5e0d5f6.js → lodash-fc2922d0.js} +30 -127
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{slicedToArray-0a78cdf3.js → slicedToArray-f6d4eaa8.js} +2 -2
- package/dist/cjs/{stringify-13405ce2.js → stringify-bbc68047.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-39fd0757.js → toConsumableArray-c9b8a0d0.js} +2 -2
- package/dist/cjs/{toNumber-f2f8744b.js → toNumber-36d1e7e5.js} +4 -39
- package/dist/cjs/{typeof-3dd6d3df.js → typeof-5f52cf64.js} +3 -3
- package/dist/cjs/urlFor.js +4 -4
- package/dist/cjs/{ustream-api-5619c1fa.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{web.dom.iterable-a9359910.js → web.dom.iterable-e34bf324.js} +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +11 -11
- package/dist/esm/AD300x250x600.js +11 -11
- package/dist/esm/AD728x90.js +12 -12
- package/dist/esm/ADFloatingFooter.js +10 -10
- package/dist/esm/ADFooter.js +3 -3
- package/dist/esm/ADGutter.js +10 -10
- package/dist/esm/{ADInfeed-7db96917.js → ADInfeed-d767ebe2.js} +3 -3
- package/dist/esm/ADSkyscraper.js +10 -10
- package/dist/esm/ADSponsoredResources.js +10 -10
- package/dist/esm/ADWebcast.js +10 -10
- package/dist/esm/ADWelcome.js +10 -10
- package/dist/esm/{ADlgInfeed-a3931e68.js → ADlgInfeed-cee95aa2.js} +1 -1
- package/dist/esm/AccordionPanel.js +4 -4
- package/dist/esm/AdSlot.js +10 -10
- package/dist/esm/AdSlotsProvider.js +905 -13
- package/dist/esm/AlgoliaSearch.js +32 -159
- package/dist/esm/AlphabeticList.js +6 -6
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +25 -25
- package/dist/esm/ArticleSeriesLandingPage.js +22 -22
- package/dist/esm/ArticleSeriesListing.js +18 -18
- package/dist/esm/Auth.js +1297 -469
- package/dist/esm/AuthWrapper.js +385 -1692
- package/dist/esm/{AuthorComponent-2277b67c.js → AuthorComponent-e6f95c2f.js} +1 -1
- package/dist/esm/Beam.js +5 -5
- package/dist/esm/{BlockContent-ea93e8f7.js → BlockContent-e9b4ddcf.js} +1 -1
- package/dist/esm/Breadcrumbs.js +3 -3
- package/dist/esm/CMEDeck.js +12 -12
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +11 -11
- package/dist/esm/Column3.js +20 -20
- package/dist/esm/ConferenceArticleCard.js +20 -20
- package/dist/esm/ContentCardPaginated.js +403 -0
- package/dist/esm/DeckContent.js +45 -45
- package/dist/esm/DeckQueue.js +37 -37
- package/dist/esm/DeckQueuePaginated.js +334 -0
- package/dist/esm/{Dfp-d6a5629f.js → Dfp-f867d061.js} +5 -5
- package/dist/esm/EventsDeck.js +57 -57
- package/dist/esm/ExternalResources.js +27 -27
- package/dist/esm/Feature.js +6 -6
- package/dist/esm/ForbesHero.js +6 -6
- package/dist/esm/GridContent.js +64 -176
- package/dist/esm/GridContentPaginated.js +693 -0
- package/dist/esm/GridHero.js +7 -7
- package/dist/esm/GroupDeck.js +6 -6
- package/dist/esm/HamMagazine.js +26 -26
- package/dist/esm/Hero.js +5 -5
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +24 -24
- package/dist/esm/HorizontalHero.js +6 -6
- package/dist/esm/ImageSlider-a3154b97.js +3980 -0
- package/dist/esm/IssueContentDeck.js +20 -20
- package/dist/esm/IssueDeck.js +30 -30
- package/dist/esm/IssueLanding.js +58 -58
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +10 -10
- package/dist/esm/MasterDeck.js +33 -33
- package/dist/esm/MasterDeckPaginated.js +438 -0
- package/dist/esm/MediaSeriesCard-1dd7eae8.js +9403 -0
- package/dist/esm/MediaSeriesLanding.js +53 -9533
- package/dist/esm/MediaSeriesLandingPaginated.js +517 -0
- package/dist/esm/NavDvm.js +8 -8
- package/dist/esm/NavMagazine.js +25 -25
- package/dist/esm/NavNative.js +24 -24
- package/dist/esm/OncliveHero.js +6 -5
- package/dist/esm/OncliveLargeHero.js +7 -7
- package/dist/esm/PageFilter.js +3 -3
- package/dist/esm/Pagination-c0db7ca1.js +46 -0
- package/dist/esm/PartnerDetailListing.js +39 -2936
- package/dist/esm/PartnerDetailListingPaginated.js +307 -0
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +3 -3
- package/dist/esm/PubSection.js +19 -19
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +23 -23
- package/dist/esm/PublicationFeature-fa24dedb.js +121 -0
- package/dist/esm/PublicationLanding.js +56 -56
- package/dist/esm/QueueDeckExpanded.js +21 -21
- package/dist/esm/QueueDeckExpandedPaginated.js +1372 -0
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +33 -33
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +10 -10
- package/dist/esm/{SeriesSlider-88c4133d.js → SeriesSlider-ce19fa25.js} +11 -11
- package/dist/esm/SideFooter.js +8 -8
- package/dist/esm/{SocialSearchComponent-7f3d6531.js → SocialSearchComponent-dca69151.js} +10 -10
- package/dist/esm/TaxonomyCard.js +22 -22
- package/dist/esm/TaxonomyDescription.js +24 -24
- package/dist/esm/TemplateNormal.js +19 -19
- package/dist/esm/ThumbnailCard.js +5 -5
- package/dist/esm/Ustream.js +10 -10
- package/dist/esm/VerticalHero.js +5 -5
- package/dist/esm/VideoProgramLandingPage.js +30 -30
- package/dist/esm/VideoSeriesCard.js +8 -8
- package/dist/esm/VideoSeriesFilter.js +5 -5
- package/dist/esm/VideoSeriesLandingPage.js +22 -22
- package/dist/esm/VideoSeriesListing.js +19 -19
- package/dist/esm/View.js +38 -38
- package/dist/esm/YahooHero.js +7 -7
- package/dist/esm/YoutubeGroup.js +14 -14
- package/dist/esm/{_is-array-8914b83f.js → _is-array-4df618a6.js} +1 -1
- package/dist/esm/{_iter-detect-13e31915.js → _iter-detect-130ee549.js} +1 -1
- package/dist/esm/{_object-sap-fc9da7e8.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-ee8f6d98.js → _object-to-array-c54dd835.js} +1 -1
- package/dist/esm/{asyncToGenerator-40371743.js → asyncToGenerator-7bf8bc4d.js} +3 -3
- package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -4
- package/dist/esm/{core.get-iterator-method-0fb60d94.js → core.get-iterator-method-86d4db69.js} +2 -2
- package/dist/esm/{debounce-89969f66.js → debounce-9207d8ee.js} +1 -1
- package/dist/esm/{define-property-73034847.js → define-property-6d26cb48.js} +1 -1
- package/dist/esm/{defineProperty-e66a2c7c.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/{entities-731f3fdb.js → entities-7cc3bf45.js} +0 -4
- package/dist/esm/{extends-9a61581c.js → extends-5b1796d4.js} +1 -1
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/getRelatedArticle.js +4 -4
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +24 -24
- package/dist/esm/getSeriesDetail.js +3 -0
- package/dist/esm/{getTargeting-e6820763.js → getTargeting-277c801e.js} +11 -11
- package/dist/esm/getTargeting.js +5 -5
- package/dist/esm/{index-f7fdcc91.js → index-73819142.js} +22 -28
- package/dist/esm/{index-637e8f49.js → index-aaa2dae0.js} +10 -25
- package/dist/esm/{index-afb3bbc2.js → index-d1476645.js} +517 -533
- package/dist/esm/{index-511bdaa5.js → index-ef6d5dcf.js} +40 -39
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- 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-ed50151c.js → index.esm-fd746768.js} +3 -2
- package/dist/esm/index.js +48 -48
- package/dist/esm/{inherits-eeaf6740.js → inherits-2409637d.js} +4 -4
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{keys-a5ffafe7.js → keys-69989821.js} +2 -2
- package/dist/esm/{lodash-a818d390.js → lodash-17fdfebb.js} +30 -127
- package/dist/esm/main-c0612122.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{slicedToArray-9c3bb613.js → slicedToArray-67a08c9c.js} +2 -2
- package/dist/esm/{stringify-ebc16384.js → stringify-70b72959.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-e333293f.js → toConsumableArray-32282905.js} +2 -2
- package/dist/esm/{toNumber-e3dcad26.js → toNumber-2f7a84cd.js} +4 -39
- package/dist/esm/{typeof-938ae770.js → typeof-c05a82ba.js} +3 -3
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-d325d196.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{web.dom.iterable-6b037ff9.js → web.dom.iterable-f8f967cd.js} +1 -1
- package/package.json +112 -111
- package/dist/cjs/main-bc7d4bf8.js +0 -972
- package/dist/esm/main-ede573ee.js +0 -961
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
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 './_object-sap-8b8ea5a9.js';
|
|
9
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-2409637d.js';
|
|
10
|
+
import './define-property-6d26cb48.js';
|
|
11
|
+
import './web.dom.iterable-f8f967cd.js';
|
|
12
|
+
import './typeof-c05a82ba.js';
|
|
13
|
+
import './_is-array-4df618a6.js';
|
|
14
|
+
import React__default from 'react';
|
|
15
|
+
import './events-6c3a7a63.js';
|
|
16
|
+
import { l as lib_3 } from './index-41a678ea.js';
|
|
17
|
+
import 'prop-types';
|
|
18
|
+
import Container from 'react-bootstrap/Container';
|
|
19
|
+
import Row from 'react-bootstrap/Row';
|
|
20
|
+
import Col from 'react-bootstrap/Col';
|
|
21
|
+
import Card from 'react-bootstrap/Card';
|
|
22
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
23
|
+
import { withRouter } from 'next/router';
|
|
24
|
+
import './isSymbol-1981418f.js';
|
|
25
|
+
import './debounce-9207d8ee.js';
|
|
26
|
+
import './toNumber-2f7a84cd.js';
|
|
27
|
+
import 'react-dom';
|
|
28
|
+
import './slicedToArray-67a08c9c.js';
|
|
29
|
+
import './index-73819142.js';
|
|
30
|
+
import urlFor from './urlFor.js';
|
|
31
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
32
|
+
import { m as main_36 } from './main-c0612122.js';
|
|
33
|
+
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
34
|
+
import './stringify-70b72959.js';
|
|
35
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7bf8bc4d.js';
|
|
36
|
+
import './Segment.js';
|
|
37
|
+
import './Beam.js';
|
|
38
|
+
import './AdSlot.js';
|
|
39
|
+
import { A as ADInfeed } from './ADInfeed-d767ebe2.js';
|
|
40
|
+
import Spinner from 'react-bootstrap/Spinner';
|
|
41
|
+
import 'react-paginate';
|
|
42
|
+
import { P as Pagination } from './Pagination-c0db7ca1.js';
|
|
43
|
+
|
|
44
|
+
var DeckContent = function (_React$Component) {
|
|
45
|
+
_inherits(DeckContent, _React$Component);
|
|
46
|
+
|
|
47
|
+
function DeckContent() {
|
|
48
|
+
var _ref,
|
|
49
|
+
_this2 = this;
|
|
50
|
+
|
|
51
|
+
var _temp, _this, _ret;
|
|
52
|
+
|
|
53
|
+
_classCallCheck(this, DeckContent);
|
|
54
|
+
|
|
55
|
+
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
56
|
+
args[_key] = arguments[_key];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DeckContent.__proto__ || _Object$getPrototypeOf(DeckContent)).call.apply(_ref, [this].concat(args))), _this), _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.client = _this.props.client, _this.seoPaginate = _this.props.seoPaginate, _this.state = {
|
|
60
|
+
data: _this.data,
|
|
61
|
+
dataKeptToCompareNewDatarecord: _this.data,
|
|
62
|
+
itemsPerPage: _this.params ? _this.params.itemsPerPage : _this.params.from && _this.params.to ? _this.params.to - _this.params.from : 30,
|
|
63
|
+
page: _this.props.currentPage || 1,
|
|
64
|
+
from: _this.params ? _this.params.from : 0,
|
|
65
|
+
to: _this.params ? _this.params.to : 30,
|
|
66
|
+
total_pages: null,
|
|
67
|
+
query: _this.query,
|
|
68
|
+
currentPage: _this.props.currentPage || 1,
|
|
69
|
+
isDataLoading: false,
|
|
70
|
+
totalDataCount: _this.props.totalDataCount
|
|
71
|
+
}, _this.renderCardImage = function (row, page) {
|
|
72
|
+
if (row.thumbnail && row.thumbnail.asset) {
|
|
73
|
+
var url = urlFor({
|
|
74
|
+
client: _this.client,
|
|
75
|
+
source: row.thumbnail,
|
|
76
|
+
imageHeight: _this.props.imageHeight || null,
|
|
77
|
+
imageWidth: _this.props.imageWidth || null,
|
|
78
|
+
imageFit: _this.props.imageFit || null
|
|
79
|
+
});
|
|
80
|
+
return url;
|
|
81
|
+
} else {
|
|
82
|
+
return _this.defaultImage;
|
|
83
|
+
}
|
|
84
|
+
}, _this.seoPagination = function (pageNumber) {
|
|
85
|
+
var router = _this.props.router;
|
|
86
|
+
|
|
87
|
+
var path = router.asPath;
|
|
88
|
+
var qrIndex = path.indexOf('?');
|
|
89
|
+
var pathname = router.pathname;
|
|
90
|
+
var queryString = '';
|
|
91
|
+
if (qrIndex > 0) {
|
|
92
|
+
path = path.substring(1, qrIndex);
|
|
93
|
+
var partialQS = router.asPath.substring(qrIndex + 1);
|
|
94
|
+
var partialQSArr = partialQS.split('&');
|
|
95
|
+
// exclude page=xxx from query string
|
|
96
|
+
partialQSArr.map(function (item) {
|
|
97
|
+
var itemArr = item.split('=');
|
|
98
|
+
var key = itemArr[0];
|
|
99
|
+
var val = itemArr[1];
|
|
100
|
+
if (key !== 'page') queryString += (queryString.length === 0 ? '' : '&') + key + '=' + val;
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
if (queryString.length > 0) path += '?' + queryString;
|
|
104
|
+
pageNumber = parseInt(pageNumber);
|
|
105
|
+
if (_this.state.page !== pageNumber) {
|
|
106
|
+
if (path[0] !== '/') path = '/' + path;
|
|
107
|
+
var newPath = pageNumber === 1 ? '' + path : '' + path + (queryString.length > 0 ? '&' : '?') + 'page=' + pageNumber;
|
|
108
|
+
router.push(pathname, newPath, {
|
|
109
|
+
shallow: true
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}, _this.handlePageChange = function () {
|
|
113
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(selectedPage) {
|
|
114
|
+
var start, newParams, newData;
|
|
115
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
116
|
+
while (1) {
|
|
117
|
+
switch (_context.prev = _context.next) {
|
|
118
|
+
case 0:
|
|
119
|
+
console.log('selectedPage', selectedPage);
|
|
120
|
+
_this.setState({
|
|
121
|
+
isDataLoading: true,
|
|
122
|
+
currentPage: selectedPage
|
|
123
|
+
});
|
|
124
|
+
_this.seoPaginate && _this.seoPagination(selectedPage);
|
|
125
|
+
lib_3.refresh();
|
|
126
|
+
document.body.scrollTop = 0;
|
|
127
|
+
document.documentElement.scrollTop = 0;
|
|
128
|
+
start = (selectedPage - 1) * _this.state.itemsPerPage;
|
|
129
|
+
newParams = _extends({}, _this.params, {
|
|
130
|
+
from: start,
|
|
131
|
+
to: start + _this.state.itemsPerPage
|
|
132
|
+
});
|
|
133
|
+
_context.prev = 8;
|
|
134
|
+
_context.next = 11;
|
|
135
|
+
return _this.client.fetch(_this.query, newParams);
|
|
136
|
+
|
|
137
|
+
case 11:
|
|
138
|
+
newData = _context.sent;
|
|
139
|
+
|
|
140
|
+
if (_this.pointer && _this.pointerArray) newData = newData[pointerArray][pointer];
|
|
141
|
+
if (newData && newData.length > 0) {
|
|
142
|
+
_this.setState({
|
|
143
|
+
isDataLoading: false,
|
|
144
|
+
data: newData,
|
|
145
|
+
page: selectedPage
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
_context.next = 19;
|
|
149
|
+
break;
|
|
150
|
+
|
|
151
|
+
case 16:
|
|
152
|
+
_context.prev = 16;
|
|
153
|
+
_context.t0 = _context['catch'](8);
|
|
154
|
+
|
|
155
|
+
console.error(_context.t0);
|
|
156
|
+
|
|
157
|
+
case 19:
|
|
158
|
+
case 'end':
|
|
159
|
+
return _context.stop();
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}, _callee, _this2, [[8, 16]]);
|
|
163
|
+
}));
|
|
164
|
+
|
|
165
|
+
return function (_x) {
|
|
166
|
+
return _ref2.apply(this, arguments);
|
|
167
|
+
};
|
|
168
|
+
}(), _this.renderAuthor = function (authorDetail, index, length) {
|
|
169
|
+
if (authorDetail) {
|
|
170
|
+
var _id = authorDetail._id,
|
|
171
|
+
displayName = authorDetail.displayName,
|
|
172
|
+
url = authorDetail.url;
|
|
173
|
+
|
|
174
|
+
if (displayName && url && url.current) {
|
|
175
|
+
return React__default.createElement(
|
|
176
|
+
'div',
|
|
177
|
+
{ key: _id },
|
|
178
|
+
index === 0 && React__default.createElement(
|
|
179
|
+
'span',
|
|
180
|
+
{ className: 'pr-1' },
|
|
181
|
+
'By'
|
|
182
|
+
),
|
|
183
|
+
React__default.createElement(
|
|
184
|
+
'a',
|
|
185
|
+
{ href: '/authors/${url.current}', className: 'text-muted' },
|
|
186
|
+
displayName,
|
|
187
|
+
length !== index + 1 && React__default.createElement('br', null)
|
|
188
|
+
)
|
|
189
|
+
);
|
|
190
|
+
} else if (displayName) {
|
|
191
|
+
return React__default.createElement(
|
|
192
|
+
'div',
|
|
193
|
+
{ key: _id },
|
|
194
|
+
index === 0 && React__default.createElement(
|
|
195
|
+
'span',
|
|
196
|
+
{ className: 'pr-1' },
|
|
197
|
+
'By'
|
|
198
|
+
),
|
|
199
|
+
React__default.createElement(
|
|
200
|
+
'span',
|
|
201
|
+
{ className: 'text-muted' },
|
|
202
|
+
displayName,
|
|
203
|
+
length !== index + 1 && React__default.createElement('br', null)
|
|
204
|
+
)
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
} else return null;
|
|
208
|
+
}, _this.cardLoader = function (page, columns, variant, showBI, brandInsight) {
|
|
209
|
+
var mode = variant && variant === 'bottom' ? 'column-reverse' : 'column';
|
|
210
|
+
|
|
211
|
+
var itemCounter = 0;
|
|
212
|
+
var lgVar = 12;
|
|
213
|
+
var numberOfItemsBeforeAd = 6;
|
|
214
|
+
|
|
215
|
+
var insert = function insert(arr, index, newElement) {
|
|
216
|
+
return [].concat(_toConsumableArray(arr.slice(0, index)), [newElement], _toConsumableArray(arr.slice(index)));
|
|
217
|
+
};
|
|
218
|
+
var articles = [];
|
|
219
|
+
if (showBI) {
|
|
220
|
+
var data = _this.state.data;
|
|
221
|
+
articles = data;
|
|
222
|
+
var pos = 3;
|
|
223
|
+
for (var i = 1; pos < articles.length; i++) {
|
|
224
|
+
var inFeedAd = {
|
|
225
|
+
adUnit: brandInsight.adUnit,
|
|
226
|
+
className: brandInsight.className,
|
|
227
|
+
networkID: brandInsight.networkID,
|
|
228
|
+
sizes: brandInsight.sizes,
|
|
229
|
+
slotId: brandInsight.slotId + '_' + i,
|
|
230
|
+
targeting: {
|
|
231
|
+
pos: 'infeed',
|
|
232
|
+
content_placement: brandInsight.targeting.content_placement,
|
|
233
|
+
document_url: brandInsight.targeting.document_url
|
|
234
|
+
},
|
|
235
|
+
_type: 'BrandInsight',
|
|
236
|
+
/* Passing refresh flag */
|
|
237
|
+
refreshFlag: brandInsight.refreshFlag ? brandInsight.refreshFlag : false
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
articles = insert(articles, pos, inFeedAd);
|
|
241
|
+
pos += brandInsight.interval + 1;
|
|
242
|
+
}
|
|
243
|
+
} else {
|
|
244
|
+
articles = _this.state.data;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
return React__default.createElement(
|
|
248
|
+
Row,
|
|
249
|
+
null,
|
|
250
|
+
articles && articles.map(function (row, index) {
|
|
251
|
+
if (columns === 'rotate' && itemCounter % 3 === 0) {
|
|
252
|
+
lgVar = 12;
|
|
253
|
+
} else if (columns && columns !== 'rotate') {
|
|
254
|
+
lgVar = Math.floor(12 / columns);
|
|
255
|
+
} else {
|
|
256
|
+
lgVar = 6;
|
|
257
|
+
}
|
|
258
|
+
if (row._type === 'BrandInsight' && row.adUnit) {
|
|
259
|
+
return React__default.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
260
|
+
} else {
|
|
261
|
+
var contentCategoryName = row.contentCategory && row.contentCategory.name && _this.mapping[row.contentCategory.name] ? row.contentCategory.name : 'Articles';
|
|
262
|
+
return React__default.createElement(
|
|
263
|
+
React__default.Fragment,
|
|
264
|
+
{ key: itemCounter },
|
|
265
|
+
React__default.createElement(
|
|
266
|
+
Col,
|
|
267
|
+
{ md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
268
|
+
React__default.createElement(
|
|
269
|
+
Card,
|
|
270
|
+
{ className: 'content-card', style: { flexDirection: mode } },
|
|
271
|
+
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) && React__default.createElement(
|
|
272
|
+
'a',
|
|
273
|
+
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
274
|
+
React__default.createElement(
|
|
275
|
+
LazyLoad,
|
|
276
|
+
{ height: _this.props.imageHeight },
|
|
277
|
+
React__default.createElement(Card.Img, { variant: 'top', src: _this.renderCardImage(row, page), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
278
|
+
)
|
|
279
|
+
),
|
|
280
|
+
React__default.createElement(
|
|
281
|
+
Card.Body,
|
|
282
|
+
null,
|
|
283
|
+
React__default.createElement(
|
|
284
|
+
'a',
|
|
285
|
+
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
286
|
+
React__default.createElement(
|
|
287
|
+
Card.Title,
|
|
288
|
+
null,
|
|
289
|
+
row.title
|
|
290
|
+
)
|
|
291
|
+
),
|
|
292
|
+
_this.props.showPublished && row.published && React__default.createElement(
|
|
293
|
+
Card.Subtitle,
|
|
294
|
+
null,
|
|
295
|
+
moment(row.published).format('MMMM DD, YYYY')
|
|
296
|
+
),
|
|
297
|
+
_this.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
|
|
298
|
+
return _this.renderAuthor(authorDetail, index, row.authorMapping.length);
|
|
299
|
+
}),
|
|
300
|
+
React__default.createElement(
|
|
301
|
+
Card.Text,
|
|
302
|
+
null,
|
|
303
|
+
clean_html_1(row.summary)
|
|
304
|
+
)
|
|
305
|
+
)
|
|
306
|
+
)
|
|
307
|
+
),
|
|
308
|
+
main_36 && _this.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
309
|
+
);
|
|
310
|
+
}
|
|
311
|
+
})
|
|
312
|
+
);
|
|
313
|
+
}, _this.renderMobileAd = function (index, numberOfItemsBeforeAd) {
|
|
314
|
+
var rightItems = _this.props.rightItems;
|
|
315
|
+
|
|
316
|
+
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
317
|
+
return React__default.createElement(
|
|
318
|
+
Col,
|
|
319
|
+
{ md: 12, style: { display: 'flex', flex: '1 0 auto' } },
|
|
320
|
+
rightItems[i].component
|
|
321
|
+
);
|
|
322
|
+
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
_createClass(DeckContent, [{
|
|
326
|
+
key: 'componentDidUpdate',
|
|
327
|
+
value: function componentDidUpdate(prevProps, prevState) {
|
|
328
|
+
if (this.state.dataKeptToCompareNewDatarecord !== this.props.dataRecord) {
|
|
329
|
+
// eslint-disable-next-line react/no-did-update-set-state
|
|
330
|
+
this.setState({
|
|
331
|
+
data: this.props.dataRecord,
|
|
332
|
+
dataKeptToCompareNewDatarecord: this.props.dataRecord,
|
|
333
|
+
itemsPerPage: this.props.params ? this.props.params.to : 2,
|
|
334
|
+
page: 1,
|
|
335
|
+
from: this.props.params ? this.props.params.from : 0,
|
|
336
|
+
to: this.props.params ? this.props.params.to : 2,
|
|
337
|
+
total_pages: null,
|
|
338
|
+
query: this.props.query,
|
|
339
|
+
isDataLoading: false,
|
|
340
|
+
totalDataCount: this.props.totalDataCount
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}, {
|
|
345
|
+
key: 'render',
|
|
346
|
+
value: function render() {
|
|
347
|
+
var _props = this.props,
|
|
348
|
+
columns = _props.columns,
|
|
349
|
+
variant = _props.variant,
|
|
350
|
+
page = _props.page,
|
|
351
|
+
showBI = _props.showBI,
|
|
352
|
+
brandInsight = _props.brandInsight;
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
return React__default.createElement(
|
|
356
|
+
'div',
|
|
357
|
+
{ className: 'contentDeck' },
|
|
358
|
+
this.state.isDataLoading ? React__default.createElement(
|
|
359
|
+
'div',
|
|
360
|
+
{ className: 'd-flex justify-content-center', style: { marginTop: '100px' } },
|
|
361
|
+
React__default.createElement(
|
|
362
|
+
Spinner,
|
|
363
|
+
{ animation: 'border', role: 'status' },
|
|
364
|
+
React__default.createElement(
|
|
365
|
+
'span',
|
|
366
|
+
{ className: 'sr-only' },
|
|
367
|
+
'Loading...'
|
|
368
|
+
)
|
|
369
|
+
)
|
|
370
|
+
) : React__default.createElement(
|
|
371
|
+
React__default.Fragment,
|
|
372
|
+
null,
|
|
373
|
+
React__default.createElement(
|
|
374
|
+
Container,
|
|
375
|
+
null,
|
|
376
|
+
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
377
|
+
),
|
|
378
|
+
React__default.createElement(
|
|
379
|
+
'div',
|
|
380
|
+
{ className: 'pagination-wrapper' },
|
|
381
|
+
React__default.createElement(Pagination, {
|
|
382
|
+
pageCount: Math.ceil(this.state.totalDataCount / this.state.itemsPerPage),
|
|
383
|
+
pageRangeDisplayed: main_36 ? 3 : 9,
|
|
384
|
+
currentPage: this.state.currentPage,
|
|
385
|
+
onPageChange: this.handlePageChange
|
|
386
|
+
}),
|
|
387
|
+
React__default.createElement(
|
|
388
|
+
'style',
|
|
389
|
+
{ jsx: 'true' },
|
|
390
|
+
'\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 '
|
|
391
|
+
)
|
|
392
|
+
)
|
|
393
|
+
)
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
}]);
|
|
397
|
+
|
|
398
|
+
return DeckContent;
|
|
399
|
+
}(React__default.Component);
|
|
400
|
+
|
|
401
|
+
var ContentCardPaginated = withRouter(DeckContent);
|
|
402
|
+
|
|
403
|
+
export default ContentCardPaginated;
|
package/dist/esm/DeckContent.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './core.get-iterator-method-
|
|
2
|
+
import './core.get-iterator-method-86d4db69.js';
|
|
3
3
|
import './_library-528f1934.js';
|
|
4
|
-
import './_iter-detect-
|
|
5
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
4
|
+
import './_iter-detect-130ee549.js';
|
|
5
|
+
import { _ as _toConsumableArray } from './toConsumableArray-32282905.js';
|
|
6
6
|
import './_object-pie-33c40e79.js';
|
|
7
|
-
import { _ as _extends } from './extends-
|
|
8
|
-
import './_object-sap-
|
|
9
|
-
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-
|
|
10
|
-
import './define-property-
|
|
11
|
-
import './web.dom.iterable-
|
|
12
|
-
import './typeof-
|
|
13
|
-
import './_is-array-
|
|
7
|
+
import { _ as _extends } from './extends-5b1796d4.js';
|
|
8
|
+
import './_object-sap-8b8ea5a9.js';
|
|
9
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-2409637d.js';
|
|
10
|
+
import './define-property-6d26cb48.js';
|
|
11
|
+
import './web.dom.iterable-f8f967cd.js';
|
|
12
|
+
import './typeof-c05a82ba.js';
|
|
13
|
+
import './_is-array-4df618a6.js';
|
|
14
14
|
import React__default from 'react';
|
|
15
15
|
import './events-6c3a7a63.js';
|
|
16
16
|
import { l as lib_3 } from './index-41a678ea.js';
|
|
17
17
|
import 'prop-types';
|
|
18
|
-
import Container
|
|
19
|
-
import Row
|
|
20
|
-
import Col
|
|
21
|
-
import Card
|
|
22
|
-
import { m as moment } from './moment-
|
|
18
|
+
import Container from 'react-bootstrap/Container';
|
|
19
|
+
import Row from 'react-bootstrap/Row';
|
|
20
|
+
import Col from 'react-bootstrap/Col';
|
|
21
|
+
import Card from 'react-bootstrap/Card';
|
|
22
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
23
23
|
import { withRouter } from 'next/router';
|
|
24
24
|
import './isSymbol-1981418f.js';
|
|
25
|
-
import { d as debounce_1 } from './debounce-
|
|
26
|
-
import './toNumber-
|
|
27
|
-
import { I as InfiniteScroll } from './index.es-
|
|
25
|
+
import { d as debounce_1 } from './debounce-9207d8ee.js';
|
|
26
|
+
import './toNumber-2f7a84cd.js';
|
|
27
|
+
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
28
28
|
import 'react-dom';
|
|
29
29
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
30
|
-
import './slicedToArray-
|
|
31
|
-
import './index-
|
|
30
|
+
import './slicedToArray-67a08c9c.js';
|
|
31
|
+
import './index-73819142.js';
|
|
32
32
|
import urlFor from './urlFor.js';
|
|
33
33
|
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
34
|
-
import { m as
|
|
35
|
-
import { c as clean_html_1 } from './entities-
|
|
36
|
-
import './stringify-
|
|
37
|
-
import './asyncToGenerator-
|
|
34
|
+
import { m as main_36 } from './main-c0612122.js';
|
|
35
|
+
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
36
|
+
import './stringify-70b72959.js';
|
|
37
|
+
import './asyncToGenerator-7bf8bc4d.js';
|
|
38
38
|
import './Segment.js';
|
|
39
39
|
import './Beam.js';
|
|
40
40
|
import './AdSlot.js';
|
|
41
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
41
|
+
import { A as ADInfeed } from './ADInfeed-d767ebe2.js';
|
|
42
42
|
|
|
43
43
|
var DeckContent = function (_React$Component) {
|
|
44
44
|
_inherits(DeckContent, _React$Component);
|
|
@@ -172,14 +172,14 @@ var DeckContent = function (_React$Component) {
|
|
|
172
172
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
173
173
|
|
|
174
174
|
// please leave this for later debug purpose : Yong Jun.
|
|
175
|
-
/* console.log('page change reported', {
|
|
176
|
-
currentPage: currentPage,
|
|
177
|
-
pageNumber: pageNumber,
|
|
178
|
-
pathname: pathname,
|
|
179
|
-
path: path,
|
|
180
|
-
newPath: newPath,
|
|
181
|
-
firstPage: pageNumber === 1,
|
|
182
|
-
queryString: queryString
|
|
175
|
+
/* console.log('page change reported', {
|
|
176
|
+
currentPage: currentPage,
|
|
177
|
+
pageNumber: pageNumber,
|
|
178
|
+
pathname: pathname,
|
|
179
|
+
path: path,
|
|
180
|
+
newPath: newPath,
|
|
181
|
+
firstPage: pageNumber === 1,
|
|
182
|
+
queryString: queryString
|
|
183
183
|
}) */
|
|
184
184
|
|
|
185
185
|
if (pageview) {
|
|
@@ -272,7 +272,7 @@ var DeckContent = function (_React$Component) {
|
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
return React__default.createElement(
|
|
275
|
-
Row
|
|
275
|
+
Row,
|
|
276
276
|
null,
|
|
277
277
|
articles && articles.map(function (row, index) {
|
|
278
278
|
if (columns === 'rotate' && itemCounter % 3 === 0) {
|
|
@@ -297,10 +297,10 @@ var DeckContent = function (_React$Component) {
|
|
|
297
297
|
isVisible && _this.changePageNumber(pageNumber);
|
|
298
298
|
} },
|
|
299
299
|
React__default.createElement(
|
|
300
|
-
Col
|
|
300
|
+
Col,
|
|
301
301
|
{ md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
302
302
|
React__default.createElement(
|
|
303
|
-
Card
|
|
303
|
+
Card,
|
|
304
304
|
{ className: 'content-card', style: { flexDirection: mode } },
|
|
305
305
|
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) && React__default.createElement(
|
|
306
306
|
'a',
|
|
@@ -308,7 +308,7 @@ var DeckContent = function (_React$Component) {
|
|
|
308
308
|
React__default.createElement(
|
|
309
309
|
LazyLoad,
|
|
310
310
|
{ height: _this.props.imageHeight },
|
|
311
|
-
React__default.createElement(Card
|
|
311
|
+
React__default.createElement(Card.Img, {
|
|
312
312
|
variant: 'top',
|
|
313
313
|
src: _this.renderCardImage(row, page),
|
|
314
314
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
@@ -316,19 +316,19 @@ var DeckContent = function (_React$Component) {
|
|
|
316
316
|
)
|
|
317
317
|
),
|
|
318
318
|
React__default.createElement(
|
|
319
|
-
Card
|
|
319
|
+
Card.Body,
|
|
320
320
|
null,
|
|
321
321
|
React__default.createElement(
|
|
322
322
|
'a',
|
|
323
323
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
324
324
|
React__default.createElement(
|
|
325
|
-
Card
|
|
325
|
+
Card.Title,
|
|
326
326
|
null,
|
|
327
327
|
row.title
|
|
328
328
|
)
|
|
329
329
|
),
|
|
330
330
|
_this.props.showPublished && row.published && React__default.createElement(
|
|
331
|
-
Card
|
|
331
|
+
Card.Subtitle,
|
|
332
332
|
null,
|
|
333
333
|
moment(row.published).format('MMMM DD, YYYY')
|
|
334
334
|
),
|
|
@@ -336,7 +336,7 @@ var DeckContent = function (_React$Component) {
|
|
|
336
336
|
return _this.renderAuthor(authorDetail, index, row.authorMapping.length);
|
|
337
337
|
}),
|
|
338
338
|
React__default.createElement(
|
|
339
|
-
Card
|
|
339
|
+
Card.Text,
|
|
340
340
|
null,
|
|
341
341
|
clean_html_1(row.summary)
|
|
342
342
|
)
|
|
@@ -344,7 +344,7 @@ var DeckContent = function (_React$Component) {
|
|
|
344
344
|
)
|
|
345
345
|
)
|
|
346
346
|
),
|
|
347
|
-
|
|
347
|
+
main_36 && _this.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
348
348
|
);
|
|
349
349
|
}
|
|
350
350
|
})
|
|
@@ -354,7 +354,7 @@ var DeckContent = function (_React$Component) {
|
|
|
354
354
|
|
|
355
355
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
356
356
|
return React__default.createElement(
|
|
357
|
-
Col
|
|
357
|
+
Col,
|
|
358
358
|
{ md: 12, style: { display: 'flex', flex: '1 0 auto' } },
|
|
359
359
|
rightItems[i].component
|
|
360
360
|
);
|
|
@@ -425,7 +425,7 @@ var DeckContent = function (_React$Component) {
|
|
|
425
425
|
InfiniteScroll,
|
|
426
426
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
427
427
|
React__default.createElement(
|
|
428
|
-
Container
|
|
428
|
+
Container,
|
|
429
429
|
null,
|
|
430
430
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
431
431
|
)
|
|
@@ -439,7 +439,7 @@ var DeckContent = function (_React$Component) {
|
|
|
439
439
|
React__default.Fragment,
|
|
440
440
|
null,
|
|
441
441
|
React__default.createElement(
|
|
442
|
-
Container
|
|
442
|
+
Container,
|
|
443
443
|
null,
|
|
444
444
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
445
445
|
),
|