@mjhls/mjh-framework 1.0.818 → 1.0.819-ad-refresh
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 +170 -170
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +2 -3
- package/dist/cjs/AD300x250x600.js +2 -3
- package/dist/cjs/AD728x90.js +2 -3
- package/dist/cjs/ADFloatingFooter.js +2 -3
- package/dist/cjs/ADGutter.js +2 -3
- package/dist/cjs/ADSkyscraper.js +2 -3
- package/dist/cjs/ADSponsoredResources.js +2 -3
- package/dist/cjs/ADWebcast.js +2 -3
- package/dist/cjs/ADWelcome.js +2 -3
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +4 -5
- package/dist/cjs/AdSlotsProvider.js +27 -6
- package/dist/cjs/AlgoliaSearch.js +19 -14100
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +5 -6
- package/dist/cjs/ArticleSeriesLandingPage.js +4 -5
- package/dist/cjs/ArticleSeriesListing.js +4 -5
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/CMEDeck.js +2 -3
- package/dist/cjs/Column3.js +2 -3
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +11 -12
- package/dist/cjs/DeckQueue.js +2 -3
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-3f0ed4c8.js} +1 -2
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +5 -6
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +4 -5
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/HorizontalArticleListing.js +5 -6
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueLanding.js +36 -37
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -3
- package/dist/cjs/MasterDeck.js +12 -13
- package/dist/cjs/MediaSeriesLanding.js +408 -308
- package/dist/cjs/NavMagazine.js +16 -16
- package/dist/cjs/NavNative.js +12 -12
- package/dist/cjs/NavNormal.js +2 -2
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +7 -8
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +4 -5
- package/dist/cjs/PublicationLanding.js +29 -29
- package/dist/cjs/QueueDeckExpanded.js +4 -5
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +3 -4
- package/dist/cjs/{SeriesSlider-c022ce04.js → SeriesSlider-2db54929.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-948138c7.js} +3 -3
- package/dist/cjs/TaxonomyDescription.js +5 -6
- package/dist/cjs/TemplateNormal.js +7 -8
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VideoProgramLandingPage.js +5 -6
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +4 -5
- package/dist/cjs/VideoSeriesListing.js +4 -5
- package/dist/cjs/View.js +9 -10
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getSerializers.js +5 -6
- package/dist/cjs/{getTargeting-be6168ad.js → getTargeting-a100d6e5.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-fc2f1ca2.js → index-0e4427c8.js} +467 -2
- package/dist/cjs/{index-e5fd35c7.js → index-48bd6cd5.js} +3 -3
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-00a6aade.js} +1 -1
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-2bb721c8.js} +1 -1
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-9225638f.js} +1 -1
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-f27f80d9.js} +1 -1
- package/dist/cjs/index.js +14 -15
- package/dist/cjs/{main-025fdc78.js → main-f1c77adb.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +6 -7
- package/dist/esm/AD300x250x600.js +6 -7
- package/dist/esm/AD728x90.js +7 -8
- package/dist/esm/ADFloatingFooter.js +9 -10
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -10
- package/dist/esm/{ADInfeed-7aaa47e1.js → ADInfeed-4a09242b.js} +5 -5
- package/dist/esm/ADSkyscraper.js +9 -10
- package/dist/esm/ADSponsoredResources.js +9 -10
- package/dist/esm/ADWebcast.js +9 -10
- package/dist/esm/ADWelcome.js +13 -14
- package/dist/esm/{ADlgInfeed-78f95e78.js → ADlgInfeed-0bff9a62.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +7 -8
- package/dist/esm/AdSlotsProvider.js +28 -8
- package/dist/esm/AlgoliaSearch.js +39 -14120
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +17 -18
- package/dist/esm/ArticleSeriesLandingPage.js +12 -13
- package/dist/esm/ArticleSeriesListing.js +31 -32
- package/dist/esm/Auth.js +70 -70
- package/dist/esm/AuthWrapper.js +26 -26
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-30aeba69.js} +10 -10
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-c99c9a8d.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -62
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +23 -24
- package/dist/esm/ConferenceArticleCard.js +28 -28
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +57 -58
- package/dist/esm/DeckQueue.js +42 -43
- package/dist/esm/{Dfp-43f121ff.js → Dfp-be030f2a.js} +10 -11
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +35 -36
- package/dist/esm/Feature.js +15 -15
- package/dist/esm/ForbesHero.js +26 -26
- package/dist/esm/GridContent.js +103 -104
- package/dist/esm/GridHero.js +27 -27
- package/dist/esm/GroupDeck.js +34 -34
- package/dist/esm/HamMagazine.js +95 -95
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +31 -32
- package/dist/esm/HorizontalHero.js +20 -20
- package/dist/esm/IssueContentDeck.js +39 -39
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +51 -52
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -17
- package/dist/esm/MasterDeck.js +46 -47
- package/dist/esm/MediaSeriesLanding.js +431 -331
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +99 -99
- package/dist/esm/NavNative.js +86 -86
- package/dist/esm/NavNormal.js +22 -22
- package/dist/esm/OncliveHero.js +13 -13
- package/dist/esm/OncliveLargeHero.js +50 -50
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +62 -63
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +14 -15
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +33 -33
- package/dist/esm/PublicationLanding.js +78 -78
- package/dist/esm/QueueDeckExpanded.js +246 -247
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +43 -43
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SeriesListingDeck.js +19 -20
- package/dist/esm/{SeriesSlider-8414085b.js → SeriesSlider-c8477bf3.js} +23 -23
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-cd38ae60.js → SocialSearchComponent-db963c3e.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TaxonomyDescription.js +13 -14
- package/dist/esm/TemplateNormal.js +30 -31
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +11 -11
- package/dist/esm/VideoProgramLandingPage.js +24 -25
- package/dist/esm/VideoSeriesCard.js +15 -15
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +12 -13
- package/dist/esm/VideoSeriesListing.js +47 -48
- package/dist/esm/View.js +170 -171
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/getSerializers.js +8 -9
- package/dist/esm/{getTargeting-68291ce9.js → getTargeting-05c216d6.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-04c4d8d6.js → index-343d9c07.js} +343 -343
- package/dist/esm/{index-2446af28.js → index-5cc7b406.js} +469 -4
- package/dist/esm/{index-35bdcc81.js → index-755f2cc2.js} +4 -4
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.js} +1 -1
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-e874e770.js} +1 -1
- package/dist/esm/{index.esm-3fdda599.js → index.esm-f6156a57.js} +1 -1
- package/dist/esm/index.js +39 -40
- package/dist/esm/{main-b5c5aac1.js → main-d4165069.js} +19 -19
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-9be47857.js} +5 -5
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +110 -110
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-8041a4eb.js +0 -99
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-67e1773f.js +0 -94
- /package/dist/cjs/{ADInfeed-1ac86856.js → ADInfeed-eb4ce360.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-2ee46b09.js → ADlgInfeed-8a05b63f.js} +0 -0
package/dist/esm/PopUpModal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
2
|
-
import
|
|
2
|
+
import React__default, { useState } from 'react';
|
|
3
3
|
import Modal from 'react-bootstrap/Modal';
|
|
4
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
5
|
import './web.dom.iterable-4109ff68.js';
|
|
@@ -18,22 +18,22 @@ var PopUpModal = function PopUpModal(props) {
|
|
|
18
18
|
setShow(false);
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
return
|
|
21
|
+
return React__default.createElement(
|
|
22
22
|
Modal,
|
|
23
23
|
{ show: show, onHide: function onHide() {
|
|
24
24
|
return setShow(false);
|
|
25
25
|
}, 'aria-labelledby': 'Popup-Modal' },
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
React__default.createElement(Modal.Title, null),
|
|
27
|
+
React__default.createElement(
|
|
28
28
|
Modal.Body,
|
|
29
29
|
null,
|
|
30
|
-
|
|
30
|
+
React__default.createElement(
|
|
31
31
|
'div',
|
|
32
32
|
{ className: 'modalImageHolder' },
|
|
33
|
-
|
|
33
|
+
React__default.createElement('img', { className: 'modalImage', src: props.ModalImage, onClick: function onClick() {
|
|
34
34
|
return launchModalButton();
|
|
35
35
|
} }),
|
|
36
|
-
|
|
36
|
+
React__default.createElement(
|
|
37
37
|
'div',
|
|
38
38
|
{ className: 'modalClose', onClick: function onClick() {
|
|
39
39
|
return setShow(false);
|
|
@@ -42,7 +42,7 @@ var PopUpModal = function PopUpModal(props) {
|
|
|
42
42
|
)
|
|
43
43
|
)
|
|
44
44
|
),
|
|
45
|
-
|
|
45
|
+
React__default.createElement(
|
|
46
46
|
'style',
|
|
47
47
|
{ jsx: 'true' },
|
|
48
48
|
'\n .modalImageHolder {\n display: flex;\n justify-content: center;\n }\n .modalClose {\n display: flex;\n justify-content: center;\n width: 25px;\n height: 25px;\n font-size: 1.25rem;\n color: #fff;\n cursor: pointer;\n }\n .modalImage {\n cursor: pointer;\n }\n '
|
package/dist/esm/PubSection.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
3
3
|
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
4
|
-
import
|
|
4
|
+
import React__default from 'react';
|
|
5
5
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
6
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
7
|
import './es6.string.iterator-bc33758b.js';
|
|
@@ -14,18 +14,17 @@ import './_object-pie-133f504a.js';
|
|
|
14
14
|
import './toConsumableArray-6d9a4616.js';
|
|
15
15
|
import 'react-bootstrap';
|
|
16
16
|
import './index-0dbff1d1.js';
|
|
17
|
-
import './index.es-
|
|
17
|
+
import './index.es-a6137319.js';
|
|
18
18
|
import './moment-bc12cb97.js';
|
|
19
|
-
import './visibility-sensor-
|
|
19
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
20
20
|
import 'react-dom';
|
|
21
|
-
import './index-
|
|
22
|
-
import './events-6c3a7a63.js';
|
|
21
|
+
import './index-5cc7b406.js';
|
|
23
22
|
import 'prop-types';
|
|
24
23
|
import 'next/router';
|
|
25
|
-
import './index-
|
|
26
|
-
import './main-
|
|
24
|
+
import './index-755f2cc2.js';
|
|
25
|
+
import './main-d4165069.js';
|
|
27
26
|
import './entities-932b50cf.js';
|
|
28
|
-
import './ADInfeed-
|
|
27
|
+
import './ADInfeed-4a09242b.js';
|
|
29
28
|
import 'react-bootstrap/Card';
|
|
30
29
|
import './AdSlot.js';
|
|
31
30
|
import './debounce-533d9748.js';
|
|
@@ -34,9 +33,9 @@ import './toNumber-5aeba6e7.js';
|
|
|
34
33
|
import './Beam.js';
|
|
35
34
|
import './stringify-59c8f690.js';
|
|
36
35
|
import './Segment.js';
|
|
37
|
-
import './AuthorComponent-
|
|
36
|
+
import './AuthorComponent-30aeba69.js';
|
|
38
37
|
import './lodash-f97fd99a.js';
|
|
39
|
-
import './ADlgInfeed-
|
|
38
|
+
import './ADlgInfeed-0bff9a62.js';
|
|
40
39
|
import './getContentCategory-15dcc413.js';
|
|
41
40
|
import './timeDifferenceCalc.js';
|
|
42
41
|
|
|
@@ -46,24 +45,24 @@ var PubSection = function PubSection(props) {
|
|
|
46
45
|
var pubSection = props.pubSection,
|
|
47
46
|
tocUrl = props.tocUrl;
|
|
48
47
|
|
|
49
|
-
return
|
|
48
|
+
return React__default.createElement(
|
|
50
49
|
'div',
|
|
51
50
|
{ id: 'pubSection' },
|
|
52
|
-
pubSection.publication && pubSection.publication.name &&
|
|
51
|
+
pubSection.publication && pubSection.publication.name && React__default.createElement(
|
|
53
52
|
'h2',
|
|
54
53
|
null,
|
|
55
54
|
pubSection.publication.name
|
|
56
55
|
),
|
|
57
|
-
|
|
56
|
+
React__default.createElement(
|
|
58
57
|
'p',
|
|
59
58
|
null,
|
|
60
|
-
|
|
59
|
+
React__default.createElement(
|
|
61
60
|
'a',
|
|
62
61
|
{ id: 'back', href: tocUrl ? tocUrl : 'toc' },
|
|
63
62
|
'Back to Table of Contents'
|
|
64
63
|
)
|
|
65
64
|
),
|
|
66
|
-
|
|
65
|
+
React__default.createElement(QueueDeckExpanded, _extends({ dataRecord: pubSection.articles }, props))
|
|
67
66
|
);
|
|
68
67
|
};
|
|
69
68
|
|
package/dist/esm/PubToc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
3
|
-
import
|
|
3
|
+
import React__default from 'react';
|
|
4
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
5
|
import './es6.string.iterator-bc33758b.js';
|
|
6
6
|
import './_to-object-b50e61c3.js';
|
|
@@ -14,17 +14,17 @@ var _this = undefined;
|
|
|
14
14
|
var PubToc = function PubToc(props) {
|
|
15
15
|
var toc = props.toc;
|
|
16
16
|
|
|
17
|
-
return
|
|
17
|
+
return React__default.createElement(
|
|
18
18
|
'div',
|
|
19
19
|
{ id: 'pubToc' },
|
|
20
|
-
|
|
20
|
+
React__default.createElement(
|
|
21
21
|
'ul',
|
|
22
22
|
null,
|
|
23
23
|
toc && toc.parentSection && Array.isArray(toc.parentSection.sections) && toc.parentSection.sections.map(function (s) {
|
|
24
|
-
return
|
|
24
|
+
return React__default.createElement(
|
|
25
25
|
'li',
|
|
26
26
|
{ key: s.identifier },
|
|
27
|
-
|
|
27
|
+
React__default.createElement(
|
|
28
28
|
'a',
|
|
29
29
|
{ href: s.identifier },
|
|
30
30
|
s.name
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import Row from 'react-bootstrap/Row';
|
|
3
3
|
import Col from 'react-bootstrap/Col';
|
|
4
4
|
import Button from 'react-bootstrap/Button';
|
|
5
5
|
import Card from 'react-bootstrap/Card';
|
|
6
|
-
import { L as LazyLoad } from './index-
|
|
6
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
7
7
|
import { i as imageUrlBuilder } from './index-0dbff1d1.js';
|
|
8
8
|
import { l as lodash } from './lodash-f97fd99a.js';
|
|
9
9
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -50,43 +50,43 @@ var PublicationDeck = function PublicationDeck(props) {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
if (sortedRegPubs && sortedRegPubs.length || sortedLegacyPubs && sortedLegacyPubs.length) {
|
|
53
|
-
return
|
|
53
|
+
return React__default.createElement(
|
|
54
54
|
'div',
|
|
55
55
|
{ className: 'publication-wrapper', style: { paddingBottom: '150px' } },
|
|
56
|
-
sortedRegPubs && sortedRegPubs.length > 0 &&
|
|
56
|
+
sortedRegPubs && sortedRegPubs.length > 0 && React__default.createElement(
|
|
57
57
|
Row,
|
|
58
58
|
{ className: 'regular-publication-wrapper' },
|
|
59
59
|
sortedRegPubs.map(function (row, index) {
|
|
60
|
-
return row.identifier && row.identifier.current &&
|
|
60
|
+
return row.identifier && row.identifier.current && React__default.createElement(
|
|
61
61
|
Col,
|
|
62
62
|
{ xs: 6, sm: 6, md: 6, lg: 4, style: { display: 'flex', flex: '1 0 auto' }, key: index },
|
|
63
|
-
|
|
63
|
+
React__default.createElement(
|
|
64
64
|
Card,
|
|
65
65
|
{ className: 'block-card', style: { width: '200px' } },
|
|
66
|
-
|
|
66
|
+
React__default.createElement(
|
|
67
67
|
'a',
|
|
68
68
|
{ href: href + '/' + row.identifier.current },
|
|
69
|
-
row.childIssue && row.childIssue.thumbnail ?
|
|
69
|
+
row.childIssue && row.childIssue.thumbnail ? React__default.createElement(
|
|
70
70
|
LazyLoad,
|
|
71
71
|
{ height: imageHeight },
|
|
72
|
-
|
|
73
|
-
) :
|
|
74
|
-
|
|
72
|
+
React__default.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.childIssue.thumbnail), style: { objectFit: 'contain', maxHeight: '200px', maxWidth: '200px' } })
|
|
73
|
+
) : React__default.createElement('p', { className: 'placeholder-tag' }),
|
|
74
|
+
React__default.createElement(
|
|
75
75
|
Card.Body,
|
|
76
76
|
{ style: { paddingTop: '0', paddingBottom: '2.75rem' } },
|
|
77
|
-
|
|
77
|
+
React__default.createElement(
|
|
78
78
|
Card.Title,
|
|
79
79
|
null,
|
|
80
80
|
row.name
|
|
81
81
|
),
|
|
82
|
-
|
|
82
|
+
React__default.createElement(
|
|
83
83
|
Button,
|
|
84
84
|
{ style: { position: 'absolute', bottom: '1rem', margin: '0px', width: '78%' }, variant: 'secondary' },
|
|
85
85
|
'Browse Issues'
|
|
86
86
|
)
|
|
87
87
|
)
|
|
88
88
|
),
|
|
89
|
-
|
|
89
|
+
React__default.createElement(
|
|
90
90
|
'style',
|
|
91
91
|
{ jsx: 'true' },
|
|
92
92
|
'\n .lazyload-placeholder {\n padding: 0 1.25rem 2.75rem;\n }\n .placeholder-tag {\n min-height: 200px;\n }\n '
|
|
@@ -95,53 +95,53 @@ var PublicationDeck = function PublicationDeck(props) {
|
|
|
95
95
|
);
|
|
96
96
|
})
|
|
97
97
|
),
|
|
98
|
-
sortedLegacyPubs && sortedLegacyPubs.length > 0 &&
|
|
99
|
-
|
|
98
|
+
sortedLegacyPubs && sortedLegacyPubs.length > 0 && React__default.createElement(
|
|
99
|
+
React__default.Fragment,
|
|
100
100
|
null,
|
|
101
|
-
|
|
101
|
+
React__default.createElement(
|
|
102
102
|
'div',
|
|
103
103
|
{ className: 'legacy-publication-title' },
|
|
104
|
-
|
|
104
|
+
React__default.createElement(
|
|
105
105
|
'h2',
|
|
106
106
|
null,
|
|
107
107
|
'Legacy'
|
|
108
108
|
),
|
|
109
|
-
|
|
109
|
+
React__default.createElement('hr', null)
|
|
110
110
|
),
|
|
111
|
-
|
|
111
|
+
React__default.createElement(
|
|
112
112
|
Row,
|
|
113
113
|
{ className: 'legacy-publication-wrapper' },
|
|
114
114
|
sortedLegacyPubs.map(function (row, index) {
|
|
115
|
-
return row.identifier && row.identifier.current &&
|
|
115
|
+
return row.identifier && row.identifier.current && React__default.createElement(
|
|
116
116
|
Col,
|
|
117
117
|
{ xs: 6, sm: 6, md: 6, lg: 4, style: { display: 'flex', flex: '1 0 auto' }, key: index },
|
|
118
|
-
|
|
118
|
+
React__default.createElement(
|
|
119
119
|
Card,
|
|
120
120
|
{ className: 'block-card', style: { width: '200px' } },
|
|
121
|
-
|
|
121
|
+
React__default.createElement(
|
|
122
122
|
'a',
|
|
123
123
|
{ href: href + '/' + row.identifier.current },
|
|
124
|
-
row.childIssue && row.childIssue.thumbnail ?
|
|
124
|
+
row.childIssue && row.childIssue.thumbnail ? React__default.createElement(
|
|
125
125
|
LazyLoad,
|
|
126
126
|
{ height: imageHeight },
|
|
127
|
-
|
|
128
|
-
) :
|
|
129
|
-
|
|
127
|
+
React__default.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.childIssue.thumbnail), style: { objectFit: 'contain', maxHeight: '200px', maxWidth: '200px' } })
|
|
128
|
+
) : React__default.createElement('p', { className: 'placeholder-tag' }),
|
|
129
|
+
React__default.createElement(
|
|
130
130
|
Card.Body,
|
|
131
131
|
{ style: { paddingTop: '0', paddingBottom: '2.75rem' } },
|
|
132
|
-
|
|
132
|
+
React__default.createElement(
|
|
133
133
|
Card.Title,
|
|
134
134
|
null,
|
|
135
135
|
row.name
|
|
136
136
|
),
|
|
137
|
-
|
|
137
|
+
React__default.createElement(
|
|
138
138
|
Button,
|
|
139
139
|
{ style: { position: 'absolute', bottom: '1rem', margin: '0px', width: '78%' }, variant: 'secondary' },
|
|
140
140
|
'Browse Issues'
|
|
141
141
|
)
|
|
142
142
|
)
|
|
143
143
|
),
|
|
144
|
-
|
|
144
|
+
React__default.createElement(
|
|
145
145
|
'style',
|
|
146
146
|
{ jsx: 'true' },
|
|
147
147
|
'\n .lazyload-placeholder {\n padding: 0 1.25rem 2.75rem;\n }\n .placeholder-tag {\n min-height: 200px;\n }\n '
|
|
@@ -153,13 +153,13 @@ var PublicationDeck = function PublicationDeck(props) {
|
|
|
153
153
|
)
|
|
154
154
|
);
|
|
155
155
|
} else {
|
|
156
|
-
return
|
|
156
|
+
return React__default.createElement(
|
|
157
157
|
'div',
|
|
158
158
|
null,
|
|
159
|
-
|
|
159
|
+
React__default.createElement(
|
|
160
160
|
'h5',
|
|
161
161
|
null,
|
|
162
|
-
|
|
162
|
+
React__default.createElement(
|
|
163
163
|
'em',
|
|
164
164
|
{ className: 'pl-3' },
|
|
165
165
|
'New content coming soon, please check back later.'
|
|
@@ -8,13 +8,13 @@ import { b as _isObject, c as _ctx, d as _descriptors, e as _objectDp, f as _toO
|
|
|
8
8
|
import { _ as _meta, a as _isArray } from './_is-array-3e99e06e.js';
|
|
9
9
|
import { _ as _classof } from './core.get-iterator-method-133dfacd.js';
|
|
10
10
|
import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
11
|
-
import
|
|
11
|
+
import React__default, { useState, useEffect } from 'react';
|
|
12
12
|
import Row from 'react-bootstrap/Row';
|
|
13
13
|
import Col from 'react-bootstrap/Col';
|
|
14
14
|
import Dropdown from 'react-bootstrap/Dropdown';
|
|
15
15
|
import Card from 'react-bootstrap/Card';
|
|
16
16
|
import { useRouter } from 'next/router';
|
|
17
|
-
import { L as LazyLoad } from './index-
|
|
17
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
18
18
|
import './_library-528f1934.js';
|
|
19
19
|
import './_iter-detect-7e5e5ce2.js';
|
|
20
20
|
import './_object-pie-133f504a.js';
|
|
@@ -373,35 +373,35 @@ module.exports = { "default": set$1, __esModule: true };
|
|
|
373
373
|
|
|
374
374
|
var _Set = unwrapExports(set);
|
|
375
375
|
|
|
376
|
-
/* usage & query
|
|
377
|
-
const Publication = (props) => {
|
|
378
|
-
const { cache, pub, year } = props
|
|
379
|
-
const targeting = {
|
|
380
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
381
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
382
|
-
}
|
|
383
|
-
return (
|
|
384
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
385
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
386
|
-
</Shell>
|
|
387
|
-
)
|
|
388
|
-
}
|
|
389
|
-
Publication.getInitialProps = async (ctx) => {
|
|
390
|
-
const { query } = ctx
|
|
391
|
-
const {
|
|
392
|
-
query: { year },
|
|
393
|
-
} = ctx
|
|
394
|
-
const pub = await client.fetch(getQuery('publication'), query)
|
|
395
|
-
const builder = imageUrlBuilder(client)
|
|
396
|
-
const urlFor = (source) => {
|
|
397
|
-
return builder.image(source)
|
|
398
|
-
}
|
|
399
|
-
pub.issues.map((issue) => {
|
|
400
|
-
issue.thumbnail = urlFor(issue.thumbnail).url()
|
|
401
|
-
})
|
|
402
|
-
return { pub, year }
|
|
403
|
-
}
|
|
404
|
-
export default Publication
|
|
376
|
+
/* usage & query
|
|
377
|
+
const Publication = (props) => {
|
|
378
|
+
const { cache, pub, year } = props
|
|
379
|
+
const targeting = {
|
|
380
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
381
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
382
|
+
}
|
|
383
|
+
return (
|
|
384
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
385
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
386
|
+
</Shell>
|
|
387
|
+
)
|
|
388
|
+
}
|
|
389
|
+
Publication.getInitialProps = async (ctx) => {
|
|
390
|
+
const { query } = ctx
|
|
391
|
+
const {
|
|
392
|
+
query: { year },
|
|
393
|
+
} = ctx
|
|
394
|
+
const pub = await client.fetch(getQuery('publication'), query)
|
|
395
|
+
const builder = imageUrlBuilder(client)
|
|
396
|
+
const urlFor = (source) => {
|
|
397
|
+
return builder.image(source)
|
|
398
|
+
}
|
|
399
|
+
pub.issues.map((issue) => {
|
|
400
|
+
issue.thumbnail = urlFor(issue.thumbnail).url()
|
|
401
|
+
})
|
|
402
|
+
return { pub, year }
|
|
403
|
+
}
|
|
404
|
+
export default Publication
|
|
405
405
|
*/
|
|
406
406
|
|
|
407
407
|
var generateContentPlacements = function generateContentPlacements(issues) {
|
|
@@ -634,36 +634,36 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
634
634
|
}
|
|
635
635
|
}, [activeYear, activeContentPlacement]);
|
|
636
636
|
|
|
637
|
-
return
|
|
637
|
+
return React__default.createElement(
|
|
638
638
|
'div',
|
|
639
639
|
{ id: 'publicationLanding' },
|
|
640
|
-
|
|
640
|
+
React__default.createElement(
|
|
641
641
|
'style',
|
|
642
642
|
{ jsx: true },
|
|
643
643
|
'\n #pubYearFilter .dropdown-menu.show,\n #contentPlacementFilter .dropdown-menu.show {\n max-height: 25vh;\n overflow: auto;\n }\n '
|
|
644
644
|
),
|
|
645
|
-
|
|
645
|
+
React__default.createElement(
|
|
646
646
|
Row,
|
|
647
647
|
null,
|
|
648
|
-
issueData && issueData.length > 0 && years.length > 0 &&
|
|
648
|
+
issueData && issueData.length > 0 && years.length > 0 && React__default.createElement(
|
|
649
649
|
Col,
|
|
650
650
|
{ className: 'flex-grow-0 mb-3' },
|
|
651
|
-
|
|
651
|
+
React__default.createElement(
|
|
652
652
|
Dropdown,
|
|
653
653
|
{ id: 'pubYearFilter' },
|
|
654
|
-
|
|
654
|
+
React__default.createElement(
|
|
655
655
|
Dropdown.Toggle,
|
|
656
656
|
null,
|
|
657
657
|
activeYear && !isNaN(activeYear) ? activeYear : 'Select Year'
|
|
658
658
|
),
|
|
659
|
-
|
|
659
|
+
React__default.createElement(
|
|
660
660
|
Dropdown.Menu,
|
|
661
661
|
null,
|
|
662
|
-
|
|
662
|
+
React__default.createElement(Dropdown.Item, { style: { height: '2rem' }, onClick: function onClick() {
|
|
663
663
|
return setActiveYear('');
|
|
664
664
|
} }),
|
|
665
665
|
years.map(function (yr, key) {
|
|
666
|
-
return
|
|
666
|
+
return React__default.createElement(
|
|
667
667
|
Dropdown.Item,
|
|
668
668
|
{ key: key, onClick: function onClick() {
|
|
669
669
|
return setActiveYear(yr);
|
|
@@ -674,25 +674,25 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
674
674
|
)
|
|
675
675
|
)
|
|
676
676
|
),
|
|
677
|
-
contentPlacements && contentPlacements.length > 0 &&
|
|
677
|
+
contentPlacements && contentPlacements.length > 0 && React__default.createElement(
|
|
678
678
|
Col,
|
|
679
679
|
{ className: 'flex-grow-0 mb-3' },
|
|
680
|
-
|
|
680
|
+
React__default.createElement(
|
|
681
681
|
Dropdown,
|
|
682
682
|
{ id: 'contentPlacementFilter' },
|
|
683
|
-
|
|
683
|
+
React__default.createElement(
|
|
684
684
|
Dropdown.Toggle,
|
|
685
685
|
null,
|
|
686
686
|
activeContentPlacement && activeContentPlacement.name ? activeContentPlacement.name : 'Select Topic'
|
|
687
687
|
),
|
|
688
|
-
|
|
688
|
+
React__default.createElement(
|
|
689
689
|
Dropdown.Menu,
|
|
690
690
|
null,
|
|
691
|
-
|
|
691
|
+
React__default.createElement(Dropdown.Item, { style: { height: '2rem' }, onClick: function onClick() {
|
|
692
692
|
return setActiveContentPlacement('');
|
|
693
693
|
} }),
|
|
694
694
|
contentPlacements.map(function (cp) {
|
|
695
|
-
return
|
|
695
|
+
return React__default.createElement(
|
|
696
696
|
Dropdown.Item,
|
|
697
697
|
{
|
|
698
698
|
key: cp._id,
|
|
@@ -708,60 +708,60 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
708
708
|
)
|
|
709
709
|
),
|
|
710
710
|
sortedIssues && sortedIssues.length > 0 ? sortedIssues.map(function (issue, key) {
|
|
711
|
-
return
|
|
711
|
+
return React__default.createElement(
|
|
712
712
|
Card,
|
|
713
713
|
{ key: key, className: 'issueCard' },
|
|
714
|
-
|
|
714
|
+
React__default.createElement(
|
|
715
715
|
Row,
|
|
716
716
|
null,
|
|
717
|
-
|
|
717
|
+
React__default.createElement(
|
|
718
718
|
Col,
|
|
719
719
|
{ md: 3, id: 'issueThumbnail' },
|
|
720
|
-
|
|
720
|
+
React__default.createElement(
|
|
721
721
|
LazyLoad,
|
|
722
722
|
{ once: true },
|
|
723
|
-
|
|
723
|
+
React__default.createElement(Card.Img, { src: issue.thumbnail })
|
|
724
724
|
)
|
|
725
725
|
),
|
|
726
|
-
|
|
726
|
+
React__default.createElement(
|
|
727
727
|
Col,
|
|
728
728
|
{ md: 9, id: 'issueDetail' },
|
|
729
|
-
|
|
729
|
+
React__default.createElement(
|
|
730
730
|
Card.Body,
|
|
731
731
|
null,
|
|
732
|
-
|
|
732
|
+
React__default.createElement(
|
|
733
733
|
Card.Title,
|
|
734
734
|
null,
|
|
735
735
|
issue.name
|
|
736
736
|
),
|
|
737
|
-
issue.source &&
|
|
737
|
+
issue.source && React__default.createElement(
|
|
738
738
|
'div',
|
|
739
739
|
{ className: 'content-category-label' },
|
|
740
|
-
|
|
740
|
+
React__default.createElement(
|
|
741
741
|
'div',
|
|
742
742
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
743
743
|
issue.source
|
|
744
744
|
)
|
|
745
745
|
),
|
|
746
|
-
issue.volume && issue.number &&
|
|
746
|
+
issue.volume && issue.number && React__default.createElement(
|
|
747
747
|
'p',
|
|
748
748
|
null,
|
|
749
749
|
'Volume: ',
|
|
750
750
|
issue.volume,
|
|
751
|
-
|
|
751
|
+
React__default.createElement('br', null),
|
|
752
752
|
'Issue: ',
|
|
753
753
|
issue.number
|
|
754
754
|
)
|
|
755
755
|
),
|
|
756
|
-
|
|
756
|
+
React__default.createElement(
|
|
757
757
|
Card.Footer,
|
|
758
758
|
null,
|
|
759
|
-
issue && issue.articles && issue.articles.length > 0 ?
|
|
759
|
+
issue && issue.articles && issue.articles.length > 0 ? React__default.createElement(
|
|
760
760
|
'a',
|
|
761
761
|
{ href: publication.identifier.current + '/' + issue.identifier.current, className: 'btn btn-primary' },
|
|
762
762
|
'View Issue'
|
|
763
763
|
) : null,
|
|
764
|
-
issue.pdf && issue.pdf.asset && issue.pdf.asset.url &&
|
|
764
|
+
issue.pdf && issue.pdf.asset && issue.pdf.asset.url && React__default.createElement(
|
|
765
765
|
'a',
|
|
766
766
|
{ rel: 'noopener', href: issue.pdf.asset.url, target: '_blank', className: 'btn btn-primary' },
|
|
767
767
|
'Download Issue'
|
|
@@ -771,60 +771,60 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
771
771
|
)
|
|
772
772
|
);
|
|
773
773
|
}) : !activeContentPlacement && !activeYear && issueData && issueData.length > 0 ? issueData.map(function (issue, key) {
|
|
774
|
-
return
|
|
774
|
+
return React__default.createElement(
|
|
775
775
|
Card,
|
|
776
776
|
{ key: key, className: 'issueCard' },
|
|
777
|
-
|
|
777
|
+
React__default.createElement(
|
|
778
778
|
Row,
|
|
779
779
|
null,
|
|
780
|
-
|
|
780
|
+
React__default.createElement(
|
|
781
781
|
Col,
|
|
782
782
|
{ md: 3, id: 'issueThumbnail' },
|
|
783
|
-
|
|
783
|
+
React__default.createElement(
|
|
784
784
|
LazyLoad,
|
|
785
785
|
{ once: true },
|
|
786
|
-
|
|
786
|
+
React__default.createElement(Card.Img, { src: issue.thumbnail })
|
|
787
787
|
)
|
|
788
788
|
),
|
|
789
|
-
|
|
789
|
+
React__default.createElement(
|
|
790
790
|
Col,
|
|
791
791
|
{ md: 9, id: 'issueDetail' },
|
|
792
|
-
|
|
792
|
+
React__default.createElement(
|
|
793
793
|
Card.Body,
|
|
794
794
|
null,
|
|
795
|
-
|
|
795
|
+
React__default.createElement(
|
|
796
796
|
Card.Title,
|
|
797
797
|
null,
|
|
798
798
|
issue.name
|
|
799
799
|
),
|
|
800
|
-
issue.source &&
|
|
800
|
+
issue.source && React__default.createElement(
|
|
801
801
|
'div',
|
|
802
802
|
{ className: 'content-category-label' },
|
|
803
|
-
|
|
803
|
+
React__default.createElement(
|
|
804
804
|
'div',
|
|
805
805
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
806
806
|
issue.source
|
|
807
807
|
)
|
|
808
808
|
),
|
|
809
|
-
issue.volume && issue.number &&
|
|
809
|
+
issue.volume && issue.number && React__default.createElement(
|
|
810
810
|
'p',
|
|
811
811
|
null,
|
|
812
812
|
'Volume: ',
|
|
813
813
|
issue.volume,
|
|
814
|
-
|
|
814
|
+
React__default.createElement('br', null),
|
|
815
815
|
'Issue: ',
|
|
816
816
|
issue.number
|
|
817
817
|
)
|
|
818
818
|
),
|
|
819
|
-
|
|
819
|
+
React__default.createElement(
|
|
820
820
|
Card.Footer,
|
|
821
821
|
null,
|
|
822
|
-
issue && issue.articles && issue.articles.length > 0 ?
|
|
822
|
+
issue && issue.articles && issue.articles.length > 0 ? React__default.createElement(
|
|
823
823
|
'a',
|
|
824
824
|
{ href: publication.identifier.current + '/' + issue.identifier.current, className: 'btn btn-primary' },
|
|
825
825
|
'View Issue'
|
|
826
826
|
) : null,
|
|
827
|
-
issue.pdf && issue.pdf.asset && issue.pdf.asset.url &&
|
|
827
|
+
issue.pdf && issue.pdf.asset && issue.pdf.asset.url && React__default.createElement(
|
|
828
828
|
'a',
|
|
829
829
|
{ rel: 'noopener', href: issue.pdf.asset.url, target: '_blank', className: 'btn btn-primary' },
|
|
830
830
|
'Download Issue'
|
|
@@ -833,12 +833,12 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
833
833
|
)
|
|
834
834
|
)
|
|
835
835
|
);
|
|
836
|
-
}) :
|
|
836
|
+
}) : React__default.createElement(
|
|
837
837
|
'em',
|
|
838
838
|
null,
|
|
839
839
|
'New content coming soon, please check back later.'
|
|
840
840
|
),
|
|
841
|
-
|
|
841
|
+
React__default.createElement(
|
|
842
842
|
'style',
|
|
843
843
|
{ jsx: 'true' },
|
|
844
844
|
'\n .issueCard.card:hover {\n cursor: default;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n display: inline;\n width: 100%;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n .dropdown-toggle {\n min-width: 5rem;\n }\n .dropdown-toggle:empty:after {\n margin-left: 4rem;\n }\n .card-footer {\n background-color: transparent;\n border-top: 0;\n }\n .card-footer a:not(:first-child) {\n margin-left: 1rem;\n }\n '
|