@mjhls/mjh-framework 1.0.689-segment → 1.0.690
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 +24 -23
- package/dist/cjs/AD300x250x600.js +24 -23
- package/dist/cjs/AD728x90.js +27 -26
- package/dist/cjs/ADFloatingFooter.js +29 -28
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +26 -25
- package/dist/cjs/{ADInfeed-3410ab3c.js → ADInfeed-ba531ca6.js} +13 -11
- package/dist/cjs/ADSkyscraper.js +26 -25
- package/dist/cjs/ADSponsoredResources.js +26 -25
- package/dist/cjs/ADWebcast.js +26 -25
- package/dist/cjs/ADWelcome.js +30 -29
- package/dist/cjs/{ADlgInfeed-845aac15.js → ADlgInfeed-b0cc0e88.js} +9 -8
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +30 -29
- package/dist/cjs/AdSlotsProvider.js +7 -6
- package/dist/cjs/AlphabeticList.js +25 -24
- package/dist/cjs/ArticleCarousel.js +22 -21
- package/dist/cjs/ArticleSeriesListing.js +58 -57
- package/dist/cjs/Auth.js +793 -357
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-98ebefa4.js} +14 -13
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-88f69acd.js → BlockContent-bbc3be61.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/BrowseVideosListing.js +28 -27
- package/dist/cjs/CMEDeck.js +77 -77
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +35 -32
- package/dist/cjs/Column3.js +57 -54
- package/dist/cjs/ConferenceArticleCard.js +38 -37
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +106 -102
- package/dist/cjs/DeckQueue.js +90 -86
- package/dist/cjs/{Dfp-b2bc3b97.js → Dfp-76acc8c2.js} +31 -30
- package/dist/cjs/EventsDeck.js +153 -146
- package/dist/cjs/ExternalResources.js +73 -72
- package/dist/cjs/Feature.js +27 -25
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +180 -176
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +50 -49
- package/dist/cjs/HamMagazine.js +144 -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 +77 -72
- package/dist/cjs/IssueDeck.js +75 -70
- package/dist/cjs/IssueLanding.js +70 -69
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +37 -35
- package/dist/cjs/MasterDeck.js +81 -80
- package/dist/cjs/NavDvm.js +80 -75
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +153 -148
- package/dist/cjs/NavNative.js +132 -138
- package/dist/cjs/NavNormal.js +53 -48
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +67 -66
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +170 -169
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PublicationDeck.js +66 -61
- package/dist/cjs/PublicationLanding.js +98 -94
- package/dist/cjs/QueueDeckExpanded.js +292 -292
- package/dist/cjs/RecentNews.js +24 -23
- package/dist/cjs/RelatedContent.js +53 -52
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +22 -18
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +38 -37
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-6b5e5b47.js → SocialSearchComponent-de064e93.js} +38 -34
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +62 -57
- package/dist/cjs/TemplateNormal.js +72 -71
- package/dist/cjs/ThumbnailCard.js +22 -20
- package/dist/cjs/Ustream.js +27 -26
- package/dist/cjs/VerticalHero.js +18 -17
- package/dist/cjs/VideoSeriesCard.js +34 -33
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesListing.js +72 -71
- package/dist/cjs/View.js +237 -234
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +69 -68
- package/dist/cjs/{_is-array-754e012d.js → _is-array-b1090e3d.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-8decaf0f.js} +2 -2
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-b69cab35.js} +1 -1
- package/dist/cjs/{_set-species-f92c67c5.js → _set-species-5c9fd235.js} +4 -4
- package/dist/cjs/{_to-object-329a650b.js → _to-object-e2d5cc9d.js} +3 -3
- package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-a855b820.js} +6 -6
- 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-f62321d4.js → core.get-iterator-method-bf3fde8c.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-1d75ae0f.js} +1 -1
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-16bd5829.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-e3ce14ae.js} +1 -1
- package/dist/cjs/{extends-60837c34.js → extends-a9da965c.js} +1 -1
- package/dist/cjs/getRelatedArticle.js +19 -19
- package/dist/cjs/getSerializers.js +39 -39
- package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-d8df2f51.js} +11 -11
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-b5eb3ff8.js → index-10185024.js} +3 -3
- package/dist/cjs/{index-2d0a4911.js → index-5ad2b070.js} +12 -11
- package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
- package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
- package/dist/cjs/{index-44c25825.js → index-e1d6c590.js} +427 -417
- package/dist/cjs/{index.es-ab3f2690.js → index.es-f3e47207.js} +28 -11
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-876ca9ff.js → index.esm-61650d1a.js} +5 -12
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/index.js +126 -126
- package/dist/cjs/{inherits-513d81cd.js → inherits-3affeccb.js} +8 -8
- package/dist/cjs/{keys-a586b7a0.js → keys-218a754a.js} +2 -2
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-b6c96c8d.js → main-df97bfe9.js} +84 -79
- package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5b1b0ed8.js} +4 -4
- package/dist/cjs/{smoothscroll-95231a70.js → smoothscroll-1abb448e.js} +1 -1
- package/dist/cjs/{stringify-7c5aff47.js → stringify-4f757ee6.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-57153848.js} +4 -4
- package/dist/cjs/{typeof-725500bc.js → typeof-c69a5548.js} +6 -6
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-0ffca19f.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +20 -20
- package/dist/esm/AD300x250x600.js +20 -20
- package/dist/esm/AD728x90.js +23 -23
- package/dist/esm/ADFloatingFooter.js +25 -25
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +22 -22
- package/dist/esm/{ADInfeed-205cb7a9.js → ADInfeed-45191cf8.js} +7 -7
- package/dist/esm/ADSkyscraper.js +22 -22
- package/dist/esm/ADSponsoredResources.js +22 -22
- package/dist/esm/ADWebcast.js +22 -22
- package/dist/esm/ADWelcome.js +26 -26
- package/dist/esm/{ADlgInfeed-e538f17a.js → ADlgInfeed-1f8fc733.js} +6 -6
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +21 -21
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +18 -18
- package/dist/esm/ArticleSeriesListing.js +52 -52
- package/dist/esm/Auth.js +775 -343
- package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-30ec92a8.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-a614acdf.js → BlockContent-c5de3044.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/BrowseVideosListing.js +24 -24
- package/dist/esm/CMEDeck.js +73 -73
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +47 -47
- package/dist/esm/ConferenceArticleCard.js +33 -33
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +84 -84
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-8a8fca18.js → Dfp-8b5b19d0.js} +20 -20
- package/dist/esm/EventsDeck.js +99 -99
- package/dist/esm/ExternalResources.js +66 -66
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +138 -138
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +113 -113
- 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 +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +66 -66
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +31 -31
- package/dist/esm/MasterDeck.js +74 -74
- 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 +102 -116
- package/dist/esm/NavNormal.js +36 -36
- package/dist/esm/OncliveHero.js +16 -17
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +108 -108
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +75 -75
- package/dist/esm/QueueDeckExpanded.js +272 -272
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +47 -47
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +33 -33
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-7f14e0f3.js → SocialSearchComponent-cddc9ce1.js} +26 -26
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TemplateNormal.js +65 -65
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesListing.js +65 -65
- package/dist/esm/View.js +223 -224
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +53 -53
- package/dist/esm/{_is-array-49698029.js → _is-array-ffa65b7e.js} +6 -6
- package/dist/esm/{_iter-detect-59409a32.js → _iter-detect-256a4d61.js} +2 -2
- package/dist/esm/{_object-sap-4d59d5bd.js → _object-sap-0cecd031.js} +1 -1
- package/dist/esm/{_set-species-cede29f8.js → _set-species-09ba387c.js} +4 -4
- package/dist/esm/{_to-object-ded78eb9.js → _to-object-ee10dabb.js} +4 -4
- package/dist/esm/{asyncToGenerator-7c654f36.js → asyncToGenerator-b0af4000.js} +6 -6
- 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-54d2e411.js → core.get-iterator-method-0e6dc181.js} +2 -2
- package/dist/esm/{define-property-de3fc946.js → define-property-e013aae3.js} +1 -1
- package/dist/esm/{defineProperty-b798470d.js → defineProperty-2385da87.js} +1 -1
- package/dist/esm/{es6.string.iterator-9b2af4a5.js → es6.string.iterator-c5179428.js} +2 -2
- package/dist/esm/{extends-cc5da797.js → extends-03593dc6.js} +1 -1
- package/dist/esm/getRelatedArticle.js +13 -13
- package/dist/esm/getSerializers.js +39 -39
- package/dist/esm/{getTargeting-2acdec91.js → getTargeting-60717d7f.js} +11 -11
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-51a80699.js → index-4de5c15f.js} +3 -3
- package/dist/esm/{index-93ec3c59.js → index-669ff425.js} +6 -6
- package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
- package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
- package/dist/esm/{index-8a757d91.js → index-cbd95715.js} +373 -369
- package/dist/esm/{index.es-938a3a58.js → index.es-c6222053.js} +25 -9
- package/dist/esm/{index.esm-85cb09e6.js → index.esm-79385203.js} +5 -12
- 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-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +104 -104
- package/dist/esm/{inherits-7ee3e0c1.js → inherits-d88f5b29.js} +5 -5
- package/dist/esm/{keys-fc2d4c34.js → keys-618df59d.js} +2 -2
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-0465b2a0.js → main-a2443735.js} +84 -80
- package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
- package/dist/esm/{slicedToArray-7021e5df.js → slicedToArray-648674b3.js} +4 -4
- package/dist/esm/{smoothscroll-4b699764.js → smoothscroll-ab6e0238.js} +1 -1
- package/dist/esm/{stringify-008c8802.js → stringify-7c97a94d.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-725434a0.js → toConsumableArray-aa76a4fe.js} +4 -4
- package/dist/esm/{typeof-08f2c380.js → typeof-5c759779.js} +6 -6
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/dist/esm/{web.dom.iterable-8956f9a5.js → web.dom.iterable-de3b4afb.js} +3 -3
- package/package.json +107 -107
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
3
|
+
import Breadcrumbs from './Breadcrumbs.js';
|
|
4
|
+
import './slicedToArray-648674b3.js';
|
|
1
5
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './es6.string.iterator-
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
6
|
-
import './toConsumableArray-
|
|
7
|
-
import './
|
|
6
|
+
import './web.dom.iterable-de3b4afb.js';
|
|
7
|
+
import './es6.string.iterator-c5179428.js';
|
|
8
|
+
import './_to-object-ee10dabb.js';
|
|
9
|
+
import './core.get-iterator-method-0e6dc181.js';
|
|
10
|
+
import './toConsumableArray-aa76a4fe.js';
|
|
11
|
+
import './_iter-detect-256a4d61.js';
|
|
12
|
+
import './extends-03593dc6.js';
|
|
8
13
|
import './_object-pie-71ac75a4.js';
|
|
9
|
-
import '
|
|
10
|
-
import './
|
|
11
|
-
import
|
|
12
|
-
import './
|
|
14
|
+
import 'react-bootstrap';
|
|
15
|
+
import './index-4de5c15f.js';
|
|
16
|
+
import './index.es-c6222053.js';
|
|
17
|
+
import './moment-b6f49411.js';
|
|
18
|
+
import './visibility-sensor-082c757b.js';
|
|
19
|
+
import 'react-dom';
|
|
20
|
+
import './index-669ff425.js';
|
|
13
21
|
import 'prop-types';
|
|
14
|
-
import 'react-bootstrap/Card';
|
|
15
|
-
import './moment-12415288.js';
|
|
16
22
|
import 'next/router';
|
|
17
|
-
import './
|
|
18
|
-
import './
|
|
19
|
-
import './index.es-938a3a58.js';
|
|
20
|
-
import 'react-dom';
|
|
21
|
-
import './visibility-sensor-0baa4eea.js';
|
|
22
|
-
import './index-51a80699.js';
|
|
23
|
-
import './index-5f9f807a.js';
|
|
24
|
-
import './main-0465b2a0.js';
|
|
23
|
+
import './index-752d1dae.js';
|
|
24
|
+
import './main-a2443735.js';
|
|
25
25
|
import './entities-7cc3bf45.js';
|
|
26
|
-
import './
|
|
27
|
-
import './
|
|
28
|
-
import '
|
|
29
|
-
import './_set-species-cede29f8.js';
|
|
30
|
-
import './Segment.js';
|
|
31
|
-
import './Beam.js';
|
|
26
|
+
import './ADInfeed-45191cf8.js';
|
|
27
|
+
import './stringify-7c97a94d.js';
|
|
28
|
+
import 'react-bootstrap/Card';
|
|
32
29
|
import './AdSlot.js';
|
|
33
|
-
import './
|
|
34
|
-
import './
|
|
35
|
-
import './
|
|
30
|
+
import './debounce-1a993acf.js';
|
|
31
|
+
import './isSymbol-807e927e.js';
|
|
32
|
+
import './Beam.js';
|
|
33
|
+
import './asyncToGenerator-b0af4000.js';
|
|
34
|
+
import './_library-528f1934.js';
|
|
35
|
+
import './_set-species-09ba387c.js';
|
|
36
|
+
import './Segment.js';
|
|
37
|
+
import './AuthorComponent-30ec92a8.js';
|
|
38
|
+
import './lodash-ec8c6b48.js';
|
|
39
|
+
import './ADlgInfeed-1f8fc733.js';
|
|
36
40
|
import './getContentCategory-15dcc413.js';
|
|
37
|
-
import './AuthorComponent-00f13201.js';
|
|
38
|
-
import 'react-bootstrap';
|
|
39
41
|
import './timeDifferenceCalc.js';
|
|
40
|
-
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
41
42
|
import 'react-bootstrap/Breadcrumb';
|
|
42
|
-
import Breadcrumbs from './Breadcrumbs.js';
|
|
43
43
|
|
|
44
|
-
/* usage
|
|
45
|
-
import Settings, { Ads } from '../../../../settings'
|
|
46
|
-
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
47
|
-
import client from '../../../../client'
|
|
48
|
-
import moment from 'moment'
|
|
49
|
-
import Shell from '../../../../components/2.0/Shell'
|
|
50
|
-
import { pageview } from '../../../../utilities/gtag'
|
|
51
|
-
|
|
52
|
-
const Issue = (props) => {
|
|
53
|
-
const { pubIssue, cache } = props
|
|
54
|
-
const targeting = {
|
|
55
|
-
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
56
|
-
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
57
|
-
}
|
|
58
|
-
return (
|
|
59
|
-
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
60
|
-
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
61
|
-
</Shell>
|
|
62
|
-
)
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
Issue.getInitialProps = async (ctx) => {
|
|
66
|
-
const { query } = ctx
|
|
67
|
-
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
68
|
-
)
|
|
69
|
-
return { pubIssue }
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export default Issue
|
|
44
|
+
/* usage
|
|
45
|
+
import Settings, { Ads } from '../../../../settings'
|
|
46
|
+
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
47
|
+
import client from '../../../../client'
|
|
48
|
+
import moment from 'moment'
|
|
49
|
+
import Shell from '../../../../components/2.0/Shell'
|
|
50
|
+
import { pageview } from '../../../../utilities/gtag'
|
|
51
|
+
|
|
52
|
+
const Issue = (props) => {
|
|
53
|
+
const { pubIssue, cache } = props
|
|
54
|
+
const targeting = {
|
|
55
|
+
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
56
|
+
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
57
|
+
}
|
|
58
|
+
return (
|
|
59
|
+
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
60
|
+
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
61
|
+
</Shell>
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
Issue.getInitialProps = async (ctx) => {
|
|
66
|
+
const { query } = ctx
|
|
67
|
+
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
68
|
+
)
|
|
69
|
+
return { pubIssue }
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export default Issue
|
|
73
73
|
*/
|
|
74
74
|
|
|
75
75
|
var IssueLanding = function IssueLanding(props) {
|
|
@@ -95,16 +95,16 @@ var IssueLanding = function IssueLanding(props) {
|
|
|
95
95
|
_props$imageWidth = props.imageWidth,
|
|
96
96
|
imageWidth = _props$imageWidth === undefined ? 480 : _props$imageWidth;
|
|
97
97
|
|
|
98
|
-
return
|
|
98
|
+
return React.createElement(
|
|
99
99
|
'div',
|
|
100
100
|
{ id: 'issueLanding' },
|
|
101
|
-
|
|
102
|
-
pubIssue.issue.source &&
|
|
101
|
+
React.createElement(Breadcrumbs, null),
|
|
102
|
+
pubIssue.issue.source && React.createElement(
|
|
103
103
|
'p',
|
|
104
104
|
{ className: 'badge badge-primary' },
|
|
105
105
|
pubIssue.issue.source
|
|
106
106
|
),
|
|
107
|
-
|
|
107
|
+
React.createElement(QueueDeckExpanded, {
|
|
108
108
|
client: client,
|
|
109
109
|
mapping: settings.mapping,
|
|
110
110
|
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,25 +1,25 @@
|
|
|
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-7c97a94d.js';
|
|
1
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
6
|
-
import './core.get-iterator-method-
|
|
7
|
-
import './
|
|
8
|
-
import React__default, { useRef, useEffect } from 'react';
|
|
9
|
-
import './index-93ec3c59.js';
|
|
7
|
+
import './_to-object-ee10dabb.js';
|
|
8
|
+
import './slicedToArray-648674b3.js';
|
|
9
|
+
import './web.dom.iterable-de3b4afb.js';
|
|
10
|
+
import './es6.string.iterator-c5179428.js';
|
|
11
|
+
import './core.get-iterator-method-0e6dc181.js';
|
|
12
|
+
import './AdSlot.js';
|
|
10
13
|
import 'prop-types';
|
|
11
|
-
import './
|
|
14
|
+
import './index-669ff425.js';
|
|
12
15
|
import './debounce-1a993acf.js';
|
|
13
|
-
import './
|
|
14
|
-
import './stringify-008c8802.js';
|
|
15
|
-
import './slicedToArray-7021e5df.js';
|
|
16
|
-
import './asyncToGenerator-7c654f36.js';
|
|
17
|
-
import './_set-species-cede29f8.js';
|
|
18
|
-
import Segment from './Segment.js';
|
|
16
|
+
import './isSymbol-807e927e.js';
|
|
19
17
|
import './Beam.js';
|
|
20
|
-
import './
|
|
21
|
-
import
|
|
22
|
-
import
|
|
18
|
+
import './asyncToGenerator-b0af4000.js';
|
|
19
|
+
import './_library-528f1934.js';
|
|
20
|
+
import './_set-species-09ba387c.js';
|
|
21
|
+
import './_iter-detect-256a4d61.js';
|
|
22
|
+
import './main-a2443735.js';
|
|
23
23
|
|
|
24
24
|
var LeftNav = function LeftNav(props) {
|
|
25
25
|
var leftItems = props.leftItems,
|
|
@@ -63,21 +63,21 @@ var LeftNav = function LeftNav(props) {
|
|
|
63
63
|
|
|
64
64
|
var renderListGroupItem = function renderListGroupItem(subRow) {
|
|
65
65
|
if (checkUrlIsExternal(subRow.url)) {
|
|
66
|
-
return
|
|
66
|
+
return React.createElement(
|
|
67
67
|
'a',
|
|
68
68
|
{ target: subRow.blank ? '_blank' : '_self', needsegmentsupport: subRow.needSegmentSupport ? 'true' : '', href: subRow.url },
|
|
69
69
|
subRow.name
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
return
|
|
73
|
+
return React.createElement(
|
|
74
74
|
'a',
|
|
75
75
|
{ href: subRow.url || '#', target: subRow.blank ? '_blank' : '_self', needsegmentsupport: subRow.needSegmentSupport ? 'true' : '' },
|
|
76
76
|
subRow.name
|
|
77
77
|
);
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
return
|
|
80
|
+
return React.createElement(
|
|
81
81
|
'section',
|
|
82
82
|
{ ref: leftNavRef },
|
|
83
83
|
leftItems && leftItems.map(function (row, index) {
|
|
@@ -85,27 +85,27 @@ var LeftNav = function LeftNav(props) {
|
|
|
85
85
|
// Since Webcast Ad should be between spotlight and sub navigation it should be passed as the second element of leftItems array from site level.
|
|
86
86
|
// Webcast AD should have atleast adUnit , networkID, and "_type" as "webcastAD"
|
|
87
87
|
if (row._type && row._type === 'webcastAD' && row.adUnit) {
|
|
88
|
-
return
|
|
88
|
+
return React.createElement(
|
|
89
89
|
'div',
|
|
90
90
|
{ key: index },
|
|
91
|
-
|
|
91
|
+
React.createElement(ADWebcast, { webcastAd: row })
|
|
92
92
|
);
|
|
93
93
|
} else {
|
|
94
|
-
return
|
|
94
|
+
return React.createElement(
|
|
95
95
|
'nav',
|
|
96
96
|
{ key: index, 'aria-label': 'Secondary' },
|
|
97
|
-
|
|
97
|
+
React.createElement(
|
|
98
98
|
'div',
|
|
99
99
|
{ style: { display: 'flex', justifyContent: 'space-between', flexWrap: 'wrap' }, className: 'secondary-nav-title list-group-item active' },
|
|
100
|
-
|
|
100
|
+
React.createElement(
|
|
101
101
|
'span',
|
|
102
102
|
{ className: 'mr-1', style: { display: 'inline-block', fontWeight: 'bold', fontSize: '1rem' } },
|
|
103
103
|
row.name
|
|
104
104
|
),
|
|
105
|
-
row.url && SeeAll &&
|
|
105
|
+
row.url && SeeAll && React.createElement(
|
|
106
106
|
'span',
|
|
107
107
|
{ style: { marginLeft: 'auto', display: 'inline-block' } },
|
|
108
|
-
|
|
108
|
+
React.createElement(
|
|
109
109
|
'a',
|
|
110
110
|
{ style: { color: 'white', fontSize: '.6rem' }, href: row.url },
|
|
111
111
|
'See All ',
|
|
@@ -113,11 +113,11 @@ var LeftNav = function LeftNav(props) {
|
|
|
113
113
|
)
|
|
114
114
|
)
|
|
115
115
|
),
|
|
116
|
-
|
|
116
|
+
React.createElement(
|
|
117
117
|
'ul',
|
|
118
118
|
{ style: sideNavStyles },
|
|
119
119
|
row.subQuery && row.subQuery.map(function (subRow, subIndex) {
|
|
120
|
-
return
|
|
120
|
+
return React.createElement(
|
|
121
121
|
ListGroup.Item,
|
|
122
122
|
{ as: 'li', key: subIndex + '_2' },
|
|
123
123
|
renderListGroupItem(subRow)
|
|
@@ -130,7 +130,7 @@ var LeftNav = function LeftNav(props) {
|
|
|
130
130
|
);
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
var LeftNav$1 =
|
|
133
|
+
var LeftNav$1 = React.memo(LeftNav);
|
|
134
134
|
|
|
135
135
|
export default LeftNav$1;
|
|
136
136
|
export { LeftNav };
|
package/dist/esm/MasterDeck.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import './
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
5
|
-
import '
|
|
6
|
-
import {
|
|
7
|
-
import './core.get-iterator-method-54d2e411.js';
|
|
8
|
-
import './_object-pie-71ac75a4.js';
|
|
9
|
-
import { _ as _extends } from './extends-cc5da797.js';
|
|
10
|
-
import './_object-sap-4d59d5bd.js';
|
|
11
|
-
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-7ee3e0c1.js';
|
|
12
|
-
import './define-property-de3fc946.js';
|
|
13
|
-
import './web.dom.iterable-8956f9a5.js';
|
|
14
|
-
import './typeof-08f2c380.js';
|
|
15
|
-
import './_is-array-49698029.js';
|
|
16
|
-
import React__default from 'react';
|
|
17
|
-
import { l as lib_3 } from './index-93ec3c59.js';
|
|
18
|
-
import 'prop-types';
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-aa76a4fe.js';
|
|
2
|
+
import { _ as _Promise } from './asyncToGenerator-b0af4000.js';
|
|
3
|
+
import { _ as _extends } from './extends-03593dc6.js';
|
|
4
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-d88f5b29.js';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { l as lib_3 } from './index-669ff425.js';
|
|
19
7
|
import Container from 'react-bootstrap/Container';
|
|
20
8
|
import 'react-bootstrap/Row';
|
|
21
9
|
import 'react-bootstrap/Col';
|
|
22
10
|
import 'react-bootstrap/Card';
|
|
23
|
-
import './moment-
|
|
11
|
+
import './moment-b6f49411.js';
|
|
24
12
|
import { withRouter } from 'next/router';
|
|
25
|
-
import './
|
|
13
|
+
import { l as lodash } from './lodash-ec8c6b48.js';
|
|
26
14
|
import { d as debounce_1 } from './debounce-1a993acf.js';
|
|
27
|
-
import { I as InfiniteScroll } from './index.es-
|
|
15
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
16
|
+
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
17
|
+
import './index-4de5c15f.js';
|
|
18
|
+
import { A as ADlgInfeed } from './ADlgInfeed-1f8fc733.js';
|
|
19
|
+
import { A as ADInfeed } from './ADInfeed-45191cf8.js';
|
|
20
|
+
import './main-a2443735.js';
|
|
21
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
22
|
+
import './es6.string.iterator-c5179428.js';
|
|
23
|
+
import './_to-object-ee10dabb.js';
|
|
24
|
+
import './_iter-detect-256a4d61.js';
|
|
25
|
+
import './core.get-iterator-method-0e6dc181.js';
|
|
26
|
+
import './web.dom.iterable-de3b4afb.js';
|
|
27
|
+
import './_library-528f1934.js';
|
|
28
|
+
import './_set-species-09ba387c.js';
|
|
29
|
+
import './_object-pie-71ac75a4.js';
|
|
30
|
+
import './_object-sap-0cecd031.js';
|
|
31
|
+
import './define-property-e013aae3.js';
|
|
32
|
+
import './typeof-5c759779.js';
|
|
33
|
+
import './_is-array-ffa65b7e.js';
|
|
34
|
+
import 'prop-types';
|
|
35
|
+
import './isSymbol-807e927e.js';
|
|
28
36
|
import 'react-dom';
|
|
29
|
-
import
|
|
30
|
-
import './
|
|
31
|
-
import './main-0465b2a0.js';
|
|
32
|
-
import './stringify-008c8802.js';
|
|
33
|
-
import './slicedToArray-7021e5df.js';
|
|
34
|
-
import { _ as _Promise } from './asyncToGenerator-7c654f36.js';
|
|
35
|
-
import './_set-species-cede29f8.js';
|
|
36
|
-
import './Segment.js';
|
|
37
|
-
import './Beam.js';
|
|
37
|
+
import './stringify-7c97a94d.js';
|
|
38
|
+
import './slicedToArray-648674b3.js';
|
|
38
39
|
import './AdSlot.js';
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import { A as ADlgInfeed } from './ADlgInfeed-e538f17a.js';
|
|
40
|
+
import './Beam.js';
|
|
41
|
+
import './Segment.js';
|
|
42
42
|
|
|
43
43
|
var MasterDeck = function (_React$Component) {
|
|
44
44
|
_inherits(MasterDeck, _React$Component);
|
|
@@ -55,7 +55,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
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.state = {
|
|
58
|
+
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.state = {
|
|
59
59
|
data: _this.data,
|
|
60
60
|
dataKeptToCompareNewDatarecord: _this.data,
|
|
61
61
|
per: _this.params ? _this.params.to : 2,
|
|
@@ -224,14 +224,14 @@ var MasterDeck = function (_React$Component) {
|
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
// please leave this for later debug purpose : Yong Jun.
|
|
227
|
-
/* console.log('page change reported', {
|
|
228
|
-
currentPage: currentPage,
|
|
229
|
-
pageNumber: pageNumber,
|
|
230
|
-
pathname: pathname,
|
|
231
|
-
path: path,
|
|
232
|
-
newPath: newPath,
|
|
233
|
-
firstPage: pageNumber === 1,
|
|
234
|
-
queryString: queryString
|
|
227
|
+
/* console.log('page change reported', {
|
|
228
|
+
currentPage: currentPage,
|
|
229
|
+
pageNumber: pageNumber,
|
|
230
|
+
pathname: pathname,
|
|
231
|
+
path: path,
|
|
232
|
+
newPath: newPath,
|
|
233
|
+
firstPage: pageNumber === 1,
|
|
234
|
+
queryString: queryString
|
|
235
235
|
}) */
|
|
236
236
|
|
|
237
237
|
if (pageview) {
|
|
@@ -319,7 +319,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
319
319
|
}
|
|
320
320
|
});
|
|
321
321
|
|
|
322
|
-
return
|
|
322
|
+
return React.createElement(
|
|
323
323
|
'div',
|
|
324
324
|
null,
|
|
325
325
|
data && _this.state.dataRemapped && data.length > 0 ? // If JS enabled and Data remapped with ads
|
|
@@ -327,24 +327,24 @@ var MasterDeck = function (_React$Component) {
|
|
|
327
327
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
328
328
|
|
|
329
329
|
if (row._type === 'lg-infeed' && row.adUnit) {
|
|
330
|
-
return
|
|
330
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
331
331
|
// Returning view for infeed Ad
|
|
332
332
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
333
|
-
return
|
|
333
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
334
334
|
} else if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
|
|
335
335
|
// Returning view for articles
|
|
336
|
-
return
|
|
336
|
+
return React.createElement(
|
|
337
337
|
VisibilitySensor,
|
|
338
338
|
{
|
|
339
339
|
key: row._id ? row._id : index,
|
|
340
340
|
onChange: function onChange(isVisible) {
|
|
341
341
|
isVisible && _this.changePageNumber(pageNumber);
|
|
342
342
|
} },
|
|
343
|
-
|
|
344
|
-
|
|
343
|
+
React.createElement(
|
|
344
|
+
React.Fragment,
|
|
345
345
|
{ key: index },
|
|
346
|
-
|
|
347
|
-
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 &&
|
|
346
|
+
React.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding }),
|
|
347
|
+
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React.createElement(
|
|
348
348
|
'div',
|
|
349
349
|
{ className: 'ad-container', style: { margin: '0 auto' } },
|
|
350
350
|
_this.renderMobileAd(index, numberOfItemsBeforeAd, _this.rightItems)
|
|
@@ -358,27 +358,27 @@ var MasterDeck = function (_React$Component) {
|
|
|
358
358
|
data.map(function (row, index) {
|
|
359
359
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
360
360
|
if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
|
|
361
|
-
return
|
|
361
|
+
return React.createElement(
|
|
362
362
|
VisibilitySensor,
|
|
363
363
|
{
|
|
364
364
|
key: row._id ? row._id : index,
|
|
365
365
|
onChange: function onChange(isVisible) {
|
|
366
366
|
isVisible && _this.changePageNumber(pageNumber);
|
|
367
367
|
} },
|
|
368
|
-
|
|
369
|
-
|
|
368
|
+
React.createElement(
|
|
369
|
+
React.Fragment,
|
|
370
370
|
{ key: index },
|
|
371
|
-
|
|
371
|
+
React.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding })
|
|
372
372
|
)
|
|
373
373
|
);
|
|
374
374
|
}
|
|
375
|
-
}) :
|
|
375
|
+
}) : React.createElement(
|
|
376
376
|
'div',
|
|
377
377
|
null,
|
|
378
|
-
|
|
378
|
+
React.createElement(
|
|
379
379
|
'h5',
|
|
380
380
|
null,
|
|
381
|
-
|
|
381
|
+
React.createElement(
|
|
382
382
|
'em',
|
|
383
383
|
null,
|
|
384
384
|
'New content coming soon, please check back later.'
|
|
@@ -388,7 +388,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
388
388
|
);
|
|
389
389
|
}, _this.renderMobileAd = function (index, numberOfItemsBeforeAd, rightItems) {
|
|
390
390
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
391
|
-
return
|
|
391
|
+
return React.createElement(
|
|
392
392
|
'div',
|
|
393
393
|
{ className: 'ad-container', style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
|
|
394
394
|
rightItems[i].component
|
|
@@ -405,15 +405,15 @@ var MasterDeck = function (_React$Component) {
|
|
|
405
405
|
return null;
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
-
return
|
|
408
|
+
return React.createElement(
|
|
409
409
|
'div',
|
|
410
410
|
{ className: 'd-flex justify-content-between' },
|
|
411
|
-
currentPage && currentPage > 1 &&
|
|
411
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
412
412
|
'a',
|
|
413
413
|
{ href: '?page=' + (currentPage - 1) },
|
|
414
414
|
'<< Previous'
|
|
415
415
|
),
|
|
416
|
-
|
|
416
|
+
React.createElement(
|
|
417
417
|
'a',
|
|
418
418
|
{ href: '?page=' + (currentPage + 1) },
|
|
419
419
|
'Next >>'
|
|
@@ -477,38 +477,38 @@ var MasterDeck = function (_React$Component) {
|
|
|
477
477
|
_props$lgInfeedAd = _props.lgInfeedAd,
|
|
478
478
|
lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd;
|
|
479
479
|
|
|
480
|
-
return
|
|
480
|
+
return React.createElement(
|
|
481
481
|
'div',
|
|
482
482
|
{ className: 'contentDeck' },
|
|
483
|
-
autoScroll ?
|
|
484
|
-
|
|
483
|
+
autoScroll ? React.createElement(
|
|
484
|
+
React.Fragment,
|
|
485
485
|
null,
|
|
486
|
-
|
|
486
|
+
React.createElement(
|
|
487
487
|
InfiniteScroll,
|
|
488
488
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
489
|
-
|
|
489
|
+
React.createElement(
|
|
490
490
|
Container,
|
|
491
491
|
null,
|
|
492
492
|
this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
|
|
493
493
|
)
|
|
494
494
|
),
|
|
495
|
-
|
|
495
|
+
React.createElement(
|
|
496
496
|
'noscript',
|
|
497
497
|
null,
|
|
498
498
|
this.renderManualPagination()
|
|
499
499
|
)
|
|
500
|
-
) :
|
|
501
|
-
|
|
500
|
+
) : React.createElement(
|
|
501
|
+
React.Fragment,
|
|
502
502
|
null,
|
|
503
|
-
|
|
503
|
+
React.createElement(
|
|
504
504
|
Container,
|
|
505
505
|
null,
|
|
506
506
|
this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
|
|
507
507
|
),
|
|
508
|
-
|
|
508
|
+
React.createElement(
|
|
509
509
|
'div',
|
|
510
510
|
{ style: { padding: '0px 10px' } },
|
|
511
|
-
this.state.scrolling &&
|
|
511
|
+
this.state.scrolling && React.createElement(
|
|
512
512
|
'button',
|
|
513
513
|
{
|
|
514
514
|
className: 'btn',
|
|
@@ -528,7 +528,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
528
528
|
'Load More'
|
|
529
529
|
)
|
|
530
530
|
),
|
|
531
|
-
|
|
531
|
+
React.createElement(
|
|
532
532
|
'noscript',
|
|
533
533
|
null,
|
|
534
534
|
this.renderManualPagination()
|
|
@@ -539,7 +539,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
539
539
|
}]);
|
|
540
540
|
|
|
541
541
|
return MasterDeck;
|
|
542
|
-
}(
|
|
542
|
+
}(React.Component);
|
|
543
543
|
|
|
544
544
|
var MasterDeck$1 = withRouter(MasterDeck);
|
|
545
545
|
|