@mjhls/mjh-framework 1.0.702 → 1.0.703-testing-module-splitting
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 +172 -172
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +27 -27
- package/dist/cjs/AD300x250x600.js +27 -27
- package/dist/cjs/AD728x90.js +30 -30
- package/dist/cjs/ADFloatingFooter.js +33 -33
- package/dist/cjs/ADFooter.js +16 -14
- package/dist/cjs/ADGutter.js +30 -30
- package/dist/cjs/{ADInfeed-ede153e2.js → ADInfeed-d36dc3ca.js} +13 -11
- package/dist/cjs/ADSkyscraper.js +30 -30
- package/dist/cjs/ADSponsoredResources.js +30 -30
- package/dist/cjs/ADWebcast.js +30 -30
- package/dist/cjs/ADWelcome.js +34 -34
- package/dist/cjs/{ADlgInfeed-6a121a0d.js → ADlgInfeed-93205fa0.js} +9 -8
- package/dist/cjs/AccordionPanel.js +32 -29
- package/dist/cjs/AdSlot.js +35 -35
- package/dist/cjs/AdSlotsProvider.js +8 -9
- package/dist/cjs/AlphabeticList.js +27 -25
- package/dist/cjs/ArticleCarousel.js +24 -25
- package/dist/cjs/ArticleSeriesListing.js +61 -62
- package/dist/cjs/Auth.js +154 -149
- package/dist/cjs/{AuthorComponent-d19285ed.js → AuthorComponent-482218ce.js} +14 -13
- package/dist/cjs/Beam.js +21 -20
- package/dist/cjs/{BlockContent-e53217a7.js → BlockContent-eca358e4.js} +27 -24
- package/dist/cjs/Breadcrumbs.js +30 -27
- package/dist/cjs/BrowseVideosListing.js +42 -43
- package/dist/cjs/CMEDeck.js +83 -85
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +37 -35
- package/dist/cjs/Column3.js +60 -58
- package/dist/cjs/ConferenceArticleCard.js +38 -37
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +109 -107
- package/dist/cjs/DeckQueue.js +95 -93
- package/dist/cjs/{Dfp-13ff07b4.js → Dfp-80c3d853.js} +34 -35
- package/dist/cjs/EventsDeck.js +164 -157
- package/dist/cjs/ExternalResources.js +77 -78
- package/dist/cjs/Feature.js +26 -25
- package/dist/cjs/ForbesHero.js +42 -43
- package/dist/cjs/GridContent.js +187 -185
- package/dist/cjs/GridHero.js +44 -45
- package/dist/cjs/GroupDeck.js +54 -52
- package/dist/cjs/HamMagazine.js +143 -139
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/IssueContentDeck.js +78 -75
- package/dist/cjs/IssueDeck.js +77 -74
- package/dist/cjs/IssueLanding.js +73 -74
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +41 -40
- package/dist/cjs/MasterDeck.js +87 -88
- package/dist/cjs/NavDvm.js +81 -75
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +152 -148
- package/dist/cjs/NavNative.js +131 -124
- package/dist/cjs/NavNormal.js +54 -48
- package/dist/cjs/OncliveHero.js +20 -19
- package/dist/cjs/OncliveLargeHero.js +68 -69
- package/dist/cjs/PageFilter.js +16 -14
- package/dist/cjs/PartnerDetailListing.js +112 -113
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +22 -19
- package/dist/cjs/PublicationDeck.js +68 -66
- package/dist/cjs/PublicationLanding.js +146 -144
- package/dist/cjs/QueueDeckExpanded.js +298 -300
- package/dist/cjs/RecentNews.js +24 -23
- package/dist/cjs/RelatedContent.js +53 -55
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +23 -18
- package/dist/cjs/Segment.js +21 -20
- package/dist/cjs/SetCookie.js +2 -2
- package/dist/cjs/SideFooter.js +41 -41
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-1ef1e6fb.js → SocialSearchComponent-a49e8e9d.js} +36 -32
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +64 -61
- package/dist/cjs/TemplateNormal.js +78 -78
- package/dist/cjs/ThumbnailCard.js +22 -23
- package/dist/cjs/Ustream.js +27 -26
- package/dist/cjs/VerticalHero.js +18 -17
- package/dist/cjs/VideoSeriesCard.js +35 -36
- package/dist/cjs/VideoSeriesFilter.js +22 -21
- package/dist/cjs/VideoSeriesListing.js +76 -77
- package/dist/cjs/View.js +229 -228
- package/dist/cjs/YahooHero.js +41 -42
- package/dist/cjs/YoutubeGroup.js +73 -74
- package/dist/cjs/{_export-a917dedd.js → _export-7e018e14.js} +17 -161
- package/dist/cjs/{_is-array-a82382b4.js → _is-array-4c61cfba.js} +17 -16
- package/dist/cjs/{_iter-detect-671c90bd.js → _iter-detect-2a826637.js} +10 -10
- package/dist/cjs/{_library-4360b4e4.js → _library-dd23b178.js} +1 -1
- package/dist/cjs/{_object-pie-6bed508e.js → _object-pie-68c5bcbc.js} +2 -2
- package/dist/cjs/_object-sap-4ac28868.js +16 -0
- package/dist/cjs/{_set-species-47156c42.js → _set-species-d088ff6e.js} +18 -17
- package/dist/cjs/_to-object-233fc5c9.js +149 -0
- package/dist/cjs/{asyncToGenerator-fd8e35e7.js → asyncToGenerator-7ca8f87e.js} +72 -71
- package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-a195642e.js} +7 -6
- package/dist/cjs/core.get-iterator-method-14f49e03.js +40 -0
- package/dist/cjs/{debounce-fb3a46a9.js → debounce-eb287781.js} +7 -7
- package/dist/cjs/{define-property-9b6df20e.js → define-property-fd46a81e.js} +4 -4
- package/dist/cjs/{defineProperty-d3c0cfc0.js → defineProperty-edc12c5a.js} +2 -2
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{es6.string.iterator-e5f4ce45.js → es6.string.iterator-a390d61f.js} +36 -35
- package/dist/cjs/{extends-5fde0677.js → extends-0a166456.js} +12 -11
- package/dist/cjs/{get-70ef997d.js → get-68c52cb1.js} +11 -11
- package/dist/cjs/getRelatedArticle.js +22 -21
- package/dist/cjs/getSerializers.js +42 -44
- package/dist/cjs/getSeriesDetail.js +1 -1
- package/dist/cjs/{getTargeting-5ca9bfaf.js → getTargeting-57edbc60.js} +11 -11
- package/dist/cjs/getTargeting.js +9 -8
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-b1ee7cd9.js → index-0e3597c2.js} +423 -418
- package/dist/cjs/{index-d7577df6.js → index-5ad2b070.js} +14 -11
- package/dist/cjs/{index-29e3f3a9.js → index-80f57cff.js} +19 -16
- package/dist/cjs/{index-949261b4.js → index-cb6ed1fc.js} +4 -4
- package/dist/cjs/{index-ff69979f.js → index-d48b231c.js} +3 -3
- package/dist/cjs/{index.es-e9d84959.js → index.es-f3e47207.js} +8 -7
- package/dist/cjs/{index.esm-8a8fa078.js → index.esm-8123cf40.js} +18 -17
- package/dist/cjs/index.js +9 -264
- package/dist/cjs/{inherits-02a27fbf.js → inherits-a9209207.js} +19 -18
- package/dist/cjs/{isSymbol-a0d5eb50.js → isSymbol-04666465.js} +5 -5
- package/dist/cjs/{js.cookie-e4684873.js → js.cookie-a511c430.js} +1 -1
- package/dist/cjs/{keys-1a65eb47.js → keys-d2f5bcf0.js} +6 -5
- package/dist/cjs/{lodash-257df6c4.js → lodash-4ef21f0f.js} +2 -2
- package/dist/cjs/{main-1442052b.js → main-eeffe77b.js} +70 -67
- package/dist/cjs/{moment-29403f08.js → moment-aca40de1.js} +1 -2
- package/dist/cjs/{react-social-icons-5604d0d1.js → react-social-icons-af932527.js} +29 -26
- package/dist/cjs/{slicedToArray-d0ac47b9.js → slicedToArray-60dafa9c.js} +10 -10
- package/dist/cjs/{smoothscroll-03c20c7d.js → smoothscroll-1abb448e.js} +2 -2
- package/dist/cjs/{stringify-e064b7d0.js → stringify-44244c64.js} +2 -2
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d47f0c64.js → toConsumableArray-4bb00640.js} +14 -13
- package/dist/cjs/{typeof-5763a25b.js → typeof-03c3fdc8.js} +85 -84
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-ede0bc7b.js → visibility-sensor-8b54af99.js} +8 -5
- package/dist/cjs/{web.dom.iterable-cd8a9ccb.js → web.dom.iterable-2d47ebe6.js} +11 -10
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +23 -24
- package/dist/esm/AD300x250x600.js +23 -24
- package/dist/esm/AD728x90.js +26 -27
- package/dist/esm/ADFloatingFooter.js +29 -30
- package/dist/esm/ADFooter.js +12 -11
- package/dist/esm/ADGutter.js +26 -27
- package/dist/esm/{ADInfeed-d890d5ca.js → ADInfeed-bf7de12d.js} +8 -8
- package/dist/esm/ADSkyscraper.js +26 -27
- package/dist/esm/ADSponsoredResources.js +26 -27
- package/dist/esm/ADWebcast.js +26 -27
- package/dist/esm/ADWelcome.js +30 -31
- package/dist/esm/{ADlgInfeed-1d006b36.js → ADlgInfeed-3ac04591.js} +7 -7
- package/dist/esm/AccordionPanel.js +25 -24
- package/dist/esm/AdSlot.js +26 -27
- package/dist/esm/AdSlotsProvider.js +4 -6
- package/dist/esm/AlphabeticList.js +23 -22
- package/dist/esm/ArticleCarousel.js +20 -22
- package/dist/esm/ArticleSeriesListing.js +55 -57
- package/dist/esm/Auth.js +135 -134
- package/dist/esm/{AuthorComponent-8ffb1deb.js → AuthorComponent-22790017.js} +11 -11
- package/dist/esm/Beam.js +21 -20
- package/dist/esm/{BlockContent-e6f64e62.js → BlockContent-d8cd739c.js} +21 -23
- package/dist/esm/Breadcrumbs.js +18 -17
- package/dist/esm/BrowseVideosListing.js +38 -40
- package/dist/esm/CMEDeck.js +80 -82
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +28 -29
- package/dist/esm/Column3.js +50 -51
- package/dist/esm/ConferenceArticleCard.js +33 -33
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +86 -88
- package/dist/esm/DeckQueue.js +69 -71
- package/dist/esm/{Dfp-7db56716.js → Dfp-08279047.js} +23 -25
- package/dist/esm/EventsDeck.js +120 -120
- package/dist/esm/ExternalResources.js +71 -73
- package/dist/esm/Feature.js +17 -18
- package/dist/esm/ForbesHero.js +35 -37
- package/dist/esm/GridContent.js +145 -147
- package/dist/esm/GridHero.js +37 -39
- package/dist/esm/GroupDeck.js +49 -48
- package/dist/esm/HamMagazine.js +111 -112
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +50 -52
- package/dist/esm/IssueDeck.js +47 -49
- package/dist/esm/IssueLanding.js +69 -71
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +35 -36
- package/dist/esm/MasterDeck.js +80 -82
- package/dist/esm/NavDvm.js +58 -57
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +122 -123
- package/dist/esm/NavNative.js +99 -100
- package/dist/esm/NavNormal.js +36 -35
- package/dist/esm/OncliveHero.js +16 -16
- package/dist/esm/OncliveLargeHero.js +60 -62
- package/dist/esm/PageFilter.js +13 -12
- package/dist/esm/PartnerDetailListing.js +107 -109
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +15 -14
- package/dist/esm/PublicationDeck.js +40 -43
- package/dist/esm/PublicationLanding.js +123 -125
- package/dist/esm/QueueDeckExpanded.js +278 -280
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +47 -50
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +13 -12
- package/dist/esm/Segment.js +21 -20
- package/dist/esm/SetCookie.js +2 -2
- package/dist/esm/SideFooter.js +36 -37
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-4eae0149.js → SocialSearchComponent-46ea0f4d.js} +24 -24
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +42 -44
- package/dist/esm/TemplateNormal.js +68 -69
- package/dist/esm/ThumbnailCard.js +13 -16
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesCard.js +27 -29
- package/dist/esm/VideoSeriesFilter.js +19 -18
- package/dist/esm/VideoSeriesListing.js +69 -71
- package/dist/esm/View.js +216 -219
- package/dist/esm/YahooHero.js +35 -37
- package/dist/esm/YoutubeGroup.js +57 -59
- package/dist/esm/{_export-f7ec2adf.js → _export-9029ebab.js} +2 -133
- package/dist/esm/{_is-array-5bea6006.js → _is-array-46713c19.js} +16 -15
- package/dist/esm/{_iter-detect-65720de7.js → _iter-detect-60cd145f.js} +8 -8
- package/dist/esm/_library-528f1934.js +3 -0
- package/dist/esm/{_object-pie-8e2f6c3a.js → _object-pie-33c40e79.js} +1 -1
- package/dist/esm/_object-sap-108a1939.js +14 -0
- package/dist/esm/{_set-species-26ee5c2a.js → _set-species-a4b3fe39.js} +15 -14
- package/dist/esm/_to-object-62924b74.js +135 -0
- package/dist/esm/{asyncToGenerator-0c61f551.js → asyncToGenerator-7714cea4.js} +72 -71
- package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-b43c695a.js} +3 -3
- package/dist/esm/core.get-iterator-method-6636b3ef.js +37 -0
- package/dist/esm/{debounce-7b569c00.js → debounce-1a993acf.js} +6 -6
- package/dist/esm/{define-property-7a40a451.js → define-property-f2d6f244.js} +4 -4
- package/dist/esm/{defineProperty-a2ac5d3d.js → defineProperty-69f06029.js} +2 -2
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{es6.string.iterator-13b94db0.js → es6.string.iterator-2efae22d.js} +29 -28
- package/dist/esm/{extends-8e0228d5.js → extends-f866c8d0.js} +12 -11
- package/dist/esm/{get-bb2155d5.js → get-5ee14cda.js} +10 -10
- package/dist/esm/getRelatedArticle.js +16 -15
- package/dist/esm/getSerializers.js +42 -44
- package/dist/esm/getSeriesDetail.js +1 -1
- package/dist/esm/{getTargeting-d97a1e83.js → getTargeting-5cdca4e1.js} +11 -11
- package/dist/esm/getTargeting.js +9 -8
- package/dist/esm/{index-f7fdcc91.js → index-3f5c03b2.js} +3 -3
- package/dist/esm/{index-4540328d.js → index-5db919a6.js} +382 -384
- package/dist/esm/{index-17490425.js → index-669ff425.js} +9 -11
- package/dist/esm/{index-1295881c.js → index-750a7380.js} +2 -2
- package/dist/esm/{index-a4e850af.js → index-752d1dae.js} +13 -16
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-3fdda599.js → index.esm-57f377a5.js} +1 -1
- package/dist/esm/{index.esm-4838a32e.js → index.esm-8016b507.js} +15 -15
- package/dist/esm/index.js +11 -176
- package/dist/esm/{inherits-d1948b66.js → inherits-75d6495f.js} +17 -16
- package/dist/esm/{isSymbol-2b7f6e65.js → isSymbol-807e927e.js} +1 -1
- package/dist/esm/{js.cookie-2ce24ab0.js → js.cookie-6874175c.js} +1 -1
- package/dist/esm/{keys-e091cb65.js → keys-78217618.js} +6 -5
- package/dist/esm/{lodash-2b866578.js → lodash-ad27652f.js} +2 -2
- package/dist/esm/{main-140f99b4.js → main-decc48f4.js} +66 -67
- package/dist/esm/{moment-8797a4d3.js → moment-bc12cb97.js} +2 -2
- package/dist/esm/{react-social-icons-40e8d28f.js → react-social-icons-91f9716f.js} +24 -26
- package/dist/esm/{slicedToArray-8818fe95.js → slicedToArray-fa9240c4.js} +10 -10
- package/dist/esm/{smoothscroll-2d74941c.js → smoothscroll-ab6e0238.js} +1 -1
- package/dist/esm/{stringify-dedf4a20.js → stringify-22907f56.js} +2 -2
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-02217419.js → toConsumableArray-bd01c637.js} +14 -13
- package/dist/esm/{typeof-a10a5616.js → typeof-668f30cd.js} +86 -85
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-7b6316cf.js → visibility-sensor-082c757b.js} +3 -5
- package/dist/esm/{web.dom.iterable-c3ba4d37.js → web.dom.iterable-89515070.js} +11 -10
- package/package.json +105 -105
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/_object-sap-947ef6fb.js +0 -16
- package/dist/cjs/_prop-types_commonjs-external-1a8c9893.js +0 -10
- package/dist/cjs/_react-dom_commonjs-external-3c49a59a.js +0 -9
- package/dist/cjs/_react_commonjs-external-58b78ee1.js +0 -10
- package/dist/cjs/core.get-iterator-method-07b02ac3.js +0 -39
- package/dist/esm/_library-90219a8d.js +0 -3
- package/dist/esm/_object-sap-146241c9.js +0 -14
- package/dist/esm/_prop-types_commonjs-external-9481d338.js +0 -5
- package/dist/esm/_react-dom_commonjs-external-f1a1ac81.js +0 -5
- package/dist/esm/_react_commonjs-external-22b61490.js +0 -5
- package/dist/esm/core.get-iterator-method-dbbb346b.js +0 -36
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -1,78 +1,76 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
3
|
+
import Breadcrumbs from './Breadcrumbs.js';
|
|
4
|
+
import './slicedToArray-fa9240c4.js';
|
|
1
5
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './es6.string.iterator-
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './extends-
|
|
10
|
-
import './
|
|
11
|
-
import
|
|
12
|
-
import './index-
|
|
6
|
+
import './web.dom.iterable-89515070.js';
|
|
7
|
+
import './es6.string.iterator-2efae22d.js';
|
|
8
|
+
import './_to-object-62924b74.js';
|
|
9
|
+
import './_export-9029ebab.js';
|
|
10
|
+
import './core.get-iterator-method-6636b3ef.js';
|
|
11
|
+
import './toConsumableArray-bd01c637.js';
|
|
12
|
+
import './_iter-detect-60cd145f.js';
|
|
13
|
+
import './extends-f866c8d0.js';
|
|
14
|
+
import './_object-pie-33c40e79.js';
|
|
15
|
+
import 'react-bootstrap';
|
|
16
|
+
import './index-3f5c03b2.js';
|
|
17
|
+
import './index.es-c6222053.js';
|
|
18
|
+
import './moment-bc12cb97.js';
|
|
19
|
+
import './visibility-sensor-082c757b.js';
|
|
20
|
+
import 'react-dom';
|
|
21
|
+
import './index-669ff425.js';
|
|
13
22
|
import 'prop-types';
|
|
14
|
-
import './_react_commonjs-external-22b61490.js';
|
|
15
|
-
import './_prop-types_commonjs-external-9481d338.js';
|
|
16
|
-
import 'react-bootstrap/Card';
|
|
17
|
-
import './moment-8797a4d3.js';
|
|
18
23
|
import 'next/router';
|
|
19
|
-
import './
|
|
20
|
-
import './
|
|
21
|
-
import './
|
|
22
|
-
import '
|
|
23
|
-
import './
|
|
24
|
-
import '
|
|
25
|
-
import './index-f7fdcc91.js';
|
|
26
|
-
import './index-a4e850af.js';
|
|
27
|
-
import './main-140f99b4.js';
|
|
28
|
-
import './entities-7cc3bf45.js';
|
|
29
|
-
import './stringify-dedf4a20.js';
|
|
30
|
-
import './slicedToArray-8818fe95.js';
|
|
31
|
-
import './asyncToGenerator-0c61f551.js';
|
|
32
|
-
import './_set-species-26ee5c2a.js';
|
|
33
|
-
import './Segment.js';
|
|
34
|
-
import './Beam.js';
|
|
24
|
+
import './index-752d1dae.js';
|
|
25
|
+
import './main-decc48f4.js';
|
|
26
|
+
import './entities-932b50cf.js';
|
|
27
|
+
import './ADInfeed-bf7de12d.js';
|
|
28
|
+
import './stringify-22907f56.js';
|
|
29
|
+
import 'react-bootstrap/Card';
|
|
35
30
|
import './AdSlot.js';
|
|
36
|
-
import './
|
|
37
|
-
import './
|
|
38
|
-
import './
|
|
31
|
+
import './debounce-1a993acf.js';
|
|
32
|
+
import './isSymbol-807e927e.js';
|
|
33
|
+
import './Beam.js';
|
|
34
|
+
import './asyncToGenerator-7714cea4.js';
|
|
35
|
+
import './_library-528f1934.js';
|
|
36
|
+
import './_set-species-a4b3fe39.js';
|
|
37
|
+
import './Segment.js';
|
|
38
|
+
import './AuthorComponent-22790017.js';
|
|
39
|
+
import './lodash-ad27652f.js';
|
|
40
|
+
import './ADlgInfeed-3ac04591.js';
|
|
39
41
|
import './getContentCategory-15dcc413.js';
|
|
40
|
-
import './AuthorComponent-8ffb1deb.js';
|
|
41
|
-
import 'react-bootstrap';
|
|
42
42
|
import './timeDifferenceCalc.js';
|
|
43
|
-
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
44
43
|
import 'react-bootstrap/Breadcrumb';
|
|
45
|
-
import Breadcrumbs from './Breadcrumbs.js';
|
|
46
44
|
|
|
47
|
-
/* usage
|
|
48
|
-
import Settings, { Ads } from '../../../../settings'
|
|
49
|
-
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
50
|
-
import client from '../../../../client'
|
|
51
|
-
import moment from 'moment'
|
|
52
|
-
import Shell from '../../../../components/2.0/Shell'
|
|
53
|
-
import { pageview } from '../../../../utilities/gtag'
|
|
54
|
-
|
|
55
|
-
const Issue = (props) => {
|
|
56
|
-
const { pubIssue, cache } = props
|
|
57
|
-
const targeting = {
|
|
58
|
-
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
59
|
-
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
60
|
-
}
|
|
61
|
-
return (
|
|
62
|
-
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
63
|
-
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
64
|
-
</Shell>
|
|
65
|
-
)
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
Issue.getInitialProps = async (ctx) => {
|
|
69
|
-
const { query } = ctx
|
|
70
|
-
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
71
|
-
)
|
|
72
|
-
return { pubIssue }
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export default Issue
|
|
45
|
+
/* usage
|
|
46
|
+
import Settings, { Ads } from '../../../../settings'
|
|
47
|
+
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
48
|
+
import client from '../../../../client'
|
|
49
|
+
import moment from 'moment'
|
|
50
|
+
import Shell from '../../../../components/2.0/Shell'
|
|
51
|
+
import { pageview } from '../../../../utilities/gtag'
|
|
52
|
+
|
|
53
|
+
const Issue = (props) => {
|
|
54
|
+
const { pubIssue, cache } = props
|
|
55
|
+
const targeting = {
|
|
56
|
+
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
57
|
+
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
58
|
+
}
|
|
59
|
+
return (
|
|
60
|
+
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
61
|
+
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
62
|
+
</Shell>
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
Issue.getInitialProps = async (ctx) => {
|
|
67
|
+
const { query } = ctx
|
|
68
|
+
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
69
|
+
)
|
|
70
|
+
return { pubIssue }
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export default Issue
|
|
76
74
|
*/
|
|
77
75
|
|
|
78
76
|
var IssueLanding = function IssueLanding(props) {
|
|
@@ -98,16 +96,16 @@ var IssueLanding = function IssueLanding(props) {
|
|
|
98
96
|
_props$imageWidth = props.imageWidth,
|
|
99
97
|
imageWidth = _props$imageWidth === undefined ? 480 : _props$imageWidth;
|
|
100
98
|
|
|
101
|
-
return
|
|
99
|
+
return React.createElement(
|
|
102
100
|
'div',
|
|
103
101
|
{ id: 'issueLanding' },
|
|
104
|
-
|
|
105
|
-
pubIssue.issue.source &&
|
|
102
|
+
React.createElement(Breadcrumbs, null),
|
|
103
|
+
pubIssue.issue.source && React.createElement(
|
|
106
104
|
'p',
|
|
107
105
|
{ className: 'badge badge-primary' },
|
|
108
106
|
pubIssue.issue.source
|
|
109
107
|
),
|
|
110
|
-
|
|
108
|
+
React.createElement(QueueDeckExpanded, {
|
|
111
109
|
client: client,
|
|
112
110
|
mapping: settings.mapping,
|
|
113
111
|
dataRecord: pubIssue.issue.articles,
|
package/dist/esm/KMTracker.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
var KMTracker = function KMTracker(props) {
|
|
2
|
-
|
|
2
|
+
var id = props.id;
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
if (document && id) {
|
|
5
5
|
(function () {
|
|
6
|
-
|
|
6
|
+
var ecnJquery = document.createElement('script');
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
ecnJquery.type = 'text/javascript';
|
|
9
|
+
ecnJquery.async = true;
|
|
10
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
var ecnScript = document.createElement('script');
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
ecnScript.type = 'text/javascript';
|
|
15
|
+
ecnScript.async = true;
|
|
16
|
+
ecnScript.id = 'km-tracker';
|
|
17
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
document.head.appendChild(ecnJquery);
|
|
20
|
+
document.head.appendChild(ecnScript);
|
|
21
|
+
})();
|
|
22
|
+
}
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
export default KMTracker;
|
package/dist/esm/LeftNav.js
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
|
+
import React, { useRef, useEffect } from 'react';
|
|
2
|
+
import ListGroup from 'react-bootstrap/ListGroup';
|
|
3
|
+
import ADWebcast from './ADWebcast.js';
|
|
4
|
+
import Segment from './Segment.js';
|
|
5
|
+
import './stringify-22907f56.js';
|
|
1
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_export-
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import
|
|
11
|
-
import './index-17490425.js';
|
|
7
|
+
import './_export-9029ebab.js';
|
|
8
|
+
import './slicedToArray-fa9240c4.js';
|
|
9
|
+
import './web.dom.iterable-89515070.js';
|
|
10
|
+
import './es6.string.iterator-2efae22d.js';
|
|
11
|
+
import './_to-object-62924b74.js';
|
|
12
|
+
import './core.get-iterator-method-6636b3ef.js';
|
|
13
|
+
import './AdSlot.js';
|
|
14
|
+
import './extends-f866c8d0.js';
|
|
15
|
+
import './_object-pie-33c40e79.js';
|
|
12
16
|
import 'prop-types';
|
|
13
|
-
import './
|
|
14
|
-
import './
|
|
15
|
-
import './isSymbol-
|
|
16
|
-
import './debounce-7b569c00.js';
|
|
17
|
-
import './main-140f99b4.js';
|
|
18
|
-
import './stringify-dedf4a20.js';
|
|
19
|
-
import './slicedToArray-8818fe95.js';
|
|
20
|
-
import './asyncToGenerator-0c61f551.js';
|
|
21
|
-
import './_set-species-26ee5c2a.js';
|
|
22
|
-
import Segment from './Segment.js';
|
|
17
|
+
import './index-669ff425.js';
|
|
18
|
+
import './debounce-1a993acf.js';
|
|
19
|
+
import './isSymbol-807e927e.js';
|
|
23
20
|
import './Beam.js';
|
|
24
|
-
import './
|
|
25
|
-
import
|
|
26
|
-
import
|
|
21
|
+
import './asyncToGenerator-7714cea4.js';
|
|
22
|
+
import './_library-528f1934.js';
|
|
23
|
+
import './_set-species-a4b3fe39.js';
|
|
24
|
+
import './_iter-detect-60cd145f.js';
|
|
25
|
+
import './main-decc48f4.js';
|
|
27
26
|
|
|
28
27
|
var LeftNav = function LeftNav(props) {
|
|
29
28
|
var leftItems = props.leftItems,
|
|
@@ -67,21 +66,21 @@ var LeftNav = function LeftNav(props) {
|
|
|
67
66
|
|
|
68
67
|
var renderListGroupItem = function renderListGroupItem(subRow) {
|
|
69
68
|
if (checkUrlIsExternal(subRow.url)) {
|
|
70
|
-
return
|
|
69
|
+
return React.createElement(
|
|
71
70
|
'a',
|
|
72
71
|
{ target: subRow.blank ? '_blank' : '_self', needsegmentsupport: subRow.needSegmentSupport ? 'true' : '', href: subRow.url },
|
|
73
72
|
subRow.name
|
|
74
73
|
);
|
|
75
74
|
}
|
|
76
75
|
|
|
77
|
-
return
|
|
76
|
+
return React.createElement(
|
|
78
77
|
'a',
|
|
79
78
|
{ href: subRow.url || '#', target: subRow.blank ? '_blank' : '_self', needsegmentsupport: subRow.needSegmentSupport ? 'true' : '' },
|
|
80
79
|
subRow.name
|
|
81
80
|
);
|
|
82
81
|
};
|
|
83
82
|
|
|
84
|
-
return
|
|
83
|
+
return React.createElement(
|
|
85
84
|
'section',
|
|
86
85
|
{ ref: leftNavRef },
|
|
87
86
|
leftItems && leftItems.map(function (row, index) {
|
|
@@ -89,27 +88,27 @@ var LeftNav = function LeftNav(props) {
|
|
|
89
88
|
// Since Webcast Ad should be between spotlight and sub navigation it should be passed as the second element of leftItems array from site level.
|
|
90
89
|
// Webcast AD should have atleast adUnit , networkID, and "_type" as "webcastAD"
|
|
91
90
|
if (row._type && row._type === 'webcastAD' && row.adUnit) {
|
|
92
|
-
return
|
|
91
|
+
return React.createElement(
|
|
93
92
|
'div',
|
|
94
93
|
{ key: index },
|
|
95
|
-
|
|
94
|
+
React.createElement(ADWebcast, { webcastAd: row, refreshFlag: row.refreshFlag ? row.refreshFlag : false })
|
|
96
95
|
);
|
|
97
96
|
} else {
|
|
98
|
-
return
|
|
97
|
+
return React.createElement(
|
|
99
98
|
'nav',
|
|
100
99
|
{ key: index, 'aria-label': 'Secondary' },
|
|
101
|
-
|
|
100
|
+
React.createElement(
|
|
102
101
|
'div',
|
|
103
102
|
{ style: { display: 'flex', justifyContent: 'space-between', flexWrap: 'wrap' }, className: 'secondary-nav-title list-group-item active' },
|
|
104
|
-
|
|
103
|
+
React.createElement(
|
|
105
104
|
'span',
|
|
106
105
|
{ className: 'mr-1', style: { display: 'inline-block', fontWeight: 'bold', fontSize: '1rem' } },
|
|
107
106
|
row.name
|
|
108
107
|
),
|
|
109
|
-
row.url && SeeAll &&
|
|
108
|
+
row.url && SeeAll && React.createElement(
|
|
110
109
|
'span',
|
|
111
110
|
{ style: { marginLeft: 'auto', display: 'inline-block' } },
|
|
112
|
-
|
|
111
|
+
React.createElement(
|
|
113
112
|
'a',
|
|
114
113
|
{ style: { color: 'white', fontSize: '.6rem' }, href: row.url },
|
|
115
114
|
'See All ',
|
|
@@ -117,11 +116,11 @@ var LeftNav = function LeftNav(props) {
|
|
|
117
116
|
)
|
|
118
117
|
)
|
|
119
118
|
),
|
|
120
|
-
|
|
119
|
+
React.createElement(
|
|
121
120
|
'ul',
|
|
122
121
|
{ style: sideNavStyles },
|
|
123
122
|
row.subQuery && row.subQuery.map(function (subRow, subIndex) {
|
|
124
|
-
return
|
|
123
|
+
return React.createElement(
|
|
125
124
|
ListGroup.Item,
|
|
126
125
|
{ as: 'li', key: subIndex + '_2' },
|
|
127
126
|
renderListGroupItem(subRow)
|
|
@@ -134,7 +133,7 @@ var LeftNav = function LeftNav(props) {
|
|
|
134
133
|
);
|
|
135
134
|
};
|
|
136
135
|
|
|
137
|
-
var LeftNav$1 =
|
|
136
|
+
var LeftNav$1 = React.memo(LeftNav);
|
|
138
137
|
|
|
139
138
|
export default LeftNav$1;
|
|
140
139
|
export { LeftNav };
|
package/dist/esm/MasterDeck.js
CHANGED
|
@@ -1,47 +1,45 @@
|
|
|
1
|
-
import './
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
5
|
-
import '
|
|
6
|
-
import {
|
|
7
|
-
import './core.get-iterator-method-dbbb346b.js';
|
|
8
|
-
import './_object-pie-8e2f6c3a.js';
|
|
9
|
-
import { _ as _extends } from './extends-8e0228d5.js';
|
|
10
|
-
import './_object-sap-146241c9.js';
|
|
11
|
-
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-d1948b66.js';
|
|
12
|
-
import './define-property-7a40a451.js';
|
|
13
|
-
import './web.dom.iterable-c3ba4d37.js';
|
|
14
|
-
import './typeof-a10a5616.js';
|
|
15
|
-
import './_is-array-5bea6006.js';
|
|
16
|
-
import React__default from 'react';
|
|
17
|
-
import { l as lib_3 } from './index-17490425.js';
|
|
18
|
-
import 'prop-types';
|
|
19
|
-
import './_react_commonjs-external-22b61490.js';
|
|
20
|
-
import './_prop-types_commonjs-external-9481d338.js';
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-bd01c637.js';
|
|
2
|
+
import { a as _Promise } from './asyncToGenerator-7714cea4.js';
|
|
3
|
+
import { _ as _extends } from './extends-f866c8d0.js';
|
|
4
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-75d6495f.js';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { l as lib_3 } from './index-669ff425.js';
|
|
21
7
|
import Container from 'react-bootstrap/Container';
|
|
22
8
|
import 'react-bootstrap/Row';
|
|
23
9
|
import 'react-bootstrap/Col';
|
|
24
10
|
import 'react-bootstrap/Card';
|
|
25
|
-
import './moment-
|
|
11
|
+
import './moment-bc12cb97.js';
|
|
26
12
|
import { withRouter } from 'next/router';
|
|
27
|
-
import './
|
|
28
|
-
import { d as
|
|
29
|
-
import { I as InfiniteScroll } from './index.es-
|
|
13
|
+
import { l as lodash } from './lodash-ad27652f.js';
|
|
14
|
+
import { d as debounce_1 } from './debounce-1a993acf.js';
|
|
15
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
16
|
+
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
17
|
+
import './index-3f5c03b2.js';
|
|
18
|
+
import { A as ADlgInfeed } from './ADlgInfeed-3ac04591.js';
|
|
19
|
+
import { A as ADInfeed } from './ADInfeed-bf7de12d.js';
|
|
20
|
+
import './main-decc48f4.js';
|
|
21
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
22
|
+
import './es6.string.iterator-2efae22d.js';
|
|
23
|
+
import './_to-object-62924b74.js';
|
|
24
|
+
import './_export-9029ebab.js';
|
|
25
|
+
import './_iter-detect-60cd145f.js';
|
|
26
|
+
import './core.get-iterator-method-6636b3ef.js';
|
|
27
|
+
import './web.dom.iterable-89515070.js';
|
|
28
|
+
import './_library-528f1934.js';
|
|
29
|
+
import './_set-species-a4b3fe39.js';
|
|
30
|
+
import './_object-pie-33c40e79.js';
|
|
31
|
+
import './_object-sap-108a1939.js';
|
|
32
|
+
import './define-property-f2d6f244.js';
|
|
33
|
+
import './typeof-668f30cd.js';
|
|
34
|
+
import './_is-array-46713c19.js';
|
|
35
|
+
import 'prop-types';
|
|
36
|
+
import './isSymbol-807e927e.js';
|
|
30
37
|
import 'react-dom';
|
|
31
|
-
import './
|
|
32
|
-
import
|
|
33
|
-
import './index-f7fdcc91.js';
|
|
34
|
-
import './main-140f99b4.js';
|
|
35
|
-
import './stringify-dedf4a20.js';
|
|
36
|
-
import './slicedToArray-8818fe95.js';
|
|
37
|
-
import { _ as _Promise } from './asyncToGenerator-0c61f551.js';
|
|
38
|
-
import './_set-species-26ee5c2a.js';
|
|
39
|
-
import './Segment.js';
|
|
40
|
-
import './Beam.js';
|
|
38
|
+
import './stringify-22907f56.js';
|
|
39
|
+
import './slicedToArray-fa9240c4.js';
|
|
41
40
|
import './AdSlot.js';
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import { A as ADlgInfeed } from './ADlgInfeed-1d006b36.js';
|
|
41
|
+
import './Beam.js';
|
|
42
|
+
import './Segment.js';
|
|
45
43
|
|
|
46
44
|
var MasterDeck = function (_React$Component) {
|
|
47
45
|
_inherits(MasterDeck, _React$Component);
|
|
@@ -73,7 +71,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
73
71
|
lastDataSize: _this.data ? _this.data.length : 0,
|
|
74
72
|
itemsPerPage: _this.params ? _this.params.to - _this.params.from : 2,
|
|
75
73
|
mobileView: false
|
|
76
|
-
}, _this.loadMore =
|
|
74
|
+
}, _this.loadMore = debounce_1(function () {
|
|
77
75
|
_this.setState(function (state) {
|
|
78
76
|
var page = state.page,
|
|
79
77
|
from = state.from,
|
|
@@ -227,14 +225,14 @@ var MasterDeck = function (_React$Component) {
|
|
|
227
225
|
}
|
|
228
226
|
|
|
229
227
|
// please leave this for later debug purpose : Yong Jun.
|
|
230
|
-
/* console.log('page change reported', {
|
|
231
|
-
currentPage: currentPage,
|
|
232
|
-
pageNumber: pageNumber,
|
|
233
|
-
pathname: pathname,
|
|
234
|
-
path: path,
|
|
235
|
-
newPath: newPath,
|
|
236
|
-
firstPage: pageNumber === 1,
|
|
237
|
-
queryString: queryString
|
|
228
|
+
/* console.log('page change reported', {
|
|
229
|
+
currentPage: currentPage,
|
|
230
|
+
pageNumber: pageNumber,
|
|
231
|
+
pathname: pathname,
|
|
232
|
+
path: path,
|
|
233
|
+
newPath: newPath,
|
|
234
|
+
firstPage: pageNumber === 1,
|
|
235
|
+
queryString: queryString
|
|
238
236
|
}) */
|
|
239
237
|
|
|
240
238
|
if (pageview) {
|
|
@@ -275,16 +273,16 @@ var MasterDeck = function (_React$Component) {
|
|
|
275
273
|
refreshFlag: brandInsightAd.refreshFlag ? brandInsightAd.refreshFlag : false
|
|
276
274
|
};
|
|
277
275
|
|
|
278
|
-
var chunks =
|
|
279
|
-
var set =
|
|
276
|
+
var chunks = lodash.chunk(data, 6).map(function (chunk) {
|
|
277
|
+
var set = lodash.chunk(chunk, 2);
|
|
280
278
|
for (var i = 0; i < set.length; i++) {
|
|
281
279
|
if (i !== set.length - 1) {
|
|
282
280
|
set[i].push(lgInfeed);
|
|
283
281
|
}
|
|
284
282
|
}
|
|
285
|
-
return
|
|
283
|
+
return lodash.flattenDeep(set);
|
|
286
284
|
});
|
|
287
|
-
data =
|
|
285
|
+
data = lodash.flatten(chunks);
|
|
288
286
|
!_this.state.dataRemapped && _this.setState({ dataRemapped: true }); // To detect if appending of insights ads are completed
|
|
289
287
|
}
|
|
290
288
|
|
|
@@ -326,7 +324,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
326
324
|
}
|
|
327
325
|
});
|
|
328
326
|
|
|
329
|
-
return
|
|
327
|
+
return React.createElement(
|
|
330
328
|
'div',
|
|
331
329
|
null,
|
|
332
330
|
data && _this.state.dataRemapped && data.length > 0 ? // If JS enabled and Data remapped with ads
|
|
@@ -334,24 +332,24 @@ var MasterDeck = function (_React$Component) {
|
|
|
334
332
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
335
333
|
|
|
336
334
|
if (row._type === 'lg-infeed' && row.adUnit) {
|
|
337
|
-
return
|
|
335
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
338
336
|
// Returning view for infeed Ad
|
|
339
337
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
340
|
-
return
|
|
338
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
341
339
|
} else if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
|
|
342
340
|
// Returning view for articles
|
|
343
|
-
return
|
|
341
|
+
return React.createElement(
|
|
344
342
|
VisibilitySensor,
|
|
345
343
|
{
|
|
346
344
|
key: row._id ? row._id : index,
|
|
347
345
|
onChange: function onChange(isVisible) {
|
|
348
346
|
isVisible && _this.changePageNumber(pageNumber);
|
|
349
347
|
} },
|
|
350
|
-
|
|
351
|
-
|
|
348
|
+
React.createElement(
|
|
349
|
+
React.Fragment,
|
|
352
350
|
{ key: index },
|
|
353
|
-
|
|
354
|
-
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 &&
|
|
351
|
+
React.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage }),
|
|
352
|
+
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React.createElement(
|
|
355
353
|
'div',
|
|
356
354
|
{ className: 'ad-container', style: { margin: '0 auto' } },
|
|
357
355
|
_this.renderMobileAd(index, numberOfItemsBeforeAd, _this.rightItems)
|
|
@@ -365,27 +363,27 @@ var MasterDeck = function (_React$Component) {
|
|
|
365
363
|
data.map(function (row, index) {
|
|
366
364
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
367
365
|
if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
|
|
368
|
-
return
|
|
366
|
+
return React.createElement(
|
|
369
367
|
VisibilitySensor,
|
|
370
368
|
{
|
|
371
369
|
key: row._id ? row._id : index,
|
|
372
370
|
onChange: function onChange(isVisible) {
|
|
373
371
|
isVisible && _this.changePageNumber(pageNumber);
|
|
374
372
|
} },
|
|
375
|
-
|
|
376
|
-
|
|
373
|
+
React.createElement(
|
|
374
|
+
React.Fragment,
|
|
377
375
|
{ key: index },
|
|
378
|
-
|
|
376
|
+
React.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage })
|
|
379
377
|
)
|
|
380
378
|
);
|
|
381
379
|
}
|
|
382
|
-
}) :
|
|
380
|
+
}) : React.createElement(
|
|
383
381
|
'div',
|
|
384
382
|
null,
|
|
385
|
-
|
|
383
|
+
React.createElement(
|
|
386
384
|
'h5',
|
|
387
385
|
null,
|
|
388
|
-
|
|
386
|
+
React.createElement(
|
|
389
387
|
'em',
|
|
390
388
|
null,
|
|
391
389
|
'New content coming soon, please check back later.'
|
|
@@ -395,7 +393,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
395
393
|
);
|
|
396
394
|
}, _this.renderMobileAd = function (index, numberOfItemsBeforeAd, rightItems) {
|
|
397
395
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
398
|
-
return
|
|
396
|
+
return React.createElement(
|
|
399
397
|
'div',
|
|
400
398
|
{ className: 'ad-container', style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
|
|
401
399
|
rightItems[i].component
|
|
@@ -412,15 +410,15 @@ var MasterDeck = function (_React$Component) {
|
|
|
412
410
|
return null;
|
|
413
411
|
}
|
|
414
412
|
|
|
415
|
-
return
|
|
413
|
+
return React.createElement(
|
|
416
414
|
'div',
|
|
417
415
|
{ className: 'd-flex justify-content-between' },
|
|
418
|
-
currentPage && currentPage > 1 &&
|
|
416
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
419
417
|
'a',
|
|
420
418
|
{ href: '?page=' + (currentPage - 1) },
|
|
421
419
|
'<< Previous'
|
|
422
420
|
),
|
|
423
|
-
|
|
421
|
+
React.createElement(
|
|
424
422
|
'a',
|
|
425
423
|
{ href: '?page=' + (currentPage + 1) },
|
|
426
424
|
'Next >>'
|
|
@@ -484,38 +482,38 @@ var MasterDeck = function (_React$Component) {
|
|
|
484
482
|
_props$lgInfeedAd = _props.lgInfeedAd,
|
|
485
483
|
lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd;
|
|
486
484
|
|
|
487
|
-
return
|
|
485
|
+
return React.createElement(
|
|
488
486
|
'div',
|
|
489
487
|
{ className: 'contentDeck' },
|
|
490
|
-
autoScroll ?
|
|
491
|
-
|
|
488
|
+
autoScroll ? React.createElement(
|
|
489
|
+
React.Fragment,
|
|
492
490
|
null,
|
|
493
|
-
|
|
491
|
+
React.createElement(
|
|
494
492
|
InfiniteScroll,
|
|
495
493
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
496
|
-
|
|
494
|
+
React.createElement(
|
|
497
495
|
Container,
|
|
498
496
|
null,
|
|
499
497
|
this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
|
|
500
498
|
)
|
|
501
499
|
),
|
|
502
|
-
|
|
500
|
+
React.createElement(
|
|
503
501
|
'noscript',
|
|
504
502
|
null,
|
|
505
503
|
this.renderManualPagination()
|
|
506
504
|
)
|
|
507
|
-
) :
|
|
508
|
-
|
|
505
|
+
) : React.createElement(
|
|
506
|
+
React.Fragment,
|
|
509
507
|
null,
|
|
510
|
-
|
|
508
|
+
React.createElement(
|
|
511
509
|
Container,
|
|
512
510
|
null,
|
|
513
511
|
this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
|
|
514
512
|
),
|
|
515
|
-
|
|
513
|
+
React.createElement(
|
|
516
514
|
'div',
|
|
517
515
|
{ style: { padding: '0px 10px' } },
|
|
518
|
-
this.state.scrolling &&
|
|
516
|
+
this.state.scrolling && React.createElement(
|
|
519
517
|
'button',
|
|
520
518
|
{
|
|
521
519
|
className: 'btn',
|
|
@@ -535,7 +533,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
535
533
|
'Load More'
|
|
536
534
|
)
|
|
537
535
|
),
|
|
538
|
-
|
|
536
|
+
React.createElement(
|
|
539
537
|
'noscript',
|
|
540
538
|
null,
|
|
541
539
|
this.renderManualPagination()
|
|
@@ -546,7 +544,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
546
544
|
}]);
|
|
547
545
|
|
|
548
546
|
return MasterDeck;
|
|
549
|
-
}(
|
|
547
|
+
}(React.Component);
|
|
550
548
|
|
|
551
549
|
var MasterDeck$1 = withRouter(MasterDeck);
|
|
552
550
|
|