@mjhls/mjh-framework 1.0.704-beta-v10 → 1.0.705
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 +1 -1
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +25 -24
- package/dist/cjs/AD300x250x600.js +25 -24
- package/dist/cjs/AD728x90.js +28 -27
- package/dist/cjs/ADFloatingFooter.js +27 -26
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +27 -26
- package/dist/cjs/{ADInfeed-44d61c86.js → ADInfeed-54ab0509.js} +13 -11
- package/dist/cjs/ADSkyscraper.js +27 -26
- package/dist/cjs/ADSponsoredResources.js +27 -26
- package/dist/cjs/ADWebcast.js +27 -26
- package/dist/cjs/ADWelcome.js +44 -32
- package/dist/cjs/{ADlgInfeed-52acb8f4.js → ADlgInfeed-a1255904.js} +9 -8
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +32 -32
- package/dist/cjs/AdSlotsProvider.js +8 -7
- package/dist/cjs/AlphabeticList.js +25 -24
- package/dist/cjs/ArticleCarousel.js +22 -21
- package/dist/cjs/ArticleSeriesListing.js +58 -57
- package/dist/cjs/Auth.js +816 -330
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-5fa89df5.js} +14 -13
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-80b15fac.js → BlockContent-eca358e4.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/BrowseVideosListing.js +40 -39
- package/dist/cjs/CMEDeck.js +78 -78
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +35 -32
- package/dist/cjs/Column3.js +58 -55
- package/dist/cjs/ConferenceArticleCard.js +23 -22
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +98 -94
- package/dist/cjs/DeckQueue.js +90 -86
- package/dist/cjs/{Dfp-390337bf.js → Dfp-a863cf48.js} +31 -30
- package/dist/cjs/EventsDeck.js +136 -129
- package/dist/cjs/ExternalResources.js +75 -74
- 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 +50 -49
- package/dist/cjs/HamMagazine.js +135 -130
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/IssueContentDeck.js +77 -72
- package/dist/cjs/IssueDeck.js +75 -70
- package/dist/cjs/IssueLanding.js +41 -40
- package/dist/cjs/LeftNav.js +38 -36
- package/dist/cjs/MasterDeck.js +72 -71
- package/dist/cjs/NavDvm.js +80 -75
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +143 -138
- package/dist/cjs/NavNative.js +123 -115
- package/dist/cjs/NavNormal.js +53 -48
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +67 -66
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +106 -105
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PublicationDeck.js +66 -61
- package/dist/cjs/PublicationLanding.js +160 -74
- package/dist/cjs/QueueDeckExpanded.js +292 -292
- 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 +7 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -35
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-56d49a1a.js → SocialSearchComponent-294bd0ea.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +62 -57
- 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/VideoSeriesCard.js +33 -32
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesListing.js +73 -72
- package/dist/cjs/View.js +222 -219
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +65 -64
- 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/{_set-species-f92c67c5.js → _set-species-a8cfdb84.js} +4 -4
- package/dist/cjs/{_to-object-329a650b.js → _to-object-821a2927.js} +4 -4
- package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-2edcb6ad.js} +8 -8
- 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-60837c34.js → extends-1e24fc8d.js} +1 -1
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +138 -76
- package/dist/cjs/getSerializers.js +41 -41
- package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-497b581d.js} +2 -2
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-1b73277e.js → index-4d37a34d.js} +440 -429
- package/dist/cjs/{index-3294d3bc.js → index-4d74ffd6.js} +40 -41
- package/dist/cjs/{index-099d45ae.js → index-5ad2b070.js} +16 -17
- package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
- package/dist/cjs/{index-39beccb3.js → index-d48b231c.js} +29 -24
- 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 +127 -127
- package/dist/cjs/{inherits-513d81cd.js → inherits-2eb23889.js} +8 -8
- package/dist/cjs/{keys-a586b7a0.js → keys-95c064c9.js} +2 -2
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-4ef21f0f.js} +1 -1
- package/dist/cjs/{main-03ffa84c.js → main-eeffe77b.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-95231a70.js → smoothscroll-1abb448e.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-f2c1b65b.js → util-6f784d85.js} +1 -1
- 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 +21 -21
- package/dist/esm/AD300x250x600.js +21 -21
- package/dist/esm/AD728x90.js +24 -24
- package/dist/esm/ADFloatingFooter.js +23 -23
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +23 -23
- package/dist/esm/{ADInfeed-1f2deb69.js → ADInfeed-18cb6a8b.js} +7 -7
- package/dist/esm/ADSkyscraper.js +23 -23
- package/dist/esm/ADSponsoredResources.js +23 -23
- package/dist/esm/ADWebcast.js +23 -23
- package/dist/esm/ADWelcome.js +40 -29
- package/dist/esm/{ADlgInfeed-6d0d2522.js → ADlgInfeed-51d02f5d.js} +6 -6
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +23 -24
- package/dist/esm/AdSlotsProvider.js +4 -4
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +18 -18
- package/dist/esm/ArticleSeriesListing.js +52 -52
- package/dist/esm/Auth.js +797 -315
- package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-c29a0075.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-c409aca5.js → BlockContent-d8cd739c.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/BrowseVideosListing.js +36 -36
- package/dist/esm/CMEDeck.js +74 -74
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +48 -48
- package/dist/esm/ConferenceArticleCard.js +18 -18
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +76 -76
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-741c01be.js → Dfp-db06d7dc.js} +20 -20
- package/dist/esm/EventsDeck.js +82 -82
- package/dist/esm/ExternalResources.js +68 -68
- 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 +45 -45
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +37 -37
- package/dist/esm/LeftNav.js +32 -32
- package/dist/esm/MasterDeck.js +65 -65
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +114 -114
- package/dist/esm/NavNative.js +91 -91
- package/dist/esm/NavNormal.js +36 -36
- package/dist/esm/OncliveHero.js +16 -17
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +101 -101
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +137 -55
- package/dist/esm/QueueDeckExpanded.js +272 -272
- 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 +7 -7
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +31 -31
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-677ed3bd.js → SocialSearchComponent-c4a19bac.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- 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/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesListing.js +66 -66
- package/dist/esm/View.js +209 -210
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +49 -49
- package/dist/esm/{_is-array-49698029.js → _is-array-9383b394.js} +6 -6
- package/dist/esm/{_iter-detect-59409a32.js → _iter-detect-d4d262ee.js} +2 -2
- package/dist/esm/{_object-sap-4d59d5bd.js → _object-sap-6a003379.js} +1 -1
- package/dist/esm/{_set-species-cede29f8.js → _set-species-0b056cff.js} +4 -4
- package/dist/esm/{_to-object-ded78eb9.js → _to-object-9bef3b62.js} +5 -5
- package/dist/esm/{asyncToGenerator-7c654f36.js → asyncToGenerator-acd1cc47.js} +8 -8
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
- package/dist/esm/{core.get-iterator-method-54d2e411.js → core.get-iterator-method-1b116089.js} +2 -2
- package/dist/esm/{define-property-de3fc946.js → define-property-9a008401.js} +1 -1
- package/dist/esm/{defineProperty-b798470d.js → defineProperty-ddd52c29.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{es6.string.iterator-9b2af4a5.js → es6.string.iterator-b24a54f2.js} +3 -3
- package/dist/esm/{extends-cc5da797.js → extends-c2b1c9d7.js} +1 -1
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +133 -71
- package/dist/esm/getSerializers.js +41 -41
- package/dist/esm/{getTargeting-2acdec91.js → getTargeting-b1a7be54.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-3849e3fe.js → index-3f5c03b2.js} +29 -24
- package/dist/esm/{index-3f4dd6f2.js → index-669ff425.js} +10 -12
- package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
- package/dist/esm/{index-309ea78e.js → index-b2d06f45.js} +384 -380
- package/dist/esm/{index-ef6d5dcf.js → index-ccb770c7.js} +40 -41
- 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 +105 -105
- package/dist/esm/{inherits-7ee3e0c1.js → inherits-18d4a779.js} +5 -5
- package/dist/esm/{keys-fc2d4c34.js → keys-9bb7939c.js} +2 -2
- package/dist/esm/{lodash-ec8c6b48.js → lodash-ad27652f.js} +1 -1
- package/dist/esm/{main-35ff7b4f.js → main-ad1ecb54.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-7021e5df.js → slicedToArray-34468155.js} +4 -4
- package/dist/esm/{smoothscroll-4b699764.js → smoothscroll-ab6e0238.js} +1 -1
- package/dist/esm/{stringify-008c8802.js → stringify-8a4f19f7.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-725434a0.js → toConsumableArray-5212fee7.js} +4 -4
- package/dist/esm/{typeof-08f2c380.js → typeof-64422756.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/dist/esm/{web.dom.iterable-8956f9a5.js → web.dom.iterable-ca37144a.js} +3 -3
- package/package.json +3 -3
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
|
@@ -1,22 +1,22 @@
|
|
|
1
|
+
import { _ as _slicedToArray } from './slicedToArray-34468155.js';
|
|
1
2
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import {
|
|
3
|
-
import { _ as
|
|
4
|
-
import './
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import
|
|
10
|
-
import 'prop-types';
|
|
3
|
+
import { _ as _objectCreate, a as _iterDefine, b as _wks, c as _setToStringTag } from './es6.string.iterator-b24a54f2.js';
|
|
4
|
+
import { _ as _iterStep } from './web.dom.iterable-ca37144a.js';
|
|
5
|
+
import { e as _isObject, f as _ctx, b as _descriptors, g as _objectDp, h as _toObject, i as _iobject, j as _toLength, k as _global, l as _fails, m as _hide, c as _export, n as _aFunction, d as _core } from './_to-object-9bef3b62.js';
|
|
6
|
+
import { _ as _anInstance, a as _forOf, b as _redefineAll, c as _setSpecies } from './_set-species-0b056cff.js';
|
|
7
|
+
import { _ as _meta, a as _isArray } from './_is-array-9383b394.js';
|
|
8
|
+
import { _ as _classof } from './core.get-iterator-method-1b116089.js';
|
|
9
|
+
import { _ as _toConsumableArray } from './toConsumableArray-5212fee7.js';
|
|
10
|
+
import React, { useState, useEffect } from 'react';
|
|
11
11
|
import Row from 'react-bootstrap/Row';
|
|
12
12
|
import Col from 'react-bootstrap/Col';
|
|
13
|
+
import Dropdown from 'react-bootstrap/Dropdown';
|
|
13
14
|
import Card from 'react-bootstrap/Card';
|
|
14
15
|
import { useRouter } from 'next/router';
|
|
16
|
+
import { L as LazyLoad } from './index-752d1dae.js';
|
|
17
|
+
import './_iter-detect-d4d262ee.js';
|
|
15
18
|
import 'react-dom';
|
|
16
|
-
import
|
|
17
|
-
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
18
|
-
import { _ as _anInstance, a as _forOf, b as _redefineAll, c as _setSpecies } from './_set-species-cede29f8.js';
|
|
19
|
-
import Dropdown from 'react-bootstrap/Dropdown';
|
|
19
|
+
import 'prop-types';
|
|
20
20
|
|
|
21
21
|
var _validateCollection = function (it, TYPE) {
|
|
22
22
|
if (!_isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
|
|
@@ -286,7 +286,7 @@ var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
|
|
|
286
286
|
var SET = 'Set';
|
|
287
287
|
|
|
288
288
|
// 23.2 Set Objects
|
|
289
|
-
|
|
289
|
+
_collection(SET, function (get) {
|
|
290
290
|
return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
|
|
291
291
|
}, {
|
|
292
292
|
// 23.2.3.1 Set.prototype.add(value)
|
|
@@ -405,64 +405,117 @@ Publication.getInitialProps = async (ctx) => {
|
|
|
405
405
|
export default Publication
|
|
406
406
|
*/
|
|
407
407
|
|
|
408
|
+
var generateContentPlacements = function generateContentPlacements(issues) {
|
|
409
|
+
var contentPlacements = [];
|
|
410
|
+
issues && issues.length > 0 && issues.forEach(function (issue) {
|
|
411
|
+
if (issue.taxonomyMapping && issue.taxonomyMapping.length > 0) {
|
|
412
|
+
issue.taxonomyMapping && issue.taxonomyMapping.forEach(function (tm) {
|
|
413
|
+
if (!contentPlacements.find(function (cp) {
|
|
414
|
+
return cp.identifier === tm.identifier;
|
|
415
|
+
})) {
|
|
416
|
+
contentPlacements.push({ _id: tm._id, name: tm.name, identifier: tm.identifier });
|
|
417
|
+
}
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
return contentPlacements;
|
|
422
|
+
};
|
|
423
|
+
|
|
408
424
|
var PublicationLanding = function PublicationLanding(props) {
|
|
409
425
|
var publication = props.publication,
|
|
410
|
-
year = props.year,
|
|
411
|
-
|
|
412
|
-
|
|
426
|
+
_props$year = props.year,
|
|
427
|
+
year = _props$year === undefined ? '' : _props$year,
|
|
428
|
+
href = props.href;
|
|
429
|
+
props.pdf;
|
|
430
|
+
var _props$contentPlaceme = props.contentPlacement,
|
|
431
|
+
contentPlacement = _props$contentPlaceme === undefined ? '' : _props$contentPlaceme;
|
|
413
432
|
|
|
414
433
|
|
|
415
434
|
var router = useRouter();
|
|
416
435
|
var years = [].concat(_toConsumableArray(new _Set(publication.issues.map(function (issue) {
|
|
417
436
|
return issue.year;
|
|
418
437
|
})))).sort().reverse();
|
|
438
|
+
var contentPlacements = generateContentPlacements(publication.issues);
|
|
419
439
|
|
|
420
440
|
var _useState = useState(publication.issues),
|
|
421
441
|
_useState2 = _slicedToArray(_useState, 2),
|
|
422
442
|
issueData = _useState2[0],
|
|
423
443
|
setIssueData = _useState2[1];
|
|
424
444
|
|
|
425
|
-
var _useState3 = useState(year
|
|
445
|
+
var _useState3 = useState(year),
|
|
426
446
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
427
447
|
activeYear = _useState4[0],
|
|
428
448
|
setActiveYear = _useState4[1];
|
|
429
449
|
|
|
450
|
+
var _useState5 = useState(contentPlacement),
|
|
451
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
452
|
+
activeContentPlacement = _useState6[0],
|
|
453
|
+
setActiveContentPlacement = _useState6[1];
|
|
454
|
+
|
|
430
455
|
useEffect(function () {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
return
|
|
456
|
+
if (activeYear && activeContentPlacement) {
|
|
457
|
+
router.push(router.pathname, '/' + (href ? href : 'publications') + '/' + publication.identifier.current + '?year=' + activeYear + '&cp=' + activeContentPlacement, { shallow: true });
|
|
458
|
+
setIssueData(function () {
|
|
459
|
+
return publication.issues.filter(function (issue) {
|
|
460
|
+
return issue.year === activeYear;
|
|
461
|
+
}).filter(function (issue) {
|
|
462
|
+
return issue.taxonomyMapping && issue.taxonomyMapping.find(function (tm) {
|
|
463
|
+
return tm.identifier === activeContentPlacement;
|
|
464
|
+
});
|
|
465
|
+
});
|
|
435
466
|
});
|
|
436
|
-
})
|
|
437
|
-
|
|
467
|
+
} else if (activeYear) {
|
|
468
|
+
router.push(router.pathname, '/' + (href ? href : 'publications') + '/' + publication.identifier.current + '?year=' + activeYear, { shallow: true });
|
|
469
|
+
setIssueData(function () {
|
|
470
|
+
return publication.issues.filter(function (issue) {
|
|
471
|
+
return issue.year === activeYear;
|
|
472
|
+
});
|
|
473
|
+
});
|
|
474
|
+
} else if (activeContentPlacement) {
|
|
475
|
+
router.push(router.pathname, '/' + (href ? href : 'publications') + '/' + publication.identifier.current + '?cp=' + activeContentPlacement, { shallow: true });
|
|
476
|
+
setIssueData(function () {
|
|
477
|
+
return publication.issues.filter(function (issue) {
|
|
478
|
+
return issue.taxonomyMapping && issue.taxonomyMapping.find(function (tm) {
|
|
479
|
+
return tm.identifier === activeContentPlacement;
|
|
480
|
+
});
|
|
481
|
+
});
|
|
482
|
+
});
|
|
483
|
+
} else {
|
|
484
|
+
router.push(router.pathname, '/' + (href ? href : 'publications') + '/' + publication.identifier.current, { shallow: true });
|
|
485
|
+
setIssueData(publication.issues);
|
|
486
|
+
}
|
|
487
|
+
}, [activeYear, activeContentPlacement]);
|
|
438
488
|
|
|
439
|
-
return
|
|
489
|
+
return React.createElement(
|
|
440
490
|
'div',
|
|
441
491
|
{ id: 'publicationLanding' },
|
|
442
|
-
|
|
492
|
+
React.createElement(
|
|
443
493
|
'style',
|
|
444
494
|
{ jsx: true },
|
|
445
|
-
'\n #pubYearFilter .dropdown-menu.show {\n max-height: 25vh;\n }\n '
|
|
495
|
+
'\n #pubYearFilter .dropdown-menu.show,\n #contentPlacementFilter .dropdown-menu.show {\n max-height: 25vh;\n overflow: auto;\n }\n '
|
|
446
496
|
),
|
|
447
|
-
|
|
497
|
+
React.createElement(
|
|
448
498
|
Row,
|
|
449
|
-
|
|
450
|
-
|
|
499
|
+
null,
|
|
500
|
+
React.createElement(
|
|
451
501
|
Col,
|
|
452
|
-
|
|
453
|
-
|
|
502
|
+
{ className: 'flex-grow-0 mb-3' },
|
|
503
|
+
React.createElement(
|
|
454
504
|
Dropdown,
|
|
455
505
|
{ id: 'pubYearFilter' },
|
|
456
|
-
|
|
506
|
+
React.createElement(
|
|
457
507
|
Dropdown.Toggle,
|
|
458
508
|
null,
|
|
459
|
-
activeYear
|
|
509
|
+
activeYear ? activeYear : 'Select Year'
|
|
460
510
|
),
|
|
461
|
-
|
|
511
|
+
React.createElement(
|
|
462
512
|
Dropdown.Menu,
|
|
463
513
|
null,
|
|
514
|
+
React.createElement(Dropdown.Item, { style: { height: '2rem' }, onClick: function onClick() {
|
|
515
|
+
return setActiveYear('');
|
|
516
|
+
} }),
|
|
464
517
|
years.map(function (yr, key) {
|
|
465
|
-
return
|
|
518
|
+
return React.createElement(
|
|
466
519
|
Dropdown.Item,
|
|
467
520
|
{ key: key, onClick: function onClick() {
|
|
468
521
|
return setActiveYear(yr);
|
|
@@ -472,59 +525,88 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
472
525
|
})
|
|
473
526
|
)
|
|
474
527
|
)
|
|
528
|
+
),
|
|
529
|
+
contentPlacements && contentPlacements.length > 0 && React.createElement(
|
|
530
|
+
Col,
|
|
531
|
+
{ className: 'flex-grow-0 mb-3' },
|
|
532
|
+
React.createElement(
|
|
533
|
+
Dropdown,
|
|
534
|
+
{ id: 'contentPlacementFilter' },
|
|
535
|
+
React.createElement(
|
|
536
|
+
Dropdown.Toggle,
|
|
537
|
+
null,
|
|
538
|
+
activeContentPlacement ? activeContentPlacement : 'Select Content Placement'
|
|
539
|
+
),
|
|
540
|
+
React.createElement(
|
|
541
|
+
Dropdown.Menu,
|
|
542
|
+
null,
|
|
543
|
+
React.createElement(Dropdown.Item, { style: { height: '2rem' }, onClick: function onClick() {
|
|
544
|
+
return setActiveContentPlacement('');
|
|
545
|
+
} }),
|
|
546
|
+
contentPlacements.map(function (cp) {
|
|
547
|
+
return React.createElement(
|
|
548
|
+
Dropdown.Item,
|
|
549
|
+
{ key: cp._id, onClick: function onClick() {
|
|
550
|
+
return setActiveContentPlacement(cp.identifier);
|
|
551
|
+
} },
|
|
552
|
+
cp.name
|
|
553
|
+
);
|
|
554
|
+
})
|
|
555
|
+
)
|
|
556
|
+
)
|
|
475
557
|
)
|
|
476
558
|
),
|
|
477
559
|
issueData && issueData.length > 0 ? issueData.map(function (issue, key) {
|
|
478
|
-
return
|
|
560
|
+
return React.createElement(
|
|
479
561
|
Card,
|
|
480
562
|
{ key: key, className: 'issueCard' },
|
|
481
|
-
|
|
563
|
+
React.createElement(
|
|
482
564
|
Row,
|
|
483
565
|
null,
|
|
484
|
-
|
|
566
|
+
React.createElement(
|
|
485
567
|
Col,
|
|
486
568
|
{ md: 3, id: 'issueThumbnail' },
|
|
487
|
-
|
|
569
|
+
React.createElement(
|
|
488
570
|
LazyLoad,
|
|
489
571
|
{ once: true },
|
|
490
|
-
|
|
572
|
+
React.createElement(Card.Img, { src: issue.thumbnail })
|
|
491
573
|
)
|
|
492
574
|
),
|
|
493
|
-
|
|
575
|
+
React.createElement(
|
|
494
576
|
Col,
|
|
495
577
|
{ md: 9, id: 'issueDetail' },
|
|
496
|
-
|
|
578
|
+
React.createElement(
|
|
497
579
|
Card.Body,
|
|
498
580
|
null,
|
|
499
|
-
|
|
581
|
+
React.createElement(
|
|
500
582
|
Card.Title,
|
|
501
583
|
null,
|
|
502
584
|
issue.name
|
|
503
585
|
),
|
|
504
|
-
issue.source &&
|
|
586
|
+
issue.source && React.createElement(
|
|
505
587
|
'div',
|
|
506
588
|
{ className: 'content-category-label' },
|
|
507
|
-
|
|
589
|
+
React.createElement(
|
|
508
590
|
'div',
|
|
509
591
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
510
592
|
issue.source
|
|
511
593
|
)
|
|
512
594
|
),
|
|
513
|
-
issue.volume && issue.number &&
|
|
595
|
+
issue.volume && issue.number && React.createElement(
|
|
514
596
|
'p',
|
|
515
597
|
null,
|
|
516
598
|
'Volume: ',
|
|
517
599
|
issue.volume,
|
|
518
|
-
|
|
600
|
+
React.createElement('br', null),
|
|
519
601
|
'Issue: ',
|
|
520
602
|
issue.number
|
|
521
603
|
),
|
|
522
|
-
|
|
604
|
+
React.createElement(
|
|
523
605
|
'a',
|
|
524
606
|
{ href: publication.identifier.current + '/' + issue.identifier.current, className: 'btn btn-primary', style: { marginTop: '20px', marginLeft: '1rem' } },
|
|
525
607
|
'View Issue'
|
|
526
608
|
),
|
|
527
|
-
issue.pdf && issue.pdf.asset && issue.pdf.asset.url &&
|
|
609
|
+
issue.pdf && issue.pdf.asset && issue.pdf.asset.url && React.createElement(
|
|
528
610
|
'a',
|
|
529
611
|
{ rel: 'noopener', href: issue.pdf.asset.url, target: '_blank', className: 'btn btn-primary', style: { marginTop: '20px', marginLeft: '1rem' } },
|
|
530
612
|
'Download Issue'
|
|
@@ -533,23 +615,23 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
533
615
|
)
|
|
534
616
|
)
|
|
535
617
|
);
|
|
536
|
-
}) :
|
|
618
|
+
}) : React.createElement(
|
|
537
619
|
'div',
|
|
538
620
|
null,
|
|
539
|
-
|
|
621
|
+
React.createElement(
|
|
540
622
|
'h5',
|
|
541
623
|
null,
|
|
542
|
-
|
|
624
|
+
React.createElement(
|
|
543
625
|
'em',
|
|
544
626
|
{ className: 'pl-3' },
|
|
545
627
|
'New content coming soon, please check back later.'
|
|
546
628
|
)
|
|
547
629
|
)
|
|
548
630
|
),
|
|
549
|
-
|
|
631
|
+
React.createElement(
|
|
550
632
|
'style',
|
|
551
633
|
{ jsx: 'true' },
|
|
552
|
-
'\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 '
|
|
634
|
+
'\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 '
|
|
553
635
|
)
|
|
554
636
|
);
|
|
555
637
|
};
|