@mjhls/mjh-framework 1.0.786-beta.1 → 1.0.786
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/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +27 -26
- package/dist/cjs/AD300x250x600.js +27 -26
- package/dist/cjs/AD728x90.js +30 -29
- package/dist/cjs/ADFloatingFooter.js +29 -28
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +29 -28
- package/dist/cjs/{ADInfeed-bb09e44c.js → ADInfeed-1e53d7db.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +29 -28
- package/dist/cjs/ADSponsoredResources.js +29 -28
- package/dist/cjs/ADWebcast.js +29 -28
- package/dist/cjs/ADWelcome.js +30 -29
- package/dist/cjs/{ADlgInfeed-fa91dbda.js → ADlgInfeed-2494fd17.js} +11 -10
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +32 -31
- package/dist/cjs/AdSlotsProvider.js +16 -15
- package/dist/cjs/AlphabeticList.js +25 -24
- package/dist/cjs/ArticleCarousel.js +24 -23
- package/dist/cjs/ArticleProgramLandingPage.js +57 -54
- package/dist/cjs/ArticleSeriesLandingPage.js +38 -37
- package/dist/cjs/ArticleSeriesListing.js +61 -60
- package/dist/cjs/Auth.js +4231 -0
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-5fa89df5.js} +14 -13
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-eca358e4.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/CMEDeck.js +82 -82
- 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 +24 -23
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +97 -93
- package/dist/cjs/DeckQueue.js +91 -87
- package/dist/cjs/{Dfp-b807d8fa.js → Dfp-a17e00fa.js} +32 -31
- package/dist/cjs/EventsDeck.js +138 -131
- package/dist/cjs/ExternalResources.js +80 -77
- package/dist/cjs/Feature.js +27 -25
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +181 -177
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +59 -58
- package/dist/cjs/HamMagazine.js +135 -130
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +71 -68
- 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 +40 -39
- package/dist/cjs/LeftNav.js +37 -35
- package/dist/cjs/MasterDeck.js +70 -69
- package/dist/cjs/MediaSeriesLanding.js +40 -38
- package/dist/cjs/NavDvm.js +79 -74
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +142 -137
- package/dist/cjs/NavNative.js +134 -126
- package/dist/cjs/NavNormal.js +52 -47
- 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 +112 -99
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PubSection.js +39 -38
- package/dist/cjs/PubToc.js +16 -15
- package/dist/cjs/PublicationDeck.js +66 -61
- package/dist/cjs/PublicationLanding.js +83 -79
- package/dist/cjs/QueueDeckExpanded.js +291 -291
- package/dist/cjs/RecentNews.js +24 -23
- package/dist/cjs/RelatedContent.js +25 -24
- package/dist/cjs/RelatedTopicsDropdown.js +22 -19
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +22 -18
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +37 -37
- package/dist/cjs/{SeriesSlider-f662f1f5.js → SeriesSlider-193a2958.js} +38 -37
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +35 -34
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-45c54bed.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +62 -57
- package/dist/cjs/TaxonomyDescription.js +54 -51
- package/dist/cjs/TemplateNormal.js +73 -72
- package/dist/cjs/ThumbnailCard.js +22 -20
- package/dist/cjs/Ustream.js +27 -26
- package/dist/cjs/VerticalHero.js +18 -17
- package/dist/cjs/VideoProgramLandingPage.js +76 -70
- package/dist/cjs/VideoSeriesCard.js +32 -31
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +46 -45
- package/dist/cjs/VideoSeriesListing.js +78 -77
- package/dist/cjs/View.js +261 -255
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +63 -62
- package/dist/cjs/{_is-array-754e012d.js → _is-array-63ae4740.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-2613ffa1.js} +2 -2
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-c5bd707d.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-bec5fcf2.js} +1 -1
- package/dist/cjs/{_to-object-329a650b.js → _to-object-821a2927.js} +4 -4
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-b6a175bf.js} +7 -7
- 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-b4615fd3.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-aff11f8a.js} +1 -1
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-d6fbb280.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-20d42c53.js} +2 -2
- package/dist/cjs/{extends-0a918631.js → extends-1e24fc8d.js} +1 -2
- package/dist/cjs/getRelatedArticle.js +443 -28
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +44 -42
- package/dist/cjs/{getTargeting-67f12cd7.js → getTargeting-497b581d.js} +3 -3
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-8bf6c863.js → index-0e4427c8.js} +12 -11
- package/dist/cjs/{index-3294d3bc.js → index-4d74ffd6.js} +40 -41
- package/dist/cjs/{index-57d0264f.js → index-4f6e2a09.js} +948 -1747
- package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index-be0c82be.js → index-d48b231c.js} +31 -25
- 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-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- 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 +166 -154
- package/dist/cjs/{inherits-452ff02c.js → inherits-2eb23889.js} +5 -8
- package/dist/cjs/{keys-a586b7a0.js → keys-95c064c9.js} +2 -2
- package/dist/cjs/{lodash-fc2922d0.js → lodash-4ef21f0f.js} +72 -23
- package/dist/cjs/{main-02daeefe.js → main-dc082238.js} +116 -80
- 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-8f385299.js → slicedToArray-db24842a.js} +4 -4
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/{stringify-7c5aff47.js → stringify-01cf47f7.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-cf0865fc.js} +4 -4
- package/dist/cjs/{typeof-725500bc.js → typeof-97065d40.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/util-6f784d85.js +576 -0
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-4480325a.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +23 -23
- package/dist/esm/AD300x250x600.js +23 -23
- package/dist/esm/AD728x90.js +26 -26
- package/dist/esm/ADFloatingFooter.js +25 -25
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +25 -25
- package/dist/esm/{ADInfeed-0b552b0a.js → ADInfeed-94817c40.js} +9 -9
- package/dist/esm/ADSkyscraper.js +25 -25
- package/dist/esm/ADSponsoredResources.js +25 -25
- package/dist/esm/ADWebcast.js +25 -25
- package/dist/esm/ADWelcome.js +26 -26
- package/dist/esm/{ADlgInfeed-49f41f83.js → ADlgInfeed-6124ee3c.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +22 -22
- package/dist/esm/AdSlotsProvider.js +12 -12
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +53 -51
- package/dist/esm/ArticleSeriesLandingPage.js +34 -34
- package/dist/esm/ArticleSeriesListing.js +55 -55
- package/dist/esm/Auth.js +4211 -0
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-c7ff069f.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d8cd739c.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +78 -78
- 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 +19 -19
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +75 -75
- package/dist/esm/DeckQueue.js +65 -65
- package/dist/esm/{Dfp-ebc4b22f.js → Dfp-988dbcaa.js} +21 -21
- package/dist/esm/EventsDeck.js +84 -84
- package/dist/esm/ExternalResources.js +72 -70
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +139 -139
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +67 -65
- 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 +36 -36
- package/dist/esm/LeftNav.js +31 -31
- package/dist/esm/MasterDeck.js +63 -63
- package/dist/esm/MediaSeriesLanding.js +31 -31
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -113
- package/dist/esm/NavNative.js +99 -99
- package/dist/esm/NavNormal.js +35 -35
- 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 +107 -95
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +35 -35
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +54 -54
- package/dist/esm/QueueDeckExpanded.js +271 -271
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +31 -31
- package/dist/esm/{SeriesSlider-9245785f.js → SeriesSlider-6a1081ff.js} +27 -27
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +30 -30
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-a2ae84d1.js → SocialSearchComponent-c3216d1a.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +48 -46
- package/dist/esm/TemplateNormal.js +66 -66
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +62 -60
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +38 -38
- package/dist/esm/VideoSeriesListing.js +71 -71
- package/dist/esm/View.js +241 -239
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +46 -46
- package/dist/esm/{_is-array-58e95429.js → _is-array-674f71ec.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-48516cd3.js} +2 -2
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-fd3054d0.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-8f409e54.js} +1 -1
- package/dist/esm/{_to-object-a4107da3.js → _to-object-97770c52.js} +5 -5
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-585841c0.js} +7 -7
- 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-e1de7503.js → core.get-iterator-method-d1d5ed02.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-ec6d528d.js} +1 -1
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-ea516b15.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-aa6068a3.js} +3 -3
- package/dist/esm/{extends-6f2fcc99.js → extends-31d65aba.js} +2 -2
- package/dist/esm/getRelatedArticle.js +443 -28
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +44 -42
- package/dist/esm/{getTargeting-ed6ebf43.js → getTargeting-2d402d66.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-73819142.js → index-3f5c03b2.js} +31 -25
- package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
- package/dist/esm/{index-0141b5a9.js → index-761f5e47.js} +874 -1681
- package/dist/esm/{index-a9e53f80.js → index-888f9253.js} +6 -6
- package/dist/esm/{index-ef6d5dcf.js → index-ccb770c7.js} +40 -41
- package/dist/esm/index-db3bb315.js +207 -0
- 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-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +132 -124
- package/dist/esm/{inherits-cf8dde54.js → inherits-5906fbea.js} +6 -6
- package/dist/esm/{keys-8eda7a5c.js → keys-a0b0c7a4.js} +2 -2
- package/dist/esm/{lodash-17fdfebb.js → lodash-ad27652f.js} +72 -23
- package/dist/esm/{main-e4a934b2.js → main-1450d277.js} +113 -78
- 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-641f241f.js → slicedToArray-cdeaee08.js} +4 -4
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/{stringify-4330ccdc.js → stringify-d4839bab.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-fa2dcda7.js} +4 -4
- package/dist/esm/{typeof-6435ba1c.js → typeof-e9cea9e8.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/util-3ab476bf.js +574 -0
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-035980f3.js} +3 -3
- package/package.json +3 -3
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
package/dist/esm/IssueDeck.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import './
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
4
|
-
import '
|
|
5
|
-
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
6
|
-
import './core.get-iterator-method-e1de7503.js';
|
|
7
|
-
import './_object-pie-33c40e79.js';
|
|
8
|
-
import { _ as _extends } from './extends-6f2fcc99.js';
|
|
9
|
-
import './web.dom.iterable-4439f05a.js';
|
|
10
|
-
import React__default, { useState, useEffect, useRef } from 'react';
|
|
11
|
-
import 'prop-types';
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
|
|
2
|
+
import { _ as _extends } from './extends-31d65aba.js';
|
|
3
|
+
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
4
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
12
5
|
import Row from 'react-bootstrap/Row';
|
|
13
6
|
import Col from 'react-bootstrap/Col';
|
|
7
|
+
import Button from 'react-bootstrap/Button';
|
|
14
8
|
import Card from 'react-bootstrap/Card';
|
|
15
|
-
import {
|
|
9
|
+
import { L as LazyLoad } from './index-752d1dae.js';
|
|
10
|
+
import { i as imageUrlBuilder } from './index-3f5c03b2.js';
|
|
11
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
12
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
13
|
+
import './es6.string.iterator-aa6068a3.js';
|
|
14
|
+
import './_to-object-97770c52.js';
|
|
15
|
+
import './_iter-detect-48516cd3.js';
|
|
16
|
+
import './core.get-iterator-method-d1d5ed02.js';
|
|
17
|
+
import './_object-pie-33c40e79.js';
|
|
18
|
+
import './web.dom.iterable-035980f3.js';
|
|
16
19
|
import 'react-dom';
|
|
17
|
-
import
|
|
18
|
-
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
19
|
-
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
20
|
-
import Button from 'react-bootstrap/Button';
|
|
20
|
+
import 'prop-types';
|
|
21
21
|
|
|
22
22
|
var usePrevious = function usePrevious(value) {
|
|
23
23
|
var ref = useRef();
|
|
@@ -133,71 +133,71 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
133
133
|
}
|
|
134
134
|
}, [issuesData, setScrolling, count]);
|
|
135
135
|
|
|
136
|
-
return
|
|
136
|
+
return React.createElement(
|
|
137
137
|
InfiniteScroll,
|
|
138
138
|
{ dataLength: issuesData && issuesData.length, next: function next() {
|
|
139
139
|
return loadMore();
|
|
140
140
|
}, hasMore: scrolling, scrollThreshold: 0.9 },
|
|
141
|
-
|
|
141
|
+
React.createElement(
|
|
142
142
|
Row,
|
|
143
143
|
null,
|
|
144
144
|
issuesData && issuesData.length ? issuesData.map(function (row, index) {
|
|
145
|
-
return publication && row.identifier && row.identifier.current &&
|
|
145
|
+
return publication && row.identifier && row.identifier.current && React.createElement(
|
|
146
146
|
Col,
|
|
147
147
|
{ md: 12, lg: 12, key: index },
|
|
148
|
-
|
|
148
|
+
React.createElement(
|
|
149
149
|
Card,
|
|
150
150
|
{ className: 'queue-card journal-queue', style: { borderTop: '1px solid #EEE' } },
|
|
151
|
-
|
|
151
|
+
React.createElement(
|
|
152
152
|
Row,
|
|
153
153
|
{ style: { flexDirection: 'left' } },
|
|
154
|
-
|
|
154
|
+
React.createElement(
|
|
155
155
|
Col,
|
|
156
156
|
{ md: 12, lg: 4, className: 'body-image', style: { textAlign: 'center' } },
|
|
157
|
-
row.issues.length > 0 ?
|
|
157
|
+
row.issues.length > 0 ? React.createElement(
|
|
158
158
|
'a',
|
|
159
159
|
{ href: href + '/' + publication + '/' + row.identifier.current, style: { width: '100%' } },
|
|
160
|
-
row.thumbnail &&
|
|
160
|
+
row.thumbnail && React.createElement(
|
|
161
161
|
LazyLoad,
|
|
162
162
|
{ height: imageHeight },
|
|
163
|
-
|
|
163
|
+
React.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.thumbnail), alt: row.name, style: { objectFit: 'contain' } })
|
|
164
164
|
)
|
|
165
|
-
) :
|
|
165
|
+
) : React.createElement(
|
|
166
166
|
'a',
|
|
167
167
|
null,
|
|
168
|
-
row.thumbnail &&
|
|
168
|
+
row.thumbnail && React.createElement(
|
|
169
169
|
LazyLoad,
|
|
170
170
|
{ height: imageHeight },
|
|
171
|
-
|
|
171
|
+
React.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.thumbnail), alt: row.name, style: { objectFit: 'contain' } })
|
|
172
172
|
)
|
|
173
173
|
)
|
|
174
174
|
),
|
|
175
|
-
|
|
175
|
+
React.createElement(
|
|
176
176
|
Col,
|
|
177
177
|
{ md: 12, lg: 8 },
|
|
178
|
-
|
|
178
|
+
React.createElement(
|
|
179
179
|
Card.Body,
|
|
180
180
|
{ style: { padding: '20px' }, className: 'body-text' },
|
|
181
|
-
|
|
181
|
+
React.createElement(
|
|
182
182
|
Row,
|
|
183
183
|
null,
|
|
184
|
-
|
|
184
|
+
React.createElement(
|
|
185
185
|
Col,
|
|
186
186
|
null,
|
|
187
|
-
|
|
187
|
+
React.createElement(
|
|
188
188
|
Card.Title,
|
|
189
189
|
null,
|
|
190
190
|
row.name
|
|
191
191
|
)
|
|
192
192
|
)
|
|
193
193
|
),
|
|
194
|
-
|
|
194
|
+
React.createElement(
|
|
195
195
|
Row,
|
|
196
196
|
null,
|
|
197
|
-
|
|
197
|
+
React.createElement(
|
|
198
198
|
Col,
|
|
199
199
|
null,
|
|
200
|
-
|
|
200
|
+
React.createElement(
|
|
201
201
|
'div',
|
|
202
202
|
null,
|
|
203
203
|
'Volume: ',
|
|
@@ -205,13 +205,13 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
205
205
|
)
|
|
206
206
|
)
|
|
207
207
|
),
|
|
208
|
-
|
|
208
|
+
React.createElement(
|
|
209
209
|
Row,
|
|
210
210
|
null,
|
|
211
|
-
|
|
211
|
+
React.createElement(
|
|
212
212
|
Col,
|
|
213
213
|
null,
|
|
214
|
-
|
|
214
|
+
React.createElement(
|
|
215
215
|
'div',
|
|
216
216
|
null,
|
|
217
217
|
'Number: ',
|
|
@@ -219,19 +219,19 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
219
219
|
)
|
|
220
220
|
)
|
|
221
221
|
),
|
|
222
|
-
|
|
222
|
+
React.createElement(
|
|
223
223
|
Row,
|
|
224
224
|
null,
|
|
225
|
-
row.issues.length > 0 &&
|
|
225
|
+
row.issues.length > 0 && React.createElement(
|
|
226
226
|
'a',
|
|
227
227
|
{ style: { paddingRight: '15px', paddingLeft: '15px' }, href: href + '/' + publication + '/' + row.identifier.current },
|
|
228
|
-
|
|
228
|
+
React.createElement(
|
|
229
229
|
Button,
|
|
230
230
|
{ style: { marginTop: '20px', marginRight: '1rem' }, variant: 'secondary' },
|
|
231
231
|
'View Issue'
|
|
232
232
|
)
|
|
233
233
|
),
|
|
234
|
-
row.pdf && row.pdf.asset &&
|
|
234
|
+
row.pdf && row.pdf.asset && React.createElement(
|
|
235
235
|
'a',
|
|
236
236
|
{ rel: 'noopener', href: row.pdf.asset.url, target: '_blank', className: 'btn btn-primary', style: { marginTop: '20px' } },
|
|
237
237
|
'Download Issue'
|
|
@@ -242,13 +242,13 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
242
242
|
)
|
|
243
243
|
)
|
|
244
244
|
);
|
|
245
|
-
}) :
|
|
245
|
+
}) : React.createElement(
|
|
246
246
|
'div',
|
|
247
247
|
null,
|
|
248
|
-
|
|
248
|
+
React.createElement(
|
|
249
249
|
'h5',
|
|
250
250
|
null,
|
|
251
|
-
|
|
251
|
+
React.createElement(
|
|
252
252
|
'em',
|
|
253
253
|
{ className: 'pl-3' },
|
|
254
254
|
'New content coming soon, please check back later.'
|
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
3
|
+
import Breadcrumbs from './Breadcrumbs.js';
|
|
4
|
+
import './slicedToArray-cdeaee08.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-035980f3.js';
|
|
7
|
+
import './es6.string.iterator-aa6068a3.js';
|
|
8
|
+
import './_to-object-97770c52.js';
|
|
9
|
+
import './core.get-iterator-method-d1d5ed02.js';
|
|
10
|
+
import './toConsumableArray-fa2dcda7.js';
|
|
11
|
+
import './_iter-detect-48516cd3.js';
|
|
12
|
+
import './extends-31d65aba.js';
|
|
8
13
|
import './_object-pie-33c40e79.js';
|
|
9
|
-
import '
|
|
10
|
-
import './
|
|
11
|
-
import
|
|
12
|
-
import './
|
|
14
|
+
import 'react-bootstrap';
|
|
15
|
+
import './index-3f5c03b2.js';
|
|
16
|
+
import './index.es-c6222053.js';
|
|
17
|
+
import './moment-bc12cb97.js';
|
|
18
|
+
import './visibility-sensor-082c757b.js';
|
|
19
|
+
import 'react-dom';
|
|
20
|
+
import './index-888f9253.js';
|
|
13
21
|
import 'prop-types';
|
|
14
|
-
import 'react-bootstrap/Card';
|
|
15
|
-
import './moment-e2f9b20c.js';
|
|
16
22
|
import 'next/router';
|
|
17
|
-
import './
|
|
23
|
+
import './index-752d1dae.js';
|
|
24
|
+
import './main-1450d277.js';
|
|
25
|
+
import './entities-932b50cf.js';
|
|
26
|
+
import './ADInfeed-94817c40.js';
|
|
27
|
+
import 'react-bootstrap/Card';
|
|
28
|
+
import './AdSlot.js';
|
|
18
29
|
import './debounce-9207d8ee.js';
|
|
30
|
+
import './isSymbol-1981418f.js';
|
|
19
31
|
import './toNumber-2f7a84cd.js';
|
|
20
|
-
import './index.es-29c1cef5.js';
|
|
21
|
-
import 'react-dom';
|
|
22
|
-
import './visibility-sensor-0baa4eea.js';
|
|
23
|
-
import './index-73819142.js';
|
|
24
|
-
import './index-5f9f807a.js';
|
|
25
|
-
import './main-e4a934b2.js';
|
|
26
|
-
import './entities-7cc3bf45.js';
|
|
27
|
-
import './slicedToArray-641f241f.js';
|
|
28
|
-
import './stringify-4330ccdc.js';
|
|
29
|
-
import './asyncToGenerator-fc1c2e29.js';
|
|
30
|
-
import './Segment.js';
|
|
31
32
|
import './Beam.js';
|
|
32
|
-
import './
|
|
33
|
-
import './
|
|
34
|
-
import './
|
|
35
|
-
import './
|
|
33
|
+
import './stringify-d4839bab.js';
|
|
34
|
+
import './asyncToGenerator-585841c0.js';
|
|
35
|
+
import './_library-528f1934.js';
|
|
36
|
+
import './Segment.js';
|
|
37
|
+
import './AuthorComponent-c7ff069f.js';
|
|
38
|
+
import './lodash-ad27652f.js';
|
|
39
|
+
import './ADlgInfeed-6124ee3c.js';
|
|
36
40
|
import './getContentCategory-15dcc413.js';
|
|
37
|
-
import './AuthorComponent-34b16174.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
44
|
/* usage
|
|
45
45
|
import Settings, { Ads } from '../../../../settings'
|
|
@@ -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/LeftNav.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
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 './slicedToArray-cdeaee08.js';
|
|
1
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './es6.string.iterator-
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
+
import './web.dom.iterable-035980f3.js';
|
|
8
|
+
import './es6.string.iterator-aa6068a3.js';
|
|
9
|
+
import './_to-object-97770c52.js';
|
|
10
|
+
import './core.get-iterator-method-d1d5ed02.js';
|
|
11
|
+
import './AdSlot.js';
|
|
12
|
+
import './extends-31d65aba.js';
|
|
7
13
|
import './_object-pie-33c40e79.js';
|
|
8
|
-
import './extends-6f2fcc99.js';
|
|
9
|
-
import './web.dom.iterable-4439f05a.js';
|
|
10
|
-
import React__default, { useRef, useEffect } from 'react';
|
|
11
|
-
import './index-a9e53f80.js';
|
|
12
14
|
import 'prop-types';
|
|
13
|
-
import './
|
|
15
|
+
import './index-888f9253.js';
|
|
14
16
|
import './debounce-9207d8ee.js';
|
|
17
|
+
import './isSymbol-1981418f.js';
|
|
15
18
|
import './toNumber-2f7a84cd.js';
|
|
16
|
-
import './main-e4a934b2.js';
|
|
17
|
-
import './slicedToArray-641f241f.js';
|
|
18
|
-
import './stringify-4330ccdc.js';
|
|
19
|
-
import './asyncToGenerator-fc1c2e29.js';
|
|
20
|
-
import Segment from './Segment.js';
|
|
21
19
|
import './Beam.js';
|
|
22
|
-
import './
|
|
23
|
-
import
|
|
24
|
-
import
|
|
20
|
+
import './stringify-d4839bab.js';
|
|
21
|
+
import './asyncToGenerator-585841c0.js';
|
|
22
|
+
import './_library-528f1934.js';
|
|
23
|
+
import './_iter-detect-48516cd3.js';
|
|
24
|
+
import './main-1450d277.js';
|
|
25
25
|
|
|
26
26
|
var LeftNav = function LeftNav(props) {
|
|
27
27
|
var leftItems = props.leftItems,
|
|
@@ -65,21 +65,21 @@ var LeftNav = function LeftNav(props) {
|
|
|
65
65
|
|
|
66
66
|
var renderListGroupItem = function renderListGroupItem(subRow) {
|
|
67
67
|
if (checkUrlIsExternal(subRow.url)) {
|
|
68
|
-
return
|
|
68
|
+
return React.createElement(
|
|
69
69
|
'a',
|
|
70
70
|
{ target: subRow.blank ? '_blank' : '_self', needsegmentsupport: subRow.needSegmentSupport ? 'true' : '', href: subRow.url },
|
|
71
71
|
subRow.name
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
return
|
|
75
|
+
return React.createElement(
|
|
76
76
|
'a',
|
|
77
77
|
{ href: subRow.url || '#', target: subRow.blank ? '_blank' : '_self', needsegmentsupport: subRow.needSegmentSupport ? 'true' : '' },
|
|
78
78
|
subRow.name
|
|
79
79
|
);
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
return
|
|
82
|
+
return React.createElement(
|
|
83
83
|
'section',
|
|
84
84
|
{ ref: leftNavRef },
|
|
85
85
|
leftItems && leftItems.map(function (row, index) {
|
|
@@ -87,27 +87,27 @@ var LeftNav = function LeftNav(props) {
|
|
|
87
87
|
// Since Webcast Ad should be between spotlight and sub navigation it should be passed as the second element of leftItems array from site level.
|
|
88
88
|
// Webcast AD should have atleast adUnit , networkID, and "_type" as "webcastAD"
|
|
89
89
|
if (row._type && row._type === 'webcastAD' && row.adUnit) {
|
|
90
|
-
return
|
|
90
|
+
return React.createElement(
|
|
91
91
|
'div',
|
|
92
92
|
{ key: index },
|
|
93
|
-
|
|
93
|
+
React.createElement(ADWebcast, { webcastAd: row, refreshFlag: row.refreshFlag ? row.refreshFlag : false })
|
|
94
94
|
);
|
|
95
95
|
} else {
|
|
96
|
-
return
|
|
96
|
+
return React.createElement(
|
|
97
97
|
'nav',
|
|
98
98
|
{ key: index, 'aria-label': 'Secondary' },
|
|
99
|
-
|
|
99
|
+
React.createElement(
|
|
100
100
|
'div',
|
|
101
101
|
{ style: { display: 'flex', justifyContent: 'space-between', flexWrap: 'wrap' }, className: 'secondary-nav-title list-group-item active' },
|
|
102
|
-
|
|
102
|
+
React.createElement(
|
|
103
103
|
'span',
|
|
104
104
|
{ className: 'mr-1', style: { display: 'inline-block', fontWeight: 'bold', fontSize: '1rem' } },
|
|
105
105
|
row.name
|
|
106
106
|
),
|
|
107
|
-
row.url && SeeAll &&
|
|
107
|
+
row.url && SeeAll && React.createElement(
|
|
108
108
|
'span',
|
|
109
109
|
{ style: { marginLeft: 'auto', display: 'inline-block' } },
|
|
110
|
-
|
|
110
|
+
React.createElement(
|
|
111
111
|
'a',
|
|
112
112
|
{ style: { color: 'white', fontSize: '.6rem' }, href: row.url },
|
|
113
113
|
'See All ',
|
|
@@ -115,11 +115,11 @@ var LeftNav = function LeftNav(props) {
|
|
|
115
115
|
)
|
|
116
116
|
)
|
|
117
117
|
),
|
|
118
|
-
|
|
118
|
+
React.createElement(
|
|
119
119
|
'ul',
|
|
120
120
|
{ style: sideNavStyles },
|
|
121
121
|
row.subQuery && row.subQuery.map(function (subRow, subIndex) {
|
|
122
|
-
return
|
|
122
|
+
return React.createElement(
|
|
123
123
|
ListGroup.Item,
|
|
124
124
|
{ as: 'li', key: subIndex + '_2' },
|
|
125
125
|
renderListGroupItem(subRow)
|
|
@@ -132,7 +132,7 @@ var LeftNav = function LeftNav(props) {
|
|
|
132
132
|
);
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
-
var LeftNav$1 =
|
|
135
|
+
var LeftNav$1 = React.memo(LeftNav);
|
|
136
136
|
|
|
137
137
|
export default LeftNav$1;
|
|
138
138
|
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-e1de7503.js';
|
|
8
|
-
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends } from './extends-6f2fcc99.js';
|
|
10
|
-
import './_object-sap-964b6feb.js';
|
|
11
|
-
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-cf8dde54.js';
|
|
12
|
-
import './define-property-8af5f002.js';
|
|
13
|
-
import './web.dom.iterable-4439f05a.js';
|
|
14
|
-
import './typeof-6435ba1c.js';
|
|
15
|
-
import './_is-array-58e95429.js';
|
|
16
|
-
import React__default from 'react';
|
|
17
|
-
import { l as lib_3 } from './index-a9e53f80.js';
|
|
18
|
-
import 'prop-types';
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
|
|
2
|
+
import { _ as _Promise } from './asyncToGenerator-585841c0.js';
|
|
3
|
+
import { _ as _extends } from './extends-31d65aba.js';
|
|
4
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-5906fbea.js';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { l as lib_3 } from './index-888f9253.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-bc12cb97.js';
|
|
24
12
|
import { withRouter } from 'next/router';
|
|
25
|
-
import './
|
|
13
|
+
import { l as lodash } from './lodash-ad27652f.js';
|
|
26
14
|
import { d as debounce_1 } from './debounce-9207d8ee.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-6124ee3c.js';
|
|
19
|
+
import { A as ADInfeed } from './ADInfeed-94817c40.js';
|
|
20
|
+
import './main-1450d277.js';
|
|
21
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
22
|
+
import './es6.string.iterator-aa6068a3.js';
|
|
23
|
+
import './_to-object-97770c52.js';
|
|
24
|
+
import './_iter-detect-48516cd3.js';
|
|
25
|
+
import './core.get-iterator-method-d1d5ed02.js';
|
|
26
|
+
import './web.dom.iterable-035980f3.js';
|
|
27
|
+
import './_library-528f1934.js';
|
|
28
|
+
import './_object-pie-33c40e79.js';
|
|
29
|
+
import './_object-sap-fd3054d0.js';
|
|
30
|
+
import './define-property-ec6d528d.js';
|
|
31
|
+
import './typeof-e9cea9e8.js';
|
|
32
|
+
import './_is-array-674f71ec.js';
|
|
33
|
+
import 'prop-types';
|
|
34
|
+
import './isSymbol-1981418f.js';
|
|
27
35
|
import './toNumber-2f7a84cd.js';
|
|
28
|
-
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
29
36
|
import 'react-dom';
|
|
30
|
-
import
|
|
31
|
-
import './index-73819142.js';
|
|
32
|
-
import './main-e4a934b2.js';
|
|
33
|
-
import './slicedToArray-641f241f.js';
|
|
34
|
-
import './stringify-4330ccdc.js';
|
|
35
|
-
import { _ as _Promise } from './asyncToGenerator-fc1c2e29.js';
|
|
36
|
-
import './Segment.js';
|
|
37
|
-
import './Beam.js';
|
|
37
|
+
import './slicedToArray-cdeaee08.js';
|
|
38
38
|
import './AdSlot.js';
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
39
|
+
import './Beam.js';
|
|
40
|
+
import './stringify-d4839bab.js';
|
|
41
|
+
import './Segment.js';
|
|
42
42
|
|
|
43
43
|
var MasterDeck = function (_React$Component) {
|
|
44
44
|
_inherits(MasterDeck, _React$Component);
|
|
@@ -326,7 +326,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
326
326
|
}
|
|
327
327
|
});
|
|
328
328
|
|
|
329
|
-
return
|
|
329
|
+
return React.createElement(
|
|
330
330
|
'div',
|
|
331
331
|
null,
|
|
332
332
|
data && _this.state.dataRemapped && data.length > 0 ? // If JS enabled and Data remapped with ads
|
|
@@ -334,24 +334,24 @@ var MasterDeck = function (_React$Component) {
|
|
|
334
334
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
335
335
|
|
|
336
336
|
if (row._type === 'lg-infeed' && row.adUnit) {
|
|
337
|
-
return
|
|
337
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
338
338
|
// Returning view for infeed Ad
|
|
339
339
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
340
|
-
return
|
|
340
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
341
341
|
} else if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
|
|
342
342
|
// Returning view for articles
|
|
343
|
-
return
|
|
343
|
+
return React.createElement(
|
|
344
344
|
VisibilitySensor,
|
|
345
345
|
{
|
|
346
346
|
key: row._id ? row._id : index,
|
|
347
347
|
onChange: function onChange(isVisible) {
|
|
348
348
|
isVisible && _this.changePageNumber(pageNumber);
|
|
349
349
|
} },
|
|
350
|
-
|
|
351
|
-
|
|
350
|
+
React.createElement(
|
|
351
|
+
React.Fragment,
|
|
352
352
|
{ key: index },
|
|
353
|
-
|
|
354
|
-
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 &&
|
|
353
|
+
React.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding }),
|
|
354
|
+
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React.createElement(
|
|
355
355
|
'div',
|
|
356
356
|
{ className: 'ad-container', style: { margin: '0 auto' } },
|
|
357
357
|
_this.renderMobileAd(index, numberOfItemsBeforeAd, _this.rightItems)
|
|
@@ -365,24 +365,24 @@ var MasterDeck = function (_React$Component) {
|
|
|
365
365
|
data.map(function (row, index) {
|
|
366
366
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
367
367
|
if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
|
|
368
|
-
return
|
|
368
|
+
return React.createElement(
|
|
369
369
|
VisibilitySensor,
|
|
370
370
|
{
|
|
371
371
|
key: row._id ? row._id : index,
|
|
372
372
|
onChange: function onChange(isVisible) {
|
|
373
373
|
isVisible && _this.changePageNumber(pageNumber);
|
|
374
374
|
} },
|
|
375
|
-
|
|
376
|
-
|
|
375
|
+
React.createElement(
|
|
376
|
+
React.Fragment,
|
|
377
377
|
{ key: index },
|
|
378
|
-
|
|
378
|
+
React.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding })
|
|
379
379
|
)
|
|
380
380
|
);
|
|
381
381
|
}
|
|
382
|
-
}) :
|
|
382
|
+
}) : React.createElement(
|
|
383
383
|
'div',
|
|
384
384
|
null,
|
|
385
|
-
|
|
385
|
+
React.createElement(
|
|
386
386
|
'em',
|
|
387
387
|
null,
|
|
388
388
|
'New content coming soon, please check back later.'
|
|
@@ -391,7 +391,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
391
391
|
);
|
|
392
392
|
}, _this.renderMobileAd = function (index, numberOfItemsBeforeAd, rightItems) {
|
|
393
393
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
394
|
-
return
|
|
394
|
+
return React.createElement(
|
|
395
395
|
'div',
|
|
396
396
|
{ className: 'ad-container', style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
|
|
397
397
|
rightItems[i].component
|
|
@@ -408,15 +408,15 @@ var MasterDeck = function (_React$Component) {
|
|
|
408
408
|
return null;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
-
return
|
|
411
|
+
return React.createElement(
|
|
412
412
|
'div',
|
|
413
413
|
{ className: 'd-flex justify-content-between' },
|
|
414
|
-
currentPage && currentPage > 1 &&
|
|
414
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
415
415
|
'a',
|
|
416
416
|
{ href: '?page=' + (currentPage - 1) },
|
|
417
417
|
'<< Previous'
|
|
418
418
|
),
|
|
419
|
-
|
|
419
|
+
React.createElement(
|
|
420
420
|
'a',
|
|
421
421
|
{ href: '?page=' + (currentPage + 1) },
|
|
422
422
|
'Next >>'
|
|
@@ -480,38 +480,38 @@ var MasterDeck = function (_React$Component) {
|
|
|
480
480
|
_props$lgInfeedAd = _props.lgInfeedAd,
|
|
481
481
|
lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd;
|
|
482
482
|
|
|
483
|
-
return
|
|
483
|
+
return React.createElement(
|
|
484
484
|
'div',
|
|
485
485
|
{ className: 'contentDeck' },
|
|
486
|
-
autoScroll ?
|
|
487
|
-
|
|
486
|
+
autoScroll ? React.createElement(
|
|
487
|
+
React.Fragment,
|
|
488
488
|
null,
|
|
489
|
-
|
|
489
|
+
React.createElement(
|
|
490
490
|
InfiniteScroll,
|
|
491
491
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
492
|
-
|
|
492
|
+
React.createElement(
|
|
493
493
|
Container,
|
|
494
494
|
null,
|
|
495
495
|
this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
|
|
496
496
|
)
|
|
497
497
|
),
|
|
498
|
-
|
|
498
|
+
React.createElement(
|
|
499
499
|
'noscript',
|
|
500
500
|
null,
|
|
501
501
|
this.renderManualPagination()
|
|
502
502
|
)
|
|
503
|
-
) :
|
|
504
|
-
|
|
503
|
+
) : React.createElement(
|
|
504
|
+
React.Fragment,
|
|
505
505
|
null,
|
|
506
|
-
|
|
506
|
+
React.createElement(
|
|
507
507
|
Container,
|
|
508
508
|
null,
|
|
509
509
|
this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
|
|
510
510
|
),
|
|
511
|
-
|
|
511
|
+
React.createElement(
|
|
512
512
|
'div',
|
|
513
513
|
{ style: { padding: '0px 10px' } },
|
|
514
|
-
this.state.scrolling &&
|
|
514
|
+
this.state.scrolling && React.createElement(
|
|
515
515
|
'button',
|
|
516
516
|
{
|
|
517
517
|
className: 'btn',
|
|
@@ -531,7 +531,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
531
531
|
'Load More'
|
|
532
532
|
)
|
|
533
533
|
),
|
|
534
|
-
|
|
534
|
+
React.createElement(
|
|
535
535
|
'noscript',
|
|
536
536
|
null,
|
|
537
537
|
this.renderManualPagination()
|
|
@@ -542,7 +542,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
542
542
|
}]);
|
|
543
543
|
|
|
544
544
|
return MasterDeck;
|
|
545
|
-
}(
|
|
545
|
+
}(React.Component);
|
|
546
546
|
|
|
547
547
|
var MasterDeck$1 = withRouter(MasterDeck);
|
|
548
548
|
|