@mjhls/mjh-framework 1.0.866 → 1.0.867
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +10 -11
- package/dist/cjs/AD300x250x600.js +10 -11
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +10 -11
- package/dist/cjs/ADFooter.js +3 -5
- package/dist/cjs/ADGutter.js +10 -11
- package/dist/cjs/{ADInfeed-f8324b70.js → ADInfeed-7d13830e.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +10 -11
- package/dist/cjs/ADSponsoredResources.js +10 -11
- package/dist/cjs/ADWebcast.js +10 -11
- package/dist/cjs/ADWelcome.js +10 -11
- package/dist/cjs/{ADlgInfeed-98d7c699.js → ADlgInfeed-d9dbfadc.js} +1 -1
- package/dist/cjs/AccordionPanel.js +5 -7
- package/dist/cjs/AdSlot.js +10 -11
- package/dist/cjs/AdSlotsProvider.js +8 -9
- package/dist/cjs/AlgoliaSearch.js +14105 -24
- package/dist/cjs/AlphabeticList.js +6 -8
- package/dist/cjs/ArticleCarousel.js +5 -7
- package/dist/cjs/ArticleProgramLandingPage.js +20 -21
- package/dist/cjs/ArticleSeriesLandingPage.js +18 -19
- package/dist/cjs/ArticleSeriesListing.js +14 -15
- package/dist/cjs/Auth.js +7 -9
- package/dist/cjs/AuthWrapper.js +4 -6
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-39b37d84.js} +1 -1
- package/dist/cjs/Beam.js +5 -7
- package/dist/cjs/Breadcrumbs.js +3 -5
- package/dist/cjs/CMEDeck.js +10 -11
- package/dist/cjs/Column2.js +6 -8
- package/dist/cjs/Column3.js +12 -13
- package/dist/cjs/ConferenceArticleCard.js +18 -15
- package/dist/cjs/DeckContent.js +25 -26
- package/dist/cjs/DeckQueue.js +14 -14
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-9be904d5.js} +5 -6
- package/dist/cjs/EventsDeck.js +30 -32
- package/dist/cjs/ExternalResources.js +20 -21
- package/dist/cjs/Feature.js +5 -2
- package/dist/cjs/ForbesHero.js +4 -6
- package/dist/cjs/GridContent.js +19 -20
- package/dist/cjs/GridHero.js +4 -6
- package/dist/cjs/GroupDeck.js +5 -7
- package/dist/cjs/HamMagazine.js +20 -22
- package/dist/cjs/Hero.js +4 -1
- package/dist/cjs/HorizontalArticleListing.js +20 -21
- package/dist/cjs/HorizontalHero.js +5 -2
- package/dist/cjs/IssueContentDeck.js +4 -6
- package/dist/cjs/IssueDeck.js +6 -8
- package/dist/cjs/IssueLanding.js +52 -53
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +10 -11
- package/dist/cjs/MasterDeck.js +26 -27
- package/dist/cjs/MediaSeriesLanding.js +320 -422
- package/dist/cjs/NavDvm.js +5 -7
- package/dist/cjs/NavMagazine.js +21 -23
- package/dist/cjs/NavNative.js +17 -19
- package/dist/cjs/OncliveHero.js +5 -2
- package/dist/cjs/OncliveLargeHero.js +4 -6
- package/dist/cjs/PageFilter.js +3 -5
- package/dist/cjs/PartnerDetailListing.js +23 -24
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +3 -5
- package/dist/cjs/PubSection.js +14 -15
- package/dist/cjs/PubToc.js +5 -7
- package/dist/cjs/PublicationDeck.js +3 -0
- package/dist/cjs/PublicationLanding.js +61 -63
- package/dist/cjs/QueueDeckExpanded.js +14 -15
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +31 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +3 -5
- package/dist/cjs/Segment.js +4 -6
- package/dist/cjs/SeriesListingDeck.js +10 -11
- package/dist/cjs/{SeriesSlider-e3e8ead7.js → SeriesSlider-ce3261cb.js} +6 -6
- package/dist/cjs/SideFooter.js +8 -10
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-a4ae7b88.js} +4 -4
- package/dist/cjs/TaxonomyCard.js +4 -2
- package/dist/cjs/TaxonomyDescription.js +20 -21
- package/dist/cjs/TemplateNormal.js +17 -18
- package/dist/cjs/ThumbnailCard.js +4 -1
- package/dist/cjs/Ustream.js +10 -12
- package/dist/cjs/VerticalHero.js +3 -0
- package/dist/cjs/VideoProgramLandingPage.js +20 -21
- package/dist/cjs/VideoSeriesCard.js +6 -6
- package/dist/cjs/VideoSeriesFilter.js +5 -7
- package/dist/cjs/VideoSeriesLandingPage.js +18 -19
- package/dist/cjs/VideoSeriesListing.js +14 -15
- package/dist/cjs/View.js +25 -26
- package/dist/cjs/YahooHero.js +4 -6
- package/dist/cjs/YoutubeGroup.js +8 -10
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-54228b29.js} +9 -9
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-b1df62f0.js} +6 -7
- package/dist/cjs/_object-sap-d1978572.js +16 -0
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-ce86cae7.js} +4 -4
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-77821af0.js} +65 -67
- package/dist/cjs/{_to-object-6de10e57.js → core.get-iterator-method-5643aa10.js} +248 -12
- package/dist/cjs/{define-property-c88be878.js → define-property-e8404b64.js} +3 -3
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-9673846a.js} +1 -1
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-29bdbc6d.js → extends-7c86182f.js} +8 -8
- package/dist/cjs/faundadb.js +4 -6
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +4 -6
- package/dist/cjs/getRootDocGroup.js +4 -6
- package/dist/cjs/getSerializers.js +20 -21
- package/dist/cjs/{getTargeting-32d1c2e4.js → getTargeting-9d509319.js} +11 -11
- package/dist/cjs/getTargeting.js +5 -7
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/index-8041a4eb.js +99 -0
- package/dist/cjs/{index-32097c80.js → index-ad4e6a69.js} +42 -21
- package/dist/cjs/{index-0e4427c8.js → index-fc2f1ca2.js} +2 -467
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-05850a2f.js} +1 -1
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-44f3e2d0.js} +1 -1
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-8123cf40.js} +1 -1
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-974f47d9.js} +1 -1
- package/dist/cjs/index.js +32 -33
- package/dist/cjs/{inherits-c2065b95.js → inherits-de66ea16.js} +13 -14
- package/dist/cjs/{keys-7f2c2108.js → keys-e982b3fa.js} +4 -4
- package/dist/cjs/{main-f1c77adb.js → main-025fdc78.js} +3 -3
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-067dd3bc.js} +7 -9
- package/dist/cjs/{stringify-c9ac1214.js → stringify-f7a37a8d.js} +2 -2
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-d7797c2b.js} +8 -10
- package/dist/cjs/{typeof-88a668c5.js → typeof-567e31ff.js} +73 -74
- package/dist/cjs/urlFor.js +18 -1
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-3819e4aa.js} +4 -4
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-d98303e0.js} +8 -9
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +14 -15
- package/dist/esm/AD300x250x600.js +14 -15
- package/dist/esm/AD728x90.js +15 -16
- package/dist/esm/ADFloatingFooter.js +17 -18
- package/dist/esm/ADFooter.js +9 -11
- package/dist/esm/ADGutter.js +17 -18
- package/dist/esm/{ADInfeed-a71a3972.js → ADInfeed-0cbd7bed.js} +6 -6
- package/dist/esm/ADSkyscraper.js +17 -18
- package/dist/esm/ADSponsoredResources.js +17 -18
- package/dist/esm/ADWebcast.js +17 -18
- package/dist/esm/ADWelcome.js +21 -22
- package/dist/esm/{ADlgInfeed-d94f1437.js → ADlgInfeed-2d1a52d9.js} +5 -5
- package/dist/esm/AccordionPanel.js +21 -23
- package/dist/esm/AdSlot.js +13 -14
- package/dist/esm/AdSlotsProvider.js +10 -11
- package/dist/esm/AlgoliaSearch.js +14127 -46
- package/dist/esm/AlphabeticList.js +19 -21
- package/dist/esm/ArticleCarousel.js +10 -12
- package/dist/esm/ArticleProgramLandingPage.js +32 -33
- package/dist/esm/ArticleSeriesLandingPage.js +26 -27
- package/dist/esm/ArticleSeriesListing.js +41 -42
- package/dist/esm/Auth.js +77 -79
- package/dist/esm/AuthWrapper.js +29 -31
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-46a745ba.js} +11 -11
- package/dist/esm/Beam.js +5 -7
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-52cf21c5.js} +3 -3
- package/dist/esm/Breadcrumbs.js +14 -16
- package/dist/esm/CMEDeck.js +69 -70
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +18 -20
- package/dist/esm/Column3.js +33 -34
- package/dist/esm/ConferenceArticleCard.js +31 -28
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +71 -72
- package/dist/esm/DeckQueue.js +54 -54
- package/dist/esm/{Dfp-be030f2a.js → Dfp-4ca12f2e.js} +14 -15
- package/dist/esm/EventsDeck.js +91 -93
- package/dist/esm/ExternalResources.js +50 -51
- package/dist/esm/Feature.js +19 -16
- package/dist/esm/ForbesHero.js +29 -31
- package/dist/esm/GridContent.js +138 -139
- package/dist/esm/GridHero.js +30 -32
- package/dist/esm/GroupDeck.js +39 -41
- package/dist/esm/HamMagazine.js +100 -102
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +46 -47
- package/dist/esm/HorizontalHero.js +23 -20
- package/dist/esm/IssueContentDeck.js +42 -44
- package/dist/esm/IssueDeck.js +39 -41
- package/dist/esm/IssueLanding.js +66 -67
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +24 -25
- package/dist/esm/MasterDeck.js +60 -61
- package/dist/esm/MediaSeriesLanding.js +347 -449
- package/dist/esm/NavDvm.js +48 -50
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +104 -106
- package/dist/esm/NavNative.js +91 -93
- package/dist/esm/OncliveHero.js +17 -14
- package/dist/esm/OncliveLargeHero.js +53 -55
- package/dist/esm/PageFilter.js +9 -11
- package/dist/esm/PartnerDetailListing.js +81 -82
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +11 -13
- package/dist/esm/PubSection.js +23 -24
- package/dist/esm/PubToc.js +10 -12
- package/dist/esm/PublicationDeck.js +36 -33
- package/dist/esm/PublicationLanding.js +83 -85
- package/dist/esm/QueueDeckExpanded.js +255 -256
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +46 -43
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +8 -10
- package/dist/esm/Segment.js +4 -6
- package/dist/esm/SeriesListingDeck.js +26 -27
- package/dist/esm/{SeriesSlider-ae17159f.js → SeriesSlider-485f514e.js} +24 -24
- package/dist/esm/SideFooter.js +27 -29
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-41b6b480.js} +23 -23
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +39 -37
- package/dist/esm/TaxonomyDescription.js +28 -29
- package/dist/esm/TemplateNormal.js +39 -40
- package/dist/esm/ThumbnailCard.js +13 -10
- package/dist/esm/Ustream.js +24 -26
- package/dist/esm/VerticalHero.js +14 -11
- package/dist/esm/VideoProgramLandingPage.js +39 -40
- package/dist/esm/VideoSeriesCard.js +20 -20
- package/dist/esm/VideoSeriesFilter.js +11 -13
- package/dist/esm/VideoSeriesLandingPage.js +26 -27
- package/dist/esm/VideoSeriesListing.js +57 -58
- package/dist/esm/View.js +189 -190
- package/dist/esm/YahooHero.js +26 -28
- package/dist/esm/YoutubeGroup.js +35 -37
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-893ab020.js} +1 -1
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-f089461c.js} +1 -2
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-169d6272.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-50a6b9a3.js} +1 -1
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-b4dfe691.js} +3 -5
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-b43c695a.js} +3 -3
- package/dist/esm/{_to-object-b50e61c3.js → core.get-iterator-method-e903ff31.js} +239 -10
- package/dist/esm/{define-property-fe54dc9f.js → define-property-99e66838.js} +1 -1
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-8fa0bc8d.js} +1 -1
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-60e0e1c6.js → extends-dc6a71fd.js} +1 -1
- package/dist/esm/faundadb.js +4 -6
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +4 -6
- package/dist/esm/getRootDocGroup.js +4 -6
- package/dist/esm/getSerializers.js +23 -24
- package/dist/esm/{getTargeting-cf2724e3.js → getTargeting-ff2c9409.js} +11 -11
- package/dist/esm/getTargeting.js +5 -7
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-5cc7b406.js → index-2446af28.js} +4 -469
- package/dist/esm/{index-755f2cc2.js → index-35bdcc81.js} +4 -4
- package/dist/esm/{index-5e84f9cd.js → index-61397130.js} +452 -431
- package/dist/esm/index-67e1773f.js +94 -0
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-f6156a57.js → index.esm-3fdda599.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8016b507.js} +16 -16
- package/dist/esm/{index.esm-d4932dea.js → index.esm-a8ff922c.js} +1 -1
- package/dist/esm/{index.esm-9b042655.js → index.esm-c6715e80.js} +1 -1
- package/dist/esm/index.js +56 -57
- package/dist/esm/{inherits-a41fe93f.js → inherits-8a801a18.js} +4 -5
- package/dist/esm/{keys-7a3adabf.js → keys-425c8ab0.js} +2 -2
- package/dist/esm/{main-d4165069.js → main-b5c5aac1.js} +19 -19
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-91f9716f.js} +5 -5
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-ca2c8b8d.js} +2 -4
- package/dist/esm/{stringify-59c8f690.js → stringify-c21932b3.js} +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-7b1c0e23.js} +2 -4
- package/dist/esm/{typeof-a286cf0c.js → typeof-83d9eb10.js} +3 -4
- package/dist/esm/urlFor.js +18 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-41166338.js} +4 -4
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-fdf034f5.js} +1 -2
- package/package.json +111 -111
- package/dist/cjs/_object-sap-a175b4a9.js +0 -16
- package/dist/cjs/core.get-iterator-method-f474eacc.js +0 -39
- package/dist/cjs/es6.string.iterator-c2573ffd.js +0 -210
- package/dist/esm/core.get-iterator-method-133dfacd.js +0 -36
- package/dist/esm/es6.string.iterator-bc33758b.js +0 -201
package/dist/esm/RecentNews.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { a as FaLongArrowAltRight } from './index.esm-
|
|
3
|
-
import './iconBase-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { a as FaLongArrowAltRight } from './index.esm-a8ff922c.js';
|
|
3
|
+
import './iconBase-602d52fe.js';
|
|
4
4
|
|
|
5
5
|
var RecentNews = function RecentNews(_ref) {
|
|
6
6
|
_ref.client;
|
|
@@ -19,39 +19,39 @@ var RecentNews = function RecentNews(_ref) {
|
|
|
19
19
|
var topArticle = dataRecord[0];
|
|
20
20
|
var subArticles = dataRecord.slice(1, dataRecord.length);
|
|
21
21
|
|
|
22
|
-
return
|
|
22
|
+
return React.createElement(
|
|
23
23
|
'div',
|
|
24
24
|
{ className: 'recent-news-container', style: { border: '3px solid ' + borderColor } },
|
|
25
|
-
|
|
25
|
+
React.createElement(
|
|
26
26
|
'div',
|
|
27
27
|
{ className: 'recent-news-title' },
|
|
28
|
-
|
|
28
|
+
React.createElement(
|
|
29
29
|
'h2',
|
|
30
30
|
null,
|
|
31
31
|
heroTitle
|
|
32
32
|
),
|
|
33
|
-
|
|
33
|
+
React.createElement('div', null)
|
|
34
34
|
),
|
|
35
|
-
|
|
35
|
+
React.createElement(
|
|
36
36
|
'div',
|
|
37
37
|
{ className: 'recent-news-inner' },
|
|
38
|
-
|
|
38
|
+
React.createElement(
|
|
39
39
|
'div',
|
|
40
40
|
{ className: 'recent-article-wrap', style: { flexBasis: '100%' } },
|
|
41
|
-
|
|
41
|
+
React.createElement(
|
|
42
42
|
'a',
|
|
43
43
|
{ href: '/view/' + topArticle.url.current, className: 'recent-article' },
|
|
44
|
-
|
|
44
|
+
React.createElement(
|
|
45
45
|
'p',
|
|
46
46
|
null,
|
|
47
47
|
topArticle.title
|
|
48
48
|
)
|
|
49
49
|
),
|
|
50
50
|
subArticles.map(function (article, index) {
|
|
51
|
-
return
|
|
51
|
+
return React.createElement(
|
|
52
52
|
'a',
|
|
53
53
|
{ key: index, href: '/view/' + article.url.current, className: 'recent-article' },
|
|
54
|
-
|
|
54
|
+
React.createElement(
|
|
55
55
|
'p',
|
|
56
56
|
null,
|
|
57
57
|
article.title
|
|
@@ -60,21 +60,21 @@ var RecentNews = function RecentNews(_ref) {
|
|
|
60
60
|
})
|
|
61
61
|
)
|
|
62
62
|
),
|
|
63
|
-
linkTo &&
|
|
63
|
+
linkTo && React.createElement(
|
|
64
64
|
'div',
|
|
65
65
|
{ className: 'recent-view-more' },
|
|
66
|
-
|
|
66
|
+
React.createElement(
|
|
67
67
|
'a',
|
|
68
68
|
{ href: linkTo },
|
|
69
69
|
linkTitle,
|
|
70
|
-
|
|
70
|
+
React.createElement(
|
|
71
71
|
'span',
|
|
72
72
|
null,
|
|
73
|
-
|
|
73
|
+
React.createElement(FaLongArrowAltRight, { color: 'var(--primary)' })
|
|
74
74
|
)
|
|
75
75
|
)
|
|
76
76
|
),
|
|
77
|
-
|
|
77
|
+
React.createElement(
|
|
78
78
|
'style',
|
|
79
79
|
{ jsx: 'true' },
|
|
80
80
|
'\n .recent-news-container {\n margin-bottom: 1.7rem;\n margin-top: 1rem;\n position: relative;\n }\n .recent-news-title {\n position: absolute;\n top: -10px;\n background: white;\n z-index: 2;\n left: 10px;\n padding-right: 0.25rem;\n padding-left: 0.25rem;\n font-weight: bold;\n }\n .recent-news-title h2 {\n font-size: 0.9rem;\n font-weight: bold;\n }\n .recent-news-inner {\n display: flex;\n flex-direction: row;\n padding-top: 0.75rem;\n margin-top: 0.75rem;\n }\n .recent-article-wrap {\n padding: 0 0.5rem;\n }\n \n .recent-article {\n border-bottom: 1px solid #ccc;\n display: block;\n margin-bottom: 0.5rem;\n }\n .recent-article:last-child {\n border-bottom: none;\n }\n .recent-article:hover {\n background: #eee;\n }\n .recent-article p {\n font-size: 0.7rem;\n margin-bottom: 0.5rem;\n color: #252525;\n }\n .recent-view-more {\n position: absolute;\n right: 0;\n margin-top: 0.25rem;\n font-size: 0.7rem;\n font-weight: bold;\n }\n .recent-view-more span {\n display: inline-block;\n color: rgb(81, 116, 153);\n font-size: 0.7rem;\n }\n @media screen and (max-width: 1191px){\n \n .recent-article > p {\n font-size: 0.7rem;\n }\n }\n }\n @media screen and (max-width: 495px) {\n \n .recent-article > p {\n font-size: 0.7rem;\n }\n }\n '
|
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { m as moment } from './moment-bc12cb97.js';
|
|
3
3
|
import 'react-bootstrap/Media';
|
|
4
4
|
import urlFor from './urlFor.js';
|
|
5
|
-
import { L as LazyLoad } from './index-
|
|
5
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
6
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
+
import './slicedToArray-ca2c8b8d.js';
|
|
8
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
9
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
7
10
|
import './index-0dbff1d1.js';
|
|
8
11
|
import 'react-dom';
|
|
9
12
|
import 'prop-types';
|
|
10
13
|
|
|
11
|
-
/*
|
|
12
|
-
Sample query
|
|
13
|
-
let references = ''
|
|
14
|
-
if(article.taxonomyMapping.length > 0){
|
|
15
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
16
|
-
references = references + `references('${ref._ref}') `
|
|
17
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
18
|
-
references = references + ` && `
|
|
19
|
-
}
|
|
20
|
-
})
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
24
|
-
...,
|
|
25
|
-
title,
|
|
26
|
-
summary,
|
|
27
|
-
thumbnail,
|
|
28
|
-
url,
|
|
29
|
-
published,
|
|
30
|
-
authorMapping[]->,
|
|
31
|
-
contentCategory->
|
|
32
|
-
}`
|
|
33
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
34
|
-
|
|
35
|
-
Sample usage
|
|
36
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
37
|
-
|
|
38
|
-
|
|
14
|
+
/*
|
|
15
|
+
Sample query
|
|
16
|
+
let references = ''
|
|
17
|
+
if(article.taxonomyMapping.length > 0){
|
|
18
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
19
|
+
references = references + `references('${ref._ref}') `
|
|
20
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
21
|
+
references = references + ` && `
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
27
|
+
...,
|
|
28
|
+
title,
|
|
29
|
+
summary,
|
|
30
|
+
thumbnail,
|
|
31
|
+
url,
|
|
32
|
+
published,
|
|
33
|
+
authorMapping[]->,
|
|
34
|
+
contentCategory->
|
|
35
|
+
}`
|
|
36
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
37
|
+
|
|
38
|
+
Sample usage
|
|
39
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
40
|
+
|
|
41
|
+
|
|
39
42
|
*/
|
|
40
43
|
var RelatedContent = function RelatedContent(props) {
|
|
41
44
|
var client = props.client,
|
|
@@ -44,47 +47,47 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
44
47
|
defaultImage = _props$defaultImage === undefined ? '' : _props$defaultImage;
|
|
45
48
|
|
|
46
49
|
|
|
47
|
-
return
|
|
50
|
+
return React.createElement(
|
|
48
51
|
'div',
|
|
49
52
|
null,
|
|
50
|
-
|
|
53
|
+
React.createElement(
|
|
51
54
|
'h1',
|
|
52
55
|
{ className: 'mb-4 pb-2', style: { borderBottom: '1px solid #ccc', fontSize: '1.2rem', fontWeight: 'bold', color: '#252525' } },
|
|
53
56
|
'Related Content'
|
|
54
57
|
),
|
|
55
|
-
|
|
58
|
+
React.createElement(
|
|
56
59
|
'div',
|
|
57
60
|
{ className: 'related-articles-container' },
|
|
58
61
|
dataRecord.map(function (article, index) {
|
|
59
|
-
return
|
|
62
|
+
return React.createElement(
|
|
60
63
|
'a',
|
|
61
64
|
{ key: index, href: '/view/' + article.url.current, className: 'related-article' },
|
|
62
|
-
|
|
65
|
+
React.createElement(
|
|
63
66
|
'figure',
|
|
64
67
|
null,
|
|
65
|
-
|
|
68
|
+
React.createElement(
|
|
66
69
|
LazyLoad,
|
|
67
70
|
{ once: true },
|
|
68
|
-
|
|
71
|
+
React.createElement('img', {
|
|
69
72
|
src: article.thumbnail ? urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 500 }) : defaultImage,
|
|
70
73
|
alt: article.title
|
|
71
74
|
})
|
|
72
75
|
)
|
|
73
76
|
),
|
|
74
|
-
|
|
77
|
+
React.createElement(
|
|
75
78
|
'div',
|
|
76
79
|
{ className: 'related-article-body' },
|
|
77
|
-
|
|
78
|
-
props.showPublished &&
|
|
80
|
+
React.createElement('h4', { dangerouslySetInnerHTML: { __html: article.title } }),
|
|
81
|
+
props.showPublished && React.createElement(
|
|
79
82
|
'p',
|
|
80
83
|
{ className: 'pb-0 mb-0' },
|
|
81
84
|
moment(article.published).format('MMMM DD, YYYY hh:mma')
|
|
82
85
|
),
|
|
83
|
-
props.showAuthor && article.authorMapping && article.authorMapping[0] &&
|
|
86
|
+
props.showAuthor && article.authorMapping && article.authorMapping[0] && React.createElement(
|
|
84
87
|
'p',
|
|
85
88
|
null,
|
|
86
89
|
'By ',
|
|
87
|
-
|
|
90
|
+
React.createElement(
|
|
88
91
|
'b',
|
|
89
92
|
null,
|
|
90
93
|
article.authorMapping[0].displayName
|
|
@@ -93,7 +96,7 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
93
96
|
)
|
|
94
97
|
);
|
|
95
98
|
}),
|
|
96
|
-
|
|
99
|
+
React.createElement(
|
|
97
100
|
'style',
|
|
98
101
|
{ jsx: 'true' },
|
|
99
102
|
'\n .related-article {\n width: 100%;\n display: flex;\n flex-direction: ' + (props.reverse ? 'row-reverse' : 'row') + ';\n margin-bottom: 1rem;\n }\n .related-article figure {\n width: 165px;\n height: 110px;\n min-width: 165px;\n }\n .related-article figure img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n .related-article-body {\n flex: 1 1 auto;\n padding: 0 1rem;\n }\n .related-article-body h4 {\n font-weight: bold;\n font-size: 1.1rem;\n margin-bottom: 0.25rem;\n line-height: 1.3;\n }\n @media screen and (max-width: 430px) {\n .related-article {\n flex-direction: column;\n }\n .related-article figure {\n width: 80%;\n height: auto;\n min-width: 80%;\n margin: 0 auto;\n }\n .related-article figure img {\n width: 100%;\n height: auto;\n object-fit: cover;\n }\n }\n '
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import DropdownButton from 'react-bootstrap/DropdownButton';
|
|
3
3
|
import Dropdown from 'react-bootstrap/Dropdown';
|
|
4
4
|
|
|
@@ -14,36 +14,36 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14
14
|
_ref$className = _ref.className,
|
|
15
15
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
16
16
|
|
|
17
|
-
/*
|
|
18
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
19
|
-
example:
|
|
20
|
-
<RelatedTopicDropdown
|
|
21
|
-
page='/clinical'
|
|
22
|
-
exclude="clinical"
|
|
23
|
-
className='mb-3'
|
|
24
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
25
|
-
subTaxonomies={props.subTaxonomies}
|
|
26
|
-
/>
|
|
17
|
+
/*
|
|
18
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
19
|
+
example:
|
|
20
|
+
<RelatedTopicDropdown
|
|
21
|
+
page='/clinical'
|
|
22
|
+
exclude="clinical"
|
|
23
|
+
className='mb-3'
|
|
24
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
25
|
+
subTaxonomies={props.subTaxonomies}
|
|
26
|
+
/>
|
|
27
27
|
*/
|
|
28
28
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
29
29
|
if (parentTaxonomy.identifier == exclude) {
|
|
30
30
|
return '';
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return React.createElement(
|
|
33
33
|
'div',
|
|
34
34
|
null,
|
|
35
|
-
|
|
35
|
+
React.createElement(
|
|
36
36
|
'style',
|
|
37
37
|
{ jsx: true },
|
|
38
38
|
'\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n top: auto !important;\n max-height: 50vh !important;\n box-shadow: 0px 0px 25px #ccc;\n z-index: 9999;\n transform: none !important;\n overflow: hidden;\n overflow-y: scroll;\n }\n @media only screen and (max-width: 720px) {\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n max-height: 30vh !important;\n max-width: 95vw;\n box-shadow: 0px 0px 25px #ccc;\n z-index: 9999;\n font-size: 0.85em;\n overflow: hidden;\n overflow-y: scroll;\n }\n }\n '
|
|
39
39
|
),
|
|
40
|
-
|
|
40
|
+
React.createElement(
|
|
41
41
|
'div',
|
|
42
42
|
{ id: 'related_dropdown', className: className },
|
|
43
|
-
|
|
43
|
+
React.createElement(
|
|
44
44
|
DropdownButton,
|
|
45
45
|
{ id: 'related_button', variant: variant, title: 'Related Topics' },
|
|
46
|
-
|
|
46
|
+
React.createElement(
|
|
47
47
|
Dropdown.Item,
|
|
48
48
|
{ href: parentTaxonomy.identifier },
|
|
49
49
|
parentTaxonomy.name
|
|
@@ -52,22 +52,22 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
52
52
|
)
|
|
53
53
|
);
|
|
54
54
|
} else {
|
|
55
|
-
return
|
|
55
|
+
return React.createElement(
|
|
56
56
|
'div',
|
|
57
57
|
null,
|
|
58
|
-
|
|
58
|
+
React.createElement(
|
|
59
59
|
'style',
|
|
60
60
|
{ jsx: true },
|
|
61
61
|
'\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n top: auto !important;\n max-height: 40vh !important;\n z-index: 9999;\n transform: none !important;\n overflow: hidden;\n overflow-y: scroll;\n }\n @media only screen and (max-width: 720px) {\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n max-height: 30vh !important;\n max-width: 95vw;\n z-index: 9999;\n font-size: 0.85em;\n overflow: hidden;\n overflow-y: scroll;\n }\n }\n '
|
|
62
62
|
),
|
|
63
|
-
|
|
63
|
+
React.createElement(
|
|
64
64
|
'div',
|
|
65
65
|
{ id: 'related_dropdown', className: className },
|
|
66
|
-
|
|
66
|
+
React.createElement(
|
|
67
67
|
DropdownButton,
|
|
68
68
|
{ id: 'related_button', variant: variant, title: 'Related Topics' },
|
|
69
69
|
subTaxonomies.length > 0 && subTaxonomies.map(function (taxonomy, index) {
|
|
70
|
-
return
|
|
70
|
+
return React.createElement(
|
|
71
71
|
Dropdown.Item,
|
|
72
72
|
{ key: index, href: page + '/' + taxonomy.identifier },
|
|
73
73
|
taxonomy.name
|
package/dist/esm/RolesDeck.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import Container from 'react-bootstrap/Container';
|
|
3
3
|
import Row from 'react-bootstrap/Row';
|
|
4
4
|
import Col from 'react-bootstrap/Col';
|
|
@@ -15,43 +15,43 @@ var RolesDeck = function RolesDeck(props) {
|
|
|
15
15
|
// dataRecord - data record to be shown in card.
|
|
16
16
|
// />
|
|
17
17
|
|
|
18
|
-
return
|
|
18
|
+
return React.createElement(
|
|
19
19
|
'div',
|
|
20
20
|
{ className: 'rolesDeck' },
|
|
21
|
-
|
|
21
|
+
React.createElement(
|
|
22
22
|
Container,
|
|
23
23
|
null,
|
|
24
|
-
|
|
24
|
+
React.createElement(
|
|
25
25
|
Row,
|
|
26
26
|
null,
|
|
27
27
|
data && data.map(function (row, index) {
|
|
28
28
|
if (row && row.url && row.name) {
|
|
29
|
-
return
|
|
29
|
+
return React.createElement(
|
|
30
30
|
Col,
|
|
31
31
|
{ key: index, md: 12, lg: 6, counter: index++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
32
|
-
|
|
32
|
+
React.createElement(
|
|
33
33
|
Card,
|
|
34
34
|
{ className: 'taxonomy-card', style: { position: 'relative', overflow: 'hidden', borderBottom: '3px solid var(--primary)' } },
|
|
35
|
-
|
|
35
|
+
React.createElement(
|
|
36
36
|
Card.Link,
|
|
37
37
|
{ href: row.url },
|
|
38
|
-
|
|
38
|
+
React.createElement(
|
|
39
39
|
Card.Body,
|
|
40
40
|
null,
|
|
41
|
-
|
|
41
|
+
React.createElement(
|
|
42
42
|
Row,
|
|
43
43
|
null,
|
|
44
|
-
|
|
44
|
+
React.createElement(
|
|
45
45
|
Col,
|
|
46
46
|
{ className: 'details-content-wrapper' },
|
|
47
|
-
|
|
47
|
+
React.createElement(
|
|
48
48
|
'div',
|
|
49
49
|
{ className: 'details-wrapper' },
|
|
50
50
|
row.name
|
|
51
51
|
)
|
|
52
52
|
)
|
|
53
53
|
),
|
|
54
|
-
icon &&
|
|
54
|
+
icon && React.createElement(
|
|
55
55
|
'span',
|
|
56
56
|
{
|
|
57
57
|
className: 'taxonomy-icon',
|
|
@@ -73,7 +73,7 @@ var RolesDeck = function RolesDeck(props) {
|
|
|
73
73
|
})
|
|
74
74
|
)
|
|
75
75
|
),
|
|
76
|
-
icon &&
|
|
76
|
+
icon && React.createElement(
|
|
77
77
|
'style',
|
|
78
78
|
{ jsx: 'true' },
|
|
79
79
|
'\n .taxonomy-card .taxonomy-icon {\n transform: translateY(-50%) translateX(10px) !important;\n }\n .taxonomy-card.card:hover .taxonomy-icon {\n transform: translateY(-50%) translateX(5px) scale(1.25) rotate(-180deg) !important;\n }\n '
|
package/dist/esm/Search.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
2
|
-
import
|
|
1
|
+
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
3
|
import Form from 'react-bootstrap/Form';
|
|
4
4
|
import FormControl from 'react-bootstrap/FormControl';
|
|
5
5
|
import Button from 'react-bootstrap/Button';
|
|
6
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
-
import './web.dom.iterable-
|
|
8
|
-
import './
|
|
9
|
-
import './_to-object-b50e61c3.js';
|
|
10
|
-
import './core.get-iterator-method-133dfacd.js';
|
|
7
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
8
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
11
9
|
|
|
12
10
|
var Search = function Search(props) {
|
|
13
11
|
var _props$placeholder = props.placeholder,
|
|
@@ -27,12 +25,12 @@ var Search = function Search(props) {
|
|
|
27
25
|
window.location.href = '/search?searchTerm=' + encodeURIComponent(searchKey);
|
|
28
26
|
};
|
|
29
27
|
|
|
30
|
-
return
|
|
28
|
+
return React.createElement(
|
|
31
29
|
Form,
|
|
32
30
|
{ inline: true, onSubmit: function onSubmit(e) {
|
|
33
31
|
return submitSearch(e);
|
|
34
32
|
} },
|
|
35
|
-
|
|
33
|
+
React.createElement(FormControl, {
|
|
36
34
|
className: device === 'mobile' ? 'mobile-search mr-sm-2' : 'mr-sm-2',
|
|
37
35
|
type: 'text',
|
|
38
36
|
placeholder: placeholder,
|
|
@@ -41,14 +39,14 @@ var Search = function Search(props) {
|
|
|
41
39
|
return setSearchKey(e.target.value);
|
|
42
40
|
}
|
|
43
41
|
}),
|
|
44
|
-
|
|
42
|
+
React.createElement(
|
|
45
43
|
Button,
|
|
46
44
|
{ variant: 'secondary', onClick: function onClick(e) {
|
|
47
45
|
return submitSearch(e);
|
|
48
46
|
} },
|
|
49
47
|
btnText
|
|
50
48
|
),
|
|
51
|
-
|
|
49
|
+
React.createElement(
|
|
52
50
|
'style',
|
|
53
51
|
{ jsx: 'true' },
|
|
54
52
|
'\n .mobile-search {\n width: 75%;\n margin-right: 15px;\n }\n '
|
package/dist/esm/Segment.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b4dfe691.js';
|
|
2
2
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
5
|
-
import './web.dom.iterable-4109ff68.js';
|
|
3
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
4
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
6
5
|
import './_library-528f1934.js';
|
|
7
|
-
import './
|
|
8
|
-
import './_iter-detect-7e5e5ce2.js';
|
|
6
|
+
import './_iter-detect-f089461c.js';
|
|
9
7
|
|
|
10
8
|
require('babel-polyfill');
|
|
11
9
|
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
2
|
-
import { _ as _extends } from './extends-
|
|
3
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
4
|
-
import
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
2
|
+
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
3
|
+
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
4
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
6
|
-
import { l as lib_3 } from './index-
|
|
7
|
-
import { I as InfiniteScroll } from './index.es-
|
|
8
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
9
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
6
|
+
import { l as lib_3 } from './index-2446af28.js';
|
|
7
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
8
|
+
import { S as SeriesSlider } from './SeriesSlider-485f514e.js';
|
|
9
|
+
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
13
|
-
import './_iter-detect-7e5e5ce2.js';
|
|
14
|
-
import './core.get-iterator-method-133dfacd.js';
|
|
11
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
12
|
+
import './_iter-detect-f089461c.js';
|
|
15
13
|
import './_object-pie-133f504a.js';
|
|
16
|
-
import './web.dom.iterable-
|
|
14
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
15
|
+
import './events-6c3a7a63.js';
|
|
17
16
|
import 'prop-types';
|
|
18
17
|
import './index-c7e2ac95.js';
|
|
19
|
-
import './index-
|
|
18
|
+
import './index-35bdcc81.js';
|
|
20
19
|
import 'react-dom';
|
|
21
20
|
import './smoothscroll-fa4e3f8c.js';
|
|
22
21
|
import './urlFor.js';
|
|
23
22
|
import './index-0dbff1d1.js';
|
|
24
|
-
import './main-
|
|
23
|
+
import './main-b5c5aac1.js';
|
|
25
24
|
|
|
26
25
|
var usePrevious = function usePrevious(value) {
|
|
27
26
|
var ref = useRef();
|
|
@@ -183,19 +182,19 @@ var SeriesListingDeck = function SeriesListingDeck(props) {
|
|
|
183
182
|
}
|
|
184
183
|
}, [seriesData, setScrolling, count]);
|
|
185
184
|
|
|
186
|
-
return
|
|
185
|
+
return React.createElement(
|
|
187
186
|
InfiniteScroll,
|
|
188
187
|
{ dataLength: seriesData && seriesData.length, next: function next() {
|
|
189
188
|
return loadMore();
|
|
190
189
|
}, hasMore: scrolling, scrollThreshold: 0.9 },
|
|
191
|
-
|
|
190
|
+
React.createElement(
|
|
192
191
|
'div',
|
|
193
192
|
null,
|
|
194
|
-
seriesData && seriesData.length ?
|
|
193
|
+
seriesData && seriesData.length ? React.createElement(
|
|
195
194
|
'div',
|
|
196
195
|
null,
|
|
197
196
|
seriesData.map(function (series, index) {
|
|
198
|
-
return
|
|
197
|
+
return React.createElement(
|
|
199
198
|
VisibilitySensor,
|
|
200
199
|
{
|
|
201
200
|
key: series._id ? series._id : index,
|
|
@@ -203,34 +202,34 @@ var SeriesListingDeck = function SeriesListingDeck(props) {
|
|
|
203
202
|
onChange: function onChange(isVisible) {
|
|
204
203
|
isVisible && changePageNumber(currentPage, index, pageview);
|
|
205
204
|
} },
|
|
206
|
-
|
|
205
|
+
React.createElement(
|
|
207
206
|
'div',
|
|
208
207
|
{ className: 'mb-5', key: series.name },
|
|
209
|
-
|
|
208
|
+
React.createElement(
|
|
210
209
|
'div',
|
|
211
210
|
{ style: { fontSize: '20px', fontWeight: 'bold', borderBottom: '1px solid #eee', margin: '0 .5rem', color: '373a3c' } },
|
|
212
|
-
|
|
211
|
+
React.createElement(
|
|
213
212
|
'a',
|
|
214
213
|
{ href: '/' + parentIdentifier + '/' + series.identifier.current },
|
|
215
214
|
series.name
|
|
216
215
|
)
|
|
217
216
|
),
|
|
218
|
-
series.articles && series.articles.length == 0 &&
|
|
217
|
+
series.articles && series.articles.length == 0 && React.createElement(
|
|
219
218
|
'p',
|
|
220
219
|
{ className: 'mt-2 ml-2' },
|
|
221
220
|
'Please check back for more content.'
|
|
222
221
|
),
|
|
223
|
-
series.articles && series.articles.length > 0 &&
|
|
222
|
+
series.articles && series.articles.length > 0 && React.createElement(SeriesSlider, _extends({}, props, { dataset: series.articles, client: client }))
|
|
224
223
|
)
|
|
225
224
|
);
|
|
226
225
|
})
|
|
227
|
-
) :
|
|
226
|
+
) : React.createElement(
|
|
228
227
|
'div',
|
|
229
228
|
null,
|
|
230
|
-
|
|
229
|
+
React.createElement(
|
|
231
230
|
'h5',
|
|
232
231
|
null,
|
|
233
|
-
|
|
232
|
+
React.createElement(
|
|
234
233
|
'em',
|
|
235
234
|
{ className: 'pl-3' },
|
|
236
235
|
'New content coming soon, please check back later.'
|