@mjhls/mjh-framework 1.0.880-beta.0 → 1.0.880
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +29 -28
- package/dist/cjs/AD300x250x600.js +29 -28
- package/dist/cjs/AD728x90.js +32 -31
- package/dist/cjs/ADFloatingFooter.js +31 -30
- package/dist/cjs/ADFooter.js +13 -12
- package/dist/cjs/ADGutter.js +31 -30
- package/dist/cjs/{ADInfeed-2e48af77.js → ADInfeed-9a2e923a.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +31 -30
- package/dist/cjs/ADSponsoredResources.js +31 -30
- package/dist/cjs/ADWebcast.js +31 -30
- package/dist/cjs/ADWelcome.js +32 -31
- package/dist/cjs/{ADlgInfeed-c39c7131.js → ADlgInfeed-957a1996.js} +11 -10
- package/dist/cjs/AccordionPanel.js +29 -27
- package/dist/cjs/AdSlot.js +32 -31
- package/dist/cjs/AdSlotsProvider.js +18 -909
- package/dist/cjs/AlgoliaSearch.js +1391 -1272
- package/dist/cjs/AlphabeticList.js +24 -23
- package/dist/cjs/ArticleCarousel.js +21 -19
- package/dist/cjs/ArticleProgramLandingPage.js +61 -59
- package/dist/cjs/ArticleSeriesLandingPage.js +44 -38
- package/dist/cjs/ArticleSeriesListing.js +60 -58
- package/dist/cjs/Auth.js +680 -1504
- package/dist/cjs/AuthWrapper.js +309 -267
- package/dist/cjs/{AuthorComponent-02e827ae.js → AuthorComponent-39b37d84.js} +14 -13
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-9c6b07ad.js → BlockContent-36e54d77.js} +56 -55
- package/dist/cjs/Breadcrumbs.js +27 -25
- package/dist/cjs/CMEDeck.js +81 -81
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +34 -31
- package/dist/cjs/Column3.js +60 -57
- package/dist/cjs/ConferenceArticleCard.js +43 -41
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +105 -100
- package/dist/cjs/DeckQueue.js +91 -86
- package/dist/cjs/{Dfp-14d2455c.js → Dfp-9be904d5.js} +33 -32
- package/dist/cjs/EventsDeck.js +157 -150
- package/dist/cjs/ExternalResources.js +80 -78
- package/dist/cjs/Feature.js +31 -28
- package/dist/cjs/ForbesHero.js +43 -41
- package/dist/cjs/GridContent.js +237 -231
- package/dist/cjs/GridHero.js +45 -43
- package/dist/cjs/GroupDeck.js +60 -58
- package/dist/cjs/HamMagazine.js +143 -138
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +16 -14
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +72 -70
- package/dist/cjs/HorizontalHero.js +30 -28
- package/dist/cjs/IssueContentDeck.js +77 -71
- package/dist/cjs/IssueDeck.js +76 -70
- package/dist/cjs/IssueLanding.js +94 -91
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -37
- package/dist/cjs/MasterDeck.js +355 -227
- package/dist/cjs/MediaSeriesLanding.js +1118 -1126
- package/dist/cjs/NavDvm.js +77 -72
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +150 -145
- package/dist/cjs/NavNative.js +145 -137
- package/dist/cjs/OncliveHero.js +24 -23
- package/dist/cjs/OncliveLargeHero.js +75 -73
- package/dist/cjs/PageFilter.js +13 -12
- package/dist/cjs/PartnerDetailListing.js +119 -3917
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +19 -17
- package/dist/cjs/PubSection.js +41 -38
- package/dist/cjs/PubToc.js +14 -13
- package/dist/cjs/PublicationDeck.js +71 -65
- package/dist/cjs/PublicationLanding.js +137 -133
- package/dist/cjs/QueueDeckExpanded.js +1173 -1001
- package/dist/cjs/RecentNews.js +22 -21
- package/dist/cjs/RelatedContent.js +59 -57
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +20 -16
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +37 -36
- package/dist/cjs/{SeriesSlider-ec146338.js → SeriesSlider-ce3261cb.js} +41 -40
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +37 -36
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-e8477ca3.js → SocialSearchComponent-5ec44406.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +67 -61
- package/dist/cjs/TaxonomyDescription.js +55 -53
- package/dist/cjs/TemplateNormal.js +73 -72
- package/dist/cjs/ThumbnailCard.js +26 -23
- package/dist/cjs/Ustream.js +28 -27
- package/dist/cjs/VerticalHero.js +22 -20
- package/dist/cjs/VideoProgramLandingPage.js +78 -73
- package/dist/cjs/VideoSeriesCard.js +34 -32
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +52 -48
- package/dist/cjs/VideoSeriesListing.js +77 -75
- package/dist/cjs/View.js +275 -271
- package/dist/cjs/YahooHero.js +42 -40
- package/dist/cjs/YoutubeGroup.js +68 -66
- package/dist/cjs/{_is-array-aa52fa1e.js → _is-array-54228b29.js} +6 -6
- package/dist/cjs/{_iter-detect-05795553.js → _iter-detect-b1df62f0.js} +7 -7
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-171b9ea5.js → _object-sap-d1978572.js} +1 -1
- package/dist/cjs/{_object-to-array-9bac8737.js → _object-to-array-ce86cae7.js} +2 -2
- package/dist/cjs/{asyncToGenerator-df19209d.js → asyncToGenerator-77821af0.js} +30 -30
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f3c44602.js → core.get-iterator-method-5643aa10.js} +35 -35
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-21887c62.js → define-property-e8404b64.js} +6 -6
- package/dist/cjs/{defineProperty-77a37684.js → defineProperty-9673846a.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{extends-eed4f016.js → extends-7c86182f.js} +7 -7
- package/dist/cjs/faundadb.js +19 -19
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +18 -18
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -42
- package/dist/cjs/{getTargeting-8874437b.js → getTargeting-9d509319.js} +12 -12
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-17c6af5a.js → index-22bdde81.js} +1093 -1067
- package/dist/cjs/{index-e2e62963.js → index-8041a4eb.js} +11 -1
- package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
- package/dist/cjs/{urlFor-3a61226f.js → index-efca863c.js} +37 -88
- package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index-98e01cb9.js → index-fc2f1ca2.js} +13 -12
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +170 -164
- package/dist/cjs/{inherits-cba9c846.js → inherits-de66ea16.js} +19 -19
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/{keys-d207942e.js → keys-e982b3fa.js} +6 -6
- package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
- package/dist/cjs/main-025fdc78.js +973 -0
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-f6d4eaa8.js → slicedToArray-067dd3bc.js} +12 -12
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/{stringify-bbc68047.js → stringify-f7a37a8d.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-c9b8a0d0.js → toConsumableArray-d7797c2b.js} +7 -7
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-5f52cf64.js → typeof-567e31ff.js} +35 -35
- package/dist/cjs/urlFor.js +59 -5
- package/dist/cjs/{ustream-api-9ebe112f.js → ustream-api-3819e4aa.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-e34bf324.js → web.dom.iterable-d98303e0.js} +2 -2
- package/dist/esm/AD.js +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-0c13c803.js → ADInfeed-8c5f8c58.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-e4e2031a.js → ADlgInfeed-2316e091.js} +8 -8
- package/dist/esm/AccordionPanel.js +22 -22
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +15 -907
- package/dist/esm/AlgoliaSearch.js +820 -702
- package/dist/esm/AlphabeticList.js +20 -20
- package/dist/esm/ArticleCarousel.js +17 -16
- package/dist/esm/ArticleProgramLandingPage.js +54 -53
- package/dist/esm/ArticleSeriesLandingPage.js +38 -33
- package/dist/esm/ArticleSeriesListing.js +55 -54
- package/dist/esm/Auth.js +659 -1487
- package/dist/esm/AuthWrapper.js +306 -265
- package/dist/esm/{AuthorComponent-e6f95c2f.js → AuthorComponent-46a745ba.js} +11 -11
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-f4515898.js → BlockContent-52cf21c5.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 -37
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +96 -95
- package/dist/esm/DeckQueue.js +82 -81
- package/dist/esm/{Dfp-f867d061.js → Dfp-4ca12f2e.js} +20 -20
- package/dist/esm/EventsDeck.js +129 -129
- package/dist/esm/ExternalResources.js +73 -72
- package/dist/esm/Feature.js +22 -21
- package/dist/esm/ForbesHero.js +33 -32
- package/dist/esm/GridContent.js +199 -198
- package/dist/esm/GridHero.js +35 -34
- package/dist/esm/GroupDeck.js +45 -44
- package/dist/esm/HamMagazine.js +114 -114
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +13 -12
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +68 -67
- package/dist/esm/HorizontalHero.js +25 -24
- package/dist/esm/IssueContentDeck.js +59 -58
- package/dist/esm/IssueDeck.js +63 -62
- package/dist/esm/IssueLanding.js +90 -88
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +33 -33
- package/dist/esm/MasterDeck.js +350 -223
- package/dist/esm/MediaSeriesLanding.js +839 -850
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +124 -124
- package/dist/esm/NavNative.js +114 -114
- package/dist/esm/OncliveHero.js +20 -20
- package/dist/esm/OncliveLargeHero.js +58 -57
- package/dist/esm/PageFilter.js +10 -10
- package/dist/esm/PartnerDetailListing.js +112 -3910
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +12 -12
- package/dist/esm/PubSection.js +37 -35
- package/dist/esm/PubToc.js +10 -10
- package/dist/esm/PublicationDeck.js +56 -55
- package/dist/esm/PublicationLanding.js +120 -120
- package/dist/esm/QueueDeckExpanded.js +1166 -994
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +51 -50
- 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 +31 -30
- package/dist/esm/{SeriesSlider-d6561e33.js → SeriesSlider-7a6c45ce.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-b5be0e6c.js → SocialSearchComponent-bdecba55.js} +30 -30
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +56 -55
- package/dist/esm/TaxonomyDescription.js +49 -48
- package/dist/esm/TemplateNormal.js +68 -68
- package/dist/esm/ThumbnailCard.js +17 -16
- package/dist/esm/Ustream.js +24 -24
- package/dist/esm/VerticalHero.js +17 -16
- package/dist/esm/VideoProgramLandingPage.js +65 -64
- package/dist/esm/VideoSeriesCard.js +26 -25
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +42 -39
- package/dist/esm/VideoSeriesListing.js +72 -71
- package/dist/esm/View.js +246 -246
- package/dist/esm/YahooHero.js +33 -32
- package/dist/esm/YoutubeGroup.js +52 -51
- package/dist/esm/{_is-array-4df618a6.js → _is-array-893ab020.js} +6 -6
- package/dist/esm/{_iter-detect-130ee549.js → _iter-detect-f089461c.js} +7 -7
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-8b8ea5a9.js → _object-sap-169d6272.js} +1 -1
- package/dist/esm/{_object-to-array-c54dd835.js → _object-to-array-50a6b9a3.js} +2 -2
- package/dist/esm/{asyncToGenerator-64812e90.js → asyncToGenerator-b4dfe691.js} +31 -31
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
- package/dist/esm/{core.get-iterator-method-86d4db69.js → core.get-iterator-method-e903ff31.js} +36 -36
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-6d26cb48.js → define-property-99e66838.js} +6 -6
- package/dist/esm/{defineProperty-d7d9b577.js → defineProperty-8fa0bc8d.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{extends-5b1796d4.js → extends-dc6a71fd.js} +7 -7
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +12 -12
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +43 -42
- package/dist/esm/{getTargeting-277c801e.js → getTargeting-ff2c9409.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/esm/{urlFor-23b2244b.js → index-0dbff1d1.js} +37 -88
- package/dist/esm/{index-41a678ea.js → index-2446af28.js} +6 -6
- package/dist/esm/{index-5f7e79e7.js → index-35bdcc81.js} +10 -10
- package/dist/esm/{index-aaa2dae0.js → index-67e1773f.js} +11 -2
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index-a35a5c39.js → index-c9bfc91f.js} +1017 -1001
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
- package/dist/esm/index.js +140 -137
- package/dist/esm/{inherits-2409637d.js → inherits-8a801a18.js} +18 -18
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-69989821.js → keys-425c8ab0.js} +6 -6
- package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
- package/dist/esm/main-4136096f.js +961 -0
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
- package/dist/esm/{slicedToArray-67a08c9c.js → slicedToArray-ca2c8b8d.js} +12 -12
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-c21932b3.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-32282905.js → toConsumableArray-7b1c0e23.js} +7 -7
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-c05a82ba.js → typeof-83d9eb10.js} +35 -35
- package/dist/esm/urlFor.js +62 -4
- package/dist/esm/{ustream-api-4c4fe0ba.js → ustream-api-41166338.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-f8f967cd.js → web.dom.iterable-fdf034f5.js} +2 -2
- package/package.json +111 -112
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/Pagination-9cb60fba.js +0 -61
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/esm/Pagination-256b60e5.js +0 -56
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- package/dist/esm/main-c0612122.js +0 -851
- package/dist/esm/stringify-70b72959.js +0 -15
package/dist/esm/MasterDeck.js
CHANGED
|
@@ -1,38 +1,43 @@
|
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
2
|
+
import { _ as _Promise } from './asyncToGenerator-b4dfe691.js';
|
|
3
|
+
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
4
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-8a801a18.js';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { l as lib_3 } from './index-2446af28.js';
|
|
7
|
+
import Container from 'react-bootstrap/Container';
|
|
8
|
+
import 'react-bootstrap/Row';
|
|
9
|
+
import 'react-bootstrap/Col';
|
|
10
|
+
import 'react-bootstrap/Card';
|
|
11
|
+
import './moment-bc12cb97.js';
|
|
12
|
+
import { withRouter } from 'next/router';
|
|
13
|
+
import { l as lodash } from './lodash-f97fd99a.js';
|
|
14
|
+
import { d as debounce_1 } from './debounce-533d9748.js';
|
|
15
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
16
|
+
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
17
|
+
import './slicedToArray-ca2c8b8d.js';
|
|
18
|
+
import './index-0dbff1d1.js';
|
|
19
|
+
import { A as ADlgInfeed } from './ADlgInfeed-2316e091.js';
|
|
20
|
+
import { A as ADInfeed } from './ADInfeed-8c5f8c58.js';
|
|
21
|
+
import './main-4136096f.js';
|
|
1
22
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './core.get-iterator-method-
|
|
23
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
24
|
+
import './_iter-detect-f089461c.js';
|
|
25
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
3
26
|
import './_library-528f1934.js';
|
|
4
|
-
import './
|
|
5
|
-
import
|
|
6
|
-
import './
|
|
7
|
-
import
|
|
8
|
-
import './
|
|
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';
|
|
27
|
+
import './_object-pie-133f504a.js';
|
|
28
|
+
import './_object-sap-169d6272.js';
|
|
29
|
+
import './define-property-99e66838.js';
|
|
30
|
+
import './typeof-83d9eb10.js';
|
|
31
|
+
import './_is-array-893ab020.js';
|
|
15
32
|
import './events-6c3a7a63.js';
|
|
16
|
-
import { l as lib_3 } from './index-41a678ea.js';
|
|
17
33
|
import 'prop-types';
|
|
18
|
-
import
|
|
19
|
-
import '
|
|
20
|
-
import
|
|
21
|
-
import './isSymbol-1981418f.js';
|
|
22
|
-
import './debounce-9207d8ee.js';
|
|
23
|
-
import './toNumber-2f7a84cd.js';
|
|
24
|
-
import './slicedToArray-67a08c9c.js';
|
|
25
|
-
import { m as main_36 } from './main-c0612122.js';
|
|
26
|
-
import './stringify-70b72959.js';
|
|
27
|
-
import { _ as _asyncToGenerator, r as regenerator, a as _Promise } from './asyncToGenerator-64812e90.js';
|
|
28
|
-
import './Segment.js';
|
|
29
|
-
import './Beam.js';
|
|
34
|
+
import './isSymbol-a7e9aafe.js';
|
|
35
|
+
import './toNumber-5aeba6e7.js';
|
|
36
|
+
import 'react-dom';
|
|
30
37
|
import './AdSlot.js';
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import { P as Pagination } from './Pagination-256b60e5.js';
|
|
35
|
-
import Spinner$1 from 'react-bootstrap/Spinner';
|
|
38
|
+
import './Beam.js';
|
|
39
|
+
import './stringify-c21932b3.js';
|
|
40
|
+
import './Segment.js';
|
|
36
41
|
|
|
37
42
|
var MasterDeck = function (_React$Component) {
|
|
38
43
|
_inherits(MasterDeck, _React$Component);
|
|
@@ -50,82 +55,195 @@ var MasterDeck = function (_React$Component) {
|
|
|
50
55
|
}
|
|
51
56
|
|
|
52
57
|
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = MasterDeck.__proto__ || _Object$getPrototypeOf(MasterDeck)).call.apply(_ref, [this].concat(args))), _this), _this.Deck = _this.props.deck, _this.variant = _this.props.variant, _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.rightItems = _this.props.rightItems ? _this.props.rightItems : false, _this.isSeriesLanding = _this.props.isSeriesLanding ? _this.props.isSeriesLanding : false, _this.client = _this.props.client, _this.state = {
|
|
53
|
-
isDataLoading: false,
|
|
54
58
|
data: _this.data,
|
|
59
|
+
dataKeptToCompareNewDatarecord: _this.data,
|
|
60
|
+
per: _this.params ? _this.params.to : 2,
|
|
61
|
+
page: _this.props.currentPage || 1,
|
|
62
|
+
from: _this.params ? _this.params.from : 0,
|
|
63
|
+
to: _this.params ? _this.params.to : 2,
|
|
64
|
+
total_pages: null,
|
|
65
|
+
scrolling: false,
|
|
66
|
+
query: _this.query,
|
|
55
67
|
currentPage: _this.props.currentPage || 1,
|
|
56
68
|
dataRemapped: !_this.props.showBI || !_this.props.brandInsightAd,
|
|
69
|
+
lastDataSize: _this.data ? _this.data.length : 0,
|
|
57
70
|
itemsPerPage: _this.params ? _this.params.to - _this.params.from : 2,
|
|
58
71
|
mobileView: false
|
|
59
|
-
}, _this.
|
|
72
|
+
}, _this.loadMore = debounce_1(function () {
|
|
73
|
+
_this.setState(function (state) {
|
|
74
|
+
var page = state.page,
|
|
75
|
+
from = state.from,
|
|
76
|
+
to = state.to,
|
|
77
|
+
itemsPerPage = state.itemsPerPage;
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
page: page + 1,
|
|
81
|
+
from: from + itemsPerPage,
|
|
82
|
+
to: to + itemsPerPage
|
|
83
|
+
};
|
|
84
|
+
}, _this.loadData);
|
|
85
|
+
}, 0), _this.loadData = function () {
|
|
86
|
+
var _this$state = _this.state,
|
|
87
|
+
from = _this$state.from,
|
|
88
|
+
to = _this$state.to,
|
|
89
|
+
data = _this$state.data,
|
|
90
|
+
query = _this$state.query,
|
|
91
|
+
page = _this$state.page;
|
|
60
92
|
var _this$props = _this.props,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
var path = router.asPath;
|
|
65
|
-
var qrIndex = path.indexOf('?');
|
|
66
|
-
var pathname = router.pathname;
|
|
67
|
-
var queryString = '';
|
|
93
|
+
client = _this$props.client,
|
|
94
|
+
dataHandler = _this$props.dataHandler;
|
|
68
95
|
|
|
69
|
-
if (qrIndex > 0) {
|
|
70
|
-
path = path.substring(1, qrIndex);
|
|
71
96
|
|
|
72
|
-
|
|
73
|
-
var partialQSArr = partialQS.split('&');
|
|
97
|
+
var params = _extends({}, _this.props.params, { from: from, to: to + 1 });
|
|
74
98
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
queryString += (queryString.length === 0 ? '' : '&') + key + '=' + val;
|
|
99
|
+
if (dataHandler) {
|
|
100
|
+
var dataHandlerPromise = new _Promise(function (resolve, reject) {
|
|
101
|
+
try {
|
|
102
|
+
var result = dataHandler(params);
|
|
103
|
+
resolve(result);
|
|
104
|
+
} catch (e) {
|
|
105
|
+
reject(e);
|
|
83
106
|
}
|
|
84
107
|
});
|
|
108
|
+
dataHandlerPromise.then(function (dataArr) {
|
|
109
|
+
_this.loadDataFinished(data, dataArr, page);
|
|
110
|
+
});
|
|
111
|
+
} else {
|
|
112
|
+
client.fetch(query, params).then(function (dataArr) {
|
|
113
|
+
_this.loadDataFinished(data, dataArr, page);
|
|
114
|
+
});
|
|
85
115
|
}
|
|
86
|
-
|
|
87
|
-
if (
|
|
88
|
-
|
|
116
|
+
}, _this.loadDataFinished = function (data, dataArr, page) {
|
|
117
|
+
if (_this.pointer && _this.pointerArray) {
|
|
118
|
+
var pointer = _this.pointer;
|
|
119
|
+
dataArr = dataArr[_this.pointerArray][pointer];
|
|
89
120
|
}
|
|
90
121
|
|
|
91
|
-
|
|
122
|
+
if (dataArr && dataArr.length > 0) {
|
|
123
|
+
var itemsPerPage = _this.state.itemsPerPage;
|
|
124
|
+
|
|
125
|
+
var scrolling = dataArr.length === itemsPerPage + 1;
|
|
126
|
+
dataArr = dataArr.slice(0, itemsPerPage).map(function (item) {
|
|
127
|
+
return _extends({}, item, {
|
|
128
|
+
pageNumber: page
|
|
129
|
+
});
|
|
130
|
+
});
|
|
92
131
|
|
|
93
|
-
|
|
94
|
-
|
|
132
|
+
_this.setState({
|
|
133
|
+
data: [].concat(_toConsumableArray(data), _toConsumableArray(dataArr)),
|
|
134
|
+
lastDataSize: dataArr.length,
|
|
135
|
+
scrolling: scrolling
|
|
136
|
+
});
|
|
137
|
+
} else {
|
|
138
|
+
_this.setState({
|
|
139
|
+
scrolling: false,
|
|
140
|
+
lastDataSize: 0
|
|
141
|
+
});
|
|
95
142
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
143
|
+
}, _this.checkMoreDataAvailable = function () {
|
|
144
|
+
var _this$state2 = _this.state,
|
|
145
|
+
from = _this$state2.from,
|
|
146
|
+
itemsPerPage = _this$state2.itemsPerPage,
|
|
147
|
+
query = _this$state2.query;
|
|
148
|
+
var _this$props2 = _this.props,
|
|
149
|
+
client = _this$props2.client,
|
|
150
|
+
dataHandler = _this$props2.dataHandler;
|
|
151
|
+
|
|
152
|
+
var params = _extends({}, _this.props.params, { from: from + itemsPerPage, to: from + itemsPerPage + 1 });
|
|
153
|
+
if (dataHandler) {
|
|
154
|
+
var dataHandlerPromise = new _Promise(function (resolve, reject) {
|
|
155
|
+
try {
|
|
156
|
+
var result = dataHandler(params);
|
|
157
|
+
resolve(result);
|
|
158
|
+
} catch (e) {
|
|
159
|
+
reject(e);
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
dataHandlerPromise.then(function (dataArr) {
|
|
163
|
+
if (dataArr && dataArr.length > 0) _this.setState({ scrolling: true });else _this.setState({ scrolling: false });
|
|
164
|
+
});
|
|
165
|
+
} else {
|
|
166
|
+
client.fetch(query, params).then(function (dataArr) {
|
|
167
|
+
if (dataArr && dataArr.length > 0) _this.setState({ scrolling: true });else _this.setState({ scrolling: false });
|
|
168
|
+
});
|
|
103
169
|
}
|
|
170
|
+
}, _this.changePageNumber = function (pageNumber) {
|
|
171
|
+
var _this$props3 = _this.props,
|
|
172
|
+
seoPaginate = _this$props3.seoPaginate,
|
|
173
|
+
pageview = _this$props3.pageview,
|
|
174
|
+
router = _this$props3.router;
|
|
175
|
+
var currentPage = _this.state.currentPage;
|
|
176
|
+
|
|
177
|
+
if (seoPaginate) {
|
|
178
|
+
var path = router.asPath;
|
|
179
|
+
var qrIndex = path.indexOf('?');
|
|
180
|
+
var pathname = router.pathname;
|
|
181
|
+
var queryString = '';
|
|
182
|
+
|
|
183
|
+
if (qrIndex > 0) {
|
|
184
|
+
path = path.substring(1, qrIndex);
|
|
185
|
+
|
|
186
|
+
var partialQS = router.asPath.substring(qrIndex + 1);
|
|
187
|
+
var partialQSArr = partialQS.split('&');
|
|
188
|
+
|
|
189
|
+
// exclude page=xxx from query string
|
|
190
|
+
partialQSArr.map(function (item) {
|
|
191
|
+
var itemArr = item.split('=');
|
|
192
|
+
var key = itemArr[0];
|
|
193
|
+
var val = itemArr[1];
|
|
194
|
+
|
|
195
|
+
if (key !== 'page') {
|
|
196
|
+
queryString += (queryString.length === 0 ? '' : '&') + key + '=' + val;
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
}
|
|
104
200
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
pageNumber: pageNumber,
|
|
109
|
-
pathname: pathname,
|
|
110
|
-
path: path,
|
|
111
|
-
newPath: newPath,
|
|
112
|
-
firstPage: pageNumber === 1,
|
|
113
|
-
queryString: queryString
|
|
114
|
-
}) */
|
|
115
|
-
|
|
116
|
-
if (pageview) {
|
|
117
|
-
pageview(newPath);
|
|
118
|
-
}
|
|
201
|
+
if (queryString.length > 0) {
|
|
202
|
+
path += '?' + queryString;
|
|
203
|
+
}
|
|
119
204
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
205
|
+
pageNumber = parseInt(pageNumber);
|
|
206
|
+
|
|
207
|
+
if (currentPage !== pageNumber) {
|
|
208
|
+
lib_3.refresh();
|
|
209
|
+
|
|
210
|
+
_this.setState({
|
|
211
|
+
currentPage: pageNumber
|
|
212
|
+
}, function () {
|
|
213
|
+
if (path[0] !== '/') {
|
|
214
|
+
path = '/' + path;
|
|
215
|
+
}
|
|
216
|
+
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
217
|
+
if (window.location.href.includes('?')) {
|
|
218
|
+
if (window.location.href.includes('?page')) {
|
|
219
|
+
newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
220
|
+
} else {
|
|
221
|
+
newPath = pageNumber === 1 ? '' + path : path + '&page=' + pageNumber;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// please leave this for later debug purpose : Yong Jun.
|
|
226
|
+
/* console.log('page change reported', {
|
|
227
|
+
currentPage: currentPage,
|
|
228
|
+
pageNumber: pageNumber,
|
|
229
|
+
pathname: pathname,
|
|
230
|
+
path: path,
|
|
231
|
+
newPath: newPath,
|
|
232
|
+
firstPage: pageNumber === 1,
|
|
233
|
+
queryString: queryString
|
|
234
|
+
}) */
|
|
235
|
+
|
|
236
|
+
if (pageview) {
|
|
237
|
+
pageview(newPath);
|
|
238
|
+
}
|
|
128
239
|
|
|
240
|
+
router.push(pathname, newPath, {
|
|
241
|
+
shallow: true
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}, _this.cardLoader = function (page, columns, variant, brandInsightAd, showBI, lgInfeedAd) {
|
|
129
247
|
var numberOfItemsBeforeAd = 6;
|
|
130
248
|
var data = _this.state.data;
|
|
131
249
|
var insertBrandInsightAd = function insertBrandInsightAd(arr, index, newElement) {
|
|
@@ -184,6 +302,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
184
302
|
content_placement: brandInsightAd.targeting.content_placement,
|
|
185
303
|
document_url: brandInsightAd.targeting.document_url,
|
|
186
304
|
rootDocumentGroup: brandInsightAd.targeting.rootDocumentGroup
|
|
305
|
+
|
|
187
306
|
},
|
|
188
307
|
_type: 'brandInsightAd',
|
|
189
308
|
/* Passing refresh flag */
|
|
@@ -206,44 +325,63 @@ var MasterDeck = function (_React$Component) {
|
|
|
206
325
|
}
|
|
207
326
|
});
|
|
208
327
|
|
|
209
|
-
return
|
|
328
|
+
return React.createElement(
|
|
210
329
|
'div',
|
|
211
330
|
null,
|
|
212
331
|
data && _this.state.dataRemapped && data.length > 0 ? // If JS enabled and Data remapped with ads
|
|
213
332
|
data.map(function (row, index) {
|
|
333
|
+
var pageNumber = row.pageNumber || _this.state.page;
|
|
334
|
+
|
|
214
335
|
if (row._type === 'lg-infeed' && row.adUnit) {
|
|
215
|
-
return
|
|
336
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
216
337
|
// Returning view for infeed Ad
|
|
217
338
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
218
|
-
return
|
|
339
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
219
340
|
} else if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
|
|
220
341
|
// Returning view for articles
|
|
221
|
-
return
|
|
222
|
-
|
|
223
|
-
{
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
342
|
+
return React.createElement(
|
|
343
|
+
VisibilitySensor,
|
|
344
|
+
{
|
|
345
|
+
key: row._id ? row._id : index,
|
|
346
|
+
onChange: function onChange(isVisible) {
|
|
347
|
+
isVisible && _this.changePageNumber(pageNumber);
|
|
348
|
+
} },
|
|
349
|
+
React.createElement(
|
|
350
|
+
React.Fragment,
|
|
351
|
+
{ key: index },
|
|
352
|
+
React.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding }),
|
|
353
|
+
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React.createElement(
|
|
354
|
+
'div',
|
|
355
|
+
{ className: 'ad-container', style: { margin: '0 auto' } },
|
|
356
|
+
_this.renderMobileAd(index, numberOfItemsBeforeAd, _this.rightItems)
|
|
357
|
+
)
|
|
229
358
|
)
|
|
230
359
|
);
|
|
231
360
|
} else {
|
|
232
361
|
return null;
|
|
233
362
|
}
|
|
234
|
-
}) : data && data.length > 0 ? //
|
|
363
|
+
}) : data && data.length > 0 ? //For Javascript Disabled Cases. data is not remapped if JS is disabled.
|
|
235
364
|
data.map(function (row, index) {
|
|
365
|
+
var pageNumber = row.pageNumber || _this.state.page;
|
|
236
366
|
if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
|
|
237
|
-
return
|
|
238
|
-
|
|
239
|
-
{
|
|
240
|
-
|
|
367
|
+
return React.createElement(
|
|
368
|
+
VisibilitySensor,
|
|
369
|
+
{
|
|
370
|
+
key: row._id ? row._id : index,
|
|
371
|
+
onChange: function onChange(isVisible) {
|
|
372
|
+
isVisible && _this.changePageNumber(pageNumber);
|
|
373
|
+
} },
|
|
374
|
+
React.createElement(
|
|
375
|
+
React.Fragment,
|
|
376
|
+
{ key: index },
|
|
377
|
+
React.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding })
|
|
378
|
+
)
|
|
241
379
|
);
|
|
242
380
|
}
|
|
243
|
-
}) :
|
|
381
|
+
}) : React.createElement(
|
|
244
382
|
'div',
|
|
245
383
|
null,
|
|
246
|
-
|
|
384
|
+
React.createElement(
|
|
247
385
|
'em',
|
|
248
386
|
null,
|
|
249
387
|
'New content coming soon, please check back later.'
|
|
@@ -252,100 +390,58 @@ var MasterDeck = function (_React$Component) {
|
|
|
252
390
|
);
|
|
253
391
|
}, _this.renderMobileAd = function (index, numberOfItemsBeforeAd, rightItems) {
|
|
254
392
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
255
|
-
return
|
|
393
|
+
return React.createElement(
|
|
256
394
|
'div',
|
|
257
395
|
{ className: 'ad-container', style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
|
|
258
396
|
rightItems[i].component
|
|
259
397
|
);
|
|
260
|
-
}, _this.
|
|
261
|
-
var
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
_this.setState({ isDataLoading: true });
|
|
272
|
-
document.body.scrollTop = 0;
|
|
273
|
-
document.documentElement.scrollTop = 0;
|
|
274
|
-
start = (selectedPage - 1) * itemsPerPage;
|
|
275
|
-
newParams = _extends({}, params, {
|
|
276
|
-
from: start,
|
|
277
|
-
to: start + itemsPerPage
|
|
278
|
-
});
|
|
279
|
-
dataHandlerPromise = null;
|
|
280
|
-
|
|
281
|
-
if (dataHandler) {
|
|
282
|
-
dataHandlerPromise = new _Promise(function (resolve, reject) {
|
|
283
|
-
try {
|
|
284
|
-
var result = dataHandler(newParams);
|
|
285
|
-
resolve(result);
|
|
286
|
-
} catch (e) {
|
|
287
|
-
reject(e);
|
|
288
|
-
}
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
_context.prev = 9;
|
|
293
|
-
|
|
294
|
-
if (!dataHandlerPromise) {
|
|
295
|
-
_context.next = 16;
|
|
296
|
-
break;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
_context.next = 13;
|
|
300
|
-
return dataHandlerPromise;
|
|
301
|
-
|
|
302
|
-
case 13:
|
|
303
|
-
_context.t0 = _context.sent;
|
|
304
|
-
_context.next = 19;
|
|
305
|
-
break;
|
|
306
|
-
|
|
307
|
-
case 16:
|
|
308
|
-
_context.next = 18;
|
|
309
|
-
return client.fetch(query, newParams);
|
|
310
|
-
|
|
311
|
-
case 18:
|
|
312
|
-
_context.t0 = _context.sent;
|
|
313
|
-
|
|
314
|
-
case 19:
|
|
315
|
-
newData = _context.t0;
|
|
316
|
-
|
|
317
|
-
if (_this.pointer && _this.pointerArray) newData = newData[_this.pointerArray][_this.pointer];
|
|
318
|
-
if (newData && newData.length > 0) {
|
|
319
|
-
_this.setState({ isDataLoading: false, data: newData, currentPage: selectedPage });
|
|
320
|
-
seoPaginate && _this.seoPagination(selectedPage);
|
|
321
|
-
lib_3.refresh();
|
|
322
|
-
}
|
|
323
|
-
_context.next = 27;
|
|
324
|
-
break;
|
|
325
|
-
|
|
326
|
-
case 24:
|
|
327
|
-
_context.prev = 24;
|
|
328
|
-
_context.t1 = _context['catch'](9);
|
|
329
|
-
|
|
330
|
-
console.error(_context.t1);
|
|
331
|
-
|
|
332
|
-
case 27:
|
|
333
|
-
case 'end':
|
|
334
|
-
return _context.stop();
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}, _callee, _this2, [[9, 24]]);
|
|
338
|
-
}));
|
|
398
|
+
}, _this.renderManualPagination = function () {
|
|
399
|
+
var _this$state3 = _this.state,
|
|
400
|
+
currentPage = _this$state3.currentPage,
|
|
401
|
+
itemsPerPage = _this$state3.itemsPerPage,
|
|
402
|
+
lastDataSize = _this$state3.lastDataSize;
|
|
403
|
+
|
|
404
|
+
console.log('lastDataSize:', lastDataSize);
|
|
405
|
+
console.log('itemsPerPage:', itemsPerPage);
|
|
406
|
+
if (lastDataSize < itemsPerPage) {
|
|
407
|
+
return null;
|
|
408
|
+
}
|
|
339
409
|
|
|
340
|
-
return
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
410
|
+
return React.createElement(
|
|
411
|
+
'div',
|
|
412
|
+
{ className: 'd-flex justify-content-between' },
|
|
413
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
414
|
+
'a',
|
|
415
|
+
{ href: '?page=' + (currentPage - 1) },
|
|
416
|
+
'<< Previous'
|
|
417
|
+
),
|
|
418
|
+
React.createElement(
|
|
419
|
+
'a',
|
|
420
|
+
{ href: '?page=' + (currentPage + 1) },
|
|
421
|
+
'Next >>'
|
|
422
|
+
)
|
|
423
|
+
);
|
|
424
|
+
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
344
425
|
}
|
|
345
426
|
|
|
346
427
|
_createClass(MasterDeck, [{
|
|
347
428
|
key: 'componentDidUpdate',
|
|
348
429
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
430
|
+
if (this.state.dataKeptToCompareNewDatarecord !== this.props.dataRecord) {
|
|
431
|
+
// eslint-disable-next-line react/no-did-update-set-state
|
|
432
|
+
this.setState({
|
|
433
|
+
data: this.props.dataRecord,
|
|
434
|
+
dataKeptToCompareNewDatarecord: this.props.dataRecord,
|
|
435
|
+
per: this.props.params ? this.props.params.to : 2,
|
|
436
|
+
page: 1,
|
|
437
|
+
from: this.props.params ? this.props.params.from : 0,
|
|
438
|
+
to: this.props.params ? this.props.params.to : 2,
|
|
439
|
+
total_pages: null,
|
|
440
|
+
scrolling: true,
|
|
441
|
+
query: this.props.query,
|
|
442
|
+
lastDataSize: this.props.dataRecord ? this.props.dataRecord.length : 0
|
|
443
|
+
});
|
|
444
|
+
}
|
|
349
445
|
// set dataRemap to true as there are no infeed or BI ads or window width is less than limit
|
|
350
446
|
if (typeof window !== 'undefined' && (!this.props.lgInfeedAd || !this.props.brandInsightAd || window.innerWidth < 1400) && !this.state.dataRemapped) {
|
|
351
447
|
!this.state.dataRemapped && this.setState({ dataRemapped: true });
|
|
@@ -355,58 +451,89 @@ var MasterDeck = function (_React$Component) {
|
|
|
355
451
|
!this.state.mobileView && this.setState({ mobileView: true });
|
|
356
452
|
}
|
|
357
453
|
}
|
|
454
|
+
}, {
|
|
455
|
+
key: 'componentDidMount',
|
|
456
|
+
value: function componentDidMount() {
|
|
457
|
+
var _state = this.state,
|
|
458
|
+
data = _state.data,
|
|
459
|
+
itemsPerPage = _state.itemsPerPage;
|
|
460
|
+
|
|
461
|
+
if (!(data.length < itemsPerPage)) this.checkMoreDataAvailable();
|
|
462
|
+
}
|
|
358
463
|
// Passing 'brandInsightAd','showBI' and 'lgInfeedAd'
|
|
359
464
|
|
|
360
465
|
}, {
|
|
361
466
|
key: 'render',
|
|
362
467
|
value: function render() {
|
|
468
|
+
var _this3 = this;
|
|
469
|
+
|
|
363
470
|
// Setting default value for 'showBI' and 'lgInfeedAd'
|
|
364
471
|
var _props = this.props,
|
|
472
|
+
columns = _props.columns,
|
|
365
473
|
variant = _props.variant,
|
|
474
|
+
autoScroll = _props.autoScroll,
|
|
475
|
+
page = _props.page,
|
|
366
476
|
brandInsightAd = _props.brandInsightAd,
|
|
367
477
|
_props$showBI = _props.showBI,
|
|
368
478
|
showBI = _props$showBI === undefined ? false : _props$showBI,
|
|
369
479
|
_props$lgInfeedAd = _props.lgInfeedAd,
|
|
370
|
-
lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd
|
|
371
|
-
totalDataCount = _props.totalDataCount;
|
|
372
|
-
var _state = this.state,
|
|
373
|
-
itemsPerPage = _state.itemsPerPage,
|
|
374
|
-
currentPage = _state.currentPage,
|
|
375
|
-
isDataLoading = _state.isDataLoading;
|
|
480
|
+
lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd;
|
|
376
481
|
|
|
377
|
-
return
|
|
482
|
+
return React.createElement(
|
|
378
483
|
'div',
|
|
379
484
|
{ className: 'contentDeck' },
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
{
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
485
|
+
autoScroll ? React.createElement(
|
|
486
|
+
React.Fragment,
|
|
487
|
+
null,
|
|
488
|
+
React.createElement(
|
|
489
|
+
InfiniteScroll,
|
|
490
|
+
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
491
|
+
React.createElement(
|
|
492
|
+
Container,
|
|
493
|
+
null,
|
|
494
|
+
this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
|
|
390
495
|
)
|
|
496
|
+
),
|
|
497
|
+
React.createElement(
|
|
498
|
+
'noscript',
|
|
499
|
+
null,
|
|
500
|
+
this.renderManualPagination()
|
|
391
501
|
)
|
|
392
|
-
) :
|
|
393
|
-
|
|
502
|
+
) : React.createElement(
|
|
503
|
+
React.Fragment,
|
|
394
504
|
null,
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
505
|
+
React.createElement(
|
|
506
|
+
Container,
|
|
507
|
+
null,
|
|
508
|
+
this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
|
|
509
|
+
),
|
|
510
|
+
React.createElement(
|
|
511
|
+
'div',
|
|
512
|
+
{ style: { padding: '0px 10px' } },
|
|
513
|
+
this.state.scrolling && React.createElement(
|
|
514
|
+
'button',
|
|
515
|
+
{
|
|
516
|
+
className: 'btn',
|
|
517
|
+
style: {
|
|
518
|
+
margin: '0 auto 2rem',
|
|
519
|
+
display: 'block',
|
|
520
|
+
fontSize: '18px',
|
|
521
|
+
padding: '.5rem 1.5rem',
|
|
522
|
+
boxShadow: '1px 2px 4px 4px rgba(0,0,0,.15)',
|
|
523
|
+
background: 'var(--primary)',
|
|
524
|
+
color: '#fff',
|
|
525
|
+
borderRadius: '5px'
|
|
526
|
+
},
|
|
527
|
+
onClick: function onClick(e) {
|
|
528
|
+
_this3.loadMore();
|
|
529
|
+
} },
|
|
530
|
+
'Load More'
|
|
531
|
+
)
|
|
532
|
+
),
|
|
533
|
+
React.createElement(
|
|
534
|
+
'noscript',
|
|
535
|
+
null,
|
|
536
|
+
this.renderManualPagination()
|
|
410
537
|
)
|
|
411
538
|
)
|
|
412
539
|
);
|
|
@@ -414,7 +541,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
414
541
|
}]);
|
|
415
542
|
|
|
416
543
|
return MasterDeck;
|
|
417
|
-
}(
|
|
544
|
+
}(React.Component);
|
|
418
545
|
|
|
419
546
|
var MasterDeck$1 = withRouter(MasterDeck);
|
|
420
547
|
|